mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[@types/carbon-components-react] Fix non-type submodule exports. More type fixes. (#37875)
* Add ComboBox props missing from prop types. Add missing "itemToElement" prop. Downshift props is not required because object spreads work on undefined/null. * Fix onChange. * MAJOR: Fixed submodule exports to reflect build of carbon-components-react (only submodule exports are affected). * Add missing multi select props. * Fix TableToolbarAction.
This commit is contained in:
parent
06b9017604
commit
9883c74ed7
@ -1,7 +0,0 @@
|
||||
import * as React from "react";
|
||||
import { OverflowMenuItemAnchorProps, OverflowMenuItemButtonProps } from "../OverflowMenuItem";
|
||||
|
||||
export type AllTableToolbarActionProps = OverflowMenuItemAnchorProps | OverflowMenuItemButtonProps;
|
||||
declare const TableToolbarAction: React.FC<AllTableToolbarActionProps>;
|
||||
|
||||
export default TableToolbarAction;
|
||||
342
types/carbon-components-react/index.d.ts
vendored
342
types/carbon-components-react/index.d.ts
vendored
@ -6,179 +6,179 @@
|
||||
|
||||
export as namespace CarbonReact;
|
||||
|
||||
import _Accordion from "./components/Accordion";
|
||||
import _AccordionSkeleton from "./components/Accordion/Accordion.Skeleton";
|
||||
import _AccordionItem from "./components/AccordionItem";
|
||||
import _BreadcrumbSkeleton from "./components/Breadcrumb/Breadcrumb.Skeleton";
|
||||
import _Button from "./components/Button";
|
||||
import _ButtonSkeleton from "./components/Button/Button.Skeleton";
|
||||
import _Checkbox from "./components/Checkbox";
|
||||
import _CheckboxSkeleton from "./components/Checkbox/Checkbox.Skeleton";
|
||||
import _CodeSnippet from "./components/CodeSnippet";
|
||||
import _CodeSnippetSkeleton from "./components/CodeSnippet/CodeSnippet.Skeleton";
|
||||
import _ComboBox from "./components/ComboBox";
|
||||
import _ComposedModal from "./components/ComposedModal";
|
||||
import _ContentSwitcher from "./components/ContentSwitcher";
|
||||
import _Copy from "./components/Copy";
|
||||
import _CopyButton from "./components/CopyButton";
|
||||
import _DangerButton from "./components/DangerButton";
|
||||
import _DataTableSkeleton from "./components/DataTableSkeleton";
|
||||
import _DatePicker from "./components/DatePicker";
|
||||
import _DatePickerSkeleton from "./components/DatePicker/DatePicker.Skeleton";
|
||||
import _DatePickerInput from "./components/DatePickerInput";
|
||||
import _Dropdown from "./components/Dropdown";
|
||||
import _DropdownSkeleton from "./components/Dropdown/Dropdown.Skeleton";
|
||||
import _FileUploader from "./components/FileUploader";
|
||||
import _FileUploaderSkeleton from "./components/FileUploader/FileUploader.Skeleton";
|
||||
import _Form from "./components/Form";
|
||||
import _FormGroup from "./components/FormGroup";
|
||||
import _FormItem from "./components/FormItem";
|
||||
import _FormLabel from "./components/FormLabel";
|
||||
import _Icon from "./components/Icon";
|
||||
import _IconSkeleton from "./components/Icon/Icon.Skeleton";
|
||||
import _InlineLoading from "./components/InlineLoading";
|
||||
import _Link from "./components/Link";
|
||||
import _ListItem from "./components/ListItem";
|
||||
import _Loading from "./components/Loading";
|
||||
import _Modal from "./components/Modal";
|
||||
import _ModalWrapper from "./components/ModalWrapper";
|
||||
import _MultiSelect from "./components/MultiSelect";
|
||||
import _NumberInput from "./components/NumberInput";
|
||||
import _NumberInputSkeleton from "./components/NumberInput/NumberInput.Skeleton";
|
||||
import _OrderedList from "./components/OrderedList";
|
||||
import _OverflowMenu from "./components/OverflowMenu";
|
||||
import _OverflowMenuItem from "./components/OverflowMenuItem";
|
||||
import _Pagination from "./components/Pagination";
|
||||
import _PrimaryButton from "./components/PrimaryButton";
|
||||
import _ProgressIndicatorSkeleton from "./components/ProgressIndicator/ProgressIndicator.Skeleton";
|
||||
import _RadioButton from "./components/RadioButton";
|
||||
import _RadioButtonSkeleton from "./components/RadioButton/RadioButton.Skeleton";
|
||||
import _RadioButtonGroup from "./components/RadioButtonGroup";
|
||||
import _RadioTile from "./components/RadioTile";
|
||||
import _Search from "./components/Search";
|
||||
import _SearchSkeleton from "./components/Search/Search.Skeleton";
|
||||
import _SearchFilterButton from "./components/SearchFilterButton";
|
||||
import _SearchLayoutButton from "./components/SearchLayoutButton";
|
||||
import _SecondaryButton from "./components/SecondaryButton";
|
||||
import _Select from "./components/Select";
|
||||
import _SelectSkeleton from "./components/Select/Select.Skeleton";
|
||||
import _SelectItem from "./components/SelectItem";
|
||||
import _SelectItemGroup from "./components/SelectItemGroup";
|
||||
import _SkeletonPlaceholder from "./components/SkeletonPlaceholder";
|
||||
import _SkeletonText from "./components/SkeletonText";
|
||||
import _Slider from "./components/Slider";
|
||||
import _SliderSkeleton from "./components/Slider/Slider.Skeleton";
|
||||
import _StructuredListSkeleton from "./components/StructuredList/StructuredList.Skeleton";
|
||||
import _Switch from "./components/Switch";
|
||||
import _Tab from "./components/Tab";
|
||||
import _TabContent from "./components/TabContent";
|
||||
import _Tabs from "./components/Tabs";
|
||||
import _TabsSkeleton from "./components/Tabs/Tabs.Skeleton";
|
||||
import _Tag from "./components/Tag";
|
||||
import _TagSkeleton from "./components/Tag/Tag.Skeleton";
|
||||
import _TextArea from "./components/TextArea";
|
||||
import _TextAreaSkeleton from "./components/TextArea/TextArea.Skeleton";
|
||||
import _TextInput from "./components/TextInput";
|
||||
import _TextInputSkeleton from "./components/TextInput/TextInput.Skeleton";
|
||||
import _TileGroup from "./components/TileGroup";
|
||||
import _TimePicker from "./components/TimePicker";
|
||||
import _TimePickerSelect from "./components/TimePickerSelect";
|
||||
import _Toggle from "./components/Toggle";
|
||||
import _ToggleSkeleton from "./components/Toggle/Toggle.Skeleton";
|
||||
import _ToggleSmall from "./components/ToggleSmall";
|
||||
import _ToggleSmallSkeleton from "./components/ToggleSmall/ToggleSmall.Skeleton";
|
||||
import _Toolbar from "./components/Toolbar";
|
||||
import _ToolbarSearch from "./components/ToolbarSearch";
|
||||
import _Tooltip from "./components/Tooltip";
|
||||
import _TooltipDefinition from "./components/TooltipDefinition";
|
||||
import _TooltipIcon from "./components/TooltipIcon";
|
||||
import _UnorderedList from "./components/UnorderedList";
|
||||
import _Accordion from "./lib/components/Accordion";
|
||||
import _AccordionSkeleton from "./lib/components/Accordion/Accordion.Skeleton";
|
||||
import _AccordionItem from "./lib/components/AccordionItem";
|
||||
import _BreadcrumbSkeleton from "./lib/components/Breadcrumb/Breadcrumb.Skeleton";
|
||||
import _Button from "./lib/components/Button";
|
||||
import _ButtonSkeleton from "./lib/components/Button/Button.Skeleton";
|
||||
import _Checkbox from "./lib/components/Checkbox";
|
||||
import _CheckboxSkeleton from "./lib/components/Checkbox/Checkbox.Skeleton";
|
||||
import _CodeSnippet from "./lib/components/CodeSnippet";
|
||||
import _CodeSnippetSkeleton from "./lib/components/CodeSnippet/CodeSnippet.Skeleton";
|
||||
import _ComboBox from "./lib/components/ComboBox";
|
||||
import _ComposedModal from "./lib/components/ComposedModal";
|
||||
import _ContentSwitcher from "./lib/components/ContentSwitcher";
|
||||
import _Copy from "./lib/components/Copy";
|
||||
import _CopyButton from "./lib/components/CopyButton";
|
||||
import _DangerButton from "./lib/components/DangerButton";
|
||||
import _DataTableSkeleton from "./lib/components/DataTableSkeleton";
|
||||
import _DatePicker from "./lib/components/DatePicker";
|
||||
import _DatePickerSkeleton from "./lib/components/DatePicker/DatePicker.Skeleton";
|
||||
import _DatePickerInput from "./lib/components/DatePickerInput";
|
||||
import _Dropdown from "./lib/components/Dropdown";
|
||||
import _DropdownSkeleton from "./lib/components/Dropdown/Dropdown.Skeleton";
|
||||
import _FileUploader from "./lib/components/FileUploader";
|
||||
import _FileUploaderSkeleton from "./lib/components/FileUploader/FileUploader.Skeleton";
|
||||
import _Form from "./lib/components/Form";
|
||||
import _FormGroup from "./lib/components/FormGroup";
|
||||
import _FormItem from "./lib/components/FormItem";
|
||||
import _FormLabel from "./lib/components/FormLabel";
|
||||
import _Icon from "./lib/components/Icon";
|
||||
import _IconSkeleton from "./lib/components/Icon/Icon.Skeleton";
|
||||
import _InlineLoading from "./lib/components/InlineLoading";
|
||||
import _Link from "./lib/components/Link";
|
||||
import _ListItem from "./lib/components/ListItem";
|
||||
import _Loading from "./lib/components/Loading";
|
||||
import _Modal from "./lib/components/Modal";
|
||||
import _ModalWrapper from "./lib/components/ModalWrapper";
|
||||
import _MultiSelect from "./lib/components/MultiSelect";
|
||||
import _NumberInput from "./lib/components/NumberInput";
|
||||
import _NumberInputSkeleton from "./lib/components/NumberInput/NumberInput.Skeleton";
|
||||
import _OrderedList from "./lib/components/OrderedList";
|
||||
import _OverflowMenu from "./lib/components/OverflowMenu";
|
||||
import _OverflowMenuItem from "./lib/components/OverflowMenuItem";
|
||||
import _Pagination from "./lib/components/Pagination";
|
||||
import _PrimaryButton from "./lib/components/PrimaryButton";
|
||||
import _ProgressIndicatorSkeleton from "./lib/components/ProgressIndicator/ProgressIndicator.Skeleton";
|
||||
import _RadioButton from "./lib/components/RadioButton";
|
||||
import _RadioButtonSkeleton from "./lib/components/RadioButton/RadioButton.Skeleton";
|
||||
import _RadioButtonGroup from "./lib/components/RadioButtonGroup";
|
||||
import _RadioTile from "./lib/components/RadioTile";
|
||||
import _Search from "./lib/components/Search";
|
||||
import _SearchSkeleton from "./lib/components/Search/Search.Skeleton";
|
||||
import _SearchFilterButton from "./lib/components/SearchFilterButton";
|
||||
import _SearchLayoutButton from "./lib/components/SearchLayoutButton";
|
||||
import _SecondaryButton from "./lib/components/SecondaryButton";
|
||||
import _Select from "./lib/components/Select";
|
||||
import _SelectSkeleton from "./lib/components/Select/Select.Skeleton";
|
||||
import _SelectItem from "./lib/components/SelectItem";
|
||||
import _SelectItemGroup from "./lib/components/SelectItemGroup";
|
||||
import _SkeletonPlaceholder from "./lib/components/SkeletonPlaceholder";
|
||||
import _SkeletonText from "./lib/components/SkeletonText";
|
||||
import _Slider from "./lib/components/Slider";
|
||||
import _SliderSkeleton from "./lib/components/Slider/Slider.Skeleton";
|
||||
import _StructuredListSkeleton from "./lib/components/StructuredList/StructuredList.Skeleton";
|
||||
import _Switch from "./lib/components/Switch";
|
||||
import _Tab from "./lib/components/Tab";
|
||||
import _TabContent from "./lib/components/TabContent";
|
||||
import _Tabs from "./lib/components/Tabs";
|
||||
import _TabsSkeleton from "./lib/components/Tabs/Tabs.Skeleton";
|
||||
import _Tag from "./lib/components/Tag";
|
||||
import _TagSkeleton from "./lib/components/Tag/Tag.Skeleton";
|
||||
import _TextArea from "./lib/components/TextArea";
|
||||
import _TextAreaSkeleton from "./lib/components/TextArea/TextArea.Skeleton";
|
||||
import _TextInput from "./lib/components/TextInput";
|
||||
import _TextInputSkeleton from "./lib/components/TextInput/TextInput.Skeleton";
|
||||
import _TileGroup from "./lib/components/TileGroup";
|
||||
import _TimePicker from "./lib/components/TimePicker";
|
||||
import _TimePickerSelect from "./lib/components/TimePickerSelect";
|
||||
import _Toggle from "./lib/components/Toggle";
|
||||
import _ToggleSkeleton from "./lib/components/Toggle/Toggle.Skeleton";
|
||||
import _ToggleSmall from "./lib/components/ToggleSmall";
|
||||
import _ToggleSmallSkeleton from "./lib/components/ToggleSmall/ToggleSmall.Skeleton";
|
||||
import _Toolbar from "./lib/components/Toolbar";
|
||||
import _ToolbarSearch from "./lib/components/ToolbarSearch";
|
||||
import _Tooltip from "./lib/components/Tooltip";
|
||||
import _TooltipDefinition from "./lib/components/TooltipDefinition";
|
||||
import _TooltipIcon from "./lib/components/TooltipIcon";
|
||||
import _UnorderedList from "./lib/components/UnorderedList";
|
||||
|
||||
export * from "./components/Accordion";
|
||||
export * from "./components/AccordionItem";
|
||||
export * from "./components/Breadcrumb";
|
||||
export * from "./components/BreadcrumbItem";
|
||||
export * from "./components/Button";
|
||||
export * from "./components/Checkbox";
|
||||
export * from "./components/CodeSnippet";
|
||||
export * from "./components/ComboBox";
|
||||
export * from "./components/ComposedModal";
|
||||
export * from "./components/ContentSwitcher";
|
||||
export * from "./components/Copy";
|
||||
export * from "./components/CopyButton";
|
||||
export * from "./components/DangerButton";
|
||||
export * from "./components/DataTable";
|
||||
export * from "./components/DataTableSkeleton";
|
||||
export * from "./components/DatePicker";
|
||||
export * from "./components/DatePickerInput";
|
||||
export * from "./components/Dropdown";
|
||||
export * from "./components/FileUploader";
|
||||
export * from "./components/Form";
|
||||
export * from "./components/FormGroup";
|
||||
export * from "./components/FormItem";
|
||||
export * from "./components/FormLabel";
|
||||
export * from "./components/Icon";
|
||||
export * from "./components/InlineCheckbox";
|
||||
export * from "./components/InlineLoading";
|
||||
export * from "./components/Link";
|
||||
export * from "./components/ListBox";
|
||||
export * from "./components/ListItem";
|
||||
export * from "./components/Loading";
|
||||
export * from "./components/Modal";
|
||||
export * from "./components/ModalWrapper";
|
||||
export * from "./components/MultiSelect";
|
||||
export * from "./components/Notification";
|
||||
export * from "./components/NumberInput";
|
||||
export * from "./components/OrderedList";
|
||||
export * from "./components/OverflowMenu";
|
||||
export * from "./components/OverflowMenuItem";
|
||||
export * from "./components/Pagination";
|
||||
export * from "./components/PrimaryButton";
|
||||
export * from "./components/ProgressIndicator";
|
||||
export * from "./components/RadioButton";
|
||||
export * from "./components/RadioButtonGroup";
|
||||
export * from "./components/RadioTile";
|
||||
export * from "./components/Search";
|
||||
export * from "./components/SearchFilterButton";
|
||||
export * from "./components/SearchLayoutButton";
|
||||
export * from "./components/SecondaryButton";
|
||||
export * from "./components/Select";
|
||||
export * from "./components/SelectItem";
|
||||
export * from "./components/SelectItemGroup";
|
||||
export * from "./components/SkeletonPlaceholder";
|
||||
export * from "./components/SkeletonText";
|
||||
export * from "./components/Slider";
|
||||
export * from "./components/StructuredList";
|
||||
export * from "./components/Switch";
|
||||
export * from "./components/Tab";
|
||||
export * from "./components/TabContent";
|
||||
export * from "./components/Tabs";
|
||||
export * from "./components/Tag";
|
||||
export * from "./components/TextArea";
|
||||
export * from "./components/TextInput";
|
||||
export * from "./components/Tile";
|
||||
export * from "./components/TileGroup";
|
||||
export * from "./components/TimePicker";
|
||||
export * from "./components/TimePickerSelect";
|
||||
export * from "./components/Toggle";
|
||||
export * from "./components/ToggleSmall";
|
||||
export * from "./components/Toolbar";
|
||||
export * from "./components/ToolbarSearch";
|
||||
export * from "./components/Tooltip";
|
||||
export * from "./components/TooltipDefinition";
|
||||
export * from "./components/TooltipIcon";
|
||||
export * from "./components/UIShell";
|
||||
export * from "./components/UnorderedList";
|
||||
export * from "./lib/components/Accordion";
|
||||
export * from "./lib/components/AccordionItem";
|
||||
export * from "./lib/components/Breadcrumb";
|
||||
export * from "./lib/components/BreadcrumbItem";
|
||||
export * from "./lib/components/Button";
|
||||
export * from "./lib/components/Checkbox";
|
||||
export * from "./lib/components/CodeSnippet";
|
||||
export * from "./lib/components/ComboBox";
|
||||
export * from "./lib/components/ComposedModal";
|
||||
export * from "./lib/components/ContentSwitcher";
|
||||
export * from "./lib/components/Copy";
|
||||
export * from "./lib/components/CopyButton";
|
||||
export * from "./lib/components/DangerButton";
|
||||
export * from "./lib/components/DataTable";
|
||||
export * from "./lib/components/DataTableSkeleton";
|
||||
export * from "./lib/components/DatePicker";
|
||||
export * from "./lib/components/DatePickerInput";
|
||||
export * from "./lib/components/Dropdown";
|
||||
export * from "./lib/components/FileUploader";
|
||||
export * from "./lib/components/Form";
|
||||
export * from "./lib/components/FormGroup";
|
||||
export * from "./lib/components/FormItem";
|
||||
export * from "./lib/components/FormLabel";
|
||||
export * from "./lib/components/Icon";
|
||||
export * from "./lib/components/InlineCheckbox";
|
||||
export * from "./lib/components/InlineLoading";
|
||||
export * from "./lib/components/Link";
|
||||
export * from "./lib/components/ListBox";
|
||||
export * from "./lib/components/ListItem";
|
||||
export * from "./lib/components/Loading";
|
||||
export * from "./lib/components/Modal";
|
||||
export * from "./lib/components/ModalWrapper";
|
||||
export * from "./lib/components/MultiSelect";
|
||||
export * from "./lib/components/Notification";
|
||||
export * from "./lib/components/NumberInput";
|
||||
export * from "./lib/components/OrderedList";
|
||||
export * from "./lib/components/OverflowMenu";
|
||||
export * from "./lib/components/OverflowMenuItem";
|
||||
export * from "./lib/components/Pagination";
|
||||
export * from "./lib/components/PrimaryButton";
|
||||
export * from "./lib/components/ProgressIndicator";
|
||||
export * from "./lib/components/RadioButton";
|
||||
export * from "./lib/components/RadioButtonGroup";
|
||||
export * from "./lib/components/RadioTile";
|
||||
export * from "./lib/components/Search";
|
||||
export * from "./lib/components/SearchFilterButton";
|
||||
export * from "./lib/components/SearchLayoutButton";
|
||||
export * from "./lib/components/SecondaryButton";
|
||||
export * from "./lib/components/Select";
|
||||
export * from "./lib/components/SelectItem";
|
||||
export * from "./lib/components/SelectItemGroup";
|
||||
export * from "./lib/components/SkeletonPlaceholder";
|
||||
export * from "./lib/components/SkeletonText";
|
||||
export * from "./lib/components/Slider";
|
||||
export * from "./lib/components/StructuredList";
|
||||
export * from "./lib/components/Switch";
|
||||
export * from "./lib/components/Tab";
|
||||
export * from "./lib/components/TabContent";
|
||||
export * from "./lib/components/Tabs";
|
||||
export * from "./lib/components/Tag";
|
||||
export * from "./lib/components/TextArea";
|
||||
export * from "./lib/components/TextInput";
|
||||
export * from "./lib/components/Tile";
|
||||
export * from "./lib/components/TileGroup";
|
||||
export * from "./lib/components/TimePicker";
|
||||
export * from "./lib/components/TimePickerSelect";
|
||||
export * from "./lib/components/Toggle";
|
||||
export * from "./lib/components/ToggleSmall";
|
||||
export * from "./lib/components/Toolbar";
|
||||
export * from "./lib/components/ToolbarSearch";
|
||||
export * from "./lib/components/Tooltip";
|
||||
export * from "./lib/components/TooltipDefinition";
|
||||
export * from "./lib/components/TooltipIcon";
|
||||
export * from "./lib/components/UIShell";
|
||||
export * from "./lib/components/UnorderedList";
|
||||
|
||||
export { _Accordion as Accordion };
|
||||
export { _AccordionItem as AccordionItem };
|
||||
export { Breadcrumb, BreadcrumbItem } from "./components/Breadcrumb";
|
||||
export { Breadcrumb, BreadcrumbItem } from "./lib/components/Breadcrumb";
|
||||
export { _Button as Button };
|
||||
export { _Checkbox as Checkbox };
|
||||
export { _CodeSnippet as CodeSnippet };
|
||||
export { _ComboBox as ComboBox };
|
||||
export { _ComposedModal as ComposedModal };
|
||||
export { ModalHeader, ModalBody, ModalFooter } from "./components/ComposedModal";
|
||||
export { ModalHeader, ModalBody, ModalFooter } from "./lib/components/ComposedModal";
|
||||
export { _ContentSwitcher as ContentSwitcher };
|
||||
export { _Copy as Copy };
|
||||
export { _CopyButton as CopyButton };
|
||||
@ -205,12 +205,12 @@ export {
|
||||
TableToolbarContent,
|
||||
TableToolbarSearch,
|
||||
TableToolbarMenu
|
||||
} from "./components/DataTable";
|
||||
} from "./lib/components/DataTable";
|
||||
export { _DatePicker as DatePicker };
|
||||
export { _DatePickerInput as DatePickerInput };
|
||||
export { _Dropdown as Dropdown };
|
||||
export { _FileUploader as FileUploader };
|
||||
export { Filename, FileUploaderButton } from "./components/FileUploader";
|
||||
export { Filename, FileUploaderButton } from "./lib/components/FileUploader";
|
||||
export { _Form as Form };
|
||||
export { _FormGroup as FormGroup };
|
||||
export { _FormItem as FormItem };
|
||||
@ -223,14 +223,14 @@ export { _Loading as Loading };
|
||||
export { _Modal as Modal };
|
||||
export { _ModalWrapper as ModalWrapper };
|
||||
export { _MultiSelect as MultiSelect };
|
||||
export { ToastNotification, InlineNotification, NotificationActionButton, NotificationButton, NotificationTextDetails } from "./components/Notification";
|
||||
export { ToastNotification, InlineNotification, NotificationActionButton, NotificationButton, NotificationTextDetails } from "./lib/components/Notification";
|
||||
export { _NumberInput as NumberInput };
|
||||
export { _OrderedList as OrderedList };
|
||||
export { _OverflowMenu as OverflowMenu };
|
||||
export { _OverflowMenuItem as OverflowMenuItem };
|
||||
export { _Pagination as Pagination };
|
||||
export { _PrimaryButton as PrimaryButton };
|
||||
export { ProgressIndicator, ProgressStep } from "./components/ProgressIndicator";
|
||||
export { ProgressIndicator, ProgressStep } from "./lib/components/ProgressIndicator";
|
||||
export { _RadioButton as RadioButton };
|
||||
export { _RadioButtonGroup as RadioButtonGroup };
|
||||
export { _Search as Search };
|
||||
@ -242,14 +242,14 @@ export { _SelectItem as SelectItem };
|
||||
export { _SelectItemGroup as SelectItemGroup };
|
||||
export { _Switch as Switch };
|
||||
export { _Slider as Slider };
|
||||
export { StructuredListWrapper, StructuredListHead, StructuredListBody, StructuredListRow, StructuredListInput, StructuredListCell } from "./components/StructuredList";
|
||||
export { StructuredListWrapper, StructuredListHead, StructuredListBody, StructuredListRow, StructuredListInput, StructuredListCell } from "./lib/components/StructuredList";
|
||||
export { _Tab as Tab };
|
||||
export { _TabContent as TabContent };
|
||||
export { _Tabs as Tabs };
|
||||
export { _Tag as Tag };
|
||||
export { _TextArea as TextArea };
|
||||
export { _TextInput as TextInput };
|
||||
export { Tile, ClickableTile, SelectableTile, ExpandableTile, TileAboveTheFoldContent, TileBelowTheFoldContent } from "./components/Tile";
|
||||
export { Tile, ClickableTile, SelectableTile, ExpandableTile, TileAboveTheFoldContent, TileBelowTheFoldContent } from "./lib/components/Tile";
|
||||
export { _RadioTile as RadioTile };
|
||||
export { _TileGroup as TileGroup };
|
||||
export { _TimePicker as TimePicker };
|
||||
@ -257,7 +257,7 @@ export { _TimePickerSelect as TimePickerSelect };
|
||||
export { _Toggle as Toggle };
|
||||
export { _ToggleSmall as ToggleSmall };
|
||||
export { _Toolbar as Toolbar };
|
||||
export { ToolbarItem, ToolbarTitle, ToolbarOption, ToolbarDivider } from "./components/Toolbar";
|
||||
export { ToolbarItem, ToolbarTitle, ToolbarOption, ToolbarDivider } from "./lib/components/Toolbar";
|
||||
export { _ToolbarSearch as ToolbarSearch };
|
||||
export { _Tooltip as Tooltip };
|
||||
export { _TooltipDefinition as TooltipDefinition };
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps {
|
||||
children?: ReactAttr["children"],
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { EmbeddedIconProps, ReactLIAttr } from "../../typings/shared";
|
||||
import { EmbeddedIconProps, ReactLIAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactLIAttr, EmbeddedIconProps { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactAttr { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr } from "../../typings/shared";
|
||||
import { ReactDivAttr } from "../../../typings/shared";
|
||||
import { LinkProps } from "../Link";
|
||||
|
||||
interface InheritedProps extends ReactDivAttr {
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAnchorAttr, SizingProps } from "../../typings/shared";
|
||||
import { ReactAnchorAttr, SizingProps } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends SizingProps {
|
||||
className?: ReactAnchorAttr["className"],
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { EmbeddedIconProps, EmbeddedTooltipProps, ReactAnchorAttr, ReactButtonAttr, ReactCreateElementParam, RenderIconProps, SizingProps, } from "../../typings/shared";
|
||||
import { EmbeddedIconProps, EmbeddedTooltipProps, ReactAnchorAttr, ReactButtonAttr, ReactCreateElementParam, RenderIconProps, SizingProps, } from "../../../typings/shared";
|
||||
|
||||
export type ButtonKind = "danger" | "danger--primary" | "ghost" | "primary" | "secondary" | "tertiary";
|
||||
export type ButtonSize = "default" | "field" | "small";
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactLabelAttr } from "../../typings/shared";
|
||||
import { ReactLabelAttr } from "../../../typings/shared";
|
||||
|
||||
export interface CheckboxSkeletonProps {
|
||||
id?: ReactLabelAttr["htmlFor"],
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactInputAttr, RequiresIdProps } from "../../typings/shared";
|
||||
import { ReactInputAttr, RequiresIdProps } from "../../../typings/shared";
|
||||
|
||||
type ExcludedAttributes = "id" | "onChange" | "type";
|
||||
interface InheritedProps extends
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr } from "../../typings/shared";
|
||||
import { ReactDivAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends Omit<ReactDivAttr, "children"> { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr, ThemeProps } from "../../typings/shared";
|
||||
import { ReactDivAttr, ThemeProps } from "../../../typings/shared";
|
||||
import { CopyProps } from "../Copy";
|
||||
|
||||
interface InheritedDivProps extends Omit<ReactDivAttr, "children"> { }
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { DownshiftTypedProps, InternationalProps, ReactInputAttr, RequiresIdProps, ThemeProps, ValidityProps } from "../../typings/shared";
|
||||
import { DownshiftTypedProps, InternationalProps, ReactInputAttr, RequiresIdProps, ThemeProps, ValidityProps } from "../../../typings/shared";
|
||||
import { ListBoxProps } from "../ListBox";
|
||||
import { ListBoxMenuIconTranslationKey } from "../ListBox/ListBoxMenuIcon";
|
||||
import { ListBoxSelectionTranslationKey } from "../ListBox/ListBoxSelection";
|
||||
@ -18,13 +18,17 @@ interface InheritedProps<ItemType> extends
|
||||
type?: ListBoxProps["type"],
|
||||
}
|
||||
|
||||
export interface ComboBoxProps<ItemType = string> extends InheritedProps<ItemType> {
|
||||
downshiftProps: any, // TODO
|
||||
export interface ComboBoxProps<ItemType = string, CustomElementProps = Extract<ItemType, object>>
|
||||
extends InheritedProps<ItemType> {
|
||||
downshiftProps?: any, // TODO
|
||||
helperText?: React.ReactNode,
|
||||
initialSelectedItem?: ItemType;
|
||||
items: ItemType[],
|
||||
onChange?(selectedItem?: ItemType): void,
|
||||
itemToElement?: CustomElementProps extends object ? React.ComponentType<CustomElementProps> : never,
|
||||
onChange?(data: { selectedItem?: ItemType }): void,
|
||||
onInputChange?(inputValue?: string): void,
|
||||
shouldFilterItem?(item: ItemType, itemToString?: ComboBoxProps<ItemType>["itemToString"], inputValue?: string): void,
|
||||
titleText?: React.ReactNode,
|
||||
}
|
||||
|
||||
declare class ComboBox<T = string> extends React.Component<ComboBoxProps<T>> { }
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { EmbeddedIconProps, ReactDivAttr } from "../../typings/shared";
|
||||
import { EmbeddedIconProps, ReactDivAttr } from "../../../typings/shared";
|
||||
import { ButtonProps } from "../Button";
|
||||
|
||||
// ComposedModal
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr } from "../../typings/shared";
|
||||
import { ReactDivAttr } from "../../../typings/shared";
|
||||
import { SwitchProps } from "./Switch";
|
||||
|
||||
interface InheritedProps extends Omit<ReactDivAttr, "onChange"> {
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactButtonAttr } from "../../typings/shared";
|
||||
import { ReactButtonAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends Omit<ReactButtonAttr, "onClick"> { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactButtonAttr } from "../../typings/shared";
|
||||
import { ReactButtonAttr } from "../../../typings/shared";
|
||||
|
||||
export interface FeedbackProps {
|
||||
feedback?: string,
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { EmbeddedIconProps, ReactButtonAttr } from "../../typings/shared";
|
||||
import { EmbeddedIconProps, ReactButtonAttr } from "../../../typings/shared";
|
||||
import { FeedbackProps } from "../Copy";
|
||||
|
||||
interface InheritedProps extends
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { InternationalProps, ReactAttr, ReactDivAttr, ShapeOf } from '../../typings/shared';
|
||||
import { InternationalProps, ReactAttr, ReactDivAttr, ShapeOf } from "../../../typings/shared";
|
||||
import { DataTableSortState, DataTableSortStates } from "./state/sorting";
|
||||
import Table, { TableCarbonProps } from "./Table";
|
||||
import TableActionList from "./TableActionList";
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr } from "../../typings/shared";
|
||||
import { ReactDivAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactDivAttr { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { InternationalProps, ReactDivAttr } from "../../typings/shared";
|
||||
import { InternationalProps, ReactDivAttr } from "../../../typings/shared";
|
||||
|
||||
export type TableBatchActionsTranslationKey = "carbon.table.batch.cancel" | "carbon.table.batch.items.selected" | "carbon.table.batch.item.selected";
|
||||
interface InheritedProps extends ReactDivAttr, InternationalProps<TableBatchActionsTranslationKey> { }
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactAttr<HTMLTableSectionElement> { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr } from "../../typings/shared";
|
||||
import { ReactDivAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends Omit<ReactDivAttr, "title"> { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactAttr<HTMLTableRowElement> {
|
||||
ariaLabel: NonNullable<React.AriaAttributes["aria-label"]>,
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactAttr<HTMLTableRowElement> { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactAttr<HTMLTableSectionElement> { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { InternationalProps, ReactButtonAttr } from "../../typings/shared";
|
||||
import { InternationalProps, ReactButtonAttr } from "../../../typings/shared";
|
||||
import { DataTableSortState } from './state/sorting';
|
||||
|
||||
export type TableHeaderTranslationKey = "carbon.table.header.icon.description";
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactAttr<HTMLTableRowElement> { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
import { InlineCheckboxProps } from "../InlineCheckbox";
|
||||
|
||||
interface InheritedProps {
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr, ReactInputAttr, RequiresIdProps } from "../../typings/shared";
|
||||
import { ReactAttr, ReactInputAttr, RequiresIdProps } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends RequiresIdProps {
|
||||
ariaLabel?: React.AriaAttributes["aria-label"],
|
||||
22
types/carbon-components-react/lib/components/DataTable/TableToolbarAction.d.ts
vendored
Normal file
22
types/carbon-components-react/lib/components/DataTable/TableToolbarAction.d.ts
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
import * as React from "react";
|
||||
import { RequiresChildrenProps } from "../../../typings/shared";
|
||||
import { OverflowMenuItemAnchorProps, OverflowMenuItemButtonProps } from "../OverflowMenuItem";
|
||||
|
||||
export interface TableToolbarActionAnchorProps extends
|
||||
Omit<OverflowMenuItemAnchorProps, "children" | "itemText">,
|
||||
RequiresChildrenProps
|
||||
{
|
||||
itemText?: React.ReactNode,
|
||||
}
|
||||
|
||||
export interface TableToolbarActionButtonProps extends
|
||||
Omit<OverflowMenuItemButtonProps, "children" | "itemText">,
|
||||
RequiresChildrenProps
|
||||
{
|
||||
itemText?: React.ReactNode,
|
||||
}
|
||||
|
||||
export type AllTableToolbarActionProps = TableToolbarActionAnchorProps | TableToolbarActionButtonProps;
|
||||
declare const TableToolbarAction: React.FC<AllTableToolbarActionProps>;
|
||||
|
||||
export default TableToolbarAction;
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr } from "../../typings/shared";
|
||||
import { ReactDivAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactDivAttr { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { RequiresChildrenProps } from "../../typings/shared";
|
||||
import { RequiresChildrenProps } from "../../../typings/shared";
|
||||
import { OverflowMenuProps } from "../OverflowMenu";
|
||||
|
||||
interface InheritedProps extends
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { InternationalProps, ReactAttr } from "../../typings/shared";
|
||||
import { InternationalProps, ReactAttr } from "../../../typings/shared";
|
||||
import { SearchProps } from "../Search";
|
||||
|
||||
type ExcludedAttributes = "aria-hidden" | "labelText" | "small";
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ShapeOf } from "../../typings/shared";
|
||||
import { ShapeOf } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends React.TableHTMLAttributes<HTMLTableElement> { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps {
|
||||
id?: ReactAttr["id"],
|
||||
@ -1,7 +1,7 @@
|
||||
import { key as LocaleKey } from "flatpickr/dist/types/locale";
|
||||
import { DateOption, Hook } from "flatpickr/dist/types/options";
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr, ThemeProps } from "../../typings/shared";
|
||||
import { ReactDivAttr, ThemeProps } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends
|
||||
Omit<ReactDivAttr, "onChange">,
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { EmbeddedIconProps, ReactInputAttr, RequiresIdProps, ValidityProps } from "../../typings/shared";
|
||||
import { EmbeddedIconProps, ReactInputAttr, RequiresIdProps, ValidityProps } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends
|
||||
Omit<ReactInputAttr, "className" | "id">,
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { DownshiftTypedProps, InternationalProps, ReactInputAttr, ThemeProps, ValidityProps } from "../../typings/shared";
|
||||
import { DownshiftTypedProps, InternationalProps, ReactInputAttr, ThemeProps, ValidityProps } from "../../../typings/shared";
|
||||
import { ListBoxProps } from "../ListBox";
|
||||
import { ListBoxMenuIconTranslationKey } from "../ListBox/ListBoxMenuIcon";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { EmbeddedIconProps, ReactDivAttr, ReactInputAttr, ReactLabelAttr } from "../../typings/shared";
|
||||
import { EmbeddedIconProps, ReactDivAttr, ReactInputAttr, ReactLabelAttr } from "../../../typings/shared";
|
||||
import { ButtonKind } from "../Button";
|
||||
|
||||
interface SharedProps {
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ValidityProps } from "../../typings/shared";
|
||||
import { ValidityProps } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends React.FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
||||
invalid?: ValidityProps["invalid"],
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr } from "../../typings/shared";
|
||||
import { ReactDivAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactDivAttr { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactLabelAttr } from "../../typings/shared";
|
||||
import { ReactLabelAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends Omit<ReactLabelAttr, "htmlFor"> { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAttr } from "../../typings/shared";
|
||||
import { ReactAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps {
|
||||
style?: ReactAttr["style"],
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactInputAttr, RequiresIdProps } from "../../typings/shared";
|
||||
import { ReactInputAttr, RequiresIdProps } from "../../../typings/shared";
|
||||
|
||||
type ExcludedAttributes = "aria-label" | "className" | "id" | "onChange" | "ref" | "type";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { EmbeddedIconProps, ReactDivAttr } from "../../typings/shared";
|
||||
import { EmbeddedIconProps, ReactDivAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactDivAttr, EmbeddedIconProps { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactAnchorAttr } from "../../typings/shared";
|
||||
import { ReactAnchorAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactAnchorAttr { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr } from "../../typings/shared";
|
||||
import { ReactDivAttr } from "../../../typings/shared";
|
||||
import { ListBoxFieldComponent } from "./ListBoxField";
|
||||
import { ListBoxMenuComponent } from "./ListBoxMenu";
|
||||
import { ListBoxMenuIconComponent } from "./ListBoxMenuIcon";
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { InternationalProps, ReactDivAttr, RequiresIdProps } from "../../typings/shared";
|
||||
import { InternationalProps, ReactDivAttr, RequiresIdProps } from "../../../typings/shared";
|
||||
|
||||
export type ListBoxFieldTranslationKey = "close.menu" | "open.menu";
|
||||
interface InheritedProps extends
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr, RequiresIdProps } from "../../typings/shared";
|
||||
import { ReactDivAttr, RequiresIdProps } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends
|
||||
Omit<ReactDivAttr, "id">,
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { InternationalProps } from "../../typings/shared";
|
||||
import { InternationalProps } from "../../../typings/shared";
|
||||
|
||||
export type ListBoxMenuIconTranslationKey = "close.menu" | "open.menu";
|
||||
interface InheritedProps extends InternationalProps<ListBoxMenuIconTranslationKey> { }
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr } from "../../typings/shared";
|
||||
import { ReactDivAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactDivAttr { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { InternationalProps } from "../../typings/shared";
|
||||
import { InternationalProps } from "../../../typings/shared";
|
||||
|
||||
export type ListBoxSelectionTranslationKey = "clear.all" | "clear.selection";
|
||||
interface InheritedProps extends InternationalProps<ListBoxSelectionTranslationKey> { }
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactLIAttr } from "../../typings/shared";
|
||||
import { ReactLIAttr } from "../../../typings/shared";
|
||||
|
||||
interface InheritedProps extends ReactLIAttr { }
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ReactDivAttr, SizingProps } from "../../typings/shared";
|
||||
import { ReactDivAttr, SizingProps } from "../../../typings/shared";
|
||||
|
||||
type ExcludedAttributes = "aria-label" | "aria-live";
|
||||
interface InheritedProps extends
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user