@carbon/react 1.21.0-rc.0 → 1.22.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Accordion/AccordionItem.js +2 -2
- package/es/components/Breadcrumb/Breadcrumb.js +2 -1
- package/es/components/Breadcrumb/BreadcrumbItem.js +2 -1
- package/es/components/Button/Button.Skeleton.js +2 -1
- package/es/components/Button/Button.js +2 -1
- package/es/components/Button/index.js +0 -1
- package/es/components/ButtonSet/ButtonSet.js +2 -1
- package/es/components/CodeSnippet/CodeSnippet.js +0 -1
- package/es/components/ComboBox/ComboBox.js +7 -7
- package/es/components/ComposedModal/ComposedModal.js +3 -2
- package/es/components/ComposedModal/ModalFooter.js +0 -1
- package/es/components/ContentSwitcher/ContentSwitcher.js +3 -3
- package/es/components/DangerButton/DangerButton.js +3 -2
- package/es/components/DataTable/Table.js +2 -1
- package/es/components/DataTable/TableActionList.js +2 -1
- package/es/components/DataTable/TableBatchAction.js +2 -2
- package/es/components/DataTable/TableBatchActions.js +2 -2
- package/es/components/DataTable/TableBody.js +2 -1
- package/es/components/DataTable/TableCell.js +2 -1
- package/es/components/DataTable/TableContainer.js +2 -1
- package/es/components/DataTable/TableExpandHeader.js +2 -1
- package/es/components/DataTable/TableExpandRow.js +2 -1
- package/es/components/DataTable/TableExpandedRow.js +2 -1
- package/es/components/DataTable/TableHead.js +2 -1
- package/es/components/DataTable/TableHeader.js +2 -1
- package/es/components/DataTable/TableRow.js +2 -1
- package/es/components/DataTable/TableSelectAll.js +2 -1
- package/es/components/DataTable/TableSelectRow.js +2 -1
- package/es/components/DataTable/TableToolbar.js +3 -2
- package/es/components/DataTable/TableToolbarAction.js +2 -1
- package/es/components/DataTable/TableToolbarContent.js +2 -1
- package/es/components/DataTable/TableToolbarMenu.js +2 -1
- package/es/components/DataTable/TableToolbarSearch.js +2 -2
- package/es/components/DataTable/state/getDerivedStateFromProps.js +3 -1
- package/es/components/DataTable/tools/denormalize.js +3 -1
- package/es/components/DataTable/tools/instanceId.js +3 -1
- package/es/components/DataTable/tools/normalize.js +3 -1
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +2 -1
- package/es/components/DatePicker/DatePicker.Skeleton.js +2 -1
- package/es/components/DatePicker/DatePicker.js +4 -3
- package/es/components/DatePicker/index.js +0 -1
- package/es/components/DatePicker/plugins/fixEventsPlugin.js +32 -1
- package/es/components/DatePickerInput/DatePickerInput.js +2 -1
- package/es/components/Dropdown/Dropdown.Skeleton.js +2 -1
- package/es/components/Dropdown/Dropdown.js +27 -14
- package/es/components/Dropdown/index.js +0 -1
- package/es/components/ExpandableSearch/ExpandableSearch.js +0 -1
- package/es/components/FileUploader/FileUploader.js +2 -2
- package/es/components/FileUploader/FileUploaderButton.js +2 -2
- package/es/components/FileUploader/FileUploaderDropContainer.js +2 -2
- package/es/components/FileUploader/FileUploaderItem.js +2 -2
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +2 -1
- package/es/components/FluidComboBox/FluidComboBox.js +2 -1
- package/es/components/FluidDatePicker/FluidDatePicker.js +2 -2
- package/es/components/FluidDatePickerInput/FluidDatePickerInput.js +2 -1
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +2 -1
- package/es/components/FluidDropdown/FluidDropdown.js +2 -2
- package/es/components/FluidForm/FluidForm.js +2 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +2 -1
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +2 -1
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +2 -1
- package/es/components/FluidSelect/FluidSelect.js +2 -2
- package/es/components/FluidSelect/index.js +0 -1
- package/es/components/FluidTextArea/FluidTextArea.js +0 -1
- package/es/components/FluidTextInput/FluidTextInput.js +0 -1
- package/es/components/FluidTextInput/index.js +0 -1
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +2 -3
- package/es/components/FluidTimePicker/FluidTimePicker.js +2 -2
- package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +2 -2
- package/es/components/Form/Form.js +2 -1
- package/es/components/FormGroup/FormGroup.js +2 -1
- package/es/components/IconButton/index.js +0 -2
- package/es/components/InlineCheckbox/InlineCheckbox.js +4 -1
- package/es/components/Link/Link.js +2 -1
- package/es/components/ListBox/ListBox.js +4 -15
- package/es/components/ListBox/ListBoxField.js +1 -1
- package/es/components/ListBox/ListBoxMenu.js +2 -2
- package/es/components/ListBox/ListBoxMenuIcon.js +8 -5
- package/es/components/ListBox/ListBoxMenuItem.js +2 -3
- package/es/components/ListBox/ListBoxPropTypes.js +4 -2
- package/es/components/ListBox/ListBoxSelection.js +7 -20
- package/es/components/ListBox/index.js +11 -8
- package/es/components/ListBox/next/ListBoxSelection.js +3 -3
- package/es/components/ListBox/next/ListBoxTrigger.js +2 -1
- package/es/components/ListItem/ListItem.js +2 -1
- package/es/components/Menu/Menu.js +4 -3
- package/es/components/Menu/MenuOption.js +2 -2
- package/es/components/Modal/Modal.js +3 -3
- package/es/components/ModalWrapper/ModalWrapper.js +0 -1
- package/es/components/MultiSelect/FilterableMultiSelect.js +8 -8
- package/es/components/MultiSelect/MultiSelect.js +6 -6
- package/es/components/Notification/Notification.js +4 -5
- package/es/components/OrderedList/OrderedList.js +2 -1
- package/es/components/OverflowMenu/OverflowMenu.js +14 -3
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +4 -3
- package/es/components/OverflowMenuV2/index.js +2 -2
- package/es/components/Pagination/Pagination.js +2 -2
- package/es/components/Pagination/experimental/PageSelector.js +0 -1
- package/es/components/Pagination/experimental/Pagination.js +0 -2
- package/es/components/PaginationNav/PaginationNav.js +2 -2
- package/es/components/Popover/index.js +5 -1
- package/es/components/PrimaryButton/PrimaryButton.js +3 -2
- package/es/components/ProgressIndicator/ProgressIndicator.js +2 -2
- package/es/components/RadioButton/RadioButton.js +2 -1
- package/es/components/RadioButtonGroup/RadioButtonGroup.js +2 -1
- package/es/components/RadioTile/RadioTile.js +2 -2
- package/es/components/Search/Search.Skeleton.js +2 -1
- package/es/components/Search/Search.js +6 -5
- package/es/components/Search/index.js +0 -1
- package/es/components/SecondaryButton/SecondaryButton.js +3 -2
- package/es/components/Select/Select.Skeleton.js +2 -1
- package/es/components/Select/Select.js +2 -1
- package/es/components/Select/index.js +0 -1
- package/es/components/SelectItem/SelectItem.js +2 -1
- package/es/components/SelectItemGroup/SelectItemGroup.js +2 -1
- package/es/components/SkeletonIcon/SkeletonIcon.js +2 -1
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +2 -1
- package/es/components/SkeletonText/SkeletonText.js +2 -1
- package/es/components/Slider/Slider.Skeleton.js +2 -1
- package/es/components/Slider/Slider.js +1 -1
- package/es/components/Stack/Stack.js +9 -5
- package/es/components/StructuredList/StructuredList.Skeleton.js +2 -1
- package/es/components/Switch/Switch.js +2 -1
- package/es/components/Tab/Tab.js +1 -1
- package/es/components/TabContent/TabContent.js +2 -1
- package/es/components/Tabs/Tabs.js +2 -3
- package/es/components/Tag/Tag.js +2 -1
- package/es/components/TextArea/TextArea.Skeleton.js +2 -1
- package/es/components/TextArea/TextArea.js +6 -3
- package/es/components/TextArea/index.js +0 -1
- package/es/components/TextInput/ControlledPasswordInput.js +2 -1
- package/es/components/TextInput/PasswordInput.js +2 -1
- package/es/components/TextInput/TextInput.Skeleton.js +2 -1
- package/es/components/TextInput/TextInput.js +2 -1
- package/es/components/TextInput/index.js +0 -1
- package/es/components/Tile/Tile.js +3 -7
- package/es/components/TileGroup/TileGroup.js +1 -1
- package/es/components/TimePicker/TimePicker.js +2 -1
- package/es/components/TimePickerSelect/TimePickerSelect.js +2 -1
- package/es/components/TimePickerSelect/index.js +2 -2
- package/es/components/Toggle/Toggle.js +27 -8
- package/es/components/Toggletip/index.js +2 -2
- package/es/components/Tooltip/DefinitionTooltip.js +2 -2
- package/es/components/Tooltip/Tooltip.js +2 -2
- package/es/components/TreeView/TreeNode.js +2 -2
- package/es/components/TreeView/TreeView.js +2 -2
- package/es/components/UIShell/Content.js +2 -1
- package/es/components/UIShell/Header.js +3 -2
- package/es/components/UIShell/HeaderContainer.js +2 -1
- package/es/components/UIShell/HeaderGlobalAction.js +3 -3
- package/es/components/UIShell/HeaderMenu.js +5 -4
- package/es/components/UIShell/HeaderMenuButton.js +1 -1
- package/es/components/UIShell/HeaderMenuItem.js +3 -2
- package/es/components/UIShell/HeaderName.js +1 -1
- package/es/components/UIShell/HeaderNavigation.js +1 -1
- package/es/components/UIShell/HeaderPanel.js +3 -2
- package/es/components/UIShell/HeaderSideNavItems.js +2 -1
- package/es/components/UIShell/Link.js +2 -1
- package/es/components/UIShell/SideNav.js +3 -2
- package/es/components/UIShell/SideNavDetails.js +2 -1
- package/es/components/UIShell/SideNavHeader.js +2 -1
- package/es/components/UIShell/SideNavItems.js +2 -1
- package/es/components/UIShell/SideNavLink.js +3 -2
- package/es/components/UIShell/SideNavMenu.js +5 -3
- package/es/components/UIShell/SideNavMenuItem.js +2 -1
- package/es/components/UIShell/SideNavSwitcher.js +2 -1
- package/es/components/UIShell/Switcher.js +3 -2
- package/es/components/UIShell/SwitcherDivider.js +2 -1
- package/es/components/UIShell/SwitcherItem.js +3 -2
- package/es/components/UnorderedList/UnorderedList.js +2 -1
- package/es/es/components/DataTable/TableSelectAll.d.ts +83 -0
- package/es/es/components/Dropdown/Dropdown.d.ts +134 -0
- package/es/es/components/Dropdown/index.d.ts +11 -0
- package/es/es/components/FluidForm/FluidForm.d.ts +11 -0
- package/es/es/components/FluidForm/FormContext.d.ts +11 -0
- package/es/es/components/FluidForm/index.d.ts +10 -0
- package/es/es/components/ListBox/ListBox.d.ts +60 -0
- package/es/es/components/ListBox/ListBoxField.d.ts +18 -0
- package/es/es/components/ListBox/ListBoxMenu.d.ts +22 -0
- package/es/es/components/ListBox/ListBoxMenuIcon.d.ts +31 -0
- package/es/es/components/ListBox/ListBoxMenuItem.d.ts +24 -0
- package/es/es/components/ListBox/ListBoxPropTypes.d.ts +14 -0
- package/es/es/components/ListBox/ListBoxSelection.d.ts +51 -0
- package/es/es/components/ListBox/index.d.ts +23 -0
- package/es/es/components/NumberInput/NumberInput.Skeleton.d.ts +32 -0
- package/es/es/components/Slider/Slider.Skeleton.d.ts +33 -0
- package/es/index.js +134 -140
- package/es/internal/ClickListener.js +1 -1
- package/es/internal/FloatingMenu.js +4 -2
- package/es/internal/OptimizedResize.js +3 -1
- package/es/internal/Selection.js +1 -1
- package/es/internal/useIsomorphicEffect.js +2 -1
- package/es/node_modules/flatpickr/dist/plugins/rangePlugin.js +1 -1
- package/es/tools/mergeRefs.js +3 -1
- package/es/tools/wrapComponent.js +3 -1
- package/lib/components/Accordion/AccordionItem.js +2 -2
- package/lib/components/Breadcrumb/Breadcrumb.js +2 -1
- package/lib/components/Breadcrumb/BreadcrumbItem.js +2 -1
- package/lib/components/Button/Button.Skeleton.js +2 -1
- package/lib/components/Button/Button.js +2 -1
- package/lib/components/Button/index.js +0 -2
- package/lib/components/ButtonSet/ButtonSet.js +2 -1
- package/lib/components/CodeSnippet/CodeSnippet.js +0 -1
- package/lib/components/ComboBox/ComboBox.js +10 -10
- package/lib/components/ComposedModal/ComposedModal.js +2 -1
- package/lib/components/ComposedModal/ModalFooter.js +0 -1
- package/lib/components/ContentSwitcher/ContentSwitcher.js +2 -2
- package/lib/components/DangerButton/DangerButton.js +3 -2
- package/lib/components/DataTable/DataTable.js +5 -5
- package/lib/components/DataTable/Table.js +2 -1
- package/lib/components/DataTable/TableActionList.js +2 -1
- package/lib/components/DataTable/TableBatchAction.js +2 -2
- package/lib/components/DataTable/TableBatchActions.js +2 -2
- package/lib/components/DataTable/TableBody.js +2 -1
- package/lib/components/DataTable/TableCell.js +2 -1
- package/lib/components/DataTable/TableContainer.js +2 -1
- package/lib/components/DataTable/TableExpandHeader.js +2 -1
- package/lib/components/DataTable/TableExpandRow.js +2 -1
- package/lib/components/DataTable/TableExpandedRow.js +2 -1
- package/lib/components/DataTable/TableHead.js +2 -1
- package/lib/components/DataTable/TableHeader.js +2 -1
- package/lib/components/DataTable/TableRow.js +2 -1
- package/lib/components/DataTable/TableSelectAll.js +2 -1
- package/lib/components/DataTable/TableSelectRow.js +2 -1
- package/lib/components/DataTable/TableToolbar.js +2 -1
- package/lib/components/DataTable/TableToolbarAction.js +2 -1
- package/lib/components/DataTable/TableToolbarContent.js +2 -1
- package/lib/components/DataTable/TableToolbarMenu.js +2 -1
- package/lib/components/DataTable/TableToolbarSearch.js +2 -2
- package/lib/components/DataTable/state/getDerivedStateFromProps.js +3 -1
- package/lib/components/DataTable/tools/denormalize.js +3 -1
- package/lib/components/DataTable/tools/instanceId.js +3 -1
- package/lib/components/DataTable/tools/normalize.js +3 -1
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +2 -1
- package/lib/components/DatePicker/DatePicker.Skeleton.js +2 -1
- package/lib/components/DatePicker/DatePicker.js +4 -3
- package/lib/components/DatePicker/index.js +0 -2
- package/lib/components/DatePicker/plugins/fixEventsPlugin.js +32 -1
- package/lib/components/DatePickerInput/DatePickerInput.js +2 -1
- package/lib/components/Dropdown/Dropdown.Skeleton.js +2 -1
- package/lib/components/Dropdown/Dropdown.js +30 -17
- package/lib/components/Dropdown/index.js +0 -2
- package/lib/components/ExpandableSearch/ExpandableSearch.js +0 -1
- package/lib/components/FileUploader/FileUploader.js +2 -2
- package/lib/components/FileUploader/FileUploaderButton.js +2 -2
- package/lib/components/FileUploader/FileUploaderDropContainer.js +2 -2
- package/lib/components/FileUploader/FileUploaderItem.js +2 -2
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +2 -1
- package/lib/components/FluidComboBox/FluidComboBox.js +2 -1
- package/lib/components/FluidDatePicker/FluidDatePicker.js +2 -2
- package/lib/components/FluidDatePickerInput/FluidDatePickerInput.js +2 -1
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +2 -1
- package/lib/components/FluidDropdown/FluidDropdown.js +2 -2
- package/lib/components/FluidForm/FluidForm.js +2 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +2 -1
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +2 -1
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +2 -1
- package/lib/components/FluidSelect/FluidSelect.js +2 -2
- package/lib/components/FluidSelect/index.js +0 -2
- package/lib/components/FluidTextArea/FluidTextArea.js +0 -1
- package/lib/components/FluidTextInput/FluidTextInput.js +0 -1
- package/lib/components/FluidTextInput/index.js +0 -2
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +2 -3
- package/lib/components/FluidTimePicker/FluidTimePicker.js +2 -2
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +2 -2
- package/lib/components/Form/Form.js +2 -1
- package/lib/components/FormGroup/FormGroup.js +2 -1
- package/lib/components/IconButton/index.js +0 -2
- package/lib/components/InlineCheckbox/InlineCheckbox.js +4 -1
- package/lib/components/Link/Link.js +2 -1
- package/lib/components/ListBox/ListBox.js +3 -14
- package/lib/components/ListBox/ListBoxField.js +1 -1
- package/lib/components/ListBox/ListBoxMenu.js +2 -2
- package/lib/components/ListBox/ListBoxMenuIcon.js +8 -5
- package/lib/components/ListBox/ListBoxMenuItem.js +2 -3
- package/lib/components/ListBox/ListBoxPropTypes.js +4 -2
- package/lib/components/ListBox/ListBoxSelection.js +7 -20
- package/lib/components/ListBox/index.js +12 -8
- package/lib/components/ListBox/next/ListBoxSelection.js +2 -2
- package/lib/components/ListBox/next/ListBoxTrigger.js +2 -1
- package/lib/components/ListItem/ListItem.js +2 -1
- package/lib/components/Menu/Menu.js +4 -3
- package/lib/components/Menu/MenuOption.js +2 -2
- package/lib/components/Modal/Modal.js +2 -2
- package/lib/components/ModalWrapper/ModalWrapper.js +0 -1
- package/lib/components/MultiSelect/FilterableMultiSelect.js +10 -10
- package/lib/components/MultiSelect/MultiSelect.js +10 -10
- package/lib/components/Notification/Notification.js +2 -3
- package/lib/components/OrderedList/OrderedList.js +2 -1
- package/lib/components/OverflowMenu/OverflowMenu.js +14 -3
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +4 -3
- package/lib/components/OverflowMenuV2/index.js +2 -2
- package/lib/components/Pagination/Pagination.js +2 -2
- package/lib/components/Pagination/experimental/PageSelector.js +0 -1
- package/lib/components/Pagination/experimental/Pagination.js +0 -2
- package/lib/components/PaginationNav/PaginationNav.js +2 -2
- package/lib/components/Popover/index.js +5 -1
- package/lib/components/PrimaryButton/PrimaryButton.js +3 -2
- package/lib/components/ProgressIndicator/ProgressIndicator.js +2 -2
- package/lib/components/RadioButton/RadioButton.js +2 -1
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js +2 -1
- package/lib/components/RadioTile/RadioTile.js +2 -2
- package/lib/components/Search/Search.Skeleton.js +2 -1
- package/lib/components/Search/Search.js +4 -3
- package/lib/components/Search/index.js +0 -2
- package/lib/components/SecondaryButton/SecondaryButton.js +3 -2
- package/lib/components/Select/Select.Skeleton.js +2 -1
- package/lib/components/Select/Select.js +2 -1
- package/lib/components/Select/index.js +0 -2
- package/lib/components/SelectItem/SelectItem.js +2 -1
- package/lib/components/SelectItemGroup/SelectItemGroup.js +2 -1
- package/lib/components/SkeletonIcon/SkeletonIcon.js +2 -1
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +2 -1
- package/lib/components/SkeletonText/SkeletonText.js +2 -1
- package/lib/components/Slider/Slider.Skeleton.js +2 -1
- package/lib/components/Stack/Stack.js +9 -5
- package/lib/components/StructuredList/StructuredList.Skeleton.js +2 -1
- package/lib/components/Switch/Switch.js +2 -1
- package/lib/components/TabContent/TabContent.js +2 -1
- package/lib/components/Tabs/Tabs.js +2 -3
- package/lib/components/Tag/Tag.js +2 -1
- package/lib/components/TextArea/TextArea.Skeleton.js +2 -1
- package/lib/components/TextArea/TextArea.js +6 -3
- package/lib/components/TextArea/index.js +0 -2
- package/lib/components/TextInput/ControlledPasswordInput.js +2 -1
- package/lib/components/TextInput/PasswordInput.js +2 -1
- package/lib/components/TextInput/TextInput.Skeleton.js +2 -1
- package/lib/components/TextInput/TextInput.js +2 -1
- package/lib/components/TextInput/index.js +0 -2
- package/lib/components/Tile/Tile.js +3 -7
- package/lib/components/TimePicker/TimePicker.js +2 -1
- package/lib/components/TimePickerSelect/TimePickerSelect.js +2 -1
- package/lib/components/Toggle/Toggle.js +27 -8
- package/lib/components/Toggletip/index.js +2 -2
- package/lib/components/Tooltip/DefinitionTooltip.js +2 -2
- package/lib/components/Tooltip/Tooltip.js +2 -2
- package/lib/components/TreeView/TreeNode.js +2 -2
- package/lib/components/TreeView/TreeView.js +2 -2
- package/lib/components/UIShell/Content.js +2 -1
- package/lib/components/UIShell/Header.js +2 -1
- package/lib/components/UIShell/HeaderContainer.js +2 -1
- package/lib/components/UIShell/HeaderGlobalAction.js +2 -2
- package/lib/components/UIShell/HeaderMenu.js +4 -3
- package/lib/components/UIShell/HeaderMenuItem.js +2 -1
- package/lib/components/UIShell/HeaderPanel.js +2 -1
- package/lib/components/UIShell/HeaderSideNavItems.js +2 -1
- package/lib/components/UIShell/Link.js +2 -1
- package/lib/components/UIShell/SideNav.js +2 -1
- package/lib/components/UIShell/SideNavDetails.js +2 -1
- package/lib/components/UIShell/SideNavHeader.js +2 -1
- package/lib/components/UIShell/SideNavItems.js +2 -1
- package/lib/components/UIShell/SideNavLink.js +2 -1
- package/lib/components/UIShell/SideNavMenu.js +5 -3
- package/lib/components/UIShell/SideNavMenuItem.js +2 -1
- package/lib/components/UIShell/SideNavSwitcher.js +2 -1
- package/lib/components/UIShell/Switcher.js +2 -1
- package/lib/components/UIShell/SwitcherDivider.js +2 -1
- package/lib/components/UIShell/SwitcherItem.js +2 -1
- package/lib/components/UnorderedList/UnorderedList.js +2 -1
- package/lib/index.js +281 -287
- package/lib/internal/FloatingMenu.js +3 -1
- package/lib/internal/OptimizedResize.js +3 -1
- package/lib/internal/useIsomorphicEffect.js +2 -1
- package/lib/lib/components/DataTable/TableSelectAll.d.ts +83 -0
- package/lib/lib/components/Dropdown/Dropdown.d.ts +134 -0
- package/lib/lib/components/Dropdown/index.d.ts +11 -0
- package/lib/lib/components/FluidForm/FluidForm.d.ts +11 -0
- package/lib/lib/components/FluidForm/FormContext.d.ts +11 -0
- package/lib/lib/components/FluidForm/index.d.ts +10 -0
- package/lib/lib/components/ListBox/ListBox.d.ts +60 -0
- package/lib/lib/components/ListBox/ListBoxField.d.ts +18 -0
- package/lib/lib/components/ListBox/ListBoxMenu.d.ts +22 -0
- package/lib/lib/components/ListBox/ListBoxMenuIcon.d.ts +31 -0
- package/lib/lib/components/ListBox/ListBoxMenuItem.d.ts +24 -0
- package/lib/lib/components/ListBox/ListBoxPropTypes.d.ts +14 -0
- package/lib/lib/components/ListBox/ListBoxSelection.d.ts +51 -0
- package/lib/lib/components/ListBox/index.d.ts +23 -0
- package/lib/lib/components/NumberInput/NumberInput.Skeleton.d.ts +32 -0
- package/lib/lib/components/Slider/Slider.Skeleton.d.ts +33 -0
- package/lib/tools/mergeRefs.js +3 -1
- package/lib/tools/wrapComponent.js +3 -1
- package/package.json +9 -9
- package/es/components/ContainedList/index.js +0 -13
- package/es/components/DataTable/index.js +0 -70
- package/es/components/TreeView/index.js +0 -13
- package/lib/components/ContainedList/index.js +0 -19
- package/lib/components/DataTable/index.js +0 -76
- package/lib/components/TreeView/index.js +0 -19
|
@@ -11,12 +11,12 @@ import cx from 'classnames';
|
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import React__default, { useState } from 'react';
|
|
13
13
|
import '../Text/index.js';
|
|
14
|
-
import { Escape } from '../../internal/keyboard/keys.js';
|
|
15
|
-
import { match } from '../../internal/keyboard/match.js';
|
|
16
14
|
import { useId } from '../../internal/useId.js';
|
|
17
15
|
import deprecate from '../../prop-types/deprecate.js';
|
|
18
16
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
19
17
|
import { Text } from '../Text/Text.js';
|
|
18
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
19
|
+
import { Escape } from '../../internal/keyboard/keys.js';
|
|
20
20
|
|
|
21
21
|
var _excluded = ["children", "className", "iconDescription", "open", "onHeadingClick", "renderExpando", "renderToggle", "title", "disabled"];
|
|
22
22
|
|
|
@@ -13,7 +13,6 @@ import useResizeObserver from '../../node_modules/use-resize-observer/polyfilled
|
|
|
13
13
|
import { ChevronDown } from '@carbon/icons-react';
|
|
14
14
|
import Copy from '../Copy/Copy.js';
|
|
15
15
|
import Button from '../Button/Button.js';
|
|
16
|
-
import '../Button/Button.Skeleton.js';
|
|
17
16
|
import CopyButton from '../CopyButton/CopyButton.js';
|
|
18
17
|
import uniqueId from '../../tools/uniqueId.js';
|
|
19
18
|
import copy from 'copy-to-clipboard';
|
|
@@ -12,11 +12,7 @@ import PropTypes from 'prop-types';
|
|
|
12
12
|
import React__default, { useContext, useRef, useState, useEffect } from 'react';
|
|
13
13
|
import '../Text/index.js';
|
|
14
14
|
import { WarningFilled, WarningAltFilled, Checkmark } from '@carbon/icons-react';
|
|
15
|
-
import '../ListBox/index.js';
|
|
16
|
-
import ListBoxSelection from '../ListBox/next/ListBoxSelection.js';
|
|
17
|
-
import ListBoxTrigger from '../ListBox/next/ListBoxTrigger.js';
|
|
18
|
-
import { Space, Enter } from '../../internal/keyboard/keys.js';
|
|
19
|
-
import { match } from '../../internal/keyboard/match.js';
|
|
15
|
+
import ListBox from '../ListBox/index.js';
|
|
20
16
|
import setupGetInstanceId from '../../tools/setupGetInstanceId.js';
|
|
21
17
|
import mergeRefs from '../../tools/mergeRefs.js';
|
|
22
18
|
import { useFeatureFlag } from '../FeatureFlags/index.js';
|
|
@@ -24,9 +20,12 @@ import deprecate from '../../prop-types/deprecate.js';
|
|
|
24
20
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
25
21
|
import '../FluidForm/FluidForm.js';
|
|
26
22
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
23
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
27
24
|
import { Text } from '../Text/Text.js';
|
|
28
|
-
import
|
|
25
|
+
import ListBoxSelection from '../ListBox/next/ListBoxSelection.js';
|
|
26
|
+
import ListBoxTrigger from '../ListBox/next/ListBoxTrigger.js';
|
|
29
27
|
import { ListBoxSize, ListBoxType } from '../ListBox/ListBoxPropTypes.js';
|
|
28
|
+
import { Space, Enter } from '../../internal/keyboard/keys.js';
|
|
30
29
|
|
|
31
30
|
var _excluded = ["ariaLabel", "className", "direction", "disabled", "downshiftProps", "helperText", "id", "initialSelectedItem", "invalid", "invalidText", "items", "itemToElement", "itemToString", "light", "onChange", "onInputChange", "onToggleClick", "placeholder", "readOnly", "selectedItem", "shouldFilterItem", "size", "titleText", "translateWithId", "type", "warn", "warnText", "onStateChange"];
|
|
32
31
|
|
|
@@ -561,5 +560,6 @@ ComboBox.defaultProps = {
|
|
|
561
560
|
ariaLabel: 'Choose an item',
|
|
562
561
|
direction: 'bottom'
|
|
563
562
|
};
|
|
563
|
+
var ComboBox$1 = ComboBox;
|
|
564
564
|
|
|
565
|
-
export { ComboBox as default };
|
|
565
|
+
export { ComboBox$1 as default };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, extends as _extends, slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import { ModalHeader } from './ModalHeader.js';
|
|
@@ -222,5 +222,6 @@ ComposedModal.defaultProps = {
|
|
|
222
222
|
onKeyDown: function onKeyDown() {},
|
|
223
223
|
selectorPrimaryFocus: '[data-modal-primary-focus]'
|
|
224
224
|
};
|
|
225
|
+
var ComposedModal$1 = ComposedModal;
|
|
225
226
|
|
|
226
|
-
export { ModalBody, ComposedModal as default };
|
|
227
|
+
export { ModalBody, ComposedModal$1 as default };
|
|
@@ -9,7 +9,6 @@ import { objectWithoutProperties as _objectWithoutProperties, defineProperty as
|
|
|
9
9
|
import React__default from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import Button from '../Button/Button.js';
|
|
12
|
-
import '../Button/Button.Skeleton.js';
|
|
13
12
|
import ButtonSet from '../ButtonSet/ButtonSet.js';
|
|
14
13
|
import cx from 'classnames';
|
|
15
14
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { inherits as _inherits, createSuper as _createSuper,
|
|
8
|
+
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, defineProperty as _defineProperty, assertThisInitialized as _assertThisInitialized, objectSpread2 as _objectSpread2, createClass as _createClass, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import deprecate from '../../prop-types/deprecate.js';
|
|
13
13
|
import { composeEventHandlers } from '../../tools/events.js';
|
|
14
|
-
import {
|
|
14
|
+
import { PrefixContext } from '../../internal/usePrefix.js';
|
|
15
15
|
import { matches } from '../../internal/keyboard/match.js';
|
|
16
16
|
import { getNextIndex } from '../../internal/keyboard/navigation.js';
|
|
17
|
-
import {
|
|
17
|
+
import { ArrowRight, ArrowLeft } from '../../internal/keyboard/keys.js';
|
|
18
18
|
|
|
19
19
|
var _excluded = ["children", "className", "light", "selectedIndex", "selectionMode", "size"];
|
|
20
20
|
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import React__default from 'react';
|
|
10
10
|
import Button from '../Button/Button.js';
|
|
11
|
-
import '../Button/Button.Skeleton.js';
|
|
12
11
|
|
|
13
12
|
var DangerButton = function DangerButton(props) {
|
|
14
13
|
return /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
@@ -16,4 +15,6 @@ var DangerButton = function DangerButton(props) {
|
|
|
16
15
|
}, props));
|
|
17
16
|
};
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
var DangerButton$1 = DangerButton;
|
|
19
|
+
|
|
20
|
+
export { DangerButton$1 as default };
|
|
@@ -9,7 +9,6 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import React__default from 'react';
|
|
10
10
|
import { AddFilled } from '@carbon/icons-react';
|
|
11
11
|
import Button from '../Button/Button.js';
|
|
12
|
-
import '../Button/Button.Skeleton.js';
|
|
13
12
|
|
|
14
13
|
var TableBatchAction = function TableBatchAction(props) {
|
|
15
14
|
return /*#__PURE__*/React__default.createElement(Button, props);
|
|
@@ -42,5 +41,6 @@ TableBatchAction.defaultProps = {
|
|
|
42
41
|
renderIcon: AddFilled,
|
|
43
42
|
iconDescription: 'Add'
|
|
44
43
|
};
|
|
44
|
+
var TableBatchAction$1 = TableBatchAction;
|
|
45
45
|
|
|
46
|
-
export { TableBatchAction as default };
|
|
46
|
+
export { TableBatchAction$1 as default };
|
|
@@ -10,7 +10,6 @@ import cx from 'classnames';
|
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import React__default from 'react';
|
|
12
12
|
import Button from '../Button/Button.js';
|
|
13
|
-
import '../Button/Button.Skeleton.js';
|
|
14
13
|
import TableActionList from './TableActionList.js';
|
|
15
14
|
import '../Text/index.js';
|
|
16
15
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
@@ -106,5 +105,6 @@ TableBatchActions.propTypes = {
|
|
|
106
105
|
TableBatchActions.defaultProps = {
|
|
107
106
|
translateWithId: translateWithId
|
|
108
107
|
};
|
|
108
|
+
var TableBatchActions$1 = TableBatchActions;
|
|
109
109
|
|
|
110
|
-
export { TableBatchActions as default };
|
|
110
|
+
export { TableBatchActions$1 as default };
|
|
@@ -89,5 +89,6 @@ TableExpandHeader.propTypes = {
|
|
|
89
89
|
*/
|
|
90
90
|
onExpand: PropTypes.oneOfType([requiredIfGivenPropIsTruthy('enableExpando', PropTypes.func), requiredIfGivenPropIsTruthy('enableToggle', PropTypes.func)])
|
|
91
91
|
};
|
|
92
|
+
var TableExpandHeader$1 = TableExpandHeader;
|
|
92
93
|
|
|
93
|
-
export { TableExpandHeader as default };
|
|
94
|
+
export { TableExpandHeader$1 as default };
|
|
@@ -180,5 +180,6 @@ TableHeader.defaultProps = {
|
|
|
180
180
|
};
|
|
181
181
|
TableHeader.translationKeys = Object.values(translationKeys);
|
|
182
182
|
TableHeader.displayName = 'TableHeader';
|
|
183
|
+
var TableHeader$1 = TableHeader;
|
|
183
184
|
|
|
184
|
-
export { TableHeader as default };
|
|
185
|
+
export { TableHeader$1 as default };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, extends as _extends, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import cx from 'classnames';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import React__default from 'react';
|
|
@@ -42,5 +42,6 @@ TableToolbar.propTypes = _objectSpread2(_objectSpread2({}, AriaLabelPropType), {
|
|
|
42
42
|
TableToolbar.defaultProps = {
|
|
43
43
|
'aria-label': 'data table toolbar'
|
|
44
44
|
};
|
|
45
|
+
var TableToolbar$1 = TableToolbar;
|
|
45
46
|
|
|
46
|
-
export { TableToolbar as default };
|
|
47
|
+
export { TableToolbar$1 as default };
|
|
@@ -10,7 +10,6 @@ import cx from 'classnames';
|
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import React__default, { useRef, useState, useMemo, useEffect } from 'react';
|
|
12
12
|
import Search from '../Search/Search.js';
|
|
13
|
-
import '../Search/Search.Skeleton.js';
|
|
14
13
|
import setupGetInstanceId from './tools/instanceId.js';
|
|
15
14
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
16
15
|
|
|
@@ -237,5 +236,6 @@ TableToolbarSearch.defaultProps = {
|
|
|
237
236
|
persistent: false,
|
|
238
237
|
onClear: function onClear() {}
|
|
239
238
|
};
|
|
239
|
+
var TableToolbarSearch$1 = TableToolbarSearch;
|
|
240
240
|
|
|
241
|
-
export { TableToolbarSearch as default };
|
|
241
|
+
export { TableToolbarSearch$1 as default };
|
|
@@ -50,4 +50,6 @@ var getDerivedStateFromProps = function getDerivedStateFromProps(props, prevStat
|
|
|
50
50
|
return state;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
var getDerivedStateFromProps$1 = getDerivedStateFromProps;
|
|
54
|
+
|
|
55
|
+
export { getDerivedStateFromProps$1 as default };
|
|
@@ -16,13 +16,13 @@ import carbonFlatpickrAppendToPlugin from './plugins/appendToPlugin.js';
|
|
|
16
16
|
import carbonFlatpickrFixEventsPlugin from './plugins/fixEventsPlugin.js';
|
|
17
17
|
import carbonFlatpickrRangePlugin from './plugins/rangePlugin.js';
|
|
18
18
|
import deprecate from '../../prop-types/deprecate.js';
|
|
19
|
-
import { Escape, ArrowDown } from '../../internal/keyboard/keys.js';
|
|
20
|
-
import { match } from '../../internal/keyboard/match.js';
|
|
21
19
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
22
20
|
import { useSavedCallback } from '../../internal/useSavedCallback.js';
|
|
23
21
|
import '../FluidForm/FluidForm.js';
|
|
24
22
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
25
23
|
import { WarningFilled, WarningAltFilled } from '@carbon/icons-react';
|
|
24
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
25
|
+
import { Escape, ArrowDown } from '../../internal/keyboard/keys.js';
|
|
26
26
|
|
|
27
27
|
var _excluded = ["allowInput", "appendTo", "children", "className", "closeOnSelect", "dateFormat", "datePickerType", "disable", "enable", "inline", "invalid", "invalidText", "warn", "warnText", "light", "locale", "maxDate", "minDate", "onChange", "onClose", "onOpen", "readOnly", "short", "value"];
|
|
28
28
|
|
|
@@ -683,5 +683,6 @@ DatePicker.propTypes = {
|
|
|
683
683
|
*/
|
|
684
684
|
warnText: PropTypes.node
|
|
685
685
|
};
|
|
686
|
+
var DatePicker$1 = DatePicker;
|
|
686
687
|
|
|
687
|
-
export { DatePicker as default };
|
|
688
|
+
export { DatePicker$1 as default };
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { Enter, ArrowLeft, ArrowRight, ArrowDown } from '../../../internal/keyboard/keys.js';
|
|
9
8
|
import { match } from '../../../internal/keyboard/match.js';
|
|
9
|
+
import { Enter, ArrowLeft, ArrowRight, ArrowDown } from '../../../internal/keyboard/keys.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @param {object} config Plugin configuration.
|
|
@@ -40,6 +40,35 @@ var carbonFlatpickrFixEventsPlugin = (function (config) {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Handles `blur` event.
|
|
45
|
+
*
|
|
46
|
+
* For whatever reason, manual changes within the `to` input do not update the
|
|
47
|
+
* calendar on blur. If a manual change is made within the input, this block will
|
|
48
|
+
* set the date again, triggering the calendar to update.
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var handleBlur = function handleBlur(event) {
|
|
53
|
+
var inputFrom = config.inputFrom,
|
|
54
|
+
inputTo = config.inputTo;
|
|
55
|
+
var target = event.target; // Only fall into this logic if the event is on the `to` input and there is a
|
|
56
|
+
// `to` date selected
|
|
57
|
+
|
|
58
|
+
if (inputTo === target && fp.selectedDates[1]) {
|
|
59
|
+
// Using getTime() enables the ability to more readily compare the date currently
|
|
60
|
+
// selected in the calendar and the date currently in the value of the input
|
|
61
|
+
var selectedToDate = new Date(fp.selectedDates[1]).getTime();
|
|
62
|
+
var currentValueToDate = new Date(inputTo.value).getTime(); // The date should only be set if both dates are valid dates, and they don't match.
|
|
63
|
+
// When they don't match, this indiciates that the date selected in the calendar is stale,
|
|
64
|
+
// and the current value in the input should be set for the calendar to update.
|
|
65
|
+
|
|
66
|
+
if (selectedToDate && currentValueToDate && selectedToDate !== currentValueToDate) {
|
|
67
|
+
// Update the calendar with the value of the `to` date input
|
|
68
|
+
fp.setDate([inputFrom.value, inputTo && inputTo.value], false, fp.config.dateFormat);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
43
72
|
/**
|
|
44
73
|
* Releases event listeners used in this Flatpickr plugin.
|
|
45
74
|
*/
|
|
@@ -51,6 +80,7 @@ var carbonFlatpickrFixEventsPlugin = (function (config) {
|
|
|
51
80
|
|
|
52
81
|
if (inputTo) {
|
|
53
82
|
inputTo.removeEventListener('keydown', handleKeydown, true);
|
|
83
|
+
inputTo.removeEventListener('blur', handleBlur, true);
|
|
54
84
|
}
|
|
55
85
|
|
|
56
86
|
inputFrom.removeEventListener('keydown', handleKeydown, true);
|
|
@@ -68,6 +98,7 @@ var carbonFlatpickrFixEventsPlugin = (function (config) {
|
|
|
68
98
|
|
|
69
99
|
if (inputTo) {
|
|
70
100
|
inputTo.addEventListener('keydown', handleKeydown, true);
|
|
101
|
+
inputTo.addEventListener('blur', handleBlur, true);
|
|
71
102
|
}
|
|
72
103
|
};
|
|
73
104
|
/**
|