@qualtrics/ui-react 2.23.0 → 2.23.1-alpha.1
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/package.json +1 -1
- package/dist/__node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/dist/__shared/cjs/index-10d6f3f3.js +0 -12476
- package/dist/__shared/cjs/index-7f78e01b.js +0 -2058
- package/dist/components/Accordion/Accordion.js +0 -90
- package/dist/components/Accordion/Accordion2.js +0 -8
- package/dist/components/Accordion/AccordionContext.js +0 -13
- package/dist/components/Accordion/AccordionHeader.js +0 -72
- package/dist/components/Accordion/AccordionPanel.js +0 -30
- package/dist/components/Accordion/AccordionSection.js +0 -40
- package/dist/components/Accordion/index.js +0 -4
- package/dist/components/Banner/Banner.css.js +0 -21
- package/dist/components/Banner/Banner.css.ts.vanilla.js +0 -8
- package/dist/components/Banner/Banner.js +0 -105
- package/dist/components/Banner/index.js +0 -1
- package/dist/components/BreakpointSwitch/Breakpoint.js +0 -16
- package/dist/components/BreakpointSwitch/BreakpointContext.js +0 -9
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +0 -34
- package/dist/components/BreakpointSwitch/index.js +0 -2
- package/dist/components/Button/Button.js +0 -8
- package/dist/components/Button/Button2.js +0 -51
- package/dist/components/Button/index.js +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +0 -40
- package/dist/components/ButtonGroup/ButtonGroup2.js +0 -8
- package/dist/components/ButtonGroup/index.js +0 -1
- package/dist/components/Checkbox/Check.js +0 -18
- package/dist/components/Checkbox/Checkbox.js +0 -54
- package/dist/components/Checkbox/Checkbox2.js +0 -8
- package/dist/components/Checkbox/CheckboxField.js +0 -42
- package/dist/components/Checkbox/VisualCheckbox.js +0 -31
- package/dist/components/Checkbox/VisualCheckbox2.js +0 -8
- package/dist/components/Checkbox/index.js +0 -2
- package/dist/components/ColorPicker/Alpha.js +0 -106
- package/dist/components/ColorPicker/ColorPicker.js +0 -306
- package/dist/components/ColorPicker/ColorPicker2.js +0 -8
- package/dist/components/ColorPicker/ColorPickerFlyout.js +0 -100
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +0 -204
- package/dist/components/ColorPicker/Hue.js +0 -107
- package/dist/components/ColorPicker/Palette.js +0 -137
- package/dist/components/ColorPicker/Saturation.js +0 -129
- package/dist/components/ColorPicker/index.js +0 -1
- package/dist/components/ColorPicker/utils/calculateTargetId.js +0 -43
- package/dist/components/ColorPicker/utils/defaultColorPalette.js +0 -57
- package/dist/components/ColorPicker/utils/getMousePosition.js +0 -20
- package/dist/components/ColorPicker/utils/hexToHsv.js +0 -44
- package/dist/components/ColorPicker/utils/hexToRgb.js +0 -12
- package/dist/components/ColorPicker/utils/hexToRgbaString.js +0 -10
- package/dist/components/ColorPicker/utils/hsvToHex.js +0 -58
- package/dist/components/ColorPicker/utils/index.js +0 -9
- package/dist/components/ColorPicker/utils/rgbToHex.js +0 -13
- package/dist/components/ColorPicker/utils/validateHex.js +0 -43
- package/dist/components/Combobox/Combobox.js +0 -455
- package/dist/components/Combobox/Combobox2.js +0 -8
- package/dist/components/Combobox/ComboboxContext.js +0 -9
- package/dist/components/Combobox/ComboboxHeader.js +0 -21
- package/dist/components/Combobox/ComboboxIcon.js +0 -47
- package/dist/components/Combobox/ComboboxInput.js +0 -90
- package/dist/components/Combobox/ComboboxList.js +0 -57
- package/dist/components/Combobox/ComboboxOption.js +0 -25
- package/dist/components/Combobox/index.js +0 -5
- package/dist/components/ConfigPane/ConfigPane.js +0 -176
- package/dist/components/ConfigPane/ConfigPane2.js +0 -8
- package/dist/components/ConfigPane/constants.js +0 -9
- package/dist/components/ConfigPane/index.js +0 -1
- package/dist/components/Divider/Divider.js +0 -17
- package/dist/components/Divider/Divider2.js +0 -8
- package/dist/components/Divider/index.js +0 -1
- package/dist/components/Dropdown/ChildIndexContext/index.js +0 -34
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +0 -178
- package/dist/components/Dropdown/Dropdown.js +0 -285
- package/dist/components/Dropdown/Dropdown2.js +0 -8
- package/dist/components/Dropdown/DropdownButton.js +0 -161
- package/dist/components/Dropdown/DropdownContext.js +0 -9
- package/dist/components/Dropdown/DropdownHeader.js +0 -32
- package/dist/components/Dropdown/DropdownHeaderContext.js +0 -9
- package/dist/components/Dropdown/DropdownList.js +0 -106
- package/dist/components/Dropdown/DropdownOption.js +0 -112
- package/dist/components/Dropdown/DropdownSearch.js +0 -108
- package/dist/components/Dropdown/index.js +0 -5
- package/dist/components/FilePicker/FilePicker.js +0 -119
- package/dist/components/FilePicker/FilePicker2.js +0 -8
- package/dist/components/FilePicker/index.js +0 -1
- package/dist/components/FormField/Caption.js +0 -8
- package/dist/components/FormField/ErrorText.js +0 -25
- package/dist/components/FormField/FormField.js +0 -64
- package/dist/components/FormField/FormField2.js +0 -8
- package/dist/components/FormField/FormFieldContext.js +0 -40
- package/dist/components/FormField/HelperText.js +0 -19
- package/dist/components/FormField/ReadOnlyText.js +0 -28
- package/dist/components/FormField/index.js +0 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +0 -79
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +0 -8
- package/dist/components/FullScreenTakeover/index.js +0 -1
- package/dist/components/Icon/Icon.js +0 -52
- package/dist/components/Icon/IconTypes.js +0 -499
- package/dist/components/Icon/index.js +0 -2
- package/dist/components/IconButton/IconButton.js +0 -58
- package/dist/components/IconButton/IconButton2.js +0 -8
- package/dist/components/IconButton/index.js +0 -3
- package/dist/components/InlineInput/InlineInput.js +0 -131
- package/dist/components/InlineInput/InlineInput2.js +0 -8
- package/dist/components/InlineInput/index.js +0 -1
- package/dist/components/Input/Input.js +0 -59
- package/dist/components/Input/Input2.js +0 -8
- package/dist/components/Input/InputField.js +0 -57
- package/dist/components/Input/index.js +0 -2
- package/dist/components/InputGroup/InputGroup.js +0 -33
- package/dist/components/InputGroup/InputGroup2.js +0 -8
- package/dist/components/InputGroup/InputGroupAddon.js +0 -23
- package/dist/components/InputGroup/InputGroupProvider.js +0 -33
- package/dist/components/InputGroup/index.js +0 -2
- package/dist/components/Label/Label.js +0 -27
- package/dist/components/Label/Label2.js +0 -8
- package/dist/components/Label/index.js +0 -1
- package/dist/components/Link/Link.js +0 -25
- package/dist/components/Link/Link2.js +0 -8
- package/dist/components/Link/index.js +0 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.js +0 -51
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +0 -8
- package/dist/components/LoadingSpinner/index.js +0 -1
- package/dist/components/LogicEditor/ConditionContainer.js +0 -33
- package/dist/components/LogicEditor/ConditionSet.js +0 -182
- package/dist/components/LogicEditor/Controls.js +0 -85
- package/dist/components/LogicEditor/LogicEditor.js +0 -115
- package/dist/components/LogicEditor/LogicEditor2.js +0 -8
- package/dist/components/LogicEditor/LogicEditorContext.js +0 -9
- package/dist/components/LogicEditor/index.js +0 -1
- package/dist/components/LogicEditor/utils.js +0 -140
- package/dist/components/Modal/Modal.js +0 -270
- package/dist/components/Modal/Modal2.js +0 -8
- package/dist/components/Modal/ModalContext.js +0 -9
- package/dist/components/Modal/index.js +0 -1
- package/dist/components/NewMenu/BaseMenu.js +0 -429
- package/dist/components/NewMenu/Menu/Menu.js +0 -24
- package/dist/components/NewMenu/Menu/index.js +0 -1
- package/dist/components/NewMenu/NewMenu.js +0 -8
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +0 -27
- package/dist/components/NewMenu/SelectMenu/index.js +0 -1
- package/dist/components/NewMenu/index.js +0 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +0 -169
- package/dist/components/NewMenu/parts/ArrowNav/index.js +0 -1
- package/dist/components/NewMenu/parts/MenuAnchor.js +0 -55
- package/dist/components/NewMenu/parts/MenuContext.js +0 -9
- package/dist/components/NewMenu/parts/MenuItem.js +0 -64
- package/dist/components/NewMenu/parts/MenuSearchBox.js +0 -34
- package/dist/components/NewMenu/parts/MenuSpinner.js +0 -13
- package/dist/components/NewMenu/parts/SubmenuAnchor.js +0 -25
- package/dist/components/NewMenu/parts/index.js +0 -7
- package/dist/components/NumberStepper/NumberStepper.js +0 -284
- package/dist/components/NumberStepper/NumberStepper2.js +0 -8
- package/dist/components/NumberStepper/NumberStepperContext.js +0 -9
- package/dist/components/NumberStepper/NumberStepperDecrement.js +0 -65
- package/dist/components/NumberStepper/NumberStepperIncrement.js +0 -65
- package/dist/components/NumberStepper/NumberStepperInput.js +0 -136
- package/dist/components/NumberStepper/index.js +0 -4
- package/dist/components/PageLayout/MainContent.js +0 -17
- package/dist/components/PageLayout/PageContainer.js +0 -17
- package/dist/components/PageLayout/PageHeader.js +0 -17
- package/dist/components/PageLayout/PageLayout.js +0 -8
- package/dist/components/PageLayout/index.js +0 -3
- package/dist/components/Pagination/Pagination.js +0 -87
- package/dist/components/Pagination/Pagination2.js +0 -8
- package/dist/components/Pagination/PaginationContext.js +0 -9
- package/dist/components/Pagination/PaginationNextButton.js +0 -67
- package/dist/components/Pagination/PaginationPageInput.js +0 -125
- package/dist/components/Pagination/PaginationPreviousButton.js +0 -66
- package/dist/components/Pagination/index.js +0 -4
- package/dist/components/Popover/Popover.js +0 -126
- package/dist/components/Popover/Popover2.js +0 -8
- package/dist/components/Popover/index.js +0 -1
- package/dist/components/QuickSearch/QuickSearch.js +0 -66
- package/dist/components/QuickSearch/QuickSearch2.js +0 -8
- package/dist/components/QuickSearch/QuickSearchInput.js +0 -135
- package/dist/components/QuickSearch/index.js +0 -1
- package/dist/components/Radio/Radio.js +0 -61
- package/dist/components/Radio/Radio2.js +0 -8
- package/dist/components/Radio/RadioGroup.js +0 -34
- package/dist/components/Radio/RadioGroupContext.js +0 -9
- package/dist/components/Radio/RadioOption.js +0 -36
- package/dist/components/Radio/index.js +0 -3
- package/dist/components/SearchInput/SearchInput.js +0 -113
- package/dist/components/SearchInput/SearchInput2.js +0 -8
- package/dist/components/SearchInput/index.js +0 -3
- package/dist/components/SidebarNav/ExpandCollapseButton.js +0 -52
- package/dist/components/SidebarNav/SidebarNav.js +0 -69
- package/dist/components/SidebarNav/SidebarNav2.js +0 -8
- package/dist/components/SidebarNav/SidebarNavContext.js +0 -9
- package/dist/components/SidebarNav/SidebarNavLink.js +0 -59
- package/dist/components/SidebarNav/constants.js +0 -9
- package/dist/components/SidebarNav/index.js +0 -2
- package/dist/components/Slider/RangeSlider.js +0 -139
- package/dist/components/Slider/Slider.js +0 -137
- package/dist/components/Slider/Slider2.js +0 -8
- package/dist/components/Slider/SliderButton.js +0 -80
- package/dist/components/Slider/index.js +0 -2
- package/dist/components/Switch/Switch.js +0 -54
- package/dist/components/Switch/Switch2.js +0 -8
- package/dist/components/Switch/SwitchField.js +0 -42
- package/dist/components/Switch/index.js +0 -2
- package/dist/components/Table/Table.js +0 -18
- package/dist/components/Table/Table2.js +0 -8
- package/dist/components/Table/TableBody.js +0 -18
- package/dist/components/Table/TableCell.js +0 -18
- package/dist/components/Table/TableHead.js +0 -18
- package/dist/components/Table/TableHeaderCell.js +0 -18
- package/dist/components/Table/TableRow.js +0 -18
- package/dist/components/Table/index.js +0 -6
- package/dist/components/Tabs/Tab.js +0 -51
- package/dist/components/Tabs/TabContextProvider.js +0 -33
- package/dist/components/Tabs/TabList.js +0 -108
- package/dist/components/Tabs/TabPanel.js +0 -35
- package/dist/components/Tabs/TabPanels.js +0 -19
- package/dist/components/Tabs/Tabs.js +0 -37
- package/dist/components/Tabs/Tabs2.js +0 -8
- package/dist/components/Tabs/index.js +0 -5
- package/dist/components/Tooltip/Tooltip.js +0 -237
- package/dist/components/Tooltip/Tooltip2.js +0 -8
- package/dist/components/Tooltip/index.js +0 -1
- package/dist/components/UIProvider/PortalTargetContext.js +0 -19
- package/dist/components/UIProvider/UIProvider.js +0 -19
- package/dist/components/UIProvider/index.js +0 -2
- package/dist/components/deprecated_ColorPicker/Alpha.js +0 -90
- package/dist/components/deprecated_ColorPicker/Color.js +0 -275
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +0 -128
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +0 -8
- package/dist/components/deprecated_ColorPicker/DEFAULT_SWATCH_COLORS.js +0 -4
- package/dist/components/deprecated_ColorPicker/HexInput.js +0 -66
- package/dist/components/deprecated_ColorPicker/Hue.js +0 -87
- package/dist/components/deprecated_ColorPicker/Saturation.js +0 -120
- package/dist/components/deprecated_ColorPicker/Swatch.js +0 -30
- package/dist/components/deprecated_ColorPicker/index.js +0 -4
- package/dist/components/deprecated_ColorPicker/isMouseEvent.js +0 -5
- package/dist/components/deprecated_ColorPicker/useMouseDrag.js +0 -24
- package/dist/components/deprecated_NumberStepper/NumberStepper.js +0 -195
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +0 -8
- package/dist/components/deprecated_NumberStepper/NumberStepperContext.js +0 -9
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +0 -71
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +0 -71
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +0 -147
- package/dist/components/deprecated_NumberStepper/index.js +0 -6
- package/dist/components/deprecated_Tabs/Tab.js +0 -37
- package/dist/components/deprecated_Tabs/TabContextProvider.js +0 -9
- package/dist/components/deprecated_Tabs/Tabs.js +0 -131
- package/dist/components/deprecated_Tabs/Tabs2.js +0 -8
- package/dist/components/deprecated_Tabs/index.js +0 -4
- package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +0 -26
- package/dist/components/deprecated_Toolbar/Toolbar.js +0 -44
- package/dist/components/deprecated_Toolbar/Toolbar2.js +0 -8
- package/dist/components/deprecated_Toolbar/ToolbarContext.js +0 -9
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +0 -46
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +0 -140
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +0 -141
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +0 -150
- package/dist/components/deprecated_Toolbar/index.js +0 -7
- package/dist/components/index.js +0 -43
- package/dist/hooks/index.js +0 -19
- package/dist/hooks/useBreakpoints/index.js +0 -1
- package/dist/hooks/useBreakpoints/useBreakpoints.js +0 -46
- package/dist/hooks/useClickOutside/index.js +0 -1
- package/dist/hooks/useClickOutside/useClickOutside.js +0 -30
- package/dist/hooks/useClickOutsidePortals/index.js +0 -1
- package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +0 -34
- package/dist/hooks/useControllableState/index.js +0 -1
- package/dist/hooks/useControllableState/useControllableState.js +0 -88
- package/dist/hooks/useDidUpdate/index.js +0 -1
- package/dist/hooks/useDidUpdate/useDidUpdate.js +0 -30
- package/dist/hooks/useEventCallback/index.js +0 -1
- package/dist/hooks/useEventCallback/useEventCallback.js +0 -22
- package/dist/hooks/useEventListener/index.js +0 -1
- package/dist/hooks/useEventListener/useEventListener.js +0 -40
- package/dist/hooks/useFocusSequence/index.js +0 -1
- package/dist/hooks/useFocusSequence/useFocusSequence.js +0 -123
- package/dist/hooks/useId/index.js +0 -1
- package/dist/hooks/useId/useId.js +0 -14
- package/dist/hooks/useIsFocused/index.js +0 -1
- package/dist/hooks/useIsFocused/useIsFocused.js +0 -17
- package/dist/hooks/useIsHovered/index.js +0 -1
- package/dist/hooks/useIsHovered/useIsHovered.js +0 -17
- package/dist/hooks/useIsTruncated/index.js +0 -1
- package/dist/hooks/useIsTruncated/useIsTruncated.js +0 -40
- package/dist/hooks/useLatest/index.js +0 -1
- package/dist/hooks/useLatest/useLatest.js +0 -16
- package/dist/hooks/useMounted/index.js +0 -1
- package/dist/hooks/useMounted/useMounted.js +0 -20
- package/dist/hooks/useMouseDrag/index.js +0 -1
- package/dist/hooks/useMouseDrag/useMouseDrag.js +0 -29
- package/dist/hooks/useOverlay/index.js +0 -1
- package/dist/hooks/useOverlay/useOverlay.js +0 -68
- package/dist/hooks/useOverlay/useOverlay2.js +0 -8
- package/dist/hooks/usePrevious/index.js +0 -1
- package/dist/hooks/usePrevious/usePrevious.js +0 -16
- package/dist/hooks/useResponsiveValue/index.js +0 -1
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +0 -19
- package/dist/hooks/useSSRLayoutEffect/index.js +0 -1
- package/dist/hooks/useSSRLayoutEffect/useSSRLayoutEffect.js +0 -10
- package/dist/hooks/useScreenReaderAnnouncement/index.js +0 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +0 -72
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +0 -8
- package/dist/icons/Icon.js +0 -8
- package/dist/icons/components/ABCIcon.js +0 -6
- package/dist/icons/components/AIIcon.js +0 -6
- package/dist/icons/components/AccessibilityIcon.js +0 -6
- package/dist/icons/components/AccountIcon.js +0 -6
- package/dist/icons/components/AccountsTableIcon.js +0 -6
- package/dist/icons/components/ActionPlanningIcon.js +0 -6
- package/dist/icons/components/ActiveIcon.js +0 -6
- package/dist/icons/components/AddIcon.js +0 -6
- package/dist/icons/components/AddItemIcon.js +0 -6
- package/dist/icons/components/AddonsIcon.js +0 -6
- package/dist/icons/components/AdminGearsIcon.js +0 -6
- package/dist/icons/components/AgentLeftIcon.js +0 -6
- package/dist/icons/components/AgentPerformanceIcon.js +0 -6
- package/dist/icons/components/AgentRightIcon.js +0 -6
- package/dist/icons/components/AggregateFunctionIcon.js +0 -6
- package/dist/icons/components/AlignImageBottomIcon.js +0 -6
- package/dist/icons/components/AlignImageCenterIcon.js +0 -6
- package/dist/icons/components/AlignImageLeftIcon.js +0 -6
- package/dist/icons/components/AlignImageMiddleIcon.js +0 -6
- package/dist/icons/components/AlignImageRightIcon.js +0 -6
- package/dist/icons/components/AlignImageTopIcon.js +0 -6
- package/dist/icons/components/AlignTextBottomIcon.js +0 -6
- package/dist/icons/components/AlignTextLeftIcon.js +0 -6
- package/dist/icons/components/AlignTextRightIcon.js +0 -6
- package/dist/icons/components/AlignTextTopIcon.js +0 -6
- package/dist/icons/components/AnimationIcon.js +0 -6
- package/dist/icons/components/AreaChartIcon.js +0 -6
- package/dist/icons/components/ArrayIcon.js +0 -6
- package/dist/icons/components/ArrowDownIcon.js +0 -6
- package/dist/icons/components/ArrowLeftIcon.js +0 -6
- package/dist/icons/components/ArrowRightIcon.js +0 -6
- package/dist/icons/components/ArrowUpIcon.js +0 -6
- package/dist/icons/components/AssignUserIcon.js +0 -6
- package/dist/icons/components/AutomatedSetupIcon.js +0 -6
- package/dist/icons/components/BarChartIcon.js +0 -6
- package/dist/icons/components/BellIcon.js +0 -6
- package/dist/icons/components/BellSnoozeIcon.js +0 -6
- package/dist/icons/components/BenchmarkGraphIcon.js +0 -6
- package/dist/icons/components/BinderClipIcon.js +0 -6
- package/dist/icons/components/BinocularsIcon.js +0 -6
- package/dist/icons/components/BlogIcon.js +0 -6
- package/dist/icons/components/BookmarkFillIcon.js +0 -6
- package/dist/icons/components/BookmarkIcon.js +0 -6
- package/dist/icons/components/BooksIcon.js +0 -6
- package/dist/icons/components/BooleanIcon.js +0 -6
- package/dist/icons/components/BorderColorElement1Icon.js +0 -6
- package/dist/icons/components/BorderColorIcon.js +0 -6
- package/dist/icons/components/BranchContinueIcon.js +0 -6
- package/dist/icons/components/BranchEndIcon.js +0 -6
- package/dist/icons/components/BranchExtensionIcon.js +0 -6
- package/dist/icons/components/BubbleCashIcon.js +0 -6
- package/dist/icons/components/BubbleChartIcon.js +0 -6
- package/dist/icons/components/BubbleClockIcon.js +0 -6
- package/dist/icons/components/BubbleDotsIcon.js +0 -6
- package/dist/icons/components/BubbleHelpIcon.js +0 -6
- package/dist/icons/components/BubbleIcon.js +0 -6
- package/dist/icons/components/BubbleInfoIcon.js +0 -6
- package/dist/icons/components/BubbleTranslateIcon.js +0 -6
- package/dist/icons/components/BugsIcon.js +0 -6
- package/dist/icons/components/BusinessImpactIcon.js +0 -6
- package/dist/icons/components/ButtonIcon.js +0 -6
- package/dist/icons/components/BxLogoIcon.js +0 -6
- package/dist/icons/components/CalendarAddIcon.js +0 -6
- package/dist/icons/components/CalendarCheckIcon.js +0 -6
- package/dist/icons/components/CalendarIcon.js +0 -6
- package/dist/icons/components/CameraIcon.js +0 -6
- package/dist/icons/components/CaretDownIcon.js +0 -6
- package/dist/icons/components/CaretLeftIcon.js +0 -6
- package/dist/icons/components/CaretRightIcon.js +0 -6
- package/dist/icons/components/CaretUpIcon.js +0 -6
- package/dist/icons/components/CarryForwardChoicesIcon.js +0 -6
- package/dist/icons/components/CatalogIcon.js +0 -6
- package/dist/icons/components/CenterXIcon.js +0 -6
- package/dist/icons/components/CenterYIcon.js +0 -6
- package/dist/icons/components/Chart19Icon.js +0 -6
- package/dist/icons/components/ChartImpactIcon.js +0 -6
- package/dist/icons/components/ChartParetoIcon.js +0 -6
- package/dist/icons/components/ChartPolarIcon.js +0 -6
- package/dist/icons/components/CheckIcon.js +0 -6
- package/dist/icons/components/ChevronDownIcon.js +0 -6
- package/dist/icons/components/ChevronLeftIcon.js +0 -6
- package/dist/icons/components/ChevronRightIcon.js +0 -6
- package/dist/icons/components/ChevronSetIcon.js +0 -6
- package/dist/icons/components/ChevronSkipBackIcon.js +0 -6
- package/dist/icons/components/ChevronSkipForwardIcon.js +0 -6
- package/dist/icons/components/ChevronUpIcon.js +0 -6
- package/dist/icons/components/ClassIcon.js +0 -6
- package/dist/icons/components/ClearFormattingIcon.js +0 -6
- package/dist/icons/components/ClipboardIcon.js +0 -6
- package/dist/icons/components/ClockIcon.js +0 -6
- package/dist/icons/components/CloseCaptioningIcon.js +0 -6
- package/dist/icons/components/CloseIcon.js +0 -6
- package/dist/icons/components/ClosePanelLeftIcon.js +0 -6
- package/dist/icons/components/ClosePanelRightIcon.js +0 -6
- package/dist/icons/components/CloudyIcon.js +0 -6
- package/dist/icons/components/CoachingPrioritiesIcon.js +0 -6
- package/dist/icons/components/CodeBracketsIcon.js +0 -6
- package/dist/icons/components/CoffeeIcon.js +0 -6
- package/dist/icons/components/ColumnFilterIcon.js +0 -6
- package/dist/icons/components/ColumnsIcon.js +0 -6
- package/dist/icons/components/CommentsIcon.js +0 -6
- package/dist/icons/components/ConditionIcon.js +0 -6
- package/dist/icons/components/ConstantSumIcon.js +0 -6
- package/dist/icons/components/ContactIcon.js +0 -6
- package/dist/icons/components/ContactListIcon.js +0 -6
- package/dist/icons/components/ContactsIcon.js +0 -6
- package/dist/icons/components/ConversationAgentIcon.js +0 -6
- package/dist/icons/components/ConversationCustomerIcon.js +0 -6
- package/dist/icons/components/ConversationSilenceIcon.js +0 -6
- package/dist/icons/components/ConversionIcon.js +0 -6
- package/dist/icons/components/CopyIcon.js +0 -6
- package/dist/icons/components/CoreXMIcon.js +0 -6
- package/dist/icons/components/CreditCardIcon.js +0 -6
- package/dist/icons/components/CrossAnalyticsIcon.js +0 -6
- package/dist/icons/components/CustomMetricIcon.js +0 -6
- package/dist/icons/components/CustomerLeftIcon.js +0 -6
- package/dist/icons/components/CustomerRightIcon.js +0 -6
- package/dist/icons/components/CxLogoIcon.js +0 -6
- package/dist/icons/components/DashboardIcon.js +0 -6
- package/dist/icons/components/DataAnalysisIcon.js +0 -6
- package/dist/icons/components/DataSourceIcon.js +0 -6
- package/dist/icons/components/DatabaseIcon.js +0 -6
- package/dist/icons/components/DeadClickIcon.js +0 -6
- package/dist/icons/components/DecimalIcon.js +0 -6
- package/dist/icons/components/DefaultChoiceIcon.js +0 -6
- package/dist/icons/components/DeltaIcon.js +0 -6
- package/dist/icons/components/DeniedIcon.js +0 -6
- package/dist/icons/components/DescriptiveTextIcon.js +0 -6
- package/dist/icons/components/DesktopIcon.js +0 -6
- package/dist/icons/components/DetectedIcon.js +0 -6
- package/dist/icons/components/DiamondIcon.js +0 -6
- package/dist/icons/components/DirectoryIcon.js +0 -6
- package/dist/icons/components/DisplayLogicIcon.js +0 -6
- package/dist/icons/components/DistributionSummaryIcon.js +0 -6
- package/dist/icons/components/DocumentAlertIcon.js +0 -6
- package/dist/icons/components/DogIcon.js +0 -6
- package/dist/icons/components/DonutChartIcon.js +0 -6
- package/dist/icons/components/DownloadIcon.js +0 -6
- package/dist/icons/components/DownvoteFilledIcon.js +0 -6
- package/dist/icons/components/DownvoteIcon.js +0 -6
- package/dist/icons/components/DraftIcon.js +0 -6
- package/dist/icons/components/DragAndDropIcon.js +0 -6
- package/dist/icons/components/DragIcon.js +0 -6
- package/dist/icons/components/DrilldownIcon.js +0 -6
- package/dist/icons/components/DropIcon.js +0 -6
- package/dist/icons/components/EXCOVIDReturnToWorkIcon.js +0 -6
- package/dist/icons/components/EXCOVIDSolutionIcon.js +0 -6
- package/dist/icons/components/EditorGenericIcon.js +0 -6
- package/dist/icons/components/EffortEasyIcon.js +0 -6
- package/dist/icons/components/EffortHardIcon.js +0 -6
- package/dist/icons/components/EffortIcon.js +0 -6
- package/dist/icons/components/EffortMixedIcon.js +0 -6
- package/dist/icons/components/EffortNegativeIcon.js +0 -6
- package/dist/icons/components/EffortNeutralIcon.js +0 -6
- package/dist/icons/components/EffortPositiveIcon.js +0 -6
- package/dist/icons/components/EffortVeryEasyIcon.js +0 -6
- package/dist/icons/components/EffortVeryHardIcon.js +0 -6
- package/dist/icons/components/EllipsisHorizontalIcon.js +0 -6
- package/dist/icons/components/EllipsisVerticalIcon.js +0 -6
- package/dist/icons/components/EmojiColorAngryIcon.js +0 -6
- package/dist/icons/components/EmojiColorHappiestIcon.js +0 -6
- package/dist/icons/components/EmojiColorHappyIcon.js +0 -6
- package/dist/icons/components/EmojiColorNotGreatIcon.js +0 -6
- package/dist/icons/components/EmojiColorOKIcon.js +0 -6
- package/dist/icons/components/EmojiColorPrettyGoodIcon.js +0 -6
- package/dist/icons/components/EmojiColorSadIcon.js +0 -6
- package/dist/icons/components/EmojiColorUnhappyIcon.js +0 -6
- package/dist/icons/components/EmojiMonoAngryIcon.js +0 -6
- package/dist/icons/components/EmojiMonoHappiestIcon.js +0 -6
- package/dist/icons/components/EmojiMonoHappyIcon.js +0 -6
- package/dist/icons/components/EmojiMonoNotGreatIcon.js +0 -6
- package/dist/icons/components/EmojiMonoOKIcon.js +0 -6
- package/dist/icons/components/EmojiMonoPrettyGoodIcon.js +0 -6
- package/dist/icons/components/EmojiMonoUnhappyIcon.js +0 -6
- package/dist/icons/components/Employee360Icon.js +0 -6
- package/dist/icons/components/EmployeeAdHocIcon.js +0 -6
- package/dist/icons/components/EmployeeEngagementIcon.js +0 -6
- package/dist/icons/components/EmployeeLifecycleIcon.js +0 -6
- package/dist/icons/components/EmployeePulseIcon.js +0 -6
- package/dist/icons/components/EmptyBoxIcon.js +0 -6
- package/dist/icons/components/EnvelopeClosedIcon.js +0 -6
- package/dist/icons/components/EnvelopeOpenedIcon.js +0 -6
- package/dist/icons/components/EnvelopeOptedOutIcon.js +0 -6
- package/dist/icons/components/ErrorClickIcon.js +0 -6
- package/dist/icons/components/ErrorIcon.js +0 -6
- package/dist/icons/components/EventTriggerIcon.js +0 -6
- package/dist/icons/components/ExLogoIcon.js +0 -6
- package/dist/icons/components/ExampleProjectIcon.js +0 -6
- package/dist/icons/components/ExcludeIcon.js +0 -6
- package/dist/icons/components/ExclusiveAnswerIcon.js +0 -6
- package/dist/icons/components/ExternalLinkIcon.js +0 -6
- package/dist/icons/components/EyeDropperIcon.js +0 -6
- package/dist/icons/components/FastForwardIcon.js +0 -6
- package/dist/icons/components/FastReplyIcon.js +0 -6
- package/dist/icons/components/FeedbackIcon.js +0 -6
- package/dist/icons/components/FileAudioIcon.js +0 -6
- package/dist/icons/components/FileExcelIcon.js +0 -6
- package/dist/icons/components/FileIcon.js +0 -6
- package/dist/icons/components/FilePdfIcon.js +0 -6
- package/dist/icons/components/FilterIcon.js +0 -6
- package/dist/icons/components/FingerprintIcon.js +0 -6
- package/dist/icons/components/FireIcon.js +0 -6
- package/dist/icons/components/FlagIcon.js +0 -6
- package/dist/icons/components/FolderFullIcon.js +0 -6
- package/dist/icons/components/FolderIcon.js +0 -6
- package/dist/icons/components/FolderOpenFullIcon.js +0 -6
- package/dist/icons/components/FolderOpenIcon.js +0 -6
- package/dist/icons/components/FontSizeIcon.js +0 -6
- package/dist/icons/components/FormFieldIcon.js +0 -6
- package/dist/icons/components/GalleryIcon.js +0 -6
- package/dist/icons/components/GaugeChartIcon.js +0 -6
- package/dist/icons/components/GlobeIcon.js +0 -6
- package/dist/icons/components/GraphicSliderIcon.js +0 -6
- package/dist/icons/components/GridViewIcon.js +0 -6
- package/dist/icons/components/HamburgerMenuIcon.js +0 -6
- package/dist/icons/components/HeadphonesIcon.js +0 -6
- package/dist/icons/components/HeadsetIcon.js +0 -6
- package/dist/icons/components/HealthWellnessIcon.js +0 -6
- package/dist/icons/components/HeatMapIcon.js +0 -6
- package/dist/icons/components/HelpIcon.js +0 -6
- package/dist/icons/components/HighVolumeIcon.js +0 -6
- package/dist/icons/components/HighlightIcon.js +0 -6
- package/dist/icons/components/HistoryIcon.js +0 -6
- package/dist/icons/components/HomeIcon.js +0 -6
- package/dist/icons/components/HotspotIcon.js +0 -6
- package/dist/icons/components/HyperlinkIcon.js +0 -6
- package/dist/icons/components/IceCreamIcon.js +0 -6
- package/dist/icons/components/IgnoredIcon.js +0 -6
- package/dist/icons/components/ImageIcon.js +0 -6
- package/dist/icons/components/ImportedDataIcon.js +0 -6
- package/dist/icons/components/InactiveIcon.js +0 -6
- package/dist/icons/components/IncompleteTranslationsIcon.js +0 -6
- package/dist/icons/components/IndentMoreIcon.js +0 -6
- package/dist/icons/components/InformationIcon.js +0 -6
- package/dist/icons/components/InlineQuestionIcon.js +0 -6
- package/dist/icons/components/InsertLineIcon.js +0 -6
- package/dist/icons/components/IntegerIcon.js +0 -6
- package/dist/icons/components/IntegrationIcon.js +0 -6
- package/dist/icons/components/IntensityHighIcon.js +0 -6
- package/dist/icons/components/IntensityLowIcon.js +0 -6
- package/dist/icons/components/IntensityMediumIcon.js +0 -6
- package/dist/icons/components/InterceptIcon.js +0 -6
- package/dist/icons/components/JoinInnerIcon.js +0 -6
- package/dist/icons/components/JoinLeftOuterIcon.js +0 -6
- package/dist/icons/components/JoinOuterIcon.js +0 -6
- package/dist/icons/components/JoinRightOuterIcon.js +0 -6
- package/dist/icons/components/JourneyMapIcon.js +0 -6
- package/dist/icons/components/KeyboardIcon.js +0 -6
- package/dist/icons/components/LibrariesIcon.js +0 -6
- package/dist/icons/components/LibraryLinkIcon.js +0 -6
- package/dist/icons/components/LightBulbIcon.js +0 -6
- package/dist/icons/components/LightningBoltIcon.js +0 -6
- package/dist/icons/components/LineChartIcon.js +0 -6
- package/dist/icons/components/ListBulletsIcon.js +0 -6
- package/dist/icons/components/ListCheckedIcon.js +0 -6
- package/dist/icons/components/ListNumbersIcon.js +0 -6
- package/dist/icons/components/LocationIcon.js +0 -6
- package/dist/icons/components/LockIcon.js +0 -6
- package/dist/icons/components/LogicTreeIcon.js +0 -6
- package/dist/icons/components/LookAndFeelIcon.js +0 -6
- package/dist/icons/components/LoopAndMergeIcon.js +0 -6
- package/dist/icons/components/LowerCaseIcon.js +0 -6
- package/dist/icons/components/MailboxIcon.js +0 -6
- package/dist/icons/components/MarkerIcon.js +0 -6
- package/dist/icons/components/MatrixTableIcon.js +0 -6
- package/dist/icons/components/MaximizeIcon.js +0 -6
- package/dist/icons/components/MegaphoneIcon.js +0 -6
- package/dist/icons/components/MergeIcon.js +0 -6
- package/dist/icons/components/MetadataIcon.js +0 -6
- package/dist/icons/components/MicrophoneIcon.js +0 -6
- package/dist/icons/components/MicrophoneMuteIcon.js +0 -6
- package/dist/icons/components/MinimizeIcon.js +0 -6
- package/dist/icons/components/MobileLandscapeIcon.js +0 -6
- package/dist/icons/components/MobilePortraitIcon.js +0 -6
- package/dist/icons/components/ModelsIcon.js +0 -6
- package/dist/icons/components/MoonIcon.js +0 -6
- package/dist/icons/components/MouseThrashIcon.js +0 -6
- package/dist/icons/components/MouseTrailIcon.js +0 -6
- package/dist/icons/components/MoveIcon.js +0 -6
- package/dist/icons/components/MultipleChoiceIcon.js +0 -6
- package/dist/icons/components/MusicNoteIcon.js +0 -6
- package/dist/icons/components/NPSIcon.js +0 -6
- package/dist/icons/components/NewCustomerIcon.js +0 -6
- package/dist/icons/components/NewTemplateIcon.js +0 -6
- package/dist/icons/components/NewspaperIcon.js +0 -6
- package/dist/icons/components/NotInFlowIcon.js +0 -6
- package/dist/icons/components/NumbersIcon.js +0 -6
- package/dist/icons/components/ObjectIcon.js +0 -6
- package/dist/icons/components/OnlinePanelIcon.js +0 -6
- package/dist/icons/components/OpenPanelLeftIcon.js +0 -6
- package/dist/icons/components/OpenPanelRightIcon.js +0 -6
- package/dist/icons/components/OrgHierarchyIcon.js +0 -6
- package/dist/icons/components/OutboxIcon.js +0 -6
- package/dist/icons/components/OutdentIcon.js +0 -6
- package/dist/icons/components/PageBreakIcon.js +0 -6
- package/dist/icons/components/PagesIcon.js +0 -6
- package/dist/icons/components/PaginateFilterIcon.js +0 -6
- package/dist/icons/components/PaintBrushIcon.js +0 -6
- package/dist/icons/components/PaintBrushRoundIcon.js +0 -6
- package/dist/icons/components/PaintBucketIcon.js +0 -6
- package/dist/icons/components/PaperClipIcon.js +0 -6
- package/dist/icons/components/ParagraphIcon.js +0 -6
- package/dist/icons/components/ParticipantInviteAutomationIcon.js +0 -6
- package/dist/icons/components/ParticipantPortalIcon.js +0 -6
- package/dist/icons/components/PartlyCloudyIcon.js +0 -6
- package/dist/icons/components/PasswordLockIcon.js +0 -6
- package/dist/icons/components/PauseCircleIcon.js +0 -6
- package/dist/icons/components/PauseIcon.js +0 -6
- package/dist/icons/components/PencilIcon.js +0 -6
- package/dist/icons/components/PercentageIcon.js +0 -6
- package/dist/icons/components/PhoneIcon.js +0 -6
- package/dist/icons/components/PickGroupRankIcon.js +0 -6
- package/dist/icons/components/PieChartIcon.js +0 -6
- package/dist/icons/components/PinIcon.js +0 -6
- package/dist/icons/components/PinToIcon.js +0 -6
- package/dist/icons/components/PipedTextIcon.js +0 -6
- package/dist/icons/components/PlayIcon.js +0 -6
- package/dist/icons/components/PlaybookIcon.js +0 -6
- package/dist/icons/components/PodcastIcon.js +0 -6
- package/dist/icons/components/PointerHandCursorIcon.js +0 -6
- package/dist/icons/components/PortalConfigIcon.js +0 -6
- package/dist/icons/components/PostcardIcon.js +0 -6
- package/dist/icons/components/PowerIcon.js +0 -6
- package/dist/icons/components/PreIcon.js +0 -6
- package/dist/icons/components/PresentationIcon.js +0 -6
- package/dist/icons/components/PrinterIcon.js +0 -6
- package/dist/icons/components/Priority1Icon.js +0 -6
- package/dist/icons/components/Priority2Icon.js +0 -6
- package/dist/icons/components/Priority3Icon.js +0 -6
- package/dist/icons/components/Priority4Icon.js +0 -6
- package/dist/icons/components/PrivateDataIcon.js +0 -6
- package/dist/icons/components/ProgramIcon.js +0 -6
- package/dist/icons/components/ProjectBarIcon.js +0 -6
- package/dist/icons/components/ProjectIcon.js +0 -6
- package/dist/icons/components/PublishIcon.js +0 -6
- package/dist/icons/components/PxLogoIcon.js +0 -6
- package/dist/icons/components/QRCodeIcon.js +0 -6
- package/dist/icons/components/QuestionBlockIcon.js +0 -6
- package/dist/icons/components/QuoteBoxIcon.js +0 -6
- package/dist/icons/components/QuotesIcon.js +0 -6
- package/dist/icons/components/RSSIcon.js +0 -6
- package/dist/icons/components/RageClickIcon.js +0 -6
- package/dist/icons/components/RainyIcon.js +0 -6
- package/dist/icons/components/RaiseHandIcon.js +0 -6
- package/dist/icons/components/RecodedValuesIcon.js +0 -6
- package/dist/icons/components/RecordIcon.js +0 -6
- package/dist/icons/components/RedoIcon.js +0 -6
- package/dist/icons/components/ReferenceBlockIcon.js +0 -6
- package/dist/icons/components/RefreshIcon.js +0 -6
- package/dist/icons/components/RemoveItemIcon.js +0 -6
- package/dist/icons/components/RemoveLinkIcon.js +0 -6
- package/dist/icons/components/ReplyIcon.js +0 -6
- package/dist/icons/components/ReportIcon.js +0 -6
- package/dist/icons/components/ReputationManagementIcon.js +0 -6
- package/dist/icons/components/RetweetIcon.js +0 -6
- package/dist/icons/components/ReusableChoicesIcon.js +0 -6
- package/dist/icons/components/ReverseIcon.js +0 -6
- package/dist/icons/components/RhoIcon.js +0 -6
- package/dist/icons/components/RichTextEditorIcon.js +0 -6
- package/dist/icons/components/RiskIcon.js +0 -6
- package/dist/icons/components/RobotIcon.js +0 -6
- package/dist/icons/components/RolesIcon.js +0 -6
- package/dist/icons/components/SMSIcon.js +0 -6
- package/dist/icons/components/SatisfactionChartsIcon.js +0 -6
- package/dist/icons/components/SaveIcon.js +0 -6
- package/dist/icons/components/ScheduledIcon.js +0 -6
- package/dist/icons/components/SchemaDataIcon.js +0 -6
- package/dist/icons/components/SchemaEditorIcon.js +0 -6
- package/dist/icons/components/ScorecardIcon.js +0 -6
- package/dist/icons/components/ScreenCaptureIcon.js +0 -6
- package/dist/icons/components/SearchAddIcon.js +0 -6
- package/dist/icons/components/SearchIcon.js +0 -6
- package/dist/icons/components/SegmentIcon.js +0 -6
- package/dist/icons/components/SelectColumnIcon.js +0 -6
- package/dist/icons/components/SendIcon.js +0 -6
- package/dist/icons/components/SentenceCaseIcon.js +0 -6
- package/dist/icons/components/SentimentMixedIcon.js +0 -6
- package/dist/icons/components/SentimentNegativeIcon.js +0 -6
- package/dist/icons/components/SentimentNeutralIcon.js +0 -6
- package/dist/icons/components/SentimentPositiveIcon.js +0 -6
- package/dist/icons/components/SentimentVeryNegativeIcon.js +0 -6
- package/dist/icons/components/SentimentVeryPositiveIcon.js +0 -6
- package/dist/icons/components/SettingsIcon.js +0 -6
- package/dist/icons/components/ShareIcon.js +0 -6
- package/dist/icons/components/SharedFolderIcon.js +0 -6
- package/dist/icons/components/ShieldIcon.js +0 -6
- package/dist/icons/components/ShuffleIcon.js +0 -6
- package/dist/icons/components/SideBySideIcon.js +0 -6
- package/dist/icons/components/SignatureIcon.js +0 -6
- package/dist/icons/components/SkipBackIcon.js +0 -6
- package/dist/icons/components/SkipForwardIcon.js +0 -6
- package/dist/icons/components/SkipIcon.js +0 -6
- package/dist/icons/components/SliderIcon.js +0 -6
- package/dist/icons/components/SliderOptionsIcon.js +0 -6
- package/dist/icons/components/SmallCapsIcon.js +0 -6
- package/dist/icons/components/SocialResponseIcon.js +0 -6
- package/dist/icons/components/SortAlphabeticAscendingIcon.js +0 -6
- package/dist/icons/components/SortAlphabeticDescendingIcon.js +0 -6
- package/dist/icons/components/SortBothIcon.js +0 -6
- package/dist/icons/components/SortDownIcon.js +0 -6
- package/dist/icons/components/SortNumberAscendingIcon.js +0 -6
- package/dist/icons/components/SortNumberDescendingIcon.js +0 -6
- package/dist/icons/components/SortUpIcon.js +0 -6
- package/dist/icons/components/SparkleIcon.js +0 -6
- package/dist/icons/components/SpecialCharactersIcon.js +0 -6
- package/dist/icons/components/SpinnerIcon.js +0 -6
- package/dist/icons/components/SquareMinusIcon.js +0 -6
- package/dist/icons/components/SquarePlusIcon.js +0 -6
- package/dist/icons/components/StarFilledIcon.js +0 -6
- package/dist/icons/components/StarHalfIcon.js +0 -6
- package/dist/icons/components/StarOutlinedIcon.js +0 -6
- package/dist/icons/components/StarRankingIcon.js +0 -6
- package/dist/icons/components/StatsAnalysisIcon.js +0 -6
- package/dist/icons/components/StopRecordingIcon.js +0 -6
- package/dist/icons/components/StormyIcon.js +0 -6
- package/dist/icons/components/StrategicAccountsIcon.js +0 -6
- package/dist/icons/components/StudentIcon.js +0 -6
- package/dist/icons/components/SubscriptIcon.js +0 -6
- package/dist/icons/components/SubtractIcon.js +0 -6
- package/dist/icons/components/SuccessIcon.js +0 -6
- package/dist/icons/components/SumIcon.js +0 -6
- package/dist/icons/components/SunnyIcon.js +0 -6
- package/dist/icons/components/SuperscriptIcon.js +0 -6
- package/dist/icons/components/SurveyCompleteIcon.js +0 -6
- package/dist/icons/components/SurveyDirectorIcon.js +0 -6
- package/dist/icons/components/SurveyExpiredIcon.js +0 -6
- package/dist/icons/components/SurveyIQIcon.js +0 -6
- package/dist/icons/components/SurveyIcon.js +0 -6
- package/dist/icons/components/SurveyInviteIcon.js +0 -6
- package/dist/icons/components/TableAppendIcon.js +0 -6
- package/dist/icons/components/TableIcon.js +0 -6
- package/dist/icons/components/TabletIcon.js +0 -6
- package/dist/icons/components/TagIcon.js +0 -6
- package/dist/icons/components/TeacherIcon.js +0 -6
- package/dist/icons/components/TemplateIcon.js +0 -6
- package/dist/icons/components/TextAlignCenterIcon.js +0 -6
- package/dist/icons/components/TextAlignJustifiedIcon.js +0 -6
- package/dist/icons/components/TextAlignLeftIcon.js +0 -6
- package/dist/icons/components/TextAlignRightIcon.js +0 -6
- package/dist/icons/components/TextAnalysisIcon.js +0 -6
- package/dist/icons/components/TextBlockIcon.js +0 -6
- package/dist/icons/components/TextBoldIcon.js +0 -6
- package/dist/icons/components/TextBottomToTopIcon.js +0 -6
- package/dist/icons/components/TextColorIcon.js +0 -6
- package/dist/icons/components/TextColorLetterIcon.js +0 -6
- package/dist/icons/components/TextColorSwatchIcon.js +0 -6
- package/dist/icons/components/TextEntryIcon.js +0 -6
- package/dist/icons/components/TextItalicIcon.js +0 -6
- package/dist/icons/components/TextLeftToRightIcon.js +0 -6
- package/dist/icons/components/TextRightToLeftIcon.js +0 -6
- package/dist/icons/components/TextStrikeThroughIcon.js +0 -6
- package/dist/icons/components/TextUnderlineIcon.js +0 -6
- package/dist/icons/components/ThirdPartyQuestionIcon.js +0 -6
- package/dist/icons/components/ThreeSixtyProjectIcon.js +0 -6
- package/dist/icons/components/ThumbsDownIcon.js +0 -6
- package/dist/icons/components/ThumbsUpIcon.js +0 -6
- package/dist/icons/components/TicketsIcon.js +0 -6
- package/dist/icons/components/TimingIcon.js +0 -6
- package/dist/icons/components/ToolsIcon.js +0 -6
- package/dist/icons/components/TransactionIcon.js +0 -6
- package/dist/icons/components/TranslationIcon.js +0 -6
- package/dist/icons/components/TrashIcon.js +0 -6
- package/dist/icons/components/UndetectedIcon.js +0 -6
- package/dist/icons/components/UndoIcon.js +0 -6
- package/dist/icons/components/UnionIcon.js +0 -6
- package/dist/icons/components/UniqueLinkIcon.js +0 -6
- package/dist/icons/components/UnlinkIcon.js +0 -6
- package/dist/icons/components/UnlockIcon.js +0 -6
- package/dist/icons/components/UnpinIcon.js +0 -6
- package/dist/icons/components/UpDownIcon.js +0 -6
- package/dist/icons/components/UploadIcon.js +0 -6
- package/dist/icons/components/UpperCaseIcon.js +0 -6
- package/dist/icons/components/UpvoteFilledIcon.js +0 -6
- package/dist/icons/components/UpvoteIcon.js +0 -6
- package/dist/icons/components/UserGroupIcon.js +0 -6
- package/dist/icons/components/UserIcon.js +0 -6
- package/dist/icons/components/UserLockedIcon.js +0 -6
- package/dist/icons/components/ValidationIcon.js +0 -6
- package/dist/icons/components/VariableNamingIcon.js +0 -6
- package/dist/icons/components/VideoIcon.js +0 -6
- package/dist/icons/components/ViewOffIcon.js +0 -6
- package/dist/icons/components/ViewOnIcon.js +0 -6
- package/dist/icons/components/VocalizeDashboardIcon.js +0 -6
- package/dist/icons/components/VolumeIcon.js +0 -6
- package/dist/icons/components/VolumeLowIcon.js +0 -6
- package/dist/icons/components/VolumeMuteIcon.js +0 -6
- package/dist/icons/components/WaffleMenuIcon.js +0 -6
- package/dist/icons/components/WarningIcon.js +0 -6
- package/dist/icons/components/WebhookIcon.js +0 -6
- package/dist/icons/components/WhatsAppIcon.js +0 -6
- package/dist/icons/components/WidgetsIcon.js +0 -6
- package/dist/icons/components/WifiIcon.js +0 -6
- package/dist/icons/components/WorkflowsIcon.js +0 -6
- package/dist/icons/components/WorkingFromHomeIcon.js +0 -6
- package/dist/icons/createIconComponent.js +0 -41
- package/dist/icons/index.d.ts +0 -1004
- package/dist/icons/index.es.js +0 -496
- package/dist/icons/index.js +0 -505
- package/dist/index.d.ts +0 -2100
- package/dist/index.es.js +0 -106
- package/dist/index.js +0 -128
- package/dist/next/AdvancedTable/AdvancedTable.js +0 -920
- package/dist/next/AdvancedTable/AdvancedTable2.js +0 -8
- package/dist/next/AdvancedTable/AdvancedTableCell.js +0 -104
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +0 -57
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +0 -330
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +0 -141
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +0 -24
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +0 -35
- package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +0 -20
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +0 -36
- package/dist/next/AdvancedTable/AdvancedTableRow.js +0 -37
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +0 -50
- package/dist/next/AdvancedTable/AdvancedTableTypes.js +0 -18
- package/dist/next/AdvancedTable/index.js +0 -3
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +0 -171
- package/dist/next/AdvancedTable/useComputedWidth.js +0 -9
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +0 -133
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +0 -8
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +0 -30
- package/dist/next/CollapsibleSearchInput/index.js +0 -1
- package/dist/next/Combobox/Combobox.js +0 -85
- package/dist/next/Combobox/Combobox2.js +0 -8
- package/dist/next/Combobox/ComboboxContext.js +0 -9
- package/dist/next/Combobox/ComboboxFlyout.js +0 -53
- package/dist/next/Combobox/ComboboxGroup.js +0 -55
- package/dist/next/Combobox/ComboboxGroupContext.js +0 -19
- package/dist/next/Combobox/ComboboxInput.js +0 -154
- package/dist/next/Combobox/ComboboxOption.js +0 -76
- package/dist/next/Combobox/hooks/index.js +0 -7
- package/dist/next/Combobox/hooks/useComboboxFilteredGroup/index.js +0 -1
- package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +0 -43
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/index.js +0 -1
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +0 -290
- package/dist/next/Combobox/hooks/useComboboxLoadingState/index.js +0 -1
- package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +0 -56
- package/dist/next/Combobox/hooks/useComboboxValue/index.js +0 -1
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +0 -35
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/index.js +0 -1
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +0 -54
- package/dist/next/Combobox/hooks/useSelectedOptionScroll/index.js +0 -1
- package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +0 -32
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/index.js +0 -1
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +0 -28
- package/dist/next/Combobox/index.js +0 -5
- package/dist/next/Combobox/utils/index.js +0 -1
- package/dist/next/Combobox/utils/nodeRegistration/index.js +0 -1
- package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +0 -35
- package/dist/next/Drawer/Drawer.js +0 -134
- package/dist/next/Drawer/Drawer2.js +0 -8
- package/dist/next/Drawer/index.js +0 -1
- package/dist/next/FilterAnchor/FilterAnchor.js +0 -101
- package/dist/next/FilterAnchor/FilterAnchor2.js +0 -8
- package/dist/next/FilterAnchor/index.js +0 -1
- package/dist/next/Input/Input.js +0 -75
- package/dist/next/Input/Input2.js +0 -8
- package/dist/next/Input/index.js +0 -1
- package/dist/next/Menu/Menu.js +0 -90
- package/dist/next/Menu/Menu2.js +0 -8
- package/dist/next/Menu/MenuButton.js +0 -64
- package/dist/next/Menu/MenuContext.js +0 -39
- package/dist/next/Menu/MenuItem.js +0 -81
- package/dist/next/Menu/MenuPane.js +0 -170
- package/dist/next/Menu/MenuSearch.js +0 -37
- package/dist/next/Menu/SubMenu.js +0 -202
- package/dist/next/Menu/constants.js +0 -19
- package/dist/next/Menu/index.js +0 -5
- package/dist/next/Menu/useMutationObserver.js +0 -17
- package/dist/next/Menu/usePaneSearch.js +0 -126
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +0 -121
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +0 -8
- package/dist/next/PhoneNumberInput/index.js +0 -1
- package/dist/next/SplitButton/SplitButton.js +0 -96
- package/dist/next/SplitButton/SplitButton2.js +0 -8
- package/dist/next/SplitButton/SplitButtonOption.js +0 -22
- package/dist/next/SplitButton/index.js +0 -2
- package/dist/next/Stack/HStack.js +0 -11
- package/dist/next/Stack/Stack.js +0 -95
- package/dist/next/Stack/StackItem.js +0 -37
- package/dist/next/Stack/VStack.js +0 -11
- package/dist/next/Stack/index.js +0 -3
- package/dist/next/TimePicker/TimeDropdown.js +0 -77
- package/dist/next/TimePicker/TimeInput.js +0 -86
- package/dist/next/TimePicker/TimePicker.js +0 -234
- package/dist/next/TimePicker/TimePicker2.js +0 -8
- package/dist/next/TimePicker/TimePickerIcon.js +0 -35
- package/dist/next/TimePicker/index.js +0 -1
- package/dist/next/TimePicker/utils.js +0 -176
- package/dist/next/ToggleButton/ToggleButton.js +0 -74
- package/dist/next/ToggleButton/ToggleButtonGroup.js +0 -40
- package/dist/next/ToggleButton/ToggleButtonGroupContext.js +0 -9
- package/dist/next/ToggleButton/index.js +0 -2
- package/dist/next/ToggleButton/styles.js +0 -8
- package/dist/next/index.d.ts +0 -470
- package/dist/next/index.es.js +0 -38
- package/dist/next/index.js +0 -4968
- package/dist/translations-en.js +0 -69
- package/dist/utils/Flyout/Flyout.js +0 -58
- package/dist/utils/Flyout/Flyout2.js +0 -8
- package/dist/utils/Flyout/FlyoutHeader.js +0 -24
- package/dist/utils/Flyout/FlyoutOption.js +0 -31
- package/dist/utils/Flyout/index.js +0 -3
- package/dist/utils/Popper/Popper.js +0 -191
- package/dist/utils/Popper/Popper2.js +0 -8
- package/dist/utils/Popper/PopperContext.js +0 -11
- package/dist/utils/Popper/index.js +0 -1
- package/dist/utils/Portal/Portal.js +0 -26
- package/dist/utils/Portal/index.js +0 -1
- package/dist/utils/Text/Text.js +0 -38
- package/dist/utils/Text/index.js +0 -1
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +0 -50
- package/dist/utils/TextOverflowTooltip/index.js +0 -1
- package/dist/utils/Translation/Translate.js +0 -65
- package/dist/utils/Translation/TranslationProvider.js +0 -26
- package/dist/utils/Translation/containsComponentOrElement.js +0 -22
- package/dist/utils/Translation/index.js +0 -3
- package/dist/utils/Translation/insertPlaceholders.js +0 -13
- package/dist/utils/Translation/useTranslation.js +0 -50
- package/dist/utils/canUseDOM/canUseDOM.js +0 -9
- package/dist/utils/canUseDOM/index.js +0 -1
- package/dist/utils/concatIds/concatIds.js +0 -13
- package/dist/utils/concatIds/index.js +0 -1
- package/dist/utils/constants.js +0 -25
- package/dist/utils/createContextUtilities/createContextUtilities.js +0 -19
- package/dist/utils/createContextUtilities/index.js +0 -1
- package/dist/utils/filterChildren/filterChildren.js +0 -53
- package/dist/utils/filterChildren/index.js +0 -1
- package/dist/utils/getSubDataTestId/getSubDataTestId.js +0 -14
- package/dist/utils/getSubDataTestId/index.js +0 -1
- package/dist/utils/index.js +0 -16
- package/dist/utils/mediaQueryManager/index.js +0 -1
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +0 -48
- package/dist/utils/mergeRefs/index.js +0 -1
- package/dist/utils/mergeRefs/mergeRefs.js +0 -27
- package/dist/utils/sharedTypes.js +0 -1
- package/dist/utils/wrapAround/index.js +0 -1
- package/dist/utils/wrapAround/wrapAround.js +0 -23
- package/dist/utils/wrapEvent/index.js +0 -1
- package/dist/utils/wrapEvent/wrapEvent.js +0 -18
- package/icons/package.json +0 -24
- package/next/package.json +0 -27
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { forwardRef } from 'react';
|
|
3
|
-
import '../../utils/index.js';
|
|
4
|
-
import { useComboboxContext } from './ComboboxContext.js';
|
|
5
|
-
import Popper from '../../utils/Popper/Popper.js';
|
|
6
|
-
import { FLYOUT_POPPER_OFFSET } from '../../utils/constants.js';
|
|
7
|
-
import { Flyout } from '../../utils/Flyout/Flyout.js';
|
|
8
|
-
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
9
|
-
|
|
10
|
-
const ComboboxList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
11
|
-
let {
|
|
12
|
-
children,
|
|
13
|
-
style = {},
|
|
14
|
-
placement = 'bottom-start',
|
|
15
|
-
portalTarget,
|
|
16
|
-
id: externalId,
|
|
17
|
-
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
18
|
-
'aria-label': ariaLabelFromProps,
|
|
19
|
-
'aria-labelledby': ariaLabelledbyFromProps,
|
|
20
|
-
...rest
|
|
21
|
-
} = _ref;
|
|
22
|
-
const {
|
|
23
|
-
isOpen,
|
|
24
|
-
inputRef,
|
|
25
|
-
listRef,
|
|
26
|
-
isLoading,
|
|
27
|
-
listContainerId,
|
|
28
|
-
ariaLabel,
|
|
29
|
-
ariaLabelledby
|
|
30
|
-
} = useComboboxContext();
|
|
31
|
-
return /*#__PURE__*/React__default.createElement(Popper, {
|
|
32
|
-
open: isOpen,
|
|
33
|
-
placement: placement,
|
|
34
|
-
modifiers: [{
|
|
35
|
-
name: 'offset',
|
|
36
|
-
options: {
|
|
37
|
-
offset: FLYOUT_POPPER_OFFSET
|
|
38
|
-
}
|
|
39
|
-
}],
|
|
40
|
-
portalTarget: portalTarget,
|
|
41
|
-
anchorNode: inputRef.current,
|
|
42
|
-
popper: /*#__PURE__*/React__default.createElement(Flyout, _extends({}, rest, {
|
|
43
|
-
isLoading: isLoading,
|
|
44
|
-
ref: mergeRefs(ref, listRef),
|
|
45
|
-
anchorRef: inputRef,
|
|
46
|
-
style: inputRef.current ? {
|
|
47
|
-
minWidth: inputRef.current.offsetWidth,
|
|
48
|
-
...style
|
|
49
|
-
} : style,
|
|
50
|
-
id: listContainerId,
|
|
51
|
-
"aria-label": ariaLabelFromProps !== null && ariaLabelFromProps !== void 0 ? ariaLabelFromProps : ariaLabel,
|
|
52
|
-
"aria-labelledby": ariaLabelledbyFromProps !== null && ariaLabelledbyFromProps !== void 0 ? ariaLabelledbyFromProps : ariaLabelledby
|
|
53
|
-
}), children)
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
export { ComboboxList as default };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import '../../utils/index.js';
|
|
4
|
-
import { FlyoutOption } from '../../utils/Flyout/FlyoutOption.js';
|
|
5
|
-
import wrapEvent from '../../utils/wrapEvent/wrapEvent.js';
|
|
6
|
-
|
|
7
|
-
const ComboboxOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
8
|
-
let {
|
|
9
|
-
children,
|
|
10
|
-
value,
|
|
11
|
-
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
12
|
-
label,
|
|
13
|
-
onSelect,
|
|
14
|
-
onClick,
|
|
15
|
-
onMouseDown,
|
|
16
|
-
...rest
|
|
17
|
-
} = _ref;
|
|
18
|
-
return /*#__PURE__*/React__default.createElement(FlyoutOption, _extends({}, rest, {
|
|
19
|
-
onClick: wrapEvent(onClick, onSelect),
|
|
20
|
-
onMouseDown: wrapEvent(onMouseDown, e => e.preventDefault()),
|
|
21
|
-
ref: ref
|
|
22
|
-
}), children !== undefined ? children : label);
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
export { ComboboxOption as default };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as Combobox } from './Combobox.js';
|
|
2
|
-
export { default as ComboboxOption } from './ComboboxOption.js';
|
|
3
|
-
export { default as ComboboxHeader } from './ComboboxHeader.js';
|
|
4
|
-
export { default as ComboboxList } from './ComboboxList.js';
|
|
5
|
-
export { default as ComboboxInput } from './ComboboxInput.js';
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import React__default, { useState, useEffect } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import styles from './ConfigPane2.js';
|
|
4
|
-
import '../../icons/index.es.js';
|
|
5
|
-
import '../../utils/index.js';
|
|
6
|
-
import '../Tooltip/index.js';
|
|
7
|
-
import '../IconButton/index.js';
|
|
8
|
-
import '../../hooks/index.js';
|
|
9
|
-
import { DATA_TESTID_SUFFIXES } from './constants.js';
|
|
10
|
-
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
11
|
-
import useEventListener from '../../hooks/useEventListener/useEventListener.js';
|
|
12
|
-
import Tooltip from '../Tooltip/Tooltip.js';
|
|
13
|
-
import ChevronLeftIcon from '../../icons/components/ChevronLeftIcon.js';
|
|
14
|
-
import ChevronRightIcon from '../../icons/components/ChevronRightIcon.js';
|
|
15
|
-
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
16
|
-
import useId from '../../hooks/useId/useId.js';
|
|
17
|
-
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
18
|
-
import useIsHovered from '../../hooks/useIsHovered/useIsHovered.js';
|
|
19
|
-
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
20
|
-
import IconButton from '../IconButton/IconButton.js';
|
|
21
|
-
import UnpinIcon from '../../icons/components/UnpinIcon.js';
|
|
22
|
-
import PinIcon from '../../icons/components/PinIcon.js';
|
|
23
|
-
|
|
24
|
-
const ExpandCollapseButton = _ref => {
|
|
25
|
-
let {
|
|
26
|
-
isOpen,
|
|
27
|
-
isTransitioning,
|
|
28
|
-
onClick,
|
|
29
|
-
panelId,
|
|
30
|
-
isContainerHovered,
|
|
31
|
-
'data-testid': dataTestId
|
|
32
|
-
} = _ref;
|
|
33
|
-
const {
|
|
34
|
-
translate
|
|
35
|
-
} = useTranslation();
|
|
36
|
-
const showPanelLabel = translate('configPane.showPanel');
|
|
37
|
-
const hidePanelLabel = translate('configPane.hidePanel');
|
|
38
|
-
const [isTooltipVisible, setIsTooltipVisible] = useState(false);
|
|
39
|
-
const [isHiddenByEscape, setIsHiddenByEscape] = useState(false);
|
|
40
|
-
const handleKeyDown = event => {
|
|
41
|
-
if (event.key === 'Escape' && isOpen) {
|
|
42
|
-
// Prevent Safari from exiting full-screen mode
|
|
43
|
-
if (!isHiddenByEscape) event.preventDefault();
|
|
44
|
-
setIsHiddenByEscape(true);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
useEffect(() => {
|
|
48
|
-
setIsHiddenByEscape(false);
|
|
49
|
-
}, [isContainerHovered]);
|
|
50
|
-
useEventListener(document, 'keydown', handleKeyDown);
|
|
51
|
-
return /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
52
|
-
content: isOpen ? hidePanelLabel : showPanelLabel,
|
|
53
|
-
delayMs: 500,
|
|
54
|
-
placement: "right",
|
|
55
|
-
disabled: isTransitioning,
|
|
56
|
-
lightTheme: true,
|
|
57
|
-
onShowChange: setIsTooltipVisible,
|
|
58
|
-
show: isTooltipVisible && !isHiddenByEscape
|
|
59
|
-
}, /*#__PURE__*/React__default.createElement("button", {
|
|
60
|
-
type: "button",
|
|
61
|
-
"aria-label": isOpen ? hidePanelLabel : showPanelLabel,
|
|
62
|
-
className: classNames(styles.toolbarPanelExpandCollapseButton, {
|
|
63
|
-
[styles.overrideShow]: isTooltipVisible,
|
|
64
|
-
[styles.overrideHide]: isHiddenByEscape
|
|
65
|
-
}),
|
|
66
|
-
"aria-expanded": isOpen,
|
|
67
|
-
"aria-controls": panelId,
|
|
68
|
-
onClick: onClick,
|
|
69
|
-
"data-testid": dataTestId,
|
|
70
|
-
onBlur: () => setIsHiddenByEscape(false)
|
|
71
|
-
}, /*#__PURE__*/React__default.createElement("span", null, isOpen ? /*#__PURE__*/React__default.createElement(ChevronLeftIcon, {
|
|
72
|
-
size: "small",
|
|
73
|
-
"aria-hidden": "true"
|
|
74
|
-
}) : /*#__PURE__*/React__default.createElement(ChevronRightIcon, {
|
|
75
|
-
size: "small",
|
|
76
|
-
"aria-hidden": "true"
|
|
77
|
-
}))));
|
|
78
|
-
};
|
|
79
|
-
const ConfigPane = _ref2 => {
|
|
80
|
-
let {
|
|
81
|
-
id,
|
|
82
|
-
title,
|
|
83
|
-
children,
|
|
84
|
-
shouldShowPanelPreview = false,
|
|
85
|
-
isOpen: externalIsOpen,
|
|
86
|
-
onIsOpenChange,
|
|
87
|
-
hideOpenButton = false,
|
|
88
|
-
isPinned: externalIsPinned,
|
|
89
|
-
onIsPinnedChange,
|
|
90
|
-
hidePinButton = false,
|
|
91
|
-
'aria-label': ariaLabel,
|
|
92
|
-
'aria-labelledby': ariaLabelledby,
|
|
93
|
-
'aria-describedby': ariaDescribedBy,
|
|
94
|
-
'data-testid': dataTestId
|
|
95
|
-
} = _ref2;
|
|
96
|
-
const [isTransitioning, setIsTransitioning] = useState(false);
|
|
97
|
-
const [isOpen, setIsOpen] = useControllableState(true, onIsOpenChange, externalIsOpen);
|
|
98
|
-
const [isPinned, setIsPinned] = useControllableState(true, onIsPinnedChange, externalIsPinned);
|
|
99
|
-
const panelId = useId(id);
|
|
100
|
-
useDidUpdate(() => {
|
|
101
|
-
setIsTransitioning(true);
|
|
102
|
-
}, [isOpen]);
|
|
103
|
-
const {
|
|
104
|
-
translate
|
|
105
|
-
} = useTranslation();
|
|
106
|
-
const pinPanelLabel = translate('configPane.pinPanel');
|
|
107
|
-
const unpinPanelLabel = translate('configPane.unpinPanel');
|
|
108
|
-
const toggleOpen = () => setIsOpen(currentIsOpen => !currentIsOpen);
|
|
109
|
-
const [isContainerHoveredRef, isContainerHovered] = useIsHovered();
|
|
110
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
111
|
-
className: classNames(styles.paneContainer, {
|
|
112
|
-
[styles.hidden]: !isOpen,
|
|
113
|
-
[styles.unpinned]: !isPinned,
|
|
114
|
-
[styles.transitioning]: isTransitioning,
|
|
115
|
-
[styles.preview]: shouldShowPanelPreview,
|
|
116
|
-
[styles.openHidden]: hideOpenButton
|
|
117
|
-
}),
|
|
118
|
-
onTransitionEnd: () => setIsTransitioning(false),
|
|
119
|
-
ref: isContainerHoveredRef
|
|
120
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
121
|
-
className: styles.spacer
|
|
122
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
123
|
-
className: styles.paneContentContainer,
|
|
124
|
-
onClick: shouldShowPanelPreview && !isOpen ? toggleOpen : undefined
|
|
125
|
-
}, /*#__PURE__*/React__default.createElement("aside", {
|
|
126
|
-
"aria-label": ariaLabel,
|
|
127
|
-
"aria-labelledby": ariaLabelledby,
|
|
128
|
-
"aria-describedby": ariaDescribedBy,
|
|
129
|
-
"data-testid": dataTestId,
|
|
130
|
-
id: panelId,
|
|
131
|
-
className: styles.paneContent
|
|
132
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
133
|
-
className: styles.paneContentInner
|
|
134
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
135
|
-
className: styles.header
|
|
136
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
137
|
-
className: styles.title,
|
|
138
|
-
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES.TITLE)
|
|
139
|
-
}, title), !hidePinButton && /*#__PURE__*/React__default.createElement("div", {
|
|
140
|
-
className: styles.pinButton
|
|
141
|
-
}, /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
142
|
-
content: isPinned ? unpinPanelLabel : pinPanelLabel,
|
|
143
|
-
delayMs: 500,
|
|
144
|
-
lightTheme: true,
|
|
145
|
-
"aria-hidden": true
|
|
146
|
-
}, /*#__PURE__*/React__default.createElement(IconButton, {
|
|
147
|
-
"aria-label": isPinned ? unpinPanelLabel : pinPanelLabel,
|
|
148
|
-
onClick: () => setIsPinned(currentIsPinned => !currentIsPinned),
|
|
149
|
-
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES.PIN_UNPIN_BUTTON)
|
|
150
|
-
}, isPinned ? /*#__PURE__*/React__default.createElement(UnpinIcon, null) : /*#__PURE__*/React__default.createElement(PinIcon, null))))), /*#__PURE__*/React__default.createElement("div", {
|
|
151
|
-
className: styles.body,
|
|
152
|
-
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES.BODY)
|
|
153
|
-
}, children)))), !hideOpenButton &&
|
|
154
|
-
/*#__PURE__*/
|
|
155
|
-
/*
|
|
156
|
-
the following element is clickable but doesn't need an accessible role since it is
|
|
157
|
-
purely a visual convenience for opening the panel. Keyboard users can use the
|
|
158
|
-
expand/collapse button to achieve the same functionality
|
|
159
|
-
*/
|
|
160
|
-
/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
|
|
161
|
-
React__default.createElement("div", {
|
|
162
|
-
className: styles.clickableArea,
|
|
163
|
-
onClick: toggleOpen
|
|
164
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
165
|
-
className: styles.hoverBorder
|
|
166
|
-
}), /*#__PURE__*/React__default.createElement(ExpandCollapseButton, {
|
|
167
|
-
isOpen: isOpen,
|
|
168
|
-
onClick: toggleOpen,
|
|
169
|
-
isTransitioning: isTransitioning,
|
|
170
|
-
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES.EXPAND_COLLAPSE_BUTTON),
|
|
171
|
-
isContainerHovered: isContainerHovered,
|
|
172
|
-
panelId: panelId
|
|
173
|
-
})));
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
export { ConfigPane };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = "._E2GIe{grid-area:configPane;position:relative;height:100%}._vuJmA{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._4qVIz._ZJXIG ._vuJmA,._4qVIz:not(._P1Yh4) ._vuJmA{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._P1Yh4 ._vuJmA{width:0}._ZJXIG._P1Yh4 ._vuJmA{width:30px;cursor:pointer}._eVUlX ._vuJmA{border-right-color:#eee}._N5Rpk{height:100%;position:relative;width:292px}._4qVIz ._N5Rpk,._P1Yh4 ._N5Rpk{width:0}._ZJXIG._4qVIz ._N5Rpk,._ZJXIG._P1Yh4 ._N5Rpk{width:30px}._XhiCy ._N5Rpk{transition:width .5s}._Ka6Wn{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._P1Yh4 ._Ka6Wn{visibility:hidden}._XhiCy ._Ka6Wn{visibility:visible}._Ka6Wn ._XrvX4{width:252px;margin-left:20px}._aIUXR{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._LaAU4{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._LaAU4 *{font-weight:400;font-size:16px;margin:0}._Dhg74{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._P1Yh4 ._Dhg74{left:0}._ZJXIG._P1Yh4 ._Dhg74{left:30px}._Dhg74 ._cncQ4{width:4px;height:100%}._Dhg74:hover ._cncQ4,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._cncQ4{background-color:#9dc5ed}._Dhg74:hover ._kqMgw>span,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw>span{background-color:#0b6ed0;border-color:#0b6ed0}._Dhg74:hover ._kqMgw>span>svg,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw>span>svg{fill:#fff}._Dhg74:hover ._kqMgw:active>span,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw:active>span{background-color:#0854a1;border-color:#0854a1}._Dhg74:hover ._kqMgw:active>span>svg,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw:active>span>svg{fill:#fff}._Dhg74 ._kqMgw{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._Dhg74 ._kqMgw._r6PkM._r6PkM._r6PkM{opacity:1}._Dhg74 ._kqMgw._kkWEP._kkWEP._kkWEP{opacity:0}._Dhg74 ._kqMgw:active>span{background-color:#0854a1;border-color:#0854a1}._Dhg74 ._kqMgw:active>span>svg{fill:#fff}._Dhg74 ._kqMgw>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._Dhg74 ._kqMgw>span>svg{fill:#515559;border-radius:50%}._Dhg74:hover ._kqMgw,._P1Yh4 ._Dhg74 ._kqMgw,._vuJmA:hover+._Dhg74 ._kqMgw{opacity:1}._kqMgw.focus-visible,._kqMgw:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
4
|
-
var styles = {"paneContainer":"_E2GIe","paneContentContainer":"_vuJmA","unpinned":"_4qVIz","hidden":"_P1Yh4","preview":"_ZJXIG","openHidden":"_eVUlX","spacer":"_N5Rpk","transitioning":"_XhiCy","paneContent":"_Ka6Wn","paneContentInner":"_XrvX4","header":"_aIUXR","title":"_LaAU4","clickableArea":"_Dhg74","hoverBorder":"_cncQ4","toolbarPanelExpandCollapseButton":"_kqMgw","overrideShow":"_r6PkM","overrideHide":"_kkWEP"};
|
|
5
|
-
var stylesheet="._E2GIe{grid-area:configPane;position:relative;height:100%}._vuJmA{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._4qVIz._ZJXIG ._vuJmA,._4qVIz:not(._P1Yh4) ._vuJmA{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._P1Yh4 ._vuJmA{width:0}._ZJXIG._P1Yh4 ._vuJmA{width:30px;cursor:pointer}._eVUlX ._vuJmA{border-right-color:#eee}._N5Rpk{height:100%;position:relative;width:292px}._4qVIz ._N5Rpk,._P1Yh4 ._N5Rpk{width:0}._ZJXIG._4qVIz ._N5Rpk,._ZJXIG._P1Yh4 ._N5Rpk{width:30px}._XhiCy ._N5Rpk{transition:width .5s}._Ka6Wn{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._P1Yh4 ._Ka6Wn{visibility:hidden}._XhiCy ._Ka6Wn{visibility:visible}._Ka6Wn ._XrvX4{width:252px;margin-left:20px}._aIUXR{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._LaAU4{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._LaAU4 *{font-weight:400;font-size:16px;margin:0}._Dhg74{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._P1Yh4 ._Dhg74{left:0}._ZJXIG._P1Yh4 ._Dhg74{left:30px}._Dhg74 ._cncQ4{width:4px;height:100%}._Dhg74:hover ._cncQ4,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._cncQ4{background-color:#9dc5ed}._Dhg74:hover ._kqMgw>span,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw>span{background-color:#0b6ed0;border-color:#0b6ed0}._Dhg74:hover ._kqMgw>span>svg,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw>span>svg{fill:#fff}._Dhg74:hover ._kqMgw:active>span,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw:active>span{background-color:#0854a1;border-color:#0854a1}._Dhg74:hover ._kqMgw:active>span>svg,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw:active>span>svg{fill:#fff}._Dhg74 ._kqMgw{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._Dhg74 ._kqMgw._r6PkM._r6PkM._r6PkM{opacity:1}._Dhg74 ._kqMgw._kkWEP._kkWEP._kkWEP{opacity:0}._Dhg74 ._kqMgw:active>span{background-color:#0854a1;border-color:#0854a1}._Dhg74 ._kqMgw:active>span>svg{fill:#fff}._Dhg74 ._kqMgw>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._Dhg74 ._kqMgw>span>svg{fill:#515559;border-radius:50%}._Dhg74:hover ._kqMgw,._P1Yh4 ._Dhg74 ._kqMgw,._vuJmA:hover+._Dhg74 ._kqMgw{opacity:1}._kqMgw.focus-visible,._kqMgw:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
6
|
-
styleInject(css_248z);
|
|
7
|
-
|
|
8
|
-
export { styles as default, stylesheet };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ConfigPane } from './ConfigPane.js';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import styles from './Divider2.js';
|
|
5
|
-
|
|
6
|
-
const Divider = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
7
|
-
let {
|
|
8
|
-
className,
|
|
9
|
-
...rest
|
|
10
|
-
} = _ref;
|
|
11
|
-
return /*#__PURE__*/React__default.createElement("hr", _extends({
|
|
12
|
-
ref: ref,
|
|
13
|
-
className: classNames(className, styles.divider)
|
|
14
|
-
}, rest));
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export { Divider as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = "._rcZjV{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
4
|
-
var styles = {"divider":"_rcZjV"};
|
|
5
|
-
var stylesheet="._rcZjV{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
6
|
-
styleInject(css_248z);
|
|
7
|
-
|
|
8
|
-
export { styles as default, stylesheet };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Divider } from './Divider.js';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React__default, { createContext } from 'react';
|
|
2
|
-
import { DescendantProvider, useDescendant } from './reach-descendants.js';
|
|
3
|
-
|
|
4
|
-
const noop = param => {}; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
-
|
|
6
|
-
const ChildIndexContext = /*#__PURE__*/createContext({
|
|
7
|
-
descendants: [],
|
|
8
|
-
registerDescendant: noop,
|
|
9
|
-
unregisterDescendant: noop
|
|
10
|
-
});
|
|
11
|
-
const ChildIndexProvider = _ref => {
|
|
12
|
-
let {
|
|
13
|
-
items,
|
|
14
|
-
setItems,
|
|
15
|
-
children
|
|
16
|
-
} = _ref;
|
|
17
|
-
return /*#__PURE__*/React__default.createElement(DescendantProvider, {
|
|
18
|
-
context: ChildIndexContext,
|
|
19
|
-
items: items,
|
|
20
|
-
set: setItems
|
|
21
|
-
}, children);
|
|
22
|
-
};
|
|
23
|
-
function useChildIndex(_ref2) {
|
|
24
|
-
let {
|
|
25
|
-
element,
|
|
26
|
-
...rest
|
|
27
|
-
} = _ref2;
|
|
28
|
-
return useDescendant({
|
|
29
|
-
element,
|
|
30
|
-
...rest
|
|
31
|
-
}, ChildIndexContext);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { ChildIndexContext, ChildIndexProvider, useChildIndex };
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import React__default, { useState, useContext, useCallback, useMemo } from 'react';
|
|
2
|
-
import '../../../hooks/index.js';
|
|
3
|
-
import usePrevious from '../../../hooks/usePrevious/usePrevious.js';
|
|
4
|
-
import useSSRLayoutEffect from '../../../hooks/useSSRLayoutEffect/useSSRLayoutEffect.js';
|
|
5
|
-
|
|
6
|
-
/* eslint-disable @typescript-eslint/no-shadow */
|
|
7
|
-
/**
|
|
8
|
-
* This hook registers our descendant by passing it into an array. We can then
|
|
9
|
-
* search that array by to find its index when registering it in the component.
|
|
10
|
-
* We use this for focus management, keyboard navigation, and typeahead
|
|
11
|
-
* functionality for some components.
|
|
12
|
-
*
|
|
13
|
-
* The hook accepts the element node and (optionally) a key. The key is useful
|
|
14
|
-
* if multiple descendants have identical text values and we need to
|
|
15
|
-
* differentiate siblings for some reason.
|
|
16
|
-
*
|
|
17
|
-
* Our main goals with this are:
|
|
18
|
-
* 1) maximum composability,
|
|
19
|
-
* 2) minimal API friction
|
|
20
|
-
* 3) SSR compatibility*
|
|
21
|
-
* 4) concurrent safe
|
|
22
|
-
* 5) index always up-to-date with the tree despite changes
|
|
23
|
-
* 6) works with memoization of any component in the tree (hopefully)
|
|
24
|
-
*
|
|
25
|
-
* * As for SSR, the good news is that we don't actually need the index on the
|
|
26
|
-
* server for most use-cases, as we are only using it to determine the order of
|
|
27
|
-
* composed descendants for keyboard navigation. However, in the few cases where
|
|
28
|
-
* this is not the case, we can require an explicit index from the app.
|
|
29
|
-
*/
|
|
30
|
-
function useDescendant(descendant, context, indexProp) {
|
|
31
|
-
const [, forceUpdate] = useState({});
|
|
32
|
-
const {
|
|
33
|
-
registerDescendant,
|
|
34
|
-
unregisterDescendant,
|
|
35
|
-
descendants
|
|
36
|
-
} = useContext(context);
|
|
37
|
-
|
|
38
|
-
// This will initially return -1 because we haven't registered the descendant
|
|
39
|
-
// on the first render. After we register, this will then return the correct
|
|
40
|
-
// index on the following render and we will re-register descendants
|
|
41
|
-
// so that everything is up-to-date before the user interacts with a
|
|
42
|
-
// collection.
|
|
43
|
-
const index = indexProp !== null && indexProp !== void 0 ? indexProp : descendants.findIndex(item => item.element === descendant.element);
|
|
44
|
-
const previousDescendants = usePrevious(descendants);
|
|
45
|
-
|
|
46
|
-
// We also need to re-register descendants any time ANY of the other
|
|
47
|
-
// descendants have changed. My brain was melting when I wrote this and it
|
|
48
|
-
// feels a little off, but checking in render and using the result in the
|
|
49
|
-
// effect's dependency array works well enough.
|
|
50
|
-
const someDescendantsHaveChanged = descendants.some((descendant, index) => {
|
|
51
|
-
var _previousDescendants$;
|
|
52
|
-
return descendant.element !== (previousDescendants === null || previousDescendants === void 0 || (_previousDescendants$ = previousDescendants[index]) === null || _previousDescendants$ === void 0 ? void 0 : _previousDescendants$.element);
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
// Prevent any flashing
|
|
56
|
-
useSSRLayoutEffect(() => {
|
|
57
|
-
if (!descendant.element) forceUpdate({});
|
|
58
|
-
registerDescendant({
|
|
59
|
-
...descendant,
|
|
60
|
-
index
|
|
61
|
-
});
|
|
62
|
-
return () => unregisterDescendant(descendant.element); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
63
|
-
}, [registerDescendant, unregisterDescendant, index, someDescendantsHaveChanged,
|
|
64
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
|
-
...Object.values(descendant)]);
|
|
66
|
-
return index;
|
|
67
|
-
}
|
|
68
|
-
function useDescendants(ctx) {
|
|
69
|
-
return useContext(ctx).descendants;
|
|
70
|
-
}
|
|
71
|
-
function DescendantProvider(_ref) {
|
|
72
|
-
let {
|
|
73
|
-
context: Ctx,
|
|
74
|
-
children,
|
|
75
|
-
items,
|
|
76
|
-
set
|
|
77
|
-
} = _ref;
|
|
78
|
-
const registerDescendant = useCallback(_ref2 => {
|
|
79
|
-
let {
|
|
80
|
-
element,
|
|
81
|
-
index: explicitIndex,
|
|
82
|
-
...rest
|
|
83
|
-
} = _ref2;
|
|
84
|
-
if (!element) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// eslint-disable-next-line no-shadow
|
|
89
|
-
set(items => {
|
|
90
|
-
let newItems;
|
|
91
|
-
if (explicitIndex != null) {
|
|
92
|
-
newItems = [...items, {
|
|
93
|
-
...rest,
|
|
94
|
-
element,
|
|
95
|
-
index: explicitIndex
|
|
96
|
-
}];
|
|
97
|
-
} else if (items.length === 0) {
|
|
98
|
-
// If there are no items, register at index 0 and bail.
|
|
99
|
-
newItems = [...items, {
|
|
100
|
-
...rest,
|
|
101
|
-
element,
|
|
102
|
-
index: 0
|
|
103
|
-
}];
|
|
104
|
-
} else if (items.find(item => item.element === element)) {
|
|
105
|
-
// If the element is already registered, just use the same array
|
|
106
|
-
newItems = items;
|
|
107
|
-
} else {
|
|
108
|
-
// When registering a descendant, we need to make sure we insert in
|
|
109
|
-
// into the array in the same order that it appears in the DOM. So as
|
|
110
|
-
// new descendants are added or maybe some are removed, we always know
|
|
111
|
-
// that the array is up-to-date and correct.
|
|
112
|
-
//
|
|
113
|
-
// So here we look at our registered descendants and see if the new
|
|
114
|
-
// element we are adding appears earlier than an existing descendant's
|
|
115
|
-
// DOM node via `node.compareDocumentPosition`. If it does, we insert
|
|
116
|
-
// the new element at this index. Because `registerDescendant` will be
|
|
117
|
-
// called in an effect every time the descendants state value changes,
|
|
118
|
-
// we should be sure that this index is accurate when descendent
|
|
119
|
-
// elements come or go from our component.
|
|
120
|
-
const index = items.findIndex(item => {
|
|
121
|
-
if (!item.element || !element) {
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
// Does this element's DOM node appear before another item in the
|
|
125
|
-
// array in our DOM tree? If so, return true to grab the index at
|
|
126
|
-
// this point in the array so we know where to insert the new
|
|
127
|
-
// element.
|
|
128
|
-
return Boolean(
|
|
129
|
-
// eslint-disable-next-line no-bitwise
|
|
130
|
-
item.element.compareDocumentPosition(element) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
131
|
-
});
|
|
132
|
-
const newItem = {
|
|
133
|
-
...rest,
|
|
134
|
-
element,
|
|
135
|
-
index
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// If an index is not found we will push the element to the end.
|
|
139
|
-
if (index === -1) {
|
|
140
|
-
newItems = [...items, newItem];
|
|
141
|
-
} else {
|
|
142
|
-
newItems = [...items.slice(0, index), newItem, ...items.slice(index)];
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return newItems.map((item, index) => ({
|
|
146
|
-
...item,
|
|
147
|
-
index
|
|
148
|
-
}));
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
// set is a state setter initialized by the useDescendants hook.
|
|
152
|
-
// We can safely ignore the lint warning here because it will not change
|
|
153
|
-
// between renders.
|
|
154
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
155
|
-
[]);
|
|
156
|
-
const unregisterDescendant = useCallback(element => {
|
|
157
|
-
if (!element) {
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// eslint-disable-next-line no-shadow
|
|
162
|
-
set(items => items.filter(item => element !== item.element));
|
|
163
|
-
},
|
|
164
|
-
// set is a state setter initialized by the useDescendants hook.
|
|
165
|
-
// We can safely ignore the lint warning here because it will not change
|
|
166
|
-
// between renders.
|
|
167
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
168
|
-
[]);
|
|
169
|
-
return /*#__PURE__*/React__default.createElement(Ctx.Provider, {
|
|
170
|
-
value: useMemo(() => ({
|
|
171
|
-
descendants: items,
|
|
172
|
-
registerDescendant,
|
|
173
|
-
unregisterDescendant
|
|
174
|
-
}), [items, registerDescendant, unregisterDescendant])
|
|
175
|
-
}, children);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export { DescendantProvider, useDescendant, useDescendants };
|