@carbon/react 1.21.0 → 1.22.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/{es/components → components}/Checkbox/Checkbox.Skeleton.d.ts +0 -0
- package/es/{es/components → components}/Checkbox/Checkbox.d.ts +0 -0
- package/es/{es/components → components}/Checkbox/index.d.ts +0 -0
- 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.d.ts +83 -0
- 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.d.ts +134 -0
- package/es/components/Dropdown/Dropdown.js +27 -14
- package/es/components/Dropdown/index.d.ts +11 -0
- 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.d.ts +11 -0
- package/es/components/FluidForm/FluidForm.js +2 -2
- package/es/components/FluidForm/FormContext.d.ts +11 -0
- package/es/components/FluidForm/index.d.ts +10 -0
- 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 -1
- 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 +1 -2
- package/es/components/InlineCheckbox/InlineCheckbox.js +4 -1
- package/es/components/Link/Link.js +2 -1
- package/es/components/ListBox/ListBox.d.ts +60 -0
- package/es/components/ListBox/ListBox.js +4 -15
- package/es/components/ListBox/ListBoxField.d.ts +18 -0
- package/es/components/ListBox/ListBoxField.js +1 -1
- package/es/components/ListBox/ListBoxMenu.d.ts +22 -0
- package/es/components/ListBox/ListBoxMenu.js +2 -2
- package/es/components/ListBox/ListBoxMenuIcon.d.ts +31 -0
- package/es/components/ListBox/ListBoxMenuIcon.js +8 -5
- package/es/components/ListBox/ListBoxMenuItem.d.ts +24 -0
- package/es/components/ListBox/ListBoxMenuItem.js +2 -3
- package/es/components/ListBox/ListBoxPropTypes.d.ts +14 -0
- package/es/components/ListBox/ListBoxPropTypes.js +4 -2
- package/es/components/ListBox/ListBoxSelection.d.ts +51 -0
- package/es/components/ListBox/ListBoxSelection.js +7 -20
- package/es/components/ListBox/index.d.ts +23 -0
- 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/NumberInput/NumberInput.Skeleton.d.ts +32 -0
- package/es/components/OrderedList/OrderedList.js +2 -1
- package/es/components/OverflowMenu/OverflowMenu.js +40 -35
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +4 -3
- package/es/components/OverflowMenuV2/index.js +2 -2
- package/es/components/Pagination/Pagination.js +2 -1
- package/es/components/Pagination/experimental/Pagination.js +0 -1
- package/es/components/PaginationNav/PaginationNav.js +2 -2
- 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.d.ts +33 -0
- package/es/components/Select/Select.Skeleton.js +2 -1
- package/es/components/Select/Select.js +2 -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.d.ts +33 -0
- package/es/components/Slider/Slider.Skeleton.js +2 -1
- package/es/components/Slider/Slider.js +1 -1
- 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/{es/components → components}/Text/Text.d.ts +0 -0
- package/es/{es/components → components}/Text/TextDirection.d.ts +0 -0
- package/es/{es/components → components}/Text/createTextComponent.d.ts +0 -0
- package/es/{es/components → components}/Text/index.d.ts +0 -0
- 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/Toggletip/index.js +2 -2
- package/es/components/Tooltip/DefinitionTooltip.js +2 -2
- package/es/components/Tooltip/Tooltip.js +34 -5
- 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/index.d.ts → index.d.ts} +0 -0
- package/es/index.js +134 -140
- package/es/internal/ClickListener.js +1 -1
- package/es/internal/FloatingMenu.js +5 -6
- package/es/internal/OptimizedResize.js +3 -1
- package/es/internal/Selection.js +1 -1
- package/es/internal/useIsomorphicEffect.js +2 -1
- package/es/{es/internal → internal}/usePrefix.d.ts +0 -0
- 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/{lib/components → components}/Checkbox/Checkbox.Skeleton.d.ts +0 -0
- package/lib/{lib/components → components}/Checkbox/Checkbox.d.ts +0 -0
- package/lib/{lib/components → components}/Checkbox/index.d.ts +0 -0
- 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.d.ts +83 -0
- 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.d.ts +134 -0
- package/lib/components/Dropdown/Dropdown.js +30 -17
- package/lib/components/Dropdown/index.d.ts +11 -0
- 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.d.ts +11 -0
- package/lib/components/FluidForm/FluidForm.js +2 -2
- package/lib/components/FluidForm/FormContext.d.ts +11 -0
- package/lib/components/FluidForm/index.d.ts +10 -0
- 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 -1
- 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 +1 -2
- package/lib/components/InlineCheckbox/InlineCheckbox.js +4 -1
- package/lib/components/Link/Link.js +2 -1
- package/lib/components/ListBox/ListBox.d.ts +60 -0
- package/lib/components/ListBox/ListBox.js +3 -14
- package/lib/components/ListBox/ListBoxField.d.ts +18 -0
- package/lib/components/ListBox/ListBoxField.js +1 -1
- package/lib/components/ListBox/ListBoxMenu.d.ts +22 -0
- package/lib/components/ListBox/ListBoxMenu.js +2 -2
- package/lib/components/ListBox/ListBoxMenuIcon.d.ts +31 -0
- package/lib/components/ListBox/ListBoxMenuIcon.js +8 -5
- package/lib/components/ListBox/ListBoxMenuItem.d.ts +24 -0
- package/lib/components/ListBox/ListBoxMenuItem.js +2 -3
- package/lib/components/ListBox/ListBoxPropTypes.d.ts +14 -0
- package/lib/components/ListBox/ListBoxPropTypes.js +4 -2
- package/lib/components/ListBox/ListBoxSelection.d.ts +51 -0
- package/lib/components/ListBox/ListBoxSelection.js +7 -20
- package/lib/components/ListBox/index.d.ts +23 -0
- 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/NumberInput/NumberInput.Skeleton.d.ts +32 -0
- package/lib/components/OrderedList/OrderedList.js +2 -1
- package/lib/components/OverflowMenu/OverflowMenu.js +40 -54
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +4 -3
- package/lib/components/OverflowMenuV2/index.js +2 -2
- package/lib/components/Pagination/Pagination.js +2 -1
- package/lib/components/Pagination/experimental/Pagination.js +0 -1
- package/lib/components/PaginationNav/PaginationNav.js +2 -2
- 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.d.ts +33 -0
- package/lib/components/Select/Select.Skeleton.js +2 -1
- package/lib/components/Select/Select.js +2 -1
- 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.d.ts +33 -0
- package/lib/components/Slider/Slider.Skeleton.js +2 -1
- 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/{lib/components → components}/Text/Text.d.ts +0 -0
- package/lib/{lib/components → components}/Text/TextDirection.d.ts +0 -0
- package/lib/{lib/components → components}/Text/createTextComponent.d.ts +0 -0
- package/lib/{lib/components → components}/Text/index.d.ts +0 -0
- 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/Toggletip/index.js +2 -2
- package/lib/components/Tooltip/DefinitionTooltip.js +2 -2
- package/lib/components/Tooltip/Tooltip.js +33 -4
- 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/{lib/index.d.ts → index.d.ts} +0 -0
- package/lib/index.js +281 -287
- package/lib/internal/FloatingMenu.js +4 -5
- package/lib/internal/OptimizedResize.js +3 -1
- package/lib/internal/useIsomorphicEffect.js +2 -1
- package/lib/{lib/internal → internal}/usePrefix.d.ts +0 -0
- package/lib/tools/mergeRefs.js +3 -1
- package/lib/tools/wrapComponent.js +3 -1
- package/package.json +5 -5
- 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,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
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2018
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { HTMLAttributes } from 'react';
|
|
9
|
+
export interface NumberInputSkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Specify an optional className to add to the form item wrapper.
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Specify whether the label should be hidden, or not
|
|
16
|
+
*/
|
|
17
|
+
hideLabel?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare function NumberInputSkeleton({ hideLabel, className, ...rest }: NumberInputSkeletonProps): JSX.Element;
|
|
20
|
+
declare namespace NumberInputSkeleton {
|
|
21
|
+
var propTypes: {
|
|
22
|
+
/**
|
|
23
|
+
* Specify an optional className to add to the form item wrapper.
|
|
24
|
+
*/
|
|
25
|
+
className: PropTypes.Requireable<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Specify whether the label should be hidden, or not
|
|
28
|
+
*/
|
|
29
|
+
hideLabel: PropTypes.Requireable<boolean>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export default NumberInputSkeleton;
|
|
@@ -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
|
-
import * as FeatureFlags from '@carbon/feature-flags';
|
|
21
18
|
import deprecate from '../../prop-types/deprecate.js';
|
|
19
|
+
import { IconButton } from '../IconButton/index.js';
|
|
20
|
+
import { matches } from '../../internal/keyboard/match.js';
|
|
21
|
+
import { ArrowUp, ArrowRight, ArrowDown, 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
|
|
|
@@ -129,14 +129,14 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
-
_defineProperty(_assertThisInitialized(_this), "
|
|
133
|
-
|
|
134
|
-
_this.setState({
|
|
135
|
-
open: !_this.state.open
|
|
136
|
-
});
|
|
132
|
+
_defineProperty(_assertThisInitialized(_this), "closeMenuAndFocus", function () {
|
|
133
|
+
var wasOpen = _this.state.open;
|
|
137
134
|
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
_this.closeMenu(function () {
|
|
136
|
+
if (wasOpen) {
|
|
137
|
+
_this.focusMenuEl();
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
140
|
});
|
|
141
141
|
|
|
142
142
|
_defineProperty(_assertThisInitialized(_this), "handleKeyPress", function (evt) {
|
|
@@ -146,13 +146,7 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
if (matches(evt, [Escape])) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
_this.closeMenu(function () {
|
|
152
|
-
if (wasOpen) {
|
|
153
|
-
_this.focusMenuEl();
|
|
154
|
-
}
|
|
155
|
-
}); // Stop the esc keypress from bubbling out and closing something it shouldn't
|
|
149
|
+
_this.closeMenuAndFocus(); // Stop the esc keypress from bubbling out and closing something it shouldn't
|
|
156
150
|
|
|
157
151
|
|
|
158
152
|
evt.stopPropagation();
|
|
@@ -187,8 +181,6 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
187
181
|
});
|
|
188
182
|
|
|
189
183
|
_defineProperty(_assertThisInitialized(_this), "handleOverflowMenuItemFocus", function (_ref) {
|
|
190
|
-
var _overflowMenuItem$cur;
|
|
191
|
-
|
|
192
184
|
var currentIndex = _ref.currentIndex,
|
|
193
185
|
direction = _ref.direction;
|
|
194
186
|
var enabledIndices = React__default.Children.toArray(_this.props.children).reduce(function (acc, curr, i) {
|
|
@@ -202,7 +194,7 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
202
194
|
var nextValidIndex = function () {
|
|
203
195
|
var nextIndex = enabledIndices.indexOf(currentIndex) + direction;
|
|
204
196
|
|
|
205
|
-
switch (
|
|
197
|
+
switch (nextIndex) {
|
|
206
198
|
case -1:
|
|
207
199
|
return enabledIndices.length - 1;
|
|
208
200
|
|
|
@@ -214,9 +206,9 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
214
206
|
}
|
|
215
207
|
}();
|
|
216
208
|
|
|
217
|
-
var overflowMenuItem = _this["overflowMenuItem".concat(enabledIndices[nextValidIndex])]
|
|
209
|
+
var overflowMenuItem = _this["overflowMenuItem".concat(enabledIndices[nextValidIndex])];
|
|
218
210
|
|
|
219
|
-
overflowMenuItem === null || overflowMenuItem === void 0 ? void 0 :
|
|
211
|
+
overflowMenuItem === null || overflowMenuItem === void 0 ? void 0 : overflowMenuItem.focus();
|
|
220
212
|
});
|
|
221
213
|
|
|
222
214
|
_defineProperty(_assertThisInitialized(_this), "_bindMenuBody", function (menuBody) {
|
|
@@ -240,7 +232,7 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
240
232
|
|
|
241
233
|
if (typeof target.matches === 'function') {
|
|
242
234
|
if (!menuBody.contains(target) && triggerEl && !target.matches(".".concat(_this.context, "--overflow-menu,.").concat(_this.context, "--overflow-menu-options"))) {
|
|
243
|
-
_this.
|
|
235
|
+
_this.closeMenuAndFocus();
|
|
244
236
|
}
|
|
245
237
|
}
|
|
246
238
|
}, !hasFocusin);
|
|
@@ -266,6 +258,17 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
266
258
|
onClose();
|
|
267
259
|
}
|
|
268
260
|
}
|
|
261
|
+
}, {
|
|
262
|
+
key: "componentDidMount",
|
|
263
|
+
value: function componentDidMount() {
|
|
264
|
+
// ensure that if open=true on first render, we wait
|
|
265
|
+
// to render the floating menu until the trigger ref is not null
|
|
266
|
+
if (this._triggerRef.current) {
|
|
267
|
+
this.setState({
|
|
268
|
+
hasMountedTrigger: true
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
269
272
|
}, {
|
|
270
273
|
key: "componentWillUnmount",
|
|
271
274
|
value: function componentWillUnmount() {
|
|
@@ -313,7 +316,7 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
313
316
|
var _child$props;
|
|
314
317
|
|
|
315
318
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
316
|
-
closeMenu: (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.closeMenu) || _this2.
|
|
319
|
+
closeMenu: (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.closeMenu) || _this2.closeMenuAndFocus,
|
|
317
320
|
handleOverflowMenuItemFocus: _this2.handleOverflowMenuItemFocus,
|
|
318
321
|
ref: function ref(e) {
|
|
319
322
|
_this2["overflowMenuItem".concat(index)] = e;
|
|
@@ -325,7 +328,8 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
325
328
|
className: overflowMenuOptionsClasses,
|
|
326
329
|
tabIndex: "-1",
|
|
327
330
|
role: "menu",
|
|
328
|
-
"aria-label": ariaLabel
|
|
331
|
+
"aria-label": ariaLabel,
|
|
332
|
+
onKeyDown: this.handleKeyPress
|
|
329
333
|
}, childrenWithProps);
|
|
330
334
|
var wrappedMenuBody = /*#__PURE__*/React__default.createElement(FloatingMenu, {
|
|
331
335
|
focusTrap: focusTrap,
|
|
@@ -346,17 +350,18 @@ var OverflowMenu = /*#__PURE__*/function (_Component) {
|
|
|
346
350
|
};
|
|
347
351
|
return /*#__PURE__*/React__default.createElement(ClickListener, {
|
|
348
352
|
onClickOutside: this.handleClickOutside
|
|
349
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
353
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
354
|
+
className: "".concat(prefix, "--overflow-menu__wrapper")
|
|
355
|
+
}, /*#__PURE__*/React__default.createElement(IconButton, _extends({}, other, {
|
|
350
356
|
type: "button",
|
|
351
357
|
"aria-haspopup": true,
|
|
352
358
|
"aria-expanded": this.state.open,
|
|
353
359
|
className: overflowMenuClasses,
|
|
354
|
-
onKeyDown: this.handleKeyPress,
|
|
355
360
|
onClick: this.handleClick,
|
|
356
|
-
"aria-label": ariaLabel,
|
|
357
361
|
id: id,
|
|
358
|
-
ref: mergeRefs(this._triggerRef, ref)
|
|
359
|
-
|
|
362
|
+
ref: mergeRefs(this._triggerRef, ref),
|
|
363
|
+
label: iconDescription
|
|
364
|
+
}), /*#__PURE__*/React__default.createElement(IconElement, iconProps)), open && this.state.hasMountedTrigger && wrappedMenuBody));
|
|
360
365
|
}
|
|
361
366
|
}], [{
|
|
362
367
|
key: "getDerivedStateFromProps",
|
|
@@ -377,7 +382,7 @@ _defineProperty(OverflowMenu, "propTypes", {
|
|
|
377
382
|
/**
|
|
378
383
|
* The ARIA label.
|
|
379
384
|
*/
|
|
380
|
-
ariaLabel:
|
|
385
|
+
ariaLabel: PropTypes.string.isRequired,
|
|
381
386
|
|
|
382
387
|
/**
|
|
383
388
|
* The child nodes.
|
|
@@ -423,7 +428,7 @@ _defineProperty(OverflowMenu, "propTypes", {
|
|
|
423
428
|
* `true` to use the light version. For use on $ui-01 backgrounds only.
|
|
424
429
|
* Don't use this to make OverflowMenu background color same as container background color.
|
|
425
430
|
*/
|
|
426
|
-
light:
|
|
431
|
+
light: deprecate(PropTypes.bool, 'The `light` prop for `OverflowMenu` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead.'),
|
|
427
432
|
|
|
428
433
|
/**
|
|
429
434
|
* The adjustment in position applied to the floating menu.
|
|
@@ -490,14 +495,14 @@ _defineProperty(OverflowMenu, "propTypes", {
|
|
|
490
495
|
/**
|
|
491
496
|
* Specify the size of the OverflowMenu. Currently supports either `sm`, 'md' (default) or 'lg` as an option.
|
|
492
497
|
*/
|
|
493
|
-
size:
|
|
498
|
+
size: PropTypes.oneOf(['sm', 'md', 'lg'])
|
|
494
499
|
});
|
|
495
500
|
|
|
496
501
|
_defineProperty(OverflowMenu, "contextType", PrefixContext);
|
|
497
502
|
|
|
498
503
|
_defineProperty(OverflowMenu, "defaultProps", {
|
|
499
|
-
ariaLabel:
|
|
500
|
-
iconDescription: '
|
|
504
|
+
ariaLabel: null,
|
|
505
|
+
iconDescription: 'Options',
|
|
501
506
|
open: false,
|
|
502
507
|
direction: DIRECTION_BOTTOM,
|
|
503
508
|
flipped: false,
|
|
@@ -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 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
15
|
import '../../Select/Select.Skeleton.js';
|
|
17
16
|
import SelectItem from '../../SelectItem/SelectItem.js';
|
|
@@ -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 };
|
|
@@ -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 };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2018
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { HTMLAttributes } from 'react';
|
|
9
|
+
export interface SelectSkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Specify an optional className to add to the form item wrapper.
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Specify whether the label should be hidden, or not
|
|
16
|
+
*/
|
|
17
|
+
hideLabel?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const SelectSkeleton: {
|
|
20
|
+
({ hideLabel, className, ...rest }: SelectSkeletonProps): JSX.Element;
|
|
21
|
+
propTypes: {
|
|
22
|
+
/**
|
|
23
|
+
* Specify an optional className to add to the form item wrapper.
|
|
24
|
+
*/
|
|
25
|
+
className: PropTypes.Requireable<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Specify whether the label should be hidden, or not
|
|
28
|
+
*/
|
|
29
|
+
hideLabel: PropTypes.Requireable<boolean>;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default SelectSkeleton;
|
|
33
|
+
export { SelectSkeleton };
|
|
@@ -55,5 +55,6 @@ SelectItemGroup.defaultProps = {
|
|
|
55
55
|
disabled: false,
|
|
56
56
|
label: FeatureFlags.enabled('enable-v11-release') ? undefined : 'Provide label'
|
|
57
57
|
};
|
|
58
|
+
var SelectItemGroup$1 = SelectItemGroup;
|
|
58
59
|
|
|
59
|
-
export { SelectItemGroup as default };
|
|
60
|
+
export { SelectItemGroup$1 as default };
|