@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
|
@@ -10,18 +10,18 @@ import cx from 'classnames';
|
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import { Close } from '@carbon/icons-react';
|
|
13
|
-
import { Enter } from '../../internal/keyboard/keys.js';
|
|
14
|
-
import { match } from '../../internal/keyboard/match.js';
|
|
15
13
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
14
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
15
|
+
import { Enter } from '../../internal/keyboard/keys.js';
|
|
16
16
|
|
|
17
17
|
var _Close, _Close2, _defaultTranslations;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* `ListBoxSelection` is used to provide controls for clearing a selection, in
|
|
20
21
|
* addition to conditionally rendering a badge if the control has more than one
|
|
21
22
|
* selection.
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
-
function ListBoxSelection(_ref) {
|
|
24
|
+
var ListBoxSelection = function ListBoxSelection(_ref) {
|
|
25
25
|
var _cx;
|
|
26
26
|
|
|
27
27
|
var clearSelection = _ref.clearSelection,
|
|
@@ -55,7 +55,7 @@ function ListBoxSelection(_ref) {
|
|
|
55
55
|
} // When a user hits ENTER, we'll clear the selection
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
if (match(event, Enter)) {
|
|
58
|
+
if (match(event.code, Enter)) {
|
|
59
59
|
clearSelection(event);
|
|
60
60
|
|
|
61
61
|
if (onClearSelection) {
|
|
@@ -70,14 +70,13 @@ function ListBoxSelection(_ref) {
|
|
|
70
70
|
className: tagClasses
|
|
71
71
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
72
72
|
className: "".concat(prefix, "--tag__label"),
|
|
73
|
-
title: selectionCount
|
|
73
|
+
title: "".concat(selectionCount)
|
|
74
74
|
}, selectionCount), /*#__PURE__*/React__default.createElement("div", {
|
|
75
75
|
role: "button",
|
|
76
76
|
tabIndex: disabled ? -1 : 0,
|
|
77
77
|
className: "".concat(prefix, "--tag__close-icon"),
|
|
78
78
|
onClick: handleOnClick,
|
|
79
79
|
onKeyDown: handleOnKeyDown,
|
|
80
|
-
disabled: disabled,
|
|
81
80
|
"aria-label": t('clear.all'),
|
|
82
81
|
title: description,
|
|
83
82
|
"aria-disabled": readOnly ? true : undefined
|
|
@@ -90,7 +89,7 @@ function ListBoxSelection(_ref) {
|
|
|
90
89
|
"aria-label": description,
|
|
91
90
|
title: description
|
|
92
91
|
}, selectionCount, _Close2 || (_Close2 = /*#__PURE__*/React__default.createElement(Close, null)));
|
|
93
|
-
}
|
|
92
|
+
};
|
|
94
93
|
|
|
95
94
|
var translationIds = {
|
|
96
95
|
'clear.all': 'clear.all',
|
|
@@ -115,18 +114,6 @@ ListBoxSelection.propTypes = {
|
|
|
115
114
|
*/
|
|
116
115
|
onClearSelection: PropTypes.func,
|
|
117
116
|
|
|
118
|
-
/**
|
|
119
|
-
* Specify an optional `onClick` handler that is called when the underlying
|
|
120
|
-
* clear selection element is clicked
|
|
121
|
-
*/
|
|
122
|
-
onClick: PropTypes.func,
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Specify an optional `onKeyDown` handler that is called when the underlying
|
|
126
|
-
* clear selection element fires a keydown event
|
|
127
|
-
*/
|
|
128
|
-
onKeyDown: PropTypes.func,
|
|
129
|
-
|
|
130
117
|
/**
|
|
131
118
|
* Whether or not the Dropdown is readonly
|
|
132
119
|
*/
|
|
@@ -5,17 +5,20 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
import ListBox from './ListBox.js';
|
|
10
|
-
export { default } from './ListBox.js';
|
|
8
|
+
export { ListBoxSize, ListBoxType } from './ListBoxPropTypes.js';
|
|
9
|
+
import ListBox$1 from './ListBox.js';
|
|
11
10
|
import ListBoxField from './ListBoxField.js';
|
|
12
11
|
import ListBoxMenu from './ListBoxMenu.js';
|
|
13
12
|
import ListBoxMenuIcon from './ListBoxMenuIcon.js';
|
|
14
13
|
import ListBoxMenuItem from './ListBoxMenuItem.js';
|
|
15
14
|
import ListBoxSelection from './ListBoxSelection.js';
|
|
16
15
|
|
|
17
|
-
ListBox
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
var ListBox = Object.assign(ListBox$1, {
|
|
17
|
+
Field: ListBoxField,
|
|
18
|
+
Menu: ListBoxMenu,
|
|
19
|
+
MenuIcon: ListBoxMenuIcon,
|
|
20
|
+
MenuItem: ListBoxMenuItem,
|
|
21
|
+
Selection: ListBoxSelection
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export { ListBox as default };
|
|
@@ -5,14 +5,14 @@
|
|
|
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 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import cx from 'classnames';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import { Close } from '@carbon/icons-react';
|
|
13
|
-
import { Enter } from '../../../internal/keyboard/keys.js';
|
|
14
|
-
import { match } from '../../../internal/keyboard/match.js';
|
|
15
13
|
import { usePrefix } from '../../../internal/usePrefix.js';
|
|
14
|
+
import { match } from '../../../internal/keyboard/match.js';
|
|
15
|
+
import { Enter } from '../../../internal/keyboard/keys.js';
|
|
16
16
|
|
|
17
17
|
var _Close, _Close2, _defaultTranslations;
|
|
18
18
|
|
|
@@ -10,14 +10,14 @@ import React__default, { useRef, useState, useEffect } from 'react';
|
|
|
10
10
|
import ReactDOM from 'react-dom';
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
|
-
import { Tab, Enter, Space, Escape, ArrowLeft, ArrowUp, ArrowDown } from '../../internal/keyboard/keys.js';
|
|
14
|
-
import { match } from '../../internal/keyboard/match.js';
|
|
15
13
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
16
14
|
import { getParentMenu, getNextNode, getParentNode, getValidNodes, clickedElementHasSubnodes, getPosition, capWithinRange, resetFocus, focusNode } from './_utils.js';
|
|
17
15
|
import MenuGroup from './MenuGroup.js';
|
|
18
16
|
import MenuRadioGroup from './MenuRadioGroup.js';
|
|
19
17
|
import MenuRadioGroupOptions from './MenuRadioGroupOptions.js';
|
|
20
18
|
import MenuSelectableItem from './MenuSelectableItem.js';
|
|
19
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
20
|
+
import { Tab, Enter, Space, Escape, ArrowLeft, ArrowUp, ArrowDown } from '../../internal/keyboard/keys.js';
|
|
21
21
|
|
|
22
22
|
var _excluded = ["children", "className", "id", "level", "open", "size", "target", "x", "y", "onClose"];
|
|
23
23
|
var margin = 16; // distance to keep to body edges, in px
|
|
@@ -323,5 +323,6 @@ Menu.propTypes = {
|
|
|
323
323
|
*/
|
|
324
324
|
y: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])
|
|
325
325
|
};
|
|
326
|
+
var Menu$1 = Menu;
|
|
326
327
|
|
|
327
|
-
export { Menu as default };
|
|
328
|
+
export { Menu$1 as default };
|
|
@@ -10,11 +10,11 @@ import React__default, { useState, useRef, useEffect } from 'react';
|
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import { CaretRight } from '@carbon/icons-react';
|
|
13
|
-
import { ArrowRight, Enter, Space } from '../../internal/keyboard/keys.js';
|
|
14
|
-
import { match } from '../../internal/keyboard/match.js';
|
|
15
13
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
16
14
|
import { getFirstSubNode, focusNode, clickedElementHasSubnodes, getParentMenu } from './_utils.js';
|
|
17
15
|
import Menu from './Menu.js';
|
|
16
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
17
|
+
import { ArrowRight, Enter, Space } from '../../internal/keyboard/keys.js';
|
|
18
18
|
|
|
19
19
|
var _CaretRight;
|
|
20
20
|
|
|
@@ -5,14 +5,13 @@
|
|
|
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 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default, { useRef, useEffect } from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import { Close } from '@carbon/icons-react';
|
|
13
13
|
import toggleClass from '../../tools/toggleClass.js';
|
|
14
14
|
import Button from '../Button/Button.js';
|
|
15
|
-
import '../Button/Button.Skeleton.js';
|
|
16
15
|
import ButtonSet from '../ButtonSet/ButtonSet.js';
|
|
17
16
|
import requiredIfGivenPropIsTruthy from '../../prop-types/requiredIfGivenPropIsTruthy.js';
|
|
18
17
|
import wrapFocus, { elementOrParentIsFloatingMenu } from '../../internal/wrapFocus.js';
|
|
@@ -271,5 +270,6 @@ Modal.defaultProps = {
|
|
|
271
270
|
selectorPrimaryFocus: '[data-modal-primary-focus]',
|
|
272
271
|
hasScrollingContent: false
|
|
273
272
|
};
|
|
273
|
+
var Modal$1 = Modal;
|
|
274
274
|
|
|
275
|
-
export { Modal as default };
|
|
275
|
+
export { Modal$1 as default };
|
|
@@ -10,7 +10,6 @@ import PropTypes from 'prop-types';
|
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import Modal from '../Modal/Modal.js';
|
|
12
12
|
import Button from '../Button/Button.js';
|
|
13
|
-
import '../Button/Button.Skeleton.js';
|
|
14
13
|
import { ButtonKinds } from '../../prop-types/types.js';
|
|
15
14
|
import { warning } from '../../internal/warning.js';
|
|
16
15
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import { WarningFilled, WarningAltFilled } from '@carbon/icons-react';
|
|
10
10
|
import cx from 'classnames';
|
|
11
11
|
import Downshift from 'downshift';
|
|
@@ -14,11 +14,7 @@ import PropTypes from 'prop-types';
|
|
|
14
14
|
import React__default, { useContext, useState, useRef } from 'react';
|
|
15
15
|
import { defaultFilterItems } from '../ComboBox/tools/filter.js';
|
|
16
16
|
import { sortingPropTypes } from './MultiSelectPropTypes.js';
|
|
17
|
-
import '../ListBox/index.js';
|
|
18
|
-
import ListBoxSelection from '../ListBox/next/ListBoxSelection.js';
|
|
19
|
-
import ListBoxTrigger from '../ListBox/next/ListBoxTrigger.js';
|
|
20
|
-
import { Space, Tab } from '../../internal/keyboard/keys.js';
|
|
21
|
-
import { match } from '../../internal/keyboard/match.js';
|
|
17
|
+
import ListBox from '../ListBox/index.js';
|
|
22
18
|
import Selection from '../../internal/Selection.js';
|
|
23
19
|
import { defaultItemToString } from './tools/itemToString.js';
|
|
24
20
|
import mergeRefs from '../../tools/mergeRefs.js';
|
|
@@ -29,8 +25,11 @@ import { useFeatureFlag } from '../FeatureFlags/index.js';
|
|
|
29
25
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
30
26
|
import '../FluidForm/FluidForm.js';
|
|
31
27
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
28
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
29
|
+
import ListBoxSelection from '../ListBox/next/ListBoxSelection.js';
|
|
30
|
+
import ListBoxTrigger from '../ListBox/next/ListBoxTrigger.js';
|
|
32
31
|
import { ListBoxSize } from '../ListBox/ListBoxPropTypes.js';
|
|
33
|
-
import
|
|
32
|
+
import { Space, Tab } from '../../internal/keyboard/keys.js';
|
|
34
33
|
|
|
35
34
|
var FilterableMultiSelect = /*#__PURE__*/React__default.forwardRef(function FilterableMultiSelect(_ref, ref) {
|
|
36
35
|
var _cx, _cx2, _cx3, _cx4;
|
|
@@ -564,5 +563,6 @@ FilterableMultiSelect.defaultProps = {
|
|
|
564
563
|
open: false,
|
|
565
564
|
selectionFeedback: 'top-after-reopen'
|
|
566
565
|
};
|
|
566
|
+
var FilterableMultiSelect$1 = FilterableMultiSelect;
|
|
567
567
|
|
|
568
|
-
export { FilterableMultiSelect as default };
|
|
568
|
+
export { FilterableMultiSelect$1 as default };
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import { WarningFilled, WarningAltFilled } from '@carbon/icons-react';
|
|
10
10
|
import cx from 'classnames';
|
|
11
11
|
import Downshift, { useSelect } from 'downshift';
|
|
12
12
|
import isEqual from 'lodash.isequal';
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
14
|
import React__default, { useContext, useRef, useState } from 'react';
|
|
15
|
-
import '../ListBox/index.js';
|
|
15
|
+
import ListBox from '../ListBox/index.js';
|
|
16
16
|
import { sortingPropTypes } from './MultiSelectPropTypes.js';
|
|
17
17
|
import { defaultItemToString } from './tools/itemToString.js';
|
|
18
18
|
import { defaultCompareItems, defaultSortItems } from './tools/sorting.js';
|
|
@@ -20,14 +20,13 @@ import { useSelection } from '../../internal/Selection.js';
|
|
|
20
20
|
import setupGetInstanceId from '../../tools/setupGetInstanceId.js';
|
|
21
21
|
import mergeRefs from '../../tools/mergeRefs.js';
|
|
22
22
|
import deprecate from '../../prop-types/deprecate.js';
|
|
23
|
-
import { Delete } from '../../internal/keyboard/keys.js';
|
|
24
|
-
import { match } from '../../internal/keyboard/match.js';
|
|
25
23
|
import { useFeatureFlag } from '../FeatureFlags/index.js';
|
|
26
24
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
27
25
|
import '../FluidForm/FluidForm.js';
|
|
28
26
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
27
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
29
28
|
import { ListBoxSize } from '../ListBox/ListBoxPropTypes.js';
|
|
30
|
-
import
|
|
29
|
+
import { Delete } from '../../internal/keyboard/keys.js';
|
|
31
30
|
|
|
32
31
|
var noop = function noop() {};
|
|
33
32
|
|
|
@@ -502,5 +501,6 @@ MultiSelect.defaultProps = {
|
|
|
502
501
|
clearSelectionDescription: 'Total items selected: ',
|
|
503
502
|
selectedItems: null
|
|
504
503
|
};
|
|
504
|
+
var MultiSelect$1 = MultiSelect;
|
|
505
505
|
|
|
506
|
-
export { MultiSelect as default };
|
|
506
|
+
export { MultiSelect$1 as default };
|
|
@@ -5,19 +5,18 @@
|
|
|
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 PropTypes from 'prop-types';
|
|
10
10
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
|
-
import { Close,
|
|
12
|
+
import { Close, WarningAltFilled, InformationFilled, InformationSquareFilled, ErrorFilled, CheckmarkFilled, WarningFilled } from '@carbon/icons-react';
|
|
13
13
|
import Button from '../Button/Button.js';
|
|
14
|
-
import '../Button/Button.Skeleton.js';
|
|
15
14
|
import useIsomorphicEffect from '../../internal/useIsomorphicEffect.js';
|
|
16
15
|
import { useNoInteractiveChildren } from '../../internal/useNoInteractiveChildren.js';
|
|
17
|
-
import { Escape } from '../../internal/keyboard/keys.js';
|
|
18
|
-
import { matches } from '../../internal/keyboard/match.js';
|
|
19
16
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
20
17
|
import { useId } from '../../internal/useId.js';
|
|
18
|
+
import { matches } from '../../internal/keyboard/match.js';
|
|
19
|
+
import { Escape } from '../../internal/keyboard/keys.js';
|
|
21
20
|
|
|
22
21
|
var _iconTypes;
|
|
23
22
|
|
|
@@ -13,12 +13,12 @@ import cx from 'classnames';
|
|
|
13
13
|
import ClickListener from '../../internal/ClickListener.js';
|
|
14
14
|
import FloatingMenu, { DIRECTION_TOP, DIRECTION_BOTTOM } from '../../internal/FloatingMenu.js';
|
|
15
15
|
import { OverflowMenuVertical } from '@carbon/icons-react';
|
|
16
|
-
import { ArrowDown, ArrowUp, ArrowRight, ArrowLeft, Escape } from '../../internal/keyboard/keys.js';
|
|
17
|
-
import { matches } from '../../internal/keyboard/match.js';
|
|
18
16
|
import mergeRefs from '../../tools/mergeRefs.js';
|
|
19
17
|
import { PrefixContext } from '../../internal/usePrefix.js';
|
|
20
18
|
import * as FeatureFlags from '@carbon/feature-flags';
|
|
21
19
|
import deprecate from '../../prop-types/deprecate.js';
|
|
20
|
+
import { matches } from '../../internal/keyboard/match.js';
|
|
21
|
+
import { ArrowDown, ArrowUp, ArrowRight, ArrowLeft, Escape } from '../../internal/keyboard/keys.js';
|
|
22
22
|
|
|
23
23
|
var _excluded = ["id", "ariaLabel", "children", "iconDescription", "direction", "flipped", "focusTrap", "menuOffset", "menuOffsetFlip", "iconClass", "onClick", "onOpen", "selectorPrimaryFocus", "renderIcon", "innerRef", "menuOptionsClass", "light", "size"];
|
|
24
24
|
|
|
@@ -266,6 +266,17 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
266
266
|
onClose();
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
+
}, {
|
|
270
|
+
key: "componentDidMount",
|
|
271
|
+
value: function componentDidMount() {
|
|
272
|
+
// ensure that if open=true on first render, we wait
|
|
273
|
+
// to render the floating menu until the trigger ref is not null
|
|
274
|
+
if (this._triggerRef.current) {
|
|
275
|
+
this.setState({
|
|
276
|
+
hasMountedTrigger: true
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
}
|
|
269
280
|
}, {
|
|
270
281
|
key: "componentWillUnmount",
|
|
271
282
|
value: function componentWillUnmount() {
|
|
@@ -356,7 +367,7 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
356
367
|
"aria-label": ariaLabel,
|
|
357
368
|
id: id,
|
|
358
369
|
ref: mergeRefs(this._triggerRef, ref)
|
|
359
|
-
}), /*#__PURE__*/React__default.createElement(IconElement, iconProps), open && wrappedMenuBody));
|
|
370
|
+
}), /*#__PURE__*/React__default.createElement(IconElement, iconProps), open && this.state.hasMountedTrigger && wrappedMenuBody));
|
|
360
371
|
}
|
|
361
372
|
}], [{
|
|
362
373
|
key: "getDerivedStateFromProps",
|
|
@@ -9,10 +9,10 @@ import { objectWithoutProperties as _objectWithoutProperties, defineProperty as
|
|
|
9
9
|
import cx from 'classnames';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import React__default from 'react';
|
|
12
|
-
import { ArrowDown, ArrowUp } from '../../internal/keyboard/keys.js';
|
|
13
|
-
import { match } from '../../internal/keyboard/match.js';
|
|
14
12
|
import { warning } from '../../internal/warning.js';
|
|
15
13
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
14
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
15
|
+
import { ArrowDown, ArrowUp } from '../../internal/keyboard/keys.js';
|
|
16
16
|
|
|
17
17
|
var _excluded = ["className", "closeMenu", "disabled", "handleOverflowMenuItemFocus", "hasDivider", "href", "isDelete", "index", "itemText", "onClick", "onKeyDown", "requireTitle", "title", "wrapperClassName"];
|
|
18
18
|
var OverflowMenuItem = /*#__PURE__*/React__default.forwardRef(function OverflowMenuItem(_ref, ref) {
|
|
@@ -170,5 +170,6 @@ OverflowMenuItem.propTypes = {
|
|
|
170
170
|
*/
|
|
171
171
|
wrapperClassName: PropTypes.string
|
|
172
172
|
};
|
|
173
|
+
var OverflowMenuItem$1 = OverflowMenuItem;
|
|
173
174
|
|
|
174
|
-
export { OverflowMenuItem as default };
|
|
175
|
+
export { OverflowMenuItem$1 as default };
|
|
@@ -12,10 +12,10 @@ import cx from 'classnames';
|
|
|
12
12
|
import { OverflowMenuVertical } from '@carbon/icons-react';
|
|
13
13
|
import { useId } from '../../internal/useId.js';
|
|
14
14
|
import '../Menu/index.js';
|
|
15
|
-
import { ArrowUp, ArrowRight, ArrowDown, ArrowLeft } from '../../internal/keyboard/keys.js';
|
|
16
|
-
import { matches } from '../../internal/keyboard/match.js';
|
|
17
15
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
18
16
|
import Menu from '../Menu/Menu.js';
|
|
17
|
+
import { matches } from '../../internal/keyboard/match.js';
|
|
18
|
+
import { ArrowUp, ArrowRight, ArrowDown, ArrowLeft } from '../../internal/keyboard/keys.js';
|
|
19
19
|
|
|
20
20
|
var _excluded = ["children", "className", "renderIcon", "size"];
|
|
21
21
|
var defaultSize = 'md';
|
|
@@ -11,7 +11,6 @@ import cx from 'classnames';
|
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import React__default, { useRef, useState } from 'react';
|
|
13
13
|
import Select from '../Select/Select.js';
|
|
14
|
-
import '../Select/Select.Skeleton.js';
|
|
15
14
|
import SelectItem from '../SelectItem/SelectItem.js';
|
|
16
15
|
import { equals } from '../../tools/array.js';
|
|
17
16
|
import { useFallbackId } from '../../internal/useId.js';
|
|
@@ -419,5 +418,6 @@ Pagination.propTypes = {
|
|
|
419
418
|
*/
|
|
420
419
|
totalItems: PropTypes.number
|
|
421
420
|
};
|
|
421
|
+
var Pagination$1 = Pagination;
|
|
422
422
|
|
|
423
|
-
export { Pagination as default };
|
|
423
|
+
export { Pagination$1 as default };
|
|
@@ -11,7 +11,6 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import setupGetInstanceId from '../../../tools/setupGetInstanceId.js';
|
|
13
13
|
import Select from '../../Select/Select.js';
|
|
14
|
-
import '../../Select/Select.Skeleton.js';
|
|
15
14
|
import SelectItem from '../../SelectItem/SelectItem.js';
|
|
16
15
|
import { usePrefix } from '../../../internal/usePrefix.js';
|
|
17
16
|
|
|
@@ -11,9 +11,7 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import { CaretLeft, CaretRight } from '@carbon/icons-react';
|
|
13
13
|
import Button from '../../Button/Button.js';
|
|
14
|
-
import '../../Button/Button.Skeleton.js';
|
|
15
14
|
import Select from '../../Select/Select.js';
|
|
16
|
-
import '../../Select/Select.Skeleton.js';
|
|
17
15
|
import SelectItem from '../../SelectItem/SelectItem.js';
|
|
18
16
|
import { IconButton } from '../../IconButton/index.js';
|
|
19
17
|
import * as FeatureFlags from '@carbon/feature-flags';
|
|
@@ -11,7 +11,6 @@ import React__default, { useState, useEffect, useRef } from 'react';
|
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import { CaretRight, CaretLeft, OverflowMenuHorizontal } from '@carbon/icons-react';
|
|
13
13
|
import Button from '../Button/Button.js';
|
|
14
|
-
import '../Button/Button.Skeleton.js';
|
|
15
14
|
import { IconButton } from '../IconButton/index.js';
|
|
16
15
|
import * as FeatureFlags from '@carbon/feature-flags';
|
|
17
16
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
@@ -432,5 +431,6 @@ PaginationNav.propTypes = {
|
|
|
432
431
|
*/
|
|
433
432
|
translateWithId: PropTypes.func
|
|
434
433
|
};
|
|
434
|
+
var PaginationNav$1 = PaginationNav;
|
|
435
435
|
|
|
436
|
-
export { PaginationNav as default };
|
|
436
|
+
export { PaginationNav$1 as default };
|
|
@@ -62,6 +62,10 @@ var Popover = /*#__PURE__*/React__default.forwardRef(function Popover(props, for
|
|
|
62
62
|
|
|
63
63
|
var className = cx((_cx = {}, _defineProperty(_cx, "".concat(prefix, "--popover-container"), true), _defineProperty(_cx, "".concat(prefix, "--popover--caret"), caret), _defineProperty(_cx, "".concat(prefix, "--popover--drop-shadow"), dropShadow), _defineProperty(_cx, "".concat(prefix, "--popover--high-contrast"), highContrast), _defineProperty(_cx, "".concat(prefix, "--popover--open"), open), _defineProperty(_cx, "".concat(prefix, "--popover--").concat(autoAlignment), autoAligned), _defineProperty(_cx, "".concat(prefix, "--popover--").concat(align), !autoAligned), _defineProperty(_cx, customClassName, !!customClassName), _cx));
|
|
64
64
|
useIsomorphicEffect(function () {
|
|
65
|
+
if (!open) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
65
69
|
if (!autoAlign) {
|
|
66
70
|
setAutoAligned(false);
|
|
67
71
|
return;
|
|
@@ -149,7 +153,7 @@ var Popover = /*#__PURE__*/React__default.forwardRef(function Popover(props, for
|
|
|
149
153
|
setAutoAligned(true);
|
|
150
154
|
setAutoAlignment(alignment);
|
|
151
155
|
}
|
|
152
|
-
}, [autoAligned, align, autoAlign, prefix]);
|
|
156
|
+
}, [autoAligned, align, autoAlign, prefix, open]);
|
|
153
157
|
return /*#__PURE__*/React__default.createElement(PopoverContext.Provider, {
|
|
154
158
|
value: value
|
|
155
159
|
}, /*#__PURE__*/React__default.createElement(BaseComponent, _extends({}, rest, {
|
|
@@ -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 PrimaryButton = function PrimaryButton(props) {
|
|
14
13
|
return /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
@@ -16,4 +15,6 @@ var PrimaryButton = function PrimaryButton(props) {
|
|
|
16
15
|
}, props));
|
|
17
16
|
};
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
var PrimaryButton$1 = PrimaryButton;
|
|
19
|
+
|
|
20
|
+
export { PrimaryButton$1 as default };
|
|
@@ -9,10 +9,10 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _
|
|
|
9
9
|
import cx from 'classnames';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import React__default, { useState } from 'react';
|
|
12
|
-
import { Enter, Space } from '../../internal/keyboard/keys.js';
|
|
13
|
-
import { matches } from '../../internal/keyboard/match.js';
|
|
14
12
|
import { Warning, Incomplete, CheckmarkOutline, CircleDash } from '@carbon/icons-react';
|
|
15
13
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
14
|
+
import { matches } from '../../internal/keyboard/match.js';
|
|
15
|
+
import { Enter, Space } from '../../internal/keyboard/keys.js';
|
|
16
16
|
|
|
17
17
|
var _excluded = ["children", "className", "currentIndex", "onChange", "spaceEqually", "vertical"],
|
|
18
18
|
_excluded2 = ["label", "description", "className", "current", "complete", "invalid", "secondaryLabel", "disabled", "onClick", "translateWithId"];
|
|
@@ -151,5 +151,6 @@ RadioButtonGroup.propTypes = {
|
|
|
151
151
|
*/
|
|
152
152
|
valueSelected: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
153
153
|
};
|
|
154
|
+
var RadioButtonGroup$1 = RadioButtonGroup;
|
|
154
155
|
|
|
155
|
-
export { RadioButtonGroup as default };
|
|
156
|
+
export { RadioButtonGroup$1 as default };
|
|
@@ -10,11 +10,11 @@ import { CheckmarkFilled } from '@carbon/icons-react';
|
|
|
10
10
|
import cx from 'classnames';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import React__default from 'react';
|
|
13
|
-
import { Enter, Space } from '../../internal/keyboard/keys.js';
|
|
14
|
-
import { matches } from '../../internal/keyboard/match.js';
|
|
15
13
|
import { useFallbackId } from '../../internal/useId.js';
|
|
16
14
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
17
15
|
import deprecate from '../../prop-types/deprecate.js';
|
|
16
|
+
import { matches } from '../../internal/keyboard/match.js';
|
|
17
|
+
import { Enter, Space } from '../../internal/keyboard/keys.js';
|
|
18
18
|
|
|
19
19
|
var _CheckmarkFilled;
|
|
20
20
|
|
|
@@ -6,13 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
|
-
import { Close, Search as Search$
|
|
9
|
+
import { Close, Search as Search$2 } from '@carbon/icons-react';
|
|
10
10
|
import cx from 'classnames';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import React__default, { useContext, useRef, useState } from 'react';
|
|
13
13
|
import { focus } from '../../internal/focus/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 { usePrefix } from '../../internal/usePrefix.js';
|
|
18
16
|
import { composeEventHandlers } from '../../tools/events.js';
|
|
@@ -20,6 +18,8 @@ import { useMergedRefs } from '../../internal/useMergedRefs.js';
|
|
|
20
18
|
import deprecate from '../../prop-types/deprecate.js';
|
|
21
19
|
import '../FluidForm/FluidForm.js';
|
|
22
20
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
21
|
+
import { match } from '../../internal/keyboard/match.js';
|
|
22
|
+
import { Escape } from '../../internal/keyboard/keys.js';
|
|
23
23
|
|
|
24
24
|
var _Close;
|
|
25
25
|
|
|
@@ -256,7 +256,7 @@ function CustomSearchIcon(_ref2) {
|
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
return /*#__PURE__*/React__default.createElement(Search$
|
|
259
|
+
return /*#__PURE__*/React__default.createElement(Search$2, {
|
|
260
260
|
className: "".concat(prefix, "--search-magnifier-icon")
|
|
261
261
|
});
|
|
262
262
|
}
|
|
@@ -267,5 +267,6 @@ CustomSearchIcon.propTypes = {
|
|
|
267
267
|
*/
|
|
268
268
|
icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
269
269
|
};
|
|
270
|
+
var Search$1 = Search;
|
|
270
271
|
|
|
271
|
-
export { Search as default };
|
|
272
|
+
export { Search$1 as default };
|
|
@@ -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 SecondaryButton = function SecondaryButton(props) {
|
|
14
13
|
return /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
@@ -16,4 +15,6 @@ var SecondaryButton = function SecondaryButton(props) {
|
|
|
16
15
|
}, props));
|
|
17
16
|
};
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
var SecondaryButton$1 = SecondaryButton;
|
|
19
|
+
|
|
20
|
+
export { SecondaryButton$1 as default };
|