@qualtrics/ui-react 2.79.1 → 2.80.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 +13 -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-d4ec6b6f.js → index-807921ca.js} +2829 -2634
- package/dist/__shared/cjs/{index-91d2f6f8.js → index-8c77a9ef.js} +15 -9
- 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 +38 -23
- 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 +28 -21
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/SplitButton/SplitButtonOption.js +3 -5
- 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.js +2377 -2193
- 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
|
@@ -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 = {"font-size-12":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._4C0H8{font-size:.75rem!important}._wCIWs{font-size:.875rem!important}._oYAaU{font-size:1rem!important}._wUY30{font-size:1.125rem!important}._owMyH{font-size:1.25rem!important}._jdom6{font-size:1.5rem!important}._jGb6m{font-size:1.75rem!important}._Mf7b7{font-size:2.25rem!important}._0NyXo{font-size:2.5rem!important}._q9vi-{font-size:3rem!important}._ggFDu{font-size:4rem!important}._As3Nc{font-size:4.5rem!important}._Y-8iS{line-height:1rem!important}._t2TK0{line-height:1.25rem!important}._8EzWA{line-height:1.5rem!important}._rHziz{line-height:1.75rem!important}._lR98M{line-height:2rem!important}._e5QUp{line-height:2.188rem!important}._YAWvk{line-height:2.5rem!important}._0vo-r{line-height:2.75rem!important}._QSyCa{line-height:3.125rem!important}._H7hfz{line-height:4.25rem!important}._OYHfA{line-height:4.5rem!important}._sVCH6{font-weight:100!important}._Kngsn{font-weight:200!important}._KFcTo{font-weight:300!important}._wbysQ{font-weight:400!important}._ul-do{font-weight:500!important}._iydak{font-weight:600!important}._yHM8q{font-weight:700!important}._4MaGn{font-weight:800!important}._H7LpZ{font-weight:900!important}._IL602{font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._2BcEo{font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._Gl3lk{font-family:\"72Condensed\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._LiPI-{font-family:\"72Mono\",monospace!important}._i-sYo{font-weight:700!important}._i-sYo,._jcNwk{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._jcNwk{font-weight:400!important}._xrVar{font-weight:300!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._xrVar,._ZKoHp{font-size:4.5rem!important;line-height:4.5rem!important;color:#2a2a2a!important}._ZKoHp{font-weight:700!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._-WoVY{font-weight:400!important}._-WoVY,._v-Dxs{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._v-Dxs{font-weight:700!important}._srBuu{font-weight:400!important}._LWS4Z,._srBuu{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._LWS4Z{font-weight:700!important}._zII-Y{font-weight:400!important}._Mk1y0,._zII-Y{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._Mk1y0{font-weight:700!important}._oGjyn{font-weight:400!important}._oGjyn,._x-6gY{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._x-6gY{font-weight:700!important}._SaDyd{font-weight:400!important}._pjG82,._SaDyd{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._pjG82{font-weight:700!important}._Xhm6H{font-weight:400!important}._TocT1,._Xhm6H{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._TocT1{font-weight:700!important}._t6ejy{font-weight:400!important}._q-A9h,._t6ejy{font-size:2.25rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._q-A9h{font-weight:700!important}._ZShBW{font-weight:400!important}._skO27,._ZShBW{font-size:1.75rem!important;line-height:2.188rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._skO27{font-weight:700!important}._f9HnF{font-weight:400!important}._f9HnF,._HcVTv{font-size:1.5rem!important;line-height:2rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._HcVTv{font-weight:700!important}._P-Klz{font-weight:400!important}._Homr4,._P-Klz{font-size:1.25rem!important;line-height:1.75rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._Homr4{font-weight:700!important}._RpDox{font-weight:400!important}._2OcHD,._RpDox{font-size:1.125rem!important;line-height:1.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._2OcHD{font-weight:700!important}._viP-F{font-weight:400!important}._8T-ZD,._viP-F{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._8T-ZD{font-weight:700!important}._fMuTa{font-weight:400!important}._1cL6v,._fMuTa{font-size:.75rem!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#595959!important}._1cL6v,._6ADWw{font-weight:700!important}._6ADWw{font-size:.875rem!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._6ADWw,._r3T8V{line-height:1.25rem!important;color:#2a2a2a!important}._r3T8V{font-size:1rem!important;font-weight:400!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._jzJTT{color:#ba4f0d!important}._jzJTT,._UHiaA{font-size:.75rem!important;font-weight:400!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._UHiaA{color:#da1c3d!important}";
|
|
4
|
+
var styles = {"font-size-12":"_4C0H8","font-size-14":"_wCIWs","font-size-16":"_oYAaU","font-size-18":"_wUY30","font-size-20":"_owMyH","font-size-24":"_jdom6","font-size-28":"_jGb6m","font-size-36":"_Mf7b7","font-size-40":"_0NyXo","font-size-48":"_q9vi-","font-size-64":"_ggFDu","font-size-72":"_As3Nc","line-height-16":"_Y-8iS","line-height-20":"_t2TK0","line-height-24":"_8EzWA","line-height-28":"_rHziz","line-height-32":"_lR98M","line-height-35":"_e5QUp","line-height-40":"_YAWvk","line-height-44":"_0vo-r","line-height-50":"_QSyCa","line-height-68":"_H7hfz","line-height-72":"_OYHfA","font-weight-thin":"_sVCH6","font-weight-extralight":"_Kngsn","font-weight-light":"_KFcTo","font-weight-regular":"_wbysQ","font-weight-medium":"_ul-do","font-weight-demibold":"_iydak","font-weight-bold":"_yHM8q","font-weight-extrabold":"_4MaGn","font-weight-black":"_H7LpZ","font-family-default":"_IL602","font-family-default-duplex":"_2BcEo","font-family-default-condensed":"_Gl3lk","font-family-code":"_LiPI-","body-text-bold":"_i-sYo","body-text-regular":"_jcNwk","data-viz-large-number-light":"_xrVar","data-viz-large-number-semibold":"_ZKoHp","display-body-primary-regular":"_-WoVY","display-body-primary-bold":"_v-Dxs","display-body-secondary-regular":"_srBuu","display-body-secondary-bold":"_LWS4Z","display-body-tertiary-regular":"_zII-Y","display-body-tertiary-bold":"_Mk1y0","display-heading-primary-regular":"_oGjyn","display-heading-primary-bold":"_x-6gY","display-heading-secondary-regular":"_SaDyd","display-heading-secondary-bold":"_pjG82","display-heading-tertiary-regular":"_Xhm6H","display-heading-tertiary-bold":"_TocT1","heading-1-regular":"_t6ejy","heading-1-bold":"_q-A9h","heading-2-regular":"_ZShBW","heading-2-bold":"_skO27","heading-3-regular":"_f9HnF","heading-3-bold":"_HcVTv","heading-4-regular":"_P-Klz","heading-4-bold":"_Homr4","heading-5-regular":"_RpDox","heading-5-bold":"_2OcHD","heading-6-regular":"_viP-F","heading-6-bold":"_8T-ZD","helper-text-regular":"_fMuTa","helper-text-bold":"_1cL6v","input-label-bold":"_6ADWw","input-label-regular":"_r3T8V","warning-text-regular":"_jzJTT","error-text-regular":"_UHiaA"};
|
|
5
|
+
var stylesheet="._4C0H8{font-size:.75rem!important}._wCIWs{font-size:.875rem!important}._oYAaU{font-size:1rem!important}._wUY30{font-size:1.125rem!important}._owMyH{font-size:1.25rem!important}._jdom6{font-size:1.5rem!important}._jGb6m{font-size:1.75rem!important}._Mf7b7{font-size:2.25rem!important}._0NyXo{font-size:2.5rem!important}._q9vi-{font-size:3rem!important}._ggFDu{font-size:4rem!important}._As3Nc{font-size:4.5rem!important}._Y-8iS{line-height:1rem!important}._t2TK0{line-height:1.25rem!important}._8EzWA{line-height:1.5rem!important}._rHziz{line-height:1.75rem!important}._lR98M{line-height:2rem!important}._e5QUp{line-height:2.188rem!important}._YAWvk{line-height:2.5rem!important}._0vo-r{line-height:2.75rem!important}._QSyCa{line-height:3.125rem!important}._H7hfz{line-height:4.25rem!important}._OYHfA{line-height:4.5rem!important}._sVCH6{font-weight:100!important}._Kngsn{font-weight:200!important}._KFcTo{font-weight:300!important}._wbysQ{font-weight:400!important}._ul-do{font-weight:500!important}._iydak{font-weight:600!important}._yHM8q{font-weight:700!important}._4MaGn{font-weight:800!important}._H7LpZ{font-weight:900!important}._IL602{font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._2BcEo{font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._Gl3lk{font-family:\"72Condensed\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._LiPI-{font-family:\"72Mono\",monospace!important}._i-sYo{font-weight:700!important}._i-sYo,._jcNwk{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._jcNwk{font-weight:400!important}._xrVar{font-weight:300!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._xrVar,._ZKoHp{font-size:4.5rem!important;line-height:4.5rem!important;color:#2a2a2a!important}._ZKoHp{font-weight:700!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._-WoVY{font-weight:400!important}._-WoVY,._v-Dxs{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._v-Dxs{font-weight:700!important}._srBuu{font-weight:400!important}._LWS4Z,._srBuu{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._LWS4Z{font-weight:700!important}._zII-Y{font-weight:400!important}._Mk1y0,._zII-Y{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._Mk1y0{font-weight:700!important}._oGjyn{font-weight:400!important}._oGjyn,._x-6gY{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._x-6gY{font-weight:700!important}._SaDyd{font-weight:400!important}._pjG82,._SaDyd{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._pjG82{font-weight:700!important}._Xhm6H{font-weight:400!important}._TocT1,._Xhm6H{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._TocT1{font-weight:700!important}._t6ejy{font-weight:400!important}._q-A9h,._t6ejy{font-size:2.25rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._q-A9h{font-weight:700!important}._ZShBW{font-weight:400!important}._skO27,._ZShBW{font-size:1.75rem!important;line-height:2.188rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._skO27{font-weight:700!important}._f9HnF{font-weight:400!important}._f9HnF,._HcVTv{font-size:1.5rem!important;line-height:2rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._HcVTv{font-weight:700!important}._P-Klz{font-weight:400!important}._Homr4,._P-Klz{font-size:1.25rem!important;line-height:1.75rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._Homr4{font-weight:700!important}._RpDox{font-weight:400!important}._2OcHD,._RpDox{font-size:1.125rem!important;line-height:1.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._2OcHD{font-weight:700!important}._viP-F{font-weight:400!important}._8T-ZD,._viP-F{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._8T-ZD{font-weight:700!important}._fMuTa{font-weight:400!important}._1cL6v,._fMuTa{font-size:.75rem!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#595959!important}._1cL6v,._6ADWw{font-weight:700!important}._6ADWw{font-size:.875rem!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._6ADWw,._r3T8V{line-height:1.25rem!important;color:#2a2a2a!important}._r3T8V{font-size:1rem!important;font-weight:400!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._jzJTT{color:#ba4f0d!important}._jzJTT,._UHiaA{font-size:.75rem!important;font-weight:400!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._UHiaA{color:#da1c3d!important}";
|
|
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,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import { useState, useEffect } from 'react';
|
|
2
3
|
import '../../utils/mediaQueryManager/index.js';
|
|
3
4
|
import { DEFAULT_BREAKPOINTS } from '../../utils/constants.js';
|
|
@@ -11,7 +12,9 @@ function getMinWidthQuery(length, unit) {
|
|
|
11
12
|
function getInitialValues(breakpointsConfig, unit) {
|
|
12
13
|
const initialValues = {};
|
|
13
14
|
Object.entries(breakpointsConfig).forEach(_ref => {
|
|
14
|
-
let
|
|
15
|
+
let _ref2 = _slicedToArray(_ref, 2),
|
|
16
|
+
breakpointName = _ref2[0],
|
|
17
|
+
breakpointValue = _ref2[1];
|
|
15
18
|
const query = getMinWidthQuery(breakpointValue, unit);
|
|
16
19
|
initialValues[breakpointName] = getMediaQueryValue(query);
|
|
17
20
|
});
|
|
@@ -20,13 +23,18 @@ function getInitialValues(breakpointsConfig, unit) {
|
|
|
20
23
|
function useBreakpoints() {
|
|
21
24
|
let breakpoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_BREAKPOINTS;
|
|
22
25
|
let unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'em';
|
|
23
|
-
const
|
|
26
|
+
const _useState = useState(() => getInitialValues(breakpoints, unit)),
|
|
27
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
+
matches = _useState2[0],
|
|
29
|
+
setMatches = _useState2[1];
|
|
24
30
|
const breakpointsRef = useLatest(breakpoints);
|
|
25
31
|
const unitRef = useLatest(unit);
|
|
26
32
|
useEffect(() => {
|
|
27
33
|
const unsubscribeFns = [];
|
|
28
|
-
Object.entries(breakpointsRef.current).forEach(
|
|
29
|
-
let
|
|
34
|
+
Object.entries(breakpointsRef.current).forEach(_ref3 => {
|
|
35
|
+
let _ref4 = _slicedToArray(_ref3, 2),
|
|
36
|
+
breakpointName = _ref4[0],
|
|
37
|
+
breakpointValue = _ref4[1];
|
|
30
38
|
const query = getMinWidthQuery(breakpointValue, unitRef.current);
|
|
31
39
|
const unsubscribe = subscribe(query, event => {
|
|
32
40
|
setMatches(prevValue => ({
|
|
@@ -14,9 +14,7 @@ function useClickOutside(refs, onClickOutside) {
|
|
|
14
14
|
const handler = event => {
|
|
15
15
|
const isInside = allRefs.some(ref => {
|
|
16
16
|
var _el$contains;
|
|
17
|
-
const
|
|
18
|
-
current: el
|
|
19
|
-
} = ref;
|
|
17
|
+
const el = ref.current;
|
|
20
18
|
return el === null || el === void 0 || (_el$contains = el.contains) === null || _el$contains === void 0 ? void 0 : _el$contains.call(el, event.target);
|
|
21
19
|
});
|
|
22
20
|
if (!isInside) {
|
|
@@ -11,9 +11,9 @@ import useEventListener from '../useEventListener/useEventListener.js';
|
|
|
11
11
|
* @returns A function that, when called, ignores the current outside click if one exists.
|
|
12
12
|
*/
|
|
13
13
|
function useClickOutsidePortals(onClickOutside) {
|
|
14
|
-
let {
|
|
15
|
-
disabled =
|
|
16
|
-
|
|
14
|
+
let _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
15
|
+
_ref$disabled = _ref.disabled,
|
|
16
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
17
17
|
const wasClickedInside = useRef(false);
|
|
18
18
|
const handleClick = e => {
|
|
19
19
|
if (!wasClickedInside.current) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import { useState, useEffect, useCallback, useRef } from 'react';
|
|
2
3
|
import '../useLatest/index.js';
|
|
3
4
|
import useLatest from '../useLatest/useLatest.js';
|
|
4
5
|
|
|
5
|
-
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
6
6
|
const BECAME_CONTROLLED_WARNING = 'WARNING: A component is changing from being uncontrolled to controlled. Components should not switch from being uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled component for the lifetime of the component. More info: https://fb.me/react-controlled-components';
|
|
7
7
|
const BECAME_UNCONTROLLED_WARNING = 'WARNING: A component is changing from being controlled to uncontrolled. Components should not switch from being controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled component for the lifetime of the component. More info: https://fb.me/react-controlled-components';
|
|
8
8
|
|
|
@@ -14,7 +14,10 @@ const BECAME_UNCONTROLLED_WARNING = 'WARNING: A component is changing from being
|
|
|
14
14
|
* @returns An array where the first item is the current state and the second item is the state updater.
|
|
15
15
|
*/
|
|
16
16
|
function useControllableState(initialState, onChange, externalState) {
|
|
17
|
-
const
|
|
17
|
+
const _useState = useState(initialState),
|
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
+
state = _useState2[0],
|
|
20
|
+
replaceState = _useState2[1];
|
|
18
21
|
const onChangeRef = useLatest(onChange);
|
|
19
22
|
const externalStateRef = useLatest(externalState);
|
|
20
23
|
const internalStateRef = useLatest(state);
|
|
@@ -19,11 +19,12 @@ function isEventTarget(target) {
|
|
|
19
19
|
function useEventListener(targetOrRef, event, handler) {
|
|
20
20
|
let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
21
21
|
const listener = useEventCallback(handler);
|
|
22
|
-
const
|
|
23
|
-
isCaptureEvent = false,
|
|
24
|
-
isDisabled =
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const _options$isCaptureEve = options.isCaptureEvent,
|
|
23
|
+
isCaptureEvent = _options$isCaptureEve === void 0 ? false : _options$isCaptureEve,
|
|
24
|
+
_options$isDisabled = options.isDisabled,
|
|
25
|
+
isDisabled = _options$isDisabled === void 0 ? false : _options$isDisabled,
|
|
26
|
+
_options$additionalDe = options.additionalDependencies,
|
|
27
|
+
additionalDependencies = _options$additionalDe === void 0 ? [] : _options$additionalDe;
|
|
27
28
|
useEffect(() => {
|
|
28
29
|
if (!targetOrRef) {
|
|
29
30
|
return undefined;
|
|
@@ -36,9 +36,9 @@ function useFocusSequence() {
|
|
|
36
36
|
* @param config.wrap - Allows focus to loop from last element to first
|
|
37
37
|
*/
|
|
38
38
|
const focusNext = useCallback(function () {
|
|
39
|
-
let {
|
|
40
|
-
wrap =
|
|
41
|
-
|
|
39
|
+
let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
40
|
+
_ref$wrap = _ref.wrap,
|
|
41
|
+
wrap = _ref$wrap === void 0 ? true : _ref$wrap;
|
|
42
42
|
const sorted = sortNodes(nodesMap.current.values());
|
|
43
43
|
const focusedNodeIndex = sorted.findIndex(n => n === document.activeElement);
|
|
44
44
|
const nextIndex = getNextIndex(focusedNodeIndex, sorted.length, {
|
|
@@ -53,9 +53,9 @@ function useFocusSequence() {
|
|
|
53
53
|
* @param config.wrap - Allows focus to loop from first element to last
|
|
54
54
|
*/
|
|
55
55
|
const focusPrevious = useCallback(function () {
|
|
56
|
-
let {
|
|
57
|
-
wrap =
|
|
58
|
-
|
|
56
|
+
let _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
57
|
+
_ref2$wrap = _ref2.wrap,
|
|
58
|
+
wrap = _ref2$wrap === void 0 ? true : _ref2$wrap;
|
|
59
59
|
const sorted = sortNodes(nodesMap.current.values());
|
|
60
60
|
const focusedNodeIndex = sorted.findIndex(n => n === document.activeElement);
|
|
61
61
|
const previousIndex = getPreviousIndex(focusedNodeIndex, sorted.length, {
|
|
@@ -96,9 +96,9 @@ function sortNodes(nodes) {
|
|
|
96
96
|
return copy;
|
|
97
97
|
}
|
|
98
98
|
function getNextIndex(index, numItems) {
|
|
99
|
-
let {
|
|
100
|
-
wrap =
|
|
101
|
-
|
|
99
|
+
let _ref3 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
100
|
+
_ref3$wrap = _ref3.wrap,
|
|
101
|
+
wrap = _ref3$wrap === void 0 ? true : _ref3$wrap;
|
|
102
102
|
if (index === -1) {
|
|
103
103
|
return 0;
|
|
104
104
|
}
|
|
@@ -108,9 +108,9 @@ function getNextIndex(index, numItems) {
|
|
|
108
108
|
return index < numItems - 1 ? index + 1 : numItems - 1;
|
|
109
109
|
}
|
|
110
110
|
function getPreviousIndex(index, numItems) {
|
|
111
|
-
let {
|
|
112
|
-
wrap =
|
|
113
|
-
|
|
111
|
+
let _ref4 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
112
|
+
_ref4$wrap = _ref4.wrap,
|
|
113
|
+
wrap = _ref4$wrap === void 0 ? true : _ref4$wrap;
|
|
114
114
|
if (index === -1) {
|
|
115
115
|
return numItems - 1;
|
|
116
116
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import { useState } from 'react';
|
|
2
3
|
import { v4 } from 'uuid';
|
|
3
4
|
|
|
@@ -7,7 +8,9 @@ import { v4 } from 'uuid';
|
|
|
7
8
|
* @returns If an external ID is passed in, the external ID. Otherwise, a randomly generated ID.
|
|
8
9
|
*/
|
|
9
10
|
function useId(defaultExternalId) {
|
|
10
|
-
const
|
|
11
|
+
const _useState = useState(() => defaultExternalId !== null && defaultExternalId !== void 0 ? defaultExternalId : v4()),
|
|
12
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
13
|
+
currentId = _useState2[0];
|
|
11
14
|
return currentId;
|
|
12
15
|
}
|
|
13
16
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import { useState, useRef } from 'react';
|
|
2
3
|
import '../useEventListener/index.js';
|
|
3
4
|
import useEventListener from '../useEventListener/useEventListener.js';
|
|
@@ -7,7 +8,10 @@ import useEventListener from '../useEventListener/useEventListener.js';
|
|
|
7
8
|
* @returns `ref` to pass to element and `isFocused` state
|
|
8
9
|
*/
|
|
9
10
|
function useIsFocused() {
|
|
10
|
-
const
|
|
11
|
+
const _useState = useState(false),
|
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
+
isFocused = _useState2[0],
|
|
14
|
+
setIsFocused = _useState2[1];
|
|
11
15
|
const ref = useRef(null);
|
|
12
16
|
useEventListener(ref, 'focus', () => setIsFocused(true));
|
|
13
17
|
useEventListener(ref, 'blur', () => setIsFocused(false));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import { useState, useRef } from 'react';
|
|
2
3
|
import '../useEventListener/index.js';
|
|
3
4
|
import useEventListener from '../useEventListener/useEventListener.js';
|
|
@@ -7,7 +8,10 @@ import useEventListener from '../useEventListener/useEventListener.js';
|
|
|
7
8
|
* @returns `ref` to pass to element and `isFocused` state
|
|
8
9
|
*/
|
|
9
10
|
function useIsHovered() {
|
|
10
|
-
const
|
|
11
|
+
const _useState = useState(false),
|
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
+
isHovered = _useState2[0],
|
|
14
|
+
setIsHovered = _useState2[1];
|
|
11
15
|
const ref = useRef(null);
|
|
12
16
|
useEventListener(ref, 'mouseenter', () => setIsHovered(true));
|
|
13
17
|
useEventListener(ref, 'mouseleave', () => setIsHovered(false));
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import useResizeObserver from '@react-hook/resize-observer';
|
|
2
3
|
import { useState, useLayoutEffect } from 'react';
|
|
3
4
|
|
|
4
|
-
/*
|
|
5
|
-
|
|
6
|
-
Due to rounding, `scrollWidth` and `clientWidth` do not always accurately represent whether overflow has occurred.
|
|
7
|
-
Reproduction: https://codesandbox.io/s/determined-cartwright-9j21gm?file=/src/App.js
|
|
8
|
-
Issue: https://github.com/w3c/csswg-drafts/issues/4123
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
5
|
const useIsTruncated = target => {
|
|
12
|
-
const
|
|
6
|
+
const _useState = useState(false),
|
|
7
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
8
|
+
isTruncated = _useState2[0],
|
|
9
|
+
setIsTruncated = _useState2[1];
|
|
13
10
|
useLayoutEffect(() => {
|
|
14
11
|
if (!target) {
|
|
15
12
|
return;
|
|
16
13
|
}
|
|
17
|
-
const
|
|
18
|
-
clientWidth,
|
|
19
|
-
scrollWidth
|
|
20
|
-
} = target.current;
|
|
14
|
+
const _ref = target.current,
|
|
15
|
+
clientWidth = _ref.clientWidth,
|
|
16
|
+
scrollWidth = _ref.scrollWidth;
|
|
21
17
|
|
|
22
18
|
// set initial value
|
|
23
19
|
setIsTruncated(clientWidth < scrollWidth);
|
|
@@ -26,10 +22,9 @@ const useIsTruncated = target => {
|
|
|
26
22
|
if (!target) {
|
|
27
23
|
return;
|
|
28
24
|
}
|
|
29
|
-
const
|
|
30
|
-
clientWidth,
|
|
31
|
-
scrollWidth
|
|
32
|
-
} = entry.target;
|
|
25
|
+
const _entry$target = entry.target,
|
|
26
|
+
clientWidth = _entry$target.clientWidth,
|
|
27
|
+
scrollWidth = _entry$target.scrollWidth;
|
|
33
28
|
|
|
34
29
|
// update value on resize
|
|
35
30
|
setIsTruncated(clientWidth < scrollWidth);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import { useState } from 'react';
|
|
2
3
|
import '../useEventListener/index.js';
|
|
3
4
|
import useEventListener from '../useEventListener/useEventListener.js';
|
|
@@ -8,7 +9,10 @@ import useEventListener from '../useEventListener/useEventListener.js';
|
|
|
8
9
|
* @returns A function that needs to be called on mousedown.
|
|
9
10
|
*/
|
|
10
11
|
function useMouseDrag(handleChange) {
|
|
11
|
-
const
|
|
12
|
+
const _useState = useState(false),
|
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
+
isMouseDown = _useState2[0],
|
|
15
|
+
setIsMouseDown = _useState2[1];
|
|
12
16
|
function handleMouseDown(e) {
|
|
13
17
|
handleChange(e);
|
|
14
18
|
setIsMouseDown(true);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
1
2
|
import { useEffect } from 'react';
|
|
2
3
|
import '../useId/index.js';
|
|
3
4
|
import styles from './useOverlay2.js';
|
|
@@ -14,15 +15,14 @@ import useId from '../useId/useId.js';
|
|
|
14
15
|
* @param {number} opacity - The opacity of the overlay.
|
|
15
16
|
*/
|
|
16
17
|
const useOverlay = _ref => {
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
ignoreIds = [],
|
|
22
|
-
zIndex,
|
|
23
|
-
dataTestId,
|
|
24
|
-
opacity
|
|
25
|
-
} = _ref;
|
|
18
|
+
let containerRef = _ref.containerRef,
|
|
19
|
+
isVisible = _ref.isVisible,
|
|
20
|
+
onClick = _ref.onClick,
|
|
21
|
+
_ref$ignoreIds = _ref.ignoreIds,
|
|
22
|
+
ignoreIds = _ref$ignoreIds === void 0 ? [] : _ref$ignoreIds,
|
|
23
|
+
zIndex = _ref.zIndex,
|
|
24
|
+
dataTestId = _ref.dataTestId,
|
|
25
|
+
opacity = _ref.opacity;
|
|
26
26
|
const overlayId = useId();
|
|
27
27
|
useEffect(() => {
|
|
28
28
|
var _containerRef$current;
|
|
@@ -50,7 +50,7 @@ const useOverlay = _ref => {
|
|
|
50
50
|
if (isVisible) {
|
|
51
51
|
containerNode.classList.add(styles.blockedScroll);
|
|
52
52
|
Array.from(containerNode.children).forEach(child => {
|
|
53
|
-
if (!ignoreIds.
|
|
53
|
+
if (!_includesInstanceProperty(ignoreIds).call(ignoreIds, child.id) && child.id !== overlayId) child.setAttribute('inert', '');
|
|
54
54
|
});
|
|
55
55
|
overlayNode === null || overlayNode === void 0 || overlayNode.classList.remove(styles.hidden);
|
|
56
56
|
} else {
|
|
@@ -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 = {"overlay":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._aBdR-{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._3fijS{visibility:hidden}._sS-91{position:fixed}._T9SnY{overflow:hidden!important}";
|
|
4
|
+
var styles = {"overlay":"_aBdR-","hidden":"_3fijS","anchoredToBody":"_sS-91","blockedScroll":"_T9SnY"};
|
|
5
|
+
var stylesheet="._aBdR-{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._3fijS{visibility:hidden}._sS-91{position:fixed}._T9SnY{overflow:hidden!important}";
|
|
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,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import { useRef, useState, useEffect, useCallback } from 'react';
|
|
2
3
|
import classes from './useScreenReaderAnnouncement2.js';
|
|
3
4
|
|
|
@@ -8,8 +9,14 @@ import classes from './useScreenReaderAnnouncement2.js';
|
|
|
8
9
|
*/
|
|
9
10
|
function useScreenReaderAnnouncement(politeness) {
|
|
10
11
|
const ariaLiveElementRef = useRef(undefined);
|
|
11
|
-
const
|
|
12
|
-
|
|
12
|
+
const _useState = useState([]),
|
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
+
messageQueue = _useState2[0],
|
|
15
|
+
setMessageQueue = _useState2[1]; // An array of messages where the first item in the array is the oldest message
|
|
16
|
+
const _useState3 = useState(false),
|
|
17
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18
|
+
isAnnouncingMessage = _useState4[0],
|
|
19
|
+
setIsAnnouncingMessage = _useState4[1];
|
|
13
20
|
const delayTimer = useRef(undefined);
|
|
14
21
|
|
|
15
22
|
// Creates the live region element
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "@media not print{.
|
|
4
|
-
var classes = {"ariaLiveElement":"
|
|
5
|
-
var stylesheet="@media not print{.
|
|
3
|
+
var css_248z = "@media not print{._hJ57j{position:absolute;top:-10000px;left:-10000px}}@media print{._hJ57j{display:none}}";
|
|
4
|
+
var classes = {"ariaLiveElement":"_hJ57j"};
|
|
5
|
+
var stylesheet="@media not print{._hJ57j{position:absolute;top:-10000px;left:-10000px}}@media print{._hJ57j{display:none}}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { classes as default, stylesheet };
|
package/dist/icons/Icon.js
CHANGED
|
@@ -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 = {"icon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._QLNx7{flex-shrink:0}";
|
|
4
|
+
var styles = {"icon":"_QLNx7"};
|
|
5
|
+
var stylesheet="._QLNx7{flex-shrink: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 };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import createIconComponent from '../createIconComponent.js';
|
|
2
|
+
|
|
3
|
+
/* THIS FILE IS AUTO-GENERATED */
|
|
4
|
+
var FrontlineEmployeeVoiceIcon = /*#__PURE__*/createIconComponent('FrontlineEmployeeVoice', '<path d="M12.75 9.3333C12.75 7.81451 11.5188 6.5833 10 6.5833C8.48122 6.5833 7.25 7.81451 7.25 9.3333C7.25 10.8521 8.48122 12.0833 10 12.0833C11.5188 12.0833 12.75 10.8521 12.75 9.3333ZM14.25 9.3333C14.25 11.6805 12.3472 13.5833 10 13.5833C7.65279 13.5833 5.75 11.6805 5.75 9.3333C5.75 6.98609 7.65279 5.0833 10 5.0833C12.3472 5.0833 14.25 6.98609 14.25 9.3333Z"/><path d="M16.25 20.9996C16.2498 18.3145 13.5855 15.9166 10 15.9166C6.41452 15.9166 3.75022 18.3145 3.75 20.9996C3.75 21.4138 3.41421 21.7496 3 21.7496C2.58579 21.7496 2.25 21.4138 2.25 20.9996C2.25021 17.2417 5.85376 14.4166 10 14.4166C14.1462 14.4166 17.7498 17.2417 17.75 20.9996C17.75 21.4138 17.4142 21.7496 17 21.7496C16.5858 21.7496 16.25 21.4138 16.25 20.9996Z"/><path d="M16.583 9.87597L16.5801 9.8789L16.5762 9.88086C16.5771 9.8802 16.582 9.87727 16.5889 9.87207C16.6027 9.86155 16.627 9.84222 16.6582 9.81445C16.7217 9.75795 16.8109 9.66908 16.9004 9.5498C17.0777 9.31336 17.25 8.96733 17.25 8.5C17.25 8.03266 17.0777 7.68664 16.9004 7.45019C16.8109 7.33092 16.7217 7.24204 16.6582 7.18555C16.627 7.15778 16.6027 7.13844 16.5889 7.12793C16.582 7.12272 16.5771 7.11979 16.5762 7.11914L16.5801 7.12109L16.582 7.12305L16.583 7.12402L16.584 7.12305C16.2397 6.89318 16.1463 6.42848 16.376 6.08398C16.6057 5.73934 17.0714 5.64621 17.416 5.87597L17.2334 6.15039C17.4163 5.87617 17.4158 5.87583 17.416 5.87597L17.417 5.87695L17.4189 5.87793L17.4209 5.87988C17.4228 5.88117 17.4254 5.88217 17.4277 5.88379C17.4327 5.88722 17.4394 5.8916 17.4463 5.89648C17.4599 5.90617 17.4768 5.91914 17.4971 5.93457C17.538 5.96576 17.5921 6.00916 17.6543 6.06445C17.7782 6.17457 17.9392 6.33598 18.0996 6.5498C18.4223 6.98001 18.75 7.63421 18.75 8.5C18.75 9.36579 18.4223 10.02 18.0996 10.4502C17.9392 10.664 17.7782 10.8254 17.6543 10.9355C17.5921 10.9908 17.538 11.0342 17.4971 11.0654C17.4768 11.0809 17.4599 11.0938 17.4463 11.1035C17.4394 11.1084 17.4327 11.1128 17.4277 11.1162C17.4254 11.1178 17.4228 11.1188 17.4209 11.1201L17.4189 11.1221L17.417 11.123C17.4167 11.1232 17.416 11.124 17 10.5L17.416 11.124C17.0714 11.3538 16.6057 11.2607 16.376 10.916C16.1464 10.5716 16.2389 10.1059 16.583 9.87597Z"/><path d="M20.75 8.5C20.75 7.5024 20.4313 6.76579 20.1191 6.28027C19.9622 6.03613 19.8064 5.85552 19.6943 5.73926C19.6386 5.68142 19.5942 5.63995 19.5664 5.61523C19.5535 5.60378 19.5441 5.59597 19.5391 5.59179L19.5361 5.58886C19.2124 5.3339 19.1548 4.8648 19.4082 4.53906C19.6626 4.21246 20.1341 4.154 20.4609 4.4082L20.4629 4.41015C20.4637 4.41082 20.4648 4.41132 20.4658 4.41211C20.4681 4.41387 20.4707 4.41657 20.4736 4.41894C20.4795 4.42368 20.4875 4.42937 20.4961 4.43652C20.5133 4.45082 20.5356 4.47019 20.5625 4.49414C20.6167 4.54233 20.6897 4.61039 20.7744 4.69824C20.9435 4.87361 21.1629 5.13071 21.3809 5.46972C21.8187 6.15087 22.25 7.16439 22.25 8.5C22.25 9.83561 21.8187 10.8491 21.3809 11.5303C21.1629 11.8693 20.9435 12.1264 20.7744 12.3018C20.6897 12.3896 20.6167 12.4577 20.5625 12.5059C20.5356 12.5298 20.5133 12.5492 20.4961 12.5635C20.4875 12.5706 20.4795 12.5763 20.4736 12.5811C20.4707 12.5834 20.4681 12.5861 20.4658 12.5879C20.4648 12.5887 20.4637 12.5892 20.4629 12.5898L20.4609 12.5918C20.1341 12.846 19.6626 12.7875 19.4082 12.4609C19.154 12.1341 19.2125 11.6626 19.5391 11.4082C19.5441 11.404 19.5535 11.3962 19.5664 11.3848C19.5942 11.36 19.6386 11.3186 19.6943 11.2607C19.8064 11.1445 19.9622 10.9639 20.1191 10.7197C20.4313 10.2342 20.75 9.49759 20.75 8.5Z"/><path d="M13.75 21C13.75 21.4142 13.4142 21.75 13 21.75C12.5858 21.75 12.25 21.4142 12.25 21V19.75H7.75V21C7.75 21.4142 7.41421 21.75 7 21.75C6.58579 21.75 6.25 21.4142 6.25 21L6.25 16H7.75L7.75 18.25H12.25V16H13.75V21Z"/>');
|
|
5
|
+
|
|
6
|
+
export { FrontlineEmployeeVoiceIcon as default };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import React__default, { forwardRef } from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './Icon.js';
|
|
5
6
|
|
|
7
|
+
const _excluded = ["size", "className", "aria-hidden"];
|
|
6
8
|
const IconSizes = {
|
|
7
9
|
small: 16,
|
|
8
10
|
medium: 24,
|
|
@@ -10,12 +12,11 @@ const IconSizes = {
|
|
|
10
12
|
};
|
|
11
13
|
const createIconComponent = (type, svgContent) => {
|
|
12
14
|
const Icon = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
13
|
-
let
|
|
14
|
-
size = 'medium',
|
|
15
|
-
className,
|
|
16
|
-
'aria-hidden'
|
|
17
|
-
|
|
18
|
-
} = _ref;
|
|
15
|
+
let _ref$size = _ref.size,
|
|
16
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
ariaHidden = _ref['aria-hidden'],
|
|
19
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
20
|
const classes = classNames(styles.icon, className);
|
|
20
21
|
const pixels = IconSizes[size];
|
|
21
22
|
return /*#__PURE__*/React__default.createElement("svg", _extends({}, rest, {
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -472,6 +472,8 @@ export declare const FreezeFirstColumnIcon: ForwardRefExoticComponent<NamedIcons
|
|
|
472
472
|
|
|
473
473
|
export declare const FreezeFirstRowIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
|
474
474
|
|
|
475
|
+
export declare const FrontlineEmployeeVoiceIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
|
476
|
+
|
|
475
477
|
export declare const GalleryIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
|
476
478
|
|
|
477
479
|
export declare const GaugeChartIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
package/dist/icons/index.es.js
CHANGED
|
@@ -233,6 +233,7 @@ export { default as FontSizeIcon } from './components/FontSizeIcon.js';
|
|
|
233
233
|
export { default as FormFieldIcon } from './components/FormFieldIcon.js';
|
|
234
234
|
export { default as FreezeFirstColumnIcon } from './components/FreezeFirstColumnIcon.js';
|
|
235
235
|
export { default as FreezeFirstRowIcon } from './components/FreezeFirstRowIcon.js';
|
|
236
|
+
export { default as FrontlineEmployeeVoiceIcon } from './components/FrontlineEmployeeVoiceIcon.js';
|
|
236
237
|
export { default as GalleryIcon } from './components/GalleryIcon.js';
|
|
237
238
|
export { default as GaugeChartIcon } from './components/GaugeChartIcon.js';
|
|
238
239
|
export { default as GlobalCalendarIconIcon } from './components/GlobalCalendarIconIcon.js';
|
package/dist/icons/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var icons_index = require('../__shared/cjs/index-
|
|
5
|
+
var icons_index = require('../__shared/cjs/index-8c77a9ef.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
7
|
+
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
7
8
|
require('react');
|
|
8
9
|
require('classnames');
|
|
9
10
|
|
|
@@ -244,6 +245,7 @@ exports.FontSizeIcon = icons_index.FontSizeIcon;
|
|
|
244
245
|
exports.FormFieldIcon = icons_index.FormFieldIcon;
|
|
245
246
|
exports.FreezeFirstColumnIcon = icons_index.FreezeFirstColumnIcon;
|
|
246
247
|
exports.FreezeFirstRowIcon = icons_index.FreezeFirstRowIcon;
|
|
248
|
+
exports.FrontlineEmployeeVoiceIcon = icons_index.FrontlineEmployeeVoiceIcon;
|
|
247
249
|
exports.GalleryIcon = icons_index.GalleryIcon;
|
|
248
250
|
exports.GaugeChartIcon = icons_index.GaugeChartIcon;
|
|
249
251
|
exports.GlobalCalendarIconIcon = icons_index.GlobalCalendarIconIcon;
|
package/dist/index.d.ts
CHANGED
|
@@ -1629,6 +1629,7 @@ export declare const IconTypes: {
|
|
|
1629
1629
|
readonly FormField: "FormField";
|
|
1630
1630
|
readonly FreezeFirstColumn: "FreezeFirstColumn";
|
|
1631
1631
|
readonly FreezeFirstRow: "FreezeFirstRow";
|
|
1632
|
+
readonly FrontlineEmployeeVoice: "FrontlineEmployeeVoice";
|
|
1632
1633
|
readonly Gallery: "Gallery";
|
|
1633
1634
|
readonly GaugeChart: "GaugeChart";
|
|
1634
1635
|
readonly GlobalCalendarIcon: "GlobalCalendarIcon";
|
package/dist/index.es.js
CHANGED
|
@@ -112,6 +112,6 @@ export { default as deprecated_ToolbarPanel } from './components/deprecated_Tool
|
|
|
112
112
|
|
|
113
113
|
/* eslint-disable camelcase */
|
|
114
114
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
115
|
-
const version = '2.
|
|
115
|
+
const version = '2.80.0';
|
|
116
116
|
|
|
117
117
|
export { version };
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./__shared/cjs/index-
|
|
5
|
+
var index = require('./__shared/cjs/index-807921ca.js');
|
|
6
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
7
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
6
8
|
require('react');
|
|
7
9
|
require('classnames');
|
|
8
|
-
require('./__shared/cjs/index-
|
|
10
|
+
require('./__shared/cjs/index-8c77a9ef.js');
|
|
9
11
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
12
|
+
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
10
13
|
require('@floating-ui/react-dom');
|
|
11
14
|
require('react-focus-lock');
|
|
12
15
|
require('react-dom');
|
|
@@ -14,13 +17,14 @@ require('uuid');
|
|
|
14
17
|
require('@react-hook/resize-observer');
|
|
15
18
|
require('@react-aria/interactions');
|
|
16
19
|
require('react-virtuoso');
|
|
20
|
+
require('@babel/runtime-corejs3/helpers/objectDestructuringEmpty');
|
|
17
21
|
require('@qualtrics/component-styles');
|
|
18
22
|
require('@juggle/resize-observer');
|
|
19
23
|
require('throttle-debounce');
|
|
20
24
|
|
|
21
25
|
/* eslint-disable camelcase */
|
|
22
26
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
23
|
-
const version = '2.
|
|
27
|
+
const version = '2.80.0';
|
|
24
28
|
|
|
25
29
|
exports.Accordion = index.Accordion;
|
|
26
30
|
exports.AccordionHeader = index.AccordionHeader;
|