@carbon/react 1.87.0-rc.0 → 1.87.1-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/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +739 -739
- package/es/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/es/components/Button/Button.js +1 -1
- package/es/components/Button/index.js +5 -1
- package/es/components/ButtonSet/index.js +4 -1
- package/es/components/Checkbox/index.js +4 -1
- package/es/components/ComboBox/ComboBox.js +1 -1
- package/es/components/ComboBox/index.js +4 -1
- package/es/components/ComposedModal/ComposedModal.js +18 -8
- package/es/components/ContainedList/ContainedListItem/index.js +4 -1
- package/es/components/ContainedList/index.js +2 -2
- package/es/components/Copy/Copy.js +1 -1
- package/es/components/Copy/index.js +4 -1
- package/es/components/CopyButton/index.js +4 -1
- package/es/components/DataTable/Table.js +1 -1
- package/es/components/DataTable/state/getDerivedStateFromProps.d.ts +19 -0
- package/es/components/DataTable/state/getDerivedStateFromProps.js +1 -2
- package/es/components/DataTable/state/sorting.d.ts +15 -0
- package/es/components/DataTable/state/sorting.js +1 -2
- package/es/components/DataTable/tools/denormalize.d.ts +22 -0
- package/es/components/DataTable/tools/denormalize.js +1 -2
- package/es/components/DataTable/tools/normalize.d.ts +9 -0
- package/es/components/DataTable/tools/normalize.js +1 -2
- package/es/components/DatePicker/DatePicker.js +18 -11
- package/es/components/DatePicker/index.js +4 -1
- package/es/components/DatePicker/plugins/fixEventsPlugin.d.ts +2 -0
- package/es/components/DatePicker/plugins/rangePlugin.d.ts +2 -0
- package/es/components/DatePickerInput/DatePickerInput.js +6 -0
- package/es/components/DatePickerInput/index.js +4 -1
- package/es/components/Dialog/index.js +2 -2
- package/es/components/Dropdown/Dropdown.js +2 -2
- package/es/components/Dropdown/index.js +4 -1
- package/es/components/FeatureFlags/index.js +2 -2
- package/es/components/FluidSelect/index.js +4 -1
- package/es/components/FluidTextInput/index.js +4 -1
- package/es/components/IconIndicator/index.js +1 -1
- package/es/components/InlineCheckbox/index.js +4 -1
- package/es/components/InlineLoading/index.js +4 -1
- package/es/components/LayoutDirection/LayoutDirection.js +1 -2
- package/es/components/Link/index.js +4 -1
- package/es/components/ListBox/ListBox.js +1 -1
- package/es/components/Loading/index.js +4 -1
- package/es/components/Menu/Menu.d.ts +3 -1
- package/es/components/Menu/Menu.js +3 -1
- package/es/components/Menu/MenuItem.js +1 -1
- package/es/components/Modal/Modal.js +16 -5
- package/es/components/Modal/index.js +4 -1
- package/es/components/MultiSelect/FilterableMultiSelect.js +3 -3
- package/es/components/MultiSelect/MultiSelect.js +2 -2
- package/es/components/MultiSelect/filter.js +0 -4
- package/es/components/MultiSelect/tools/itemToString.d.ts +1 -0
- package/es/components/MultiSelect/tools/sorting.d.ts +9 -0
- package/es/components/Notification/Notification.js +2 -2
- package/es/components/NumberInput/NumberInput.js +1 -1
- package/es/components/OverflowMenu/next/index.js +1 -1
- package/es/components/OverflowMenuItem/index.js +4 -1
- package/es/components/OverflowMenuV2/index.d.ts +1 -0
- package/es/components/PageHeader/PageHeader.js +1 -1
- package/es/components/Pagination/experimental/PageSelector.d.ts +19 -0
- package/es/components/Pagination/experimental/Pagination.d.ts +43 -0
- package/es/components/Pagination/experimental/index.d.ts +3 -0
- package/es/components/Popover/index.js +21 -4
- package/es/components/RadioButton/index.js +4 -1
- package/es/components/RadioTile/index.js +4 -1
- package/es/components/Search/Search.js +1 -1
- package/es/components/Search/index.js +4 -1
- package/es/components/Select/index.js +4 -1
- package/es/components/SelectItem/index.js +4 -1
- package/es/components/ShapeIndicator/index.js +1 -1
- package/es/components/SkeletonText/index.js +4 -1
- package/es/components/Slider/Slider.js +1 -1
- package/es/components/Switch/IconSwitch.d.ts +3 -0
- package/es/components/Switch/IconSwitch.js +1 -2
- package/es/components/TabContent/TabContent.js +2 -22
- package/es/components/Tabs/Tabs.js +5 -5
- package/es/components/Tag/DismissibleTag.js +1 -1
- package/es/components/TextArea/TextArea.js +1 -1
- package/es/components/TextArea/index.js +4 -1
- package/es/components/TextInput/index.js +4 -1
- package/es/components/TextInput/util.d.ts +9 -0
- package/es/components/Toggletip/index.js +2 -2
- package/es/components/UIShell/HeaderMenu.js +2 -2
- package/es/components/UIShell/SideNav.js +1 -1
- package/es/components/UIShell/_utils.d.ts +7 -0
- package/es/feature-flags.d.ts +1 -0
- package/es/internal/FloatingMenu.js +1 -1
- package/es/internal/deprecateFieldOnObject.js +1 -1
- package/es/internal/useId.d.ts +21 -0
- package/es/internal/useId.js +27 -1
- package/es/internal/useOverflowItems.js +0 -6
- package/es/node_modules/es-toolkit/dist/compat/function/{debounce.mjs.js → debounce.js} +1 -1
- package/es/node_modules/es-toolkit/dist/compat/function/{throttle.mjs.js → throttle.js} +1 -1
- package/es/prop-types/deprecateComponent.d.ts +1 -0
- package/es/prop-types/deprecateComponent.js +1 -4
- package/es/prop-types/deprecateValuesWithin.d.ts +1 -0
- package/es/prop-types/requiredIfGivenPropIsTruthy.d.ts +14 -0
- package/es/tools/mergeRefs.d.ts +12 -0
- package/es/tools/mergeRefs.js +1 -2
- package/icons/index.js +1 -3
- package/lib/_virtual/_rollupPluginBabelHelpers.js +5 -7
- package/lib/components/AILabel/index.js +35 -43
- package/lib/components/AISkeleton/AISkeletonIcon.js +5 -11
- package/lib/components/AISkeleton/AISkeletonPlaceholder.js +4 -10
- package/lib/components/AISkeleton/AISkeletonText.js +8 -14
- package/lib/components/Accordion/Accordion.Skeleton.js +21 -27
- package/lib/components/Accordion/Accordion.js +11 -17
- package/lib/components/Accordion/AccordionItem.js +19 -25
- package/lib/components/Accordion/AccordionProvider.js +1 -7
- package/lib/components/AspectRatio/AspectRatio.js +7 -13
- package/lib/components/BadgeIndicator/index.js +7 -13
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +7 -13
- package/lib/components/Breadcrumb/Breadcrumb.js +9 -15
- package/lib/components/Breadcrumb/BreadcrumbItem.js +16 -22
- package/lib/components/Button/Button.Skeleton.js +8 -14
- package/lib/components/Button/Button.js +31 -36
- package/lib/components/Button/ButtonBase.js +6 -11
- package/lib/components/Button/index.js +3 -3
- package/lib/components/ButtonSet/ButtonSet.js +6 -12
- package/lib/components/ButtonSet/index.js +2 -2
- package/lib/components/ChatButton/ChatButton.Skeleton.js +5 -11
- package/lib/components/ChatButton/ChatButton.js +12 -18
- package/lib/components/Checkbox/Checkbox.Skeleton.js +6 -12
- package/lib/components/Checkbox/Checkbox.js +33 -39
- package/lib/components/Checkbox/index.js +3 -3
- package/lib/components/CheckboxGroup/CheckboxGroup.js +24 -30
- package/lib/components/ClassPrefix/index.js +3 -10
- package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +10 -16
- package/lib/components/CodeSnippet/CodeSnippet.js +39 -46
- package/lib/components/ComboBox/ComboBox.js +57 -64
- package/lib/components/ComboBox/index.js +2 -2
- package/lib/components/ComboButton/index.js +20 -28
- package/lib/components/ComposedModal/ComposedModal.js +61 -57
- package/lib/components/ComposedModal/ModalFooter.js +37 -45
- package/lib/components/ComposedModal/ModalHeader.js +23 -31
- package/lib/components/ContainedList/ContainedList.js +18 -24
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +14 -20
- package/lib/components/ContainedList/ContainedListItem/index.js +2 -2
- package/lib/components/ContainedList/index.js +5 -5
- package/lib/components/ContentSwitcher/ContentSwitcher.js +11 -19
- package/lib/components/ContextMenu/useContextMenu.js +1 -1
- package/lib/components/Copy/Copy.js +12 -18
- package/lib/components/Copy/index.js +2 -2
- package/lib/components/CopyButton/CopyButton.js +12 -18
- package/lib/components/CopyButton/index.js +2 -2
- package/lib/components/DangerButton/DangerButton.js +2 -6
- package/lib/components/DataTable/DataTable.js +48 -55
- package/lib/components/DataTable/Table.js +18 -24
- package/lib/components/DataTable/TableActionList.js +2 -2
- package/lib/components/DataTable/TableBatchAction.js +4 -9
- package/lib/components/DataTable/TableBatchActions.js +19 -25
- package/lib/components/DataTable/TableBody.js +5 -10
- package/lib/components/DataTable/TableCell.js +8 -14
- package/lib/components/DataTable/TableContainer.js +14 -20
- package/lib/components/DataTable/TableContext.js +0 -2
- package/lib/components/DataTable/TableDecoratorRow.js +5 -11
- package/lib/components/DataTable/TableExpandHeader.js +16 -22
- package/lib/components/DataTable/TableExpandRow.js +20 -26
- package/lib/components/DataTable/TableExpandedRow.js +8 -14
- package/lib/components/DataTable/TableHead.js +2 -2
- package/lib/components/DataTable/TableHeader.js +26 -32
- package/lib/components/DataTable/TableRow.js +8 -14
- package/lib/components/DataTable/TableSelectAll.js +13 -19
- package/lib/components/DataTable/TableSelectRow.js +15 -21
- package/lib/components/DataTable/TableSlugRow.js +7 -13
- package/lib/components/DataTable/TableToolbar.js +7 -13
- package/lib/components/DataTable/TableToolbarAction.js +5 -10
- package/lib/components/DataTable/TableToolbarContent.js +2 -2
- package/lib/components/DataTable/TableToolbarMenu.js +9 -15
- package/lib/components/DataTable/TableToolbarSearch.js +22 -28
- package/lib/components/DataTable/state/getDerivedStateFromProps.d.ts +19 -0
- package/lib/components/DataTable/state/getDerivedStateFromProps.js +2 -3
- package/lib/components/DataTable/state/sortStates.js +0 -2
- package/lib/components/DataTable/state/sorting.d.ts +15 -0
- package/lib/components/DataTable/state/sorting.js +0 -2
- package/lib/components/DataTable/tools/cells.js +0 -2
- package/lib/components/DataTable/tools/denormalize.d.ts +22 -0
- package/lib/components/DataTable/tools/denormalize.js +1 -2
- package/lib/components/DataTable/tools/filter.js +0 -2
- package/lib/components/DataTable/tools/normalize.d.ts +9 -0
- package/lib/components/DataTable/tools/normalize.js +1 -2
- package/lib/components/DataTable/tools/sorting.js +0 -2
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +25 -31
- package/lib/components/DatePicker/DatePicker.Skeleton.js +14 -20
- package/lib/components/DatePicker/DatePicker.js +65 -66
- package/lib/components/DatePicker/index.js +3 -3
- package/lib/components/DatePicker/plugins/appendToPlugin.js +0 -2
- package/lib/components/DatePicker/plugins/fixEventsPlugin.d.ts +2 -0
- package/lib/components/DatePicker/plugins/fixEventsPlugin.js +1 -1
- package/lib/components/DatePicker/plugins/rangePlugin.d.ts +2 -0
- package/lib/components/DatePicker/plugins/rangePlugin.js +2 -6
- package/lib/components/DatePickerInput/DatePickerInput.js +49 -49
- package/lib/components/DatePickerInput/index.js +2 -2
- package/lib/components/Dialog/index.js +72 -80
- package/lib/components/Dropdown/Dropdown.Skeleton.js +8 -14
- package/lib/components/Dropdown/Dropdown.js +49 -55
- package/lib/components/Dropdown/index.js +3 -3
- package/lib/components/ErrorBoundary/ErrorBoundary.js +4 -9
- package/lib/components/ErrorBoundary/ErrorBoundaryContext.js +0 -2
- package/lib/components/ExpandableSearch/ExpandableSearch.js +6 -11
- package/lib/components/FeatureFlags/index.js +10 -17
- package/lib/components/FileUploader/FileUploader.Skeleton.js +7 -13
- package/lib/components/FileUploader/FileUploader.js +30 -36
- package/lib/components/FileUploader/FileUploaderButton.js +19 -25
- package/lib/components/FileUploader/FileUploaderDropContainer.js +18 -24
- package/lib/components/FileUploader/FileUploaderItem.js +23 -29
- package/lib/components/FileUploader/Filename.js +13 -18
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +7 -13
- package/lib/components/FluidComboBox/FluidComboBox.js +24 -30
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +14 -20
- package/lib/components/FluidDatePicker/FluidDatePicker.js +12 -18
- package/lib/components/FluidDatePickerInput/FluidDatePickerInput.js +4 -8
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +7 -13
- package/lib/components/FluidDropdown/FluidDropdown.js +24 -30
- package/lib/components/FluidForm/FluidForm.js +6 -12
- package/lib/components/FluidForm/FormContext.js +0 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +7 -13
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +36 -42
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +7 -13
- package/lib/components/FluidNumberInput/FluidNumberInput.js +30 -36
- package/lib/components/FluidSearch/FluidSearch.Skeleton.js +7 -13
- package/lib/components/FluidSearch/FluidSearch.js +19 -25
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +7 -13
- package/lib/components/FluidSelect/FluidSelect.js +17 -23
- package/lib/components/FluidSelect/index.js +3 -3
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +7 -13
- package/lib/components/FluidTextArea/FluidTextArea.js +25 -31
- package/lib/components/FluidTextInput/FluidPasswordInput.js +18 -22
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +7 -13
- package/lib/components/FluidTextInput/FluidTextInput.js +23 -29
- package/lib/components/FluidTextInput/index.js +3 -3
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +6 -12
- package/lib/components/FluidTimePicker/FluidTimePicker.js +23 -29
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +10 -15
- package/lib/components/Form/Form.js +5 -11
- package/lib/components/FormGroup/FormGroup.js +13 -19
- package/lib/components/FormItem/FormItem.js +5 -11
- package/lib/components/FormLabel/FormLabel.js +6 -12
- package/lib/components/Grid/CSSGrid.js +20 -28
- package/lib/components/Grid/Column.js +31 -37
- package/lib/components/Grid/ColumnHang.js +5 -13
- package/lib/components/Grid/FlexGrid.js +10 -18
- package/lib/components/Grid/Grid.js +9 -16
- package/lib/components/Grid/GridContext.js +7 -14
- package/lib/components/Grid/Row.js +8 -14
- package/lib/components/Heading/index.js +14 -21
- package/lib/components/Icon/Icon.Skeleton.js +4 -10
- package/lib/components/IconButton/index.js +25 -33
- package/lib/components/IconIndicator/index.js +9 -15
- package/lib/components/IdPrefix/index.js +3 -10
- package/lib/components/InlineCheckbox/InlineCheckbox.js +17 -22
- package/lib/components/InlineCheckbox/index.js +2 -2
- package/lib/components/InlineLoading/InlineLoading.js +17 -23
- package/lib/components/InlineLoading/index.js +2 -2
- package/lib/components/Layer/LayerContext.js +1 -7
- package/lib/components/Layer/LayerLevel.js +0 -2
- package/lib/components/Layer/index.js +11 -19
- package/lib/components/Layout/index.js +22 -30
- package/lib/components/LayoutDirection/LayoutDirection.js +6 -13
- package/lib/components/LayoutDirection/LayoutDirectionContext.js +1 -7
- package/lib/components/LayoutDirection/useLayoutDirection.js +0 -2
- package/lib/components/Link/Link.js +15 -21
- package/lib/components/Link/index.js +2 -2
- package/lib/components/ListBox/ListBox.js +17 -23
- package/lib/components/ListBox/ListBoxField.js +7 -12
- package/lib/components/ListBox/ListBoxMenu.js +7 -12
- package/lib/components/ListBox/ListBoxMenuIcon.js +7 -13
- package/lib/components/ListBox/ListBoxMenuItem.js +9 -15
- package/lib/components/ListBox/ListBoxPropTypes.js +2 -8
- package/lib/components/ListBox/ListBoxSelection.js +14 -20
- package/lib/components/ListBox/index.js +7 -7
- package/lib/components/ListBox/next/ListBoxSelection.js +18 -24
- package/lib/components/ListBox/next/ListBoxTrigger.js +7 -13
- package/lib/components/ListItem/ListItem.js +5 -11
- package/lib/components/Loading/Loading.js +14 -20
- package/lib/components/Loading/index.js +2 -2
- package/lib/components/Menu/Menu.d.ts +3 -1
- package/lib/components/Menu/Menu.js +18 -24
- package/lib/components/Menu/MenuContext.js +0 -2
- package/lib/components/Menu/MenuItem.js +44 -52
- package/lib/components/MenuButton/index.js +16 -24
- package/lib/components/Modal/Modal.js +91 -86
- package/lib/components/Modal/index.js +2 -2
- package/lib/components/ModalWrapper/ModalWrapper.js +30 -35
- package/lib/components/MultiSelect/FilterableMultiSelect.js +57 -67
- package/lib/components/MultiSelect/MultiSelect.js +61 -70
- package/lib/components/MultiSelect/MultiSelectPropTypes.js +2 -8
- package/lib/components/MultiSelect/filter.js +0 -6
- package/lib/components/MultiSelect/tools/itemToString.d.ts +1 -0
- package/lib/components/MultiSelect/tools/itemToString.js +1 -7
- package/lib/components/MultiSelect/tools/sorting.d.ts +9 -0
- package/lib/components/MultiSelect/tools/sorting.js +0 -2
- package/lib/components/Notification/Notification.js +118 -126
- package/lib/components/NumberInput/NumberFormatPropTypes.js +21 -27
- package/lib/components/NumberInput/NumberInput.Skeleton.js +8 -14
- package/lib/components/NumberInput/NumberInput.js +66 -74
- package/lib/components/OrderedList/OrderedList.js +8 -14
- package/lib/components/OverflowMenu/OverflowMenu.js +42 -49
- package/lib/components/OverflowMenu/index.js +3 -7
- package/lib/components/OverflowMenu/next/index.js +18 -26
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +27 -33
- package/lib/components/OverflowMenuItem/index.js +2 -2
- package/lib/components/OverflowMenuV2/index.d.ts +1 -0
- package/lib/components/OverflowMenuV2/index.js +2 -8
- package/lib/components/PageHeader/PageHeader.js +70 -78
- package/lib/components/PageHeader/index.js +0 -2
- package/lib/components/Pagination/Pagination.Skeleton.js +10 -16
- package/lib/components/Pagination/Pagination.js +44 -51
- package/lib/components/Pagination/experimental/PageSelector.d.ts +19 -0
- package/lib/components/Pagination/experimental/PageSelector.js +9 -15
- package/lib/components/Pagination/experimental/Pagination.d.ts +43 -0
- package/lib/components/Pagination/experimental/Pagination.js +34 -40
- package/lib/components/Pagination/experimental/index.d.ts +3 -0
- package/lib/components/PaginationNav/PaginationNav.js +54 -60
- package/lib/components/Popover/index.js +56 -47
- package/lib/components/PrimaryButton/PrimaryButton.js +2 -6
- package/lib/components/ProgressBar/ProgressBar.js +25 -31
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +10 -16
- package/lib/components/ProgressIndicator/ProgressIndicator.js +41 -49
- package/lib/components/RadioButton/RadioButton.Skeleton.js +6 -12
- package/lib/components/RadioButton/RadioButton.js +26 -32
- package/lib/components/RadioButton/index.js +2 -2
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js +37 -43
- package/lib/components/RadioTile/RadioTile.js +25 -31
- package/lib/components/RadioTile/index.js +2 -2
- package/lib/components/Search/Search.Skeleton.js +7 -13
- package/lib/components/Search/Search.js +33 -39
- package/lib/components/Search/index.js +3 -3
- package/lib/components/SecondaryButton/SecondaryButton.js +2 -6
- package/lib/components/Select/Select.Skeleton.js +8 -14
- package/lib/components/Select/Select.js +42 -48
- package/lib/components/Select/index.js +3 -3
- package/lib/components/SelectItem/SelectItem.js +8 -14
- package/lib/components/SelectItem/index.js +2 -2
- package/lib/components/SelectItemGroup/SelectItemGroup.js +7 -13
- package/lib/components/ShapeIndicator/index.js +12 -18
- package/lib/components/SkeletonIcon/SkeletonIcon.js +4 -10
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +4 -10
- package/lib/components/SkeletonText/SkeletonText.js +11 -17
- package/lib/components/SkeletonText/index.js +2 -2
- package/lib/components/Slider/Slider.Skeleton.js +29 -35
- package/lib/components/Slider/Slider.js +84 -90
- package/lib/components/Slider/SliderHandles.js +18 -24
- package/lib/components/Slider/index.js +3 -3
- package/lib/components/Stack/HStack.js +1 -7
- package/lib/components/Stack/Stack.js +7 -15
- package/lib/components/Stack/VStack.js +1 -7
- package/lib/components/StructuredList/StructuredList.Skeleton.js +15 -21
- package/lib/components/StructuredList/StructuredList.js +60 -68
- package/lib/components/Switch/IconSwitch.d.ts +3 -0
- package/lib/components/Switch/IconSwitch.js +18 -25
- package/lib/components/Switch/Switch.js +14 -20
- package/lib/components/TabContent/TabContent.js +7 -33
- package/lib/components/Tabs/Tabs.Skeleton.js +10 -16
- package/lib/components/Tabs/Tabs.js +121 -129
- package/lib/components/Tabs/usePressable.js +0 -2
- package/lib/components/Tag/DismissibleTag.js +24 -30
- package/lib/components/Tag/OperationalTag.js +16 -22
- package/lib/components/Tag/SelectableTag.js +19 -25
- package/lib/components/Tag/Tag.Skeleton.js +5 -11
- package/lib/components/Tag/Tag.js +28 -34
- package/lib/components/Tag/isEllipsisActive.js +0 -2
- package/lib/components/Text/Text.js +6 -13
- package/lib/components/Text/TextDirection.js +4 -11
- package/lib/components/Text/TextDirectionContext.js +0 -2
- package/lib/components/Text/createTextComponent.js +1 -7
- package/lib/components/Text/index.js +0 -2
- package/lib/components/TextArea/TextArea.Skeleton.js +7 -13
- package/lib/components/TextArea/TextArea.js +49 -55
- package/lib/components/TextArea/index.js +3 -3
- package/lib/components/TextInput/ControlledPasswordInput.js +36 -42
- package/lib/components/TextInput/PasswordInput.js +48 -54
- package/lib/components/TextInput/TextInput.Skeleton.js +7 -13
- package/lib/components/TextInput/TextInput.js +47 -53
- package/lib/components/TextInput/index.js +3 -3
- package/lib/components/TextInput/util.d.ts +9 -0
- package/lib/components/TextInput/util.js +0 -2
- package/lib/components/Theme/index.js +16 -24
- package/lib/components/Tile/Tile.js +92 -100
- package/lib/components/TileGroup/TileGroup.js +15 -22
- package/lib/components/TimePicker/TimePicker.js +39 -45
- package/lib/components/TimePickerSelect/TimePickerSelect.js +10 -16
- package/lib/components/Toggle/Toggle.Skeleton.js +7 -13
- package/lib/components/Toggle/Toggle.js +28 -34
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +12 -20
- package/lib/components/Toggletip/index.js +32 -40
- package/lib/components/Tooltip/DefinitionTooltip.js +14 -22
- package/lib/components/Tooltip/Tooltip.js +19 -27
- package/lib/components/TreeView/TreeContext.js +0 -2
- package/lib/components/TreeView/TreeNode.js +41 -47
- package/lib/components/TreeView/TreeView.js +17 -23
- package/lib/components/UIShell/Content.js +6 -12
- package/lib/components/UIShell/Header.js +4 -10
- package/lib/components/UIShell/HeaderContainer.js +4 -9
- package/lib/components/UIShell/HeaderGlobalAction.js +11 -17
- package/lib/components/UIShell/HeaderGlobalBar.js +2 -2
- package/lib/components/UIShell/HeaderMenu.js +17 -23
- package/lib/components/UIShell/HeaderMenuButton.js +9 -15
- package/lib/components/UIShell/HeaderMenuItem.js +11 -17
- package/lib/components/UIShell/HeaderName.js +8 -14
- package/lib/components/UIShell/HeaderNavigation.js +6 -12
- package/lib/components/UIShell/HeaderPanel.js +11 -17
- package/lib/components/UIShell/HeaderSideNavItems.js +6 -12
- package/lib/components/UIShell/Link.js +6 -11
- package/lib/components/UIShell/SideNav.js +23 -29
- package/lib/components/UIShell/SideNavDetails.js +7 -13
- package/lib/components/UIShell/SideNavDivider.js +5 -11
- package/lib/components/UIShell/SideNavFooter.js +12 -18
- package/lib/components/UIShell/SideNavHeader.js +8 -14
- package/lib/components/UIShell/SideNavIcon.js +6 -12
- package/lib/components/UIShell/SideNavItem.js +6 -12
- package/lib/components/UIShell/SideNavItems.js +9 -15
- package/lib/components/UIShell/SideNavLink.js +13 -19
- package/lib/components/UIShell/SideNavLinkText.js +5 -11
- package/lib/components/UIShell/SideNavMenu.js +20 -26
- package/lib/components/UIShell/SideNavMenuItem.js +13 -19
- package/lib/components/UIShell/SideNavSwitcher.js +13 -19
- package/lib/components/UIShell/SkipToContent.js +7 -13
- package/lib/components/UIShell/Switcher.js +9 -15
- package/lib/components/UIShell/SwitcherDivider.js +4 -10
- package/lib/components/UIShell/SwitcherItem.js +15 -21
- package/lib/components/UIShell/_utils.d.ts +7 -0
- package/lib/components/UIShell/_utils.js +0 -2
- package/lib/components/UnorderedList/UnorderedList.js +7 -13
- package/lib/feature-flags.d.ts +1 -0
- package/lib/feature-flags.js +3 -4
- package/lib/index.js +180 -182
- package/lib/internal/FloatingMenu.js +10 -18
- package/lib/internal/OptimizedResize.js +2 -8
- package/lib/internal/Selection.js +1 -7
- package/lib/internal/clamp.js +0 -2
- package/lib/internal/createClassWrapper.js +1 -7
- package/lib/internal/deprecateFieldOnObject.js +1 -3
- package/lib/internal/environment.js +0 -2
- package/lib/internal/getAnnouncement.js +0 -2
- package/lib/internal/keyboard/keys.js +0 -2
- package/lib/internal/keyboard/match.js +0 -2
- package/lib/internal/keyboard/navigation.js +0 -2
- package/lib/internal/noopFn.js +0 -2
- package/lib/internal/useAttachedMenu.js +0 -2
- package/lib/internal/useControllableState.js +0 -2
- package/lib/internal/useDelayedState.js +0 -2
- package/lib/internal/useEvent.js +0 -2
- package/lib/internal/useId.d.ts +21 -0
- package/lib/internal/useId.js +27 -7
- package/lib/internal/useIdPrefix.js +2 -8
- package/lib/internal/useIsomorphicEffect.js +1 -1
- package/lib/internal/useMatchMedia.js +0 -2
- package/lib/internal/useMergedRefs.js +0 -2
- package/lib/internal/useNoInteractiveChildren.js +0 -2
- package/lib/internal/useNormalizedInputProps.js +2 -8
- package/lib/internal/useOutsideClick.js +0 -2
- package/lib/internal/useOverflowItems.js +1 -7
- package/lib/internal/usePrefix.js +2 -8
- package/lib/internal/usePreviousValue.js +0 -2
- package/lib/internal/useResizeObserver.js +0 -2
- package/lib/internal/useSavedCallback.js +0 -2
- package/lib/internal/utils.js +0 -2
- package/lib/internal/warning.js +0 -2
- package/lib/internal/wrapFocus.js +0 -2
- package/lib/node_modules/es-toolkit/dist/compat/function/{debounce.mjs.js → debounce.js} +1 -3
- package/lib/node_modules/es-toolkit/dist/compat/function/{throttle.mjs.js → throttle.js} +1 -3
- package/lib/node_modules/es-toolkit/dist/function/{debounce.mjs.js → debounce.js} +0 -2
- package/lib/prop-types/AriaPropTypes.js +2 -8
- package/lib/prop-types/deprecate.js +0 -2
- package/lib/prop-types/deprecateComponent.d.ts +1 -0
- package/lib/prop-types/deprecateComponent.js +2 -5
- package/lib/prop-types/deprecateValuesWithin.d.ts +1 -0
- package/lib/prop-types/deprecateValuesWithin.js +1 -1
- package/lib/prop-types/isRequiredOneOf.js +0 -2
- package/lib/prop-types/requiredIfGivenPropIsTruthy.d.ts +14 -0
- package/lib/prop-types/requiredIfGivenPropIsTruthy.js +1 -1
- package/lib/tools/events.js +0 -2
- package/lib/tools/mapPopoverAlign.js +0 -2
- package/lib/tools/mergeRefs.d.ts +12 -0
- package/lib/tools/mergeRefs.js +1 -2
- package/lib/tools/setupGetInstanceId.js +0 -2
- package/lib/tools/toggleClass.js +0 -2
- package/lib/tools/wrapComponent.js +4 -10
- package/package.json +11 -11
- /package/es/node_modules/es-toolkit/dist/function/{debounce.mjs.js → debounce.js} +0 -0
|
@@ -18,24 +18,18 @@ require('../Select/Select.Skeleton.js');
|
|
|
18
18
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
19
19
|
var FormContext = require('../FluidForm/FormContext.js');
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
24
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
25
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
26
|
-
|
|
27
|
-
const FluidSelect = /*#__PURE__*/React__default["default"].forwardRef(function FluidSelect({
|
|
21
|
+
const FluidSelect = /*#__PURE__*/React.forwardRef(function FluidSelect({
|
|
28
22
|
className,
|
|
29
23
|
children,
|
|
30
24
|
...other
|
|
31
25
|
}, ref) {
|
|
32
26
|
const prefix = usePrefix.usePrefix();
|
|
33
|
-
const classNames =
|
|
34
|
-
return /*#__PURE__*/
|
|
27
|
+
const classNames = cx(`${prefix}--select--fluid`, className);
|
|
28
|
+
return /*#__PURE__*/React.createElement(FormContext.FormContext.Provider, {
|
|
35
29
|
value: {
|
|
36
30
|
isFluid: true
|
|
37
31
|
}
|
|
38
|
-
}, /*#__PURE__*/
|
|
32
|
+
}, /*#__PURE__*/React.createElement(Select.default, _rollupPluginBabelHelpers.extends({
|
|
39
33
|
ref: ref,
|
|
40
34
|
className: classNames
|
|
41
35
|
}, other), children));
|
|
@@ -44,53 +38,53 @@ FluidSelect.propTypes = {
|
|
|
44
38
|
/**
|
|
45
39
|
* Provide the contents of your Select
|
|
46
40
|
*/
|
|
47
|
-
children:
|
|
41
|
+
children: PropTypes.node,
|
|
48
42
|
/**
|
|
49
43
|
* Specify an optional className to be applied to the node containing the label and the select box
|
|
50
44
|
*/
|
|
51
|
-
className:
|
|
45
|
+
className: PropTypes.string,
|
|
52
46
|
/**
|
|
53
47
|
* Optionally provide the default value of the `<select>`
|
|
54
48
|
*/
|
|
55
|
-
defaultValue:
|
|
49
|
+
defaultValue: PropTypes.any,
|
|
56
50
|
/**
|
|
57
51
|
* Specify whether the control is disabled
|
|
58
52
|
*/
|
|
59
|
-
disabled:
|
|
53
|
+
disabled: PropTypes.bool,
|
|
60
54
|
/**
|
|
61
55
|
* Specify a custom `id` for the `<select>`
|
|
62
56
|
*/
|
|
63
|
-
id:
|
|
57
|
+
id: PropTypes.string.isRequired,
|
|
64
58
|
/**
|
|
65
59
|
* Specify if the currently value is invalid.
|
|
66
60
|
*/
|
|
67
|
-
invalid:
|
|
61
|
+
invalid: PropTypes.bool,
|
|
68
62
|
/**
|
|
69
63
|
* Message which is displayed if the value is invalid.
|
|
70
64
|
*/
|
|
71
|
-
invalidText:
|
|
65
|
+
invalidText: PropTypes.node,
|
|
72
66
|
/**
|
|
73
67
|
* Provide label text to be read by screen readers when interacting with the
|
|
74
68
|
* control
|
|
75
69
|
*/
|
|
76
|
-
labelText:
|
|
70
|
+
labelText: PropTypes.node,
|
|
77
71
|
/**
|
|
78
72
|
* Provide an optional `onChange` hook that is called each time the value of
|
|
79
73
|
* the underlying `<input>` changes
|
|
80
74
|
*/
|
|
81
|
-
onChange:
|
|
75
|
+
onChange: PropTypes.func,
|
|
82
76
|
/**
|
|
83
77
|
* Specify whether the control is currently in warning state
|
|
84
78
|
*/
|
|
85
|
-
warn:
|
|
79
|
+
warn: PropTypes.bool,
|
|
86
80
|
/**
|
|
87
81
|
* Provide the text that is displayed when the control is in warning state
|
|
88
82
|
*/
|
|
89
|
-
warnText:
|
|
83
|
+
warnText: PropTypes.node,
|
|
90
84
|
/**
|
|
91
85
|
* Whether or not the component is readonly
|
|
92
86
|
*/
|
|
93
|
-
readOnly:
|
|
87
|
+
readOnly: PropTypes.bool
|
|
94
88
|
};
|
|
95
89
|
|
|
96
|
-
exports
|
|
90
|
+
exports.default = FluidSelect;
|
|
@@ -14,6 +14,6 @@ var FluidSelect_Skeleton = require('./FluidSelect.Skeleton.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.FluidSelect = FluidSelect
|
|
18
|
-
exports
|
|
19
|
-
exports.FluidSelectSkeleton = FluidSelect_Skeleton
|
|
17
|
+
exports.FluidSelect = FluidSelect.default;
|
|
18
|
+
exports.default = FluidSelect.default;
|
|
19
|
+
exports.FluidSelectSkeleton = FluidSelect_Skeleton.default;
|
|
@@ -16,26 +16,20 @@ var cx = require('classnames');
|
|
|
16
16
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
17
17
|
var FormContext = require('../FluidForm/FormContext.js');
|
|
18
18
|
|
|
19
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
|
-
|
|
21
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
22
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
24
|
-
|
|
25
19
|
const FluidTextAreaSkeleton = ({
|
|
26
20
|
className,
|
|
27
21
|
...other
|
|
28
22
|
}) => {
|
|
29
23
|
const prefix = usePrefix.usePrefix();
|
|
30
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/React.createElement(FormContext.FormContext.Provider, {
|
|
31
25
|
value: {
|
|
32
26
|
isFluid: true
|
|
33
27
|
}
|
|
34
|
-
}, /*#__PURE__*/
|
|
35
|
-
className:
|
|
36
|
-
}, other), /*#__PURE__*/
|
|
28
|
+
}, /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
|
|
29
|
+
className: cx(`${prefix}--form-item ${prefix}--text-area--fluid__skeleton`, className)
|
|
30
|
+
}, other), /*#__PURE__*/React.createElement("span", {
|
|
37
31
|
className: `${prefix}--label ${prefix}--skeleton`
|
|
38
|
-
}), /*#__PURE__*/
|
|
32
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
39
33
|
className: `${prefix}--skeleton ${prefix}--text-area`
|
|
40
34
|
})));
|
|
41
35
|
};
|
|
@@ -43,7 +37,7 @@ FluidTextAreaSkeleton.propTypes = {
|
|
|
43
37
|
/**
|
|
44
38
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
45
39
|
*/
|
|
46
|
-
className:
|
|
40
|
+
className: PropTypes.string
|
|
47
41
|
};
|
|
48
42
|
|
|
49
|
-
exports
|
|
43
|
+
exports.default = FluidTextAreaSkeleton;
|
|
@@ -19,23 +19,17 @@ var deprecate = require('../../prop-types/deprecate.js');
|
|
|
19
19
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
20
20
|
var FormContext = require('../FluidForm/FormContext.js');
|
|
21
21
|
|
|
22
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
|
-
|
|
24
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
25
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
26
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
27
|
-
|
|
28
22
|
const FluidTextArea = ({
|
|
29
23
|
className,
|
|
30
24
|
...other
|
|
31
25
|
}) => {
|
|
32
26
|
const prefix = usePrefix.usePrefix();
|
|
33
|
-
const classNames =
|
|
34
|
-
return /*#__PURE__*/
|
|
27
|
+
const classNames = cx(`${prefix}--text-area--fluid`, className);
|
|
28
|
+
return /*#__PURE__*/React.createElement(FormContext.FormContext.Provider, {
|
|
35
29
|
value: {
|
|
36
30
|
isFluid: true
|
|
37
31
|
}
|
|
38
|
-
}, /*#__PURE__*/
|
|
32
|
+
}, /*#__PURE__*/React.createElement(TextArea.default, _rollupPluginBabelHelpers.extends({
|
|
39
33
|
className: classNames
|
|
40
34
|
}, other)));
|
|
41
35
|
};
|
|
@@ -44,91 +38,91 @@ FluidTextArea.propTypes = {
|
|
|
44
38
|
* Provide a custom className that is applied directly to the underlying
|
|
45
39
|
* `<textarea>` node
|
|
46
40
|
*/
|
|
47
|
-
className:
|
|
41
|
+
className: PropTypes.string,
|
|
48
42
|
/**
|
|
49
43
|
* Specify the `cols` attribute for the underlying `<textarea>` node
|
|
50
44
|
*/
|
|
51
|
-
cols:
|
|
45
|
+
cols: PropTypes.number,
|
|
52
46
|
/**
|
|
53
47
|
* Optionally provide the default value of the `<textarea>`
|
|
54
48
|
*/
|
|
55
|
-
defaultValue:
|
|
49
|
+
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
56
50
|
/**
|
|
57
51
|
* Specify whether the control is disabled
|
|
58
52
|
*/
|
|
59
|
-
disabled:
|
|
53
|
+
disabled: PropTypes.bool,
|
|
60
54
|
/**
|
|
61
55
|
* Specify whether to display the character counter
|
|
62
56
|
*/
|
|
63
|
-
enableCounter:
|
|
57
|
+
enableCounter: PropTypes.bool,
|
|
64
58
|
/**
|
|
65
59
|
* Provide text that is used alongside the control label for additional help
|
|
66
60
|
*/
|
|
67
|
-
helperText:
|
|
61
|
+
helperText: PropTypes.node,
|
|
68
62
|
/**
|
|
69
63
|
* Specify whether you want the underlying label to be visually hidden
|
|
70
64
|
*/
|
|
71
|
-
hideLabel:
|
|
65
|
+
hideLabel: PropTypes.bool,
|
|
72
66
|
/**
|
|
73
67
|
* Provide a unique identifier for the control
|
|
74
68
|
*/
|
|
75
|
-
id:
|
|
69
|
+
id: PropTypes.string,
|
|
76
70
|
/**
|
|
77
71
|
* Specify whether the control is currently invalid
|
|
78
72
|
*/
|
|
79
|
-
invalid:
|
|
73
|
+
invalid: PropTypes.bool,
|
|
80
74
|
/**
|
|
81
75
|
* Provide the text that is displayed when the control is in an invalid state
|
|
82
76
|
*/
|
|
83
|
-
invalidText:
|
|
77
|
+
invalidText: PropTypes.node,
|
|
84
78
|
/**
|
|
85
79
|
* Provide the text that will be read by a screen reader when visiting this
|
|
86
80
|
* control
|
|
87
81
|
*/
|
|
88
|
-
labelText:
|
|
82
|
+
labelText: PropTypes.node.isRequired,
|
|
89
83
|
/**
|
|
90
84
|
* `true` to use the light version. For use on $ui-01 backgrounds only.
|
|
91
85
|
* Don't use this to make tile background color same as container background color.
|
|
92
86
|
*/
|
|
93
|
-
light: deprecate.deprecate(
|
|
87
|
+
light: deprecate.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.'),
|
|
94
88
|
/**
|
|
95
89
|
* Max character count allowed for the textarea. This is needed in order for enableCounter to display
|
|
96
90
|
*/
|
|
97
|
-
maxCount:
|
|
91
|
+
maxCount: PropTypes.number,
|
|
98
92
|
/**
|
|
99
93
|
* Optionally provide an `onChange` handler that is called whenever `<textarea>`
|
|
100
94
|
* is updated
|
|
101
95
|
*/
|
|
102
|
-
onChange:
|
|
96
|
+
onChange: PropTypes.func,
|
|
103
97
|
/**
|
|
104
98
|
* Optionally provide an `onClick` handler that is called whenever the
|
|
105
99
|
* `<textarea>` is clicked
|
|
106
100
|
*/
|
|
107
|
-
onClick:
|
|
101
|
+
onClick: PropTypes.func,
|
|
108
102
|
/**
|
|
109
103
|
* Specify the placeholder attribute for the `<textarea>`
|
|
110
104
|
*/
|
|
111
|
-
placeholder:
|
|
105
|
+
placeholder: PropTypes.string,
|
|
112
106
|
/**
|
|
113
107
|
* Specify the rows attribute for the `<textarea>`
|
|
114
108
|
*/
|
|
115
|
-
rows:
|
|
109
|
+
rows: PropTypes.number,
|
|
116
110
|
/**
|
|
117
111
|
* Provide the current value of the `<textarea>`
|
|
118
112
|
*/
|
|
119
|
-
value:
|
|
113
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
120
114
|
/**
|
|
121
115
|
* Specify whether the control is currently in warning state
|
|
122
116
|
*/
|
|
123
|
-
warn:
|
|
117
|
+
warn: PropTypes.bool,
|
|
124
118
|
/**
|
|
125
119
|
* Provide the text that is displayed when the control is in warning state
|
|
126
120
|
*/
|
|
127
|
-
warnText:
|
|
121
|
+
warnText: PropTypes.node,
|
|
128
122
|
/**
|
|
129
123
|
* Whether or not the component is readonly
|
|
130
124
|
*/
|
|
131
|
-
readOnly:
|
|
125
|
+
readOnly: PropTypes.bool
|
|
132
126
|
};
|
|
133
127
|
|
|
134
|
-
exports
|
|
128
|
+
exports.default = FluidTextArea;
|
|
@@ -13,85 +13,81 @@ require('classnames');
|
|
|
13
13
|
require('../TextInput/ControlledPasswordInput.js');
|
|
14
14
|
require('../TextInput/PasswordInput.js');
|
|
15
15
|
|
|
16
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
|
-
|
|
18
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
19
|
-
|
|
20
16
|
({
|
|
21
17
|
/**
|
|
22
18
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
23
19
|
*/
|
|
24
|
-
className:
|
|
20
|
+
className: PropTypes.string,
|
|
25
21
|
/**
|
|
26
22
|
* Optionally provide the default value of the `<input>`
|
|
27
23
|
*/
|
|
28
|
-
defaultValue:
|
|
24
|
+
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
29
25
|
/**
|
|
30
26
|
* Specify whether the `<input>` should be disabled
|
|
31
27
|
*/
|
|
32
|
-
disabled:
|
|
28
|
+
disabled: PropTypes.bool,
|
|
33
29
|
/**
|
|
34
30
|
* "Hide password" tooltip text on password visibility toggle
|
|
35
31
|
*/
|
|
36
|
-
hidePasswordLabel:
|
|
32
|
+
hidePasswordLabel: PropTypes.string,
|
|
37
33
|
/**
|
|
38
34
|
* Specify a custom `id` for the `<input>`
|
|
39
35
|
*/
|
|
40
|
-
id:
|
|
36
|
+
id: PropTypes.string.isRequired,
|
|
41
37
|
/**
|
|
42
38
|
* Specify whether the control is currently invalid
|
|
43
39
|
*/
|
|
44
|
-
invalid:
|
|
40
|
+
invalid: PropTypes.bool,
|
|
45
41
|
/**
|
|
46
42
|
* Provide the text that is displayed when the control is in an invalid state
|
|
47
43
|
*/
|
|
48
|
-
invalidText:
|
|
44
|
+
invalidText: PropTypes.node,
|
|
49
45
|
/**
|
|
50
46
|
* Specify whether the control is a password input
|
|
51
47
|
*/
|
|
52
|
-
isPassword:
|
|
48
|
+
isPassword: PropTypes.bool,
|
|
53
49
|
/**
|
|
54
50
|
* Provide the text that will be read by a screen reader when visiting this
|
|
55
51
|
* control
|
|
56
52
|
*/
|
|
57
|
-
labelText:
|
|
53
|
+
labelText: PropTypes.node.isRequired,
|
|
58
54
|
/**
|
|
59
55
|
* Optionally provide an `onChange` handler that is called whenever `<input>`
|
|
60
56
|
* is updated
|
|
61
57
|
*/
|
|
62
|
-
onChange:
|
|
58
|
+
onChange: PropTypes.func,
|
|
63
59
|
/**
|
|
64
60
|
* Optionally provide an `onClick` handler that is called whenever the
|
|
65
61
|
* `<input>` is clicked
|
|
66
62
|
*/
|
|
67
|
-
onClick:
|
|
63
|
+
onClick: PropTypes.func,
|
|
68
64
|
/**
|
|
69
65
|
* Callback function that is called whenever the toggle password visibility
|
|
70
66
|
* button is clicked
|
|
71
67
|
*/
|
|
72
|
-
onTogglePasswordVisibility:
|
|
68
|
+
onTogglePasswordVisibility: PropTypes.func,
|
|
73
69
|
/**
|
|
74
70
|
* Specify the placeholder attribute for the `<input>`
|
|
75
71
|
*/
|
|
76
|
-
placeholder:
|
|
72
|
+
placeholder: PropTypes.string,
|
|
77
73
|
/**
|
|
78
74
|
* "Show password" tooltip text on password visibility toggle
|
|
79
75
|
*/
|
|
80
|
-
showPasswordLabel:
|
|
76
|
+
showPasswordLabel: PropTypes.string,
|
|
81
77
|
/**
|
|
82
78
|
* Specify the value of the `<input>`
|
|
83
79
|
*/
|
|
84
|
-
value:
|
|
80
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
85
81
|
/**
|
|
86
82
|
* Specify whether the control is currently in warning state
|
|
87
83
|
*/
|
|
88
|
-
warn:
|
|
84
|
+
warn: PropTypes.bool,
|
|
89
85
|
/**
|
|
90
86
|
* Provide the text that is displayed when the control is in warning state
|
|
91
87
|
*/
|
|
92
|
-
warnText:
|
|
88
|
+
warnText: PropTypes.node,
|
|
93
89
|
/**
|
|
94
90
|
* Whether or not the component is readonly
|
|
95
91
|
*/
|
|
96
|
-
readOnly:
|
|
92
|
+
readOnly: PropTypes.bool
|
|
97
93
|
});
|
|
@@ -16,26 +16,20 @@ var cx = require('classnames');
|
|
|
16
16
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
17
17
|
var FormContext = require('../FluidForm/FormContext.js');
|
|
18
18
|
|
|
19
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
|
-
|
|
21
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
22
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
24
|
-
|
|
25
19
|
const FluidTextInputSkeleton = ({
|
|
26
20
|
className,
|
|
27
21
|
...other
|
|
28
22
|
}) => {
|
|
29
23
|
const prefix = usePrefix.usePrefix();
|
|
30
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/React.createElement(FormContext.FormContext.Provider, {
|
|
31
25
|
value: {
|
|
32
26
|
isFluid: true
|
|
33
27
|
}
|
|
34
|
-
}, /*#__PURE__*/
|
|
35
|
-
className:
|
|
36
|
-
}, other), /*#__PURE__*/
|
|
28
|
+
}, /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
|
|
29
|
+
className: cx(`${prefix}--form-item ${prefix}--text-input--fluid__skeleton`, className)
|
|
30
|
+
}, other), /*#__PURE__*/React.createElement("span", {
|
|
37
31
|
className: `${prefix}--label ${prefix}--skeleton`
|
|
38
|
-
}), /*#__PURE__*/
|
|
32
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
39
33
|
className: `${prefix}--skeleton ${prefix}--text-input`
|
|
40
34
|
})));
|
|
41
35
|
};
|
|
@@ -43,7 +37,7 @@ FluidTextInputSkeleton.propTypes = {
|
|
|
43
37
|
/**
|
|
44
38
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
45
39
|
*/
|
|
46
|
-
className:
|
|
40
|
+
className: PropTypes.string
|
|
47
41
|
};
|
|
48
42
|
|
|
49
|
-
exports
|
|
43
|
+
exports.default = FluidTextInputSkeleton;
|
|
@@ -20,29 +20,23 @@ var PasswordInput = require('../TextInput/PasswordInput.js');
|
|
|
20
20
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
21
21
|
var FormContext = require('../FluidForm/FormContext.js');
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
26
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
27
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
28
|
-
|
|
29
|
-
const FluidTextInput = /*#__PURE__*/React__default["default"].forwardRef(function FluidTextInput({
|
|
23
|
+
const FluidTextInput = /*#__PURE__*/React.forwardRef(function FluidTextInput({
|
|
30
24
|
className,
|
|
31
25
|
isPassword,
|
|
32
26
|
...other
|
|
33
27
|
}, ref) {
|
|
34
28
|
const prefix = usePrefix.usePrefix();
|
|
35
|
-
const classNames =
|
|
29
|
+
const classNames = cx(className, {
|
|
36
30
|
[`${prefix}--text-input--fluid`]: !isPassword
|
|
37
31
|
});
|
|
38
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/React.createElement(FormContext.FormContext.Provider, {
|
|
39
33
|
value: {
|
|
40
34
|
isFluid: true
|
|
41
35
|
}
|
|
42
|
-
}, isPassword ? /*#__PURE__*/
|
|
36
|
+
}, isPassword ? /*#__PURE__*/React.createElement(PasswordInput.default, _rollupPluginBabelHelpers.extends({
|
|
43
37
|
className: classNames,
|
|
44
38
|
ref: ref
|
|
45
|
-
}, other)) : /*#__PURE__*/
|
|
39
|
+
}, other)) : /*#__PURE__*/React.createElement(TextInput.default, _rollupPluginBabelHelpers.extends({
|
|
46
40
|
className: classNames,
|
|
47
41
|
ref: ref
|
|
48
42
|
}, other)));
|
|
@@ -51,74 +45,74 @@ FluidTextInput.propTypes = {
|
|
|
51
45
|
/**
|
|
52
46
|
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
53
47
|
*/
|
|
54
|
-
className:
|
|
48
|
+
className: PropTypes.string,
|
|
55
49
|
/**
|
|
56
50
|
* Optionally provide the default value of the `<input>`
|
|
57
51
|
*/
|
|
58
|
-
defaultValue:
|
|
52
|
+
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
59
53
|
/**
|
|
60
54
|
* Specify whether the `<input>` should be disabled
|
|
61
55
|
*/
|
|
62
|
-
disabled:
|
|
56
|
+
disabled: PropTypes.bool,
|
|
63
57
|
/**
|
|
64
58
|
* Specify a custom `id` for the `<input>`
|
|
65
59
|
*/
|
|
66
|
-
id:
|
|
60
|
+
id: PropTypes.string.isRequired,
|
|
67
61
|
/**
|
|
68
62
|
* Specify whether the control is currently invalid
|
|
69
63
|
*/
|
|
70
|
-
invalid:
|
|
64
|
+
invalid: PropTypes.bool,
|
|
71
65
|
/**
|
|
72
66
|
* Provide the text that is displayed when the control is in an invalid state
|
|
73
67
|
*/
|
|
74
|
-
invalidText:
|
|
68
|
+
invalidText: PropTypes.node,
|
|
75
69
|
/**
|
|
76
70
|
* Specify whether the control is a password input
|
|
77
71
|
*/
|
|
78
|
-
isPassword:
|
|
72
|
+
isPassword: PropTypes.bool,
|
|
79
73
|
/**
|
|
80
74
|
* Max character count allowed for the textInput. This is needed in order for enableCounter to display
|
|
81
75
|
*/
|
|
82
|
-
maxCount:
|
|
76
|
+
maxCount: PropTypes.number,
|
|
83
77
|
/**
|
|
84
78
|
* Specify whether to display the character counter
|
|
85
79
|
*/
|
|
86
|
-
enableCounter:
|
|
80
|
+
enableCounter: PropTypes.bool,
|
|
87
81
|
/**
|
|
88
82
|
* Provide the text that will be read by a screen reader when visiting this
|
|
89
83
|
* control
|
|
90
84
|
*/
|
|
91
|
-
labelText:
|
|
85
|
+
labelText: PropTypes.node.isRequired,
|
|
92
86
|
/**
|
|
93
87
|
* Optionally provide an `onChange` handler that is called whenever `<input>`
|
|
94
88
|
* is updated
|
|
95
89
|
*/
|
|
96
|
-
onChange:
|
|
90
|
+
onChange: PropTypes.func,
|
|
97
91
|
/**
|
|
98
92
|
* Optionally provide an `onClick` handler that is called whenever the
|
|
99
93
|
* `<input>` is clicked
|
|
100
94
|
*/
|
|
101
|
-
onClick:
|
|
95
|
+
onClick: PropTypes.func,
|
|
102
96
|
/**
|
|
103
97
|
* Specify the placeholder attribute for the `<input>`
|
|
104
98
|
*/
|
|
105
|
-
placeholder:
|
|
99
|
+
placeholder: PropTypes.string,
|
|
106
100
|
/**
|
|
107
101
|
* Specify the value of the `<input>`
|
|
108
102
|
*/
|
|
109
|
-
value:
|
|
103
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
110
104
|
/**
|
|
111
105
|
* Specify whether the control is currently in warning state
|
|
112
106
|
*/
|
|
113
|
-
warn:
|
|
107
|
+
warn: PropTypes.bool,
|
|
114
108
|
/**
|
|
115
109
|
* Provide the text that is displayed when the control is in warning state
|
|
116
110
|
*/
|
|
117
|
-
warnText:
|
|
111
|
+
warnText: PropTypes.node,
|
|
118
112
|
/**
|
|
119
113
|
* Whether or not the component is readonly
|
|
120
114
|
*/
|
|
121
|
-
readOnly:
|
|
115
|
+
readOnly: PropTypes.bool
|
|
122
116
|
};
|
|
123
117
|
|
|
124
|
-
exports
|
|
118
|
+
exports.default = FluidTextInput;
|
|
@@ -15,6 +15,6 @@ var FluidTextInput_Skeleton = require('./FluidTextInput.Skeleton.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.FluidTextInput = FluidTextInput
|
|
19
|
-
exports
|
|
20
|
-
exports.FluidTextInputSkeleton = FluidTextInput_Skeleton
|
|
18
|
+
exports.FluidTextInput = FluidTextInput.default;
|
|
19
|
+
exports.default = FluidTextInput.default;
|
|
20
|
+
exports.FluidTextInputSkeleton = FluidTextInput_Skeleton.default;
|
|
@@ -20,12 +20,6 @@ var FluidTextInput_Skeleton = require('../FluidTextInput/FluidTextInput.Skeleton
|
|
|
20
20
|
require('../FluidSelect/FluidSelect.js');
|
|
21
21
|
var FluidSelect_Skeleton = require('../FluidSelect/FluidSelect.Skeleton.js');
|
|
22
22
|
|
|
23
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
24
|
-
|
|
25
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
26
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
27
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
28
|
-
|
|
29
23
|
var _FluidTextInputSkelet, _FluidSelectSkeleton, _FluidSelectSkeleton2;
|
|
30
24
|
const FluidTimePickerSkeleton = ({
|
|
31
25
|
className,
|
|
@@ -33,22 +27,22 @@ const FluidTimePickerSkeleton = ({
|
|
|
33
27
|
...rest
|
|
34
28
|
}) => {
|
|
35
29
|
const prefix = usePrefix.usePrefix();
|
|
36
|
-
const wrapperClasses =
|
|
30
|
+
const wrapperClasses = cx(className, `${prefix}--time-picker--fluid--skeleton`, {
|
|
37
31
|
[`${prefix}--time-picker--equal-width`]: isOnlyTwo
|
|
38
32
|
});
|
|
39
|
-
return /*#__PURE__*/
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
|
|
40
34
|
className: wrapperClasses
|
|
41
|
-
}, rest), _FluidTextInputSkelet || (_FluidTextInputSkelet = /*#__PURE__*/
|
|
35
|
+
}, rest), _FluidTextInputSkelet || (_FluidTextInputSkelet = /*#__PURE__*/React.createElement(FluidTextInput_Skeleton.default, null)), _FluidSelectSkeleton || (_FluidSelectSkeleton = /*#__PURE__*/React.createElement(FluidSelect_Skeleton.default, null)), !isOnlyTwo ? _FluidSelectSkeleton2 || (_FluidSelectSkeleton2 = /*#__PURE__*/React.createElement(FluidSelect_Skeleton.default, null)) : null);
|
|
42
36
|
};
|
|
43
37
|
FluidTimePickerSkeleton.propTypes = {
|
|
44
38
|
/**
|
|
45
39
|
* Specify an optional className to add.
|
|
46
40
|
*/
|
|
47
|
-
className:
|
|
41
|
+
className: PropTypes.string,
|
|
48
42
|
/**
|
|
49
43
|
* Specify if there are only two TimePicker elements
|
|
50
44
|
*/
|
|
51
|
-
isOnlyTwo:
|
|
45
|
+
isOnlyTwo: PropTypes.bool
|
|
52
46
|
};
|
|
53
47
|
|
|
54
|
-
exports
|
|
48
|
+
exports.default = FluidTimePickerSkeleton;
|