@qualtrics/ui-react 2.79.1 → 2.81.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/CHANGELOG.md +25 -0
- package/dist/__node_modules/@radix-ui/primitive/dist/index.js +5 -6
- package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +8 -7
- package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +71 -63
- package/dist/__node_modules/@radix-ui/react-context/dist/index.js +10 -14
- package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +2 -4
- package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +22 -15
- package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +89 -89
- package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +26 -19
- package/dist/__node_modules/@radix-ui/react-id/dist/index.js +5 -2
- package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +165 -129
- package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +139 -106
- package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +9 -5
- package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +27 -20
- package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +4 -5
- package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +61 -38
- package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +8 -12
- package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +40 -35
- package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +5 -2
- package/dist/__shared/cjs/{index-91d2f6f8.js → index-2272eaad.js} +15 -9
- package/dist/__shared/cjs/{index-d4ec6b6f.js → index-7fd3ddfe.js} +2829 -2634
- package/dist/components/Accordion/Accordion.js +27 -21
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionContext.js +6 -8
- package/dist/components/Accordion/AccordionHeader.js +13 -17
- package/dist/components/Accordion/AccordionPanel.js +7 -11
- package/dist/components/Accordion/AccordionSection.js +14 -11
- package/dist/components/Banner/Banner.js +10 -11
- package/dist/components/Banner/BannerBody.js +1 -3
- package/dist/components/Banner/BannerFooter.js +1 -3
- package/dist/components/Banner/BannerTitle.js +1 -3
- package/dist/components/BreakpointSwitch/Breakpoint.js +2 -5
- package/dist/components/BreakpointSwitch/BreakpointContext.js +3 -4
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +1 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +19 -13
- package/dist/components/ButtonGroup/ButtonGroup.js +7 -7
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Check.js +8 -6
- package/dist/components/Checkbox/Checkbox.js +31 -28
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/CheckboxField.js +14 -13
- package/dist/components/ColorPicker/Alpha.js +8 -12
- package/dist/components/ColorPicker/ColorPicker.js +67 -48
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +23 -24
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +27 -22
- package/dist/components/ColorPicker/ColorPickerWIthNoColor.js +11 -7
- package/dist/components/ColorPicker/Hue.js +9 -13
- package/dist/components/ColorPicker/Palette.js +23 -21
- package/dist/components/ColorPicker/Saturation.js +11 -15
- package/dist/components/ColorPicker/utils/hexToHsv.js +4 -5
- package/dist/components/ColorPicker/utils/hsvToHex.js +3 -5
- package/dist/components/ColorPicker/utils/rgbToHex.js +3 -5
- package/dist/components/Combobox/Combobox.js +166 -133
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxContext.js +3 -4
- package/dist/components/Combobox/ComboboxHeader.js +6 -6
- package/dist/components/Combobox/ComboboxIcon.js +14 -14
- package/dist/components/Combobox/ComboboxInput.js +41 -43
- package/dist/components/Combobox/ComboboxList.js +20 -20
- package/dist/components/Combobox/ComboboxOption.js +9 -10
- package/dist/components/ConfigPane/ConfigPane.js +52 -36
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider.js +4 -4
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/index.js +7 -9
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +18 -21
- package/dist/components/Dropdown/Dropdown.js +68 -43
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +53 -47
- package/dist/components/Dropdown/DropdownContext.js +3 -4
- package/dist/components/Dropdown/DropdownHeader.js +12 -9
- package/dist/components/Dropdown/DropdownHeaderContext.js +3 -4
- package/dist/components/Dropdown/DropdownList.js +32 -32
- package/dist/components/Dropdown/DropdownOption.js +32 -30
- package/dist/components/Dropdown/DropdownSearch.js +12 -14
- package/dist/components/FilePicker/FilePicker.js +30 -25
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/ErrorText.js +5 -5
- package/dist/components/FormField/FormField.js +27 -14
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +6 -13
- package/dist/components/FormField/HelperText.js +5 -5
- package/dist/components/FormField/ReadOnlyText.js +4 -6
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +22 -15
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +6 -5
- package/dist/components/Icon/IconTypes.js +1 -0
- package/dist/components/IconButton/IconButton.js +25 -16
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +25 -14
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +42 -29
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +26 -21
- package/dist/components/InputGroup/InputGroup.js +7 -7
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/InputGroup/InputGroupAddon.js +7 -6
- package/dist/components/InputGroup/InputGroupProvider.js +5 -8
- package/dist/components/Label/Label.js +8 -9
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link.js +9 -7
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner.js +22 -17
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionContainer.js +8 -10
- package/dist/components/LogicEditor/ConditionSet.js +16 -21
- package/dist/components/LogicEditor/Controls.js +17 -20
- package/dist/components/LogicEditor/LogicEditor.js +33 -24
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/LogicEditorContext.js +3 -4
- package/dist/components/LogicEditor/utils.js +5 -9
- package/dist/components/Modal/Modal.js +63 -49
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/Modal/ModalBody.js +5 -5
- package/dist/components/Modal/ModalContext.js +3 -4
- package/dist/components/Modal/ModalFooter.js +5 -5
- package/dist/components/Modal/ModalHeader.js +10 -12
- package/dist/components/NewMenu/BaseMenu.js +83 -54
- package/dist/components/NewMenu/Menu/Menu.js +10 -12
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +6 -7
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +35 -30
- package/dist/components/NewMenu/parts/MenuAnchor.js +15 -16
- package/dist/components/NewMenu/parts/MenuContext.js +3 -4
- package/dist/components/NewMenu/parts/MenuItem.js +23 -17
- package/dist/components/NewMenu/parts/MenuSearchBox.js +4 -6
- package/dist/components/NewMenu/parts/SubmenuAnchor.js +5 -5
- package/dist/components/NumberStepper/NumberStepper.js +42 -37
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperContext.js +3 -4
- package/dist/components/NumberStepper/NumberStepperDecrement.js +13 -15
- package/dist/components/NumberStepper/NumberStepperIncrement.js +13 -15
- package/dist/components/NumberStepper/NumberStepperInput.js +28 -30
- package/dist/components/PageLayout/MainContent.js +4 -4
- package/dist/components/PageLayout/PageContainer.js +4 -4
- package/dist/components/PageLayout/PageHeader.js +4 -4
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +20 -16
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationContext.js +3 -4
- package/dist/components/Pagination/PaginationNextButton.js +15 -17
- package/dist/components/Pagination/PaginationPageInput.js +24 -24
- package/dist/components/Pagination/PaginationPreviousButton.js +14 -16
- package/dist/components/Popover/Popover.js +27 -18
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +23 -16
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +33 -23
- package/dist/components/Radio/Radio.js +26 -28
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/Radio/RadioGroup.js +15 -16
- package/dist/components/Radio/RadioGroupContext.js +3 -4
- package/dist/components/Radio/RadioOption.js +11 -10
- package/dist/components/SearchInput/SearchInput.js +32 -25
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/ExpandCollapseButton.js +4 -6
- package/dist/components/SidebarNav/SidebarNav.js +19 -13
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavContext.js +3 -4
- package/dist/components/SidebarNav/SidebarNavLink.js +7 -10
- package/dist/components/Slider/RangeSlider.js +36 -24
- package/dist/components/Slider/Slider.js +29 -20
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +26 -17
- package/dist/components/Switch/Switch.js +19 -19
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Switch/SwitchField.js +13 -13
- package/dist/components/Table/Table.js +5 -5
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Table/TableBody.js +5 -5
- package/dist/components/Table/TableCell.js +5 -5
- package/dist/components/Table/TableHead.js +5 -5
- package/dist/components/Table/TableHeaderCell.js +5 -5
- package/dist/components/Table/TableRow.js +5 -5
- package/dist/components/Tabs/Tab.js +12 -13
- package/dist/components/Tabs/TabContextProvider.js +10 -13
- package/dist/components/Tabs/TabList.js +17 -13
- package/dist/components/Tabs/TabPanel.js +10 -11
- package/dist/components/Tabs/TabPanels.js +1 -3
- package/dist/components/Tabs/Tabs.js +20 -12
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +51 -29
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/A11yHelpersContext.js +3 -9
- package/dist/components/UIProvider/PortalTargetContext.js +6 -8
- package/dist/components/UIProvider/UIProvider.js +4 -5
- package/dist/components/deprecated_ColorPicker/Alpha.js +7 -7
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +24 -13
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +16 -9
- package/dist/components/deprecated_ColorPicker/Hue.js +6 -6
- package/dist/components/deprecated_ColorPicker/Saturation.js +14 -16
- package/dist/components/deprecated_ColorPicker/Swatch.js +7 -6
- package/dist/components/deprecated_ColorPicker/useMouseDrag.js +5 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper.js +34 -25
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperContext.js +3 -4
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +14 -16
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +14 -16
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +32 -34
- package/dist/components/deprecated_Tabs/Tab.js +8 -9
- package/dist/components/deprecated_Tabs/TabContextProvider.js +3 -4
- package/dist/components/deprecated_Tabs/Tabs.js +13 -9
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +6 -6
- package/dist/components/deprecated_Toolbar/Toolbar.js +16 -11
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarContext.js +3 -4
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +16 -16
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +44 -29
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +19 -20
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +34 -24
- package/dist/design-tokens/less/typography.js +3 -3
- package/dist/hooks/useBreakpoints/useBreakpoints.js +12 -4
- package/dist/hooks/useClickOutside/useClickOutside.js +1 -3
- package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +5 -2
- package/dist/hooks/useEventListener/useEventListener.js +6 -5
- package/dist/hooks/useFocusSequence/useFocusSequence.js +12 -12
- package/dist/hooks/useId/useId.js +4 -1
- package/dist/hooks/useIsFocused/useIsFocused.js +5 -1
- package/dist/hooks/useIsHovered/useIsHovered.js +5 -1
- package/dist/hooks/useIsTruncated/useIsTruncated.js +11 -16
- package/dist/hooks/useMouseDrag/useMouseDrag.js +5 -1
- package/dist/hooks/useOverlay/useOverlay.js +10 -10
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +9 -2
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/FrontlineEmployeeVoiceIcon.js +6 -0
- package/dist/icons/createIconComponent.js +7 -6
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.es.js +1 -0
- package/dist/icons/index.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +7 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +192 -173
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +30 -25
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +12 -15
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +83 -65
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +25 -30
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +10 -9
- package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +12 -10
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +9 -13
- package/dist/next/AdvancedTable/AdvancedTableRow.js +16 -16
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +7 -11
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +32 -36
- package/dist/next/AdvancedTable/useDragAndDropConfig.js +44 -53
- package/dist/next/Chat/Chat.js +5 -6
- package/dist/next/Chat/ChatContext.js +3 -4
- package/dist/next/Chat/ChatInput.js +24 -20
- package/dist/next/Chat/ChatMessage.js +16 -20
- package/dist/next/Chat/ChatMessageList.js +11 -10
- package/dist/next/Chat/ChatMessageText.js +1 -3
- package/dist/next/Chat/Loader.js +6 -9
- package/dist/next/Chat/MessageContext.js +3 -4
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +28 -18
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +8 -8
- package/dist/next/CollectionGrid/CollectionGrid.js +14 -12
- package/dist/next/CollectionGrid/CollectionGridItem.js +4 -5
- package/dist/next/Combobox/Combobox.js +48 -37
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxContext.js +3 -4
- package/dist/next/Combobox/ComboboxFlyout.js +12 -15
- package/dist/next/Combobox/ComboboxGroup.js +10 -14
- package/dist/next/Combobox/ComboboxGroupContext.js +9 -10
- package/dist/next/Combobox/ComboboxInput.js +37 -39
- package/dist/next/Combobox/ComboboxOption.js +15 -19
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +9 -4
- package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +2 -3
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +10 -5
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +12 -5
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +5 -1
- package/dist/next/Drawer/Drawer.js +52 -27
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +21 -19
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/FormFieldWrapper.js +11 -11
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Form/useForm.js +25 -30
- package/dist/next/Form/useFormField.js +3 -4
- package/dist/next/Form/utils/createFormInstance.js +7 -9
- package/dist/next/Form/utils/useFormContext.js +3 -4
- package/dist/next/Indicator/Indicator.js +12 -8
- package/dist/next/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input.js +49 -35
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LayoutGrid/LayoutGrid.js +11 -12
- package/dist/next/LayoutGrid/LayoutGridItem.js +5 -6
- package/dist/next/LoadingSpinner/LoadingSpinner.js +22 -17
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +7 -4
- package/dist/next/Menu/Hooks/useMaskDimensions.js +6 -7
- package/dist/next/Menu/Hooks/usePaneSearch.js +50 -39
- package/dist/next/Menu/Menu.js +28 -15
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +17 -18
- package/dist/next/Menu/MenuContext.js +13 -18
- package/dist/next/Menu/MenuItem.js +28 -29
- package/dist/next/Menu/MenuPane.js +74 -61
- package/dist/next/Menu/MenuSearch.js +10 -10
- package/dist/next/Menu/PaneChildren.js +10 -15
- package/dist/next/Menu/SubMenu.js +91 -76
- package/dist/next/Pagination/Pagination.js +40 -31
- package/dist/next/Pagination/RowDisplayCount.js +6 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +49 -47
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +27 -30
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SelectButton.js +16 -15
- package/dist/next/Select/SelectContext.js +3 -4
- package/dist/next/Select/SelectItem.js +12 -13
- package/dist/next/Select/SelectPane.js +13 -14
- package/dist/next/Select/SelectedItems.js +16 -10
- package/dist/next/Select/SubSelect.js +21 -18
- package/dist/next/SplitButton/SplitButton.js +30 -22
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/SplitButton/SplitButtonOption.js +6 -6
- package/dist/next/Stack/Stack.js +26 -26
- package/dist/next/Stack/StackItem.js +12 -14
- package/dist/next/TimePicker/TimeDropdown.js +18 -18
- package/dist/next/TimePicker/TimeInput.js +38 -42
- package/dist/next/TimePicker/TimePicker.js +46 -25
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +5 -7
- package/dist/next/TimePicker/utils.js +34 -13
- package/dist/next/ToggleButton/ToggleButton.js +14 -13
- package/dist/next/ToggleButton/ToggleButtonGroup.js +8 -10
- package/dist/next/ToggleButton/ToggleButtonGroupContext.js +3 -4
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/Tooltip/Tooltip.js +5 -4
- package/dist/next/Typography/Typography.js +8 -7
- package/dist/next/index.d.ts +12 -2
- package/dist/next/index.js +2395 -2199
- package/dist/utils/Flyout/Flyout.js +14 -13
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Flyout/FlyoutHeader.js +6 -6
- package/dist/utils/Flyout/FlyoutOption.js +11 -8
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +4 -6
- package/dist/utils/Popper/Popper.js +71 -61
- package/dist/utils/Popper/PopperContext.js +5 -6
- package/dist/utils/Portal/Portal.js +7 -5
- package/dist/utils/Text/Text.js +10 -8
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +10 -6
- package/dist/utils/Translation/Translate.js +4 -7
- package/dist/utils/Translation/TranslationProvider.js +10 -14
- package/dist/utils/Translation/containsComponentOrElement.js +3 -1
- package/dist/utils/Translation/useTranslation.js +2 -3
- package/dist/utils/VirtuosoTestWrapper/VirtuosoTestWrapper.js +1 -3
- package/dist/utils/filterChildren/filterChildren.js +4 -4
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +4 -4
|
@@ -2,20 +2,17 @@ import React__default from 'react';
|
|
|
2
2
|
import '../../utils/index.js';
|
|
3
3
|
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
Provider
|
|
7
|
-
useContext
|
|
8
|
-
} = createContextUtilities();
|
|
5
|
+
const _createContextUtiliti = createContextUtilities(),
|
|
6
|
+
TabCtxProvider = _createContextUtiliti.Provider,
|
|
7
|
+
useTabContext = _createContextUtiliti.useContext;
|
|
9
8
|
const TabContextProvider = _ref => {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
setIsTabListFocused
|
|
18
|
-
} = _ref;
|
|
9
|
+
let activeTab = _ref.activeTab,
|
|
10
|
+
setActiveTab = _ref.setActiveTab,
|
|
11
|
+
rootId = _ref.rootId,
|
|
12
|
+
rootTestId = _ref.rootTestId,
|
|
13
|
+
children = _ref.children,
|
|
14
|
+
isTabListFocused = _ref.isTabListFocused,
|
|
15
|
+
setIsTabListFocused = _ref.setIsTabListFocused;
|
|
19
16
|
return /*#__PURE__*/React__default.createElement(TabCtxProvider, {
|
|
20
17
|
value: {
|
|
21
18
|
activeTab,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default, { useRef, useState, useMemo } from 'react';
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import Tab from './Tab.js';
|
|
@@ -9,19 +11,18 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
|
9
11
|
import wrapAround from '../../utils/wrapAround/wrapAround.js';
|
|
10
12
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
11
13
|
|
|
14
|
+
const _excluded = ["children", "className", "isFullWidth"];
|
|
12
15
|
const TabsList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
isFullWidth = false,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
setIsTabListFocused
|
|
24
|
-
} = useTabContext();
|
|
16
|
+
let children = _ref.children,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
_ref$isFullWidth = _ref.isFullWidth,
|
|
19
|
+
isFullWidth = _ref$isFullWidth === void 0 ? false : _ref$isFullWidth,
|
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
const _useTabContext = useTabContext(),
|
|
22
|
+
rootId = _useTabContext.rootId,
|
|
23
|
+
rootTestId = _useTabContext.rootTestId,
|
|
24
|
+
isTabListFocused = _useTabContext.isTabListFocused,
|
|
25
|
+
setIsTabListFocused = _useTabContext.setIsTabListFocused;
|
|
25
26
|
const tabListId = getSubDataTestId(rootId, "tablist");
|
|
26
27
|
const tabListTestId = getSubDataTestId(rootTestId, "tablist");
|
|
27
28
|
const tabListRef = useRef(null);
|
|
@@ -29,7 +30,10 @@ const TabsList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
29
30
|
// lookup when we handle an event from a child tab
|
|
30
31
|
const tabButtonsElementToIndexMapRef = useRef(new Map());
|
|
31
32
|
const tabButtonsArrayRef = useRef([]);
|
|
32
|
-
const
|
|
33
|
+
const _useState = useState(),
|
|
34
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
35
|
+
focusedTabElement = _useState2[0],
|
|
36
|
+
setFocusedTabElement = _useState2[1];
|
|
33
37
|
const focusedIndex = useMemo(() => {
|
|
34
38
|
if (focusedTabElement) {
|
|
35
39
|
return tabButtonsElementToIndexMapRef.current.get(focusedTabElement);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import React__default from 'react';
|
|
4
5
|
import { useTabContext } from './TabContextProvider.js';
|
|
@@ -6,18 +7,16 @@ import styles from './Tabs2.js';
|
|
|
6
7
|
import '../../utils/index.js';
|
|
7
8
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
8
9
|
|
|
10
|
+
const _excluded = ["value", "children", "className"];
|
|
9
11
|
const TabPanel = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
rootId,
|
|
19
|
-
rootTestId
|
|
20
|
-
} = useTabContext();
|
|
12
|
+
let value = _ref.value,
|
|
13
|
+
children = _ref.children,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
const _useTabContext = useTabContext(),
|
|
17
|
+
activeTab = _useTabContext.activeTab,
|
|
18
|
+
rootId = _useTabContext.rootId,
|
|
19
|
+
rootTestId = _useTabContext.rootTestId;
|
|
21
20
|
const tabPanelId = getSubDataTestId(rootId, "tabpanel-".concat(value));
|
|
22
21
|
const tabPanelTestId = getSubDataTestId(rootTestId, "tabpanel-".concat(value));
|
|
23
22
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
@@ -2,9 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import TabPanel from './TabPanel.js';
|
|
3
3
|
|
|
4
4
|
const TabPanels = _ref => {
|
|
5
|
-
let
|
|
6
|
-
children
|
|
7
|
-
} = _ref;
|
|
5
|
+
let children = _ref.children;
|
|
8
6
|
return /*#__PURE__*/React.createElement(React.Fragment, null, React.Children.map(children, (c, index) => {
|
|
9
7
|
const child = c;
|
|
10
8
|
if (child && child.type === TabPanel) {
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default, { useState } from 'react';
|
|
3
5
|
import { TabContextProvider } from './TabContextProvider.js';
|
|
4
6
|
import '../../hooks/index.js';
|
|
5
7
|
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
6
8
|
import useId from '../../hooks/useId/useId.js';
|
|
7
9
|
|
|
10
|
+
const _excluded = ["activeTab", "initialActiveTab", "data-testid", "children", "className", "onChange", "id"];
|
|
8
11
|
const Tabs = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
initialActiveTab = 0,
|
|
12
|
-
'data-testid'
|
|
13
|
-
children,
|
|
14
|
-
className,
|
|
15
|
-
onChange,
|
|
16
|
-
id,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
let externalActiveTab = _ref.activeTab,
|
|
13
|
+
_ref$initialActiveTab = _ref.initialActiveTab,
|
|
14
|
+
initialActiveTab = _ref$initialActiveTab === void 0 ? 0 : _ref$initialActiveTab,
|
|
15
|
+
rootTestId = _ref['data-testid'],
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
onChange = _ref.onChange,
|
|
19
|
+
id = _ref.id,
|
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
const _useControllableState = useControllableState(initialActiveTab, onChange, externalActiveTab),
|
|
22
|
+
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
23
|
+
internalActiveTab = _useControllableState2[0],
|
|
24
|
+
setInternalActiveTab = _useControllableState2[1];
|
|
25
|
+
const _useState = useState(false),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
isTabListFocused = _useState2[0],
|
|
28
|
+
setIsTabListFocused = _useState2[1];
|
|
21
29
|
const rootId = useId(id);
|
|
22
30
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
23
31
|
id: rootId,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"tablist":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._X9OWu{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._X9OWu._7ibtu ._Ro1XV{flex:1 1 0px;max-width:none}._Ro1XV{background:inherit;font-family:inherit;font-size:14px;line-height:14px;margin:0;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-transform:none;text-align:center;color:#6a6d70;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:none;border-bottom:2px solid transparent;border-radius:1px;display:block;outline:none;cursor:pointer}._Ro1XV:hover{color:#32363a}._Ro1XV._Dyoca{border-bottom-color:#0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._wrPSe{padding-top:32px}._wrPSe._doxsh{display:none}._Ro1XV.focus-visible,._Ro1XV:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"tablist":"_X9OWu","grow":"_7ibtu","tab":"_Ro1XV","selected":"_Dyoca","tabpanel":"_wrPSe","inactive":"_doxsh"};
|
|
5
|
+
var stylesheet="._X9OWu{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._X9OWu._7ibtu ._Ro1XV{flex:1 1 0px;max-width:none}._Ro1XV{background:inherit;font-family:inherit;font-size:14px;line-height:14px;margin:0;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-transform:none;text-align:center;color:#6a6d70;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:none;border-bottom:2px solid transparent;border-radius:1px;display:block;outline:none;cursor:pointer}._Ro1XV:hover{color:#32363a}._Ro1XV._Dyoca{border-bottom-color:#0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._wrPSe{padding-top:32px}._wrPSe._doxsh{display:none}._Ro1XV.focus-visible,._Ro1XV:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import styles from './Tooltip2.js';
|
|
@@ -15,44 +17,64 @@ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
|
15
17
|
import { offset, flip } from '@floating-ui/react-dom';
|
|
16
18
|
import { TOOLTIP_POPPER_OFFSET } from '../../utils/constants.js';
|
|
17
19
|
|
|
20
|
+
const _excluded = ["content", "unstable_contentKey", "placement", "children", "disabled", "delayMs", "zIndex", "className", "portalTarget", "isArrowRemoved", "style", "id", "lightTheme", "show", "onShowChange", "showOnDescendantFocus", "aria-hidden", "persistentInDom", "forceHideOutsideOfAnchor"];
|
|
18
21
|
const FOCUSABLES_SELECTOR = 'button:not([tabindex="-1"]):not([aria-hidden="true"]), [href]:not([tabindex="-1"]):not([aria-hidden="true"]), input:not([tabindex="-1"]):not([aria-hidden="true"]), select:not([tabindex="-1"]):not([aria-hidden="true"]), textarea:not([tabindex="-1"]):not([aria-hidden="true"]), [tabindex]:not([tabindex="-1"]):not([aria-hidden="true"])';
|
|
19
22
|
const Tooltip = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
20
23
|
var _ref2;
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
placement = 'top',
|
|
25
|
-
children,
|
|
26
|
-
disabled =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
24
|
+
let content = _ref.content,
|
|
25
|
+
contentKey = _ref.unstable_contentKey,
|
|
26
|
+
_ref$placement = _ref.placement,
|
|
27
|
+
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
|
28
|
+
children = _ref.children,
|
|
29
|
+
_ref$disabled = _ref.disabled,
|
|
30
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
31
|
+
_ref$delayMs = _ref.delayMs,
|
|
32
|
+
delayMs = _ref$delayMs === void 0 ? 0 : _ref$delayMs,
|
|
33
|
+
_ref$zIndex = _ref.zIndex,
|
|
34
|
+
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
35
|
+
className = _ref.className,
|
|
36
|
+
portalTarget = _ref.portalTarget,
|
|
37
|
+
_ref$isArrowRemoved = _ref.isArrowRemoved,
|
|
38
|
+
isArrowRemoved = _ref$isArrowRemoved === void 0 ? false : _ref$isArrowRemoved,
|
|
39
|
+
_ref$style = _ref.style,
|
|
40
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
41
|
+
id = _ref.id,
|
|
42
|
+
_ref$lightTheme = _ref.lightTheme,
|
|
43
|
+
lightTheme = _ref$lightTheme === void 0 ? false : _ref$lightTheme,
|
|
44
|
+
externalShow = _ref.show,
|
|
45
|
+
onShowChange = _ref.onShowChange,
|
|
46
|
+
_ref$showOnDescendant = _ref.showOnDescendantFocus,
|
|
47
|
+
showOnDescendantFocus = _ref$showOnDescendant === void 0 ? false : _ref$showOnDescendant,
|
|
48
|
+
ariaHidden = _ref['aria-hidden'],
|
|
49
|
+
_ref$persistentInDom = _ref.persistentInDom,
|
|
50
|
+
persistentInDom = _ref$persistentInDom === void 0 ? true : _ref$persistentInDom,
|
|
51
|
+
_ref$forceHideOutside = _ref.forceHideOutsideOfAnchor,
|
|
52
|
+
forceHideOutsideOfAnchor = _ref$forceHideOutside === void 0 ? false : _ref$forceHideOutside,
|
|
53
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
43
54
|
const componentIsControlled = externalShow !== undefined;
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
const _useControllableState = useControllableState(externalShow, onShowChange, externalShow),
|
|
56
|
+
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
57
|
+
show = _useControllableState2[0],
|
|
58
|
+
setShow = _useControllableState2[1];
|
|
59
|
+
const _useState = useState(false),
|
|
60
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
61
|
+
isOpened = _useState2[0],
|
|
62
|
+
setIsOpened = _useState2[1];
|
|
63
|
+
const _useState3 = useState(false),
|
|
64
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
65
|
+
isVisible = _useState4[0],
|
|
66
|
+
setIsVisible = _useState4[1];
|
|
67
|
+
const _useState5 = useState(false),
|
|
68
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
69
|
+
isMouseHoveringComponent = _useState6[0],
|
|
70
|
+
setIsMouseHoveringComponent = _useState6[1];
|
|
48
71
|
const anchorRef = useRef(null);
|
|
49
72
|
const flyoutRef = useRef(null);
|
|
50
73
|
const flyoutOffsetBackplateRef = useRef(null);
|
|
51
74
|
const timer = useRef(undefined);
|
|
52
75
|
const flyoutContainerId = useId(id);
|
|
53
|
-
const
|
|
54
|
-
isFocusVisible
|
|
55
|
-
} = useIsFocusVisible();
|
|
76
|
+
const _useIsFocusVisible = useIsFocusVisible(),
|
|
77
|
+
isFocusVisible = _useIsFocusVisible.isFocusVisible;
|
|
56
78
|
const getIsAnchorKeyboardFocused = () => {
|
|
57
79
|
var _anchorRef$current;
|
|
58
80
|
return (showOnDescendantFocus ? (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.contains(document.activeElement) : document.activeElement === anchorRef.current) && isFocusVisible;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"tooltip":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._xqADB{position:absolute;z-index:2000;max-width:240px;padding:6px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._xqADB._Lu0gR{color:#32363a;background-color:#fff}._-vrh8{opacity:1;pointer-events:all}._YHKWp,._YHKWp>div{position:absolute;width:8px;height:8px;background:inherit}._YHKWp{visibility:hidden;z-index:2000}._YHKWp>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._YHKWp{bottom:-4px}[data-popper-placement^=top]>._YHKWp>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._YHKWp{left:-5px}[data-popper-placement^=right]>._YHKWp>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._YHKWp{top:-5px}[data-popper-placement^=bottom]>._YHKWp>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._YHKWp{right:-4px}[data-popper-placement^=left]>._YHKWp>div{border-bottom-color:transparent;border-left-color:transparent}._pPLrp{position:absolute}[data-popper-placement^=top]>._pPLrp{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._pPLrp{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._pPLrp{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._pPLrp{top:0;right:-13px;width:17px;height:100%}@media not print{._BciiP{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;left:-10000px!important;top:-10000px!important}}@media print{._BciiP{display:none}}";
|
|
4
|
+
var styles = {"tooltip":"_xqADB","lightTheme":"_Lu0gR","visible":"_-vrh8","arrow":"_YHKWp","offsetBackplate":"_pPLrp","srOnly":"_BciiP"};
|
|
5
|
+
var stylesheet="._xqADB{position:absolute;z-index:2000;max-width:240px;padding:6px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._xqADB._Lu0gR{color:#32363a;background-color:#fff}._-vrh8{opacity:1;pointer-events:all}._YHKWp,._YHKWp>div{position:absolute;width:8px;height:8px;background:inherit}._YHKWp{visibility:hidden;z-index:2000}._YHKWp>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._YHKWp{bottom:-4px}[data-popper-placement^=top]>._YHKWp>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._YHKWp{left:-5px}[data-popper-placement^=right]>._YHKWp>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._YHKWp{top:-5px}[data-popper-placement^=bottom]>._YHKWp>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._YHKWp{right:-4px}[data-popper-placement^=left]>._YHKWp>div{border-bottom-color:transparent;border-left-color:transparent}._pPLrp{position:absolute}[data-popper-placement^=top]>._pPLrp{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._pPLrp{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._pPLrp{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._pPLrp{top:0;right:-13px;width:17px;height:100%}@media not print{._BciiP{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;left:-10000px!important;top:-10000px!important}}@media print{._BciiP{display:none}}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -4,9 +4,7 @@ import { useFocusVisible } from '@react-aria/interactions';
|
|
|
4
4
|
|
|
5
5
|
const A11yHelpersContext = /*#__PURE__*/createContext(undefined);
|
|
6
6
|
const A11yHelpersProvider = _ref => {
|
|
7
|
-
let
|
|
8
|
-
children
|
|
9
|
-
} = _ref;
|
|
7
|
+
let children = _ref.children;
|
|
10
8
|
const focusVisible = useFocusVisible();
|
|
11
9
|
const textInputFocusVisible = useFocusVisible({
|
|
12
10
|
isTextInput: true
|
|
@@ -20,9 +18,7 @@ const A11yHelpersProvider = _ref => {
|
|
|
20
18
|
}, children);
|
|
21
19
|
};
|
|
22
20
|
const A11yHelpersProviderDefault = _ref2 => {
|
|
23
|
-
let
|
|
24
|
-
children
|
|
25
|
-
} = _ref2;
|
|
21
|
+
let children = _ref2.children;
|
|
26
22
|
const focusVisible = useFocusVisible();
|
|
27
23
|
const focusVisibleProvider = useMemo(() => ({
|
|
28
24
|
focusVisible
|
|
@@ -32,9 +28,7 @@ const A11yHelpersProviderDefault = _ref2 => {
|
|
|
32
28
|
}, children);
|
|
33
29
|
};
|
|
34
30
|
const A11yHelpersProviderTextInput = _ref3 => {
|
|
35
|
-
let
|
|
36
|
-
children
|
|
37
|
-
} = _ref3;
|
|
31
|
+
let children = _ref3.children;
|
|
38
32
|
const textInputFocusVisible = useFocusVisible({
|
|
39
33
|
isTextInput: true
|
|
40
34
|
});
|
|
@@ -2,15 +2,13 @@ import React__default from 'react';
|
|
|
2
2
|
import '../../utils/createContextUtilities/index.js';
|
|
3
3
|
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
Provider,
|
|
7
|
-
useContext
|
|
8
|
-
} = createContextUtilities(typeof window !== 'undefined' ? document.body : null);
|
|
5
|
+
const _createContextUtiliti = createContextUtilities(typeof window !== 'undefined' ? document.body : null),
|
|
6
|
+
Provider = _createContextUtiliti.Provider,
|
|
7
|
+
usePortalTarget = _createContextUtiliti.useContext;
|
|
9
8
|
const PortalTargetProvider = _ref => {
|
|
10
|
-
let
|
|
11
|
-
target = null,
|
|
12
|
-
children
|
|
13
|
-
} = _ref;
|
|
9
|
+
let _ref$target = _ref.target,
|
|
10
|
+
target = _ref$target === void 0 ? null : _ref$target,
|
|
11
|
+
children = _ref.children;
|
|
14
12
|
return /*#__PURE__*/React__default.createElement(Provider, {
|
|
15
13
|
value: target
|
|
16
14
|
}, children);
|
|
@@ -5,11 +5,10 @@ import { conditionalA11yHelpersWrapper } from './A11yHelpersContext.js';
|
|
|
5
5
|
import { TranslationProvider } from '../../utils/Translation/TranslationProvider.js';
|
|
6
6
|
|
|
7
7
|
const UIProviderInner = _ref => {
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
config = {}
|
|
12
|
-
} = _ref;
|
|
8
|
+
let children = _ref.children,
|
|
9
|
+
portalTarget = _ref.portalTarget,
|
|
10
|
+
_ref$config = _ref.config,
|
|
11
|
+
config = _ref$config === void 0 ? {} : _ref$config;
|
|
13
12
|
return /*#__PURE__*/React__default.createElement(TranslationProvider, {
|
|
14
13
|
localizedText: config === null || config === void 0 ? void 0 : config.localizedText
|
|
15
14
|
}, /*#__PURE__*/React__default.createElement(PortalTargetProvider, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import React__default from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './ColorPicker2.js';
|
|
@@ -7,6 +8,7 @@ import useMouseDrag from './useMouseDrag.js';
|
|
|
7
8
|
import isMouseEvent from './isMouseEvent.js';
|
|
8
9
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
9
10
|
|
|
11
|
+
const _excluded = ["alpha", "hsl", "onChange", "className"];
|
|
10
12
|
const getMouseChange = (e, hsl, initialA, container) => {
|
|
11
13
|
const containerHeight = container.clientHeight;
|
|
12
14
|
const y = isMouseEvent(e) ? e.pageY : e.touches[0].pageY;
|
|
@@ -41,13 +43,11 @@ const getKeyChange = (e, hsl) => {
|
|
|
41
43
|
};
|
|
42
44
|
};
|
|
43
45
|
const Alpha = function Alpha(_ref) {
|
|
44
|
-
let
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
...rest
|
|
50
|
-
} = _ref;
|
|
46
|
+
let alpha = _ref.alpha,
|
|
47
|
+
hsl = _ref.hsl,
|
|
48
|
+
onChange = _ref.onChange,
|
|
49
|
+
className = _ref.className,
|
|
50
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
51
51
|
const containerRef = React__default.useRef(null);
|
|
52
52
|
const handleChange = useEventCallback(e => {
|
|
53
53
|
const change = getMouseChange(e, hsl, alpha, containerRef.current);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default, { useEffect, useRef, useMemo } from 'react';
|
|
3
5
|
import styles from './ColorPicker2.js';
|
|
4
6
|
import '../Button/index.js';
|
|
@@ -21,6 +23,7 @@ import { Button } from '../Button/Button2.js';
|
|
|
21
23
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
22
24
|
import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
|
|
23
25
|
|
|
26
|
+
const _excluded = ["data-testid", "defaultColor", "color", "className", "enableAlpha", "onChange", "swatches", "zIndex"];
|
|
24
27
|
/**
|
|
25
28
|
* @deprecated Instead, use:
|
|
26
29
|
* ```
|
|
@@ -28,19 +31,27 @@ import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
|
|
|
28
31
|
* ```
|
|
29
32
|
*/
|
|
30
33
|
const ColorPicker = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
31
|
-
let
|
|
32
|
-
|
|
33
|
-
defaultColor = '#000000',
|
|
34
|
-
color
|
|
35
|
-
className,
|
|
36
|
-
enableAlpha =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
let dataTestId = _ref['data-testid'],
|
|
35
|
+
_ref$defaultColor = _ref.defaultColor,
|
|
36
|
+
defaultColor = _ref$defaultColor === void 0 ? '#000000' : _ref$defaultColor,
|
|
37
|
+
externalColor = _ref.color,
|
|
38
|
+
className = _ref.className,
|
|
39
|
+
_ref$enableAlpha = _ref.enableAlpha,
|
|
40
|
+
enableAlpha = _ref$enableAlpha === void 0 ? false : _ref$enableAlpha,
|
|
41
|
+
onChange = _ref.onChange,
|
|
42
|
+
_ref$swatches = _ref.swatches,
|
|
43
|
+
swatches = _ref$swatches === void 0 ? DEFAULT_SWATCH_COLORS : _ref$swatches,
|
|
44
|
+
_ref$zIndex = _ref.zIndex,
|
|
45
|
+
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
46
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
47
|
+
const _React$useState = React__default.useState(false),
|
|
48
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
49
|
+
show = _React$useState2[0],
|
|
50
|
+
setShow = _React$useState2[1];
|
|
51
|
+
const _React$useState3 = React__default.useState(new Color(externalColor !== null && externalColor !== void 0 ? externalColor : defaultColor)),
|
|
52
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
53
|
+
color = _React$useState4[0],
|
|
54
|
+
setColor = _React$useState4[1];
|
|
44
55
|
useEffect(() => {
|
|
45
56
|
if (externalColor) setColor(new Color(externalColor));
|
|
46
57
|
}, [externalColor]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"colorPickerBtnColor":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._avg7D{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._PkbGo{margin-right:-12px;margin-left:4px}._rxjFp{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._9Bok2{margin:8px 8px 0;display:flex}._cK2XF,._x-M15{margin-left:4px}._g2Nwc{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._t6S-y{margin:0 4px 4px 0}._t6S-y:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._O6BAQ{margin:4px 8px 8px}._Ie1dm{position:relative;width:96px;height:96px;outline:0}._Ie1dm.focus-visible ._LPqvL,._Ie1dm:focus-visible ._LPqvL{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._8ov8s{background:linear-gradient(90deg,#fff,transparent)}._8ov8s,._H7J01{position:absolute;top:0;right:0;bottom:0;left:0}._H7J01{background:linear-gradient(0deg,#000,transparent)}._LPqvL{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._cjDRn{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._cjDRn.focus-visible ._sGrYq,._cjDRn:focus-visible ._sGrYq{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._sGrYq{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._fZ6pt{position:relative;width:16px;height:96px}._1FD5K{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._1FD5K,._qES4x{position:absolute}._qES4x{top:0;right:0;bottom:0;left:0;outline:0}._qES4x.focus-visible ._1FD5K,._qES4x:focus-visible ._1FD5K{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._H-xUt{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._GvugE{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._GvugE.focus-visible,._GvugE:focus-visible{outline:none}._GvugE.focus-visible,._GvugE:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._tHnPE{display:flex}._tHnPE ._f-TZV{position:relative;flex-shrink:0;width:26px;height:26px}._tHnPE ._r-Mw8{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._tHnPE ._PpWre{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
4
|
+
var styles = {"colorPickerBtnColor":"_avg7D","colorPickerBtnIcon":"_PkbGo","colorPicker":"_rxjFp","colorPickerSliderContainer":"_9Bok2","colorPickerHue":"_x-M15","colorPickerAlpha":"_cK2XF","colorPickerSwatches":"_g2Nwc","colorPickerSwatch":"_t6S-y","colorPickerHex":"_O6BAQ","saturation":"_Ie1dm","saturationCircle":"_LPqvL","saturationWhite":"_8ov8s","saturationBlack":"_H7J01","hue":"_cjDRn","hueSlider":"_sGrYq","alpha":"_fZ6pt","alphaSlider":"_1FD5K","alphaGradient":"_qES4x","alphaCheckerboard":"_H-xUt","swatch":"_GvugE","hex":"_tHnPE","hexSwatch":"_f-TZV","hexSwatchColor":"_r-Mw8","hexInput":"_PpWre"};
|
|
5
|
+
var stylesheet="._avg7D{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._PkbGo{margin-right:-12px;margin-left:4px}._rxjFp{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._9Bok2{margin:8px 8px 0;display:flex}._cK2XF,._x-M15{margin-left:4px}._g2Nwc{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._t6S-y{margin:0 4px 4px 0}._t6S-y:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._O6BAQ{margin:4px 8px 8px}._Ie1dm{position:relative;width:96px;height:96px;outline:0}._Ie1dm.focus-visible ._LPqvL,._Ie1dm:focus-visible ._LPqvL{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._8ov8s{background:linear-gradient(90deg,#fff,transparent)}._8ov8s,._H7J01{position:absolute;top:0;right:0;bottom:0;left:0}._H7J01{background:linear-gradient(0deg,#000,transparent)}._LPqvL{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._cjDRn{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._cjDRn.focus-visible ._sGrYq,._cjDRn:focus-visible ._sGrYq{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._sGrYq{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._fZ6pt{position:relative;width:16px;height:96px}._1FD5K{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._1FD5K,._qES4x{position:absolute}._qES4x{top:0;right:0;bottom:0;left:0;outline:0}._qES4x.focus-visible ._1FD5K,._qES4x:focus-visible ._1FD5K{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._H-xUt{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._GvugE{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._GvugE.focus-visible,._GvugE:focus-visible{outline:none}._GvugE.focus-visible,._GvugE:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._tHnPE{display:flex}._tHnPE ._f-TZV{position:relative;flex-shrink:0;width:26px;height:26px}._tHnPE ._r-Mw8{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._tHnPE ._PpWre{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default from 'react';
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import styles from './ColorPicker2.js';
|
|
5
7
|
import '../Input/index.js';
|
|
6
8
|
import Input from '../Input/Input.js';
|
|
7
9
|
|
|
10
|
+
const _excluded = ["hex", "swatchColor", "onChange", "className"];
|
|
8
11
|
const HEX_REGEX = /#?[a-fA-F0-9]{3,}/;
|
|
9
12
|
const HexInput = function HexInput(_ref) {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
let hex = _ref.hex,
|
|
14
|
+
swatchColor = _ref.swatchColor,
|
|
15
|
+
onChange = _ref.onChange,
|
|
16
|
+
className = _ref.className,
|
|
17
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
const _React$useState = React__default.useState(hex),
|
|
19
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
20
|
+
value = _React$useState2[0],
|
|
21
|
+
setValue = _React$useState2[1];
|
|
22
|
+
const _React$useState3 = React__default.useState(hex),
|
|
23
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
24
|
+
blurValue = _React$useState4[0],
|
|
25
|
+
setBlurValue = _React$useState4[1];
|
|
19
26
|
const inputRef = React__default.useRef(null);
|
|
20
27
|
React__default.useEffect(() => {
|
|
21
28
|
if (hex !== value) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import React__default from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './ColorPicker2.js';
|
|
@@ -7,6 +8,7 @@ import useMouseDrag from './useMouseDrag.js';
|
|
|
7
8
|
import isMouseEvent from './isMouseEvent.js';
|
|
8
9
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
9
10
|
|
|
11
|
+
const _excluded = ["hsb", "onChange", "className"];
|
|
10
12
|
const getMouseChange = (e, hsb, container) => {
|
|
11
13
|
const containerHeight = container.clientHeight;
|
|
12
14
|
const y = isMouseEvent(e) ? e.pageY : e.touches[0].pageY;
|
|
@@ -42,12 +44,10 @@ const getKeyChange = (e, hsb) => {
|
|
|
42
44
|
};
|
|
43
45
|
};
|
|
44
46
|
const Hue = function Hue(_ref) {
|
|
45
|
-
let
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
...rest
|
|
50
|
-
} = _ref;
|
|
47
|
+
let hsb = _ref.hsb,
|
|
48
|
+
onChange = _ref.onChange,
|
|
49
|
+
className = _ref.className,
|
|
50
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
51
51
|
const containerRef = React__default.useRef(null);
|
|
52
52
|
const handleChange = useEventCallback(e => {
|
|
53
53
|
const change = getMouseChange(e, hsb, containerRef.current);
|