@carbon/react 1.17.0-rc.2 → 1.18.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Accordion/AccordionItem.js +2 -2
- package/es/components/Accordion/index.js +2 -0
- package/es/components/AccordionItem/index.js +2 -0
- package/es/components/Breadcrumb/Breadcrumb.js +1 -2
- package/es/components/Breadcrumb/BreadcrumbItem.js +1 -2
- package/es/components/Button/Button.Skeleton.js +1 -2
- package/es/components/Button/Button.js +1 -2
- package/es/components/ButtonSet/ButtonSet.js +1 -2
- package/es/components/Checkbox/Checkbox.d.ts +4 -0
- package/es/components/Checkbox/Checkbox.js +29 -6
- package/es/components/CodeSnippet/CodeSnippet.js +4 -3
- package/es/components/ComboBox/ComboBox.js +6 -6
- package/es/components/ComposedModal/ComposedModal.js +2 -3
- package/es/components/ComposedModal/ModalFooter.js +1 -0
- package/es/components/ContainedList/ContainedList.js +10 -3
- package/es/components/ContentSwitcher/ContentSwitcher.js +3 -3
- package/es/components/CopyButton/CopyButton.js +1 -2
- package/es/components/DangerButton/DangerButton.js +2 -3
- package/es/components/DataTable/Table.js +1 -2
- package/es/components/DataTable/TableActionList.js +1 -2
- package/es/components/DataTable/TableBatchAction.js +2 -2
- package/es/components/DataTable/TableBatchActions.js +2 -2
- package/es/components/DataTable/TableBody.js +1 -2
- package/es/components/DataTable/TableCell.js +1 -2
- package/es/components/DataTable/TableContainer.js +1 -2
- package/es/components/DataTable/TableExpandHeader.js +1 -2
- package/es/components/DataTable/TableExpandRow.js +1 -2
- package/es/components/DataTable/TableExpandedRow.js +1 -2
- package/es/components/DataTable/TableHead.js +1 -2
- package/es/components/DataTable/TableHeader.js +1 -2
- package/es/components/DataTable/TableRow.js +1 -2
- package/es/components/DataTable/TableSelectAll.js +1 -2
- package/es/components/DataTable/TableSelectRow.js +1 -2
- package/es/components/DataTable/TableToolbar.js +2 -3
- package/es/components/DataTable/TableToolbarAction.js +2 -3
- package/es/components/DataTable/TableToolbarContent.js +1 -2
- package/es/components/DataTable/TableToolbarMenu.js +1 -2
- package/es/components/DataTable/TableToolbarSearch.js +2 -2
- package/es/components/DataTable/index.js +24 -26
- package/es/components/DataTable/state/getDerivedStateFromProps.js +1 -3
- package/es/components/DataTable/tools/denormalize.js +1 -3
- package/es/components/DataTable/tools/instanceId.js +1 -3
- package/es/components/DataTable/tools/normalize.js +1 -3
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +1 -2
- package/es/components/DatePicker/DatePicker.Skeleton.js +1 -2
- package/es/components/DatePicker/DatePicker.js +80 -32
- package/es/components/DatePicker/plugins/fixEventsPlugin.js +1 -1
- package/es/components/DatePickerInput/DatePickerInput.js +19 -12
- package/es/components/Dropdown/Dropdown.Skeleton.js +2 -2
- package/es/components/Dropdown/Dropdown.js +3 -3
- package/es/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/es/components/ExpandableSearch/ExpandableSearch.js +1 -0
- package/es/components/FileUploader/FileUploader.js +3 -3
- package/es/components/FileUploader/FileUploaderButton.js +2 -2
- package/es/components/FileUploader/FileUploaderDropContainer.js +2 -2
- package/es/components/FileUploader/FileUploaderItem.js +2 -2
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +1 -2
- package/es/components/FluidComboBox/FluidComboBox.js +1 -2
- package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +67 -0
- package/es/components/FluidDatePicker/FluidDatePicker.js +2 -2
- package/es/components/FluidDatePickerInput/FluidDatePickerInput.js +1 -2
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +1 -2
- package/es/components/FluidDropdown/FluidDropdown.js +2 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +1 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +1 -2
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +1 -2
- package/es/components/FluidSelect/FluidSelect.js +2 -2
- package/es/components/FluidTextArea/FluidTextArea.js +1 -0
- package/es/components/FluidTextInput/FluidTextInput.js +1 -0
- package/es/components/Form/Form.js +1 -2
- package/es/components/FormGroup/FormGroup.js +1 -2
- package/es/components/Icon/Icon.Skeleton.js +1 -2
- package/es/components/IconButton/index.js +3 -1
- package/es/components/IdPrefix/index.js +29 -0
- package/es/components/InlineCheckbox/InlineCheckbox.js +1 -2
- package/es/components/Link/Link.js +1 -2
- package/es/components/ListBox/ListBox.js +2 -2
- package/es/components/ListBox/ListBoxMenu.js +1 -2
- package/es/components/ListBox/ListBoxMenuIcon.js +1 -2
- package/es/components/ListBox/ListBoxMenuItem.js +1 -2
- package/es/components/ListBox/ListBoxSelection.js +13 -6
- package/es/components/ListBox/index.js +1 -0
- package/es/components/ListBox/next/ListBoxSelection.js +3 -3
- package/es/components/ListBox/next/ListBoxTrigger.js +1 -2
- package/es/components/ListItem/ListItem.js +1 -2
- package/es/components/Menu/Menu.js +4 -5
- package/es/components/Menu/MenuOption.js +2 -2
- package/es/components/Modal/Modal.js +3 -3
- package/es/components/ModalWrapper/ModalWrapper.js +2 -1
- package/es/components/ModalWrapper/index.js +2 -5
- package/es/components/MultiSelect/FilterableMultiSelect.js +8 -8
- package/es/components/MultiSelect/MultiSelect.js +34 -11
- package/es/components/Notification/Notification.js +5 -4
- package/es/components/NumberInput/NumberInput.js +3 -3
- package/es/components/OrderedList/OrderedList.js +1 -2
- package/es/components/OverflowMenu/OverflowMenu.js +12 -2
- package/es/components/OverflowMenu/index.js +1 -2
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +3 -3
- package/es/components/OverflowMenuItem/index.js +2 -5
- package/es/components/OverflowMenuV2/index.js +2 -2
- package/es/components/Pagination/Pagination.js +10 -8
- package/es/components/Pagination/experimental/PageSelector.js +1 -0
- package/es/components/Pagination/experimental/Pagination.js +2 -0
- package/es/components/Pagination/index.js +1 -0
- package/es/components/PaginationNav/PaginationNav.js +2 -2
- package/es/components/PrimaryButton/PrimaryButton.js +2 -3
- package/es/components/ProgressIndicator/ProgressIndicator.js +5 -5
- package/es/components/RadioButton/RadioButton.js +2 -3
- package/es/components/RadioButtonGroup/RadioButtonGroup.js +15 -7
- package/es/components/RadioTile/RadioTile.js +2 -2
- package/es/components/Search/Search.Skeleton.js +1 -2
- package/es/components/Search/Search.js +5 -6
- package/es/components/Search/index.js +1 -0
- package/es/components/SecondaryButton/SecondaryButton.js +2 -3
- package/es/components/Select/Select.Skeleton.js +1 -2
- package/es/components/Select/Select.js +30 -4
- package/es/components/SelectItem/SelectItem.js +1 -2
- package/es/components/SelectItemGroup/SelectItemGroup.js +1 -2
- package/es/components/SkeletonIcon/SkeletonIcon.js +1 -2
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +3 -3
- package/es/components/SkeletonText/SkeletonText.js +2 -3
- package/es/components/Slider/Slider.Skeleton.js +1 -2
- package/es/components/Slider/Slider.js +21 -13
- package/es/components/Slider/index.js +2 -2
- package/es/components/StructuredList/StructuredList.Skeleton.js +1 -2
- package/es/components/StructuredList/StructuredList.js +89 -54
- package/es/components/Switch/Switch.js +1 -2
- package/es/components/Tab/Tab.js +1 -1
- package/es/components/Tab/index.js +4 -5
- package/es/components/TabContent/TabContent.js +1 -2
- package/es/components/Tabs/Tabs.js +4 -3
- package/es/components/Tabs/index.js +1 -0
- package/es/components/Tag/Tag.js +1 -2
- package/es/components/TextArea/TextArea.Skeleton.js +1 -2
- package/es/components/TextArea/TextArea.js +2 -2
- package/es/components/TextInput/ControlledPasswordInput.js +1 -2
- package/es/components/TextInput/PasswordInput.js +3 -3
- package/es/components/TextInput/TextInput.Skeleton.js +1 -2
- package/es/components/TextInput/TextInput.js +3 -3
- package/es/components/TextInput/index.js +1 -0
- package/es/components/Tile/Tile.js +2 -2
- package/es/components/TileGroup/TileGroup.js +1 -1
- package/es/components/TimePicker/TimePicker.js +148 -144
- package/es/components/TimePickerSelect/TimePickerSelect.js +1 -1
- package/es/components/TimePickerSelect/index.js +3 -4
- package/es/components/TimePickerSelect/next/TimePickerSelect.js +1 -2
- package/es/components/Toggle/Toggle.Skeleton.js +1 -1
- package/es/components/Toggle/Toggle.js +13 -3
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -1
- package/es/components/Toggletip/index.js +2 -2
- package/es/components/Tooltip/{next/DefinitionTooltip.js → DefinitionTooltip.js} +7 -7
- package/es/components/Tooltip/{next/Tooltip.js → Tooltip.js} +8 -8
- package/es/components/TreeView/TreeNode.js +2 -2
- package/es/components/TreeView/TreeView.js +2 -2
- package/es/components/UIShell/Content.js +1 -2
- package/es/components/UIShell/Header.js +2 -3
- package/es/components/UIShell/HeaderContainer.js +1 -2
- package/es/components/UIShell/HeaderGlobalAction.js +3 -3
- package/es/components/UIShell/HeaderMenu.js +4 -5
- package/es/components/UIShell/HeaderMenuButton.js +1 -1
- package/es/components/UIShell/HeaderMenuItem.js +2 -3
- package/es/components/UIShell/HeaderName.js +1 -1
- package/es/components/UIShell/HeaderNavigation.js +1 -1
- package/es/components/UIShell/HeaderPanel.js +2 -3
- package/es/components/UIShell/HeaderSideNavItems.js +1 -2
- package/es/components/UIShell/Link.js +1 -2
- package/es/components/UIShell/SideNav.js +2 -3
- package/es/components/UIShell/SideNavDetails.js +1 -2
- package/es/components/UIShell/SideNavHeader.js +1 -2
- package/es/components/UIShell/SideNavItems.js +1 -2
- package/es/components/UIShell/SideNavLink.js +2 -3
- package/es/components/UIShell/SideNavMenu.js +2 -2
- package/es/components/UIShell/SideNavMenuItem.js +1 -2
- package/es/components/UIShell/SideNavSwitcher.js +1 -2
- package/es/components/UIShell/Switcher.js +2 -3
- package/es/components/UIShell/SwitcherDivider.js +1 -2
- package/es/components/UIShell/SwitcherItem.js +2 -3
- package/es/components/UnorderedList/UnorderedList.js +1 -2
- package/es/index.js +86 -81
- package/es/internal/ClickListener.js +1 -1
- package/es/internal/FloatingMenu.js +1 -1
- package/es/internal/OptimizedResize.js +1 -3
- package/es/internal/Selection.js +1 -1
- package/es/internal/useId.js +5 -2
- package/es/internal/useIdPrefix.js +15 -0
- package/es/internal/useIsomorphicEffect.js +1 -2
- package/es/internal/useSavedCallback.js +1 -1
- package/es/tools/mergeRefs.js +1 -3
- package/es/tools/wrapComponent.js +1 -3
- package/lib/components/Accordion/AccordionItem.js +2 -2
- package/lib/components/Accordion/index.js +4 -0
- package/lib/components/AccordionItem/index.js +2 -0
- package/lib/components/Breadcrumb/Breadcrumb.js +1 -2
- package/lib/components/Breadcrumb/BreadcrumbItem.js +1 -2
- package/lib/components/Button/Button.Skeleton.js +1 -2
- package/lib/components/Button/Button.js +1 -2
- package/lib/components/ButtonSet/ButtonSet.js +1 -2
- package/lib/components/Checkbox/Checkbox.d.ts +4 -0
- package/lib/components/Checkbox/Checkbox.js +29 -6
- package/lib/components/CodeSnippet/CodeSnippet.js +4 -3
- package/lib/components/ComboBox/ComboBox.js +6 -6
- package/lib/components/ComposedModal/ComposedModal.js +1 -2
- package/lib/components/ComposedModal/ModalFooter.js +1 -0
- package/lib/components/ContainedList/ContainedList.js +10 -3
- package/lib/components/ContentSwitcher/ContentSwitcher.js +2 -2
- package/lib/components/CopyButton/CopyButton.js +1 -2
- package/lib/components/DangerButton/DangerButton.js +2 -3
- package/lib/components/DataTable/DataTable.js +5 -5
- package/lib/components/DataTable/Table.js +1 -2
- package/lib/components/DataTable/TableActionList.js +1 -2
- package/lib/components/DataTable/TableBatchAction.js +2 -2
- package/lib/components/DataTable/TableBatchActions.js +2 -2
- package/lib/components/DataTable/TableBody.js +1 -2
- package/lib/components/DataTable/TableCell.js +1 -2
- package/lib/components/DataTable/TableContainer.js +1 -2
- package/lib/components/DataTable/TableExpandHeader.js +1 -2
- package/lib/components/DataTable/TableExpandRow.js +1 -2
- package/lib/components/DataTable/TableExpandedRow.js +1 -2
- package/lib/components/DataTable/TableHead.js +1 -2
- package/lib/components/DataTable/TableHeader.js +1 -2
- package/lib/components/DataTable/TableRow.js +1 -2
- package/lib/components/DataTable/TableSelectAll.js +1 -2
- package/lib/components/DataTable/TableSelectRow.js +1 -2
- package/lib/components/DataTable/TableToolbar.js +1 -2
- package/lib/components/DataTable/TableToolbarAction.js +3 -4
- package/lib/components/DataTable/TableToolbarContent.js +1 -2
- package/lib/components/DataTable/TableToolbarMenu.js +1 -2
- package/lib/components/DataTable/TableToolbarSearch.js +2 -2
- package/lib/components/DataTable/index.js +23 -24
- package/lib/components/DataTable/state/getDerivedStateFromProps.js +1 -3
- package/lib/components/DataTable/tools/denormalize.js +1 -3
- package/lib/components/DataTable/tools/instanceId.js +1 -3
- package/lib/components/DataTable/tools/normalize.js +1 -3
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +1 -2
- package/lib/components/DatePicker/DatePicker.Skeleton.js +1 -2
- package/lib/components/DatePicker/DatePicker.js +80 -32
- package/lib/components/DatePicker/plugins/fixEventsPlugin.js +1 -1
- package/lib/components/DatePickerInput/DatePickerInput.js +18 -11
- package/lib/components/Dropdown/Dropdown.Skeleton.js +2 -2
- package/lib/components/Dropdown/Dropdown.js +3 -3
- package/lib/components/ExpandableSearch/ExpandableSearch.js +1 -0
- package/lib/components/FileUploader/FileUploader.js +2 -2
- package/lib/components/FileUploader/FileUploaderButton.js +2 -2
- package/lib/components/FileUploader/FileUploaderDropContainer.js +2 -2
- package/lib/components/FileUploader/FileUploaderItem.js +2 -2
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +1 -2
- package/lib/components/FluidComboBox/FluidComboBox.js +1 -2
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +77 -0
- package/lib/components/FluidDatePicker/FluidDatePicker.js +2 -2
- package/lib/components/FluidDatePickerInput/FluidDatePickerInput.js +1 -2
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +1 -2
- package/lib/components/FluidDropdown/FluidDropdown.js +2 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +1 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +1 -2
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +1 -2
- package/lib/components/FluidSelect/FluidSelect.js +2 -2
- package/lib/components/FluidTextArea/FluidTextArea.js +1 -0
- package/lib/components/FluidTextInput/FluidTextInput.js +1 -0
- package/lib/components/Form/Form.js +1 -2
- package/lib/components/FormGroup/FormGroup.js +1 -2
- package/lib/components/Icon/Icon.Skeleton.js +1 -2
- package/lib/components/IconButton/index.js +3 -1
- package/lib/components/IdPrefix/index.js +38 -0
- package/lib/components/InlineCheckbox/InlineCheckbox.js +1 -2
- package/lib/components/Link/Link.js +1 -2
- package/lib/components/ListBox/ListBox.js +2 -2
- package/lib/components/ListBox/ListBoxMenu.js +1 -2
- package/lib/components/ListBox/ListBoxMenuIcon.js +1 -2
- package/lib/components/ListBox/ListBoxMenuItem.js +1 -2
- package/lib/components/ListBox/ListBoxSelection.js +13 -6
- package/lib/components/ListBox/index.js +1 -0
- package/lib/components/ListBox/next/ListBoxSelection.js +2 -2
- package/lib/components/ListBox/next/ListBoxTrigger.js +1 -2
- package/lib/components/ListItem/ListItem.js +1 -2
- package/lib/components/Menu/Menu.js +3 -4
- package/lib/components/Menu/MenuOption.js +2 -2
- package/lib/components/Modal/Modal.js +2 -2
- package/lib/components/ModalWrapper/ModalWrapper.js +1 -0
- package/lib/components/ModalWrapper/index.js +3 -3
- package/lib/components/MultiSelect/FilterableMultiSelect.js +7 -7
- package/lib/components/MultiSelect/MultiSelect.js +33 -10
- package/lib/components/Notification/Notification.js +3 -2
- package/lib/components/NumberInput/NumberInput.js +3 -3
- package/lib/components/OrderedList/OrderedList.js +1 -2
- package/lib/components/OverflowMenu/OverflowMenu.js +12 -2
- package/lib/components/OverflowMenu/index.js +1 -22
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +2 -2
- package/lib/components/OverflowMenuItem/index.js +3 -3
- package/lib/components/OverflowMenuV2/index.js +2 -2
- package/lib/components/Pagination/Pagination.js +9 -7
- package/lib/components/Pagination/experimental/PageSelector.js +1 -0
- package/lib/components/Pagination/experimental/Pagination.js +2 -0
- package/lib/components/Pagination/index.js +1 -0
- package/lib/components/PaginationNav/PaginationNav.js +2 -2
- package/lib/components/PrimaryButton/PrimaryButton.js +2 -3
- package/lib/components/ProgressIndicator/ProgressIndicator.js +5 -5
- package/lib/components/RadioButton/RadioButton.js +2 -3
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js +15 -7
- package/lib/components/RadioTile/RadioTile.js +2 -2
- package/lib/components/Search/Search.Skeleton.js +1 -2
- package/lib/components/Search/Search.js +3 -4
- package/lib/components/Search/index.js +2 -0
- package/lib/components/SecondaryButton/SecondaryButton.js +2 -3
- package/lib/components/Select/Select.Skeleton.js +1 -2
- package/lib/components/Select/Select.js +30 -4
- package/lib/components/SelectItem/SelectItem.js +1 -2
- package/lib/components/SelectItemGroup/SelectItemGroup.js +1 -2
- package/lib/components/SkeletonIcon/SkeletonIcon.js +1 -2
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +3 -3
- package/lib/components/SkeletonText/SkeletonText.js +2 -3
- package/lib/components/Slider/Slider.Skeleton.js +1 -2
- package/lib/components/Slider/Slider.js +20 -12
- package/lib/components/Slider/index.js +3 -22
- package/lib/components/StructuredList/StructuredList.Skeleton.js +1 -2
- package/lib/components/StructuredList/StructuredList.js +87 -52
- package/lib/components/Switch/Switch.js +1 -2
- package/lib/components/Tab/index.js +3 -4
- package/lib/components/TabContent/TabContent.js +1 -2
- package/lib/components/Tabs/Tabs.js +4 -3
- package/lib/components/Tabs/index.js +2 -0
- package/lib/components/Tag/Tag.js +1 -2
- package/lib/components/TextArea/TextArea.Skeleton.js +1 -2
- package/lib/components/TextArea/TextArea.js +2 -2
- package/lib/components/TextInput/ControlledPasswordInput.js +1 -2
- package/lib/components/TextInput/PasswordInput.js +3 -3
- package/lib/components/TextInput/TextInput.Skeleton.js +1 -2
- package/lib/components/TextInput/TextInput.js +3 -3
- package/lib/components/TextInput/index.js +2 -0
- package/lib/components/Tile/Tile.js +2 -2
- package/lib/components/TimePicker/TimePicker.js +144 -140
- package/lib/components/TimePickerSelect/index.js +4 -5
- package/lib/components/TimePickerSelect/next/TimePickerSelect.js +1 -2
- package/lib/components/Toggle/Toggle.js +13 -3
- package/lib/components/Toggletip/index.js +2 -2
- package/lib/components/Tooltip/{next/DefinitionTooltip.js → DefinitionTooltip.js} +7 -7
- package/lib/components/Tooltip/{next/Tooltip.js → Tooltip.js} +8 -8
- package/lib/components/TreeView/TreeNode.js +2 -2
- package/lib/components/TreeView/TreeView.js +2 -2
- package/lib/components/UIShell/Content.js +1 -2
- package/lib/components/UIShell/Header.js +1 -2
- package/lib/components/UIShell/HeaderContainer.js +1 -2
- package/lib/components/UIShell/HeaderGlobalAction.js +2 -2
- package/lib/components/UIShell/HeaderMenu.js +3 -4
- package/lib/components/UIShell/HeaderMenuItem.js +1 -2
- package/lib/components/UIShell/HeaderPanel.js +1 -2
- package/lib/components/UIShell/HeaderSideNavItems.js +1 -2
- package/lib/components/UIShell/Link.js +1 -2
- package/lib/components/UIShell/SideNav.js +1 -2
- package/lib/components/UIShell/SideNavDetails.js +1 -2
- package/lib/components/UIShell/SideNavHeader.js +1 -2
- package/lib/components/UIShell/SideNavItems.js +1 -2
- package/lib/components/UIShell/SideNavLink.js +1 -2
- package/lib/components/UIShell/SideNavMenu.js +2 -2
- package/lib/components/UIShell/SideNavMenuItem.js +1 -2
- package/lib/components/UIShell/SideNavSwitcher.js +1 -2
- package/lib/components/UIShell/Switcher.js +1 -2
- package/lib/components/UIShell/SwitcherDivider.js +1 -2
- package/lib/components/UIShell/SwitcherItem.js +1 -2
- package/lib/components/UnorderedList/UnorderedList.js +1 -2
- package/lib/index.js +208 -200
- package/lib/internal/OptimizedResize.js +1 -3
- package/lib/internal/useId.js +5 -2
- package/lib/internal/useIdPrefix.js +24 -0
- package/lib/internal/useIsomorphicEffect.js +1 -2
- package/lib/tools/mergeRefs.js +1 -3
- package/lib/tools/wrapComponent.js +1 -3
- package/package.json +10 -10
- package/es/components/StructuredList/index.js +0 -43
- package/es/components/StructuredList/next/StructuredList.js +0 -342
- package/es/components/TimePicker/index.js +0 -15
- package/es/components/TimePicker/next/TimePicker.js +0 -218
- package/es/internal/ComponentToggle.js +0 -42
- package/lib/components/StructuredList/index.js +0 -52
- package/lib/components/StructuredList/next/StructuredList.js +0 -357
- package/lib/components/TimePicker/index.js +0 -39
- package/lib/components/TimePicker/next/TimePicker.js +0 -228
- package/lib/internal/ComponentToggle.js +0 -50
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck,
|
|
8
|
+
import { defineProperty as _defineProperty, inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import React__default, { PureComponent } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import cx from 'classnames';
|
|
@@ -17,7 +17,7 @@ import { PrefixContext } from '../../internal/usePrefix.js';
|
|
|
17
17
|
import deprecate from '../../prop-types/deprecate.js';
|
|
18
18
|
import { FeatureFlagContext } from '../FeatureFlags/index.js';
|
|
19
19
|
|
|
20
|
-
var _excluded = ["ariaLabelInput", "className", "hideTextInput", "id", "min", "minLabel", "max", "maxLabel", "formatLabel", "labelText", "step", "stepMultiplier", "inputType", "required", "disabled", "name", "light"];
|
|
20
|
+
var _excluded = ["ariaLabelInput", "className", "hideTextInput", "id", "min", "minLabel", "max", "maxLabel", "formatLabel", "labelText", "step", "stepMultiplier", "inputType", "required", "disabled", "name", "light", "readOnly"];
|
|
21
21
|
|
|
22
22
|
var defaultFormatLabel = function defaultFormatLabel(value, label) {
|
|
23
23
|
return typeof label === 'function' ? label(value) : "".concat(value).concat(label);
|
|
@@ -65,7 +65,7 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
65
65
|
|
|
66
66
|
_defineProperty(_assertThisInitialized(_this), "onDragStart", function (evt) {
|
|
67
67
|
// Do nothing if component is disabled
|
|
68
|
-
if (_this.props.disabled) {
|
|
68
|
+
if (_this.props.disabled || _this.props.readOnly) {
|
|
69
69
|
return;
|
|
70
70
|
} // Register drag stop handlers
|
|
71
71
|
|
|
@@ -84,7 +84,7 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
84
84
|
|
|
85
85
|
_defineProperty(_assertThisInitialized(_this), "onDragStop", function () {
|
|
86
86
|
// Do nothing if component is disabled
|
|
87
|
-
if (_this.props.disabled) {
|
|
87
|
+
if (_this.props.disabled || _this.props.readOnly) {
|
|
88
88
|
return;
|
|
89
89
|
} // Remove drag stop handlers
|
|
90
90
|
|
|
@@ -105,7 +105,7 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
105
105
|
|
|
106
106
|
_defineProperty(_assertThisInitialized(_this), "_onDrag", function (evt) {
|
|
107
107
|
// Do nothing if component is disabled or we have no event
|
|
108
|
-
if (_this.props.disabled || !evt) {
|
|
108
|
+
if (_this.props.disabled || _this.props.readOnly || !evt) {
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -140,7 +140,7 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
140
140
|
|
|
141
141
|
_defineProperty(_assertThisInitialized(_this), "onKeyDown", function (evt) {
|
|
142
142
|
// Do nothing if component is disabled or we don't have a valid event
|
|
143
|
-
if (_this.props.disabled || !('which' in evt)) {
|
|
143
|
+
if (_this.props.disabled || _this.props.readOnly || !('which' in evt)) {
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -181,7 +181,7 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
181
181
|
|
|
182
182
|
_defineProperty(_assertThisInitialized(_this), "onChange", function (evt) {
|
|
183
183
|
// Do nothing if component is disabled
|
|
184
|
-
if (_this.props.disabled) {
|
|
184
|
+
if (_this.props.disabled || _this.props.readOnly) {
|
|
185
185
|
return;
|
|
186
186
|
} // Do nothing if we have no valid event, target, or value
|
|
187
187
|
|
|
@@ -398,6 +398,7 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
398
398
|
disabled = _this$props2.disabled,
|
|
399
399
|
name = _this$props2.name,
|
|
400
400
|
light = _this$props2.light,
|
|
401
|
+
readOnly = _this$props2.readOnly,
|
|
401
402
|
other = _objectWithoutProperties(_this$props2, _excluded);
|
|
402
403
|
|
|
403
404
|
delete other.onRelease;
|
|
@@ -414,12 +415,12 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
414
415
|
}
|
|
415
416
|
|
|
416
417
|
return /*#__PURE__*/React__default.createElement(PrefixContext.Consumer, null, function (prefix) {
|
|
417
|
-
var
|
|
418
|
+
var _classNames4;
|
|
418
419
|
|
|
419
420
|
var labelId = "".concat(id, "-label");
|
|
420
421
|
var labelClasses = cx("".concat(prefix, "--label"), _defineProperty({}, "".concat(prefix, "--label--disabled"), disabled));
|
|
421
|
-
var sliderClasses = cx("".concat(prefix, "--slider"), _defineProperty({}, "".concat(prefix, "--slider--disabled"), disabled), [enabled ? null : className]);
|
|
422
|
-
var inputClasses = cx("".concat(prefix, "--text-input"), "".concat(prefix, "--slider-text-input"), (
|
|
422
|
+
var sliderClasses = cx("".concat(prefix, "--slider"), _defineProperty({}, "".concat(prefix, "--slider--disabled"), disabled), _defineProperty({}, "".concat(prefix, "--slider--readonly"), readOnly), [enabled ? null : className]);
|
|
423
|
+
var inputClasses = cx("".concat(prefix, "--text-input"), "".concat(prefix, "--slider-text-input"), (_classNames4 = {}, _defineProperty(_classNames4, "".concat(prefix, "--text-input--light"), light), _defineProperty(_classNames4, "".concat(prefix, "--text-input--invalid"), isValid === false), _classNames4));
|
|
423
424
|
var filledTrackStyle = {
|
|
424
425
|
transform: "translate(0%, -50%) scaleX(".concat(left / 100, ")")
|
|
425
426
|
};
|
|
@@ -454,7 +455,7 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
454
455
|
className: "".concat(prefix, "--slider__thumb"),
|
|
455
456
|
role: "slider",
|
|
456
457
|
id: id,
|
|
457
|
-
tabIndex: 0,
|
|
458
|
+
tabIndex: !readOnly ? 0 : -1,
|
|
458
459
|
"aria-valuemax": max,
|
|
459
460
|
"aria-valuemin": min,
|
|
460
461
|
"aria-valuenow": value,
|
|
@@ -488,7 +489,8 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
488
489
|
onBlur: _this2.onBlur,
|
|
489
490
|
onKeyUp: _this2.onInputKeyUp,
|
|
490
491
|
"data-invalid": isValid ? null : true,
|
|
491
|
-
"aria-invalid": isValid ? null : true
|
|
492
|
+
"aria-invalid": isValid ? null : true,
|
|
493
|
+
readOnly: readOnly
|
|
492
494
|
})));
|
|
493
495
|
});
|
|
494
496
|
}
|
|
@@ -620,6 +622,11 @@ _defineProperty(Slider, "propTypes", {
|
|
|
620
622
|
*/
|
|
621
623
|
onRelease: PropTypes.func,
|
|
622
624
|
|
|
625
|
+
/**
|
|
626
|
+
* Whether the slider should be read-only
|
|
627
|
+
*/
|
|
628
|
+
readOnly: PropTypes.bool,
|
|
629
|
+
|
|
623
630
|
/**
|
|
624
631
|
* `true` to specify if the control is required.
|
|
625
632
|
*/
|
|
@@ -650,7 +657,8 @@ _defineProperty(Slider, "defaultProps", {
|
|
|
650
657
|
minLabel: '',
|
|
651
658
|
maxLabel: '',
|
|
652
659
|
inputType: 'number',
|
|
653
|
-
ariaLabelInput: FeatureFlags.enabled('enable-v11-release') ? undefined : 'Slider number input'
|
|
660
|
+
ariaLabelInput: FeatureFlags.enabled('enable-v11-release') ? undefined : 'Slider number input',
|
|
661
|
+
readOnly: false
|
|
654
662
|
});
|
|
655
663
|
|
|
656
664
|
_defineProperty(Slider, "contextType", FeatureFlagContext);
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import * as FeatureFlags from '@carbon/feature-flags';
|
|
9
8
|
import Slider from './Slider.js';
|
|
10
9
|
import { createClassWrapper } from '../../internal/createClassWrapper.js';
|
|
10
|
+
export { default as SliderSkeleton } from './Slider.Skeleton.js';
|
|
11
11
|
|
|
12
|
-
var index =
|
|
12
|
+
var index = createClassWrapper(Slider);
|
|
13
13
|
|
|
14
14
|
export { index as default };
|
|
@@ -5,21 +5,22 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
|
-
import React__default from 'react';
|
|
8
|
+
import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
|
+
import React__default, { useState } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import cx from 'classnames';
|
|
12
|
-
import
|
|
12
|
+
import { useId } from '../../internal/useId.js';
|
|
13
13
|
import deprecate from '../../prop-types/deprecate.js';
|
|
14
14
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
15
15
|
|
|
16
|
-
var _excluded = ["children", "selection", "className", "ariaLabel", "isCondensed", "isFlush"
|
|
16
|
+
var _excluded = ["children", "selection", "className", "ariaLabel", "isCondensed", "isFlush"],
|
|
17
17
|
_excluded2 = ["children", "className"],
|
|
18
18
|
_excluded3 = ["children", "className"],
|
|
19
|
-
_excluded4 = ["onKeyDown", "
|
|
20
|
-
_excluded5 = ["className", "
|
|
19
|
+
_excluded4 = ["onKeyDown", "children", "className", "head"],
|
|
20
|
+
_excluded5 = ["className", "name", "title", "id"],
|
|
21
21
|
_excluded6 = ["children", "className", "head", "noWrap"];
|
|
22
|
-
var
|
|
22
|
+
var GridSelectedRowStateContext = /*#__PURE__*/React__default.createContext(null);
|
|
23
|
+
var GridSelectedRowDispatchContext = /*#__PURE__*/React__default.createContext(null);
|
|
23
24
|
function StructuredListWrapper(props) {
|
|
24
25
|
var _classNames;
|
|
25
26
|
|
|
@@ -28,18 +29,27 @@ function StructuredListWrapper(props) {
|
|
|
28
29
|
className = props.className,
|
|
29
30
|
ariaLabel = props.ariaLabel,
|
|
30
31
|
isCondensed = props.isCondensed,
|
|
31
|
-
isFlush = props.isFlush
|
|
32
|
-
props
|
|
33
|
-
var other = _objectWithoutProperties(props, _excluded);
|
|
32
|
+
isFlush = props.isFlush,
|
|
33
|
+
other = _objectWithoutProperties(props, _excluded);
|
|
34
34
|
|
|
35
35
|
var prefix = usePrefix();
|
|
36
36
|
var classes = cx("".concat(prefix, "--structured-list"), className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "--structured-list--selection"), selection), _defineProperty(_classNames, "".concat(prefix, "--structured-list--condensed"), isCondensed), _defineProperty(_classNames, "".concat(prefix, "--structured-list--flush"), isFlush), _classNames));
|
|
37
|
-
|
|
37
|
+
|
|
38
|
+
var _React$useState = React__default.useState(null),
|
|
39
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
40
|
+
selectedRow = _React$useState2[0],
|
|
41
|
+
setSelectedRow = _React$useState2[1];
|
|
42
|
+
|
|
43
|
+
return /*#__PURE__*/React__default.createElement(GridSelectedRowStateContext.Provider, {
|
|
44
|
+
value: selectedRow
|
|
45
|
+
}, /*#__PURE__*/React__default.createElement(GridSelectedRowDispatchContext.Provider, {
|
|
46
|
+
value: setSelectedRow
|
|
47
|
+
}, /*#__PURE__*/React__default.createElement("div", _extends({
|
|
38
48
|
role: "table",
|
|
39
49
|
className: classes
|
|
40
50
|
}, other, {
|
|
41
51
|
"aria-label": ariaLabel
|
|
42
|
-
}), children);
|
|
52
|
+
}), children)));
|
|
43
53
|
}
|
|
44
54
|
StructuredListWrapper.propTypes = {
|
|
45
55
|
/**
|
|
@@ -47,11 +57,6 @@ StructuredListWrapper.propTypes = {
|
|
|
47
57
|
*/
|
|
48
58
|
ariaLabel: PropTypes.string,
|
|
49
59
|
|
|
50
|
-
/**
|
|
51
|
-
* Specify whether a border should be added to your StructuredListWrapper
|
|
52
|
-
*/
|
|
53
|
-
border: deprecate(PropTypes.bool, "\nThe prop `border` will be removed in the next major version of Carbon."),
|
|
54
|
-
|
|
55
60
|
/**
|
|
56
61
|
* Provide the contents of your StructuredListWrapper
|
|
57
62
|
*/
|
|
@@ -79,9 +84,9 @@ StructuredListWrapper.propTypes = {
|
|
|
79
84
|
};
|
|
80
85
|
StructuredListWrapper.defaultProps = {
|
|
81
86
|
selection: false,
|
|
82
|
-
ariaLabel: 'Structured list section',
|
|
83
87
|
isCondensed: false,
|
|
84
|
-
isFlush: false
|
|
88
|
+
isFlush: false,
|
|
89
|
+
ariaLabel: 'Structured list section'
|
|
85
90
|
};
|
|
86
91
|
function StructuredListHead(props) {
|
|
87
92
|
var children = props.children,
|
|
@@ -138,29 +143,51 @@ StructuredListBody.propTypes = {
|
|
|
138
143
|
StructuredListBody.defaultProps = {
|
|
139
144
|
onKeyDown: function onKeyDown() {}
|
|
140
145
|
};
|
|
146
|
+
var GridRowContext = /*#__PURE__*/React__default.createContext(null);
|
|
141
147
|
function StructuredListRow(props) {
|
|
148
|
+
var _classNames2;
|
|
149
|
+
|
|
142
150
|
var onKeyDown = props.onKeyDown,
|
|
143
|
-
tabIndex = props.tabIndex,
|
|
144
151
|
children = props.children,
|
|
145
152
|
className = props.className,
|
|
146
153
|
head = props.head,
|
|
147
|
-
label = props.label,
|
|
148
154
|
other = _objectWithoutProperties(props, _excluded4);
|
|
149
155
|
|
|
156
|
+
var _useState = useState(false),
|
|
157
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
158
|
+
hasFocusWithin = _useState2[0],
|
|
159
|
+
setHasFocusWithin = _useState2[1];
|
|
160
|
+
|
|
161
|
+
var id = useId('grid-input');
|
|
162
|
+
var setSelectedRow = React__default.useContext(GridSelectedRowDispatchContext);
|
|
150
163
|
var prefix = usePrefix();
|
|
151
|
-
var
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
React__default.createElement("
|
|
156
|
-
tabIndex: tabIndex,
|
|
157
|
-
className: classes,
|
|
158
|
-
onKeyDown: onKeyDown
|
|
159
|
-
}), children) : /*#__PURE__*/React__default.createElement("div", _extends({
|
|
164
|
+
var value = {
|
|
165
|
+
id: id
|
|
166
|
+
};
|
|
167
|
+
var classes = cx("".concat(prefix, "--structured-list-row"), className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "--structured-list-row--header-row"), head), _defineProperty(_classNames2, "".concat(prefix, "--structured-list-row--focused-within"), hasFocusWithin), _classNames2));
|
|
168
|
+
return head ? /*#__PURE__*/React__default.createElement("div", _extends({
|
|
160
169
|
role: "row"
|
|
161
170
|
}, other, {
|
|
162
171
|
className: classes
|
|
163
|
-
}), children)
|
|
172
|
+
}), children) :
|
|
173
|
+
/*#__PURE__*/
|
|
174
|
+
// eslint-disable-next-line jsx-a11y/interactive-supports-focus
|
|
175
|
+
React__default.createElement("div", _extends({}, other, {
|
|
176
|
+
role: "row",
|
|
177
|
+
className: classes,
|
|
178
|
+
onClick: function onClick() {
|
|
179
|
+
return setSelectedRow(id);
|
|
180
|
+
},
|
|
181
|
+
onFocus: function onFocus() {
|
|
182
|
+
setHasFocusWithin(true);
|
|
183
|
+
},
|
|
184
|
+
onBlur: function onBlur() {
|
|
185
|
+
setHasFocusWithin(false);
|
|
186
|
+
},
|
|
187
|
+
onKeyDown: onKeyDown
|
|
188
|
+
}), /*#__PURE__*/React__default.createElement(GridRowContext.Provider, {
|
|
189
|
+
value: value
|
|
190
|
+
}, children));
|
|
164
191
|
}
|
|
165
192
|
StructuredListRow.propTypes = {
|
|
166
193
|
/**
|
|
@@ -181,42 +208,44 @@ StructuredListRow.propTypes = {
|
|
|
181
208
|
/**
|
|
182
209
|
* Specify whether a `<label>` should be used
|
|
183
210
|
*/
|
|
184
|
-
label: PropTypes.bool,
|
|
211
|
+
label: deprecate(PropTypes.bool, "\nThe `label` prop is no longer needed and will be removed in the next major version of Carbon."),
|
|
185
212
|
|
|
186
213
|
/**
|
|
187
214
|
* Provide a handler that is invoked on the key down event for the control,
|
|
188
|
-
* if `<label>` is in use
|
|
189
|
-
*/
|
|
190
|
-
onKeyDown: PropTypes.func,
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Specify the tab index of the container node, if `<label>` is in use
|
|
194
215
|
*/
|
|
195
|
-
|
|
216
|
+
onKeyDown: PropTypes.func
|
|
196
217
|
};
|
|
197
218
|
StructuredListRow.defaultProps = {
|
|
198
219
|
head: false,
|
|
199
|
-
label: false,
|
|
200
|
-
tabIndex: 0,
|
|
201
220
|
onKeyDown: function onKeyDown() {}
|
|
202
221
|
};
|
|
203
222
|
function StructuredListInput(props) {
|
|
223
|
+
var _row$id;
|
|
224
|
+
|
|
225
|
+
var defaultId = useId('structureListInput');
|
|
226
|
+
|
|
204
227
|
var className = props.className,
|
|
205
|
-
|
|
206
|
-
name =
|
|
228
|
+
_props$name = props.name,
|
|
229
|
+
name = _props$name === void 0 ? "structured-list-input-".concat(defaultId) : _props$name,
|
|
207
230
|
title = props.title,
|
|
208
231
|
id = props.id,
|
|
209
232
|
other = _objectWithoutProperties(props, _excluded5);
|
|
210
233
|
|
|
211
234
|
var prefix = usePrefix();
|
|
212
|
-
var classes = cx("".concat(prefix, "--structured-list-input"), className);
|
|
213
|
-
var
|
|
235
|
+
var classes = cx("".concat(prefix, "--structured-list-input"), "".concat(prefix, "--visually-hidden"), className);
|
|
236
|
+
var row = React__default.useContext(GridRowContext);
|
|
237
|
+
var selectedRow = React__default.useContext(GridSelectedRowStateContext);
|
|
238
|
+
var setSelectedRow = React__default.useContext(GridSelectedRowDispatchContext);
|
|
214
239
|
return /*#__PURE__*/React__default.createElement("input", _extends({}, other, {
|
|
215
240
|
type: "radio",
|
|
216
|
-
tabIndex:
|
|
217
|
-
|
|
241
|
+
tabIndex: 0,
|
|
242
|
+
checked: row && row.id === selectedRow,
|
|
243
|
+
value: (_row$id = row === null || row === void 0 ? void 0 : row.id) !== null && _row$id !== void 0 ? _row$id : '',
|
|
244
|
+
onChange: function onChange(event) {
|
|
245
|
+
setSelectedRow(event.target.value);
|
|
246
|
+
},
|
|
247
|
+
id: id !== null && id !== void 0 ? id : defaultId,
|
|
218
248
|
className: classes,
|
|
219
|
-
value: value,
|
|
220
249
|
name: name,
|
|
221
250
|
title: title
|
|
222
251
|
}));
|
|
@@ -230,7 +259,7 @@ StructuredListInput.propTypes = {
|
|
|
230
259
|
/**
|
|
231
260
|
* Specify whether the underlying input should be checked by default
|
|
232
261
|
*/
|
|
233
|
-
defaultChecked: PropTypes.bool,
|
|
262
|
+
defaultChecked: deprecate(PropTypes.bool, "\nThe prop `defaultChecked` is no longer needed and will be removed in the next major version of Carbon."),
|
|
234
263
|
|
|
235
264
|
/**
|
|
236
265
|
* Specify a custom `id` for the input
|
|
@@ -245,7 +274,7 @@ StructuredListInput.propTypes = {
|
|
|
245
274
|
/**
|
|
246
275
|
* Provide an optional hook that is called each time the input is updated
|
|
247
276
|
*/
|
|
248
|
-
onChange: PropTypes.func,
|
|
277
|
+
onChange: deprecate(PropTypes.func, "\nThe prop `onChange` will be removed in the next major version of Carbon."),
|
|
249
278
|
|
|
250
279
|
/**
|
|
251
280
|
* Provide a `title` for the input
|
|
@@ -255,11 +284,9 @@ StructuredListInput.propTypes = {
|
|
|
255
284
|
/**
|
|
256
285
|
* Specify the value of the input
|
|
257
286
|
*/
|
|
258
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
287
|
+
value: deprecate(PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, "\nThe prop `value` will be removed in the next major version of Carbon.")
|
|
259
288
|
};
|
|
260
289
|
StructuredListInput.defaultProps = {
|
|
261
|
-
onChange: function onChange() {},
|
|
262
|
-
value: 'value',
|
|
263
290
|
title: 'title'
|
|
264
291
|
};
|
|
265
292
|
function StructuredListCell(props) {
|
|
@@ -273,9 +300,17 @@ function StructuredListCell(props) {
|
|
|
273
300
|
|
|
274
301
|
var prefix = usePrefix();
|
|
275
302
|
var classes = cx(className, (_classNames3 = {}, _defineProperty(_classNames3, "".concat(prefix, "--structured-list-th"), head), _defineProperty(_classNames3, "".concat(prefix, "--structured-list-td"), !head), _defineProperty(_classNames3, "".concat(prefix, "--structured-list-content--nowrap"), noWrap), _classNames3));
|
|
303
|
+
|
|
304
|
+
if (head) {
|
|
305
|
+
return /*#__PURE__*/React__default.createElement("span", _extends({
|
|
306
|
+
className: classes,
|
|
307
|
+
role: "columnheader"
|
|
308
|
+
}, other), children);
|
|
309
|
+
}
|
|
310
|
+
|
|
276
311
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
277
312
|
className: classes,
|
|
278
|
-
role:
|
|
313
|
+
role: "cell"
|
|
279
314
|
}, other), children);
|
|
280
315
|
}
|
|
281
316
|
StructuredListCell.propTypes = {
|
package/es/components/Tab/Tab.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { inherits as _inherits, createSuper as _createSuper,
|
|
8
|
+
import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, defineProperty as _defineProperty, classCallCheck as _classCallCheck, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import * as FeatureFlags from '@carbon/feature-flags';
|
|
9
|
-
import { Tab as Tab$
|
|
10
|
-
import Tab$
|
|
9
|
+
import { Tab as Tab$1 } from '../Tabs/Tabs.js';
|
|
10
|
+
import Tab$2 from './Tab.js';
|
|
11
11
|
|
|
12
|
-
var Tab = FeatureFlags.enabled('enable-v11-release') ? Tab$
|
|
13
|
-
var Tab$1 = Tab;
|
|
12
|
+
var Tab = FeatureFlags.enabled('enable-v11-release') ? Tab$1 : Tab$2;
|
|
14
13
|
|
|
15
|
-
export { Tab
|
|
14
|
+
export { Tab as default };
|
|
@@ -11,7 +11,8 @@ import cx from 'classnames';
|
|
|
11
11
|
import debounce from 'lodash.debounce';
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
13
|
import React__default, { useState, useRef, useCallback, useEffect } from 'react';
|
|
14
|
-
import
|
|
14
|
+
import '../Tooltip/DefinitionTooltip.js';
|
|
15
|
+
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
15
16
|
import { useControllableState } from '../../internal/useControllableState.js';
|
|
16
17
|
import { useEffectOnce } from '../../internal/useEffectOnce.js';
|
|
17
18
|
import { useId } from '../../internal/useId.js';
|
|
@@ -19,9 +20,9 @@ import useIsomorphicEffect from '../../internal/useIsomorphicEffect.js';
|
|
|
19
20
|
import { useMergedRefs } from '../../internal/useMergedRefs.js';
|
|
20
21
|
import { getInteractiveContent } from '../../internal/useNoInteractiveChildren.js';
|
|
21
22
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
22
|
-
import { usePressable } from './usePressable.js';
|
|
23
|
-
import { matches, match } from '../../internal/keyboard/match.js';
|
|
24
23
|
import { ArrowRight, ArrowLeft, Home, End } from '../../internal/keyboard/keys.js';
|
|
24
|
+
import { matches, match } from '../../internal/keyboard/match.js';
|
|
25
|
+
import { usePressable } from './usePressable.js';
|
|
25
26
|
|
|
26
27
|
var _ChevronLeft, _ChevronRight;
|
|
27
28
|
|
package/es/components/Tag/Tag.js
CHANGED
|
@@ -13,6 +13,7 @@ import deprecate from '../../prop-types/deprecate.js';
|
|
|
13
13
|
import { WarningFilled } from '@carbon/icons-react';
|
|
14
14
|
import { useFeatureFlag } from '../FeatureFlags/index.js';
|
|
15
15
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
16
|
+
import '../FluidForm/FluidForm.js';
|
|
16
17
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
17
18
|
|
|
18
19
|
var _excluded = ["className", "id", "labelText", "hideLabel", "onChange", "onClick", "invalid", "invalidText", "helperText", "light", "placeholder", "enableCounter", "maxCount"];
|
|
@@ -243,6 +244,5 @@ TextArea.defaultProps = {
|
|
|
243
244
|
enableCounter: false,
|
|
244
245
|
maxCount: undefined
|
|
245
246
|
};
|
|
246
|
-
var TextArea$1 = TextArea;
|
|
247
247
|
|
|
248
|
-
export { TextArea
|
|
248
|
+
export { TextArea as default };
|
|
@@ -12,10 +12,11 @@ import PropTypes from 'prop-types';
|
|
|
12
12
|
import { ViewOff, View } from '@carbon/icons-react';
|
|
13
13
|
import { useNormalizedInputProps } from '../../internal/useNormalizedInputProps.js';
|
|
14
14
|
import { textInputProps } from './util.js';
|
|
15
|
+
import '../FluidForm/FluidForm.js';
|
|
16
|
+
import { FormContext } from '../FluidForm/FormContext.js';
|
|
15
17
|
import * as FeatureFlags from '@carbon/feature-flags';
|
|
16
18
|
import deprecate from '../../prop-types/deprecate.js';
|
|
17
19
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
18
|
-
import { FormContext } from '../FluidForm/FormContext.js';
|
|
19
20
|
|
|
20
21
|
var _excluded = ["className", "disabled", "helperText", "hideLabel", "hidePasswordLabel", "id", "inline", "invalid", "invalidText", "labelText", "light", "onChange", "onClick", "onTogglePasswordVisibility", "placeholder", "size", "showPasswordLabel", "tooltipPosition", "tooltipAlignment", "type", "warn", "warnText"];
|
|
21
22
|
var PasswordInput = /*#__PURE__*/React__default.forwardRef(function PasswordInput(_ref, ref) {
|
|
@@ -282,6 +283,5 @@ PasswordInput.propTypes = {
|
|
|
282
283
|
*/
|
|
283
284
|
warnText: PropTypes.node
|
|
284
285
|
};
|
|
285
|
-
var PasswordInput$1 = PasswordInput;
|
|
286
286
|
|
|
287
|
-
export { PasswordInput
|
|
287
|
+
export { PasswordInput as default };
|
|
@@ -14,10 +14,11 @@ import PasswordInput from './PasswordInput.js';
|
|
|
14
14
|
import ControlledPasswordInput from './ControlledPasswordInput.js';
|
|
15
15
|
import deprecate from '../../prop-types/deprecate.js';
|
|
16
16
|
import { textInputProps } from './util.js';
|
|
17
|
+
import '../FluidForm/FluidForm.js';
|
|
18
|
+
import { FormContext } from '../FluidForm/FormContext.js';
|
|
17
19
|
import { useFeatureFlag } from '../FeatureFlags/index.js';
|
|
18
20
|
import * as FeatureFlags from '@carbon/feature-flags';
|
|
19
21
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
20
|
-
import { FormContext } from '../FluidForm/FormContext.js';
|
|
21
22
|
|
|
22
23
|
var _excluded = ["className", "disabled", "helperText", "hideLabel", "id", "inline", "invalid", "invalidText", "labelText", "light", "onChange", "onClick", "placeholder", "readOnly", "size", "type", "warn", "warnText", "enableCounter", "maxCount"];
|
|
23
24
|
var TextInput = /*#__PURE__*/React__default.forwardRef(function TextInput(_ref, ref) {
|
|
@@ -269,6 +270,5 @@ TextInput.propTypes = {
|
|
|
269
270
|
*/
|
|
270
271
|
warnText: PropTypes.node
|
|
271
272
|
};
|
|
272
|
-
var TextInput$1 = TextInput;
|
|
273
273
|
|
|
274
|
-
export { TextInput
|
|
274
|
+
export { TextInput as default };
|
|
@@ -10,6 +10,7 @@ import ControlledPasswordInput from './ControlledPasswordInput.js';
|
|
|
10
10
|
import PasswordInput from './PasswordInput.js';
|
|
11
11
|
import TextInput from './TextInput.js';
|
|
12
12
|
export { default } from './TextInput.js';
|
|
13
|
+
export { default as TextInputSkeleton } from './TextInput.Skeleton.js';
|
|
13
14
|
|
|
14
15
|
TextInput.ControlledPasswordInput = ControlledPasswordInput;
|
|
15
16
|
TextInput.PasswordInput = PasswordInput;
|
|
@@ -11,13 +11,13 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import { CheckboxCheckedFilled, Checkbox, ChevronDown } from '@carbon/icons-react';
|
|
13
13
|
import Link from '../Link/Link.js';
|
|
14
|
+
import { Enter, Space } from '../../internal/keyboard/keys.js';
|
|
15
|
+
import { matches } from '../../internal/keyboard/match.js';
|
|
14
16
|
import deprecate from '../../prop-types/deprecate.js';
|
|
15
17
|
import { composeEventHandlers } from '../../tools/events.js';
|
|
16
18
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
17
19
|
import useIsomorphicEffect from '../../internal/useIsomorphicEffect.js';
|
|
18
20
|
import { getInteractiveContent } from '../../internal/useNoInteractiveChildren.js';
|
|
19
|
-
import { matches } from '../../internal/keyboard/match.js';
|
|
20
|
-
import { Enter, Space } from '../../internal/keyboard/keys.js';
|
|
21
21
|
|
|
22
22
|
var _CheckboxCheckedFille, _Checkbox, _ChevronDown, _ChevronDown2;
|
|
23
23
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { inherits as _inherits, createSuper as _createSuper,
|
|
8
|
+
import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, defineProperty as _defineProperty, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import RadioTile from '../RadioTile/RadioTile.js';
|