@carbon/react 1.29.1 → 1.30.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/_virtual/_rollupPluginBabelHelpers.js +16 -5
- package/es/components/Accordion/Accordion.Skeleton.js +0 -7
- package/es/components/Accordion/Accordion.js +1 -8
- package/es/components/Accordion/AccordionItem.js +5 -19
- package/es/components/AspectRatio/AspectRatio.js +0 -5
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +0 -3
- package/es/components/Breadcrumb/Breadcrumb.js +0 -3
- package/es/components/Breadcrumb/BreadcrumbItem.js +0 -7
- package/es/components/Button/Button.Skeleton.js +2 -7
- package/es/components/Button/Button.js +2 -36
- package/es/components/ButtonSet/ButtonSet.js +0 -2
- package/es/components/Checkbox/Checkbox.Skeleton.js +0 -1
- package/es/components/Checkbox/Checkbox.js +4 -20
- package/es/components/CheckboxGroup/CheckboxGroup.js +0 -11
- package/es/components/ClassPrefix/index.d.ts +26 -0
- package/es/components/ClassPrefix/index.js +0 -2
- package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +0 -5
- package/es/components/CodeSnippet/CodeSnippet.js +6 -45
- package/es/components/ComboBox/ComboBox.js +12 -79
- package/es/components/ComboBox/tools/filter.js +0 -1
- package/es/components/ComboButton/index.js +0 -14
- package/es/components/ComposedModal/ComposedModal.js +2 -32
- package/es/components/ComposedModal/ModalFooter.js +0 -21
- package/es/components/ComposedModal/ModalHeader.js +0 -12
- package/es/components/ContainedList/ContainedList.js +5 -32
- package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +0 -6
- package/es/components/ContentSwitcher/ContentSwitcher.js +11 -23
- package/es/components/ContextMenu/useContextMenu.js +1 -6
- package/es/components/Copy/Copy.js +8 -31
- package/es/components/CopyButton/CopyButton.js +0 -4
- package/es/components/DangerButton/DangerButton.js +0 -1
- package/es/components/DataTable/DataTable.js +171 -91
- package/es/components/DataTable/Table.js +0 -6
- package/es/components/DataTable/TableBatchAction.js +0 -4
- package/es/components/DataTable/TableBatchActions.js +0 -8
- package/es/components/DataTable/TableBody.js +0 -1
- package/es/components/DataTable/TableContainer.js +0 -5
- package/es/components/DataTable/TableExpandHeader.js +0 -7
- package/es/components/DataTable/TableExpandRow.js +0 -6
- package/es/components/DataTable/TableExpandedRow.js +0 -6
- package/es/components/DataTable/TableHeader.d.ts +1 -1
- package/es/components/DataTable/TableHeader.js +3 -19
- package/es/components/DataTable/TableRow.js +4 -5
- package/es/components/DataTable/TableSelectAll.js +0 -8
- package/es/components/DataTable/TableSelectRow.js +2 -10
- package/es/components/DataTable/TableToolbar.js +0 -3
- package/es/components/DataTable/TableToolbarMenu.d.ts +1 -1
- package/es/components/DataTable/TableToolbarMenu.js +3 -6
- package/es/components/DataTable/TableToolbarSearch.js +2 -30
- package/es/components/DataTable/state/getDerivedStateFromProps.js +0 -4
- package/es/components/DataTable/state/sorting.js +5 -8
- package/es/components/DataTable/tools/denormalize.js +2 -2
- package/es/components/DataTable/tools/filter.js +0 -2
- package/es/components/DataTable/tools/instanceId.js +0 -1
- package/es/components/DataTable/tools/normalize.js +10 -10
- package/es/components/DataTable/tools/sorting.js +5 -13
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +5 -20
- package/es/components/DatePicker/DatePicker.Skeleton.js +0 -6
- package/es/components/DatePicker/DatePicker.js +152 -174
- package/es/components/DatePicker/plugins/appendToPlugin.js +3 -7
- package/es/components/DatePicker/plugins/fixEventsPlugin.js +14 -25
- package/es/components/DatePicker/plugins/rangePlugin.js +2 -7
- package/es/components/DatePickerInput/DatePickerInput.js +2 -28
- package/es/components/Dropdown/Dropdown.Skeleton.js +0 -2
- package/es/components/Dropdown/Dropdown.js +43 -52
- package/es/components/ErrorBoundary/ErrorBoundary.js +0 -10
- package/es/components/ErrorBoundary/ErrorBoundaryContext.js +0 -1
- package/es/components/ExpandableSearch/ExpandableSearch.js +1 -10
- package/es/components/FeatureFlags/index.js +8 -20
- package/es/components/FileUploader/FileUploader.Skeleton.js +0 -2
- package/es/components/FileUploader/FileUploader.js +3 -38
- package/es/components/FileUploader/FileUploaderButton.js +3 -24
- package/es/components/FileUploader/FileUploaderDropContainer.js +1 -28
- package/es/components/FileUploader/FileUploaderItem.js +1 -11
- package/es/components/FileUploader/Filename.js +0 -10
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +0 -1
- package/es/components/FluidComboBox/FluidComboBox.js +0 -18
- package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +0 -2
- package/es/components/FluidDatePicker/FluidDatePicker.js +0 -6
- package/es/components/FluidDatePickerInput/FluidDatePickerInput.js +2 -1
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +0 -1
- package/es/components/FluidDropdown/FluidDropdown.js +0 -18
- package/es/components/FluidForm/FluidForm.js +0 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +0 -1
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +0 -19
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +0 -1
- package/es/components/FluidSelect/FluidSelect.js +0 -10
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +0 -1
- package/es/components/FluidTextArea/FluidTextArea.js +0 -20
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +0 -1
- package/es/components/FluidTextInput/FluidTextInput.js +0 -14
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +0 -3
- package/es/components/FluidTimePicker/FluidTimePicker.js +1 -11
- package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +0 -6
- package/es/components/Form/Form.d.ts +23 -0
- package/es/components/Form/Form.js +3 -6
- package/es/components/Form/index.d.ts +7 -0
- package/es/components/FormGroup/FormGroup.js +0 -7
- package/es/components/FormItem/FormItem.js +0 -2
- package/es/components/FormLabel/FormLabel.js +1 -7
- package/es/components/Grid/CSSGrid.js +2 -15
- package/es/components/Grid/Column.js +18 -59
- package/es/components/Grid/ColumnHang.js +2 -5
- package/es/components/Grid/FlexGrid.js +2 -8
- package/es/components/Grid/Grid.js +0 -8
- package/es/components/Grid/GridContext.js +1 -3
- package/es/components/Grid/Row.js +2 -7
- package/es/components/Heading/index.js +0 -4
- package/es/components/Icon/Icon.Skeleton.js +2 -2
- package/es/components/IconButton/index.js +0 -10
- package/es/components/IdPrefix/index.js +0 -2
- package/es/components/InlineCheckbox/InlineCheckbox.js +0 -14
- package/es/components/InlineLoading/InlineLoading.js +0 -12
- package/es/components/Layer/index.js +3 -6
- package/es/components/Layout/LayoutDirection.js +0 -3
- package/es/components/Layout/useLayoutDirection.js +0 -1
- package/es/components/Link/Link.js +3 -10
- package/es/components/ListBox/ListBox.js +2 -13
- package/es/components/ListBox/ListBoxField.js +0 -5
- package/es/components/ListBox/ListBoxMenuIcon.js +0 -4
- package/es/components/ListBox/ListBoxMenuItem.js +2 -6
- package/es/components/ListBox/ListBoxPropTypes.d.ts +2 -2
- package/es/components/ListBox/ListBoxSelection.js +1 -13
- package/es/components/ListBox/next/ListBoxSelection.js +1 -14
- package/es/components/ListBox/next/ListBoxTrigger.js +1 -3
- package/es/components/ListItem/ListItem.d.ts +23 -0
- package/es/components/ListItem/ListItem.js +4 -8
- package/es/components/ListItem/index.d.ts +7 -0
- package/es/components/Loading/Loading.js +0 -6
- package/es/components/Menu/Menu.js +22 -40
- package/es/components/Menu/MenuContext.js +4 -5
- package/es/components/Menu/MenuItem.js +5 -39
- package/es/components/MenuButton/index.js +0 -9
- package/es/components/Modal/Modal.js +0 -43
- package/es/components/ModalWrapper/ModalWrapper.js +2 -15
- package/es/components/MultiSelect/FilterableMultiSelect.js +2 -60
- package/es/components/MultiSelect/MultiSelect.js +22 -70
- package/es/components/MultiSelect/MultiSelectPropTypes.js +0 -1
- package/es/components/MultiSelect/index.js +0 -1
- package/es/components/MultiSelect/tools/itemToString.js +0 -2
- package/es/components/MultiSelect/tools/sorting.js +3 -4
- package/es/components/Notification/Notification.js +0 -78
- package/es/components/NumberInput/NumberInput.Skeleton.js +0 -2
- package/es/components/NumberInput/NumberInput.js +3 -60
- package/es/components/OrderedList/OrderedList.d.ts +39 -0
- package/es/components/OrderedList/OrderedList.js +7 -19
- package/es/components/{Form/index.js → OrderedList/index.d.ts} +1 -3
- package/es/components/OverflowMenu/OverflowMenu.js +65 -86
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +6 -23
- package/es/components/OverflowMenuV2/index.js +0 -5
- package/es/components/Pagination/Pagination.Skeleton.js +0 -2
- package/es/components/Pagination/Pagination.js +11 -47
- package/es/components/Pagination/experimental/PageSelector.js +0 -10
- package/es/components/Pagination/experimental/Pagination.js +2 -48
- package/es/components/PaginationNav/PaginationNav.js +15 -59
- package/es/components/Popover/index.d.ts +14 -8
- package/es/components/Popover/index.js +44 -48
- package/es/components/PrimaryButton/PrimaryButton.js +0 -1
- package/es/components/ProgressBar/ProgressBar.js +0 -15
- package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +0 -4
- package/es/components/ProgressIndicator/ProgressIndicator.js +2 -40
- package/es/components/RadioButton/RadioButton.Skeleton.js +0 -1
- package/es/components/RadioButton/RadioButton.js +0 -13
- package/es/components/RadioButtonGroup/RadioButtonGroup.js +3 -23
- package/es/components/RadioTile/RadioTile.js +0 -12
- package/es/components/Search/Search.Skeleton.js +0 -2
- package/es/components/Search/Search.js +1 -28
- package/es/components/SecondaryButton/SecondaryButton.js +0 -1
- package/es/components/Select/Select.Skeleton.js +0 -2
- package/es/components/Select/Select.d.ts +1 -1
- package/es/components/Select/Select.js +6 -33
- package/es/components/SelectItem/SelectItem.js +0 -5
- package/es/components/SelectItemGroup/SelectItemGroup.d.ts +0 -1
- package/es/components/SelectItemGroup/SelectItemGroup.js +1 -7
- package/es/components/SkeletonIcon/SkeletonIcon.js +0 -2
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +0 -1
- package/es/components/SkeletonText/SkeletonText.js +0 -12
- package/es/components/Slider/Slider.Skeleton.js +0 -2
- package/es/components/Slider/Slider.d.ts +0 -1
- package/es/components/Slider/Slider.js +112 -135
- package/es/components/Stack/Stack.js +1 -8
- package/es/components/StructuredList/StructuredList.Skeleton.js +0 -5
- package/es/components/StructuredList/StructuredList.js +1 -25
- package/es/components/Switch/IconSwitch.js +0 -18
- package/es/components/Switch/Switch.js +0 -11
- package/es/components/TabContent/TabContent.js +2 -6
- package/es/components/Tabs/Tabs.Skeleton.js +0 -4
- package/es/components/Tabs/Tabs.js +135 -104
- package/es/components/Tabs/usePressable.js +18 -31
- package/es/components/Tag/Tag.Skeleton.js +0 -2
- package/es/components/Tag/Tag.js +0 -15
- package/es/components/Text/Text.js +5 -18
- package/es/components/Text/TextDirection.js +0 -3
- package/es/components/Text/TextDirectionContext.js +0 -1
- package/es/components/Text/createTextComponent.js +0 -3
- package/es/components/TextArea/TextArea.Skeleton.js +0 -2
- package/es/components/TextArea/TextArea.js +11 -33
- package/es/components/TextInput/ControlledPasswordInput.js +0 -20
- package/es/components/TextInput/PasswordInput.js +0 -25
- package/es/components/TextInput/TextInput.Skeleton.js +0 -2
- package/es/components/TextInput/TextInput.d.ts +1 -1
- package/es/components/TextInput/TextInput.js +5 -33
- package/es/components/TextInput/util.js +3 -5
- package/es/components/Theme/index.js +1 -6
- package/es/components/Tile/Tile.js +32 -59
- package/es/components/TileGroup/TileGroup.js +1 -22
- package/es/components/TimePicker/TimePicker.js +6 -32
- package/es/components/TimePickerSelect/TimePickerSelect.js +2 -5
- package/es/components/Toggle/Toggle.Skeleton.js +0 -8
- package/es/components/Toggle/Toggle.js +0 -16
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +0 -7
- package/es/components/Toggletip/index.d.ts +148 -0
- package/es/components/Toggletip/index.js +20 -44
- package/es/components/Tooltip/DefinitionTooltip.js +0 -11
- package/es/components/Tooltip/Tooltip.d.ts +1 -1
- package/es/components/Tooltip/Tooltip.js +4 -21
- package/es/components/TreeView/TreeNode.js +21 -66
- package/es/components/TreeView/TreeView.js +11 -67
- package/es/components/UIShell/Content.js +2 -4
- package/es/components/UIShell/Header.js +0 -2
- package/es/components/UIShell/HeaderContainer.d.ts +33 -0
- package/es/components/UIShell/HeaderContainer.js +13 -11
- package/es/components/UIShell/HeaderGlobalAction.js +0 -6
- package/es/components/UIShell/HeaderGlobalBar.js +0 -1
- package/es/components/UIShell/HeaderMenu.js +32 -31
- package/es/components/UIShell/HeaderMenuButton.js +2 -4
- package/es/components/UIShell/HeaderMenuItem.js +0 -8
- package/es/components/UIShell/HeaderName.js +0 -5
- package/es/components/UIShell/HeaderNavigation.js +0 -2
- package/es/components/UIShell/HeaderPanel.js +0 -2
- package/es/components/UIShell/HeaderSideNavItems.js +0 -2
- package/es/components/UIShell/Link.js +2 -3
- package/es/components/UIShell/SideNav.d.ts +3 -1
- package/es/components/UIShell/SideNav.js +44 -36
- package/es/components/UIShell/SideNavDetails.js +0 -3
- package/es/components/UIShell/SideNavDivider.js +0 -1
- package/es/components/UIShell/SideNavFooter.js +1 -4
- package/es/components/UIShell/SideNavHeader.js +0 -4
- package/es/components/UIShell/SideNavIcon.js +0 -3
- package/es/components/UIShell/SideNavItem.js +0 -3
- package/es/components/UIShell/SideNavItems.js +2 -6
- package/es/components/UIShell/SideNavLink.js +3 -7
- package/es/components/UIShell/SideNavLinkText.js +0 -2
- package/es/components/UIShell/SideNavMenu.js +0 -16
- package/es/components/UIShell/SideNavMenuItem.js +0 -2
- package/es/components/UIShell/SideNavSwitcher.js +2 -5
- package/es/components/UIShell/SkipToContent.d.ts +32 -0
- package/es/components/UIShell/SkipToContent.js +8 -15
- package/es/components/UIShell/Switcher.js +0 -2
- package/es/components/UIShell/SwitcherDivider.js +0 -1
- package/es/components/UIShell/SwitcherItem.js +0 -3
- package/es/components/UnorderedList/UnorderedList.d.ts +34 -0
- package/es/components/UnorderedList/UnorderedList.js +6 -16
- package/es/components/UnorderedList/index.d.ts +7 -0
- package/es/index.js +7 -8
- package/es/internal/ClickListener.js +3 -13
- package/es/internal/FloatingMenu.js +57 -63
- package/es/internal/OptimizedResize.js +6 -12
- package/es/internal/Selection.js +2 -25
- package/es/internal/createClassWrapper.js +0 -2
- package/es/internal/deprecateFieldOnObject.js +0 -4
- package/es/internal/focus/index.js +0 -1
- package/es/internal/keyboard/keys.js +2 -1
- package/es/internal/keyboard/match.js +1 -6
- package/es/internal/keyboard/navigation.js +8 -7
- package/es/internal/useAnnouncer.js +0 -1
- package/es/internal/useAttachedMenu.js +1 -9
- package/es/internal/useControllableState.js +6 -13
- package/es/internal/useDelayedState.js +2 -4
- package/es/internal/useEffectOnce.js +0 -1
- package/es/internal/useEvent.js +61 -3
- package/es/internal/useId.js +2 -5
- package/es/internal/useIsomorphicEffect.js +1 -0
- package/es/internal/useMergedRefs.js +2 -2
- package/es/internal/useNoInteractiveChildren.js +2 -13
- package/es/internal/useNormalizedInputProps.js +0 -3
- package/es/internal/useSavedCallback.js +0 -1
- package/es/internal/warning.js +0 -3
- package/es/internal/wrapFocus.js +1 -8
- package/es/prop-types/deprecate.js +2 -5
- package/es/prop-types/isRequiredOneOf.js +2 -5
- package/es/prop-types/requiredIfGivenPropIsTruthy.js +0 -2
- package/es/tools/array.js +0 -3
- package/es/tools/events.js +0 -3
- package/es/tools/mergeRefs.js +0 -2
- package/es/tools/wrapComponent.js +2 -5
- package/lib/_virtual/_rollupPluginBabelHelpers.js +17 -4
- package/lib/components/Accordion/Accordion.Skeleton.js +0 -7
- package/lib/components/Accordion/Accordion.js +1 -27
- package/lib/components/Accordion/AccordionItem.js +5 -19
- package/lib/components/AspectRatio/AspectRatio.js +0 -5
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +0 -3
- package/lib/components/Breadcrumb/Breadcrumb.js +0 -3
- package/lib/components/Breadcrumb/BreadcrumbItem.js +0 -7
- package/lib/components/Button/Button.Skeleton.js +2 -26
- package/lib/components/Button/Button.js +2 -36
- package/lib/components/ButtonSet/ButtonSet.js +0 -2
- package/lib/components/Checkbox/Checkbox.Skeleton.js +0 -1
- package/lib/components/Checkbox/Checkbox.js +4 -20
- package/lib/components/CheckboxGroup/CheckboxGroup.js +0 -11
- package/lib/components/ClassPrefix/index.d.ts +26 -0
- package/lib/components/ClassPrefix/index.js +0 -2
- package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +0 -5
- package/lib/components/CodeSnippet/CodeSnippet.js +6 -45
- package/lib/components/ComboBox/ComboBox.js +19 -86
- package/lib/components/ComboBox/tools/filter.js +0 -1
- package/lib/components/ComboButton/index.js +0 -14
- package/lib/components/ComposedModal/ComposedModal.js +2 -32
- package/lib/components/ComposedModal/ModalFooter.js +0 -21
- package/lib/components/ComposedModal/ModalHeader.js +0 -12
- package/lib/components/ContainedList/ContainedList.js +5 -32
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +0 -6
- package/lib/components/ContentSwitcher/ContentSwitcher.js +11 -23
- package/lib/components/ContextMenu/useContextMenu.js +1 -6
- package/lib/components/Copy/Copy.js +8 -50
- package/lib/components/CopyButton/CopyButton.js +0 -4
- package/lib/components/DangerButton/DangerButton.js +0 -1
- package/lib/components/DataTable/DataTable.js +171 -91
- package/lib/components/DataTable/Table.js +0 -6
- package/lib/components/DataTable/TableBatchAction.js +0 -4
- package/lib/components/DataTable/TableBatchActions.js +0 -8
- package/lib/components/DataTable/TableBody.js +0 -1
- package/lib/components/DataTable/TableContainer.js +0 -5
- package/lib/components/DataTable/TableExpandHeader.js +0 -7
- package/lib/components/DataTable/TableExpandRow.js +0 -6
- package/lib/components/DataTable/TableExpandedRow.js +0 -6
- package/lib/components/DataTable/TableHeader.d.ts +1 -1
- package/lib/components/DataTable/TableHeader.js +3 -19
- package/lib/components/DataTable/TableRow.js +4 -5
- package/lib/components/DataTable/TableSelectAll.js +0 -8
- package/lib/components/DataTable/TableSelectRow.js +2 -10
- package/lib/components/DataTable/TableToolbar.js +0 -3
- package/lib/components/DataTable/TableToolbarMenu.d.ts +1 -1
- package/lib/components/DataTable/TableToolbarMenu.js +3 -6
- package/lib/components/DataTable/TableToolbarSearch.js +2 -30
- package/lib/components/DataTable/state/getDerivedStateFromProps.js +0 -4
- package/lib/components/DataTable/state/sorting.js +5 -8
- package/lib/components/DataTable/tools/denormalize.js +2 -2
- package/lib/components/DataTable/tools/filter.js +0 -2
- package/lib/components/DataTable/tools/instanceId.js +0 -1
- package/lib/components/DataTable/tools/normalize.js +10 -10
- package/lib/components/DataTable/tools/sorting.js +5 -13
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +5 -20
- package/lib/components/DatePicker/DatePicker.Skeleton.js +0 -6
- package/lib/components/DatePicker/DatePicker.js +152 -174
- package/lib/components/DatePicker/plugins/appendToPlugin.js +3 -7
- package/lib/components/DatePicker/plugins/fixEventsPlugin.js +14 -25
- package/lib/components/DatePicker/plugins/rangePlugin.js +2 -7
- package/lib/components/DatePickerInput/DatePickerInput.js +2 -28
- package/lib/components/Dropdown/Dropdown.Skeleton.js +0 -2
- package/lib/components/Dropdown/Dropdown.js +50 -59
- package/lib/components/ErrorBoundary/ErrorBoundary.js +0 -10
- package/lib/components/ErrorBoundary/ErrorBoundaryContext.js +0 -1
- package/lib/components/ExpandableSearch/ExpandableSearch.js +1 -10
- package/lib/components/FeatureFlags/index.js +8 -20
- package/lib/components/FileUploader/FileUploader.Skeleton.js +0 -2
- package/lib/components/FileUploader/FileUploader.js +3 -57
- package/lib/components/FileUploader/FileUploaderButton.js +3 -43
- package/lib/components/FileUploader/FileUploaderDropContainer.js +1 -28
- package/lib/components/FileUploader/FileUploaderItem.js +1 -30
- package/lib/components/FileUploader/Filename.js +0 -10
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +0 -1
- package/lib/components/FluidComboBox/FluidComboBox.js +0 -18
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +0 -2
- package/lib/components/FluidDatePicker/FluidDatePicker.js +0 -6
- package/lib/components/FluidDatePickerInput/FluidDatePickerInput.js +2 -1
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +0 -1
- package/lib/components/FluidDropdown/FluidDropdown.js +0 -18
- package/lib/components/FluidForm/FluidForm.js +0 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +0 -1
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +0 -19
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +0 -1
- package/lib/components/FluidSelect/FluidSelect.js +0 -10
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +0 -1
- package/lib/components/FluidTextArea/FluidTextArea.js +0 -20
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +0 -1
- package/lib/components/FluidTextInput/FluidTextInput.js +0 -14
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +0 -3
- package/lib/components/FluidTimePicker/FluidTimePicker.js +1 -11
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +0 -6
- package/lib/components/Form/Form.d.ts +23 -0
- package/lib/components/Form/Form.js +3 -6
- package/lib/components/Form/index.d.ts +7 -0
- package/lib/components/FormGroup/FormGroup.js +0 -7
- package/lib/components/FormItem/FormItem.js +0 -2
- package/lib/components/FormLabel/FormLabel.js +1 -26
- package/lib/components/Grid/CSSGrid.js +2 -15
- package/lib/components/Grid/Column.js +18 -59
- package/lib/components/Grid/ColumnHang.js +2 -5
- package/lib/components/Grid/FlexGrid.js +2 -8
- package/lib/components/Grid/Grid.js +0 -8
- package/lib/components/Grid/GridContext.js +1 -3
- package/lib/components/Grid/Row.js +2 -7
- package/lib/components/Heading/index.js +0 -4
- package/lib/components/Icon/Icon.Skeleton.js +2 -2
- package/lib/components/IconButton/index.js +0 -10
- package/lib/components/IdPrefix/index.js +0 -2
- package/lib/components/InlineCheckbox/InlineCheckbox.js +0 -14
- package/lib/components/InlineLoading/InlineLoading.js +0 -12
- package/lib/components/Layer/index.js +3 -6
- package/lib/components/Layout/LayoutDirection.js +0 -3
- package/lib/components/Layout/useLayoutDirection.js +0 -1
- package/lib/components/Link/Link.js +3 -10
- package/lib/components/ListBox/ListBox.js +2 -13
- package/lib/components/ListBox/ListBoxField.js +0 -5
- package/lib/components/ListBox/ListBoxMenuIcon.js +0 -4
- package/lib/components/ListBox/ListBoxMenuItem.js +2 -6
- package/lib/components/ListBox/ListBoxPropTypes.d.ts +2 -2
- package/lib/components/ListBox/ListBoxSelection.js +1 -13
- package/lib/components/ListBox/next/ListBoxSelection.js +1 -14
- package/lib/components/ListBox/next/ListBoxTrigger.js +1 -3
- package/lib/components/ListItem/ListItem.d.ts +23 -0
- package/lib/components/ListItem/ListItem.js +4 -8
- package/lib/components/ListItem/index.d.ts +7 -0
- package/lib/components/Loading/Loading.js +0 -6
- package/lib/components/Menu/Menu.js +22 -40
- package/lib/components/Menu/MenuContext.js +4 -5
- package/lib/components/Menu/MenuItem.js +5 -39
- package/lib/components/MenuButton/index.js +0 -9
- package/lib/components/Modal/Modal.js +0 -43
- package/lib/components/ModalWrapper/ModalWrapper.js +2 -15
- package/lib/components/MultiSelect/FilterableMultiSelect.js +8 -66
- package/lib/components/MultiSelect/MultiSelect.js +30 -78
- package/lib/components/MultiSelect/MultiSelectPropTypes.js +0 -1
- package/lib/components/MultiSelect/index.js +0 -1
- package/lib/components/MultiSelect/tools/itemToString.js +0 -2
- package/lib/components/MultiSelect/tools/sorting.js +3 -4
- package/lib/components/Notification/Notification.js +0 -78
- package/lib/components/NumberInput/NumberInput.Skeleton.js +0 -2
- package/lib/components/NumberInput/NumberInput.js +3 -60
- package/lib/components/OrderedList/OrderedList.d.ts +39 -0
- package/lib/components/OrderedList/OrderedList.js +7 -19
- package/lib/components/OrderedList/index.d.ts +7 -0
- package/lib/components/OverflowMenu/OverflowMenu.js +65 -86
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +6 -23
- package/lib/components/OverflowMenuV2/index.js +0 -5
- package/lib/components/Pagination/Pagination.Skeleton.js +0 -2
- package/lib/components/Pagination/Pagination.js +11 -47
- package/lib/components/Pagination/experimental/PageSelector.js +0 -10
- package/lib/components/Pagination/experimental/Pagination.js +2 -67
- package/lib/components/PaginationNav/PaginationNav.js +15 -78
- package/lib/components/Popover/index.d.ts +14 -8
- package/lib/components/Popover/index.js +44 -48
- package/lib/components/PrimaryButton/PrimaryButton.js +0 -1
- package/lib/components/ProgressBar/ProgressBar.js +0 -15
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +0 -4
- package/lib/components/ProgressIndicator/ProgressIndicator.js +2 -40
- package/lib/components/RadioButton/RadioButton.Skeleton.js +0 -1
- package/lib/components/RadioButton/RadioButton.js +0 -13
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js +3 -23
- package/lib/components/RadioTile/RadioTile.js +0 -12
- package/lib/components/Search/Search.Skeleton.js +0 -2
- package/lib/components/Search/Search.js +1 -28
- package/lib/components/SecondaryButton/SecondaryButton.js +0 -1
- package/lib/components/Select/Select.Skeleton.js +0 -2
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/Select.js +6 -33
- package/lib/components/SelectItem/SelectItem.js +0 -5
- package/lib/components/SelectItemGroup/SelectItemGroup.d.ts +0 -1
- package/lib/components/SelectItemGroup/SelectItemGroup.js +1 -26
- package/lib/components/SkeletonIcon/SkeletonIcon.js +0 -2
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +0 -1
- package/lib/components/SkeletonText/SkeletonText.js +0 -12
- package/lib/components/Slider/Slider.Skeleton.js +0 -2
- package/lib/components/Slider/Slider.d.ts +0 -1
- package/lib/components/Slider/Slider.js +112 -154
- package/lib/components/Stack/Stack.js +1 -8
- package/lib/components/StructuredList/StructuredList.Skeleton.js +0 -5
- package/lib/components/StructuredList/StructuredList.js +1 -25
- package/lib/components/Switch/IconSwitch.js +0 -18
- package/lib/components/Switch/Switch.js +0 -11
- package/lib/components/TabContent/TabContent.js +2 -6
- package/lib/components/Tabs/Tabs.Skeleton.js +0 -4
- package/lib/components/Tabs/Tabs.js +133 -102
- package/lib/components/Tabs/usePressable.js +18 -31
- package/lib/components/Tag/Tag.Skeleton.js +0 -2
- package/lib/components/Tag/Tag.js +0 -15
- package/lib/components/Text/Text.js +5 -18
- package/lib/components/Text/TextDirection.js +0 -3
- package/lib/components/Text/TextDirectionContext.js +0 -1
- package/lib/components/Text/createTextComponent.js +0 -3
- package/lib/components/TextArea/TextArea.Skeleton.js +0 -2
- package/lib/components/TextArea/TextArea.js +10 -32
- package/lib/components/TextInput/ControlledPasswordInput.js +0 -20
- package/lib/components/TextInput/PasswordInput.js +0 -25
- package/lib/components/TextInput/TextInput.Skeleton.js +0 -2
- package/lib/components/TextInput/TextInput.d.ts +1 -1
- package/lib/components/TextInput/TextInput.js +5 -52
- package/lib/components/TextInput/util.js +3 -5
- package/lib/components/Theme/index.js +1 -6
- package/lib/components/Tile/Tile.js +31 -58
- package/lib/components/TileGroup/TileGroup.js +1 -22
- package/lib/components/TimePicker/TimePicker.js +6 -32
- package/lib/components/TimePickerSelect/TimePickerSelect.js +2 -5
- package/lib/components/Toggle/Toggle.Skeleton.js +0 -8
- package/lib/components/Toggle/Toggle.js +0 -16
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +0 -7
- package/lib/components/Toggletip/index.d.ts +148 -0
- package/lib/components/Toggletip/index.js +20 -44
- package/lib/components/Tooltip/DefinitionTooltip.js +0 -11
- package/lib/components/Tooltip/Tooltip.d.ts +1 -1
- package/lib/components/Tooltip/Tooltip.js +4 -21
- package/lib/components/TreeView/TreeNode.js +21 -66
- package/lib/components/TreeView/TreeView.js +11 -67
- package/lib/components/UIShell/Content.js +2 -4
- package/lib/components/UIShell/Header.js +0 -2
- package/lib/components/UIShell/HeaderContainer.d.ts +33 -0
- package/lib/components/UIShell/HeaderContainer.js +13 -11
- package/lib/components/UIShell/HeaderGlobalAction.js +0 -6
- package/lib/components/UIShell/HeaderGlobalBar.js +0 -1
- package/lib/components/UIShell/HeaderMenu.js +32 -31
- package/lib/components/UIShell/HeaderMenuButton.js +2 -4
- package/lib/components/UIShell/HeaderMenuItem.js +0 -8
- package/lib/components/UIShell/HeaderName.js +0 -5
- package/lib/components/UIShell/HeaderNavigation.js +0 -2
- package/lib/components/UIShell/HeaderPanel.js +0 -2
- package/lib/components/UIShell/HeaderSideNavItems.js +0 -2
- package/lib/components/UIShell/Link.js +2 -3
- package/lib/components/UIShell/SideNav.d.ts +3 -1
- package/lib/components/UIShell/SideNav.js +43 -35
- package/lib/components/UIShell/SideNavDetails.js +0 -3
- package/lib/components/UIShell/SideNavDivider.js +0 -1
- package/lib/components/UIShell/SideNavFooter.js +1 -4
- package/lib/components/UIShell/SideNavHeader.js +0 -4
- package/lib/components/UIShell/SideNavIcon.js +0 -3
- package/lib/components/UIShell/SideNavItem.js +0 -3
- package/lib/components/UIShell/SideNavItems.js +2 -6
- package/lib/components/UIShell/SideNavLink.js +3 -7
- package/lib/components/UIShell/SideNavLinkText.js +0 -2
- package/lib/components/UIShell/SideNavMenu.js +0 -16
- package/lib/components/UIShell/SideNavMenuItem.js +0 -2
- package/lib/components/UIShell/SideNavSwitcher.js +2 -5
- package/lib/components/UIShell/SkipToContent.d.ts +32 -0
- package/lib/components/UIShell/SkipToContent.js +8 -15
- package/lib/components/UIShell/Switcher.js +0 -2
- package/lib/components/UIShell/SwitcherDivider.js +0 -1
- package/lib/components/UIShell/SwitcherItem.js +0 -3
- package/lib/components/UnorderedList/UnorderedList.d.ts +34 -0
- package/lib/components/UnorderedList/UnorderedList.js +6 -16
- package/lib/components/UnorderedList/index.d.ts +7 -0
- package/lib/index.js +42 -43
- package/lib/internal/ClickListener.js +3 -13
- package/lib/internal/FloatingMenu.js +57 -63
- package/lib/internal/OptimizedResize.js +6 -12
- package/lib/internal/Selection.js +2 -25
- package/lib/internal/createClassWrapper.js +0 -2
- package/lib/internal/deprecateFieldOnObject.js +0 -4
- package/lib/internal/focus/index.js +0 -1
- package/lib/internal/keyboard/keys.js +2 -1
- package/lib/internal/keyboard/match.js +1 -6
- package/lib/internal/keyboard/navigation.js +8 -7
- package/lib/internal/useAnnouncer.js +0 -1
- package/lib/internal/useAttachedMenu.js +1 -9
- package/lib/internal/useControllableState.js +6 -13
- package/lib/internal/useDelayedState.js +2 -4
- package/lib/internal/useEffectOnce.js +0 -1
- package/lib/internal/useEvent.js +61 -2
- package/lib/internal/useId.js +2 -5
- package/lib/internal/useIsomorphicEffect.js +1 -0
- package/lib/internal/useMergedRefs.js +2 -2
- package/lib/internal/useNoInteractiveChildren.js +2 -13
- package/lib/internal/useNormalizedInputProps.js +0 -3
- package/lib/internal/useSavedCallback.js +0 -1
- package/lib/internal/warning.js +0 -3
- package/lib/internal/wrapFocus.js +1 -8
- package/lib/prop-types/deprecate.js +2 -5
- package/lib/prop-types/isRequiredOneOf.js +2 -5
- package/lib/prop-types/requiredIfGivenPropIsTruthy.js +0 -2
- package/lib/tools/array.js +0 -3
- package/lib/tools/events.js +0 -3
- package/lib/tools/mergeRefs.js +0 -2
- package/lib/tools/wrapComponent.js +2 -5
- package/package.json +9 -9
- package/es/components/Tab/Tab.js +0 -185
- package/es/components/Tab/index.js +0 -14
- package/es/components/TimePickerSelect/index.js +0 -13
- package/lib/components/Form/index.js +0 -17
- package/lib/components/Tab/Tab.js +0 -214
- package/lib/components/Tab/index.js +0 -39
- package/lib/components/TimePickerSelect/index.js +0 -38
|
@@ -37,101 +37,83 @@ FluidComboBox.propTypes = {
|
|
|
37
37
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
38
38
|
*/
|
|
39
39
|
className: PropTypes.string,
|
|
40
|
-
|
|
41
40
|
/**
|
|
42
41
|
* Specify the direction of the dropdown. Can be either top or bottom.
|
|
43
42
|
*/
|
|
44
43
|
direction: PropTypes.oneOf(['top', 'bottom']),
|
|
45
|
-
|
|
46
44
|
/**
|
|
47
45
|
* Specify whether the `<input>` should be disabled
|
|
48
46
|
*/
|
|
49
47
|
disabled: PropTypes.bool,
|
|
50
|
-
|
|
51
48
|
/**
|
|
52
49
|
* Specify a custom `id` for the `<input>`
|
|
53
50
|
*/
|
|
54
51
|
id: PropTypes.string.isRequired,
|
|
55
|
-
|
|
56
52
|
/**
|
|
57
53
|
* Allow users to pass in an arbitrary item or a string (in case their items are an array of strings)
|
|
58
54
|
* from their collection that are pre-selected
|
|
59
55
|
*/
|
|
60
56
|
initialSelectedItem: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.number]),
|
|
61
|
-
|
|
62
57
|
/**
|
|
63
58
|
* Specify if the currently selected value is invalid.
|
|
64
59
|
*/
|
|
65
60
|
invalid: PropTypes.bool,
|
|
66
|
-
|
|
67
61
|
/**
|
|
68
62
|
* Provide the text that is displayed when the control is in an invalid state
|
|
69
63
|
*/
|
|
70
64
|
invalidText: PropTypes.node,
|
|
71
|
-
|
|
72
65
|
/**
|
|
73
66
|
* Specify if the `FluidComboBox` should render its menu items in condensed mode
|
|
74
67
|
*/
|
|
75
68
|
isCondensed: PropTypes.bool,
|
|
76
|
-
|
|
77
69
|
/**
|
|
78
70
|
* Function to render items as custom components instead of strings.
|
|
79
71
|
* Defaults to null and is overridden by a getter
|
|
80
72
|
*/
|
|
81
73
|
itemToElement: PropTypes.func,
|
|
82
|
-
|
|
83
74
|
/**
|
|
84
75
|
* Helper function passed to downshift that allows the library to render a
|
|
85
76
|
* given item to a string label. By default, it extracts the `label` field
|
|
86
77
|
* from a given item to serve as the item label in the list.
|
|
87
78
|
*/
|
|
88
79
|
itemToString: PropTypes.func,
|
|
89
|
-
|
|
90
80
|
/**
|
|
91
81
|
* We try to stay as generic as possible here to allow individuals to pass
|
|
92
82
|
* in a collection of whatever kind of data structure they prefer
|
|
93
83
|
*/
|
|
94
84
|
items: PropTypes.array.isRequired,
|
|
95
|
-
|
|
96
85
|
/**
|
|
97
86
|
* Generic `label` that will be used as the textual representation of what
|
|
98
87
|
* this field is for
|
|
99
88
|
*/
|
|
100
89
|
label: PropTypes.node.isRequired,
|
|
101
|
-
|
|
102
90
|
/**
|
|
103
91
|
* `onChange` is a utility for this controlled component to communicate to a
|
|
104
92
|
* consuming component what kind of internal state changes are occurring.
|
|
105
93
|
*/
|
|
106
94
|
onChange: PropTypes.func,
|
|
107
|
-
|
|
108
95
|
/**
|
|
109
96
|
* An optional callback to render the currently selected item as a react element instead of only
|
|
110
97
|
* as a string.
|
|
111
98
|
*/
|
|
112
99
|
renderSelectedItem: PropTypes.func,
|
|
113
|
-
|
|
114
100
|
/**
|
|
115
101
|
* In the case you want to control the dropdown selection entirely.
|
|
116
102
|
*/
|
|
117
103
|
selectedItem: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.number]),
|
|
118
|
-
|
|
119
104
|
/**
|
|
120
105
|
* Provide the title text that will be read by a screen reader when
|
|
121
106
|
* visiting this control
|
|
122
107
|
*/
|
|
123
108
|
titleText: PropTypes.node,
|
|
124
|
-
|
|
125
109
|
/**
|
|
126
110
|
* Callback function for translating ListBoxMenuIcon SVG title
|
|
127
111
|
*/
|
|
128
112
|
translateWithId: PropTypes.func,
|
|
129
|
-
|
|
130
113
|
/**
|
|
131
114
|
* Specify whether the control is currently in warning state
|
|
132
115
|
*/
|
|
133
116
|
warn: PropTypes.bool,
|
|
134
|
-
|
|
135
117
|
/**
|
|
136
118
|
* Provide the text that is displayed when the control is in warning state
|
|
137
119
|
*/
|
|
@@ -51,13 +51,11 @@ function FluidDatePickerSkeleton(_ref) {
|
|
|
51
51
|
"aria-hidden": "true"
|
|
52
52
|
}))));
|
|
53
53
|
}
|
|
54
|
-
|
|
55
54
|
FluidDatePickerSkeleton.propTypes = {
|
|
56
55
|
/**
|
|
57
56
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
58
57
|
*/
|
|
59
58
|
className: PropTypes.string,
|
|
60
|
-
|
|
61
59
|
/**
|
|
62
60
|
* Specify which variant of the DatePicker the skeleton should mimic
|
|
63
61
|
*/
|
|
@@ -51,32 +51,26 @@ FluidDatePicker.propTypes = {
|
|
|
51
51
|
* The child node(s)
|
|
52
52
|
*/
|
|
53
53
|
children: PropTypes.node,
|
|
54
|
-
|
|
55
54
|
/**
|
|
56
55
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
57
56
|
*/
|
|
58
57
|
className: PropTypes.string,
|
|
59
|
-
|
|
60
58
|
/**
|
|
61
59
|
* Specify whether or not the control is invalid
|
|
62
60
|
*/
|
|
63
61
|
invalid: PropTypes.bool,
|
|
64
|
-
|
|
65
62
|
/**
|
|
66
63
|
* Provide the text that is displayed when the control is in error state
|
|
67
64
|
*/
|
|
68
65
|
invalidText: PropTypes.node,
|
|
69
|
-
|
|
70
66
|
/**
|
|
71
67
|
* Whether the input should be read-only
|
|
72
68
|
*/
|
|
73
69
|
readOnly: PropTypes.bool,
|
|
74
|
-
|
|
75
70
|
/**
|
|
76
71
|
* Specify whether the control is currently in warning state
|
|
77
72
|
*/
|
|
78
73
|
warn: PropTypes.bool,
|
|
79
|
-
|
|
80
74
|
/**
|
|
81
75
|
* Provide the text that is displayed when the control is in warning state
|
|
82
76
|
*/
|
|
@@ -11,7 +11,8 @@ import DatePickerInput from '../DatePickerInput/DatePickerInput.js';
|
|
|
11
11
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
12
12
|
|
|
13
13
|
const FluidDatePickerInput = /*#__PURE__*/React__default.forwardRef(function FluidDatePickerInput(_ref, ref) {
|
|
14
|
-
let {
|
|
14
|
+
let {
|
|
15
|
+
...other
|
|
15
16
|
} = _ref;
|
|
16
17
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
17
18
|
value: {
|
|
@@ -38,101 +38,83 @@ FluidDropdown.propTypes = {
|
|
|
38
38
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
39
39
|
*/
|
|
40
40
|
className: PropTypes.string,
|
|
41
|
-
|
|
42
41
|
/**
|
|
43
42
|
* Specify the direction of the dropdown. Can be either top or bottom.
|
|
44
43
|
*/
|
|
45
44
|
direction: PropTypes.oneOf(['top', 'bottom']),
|
|
46
|
-
|
|
47
45
|
/**
|
|
48
46
|
* Specify whether the `<input>` should be disabled
|
|
49
47
|
*/
|
|
50
48
|
disabled: PropTypes.bool,
|
|
51
|
-
|
|
52
49
|
/**
|
|
53
50
|
* Specify a custom `id` for the `<input>`
|
|
54
51
|
*/
|
|
55
52
|
id: PropTypes.string.isRequired,
|
|
56
|
-
|
|
57
53
|
/**
|
|
58
54
|
* Allow users to pass in an arbitrary item or a string (in case their items are an array of strings)
|
|
59
55
|
* from their collection that are pre-selected
|
|
60
56
|
*/
|
|
61
57
|
initialSelectedItem: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.number]),
|
|
62
|
-
|
|
63
58
|
/**
|
|
64
59
|
* Specify if the currently selected value is invalid.
|
|
65
60
|
*/
|
|
66
61
|
invalid: PropTypes.bool,
|
|
67
|
-
|
|
68
62
|
/**
|
|
69
63
|
* Provide the text that is displayed when the control is in an invalid state
|
|
70
64
|
*/
|
|
71
65
|
invalidText: PropTypes.node,
|
|
72
|
-
|
|
73
66
|
/**
|
|
74
67
|
* Specify if the `FluidDropdown` should render its menu items in condensed mode
|
|
75
68
|
*/
|
|
76
69
|
isCondensed: PropTypes.bool,
|
|
77
|
-
|
|
78
70
|
/**
|
|
79
71
|
* Function to render items as custom components instead of strings.
|
|
80
72
|
* Defaults to null and is overridden by a getter
|
|
81
73
|
*/
|
|
82
74
|
itemToElement: PropTypes.func,
|
|
83
|
-
|
|
84
75
|
/**
|
|
85
76
|
* Helper function passed to downshift that allows the library to render a
|
|
86
77
|
* given item to a string label. By default, it extracts the `label` field
|
|
87
78
|
* from a given item to serve as the item label in the list.
|
|
88
79
|
*/
|
|
89
80
|
itemToString: PropTypes.func,
|
|
90
|
-
|
|
91
81
|
/**
|
|
92
82
|
* We try to stay as generic as possible here to allow individuals to pass
|
|
93
83
|
* in a collection of whatever kind of data structure they prefer
|
|
94
84
|
*/
|
|
95
85
|
items: PropTypes.array.isRequired,
|
|
96
|
-
|
|
97
86
|
/**
|
|
98
87
|
* Generic `label` that will be used as the textual representation of what
|
|
99
88
|
* this field is for
|
|
100
89
|
*/
|
|
101
90
|
label: PropTypes.node.isRequired,
|
|
102
|
-
|
|
103
91
|
/**
|
|
104
92
|
* `onChange` is a utility for this controlled component to communicate to a
|
|
105
93
|
* consuming component what kind of internal state changes are occurring.
|
|
106
94
|
*/
|
|
107
95
|
onChange: PropTypes.func,
|
|
108
|
-
|
|
109
96
|
/**
|
|
110
97
|
* An optional callback to render the currently selected item as a react element instead of only
|
|
111
98
|
* as a string.
|
|
112
99
|
*/
|
|
113
100
|
renderSelectedItem: PropTypes.func,
|
|
114
|
-
|
|
115
101
|
/**
|
|
116
102
|
* In the case you want to control the dropdown selection entirely.
|
|
117
103
|
*/
|
|
118
104
|
selectedItem: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.number]),
|
|
119
|
-
|
|
120
105
|
/**
|
|
121
106
|
* Provide the title text that will be read by a screen reader when
|
|
122
107
|
* visiting this control
|
|
123
108
|
*/
|
|
124
109
|
titleText: PropTypes.node,
|
|
125
|
-
|
|
126
110
|
/**
|
|
127
111
|
* Callback function for translating ListBoxMenuIcon SVG title
|
|
128
112
|
*/
|
|
129
113
|
translateWithId: PropTypes.func,
|
|
130
|
-
|
|
131
114
|
/**
|
|
132
115
|
* Specify whether the control is currently in warning state
|
|
133
116
|
*/
|
|
134
117
|
warn: PropTypes.bool,
|
|
135
|
-
|
|
136
118
|
/**
|
|
137
119
|
* Provide the text that is displayed when the control is in warning state
|
|
138
120
|
*/
|
|
@@ -29,13 +29,11 @@ const FluidForm = _ref => {
|
|
|
29
29
|
className: classNames
|
|
30
30
|
}, other), children));
|
|
31
31
|
};
|
|
32
|
-
|
|
33
32
|
FluidForm.propTypes = {
|
|
34
33
|
/**
|
|
35
34
|
* Provide children to be rendered inside of the <form> element
|
|
36
35
|
*/
|
|
37
36
|
children: PropTypes.node,
|
|
38
|
-
|
|
39
37
|
/**
|
|
40
38
|
* Provide a custom className to be applied on the containing <form> node
|
|
41
39
|
*/
|
|
@@ -43,106 +43,87 @@ FluidMultiSelect.propTypes = {
|
|
|
43
43
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
44
44
|
*/
|
|
45
45
|
className: PropTypes.string,
|
|
46
|
-
|
|
47
46
|
/**
|
|
48
47
|
* Specify the direction of the dropdown. Can be either top or bottom.
|
|
49
48
|
*/
|
|
50
49
|
direction: PropTypes.oneOf(['top', 'bottom']),
|
|
51
|
-
|
|
52
50
|
/**
|
|
53
51
|
* Specify whether the `<input>` should be disabled
|
|
54
52
|
*/
|
|
55
53
|
disabled: PropTypes.bool,
|
|
56
|
-
|
|
57
54
|
/**
|
|
58
55
|
* Specify a custom `id` for the `<input>`
|
|
59
56
|
*/
|
|
60
57
|
id: PropTypes.string.isRequired,
|
|
61
|
-
|
|
62
58
|
/**
|
|
63
59
|
* Allow users to pass in an arbitrary item or a string (in case their items are an array of strings)
|
|
64
60
|
* from their collection that are pre-selected
|
|
65
61
|
*/
|
|
66
62
|
initialSelectedItem: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.number]),
|
|
67
|
-
|
|
68
63
|
/**
|
|
69
64
|
* Specify if the currently selected value is invalid.
|
|
70
65
|
*/
|
|
71
66
|
invalid: PropTypes.bool,
|
|
72
|
-
|
|
73
67
|
/**
|
|
74
68
|
* Provide the text that is displayed when the control is in an invalid state
|
|
75
69
|
*/
|
|
76
70
|
invalidText: PropTypes.node,
|
|
77
|
-
|
|
78
71
|
/**
|
|
79
72
|
* Specify if the `FluidMultiSelect` should render its menu items in condensed mode
|
|
80
73
|
*/
|
|
81
74
|
isCondensed: PropTypes.bool,
|
|
82
|
-
|
|
83
75
|
/**
|
|
84
76
|
* Specify if the `FluidMultiSelect` should render the `filterable` variant of `FluidMultiSelect`
|
|
85
77
|
*/
|
|
86
78
|
isFilterable: PropTypes.bool,
|
|
87
|
-
|
|
88
79
|
/**
|
|
89
80
|
* Function to render items as custom components instead of strings.
|
|
90
81
|
* Defaults to null and is overridden by a getter
|
|
91
82
|
*/
|
|
92
83
|
itemToElement: PropTypes.func,
|
|
93
|
-
|
|
94
84
|
/**
|
|
95
85
|
* Helper function passed to downshift that allows the library to render a
|
|
96
86
|
* given item to a string label. By default, it extracts the `label` field
|
|
97
87
|
* from a given item to serve as the item label in the list.
|
|
98
88
|
*/
|
|
99
89
|
itemToString: PropTypes.func,
|
|
100
|
-
|
|
101
90
|
/**
|
|
102
91
|
* We try to stay as generic as possible here to allow individuals to pass
|
|
103
92
|
* in a collection of whatever kind of data structure they prefer
|
|
104
93
|
*/
|
|
105
94
|
items: PropTypes.array.isRequired,
|
|
106
|
-
|
|
107
95
|
/**
|
|
108
96
|
* Generic `label` that will be used as the textual representation of what
|
|
109
97
|
* this field is for
|
|
110
98
|
*/
|
|
111
99
|
label: PropTypes.node.isRequired,
|
|
112
|
-
|
|
113
100
|
/**
|
|
114
101
|
* `onChange` is a utility for this controlled component to communicate to a
|
|
115
102
|
* consuming component what kind of internal state changes are occurring.
|
|
116
103
|
*/
|
|
117
104
|
onChange: PropTypes.func,
|
|
118
|
-
|
|
119
105
|
/**
|
|
120
106
|
* An optional callback to render the currently selected item as a react element instead of only
|
|
121
107
|
* as a string.
|
|
122
108
|
*/
|
|
123
109
|
renderSelectedItem: PropTypes.func,
|
|
124
|
-
|
|
125
110
|
/**
|
|
126
111
|
* In the case you want to control the dropdown selection entirely.
|
|
127
112
|
*/
|
|
128
113
|
selectedItem: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.number]),
|
|
129
|
-
|
|
130
114
|
/**
|
|
131
115
|
* Provide the title text that will be read by a screen reader when
|
|
132
116
|
* visiting this control
|
|
133
117
|
*/
|
|
134
118
|
titleText: PropTypes.node,
|
|
135
|
-
|
|
136
119
|
/**
|
|
137
120
|
* Callback function for translating ListBoxMenuIcon SVG title
|
|
138
121
|
*/
|
|
139
122
|
translateWithId: PropTypes.func,
|
|
140
|
-
|
|
141
123
|
/**
|
|
142
124
|
* Specify whether the control is currently in warning state
|
|
143
125
|
*/
|
|
144
126
|
warn: PropTypes.bool,
|
|
145
|
-
|
|
146
127
|
/**
|
|
147
128
|
* Provide the text that is displayed when the control is in warning state
|
|
148
129
|
*/
|
|
@@ -36,54 +36,44 @@ FluidSelect.propTypes = {
|
|
|
36
36
|
* Provide the contents of your Select
|
|
37
37
|
*/
|
|
38
38
|
children: PropTypes.node,
|
|
39
|
-
|
|
40
39
|
/**
|
|
41
40
|
* Specify an optional className to be applied to the node containing the label and the select box
|
|
42
41
|
*/
|
|
43
42
|
className: PropTypes.string,
|
|
44
|
-
|
|
45
43
|
/**
|
|
46
44
|
* Optionally provide the default value of the `<select>`
|
|
47
45
|
*/
|
|
48
46
|
defaultValue: PropTypes.any,
|
|
49
|
-
|
|
50
47
|
/**
|
|
51
48
|
* Specify whether the control is disabled
|
|
52
49
|
*/
|
|
53
50
|
disabled: PropTypes.bool,
|
|
54
|
-
|
|
55
51
|
/**
|
|
56
52
|
* Specify a custom `id` for the `<select>`
|
|
57
53
|
*/
|
|
58
54
|
id: PropTypes.string.isRequired,
|
|
59
|
-
|
|
60
55
|
/**
|
|
61
56
|
* Specify if the currently value is invalid.
|
|
62
57
|
*/
|
|
63
58
|
invalid: PropTypes.bool,
|
|
64
|
-
|
|
65
59
|
/**
|
|
66
60
|
* Message which is displayed if the value is invalid.
|
|
67
61
|
*/
|
|
68
62
|
invalidText: PropTypes.node,
|
|
69
|
-
|
|
70
63
|
/**
|
|
71
64
|
* Provide label text to be read by screen readers when interacting with the
|
|
72
65
|
* control
|
|
73
66
|
*/
|
|
74
67
|
labelText: PropTypes.node,
|
|
75
|
-
|
|
76
68
|
/**
|
|
77
69
|
* Provide an optional `onChange` hook that is called each time the value of
|
|
78
70
|
* the underlying `<input>` changes
|
|
79
71
|
*/
|
|
80
72
|
onChange: PropTypes.func,
|
|
81
|
-
|
|
82
73
|
/**
|
|
83
74
|
* Specify whether the control is currently in warning state
|
|
84
75
|
*/
|
|
85
76
|
warn: PropTypes.bool,
|
|
86
|
-
|
|
87
77
|
/**
|
|
88
78
|
* Provide the text that is displayed when the control is in warning state
|
|
89
79
|
*/
|
|
@@ -30,108 +30,88 @@ function FluidTextArea(_ref) {
|
|
|
30
30
|
className: classNames
|
|
31
31
|
}, other)));
|
|
32
32
|
}
|
|
33
|
-
|
|
34
33
|
FluidTextArea.propTypes = {
|
|
35
34
|
/**
|
|
36
35
|
* Provide a custom className that is applied directly to the underlying
|
|
37
36
|
* `<textarea>` node
|
|
38
37
|
*/
|
|
39
38
|
className: PropTypes.string,
|
|
40
|
-
|
|
41
39
|
/**
|
|
42
40
|
* Specify the `cols` attribute for the underlying `<textarea>` node
|
|
43
41
|
*/
|
|
44
42
|
cols: PropTypes.number,
|
|
45
|
-
|
|
46
43
|
/**
|
|
47
44
|
* Optionally provide the default value of the `<textarea>`
|
|
48
45
|
*/
|
|
49
46
|
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
50
|
-
|
|
51
47
|
/**
|
|
52
48
|
* Specify whether the control is disabled
|
|
53
49
|
*/
|
|
54
50
|
disabled: PropTypes.bool,
|
|
55
|
-
|
|
56
51
|
/**
|
|
57
52
|
* Specify whether to display the character counter
|
|
58
53
|
*/
|
|
59
54
|
enableCounter: PropTypes.bool,
|
|
60
|
-
|
|
61
55
|
/**
|
|
62
56
|
* Provide text that is used alongside the control label for additional help
|
|
63
57
|
*/
|
|
64
58
|
helperText: PropTypes.node,
|
|
65
|
-
|
|
66
59
|
/**
|
|
67
60
|
* Specify whether you want the underlying label to be visually hidden
|
|
68
61
|
*/
|
|
69
62
|
hideLabel: PropTypes.bool,
|
|
70
|
-
|
|
71
63
|
/**
|
|
72
64
|
* Provide a unique identifier for the control
|
|
73
65
|
*/
|
|
74
66
|
id: PropTypes.string,
|
|
75
|
-
|
|
76
67
|
/**
|
|
77
68
|
* Specify whether the control is currently invalid
|
|
78
69
|
*/
|
|
79
70
|
invalid: PropTypes.bool,
|
|
80
|
-
|
|
81
71
|
/**
|
|
82
72
|
* Provide the text that is displayed when the control is in an invalid state
|
|
83
73
|
*/
|
|
84
74
|
invalidText: PropTypes.node,
|
|
85
|
-
|
|
86
75
|
/**
|
|
87
76
|
* Provide the text that will be read by a screen reader when visiting this
|
|
88
77
|
* control
|
|
89
78
|
*/
|
|
90
79
|
labelText: PropTypes.node.isRequired,
|
|
91
|
-
|
|
92
80
|
/**
|
|
93
81
|
* `true` to use the light version. For use on $ui-01 backgrounds only.
|
|
94
82
|
* Don't use this to make tile background color same as container background color.
|
|
95
83
|
*/
|
|
96
84
|
light: deprecate(PropTypes.bool, 'The `light` prop for `FluidTextArea` has ' + 'been deprecated in favor of the new `Layer` component. It will be removed in the next major release.'),
|
|
97
|
-
|
|
98
85
|
/**
|
|
99
86
|
* Max character count allowed for the textarea. This is needed in order for enableCounter to display
|
|
100
87
|
*/
|
|
101
88
|
maxCount: PropTypes.number,
|
|
102
|
-
|
|
103
89
|
/**
|
|
104
90
|
* Optionally provide an `onChange` handler that is called whenever `<textarea>`
|
|
105
91
|
* is updated
|
|
106
92
|
*/
|
|
107
93
|
onChange: PropTypes.func,
|
|
108
|
-
|
|
109
94
|
/**
|
|
110
95
|
* Optionally provide an `onClick` handler that is called whenever the
|
|
111
96
|
* `<textarea>` is clicked
|
|
112
97
|
*/
|
|
113
98
|
onClick: PropTypes.func,
|
|
114
|
-
|
|
115
99
|
/**
|
|
116
100
|
* Specify the placeholder attribute for the `<textarea>`
|
|
117
101
|
*/
|
|
118
102
|
placeholder: PropTypes.string,
|
|
119
|
-
|
|
120
103
|
/**
|
|
121
104
|
* Specify the rows attribute for the `<textarea>`
|
|
122
105
|
*/
|
|
123
106
|
rows: PropTypes.number,
|
|
124
|
-
|
|
125
107
|
/**
|
|
126
108
|
* Provide the current value of the `<textarea>`
|
|
127
109
|
*/
|
|
128
110
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
129
|
-
|
|
130
111
|
/**
|
|
131
112
|
* Specify whether the control is currently in warning state
|
|
132
113
|
*/
|
|
133
114
|
warn: PropTypes.bool,
|
|
134
|
-
|
|
135
115
|
/**
|
|
136
116
|
* Provide the text that is displayed when the control is in warning state
|
|
137
117
|
*/
|
|
@@ -35,76 +35,62 @@ function FluidTextInput(_ref) {
|
|
|
35
35
|
className: classNames
|
|
36
36
|
}, other)));
|
|
37
37
|
}
|
|
38
|
-
|
|
39
38
|
FluidTextInput.propTypes = {
|
|
40
39
|
/**
|
|
41
40
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
42
41
|
*/
|
|
43
42
|
className: PropTypes.string,
|
|
44
|
-
|
|
45
43
|
/**
|
|
46
44
|
* Optionally provide the default value of the `<input>`
|
|
47
45
|
*/
|
|
48
46
|
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
49
|
-
|
|
50
47
|
/**
|
|
51
48
|
* Specify whether the `<input>` should be disabled
|
|
52
49
|
*/
|
|
53
50
|
disabled: PropTypes.bool,
|
|
54
|
-
|
|
55
51
|
/**
|
|
56
52
|
* Specify a custom `id` for the `<input>`
|
|
57
53
|
*/
|
|
58
54
|
id: PropTypes.string.isRequired,
|
|
59
|
-
|
|
60
55
|
/**
|
|
61
56
|
* Specify whether the control is currently invalid
|
|
62
57
|
*/
|
|
63
58
|
invalid: PropTypes.bool,
|
|
64
|
-
|
|
65
59
|
/**
|
|
66
60
|
* Provide the text that is displayed when the control is in an invalid state
|
|
67
61
|
*/
|
|
68
62
|
invalidText: PropTypes.node,
|
|
69
|
-
|
|
70
63
|
/**
|
|
71
64
|
* Specify whether the control is a password input
|
|
72
65
|
*/
|
|
73
66
|
isPassword: PropTypes.bool,
|
|
74
|
-
|
|
75
67
|
/**
|
|
76
68
|
* Provide the text that will be read by a screen reader when visiting this
|
|
77
69
|
* control
|
|
78
70
|
*/
|
|
79
71
|
labelText: PropTypes.node.isRequired,
|
|
80
|
-
|
|
81
72
|
/**
|
|
82
73
|
* Optionally provide an `onChange` handler that is called whenever `<input>`
|
|
83
74
|
* is updated
|
|
84
75
|
*/
|
|
85
76
|
onChange: PropTypes.func,
|
|
86
|
-
|
|
87
77
|
/**
|
|
88
78
|
* Optionally provide an `onClick` handler that is called whenever the
|
|
89
79
|
* `<input>` is clicked
|
|
90
80
|
*/
|
|
91
81
|
onClick: PropTypes.func,
|
|
92
|
-
|
|
93
82
|
/**
|
|
94
83
|
* Specify the placeholder attribute for the `<input>`
|
|
95
84
|
*/
|
|
96
85
|
placeholder: PropTypes.string,
|
|
97
|
-
|
|
98
86
|
/**
|
|
99
87
|
* Specify the value of the `<input>`
|
|
100
88
|
*/
|
|
101
89
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
102
|
-
|
|
103
90
|
/**
|
|
104
91
|
* Specify whether the control is currently in warning state
|
|
105
92
|
*/
|
|
106
93
|
warn: PropTypes.bool,
|
|
107
|
-
|
|
108
94
|
/**
|
|
109
95
|
* Provide the text that is displayed when the control is in warning state
|
|
110
96
|
*/
|
|
@@ -14,7 +14,6 @@ import FluidTextInputSkeleton from '../FluidTextInput/FluidTextInput.Skeleton.js
|
|
|
14
14
|
import FluidSelectSkeleton from '../FluidSelect/FluidSelect.Skeleton.js';
|
|
15
15
|
|
|
16
16
|
var _FluidTextInputSkelet, _FluidSelectSkeleton, _FluidSelectSkeleton2;
|
|
17
|
-
|
|
18
17
|
const FluidTimePickerSkeleton = _ref => {
|
|
19
18
|
let {
|
|
20
19
|
className,
|
|
@@ -29,13 +28,11 @@ const FluidTimePickerSkeleton = _ref => {
|
|
|
29
28
|
className: wrapperClasses
|
|
30
29
|
}, rest), _FluidTextInputSkelet || (_FluidTextInputSkelet = /*#__PURE__*/React__default.createElement(FluidTextInputSkeleton, null)), _FluidSelectSkeleton || (_FluidSelectSkeleton = /*#__PURE__*/React__default.createElement(FluidSelectSkeleton, null)), !isOnlyTwo ? _FluidSelectSkeleton2 || (_FluidSelectSkeleton2 = /*#__PURE__*/React__default.createElement(FluidSelectSkeleton, null)) : null);
|
|
31
30
|
};
|
|
32
|
-
|
|
33
31
|
FluidTimePickerSkeleton.propTypes = {
|
|
34
32
|
/**
|
|
35
33
|
* Specify an optional className to add.
|
|
36
34
|
*/
|
|
37
35
|
className: PropTypes.string,
|
|
38
|
-
|
|
39
36
|
/**
|
|
40
37
|
* Specify if there are only two TimePicker elements
|
|
41
38
|
*/
|