@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 = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._JqxW5{margin:6px 0}._Q4Fsl{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._VmInc{display:inline-block}._VmInc:has([aria-expanded=true]) ._Q4Fsl,._VmInc[focus-within] ._Q4Fsl{color:#0b6ed0}._VmInc:focus-within ._Q4Fsl,._VmInc:has([aria-expanded=true]) ._Q4Fsl{color:#0b6ed0}._VmInc:has(input:disabled) ._Q4Fsl{color:rgba(50,54,58,.4)}._VmInc:not(:has(input:disabled)) ._Q4Fsl{cursor:pointer}._teVo0{margin-top:4px}._teVo0:first-of-type{margin-top:6px}";
|
|
4
|
+
var styles = {"input":"_JqxW5","label":"_Q4Fsl","formFieldWrapper":"_VmInc","caption":"_teVo0"};
|
|
5
|
+
var stylesheet="._JqxW5{margin:6px 0}._Q4Fsl{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._VmInc{display:inline-block}._VmInc:has([aria-expanded=true]) ._Q4Fsl,._VmInc[focus-within] ._Q4Fsl{color:#0b6ed0}._VmInc:focus-within ._Q4Fsl,._VmInc:has([aria-expanded=true]) ._Q4Fsl{color:#0b6ed0}._VmInc:has(input:disabled) ._Q4Fsl{color:rgba(50,54,58,.4)}._VmInc:not(:has(input:disabled)) ._Q4Fsl{cursor:pointer}._teVo0{margin-top:4px}._teVo0:first-of-type{margin-top:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import { useState, useRef, useCallback, useMemo } from 'react';
|
|
2
3
|
import '../../hooks/index.js';
|
|
3
4
|
import createFormInstance from './utils/createFormInstance.js';
|
|
4
5
|
import useLatest from '../../hooks/useLatest/useLatest.js';
|
|
5
6
|
|
|
6
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
7
7
|
function useForm(_ref) {
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
let initialValues = _ref.initialValues,
|
|
9
|
+
validateField = _ref.validateField;
|
|
10
|
+
const _useState = useState({
|
|
11
|
+
values: initialValues !== null && initialValues !== void 0 ? initialValues : {},
|
|
12
|
+
touched: {},
|
|
13
|
+
errors: {},
|
|
14
|
+
formError: '',
|
|
15
|
+
isSubmitting: false
|
|
16
|
+
}),
|
|
17
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
+
formState = _useState2[0],
|
|
19
|
+
setFormState = _useState2[1];
|
|
19
20
|
const formStateRef = useRef(formState);
|
|
20
21
|
formStateRef.current = formState;
|
|
21
22
|
const getFormState = useCallback(() => formStateRef.current, []);
|
|
@@ -146,9 +147,7 @@ function useForm(_ref) {
|
|
|
146
147
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
147
148
|
type: 'text'
|
|
148
149
|
};
|
|
149
|
-
const
|
|
150
|
-
type
|
|
151
|
-
} = options;
|
|
150
|
+
const type = options.type;
|
|
152
151
|
let registerProps;
|
|
153
152
|
switch (type) {
|
|
154
153
|
case 'text':
|
|
@@ -181,9 +180,7 @@ function useForm(_ref) {
|
|
|
181
180
|
}
|
|
182
181
|
case 'radio':
|
|
183
182
|
{
|
|
184
|
-
const
|
|
185
|
-
radioValue
|
|
186
|
-
} = options;
|
|
183
|
+
const radioValue = options.radioValue;
|
|
187
184
|
const defaultChecked = getFormState().values[name] === radioValue;
|
|
188
185
|
registerProps = {
|
|
189
186
|
name,
|
|
@@ -215,9 +212,8 @@ function useForm(_ref) {
|
|
|
215
212
|
const handleSubmit = useCallback(onSubmit => async e => {
|
|
216
213
|
e.preventDefault(); // prevents page refresh on submit
|
|
217
214
|
|
|
218
|
-
const
|
|
219
|
-
values
|
|
220
|
-
} = getFormState();
|
|
215
|
+
const _getFormState = getFormState(),
|
|
216
|
+
values = _getFormState.values;
|
|
221
217
|
const invalidFieldNames = [];
|
|
222
218
|
Object.keys(allFieldRefs.current).forEach(fieldName => {
|
|
223
219
|
const fieldValue = values[fieldName];
|
|
@@ -274,15 +270,14 @@ function useForm(_ref) {
|
|
|
274
270
|
}));
|
|
275
271
|
}
|
|
276
272
|
}, [setError, setTouched, getFormState, setFormState, validate]);
|
|
277
|
-
const {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}), [getFormState, handleSubmit, register, formRef]);
|
|
273
|
+
const _useMemo = useMemo(() => createFormInstance({
|
|
274
|
+
handleSubmit,
|
|
275
|
+
register,
|
|
276
|
+
getFormState,
|
|
277
|
+
setFormState,
|
|
278
|
+
formRef
|
|
279
|
+
}), [getFormState, handleSubmit, register, formRef]),
|
|
280
|
+
Form = _useMemo.Form;
|
|
286
281
|
return {
|
|
287
282
|
Form,
|
|
288
283
|
register,
|
|
@@ -7,10 +7,9 @@ import { useFormContext } from './utils/useFormContext.js';
|
|
|
7
7
|
// goes wrong to compensate for this gap.
|
|
8
8
|
|
|
9
9
|
function useFormField() {
|
|
10
|
-
const
|
|
11
|
-
register,
|
|
12
|
-
formState
|
|
13
|
-
} = useFormContext();
|
|
10
|
+
const _useFormContext = useFormContext(),
|
|
11
|
+
register = _useFormContext.register,
|
|
12
|
+
formState = _useFormContext.formState;
|
|
14
13
|
|
|
15
14
|
// const { values, touched, errors, formError, isSubmitting } = formState;
|
|
16
15
|
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import React__default, { useMemo } from 'react';
|
|
3
4
|
import { FormProvider } from './useFormContext.js';
|
|
4
5
|
|
|
6
|
+
const _excluded = ["children"];
|
|
5
7
|
function createFormInstance(_ref) {
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
formRef
|
|
10
|
-
} = _ref;
|
|
8
|
+
let register = _ref.register,
|
|
9
|
+
getFormState = _ref.getFormState,
|
|
10
|
+
formRef = _ref.formRef;
|
|
11
11
|
const Form = _ref2 => {
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
...rest
|
|
15
|
-
} = _ref2;
|
|
12
|
+
let children = _ref2.children,
|
|
13
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
16
14
|
const formState = getFormState();
|
|
17
15
|
const context = useMemo(() => ({
|
|
18
16
|
register,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import '../../../utils/index.js';
|
|
2
2
|
import createContextUtilities from '../../../utils/createContextUtilities/createContextUtilities.js';
|
|
3
3
|
|
|
4
|
-
const {
|
|
5
|
-
Provider
|
|
6
|
-
useContext
|
|
7
|
-
} = createContextUtilities({});
|
|
4
|
+
const _createContextUtiliti = createContextUtilities({}),
|
|
5
|
+
FormProvider = _createContextUtiliti.Provider,
|
|
6
|
+
useFormContext = _createContextUtiliti.useContext;
|
|
8
7
|
|
|
9
8
|
export { FormProvider, useFormContext };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import React__default, { useMemo } from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './Indicator2.js';
|
|
@@ -8,6 +9,7 @@ import ErrorIcon from '../../icons/components/ErrorIcon.js';
|
|
|
8
9
|
import SuccessIcon from '../../icons/components/SuccessIcon.js';
|
|
9
10
|
import InformationIcon from '../../icons/components/InformationIcon.js';
|
|
10
11
|
|
|
12
|
+
const _excluded = ["children", "size", "variant", "className", "hideIcon"];
|
|
11
13
|
const variantIcons = {
|
|
12
14
|
warning: WarningIcon,
|
|
13
15
|
error: ErrorIcon,
|
|
@@ -15,14 +17,16 @@ const variantIcons = {
|
|
|
15
17
|
informational: InformationIcon
|
|
16
18
|
};
|
|
17
19
|
const Indicator = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
size = 'medium',
|
|
21
|
-
variant =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
let children = _ref.children,
|
|
21
|
+
_ref$size = _ref.size,
|
|
22
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
23
|
+
_ref$variant = _ref.variant,
|
|
24
|
+
variant = _ref$variant === void 0 ? 'generic' : _ref$variant,
|
|
25
|
+
_ref$className = _ref.className,
|
|
26
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
27
|
+
_ref$hideIcon = _ref.hideIcon,
|
|
28
|
+
hideIcon = _ref$hideIcon === void 0 ? false : _ref$hideIcon,
|
|
29
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
26
30
|
const showIcon = useMemo(() => variantIcons[variant] && !hideIcon, [hideIcon, variant]);
|
|
27
31
|
const Icon = variantIcons[variant];
|
|
28
32
|
const classes = classNames(className, styles.indicator, {
|
|
@@ -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 = {"indicator":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._i-iln{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._i-iln._Zl70N{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._i-iln._VUgDO{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._i-iln._J-5mH{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._i-iln._zVpL8{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._B0vEX{padding:1px 8px;max-height:24px}._9xzkZ{padding:4px 8px}";
|
|
4
|
+
var styles = {"indicator":"_i-iln","warning":"_Zl70N","error":"_VUgDO","success":"_J-5mH","informational":"_zVpL8","small":"_B0vEX","medium":"_9xzkZ"};
|
|
5
|
+
var stylesheet="._i-iln{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._i-iln._Zl70N{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._i-iln._VUgDO{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._i-iln._J-5mH{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._i-iln._zVpL8{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._B0vEX{padding:1px 8px;max-height:24px}._9xzkZ{padding:4px 8px}";
|
|
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 };
|
package/dist/next/Input/Input.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default, { forwardRef, useState, useMemo, useEffect, useCallback, useRef } from 'react';
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import inputClasses from './Input2.js';
|
|
@@ -11,6 +13,7 @@ import useId from '../../hooks/useId/useId.js';
|
|
|
11
13
|
import useSSRLayoutEffect from '../../hooks/useSSRLayoutEffect/useSSRLayoutEffect.js';
|
|
12
14
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
13
15
|
|
|
16
|
+
const _excluded = ["name", "id", "type", "initialValue", "value", "onChange", "onBlur", "label", "leftAddOn", "rightAddOn", "errorText", "helperText", "className", "data-testid", "style", "allowDecimalNumbers", "min", "max", "onCompositionStart", "onCompositionEnd", "onKeyDown"];
|
|
14
17
|
const getAddOnComponent = (addOn, containerClassName, containerRef) => {
|
|
15
18
|
if (!addOn) {
|
|
16
19
|
return null;
|
|
@@ -26,38 +29,46 @@ const getAddOnComponent = (addOn, containerClassName, containerRef) => {
|
|
|
26
29
|
};
|
|
27
30
|
const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
28
31
|
var _ref2;
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
type = 'text',
|
|
33
|
-
initialValue,
|
|
34
|
-
value
|
|
35
|
-
onChange
|
|
36
|
-
onBlur
|
|
37
|
-
label,
|
|
38
|
-
leftAddOn,
|
|
39
|
-
rightAddOn,
|
|
40
|
-
errorText,
|
|
41
|
-
helperText,
|
|
42
|
-
className
|
|
43
|
-
'data-testid'
|
|
44
|
-
style,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
register,
|
|
55
|
-
fieldErrors
|
|
56
|
-
} = useFormField();
|
|
32
|
+
let externalName = _ref.name,
|
|
33
|
+
id = _ref.id,
|
|
34
|
+
_ref$type = _ref.type,
|
|
35
|
+
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
36
|
+
initialValue = _ref.initialValue,
|
|
37
|
+
externalValue = _ref.value,
|
|
38
|
+
externalOnChange = _ref.onChange,
|
|
39
|
+
externalOnBlur = _ref.onBlur,
|
|
40
|
+
label = _ref.label,
|
|
41
|
+
leftAddOn = _ref.leftAddOn,
|
|
42
|
+
rightAddOn = _ref.rightAddOn,
|
|
43
|
+
errorText = _ref.errorText,
|
|
44
|
+
helperText = _ref.helperText,
|
|
45
|
+
externalClassName = _ref.className,
|
|
46
|
+
dataTestId = _ref['data-testid'],
|
|
47
|
+
style = _ref.style,
|
|
48
|
+
_ref$allowDecimalNumb = _ref.allowDecimalNumbers,
|
|
49
|
+
allowDecimalNumbers = _ref$allowDecimalNumb === void 0 ? true : _ref$allowDecimalNumb,
|
|
50
|
+
min = _ref.min,
|
|
51
|
+
max = _ref.max,
|
|
52
|
+
externalOnCompositionStart = _ref.onCompositionStart,
|
|
53
|
+
externalOnCompositionEnd = _ref.onCompositionEnd,
|
|
54
|
+
externalOnKeyDown = _ref.onKeyDown,
|
|
55
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
56
|
+
const _useFormField = useFormField(),
|
|
57
|
+
register = _useFormField.register,
|
|
58
|
+
fieldErrors = _useFormField.fieldErrors;
|
|
57
59
|
const inputId = useId(id);
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
const _useState = useState(initialValue !== null && initialValue !== void 0 ? initialValue : ''),
|
|
61
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
62
|
+
internalValue = _useState2[0],
|
|
63
|
+
setInternalValue = _useState2[1];
|
|
64
|
+
const _useState3 = useState(false),
|
|
65
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
66
|
+
compositionLock = _useState4[0],
|
|
67
|
+
setCompositionLock = _useState4[1];
|
|
68
|
+
const _useState5 = useState(''),
|
|
69
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
70
|
+
composingValue = _useState6[0],
|
|
71
|
+
setComposingValue = _useState6[1];
|
|
61
72
|
const inputRegex = /^(?!-?\d+$).+$/;
|
|
62
73
|
const minValue = useMemo(() => min !== undefined && min !== null ? Number(min) : undefined, [min]);
|
|
63
74
|
const maxValue = useMemo(() => max !== undefined && max !== null ? Number(max) : undefined, [max]);
|
|
@@ -112,10 +123,13 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
112
123
|
};
|
|
113
124
|
const leftAddOnRef = useRef(null);
|
|
114
125
|
const rightAddOnRef = useRef(null);
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
126
|
+
const _useState7 = useState({
|
|
127
|
+
leftAddOnWidth: 0,
|
|
128
|
+
rightAddOnWidth: 0
|
|
129
|
+
}),
|
|
130
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
131
|
+
addOnWidths = _useState8[0],
|
|
132
|
+
setAddOnWidths = _useState8[1];
|
|
119
133
|
const ADD_ON_HORIZONTAL_PADDING = 12;
|
|
120
134
|
useSSRLayoutEffect(() => {
|
|
121
135
|
let leftAddOnWidth = 0;
|
|
@@ -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 inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._p2iQa{position:relative;display:inline-block;height:36px;width:100%}._-zJvg{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._-zJvg:hover{cursor:pointer;background-color:#f5f5f5}._-zJvg:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._-zJvg:disabled,._-zJvg[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._-zJvg:disabled::-moz-placeholder,._-zJvg[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-zJvg:disabled::placeholder,._-zJvg[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-zJvg:invalid,._-zJvg[aria-invalid=true]{border-color:#b00}._-zJvg:invalid:focus,._-zJvg[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._-zJvg[type=number]{-moz-appearance:textfield}._-zJvg[type=number]::-webkit-inner-spin-button,._-zJvg[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._-zJvg::-moz-placeholder{color:#515559;opacity:1}._-zJvg::placeholder{color:#515559;opacity:1}._U4YSj{pointer-events:none;color:#515559;fill:#515559}._L59ae{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._Ld1Bn{color:#515559;font-size:16px}._bIzJS{left:0;margin-left:6px}._bIzJS,._FcHsH{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._FcHsH{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_p2iQa","input":"_-zJvg","addOn":"_U4YSj","addOnVerticalCenter":"_L59ae","addOnTextNode":"_Ld1Bn","leftAddOn":"_bIzJS","rightAddOn":"_FcHsH"};
|
|
5
|
+
var stylesheet="._p2iQa{position:relative;display:inline-block;height:36px;width:100%}._-zJvg{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._-zJvg:hover{cursor:pointer;background-color:#f5f5f5}._-zJvg:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._-zJvg:disabled,._-zJvg[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._-zJvg:disabled::-moz-placeholder,._-zJvg[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-zJvg:disabled::placeholder,._-zJvg[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-zJvg:invalid,._-zJvg[aria-invalid=true]{border-color:#b00}._-zJvg:invalid:focus,._-zJvg[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._-zJvg[type=number]{-moz-appearance:textfield}._-zJvg[type=number]::-webkit-inner-spin-button,._-zJvg[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._-zJvg::-moz-placeholder{color:#515559;opacity:1}._-zJvg::placeholder{color:#515559;opacity:1}._U4YSj{pointer-events:none;color:#515559;fill:#515559}._L59ae{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._Ld1Bn{color:#515559;font-size:16px}._bIzJS{left:0;margin-left:6px}._bIzJS,._FcHsH{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._FcHsH{right:0;margin-right:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
|
@@ -5,18 +5,17 @@ import { GridChildrenWrapper } from '../../utils/GridChildrenWrapper/GridChildre
|
|
|
5
5
|
const convertGridTemplateRowsOrColumns = rowsOrColumns => rowsOrColumns && rowsOrColumns.join(' ');
|
|
6
6
|
const convertGridTemplateAreas = areas => areas.map(row => "\"".concat(row.join(' '), "\"")).join(' ');
|
|
7
7
|
const LayoutGrid = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
asChild = false,
|
|
17
|
-
'data-testid'
|
|
18
|
-
children
|
|
19
|
-
} = _ref;
|
|
8
|
+
let columnGap = _ref.columnGap,
|
|
9
|
+
rowGap = _ref.rowGap,
|
|
10
|
+
gap = _ref.gap,
|
|
11
|
+
rowHeights = _ref.rowHeights,
|
|
12
|
+
columnWidths = _ref.columnWidths,
|
|
13
|
+
areas = _ref.areas,
|
|
14
|
+
area = _ref.area,
|
|
15
|
+
_ref$asChild = _ref.asChild,
|
|
16
|
+
asChild = _ref$asChild === void 0 ? false : _ref$asChild,
|
|
17
|
+
dataTestId = _ref['data-testid'],
|
|
18
|
+
children = _ref.children;
|
|
20
19
|
const calculatedStyle = {
|
|
21
20
|
display: 'grid',
|
|
22
21
|
columnGap,
|
|
@@ -3,12 +3,11 @@ import '../../utils/GridChildrenWrapper/index.js';
|
|
|
3
3
|
import { GridChildrenWrapper } from '../../utils/GridChildrenWrapper/GridChildrenWrapper.js';
|
|
4
4
|
|
|
5
5
|
const LayoutGridItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
asChild = false,
|
|
9
|
-
'data-testid'
|
|
10
|
-
children
|
|
11
|
-
} = _ref;
|
|
6
|
+
let area = _ref.area,
|
|
7
|
+
_ref$asChild = _ref.asChild,
|
|
8
|
+
asChild = _ref$asChild === void 0 ? false : _ref$asChild,
|
|
9
|
+
dataTestId = _ref['data-testid'],
|
|
10
|
+
children = _ref.children;
|
|
12
11
|
const calculatedStyle = {
|
|
13
12
|
gridArea: area
|
|
14
13
|
};
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import React__default from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './LoadingSpinner2.js';
|
|
5
6
|
import '../../utils/Translation/index.js';
|
|
6
7
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
7
8
|
|
|
9
|
+
const _excluded = ["background", "children", "className", "inverted", "show", "size", "role", "aria-label", "aria-labelledby", "aria-live", "aria-hidden"];
|
|
8
10
|
const LoadingSpinner = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
9
|
-
let
|
|
10
|
-
background = 'fade',
|
|
11
|
-
children,
|
|
12
|
-
className,
|
|
13
|
-
inverted =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'
|
|
19
|
-
|
|
20
|
-
'
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
let _ref$background = _ref.background,
|
|
12
|
+
background = _ref$background === void 0 ? 'fade' : _ref$background,
|
|
13
|
+
children = _ref.children,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
_ref$inverted = _ref.inverted,
|
|
16
|
+
inverted = _ref$inverted === void 0 ? false : _ref$inverted,
|
|
17
|
+
_ref$show = _ref.show,
|
|
18
|
+
show = _ref$show === void 0 ? false : _ref$show,
|
|
19
|
+
_ref$size = _ref.size,
|
|
20
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
21
|
+
_ref$role = _ref.role,
|
|
22
|
+
role = _ref$role === void 0 ? 'progressbar' : _ref$role,
|
|
23
|
+
ariaLabel = _ref['aria-label'],
|
|
24
|
+
ariaLabelledby = _ref['aria-labelledby'],
|
|
25
|
+
_ref$ariaLive = _ref['aria-live'],
|
|
26
|
+
ariaLive = _ref$ariaLive === void 0 ? 'polite' : _ref$ariaLive,
|
|
27
|
+
ariaHidden = _ref['aria-hidden'],
|
|
28
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
const _useTranslation = useTranslation(),
|
|
30
|
+
translate = _useTranslation.translate;
|
|
26
31
|
const defaultAriaLabel = translate('loading');
|
|
27
32
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
28
33
|
role: "alert",
|
|
@@ -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 = {"spinnerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2ZwUv{position:relative;display:inline-block}._2ZwUv._Y7nSm{min-height:20px;min-width:20px}._2ZwUv._B5Q5V{min-height:25px;min-width:25px}._2ZwUv._-Zyj5{min-height:40px;min-width:40px}._2ZwUv._YvMqD{min-height:64px;min-width:64px}._2ZwUv ._tbfv-{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._2ZwUv ._tbfv-._htefL{display:none}._2ZwUv ._tbfv- div{position:absolute;transform:rotate(20deg)}._2ZwUv ._tbfv- div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_tbfv- .9s linear infinite}._2ZwUv ._tbfv- div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._2ZwUv ._tbfv- div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._2ZwUv ._tbfv- div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._2ZwUv ._tbfv- div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._2ZwUv ._tbfv- div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._2ZwUv ._tbfv- div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._2ZwUv ._tbfv- div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._2ZwUv ._tbfv- div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._2ZwUv ._tbfv- div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._2ZwUv ._tbfv- div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._2ZwUv ._YvMqD div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._2ZwUv ._Y7nSm div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._2ZwUv ._B5Q5V div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._2ZwUv ._u8y1h div div:nth-child(-n+9):after{background:#fff}._2ZwUv ._oBBdO{width:100%;height:100%}._2ZwUv ._oBBdO._Yl6Re{pointer-events:none}._2ZwUv ._oBBdO._htefL{opacity:0}._2ZwUv ._oBBdO._GE306{opacity:.8}@keyframes _tbfv-{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_2ZwUv","xs":"_Y7nSm","small":"_B5Q5V","medium":"_-Zyj5","large":"_YvMqD","spinnerComponent":"_tbfv-","hide":"_htefL","inverted":"_u8y1h","spinnerContent":"_oBBdO","disablePointerEvents":"_Yl6Re","fade":"_GE306"};
|
|
5
|
+
var stylesheet="._2ZwUv{position:relative;display:inline-block}._2ZwUv._Y7nSm{min-height:20px;min-width:20px}._2ZwUv._B5Q5V{min-height:25px;min-width:25px}._2ZwUv._-Zyj5{min-height:40px;min-width:40px}._2ZwUv._YvMqD{min-height:64px;min-width:64px}._2ZwUv ._tbfv-{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._2ZwUv ._tbfv-._htefL{display:none}._2ZwUv ._tbfv- div{position:absolute;transform:rotate(20deg)}._2ZwUv ._tbfv- div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_tbfv- .9s linear infinite}._2ZwUv ._tbfv- div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._2ZwUv ._tbfv- div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._2ZwUv ._tbfv- div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._2ZwUv ._tbfv- div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._2ZwUv ._tbfv- div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._2ZwUv ._tbfv- div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._2ZwUv ._tbfv- div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._2ZwUv ._tbfv- div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._2ZwUv ._tbfv- div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._2ZwUv ._tbfv- div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._2ZwUv ._YvMqD div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._2ZwUv ._Y7nSm div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._2ZwUv ._B5Q5V div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._2ZwUv ._u8y1h div div:nth-child(-n+9):after{background:#fff}._2ZwUv ._oBBdO{width:100%;height:100%}._2ZwUv ._oBBdO._Yl6Re{pointer-events:none}._2ZwUv ._oBBdO._htefL{opacity:0}._2ZwUv ._oBBdO._GE306{opacity:.8}@keyframes _tbfv-{0%{opacity:1}to{opacity:0}}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import { useState } from 'react';
|
|
2
3
|
import '../../../hooks/index.js';
|
|
3
4
|
import { useMenuContext } from '../MenuContext.js';
|
|
@@ -11,10 +12,12 @@ import { useDidUpdate } from '../../../hooks/useDidUpdate/useDidUpdate.js';
|
|
|
11
12
|
*/
|
|
12
13
|
const useFocusVirtualBoundary = function (visibleChildren) {
|
|
13
14
|
let backButtonRef = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
const _useState = useState(null),
|
|
16
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
17
|
+
scrollComplete = _useState2[0],
|
|
18
|
+
setScrollComplete = _useState2[1];
|
|
19
|
+
const _useMenuContext = useMenuContext(),
|
|
20
|
+
virtuoso = _useMenuContext.virtuoso;
|
|
18
21
|
useDidUpdate(() => {
|
|
19
22
|
window.requestAnimationFrame(() => {
|
|
20
23
|
if (scrollComplete && visibleChildren[visibleChildren.length - 1].element.current) {
|
|
@@ -6,13 +6,12 @@ import { useDidUpdate } from '../../../hooks/useDidUpdate/useDidUpdate.js';
|
|
|
6
6
|
|
|
7
7
|
const useMaskDimensions = (target, animatedLeft, paneDepth, children, isVirtualized, isVirtualizationReady) => {
|
|
8
8
|
var _process$env;
|
|
9
|
-
const
|
|
10
|
-
setMaskHeight,
|
|
11
|
-
maskHeight,
|
|
12
|
-
setMaskWidth,
|
|
13
|
-
openPaneDepth,
|
|
14
|
-
open
|
|
15
|
-
} = useMenuContext();
|
|
9
|
+
const _useMenuContext = useMenuContext(),
|
|
10
|
+
setMaskHeight = _useMenuContext.setMaskHeight,
|
|
11
|
+
maskHeight = _useMenuContext.maskHeight,
|
|
12
|
+
setMaskWidth = _useMenuContext.setMaskWidth,
|
|
13
|
+
openPaneDepth = _useMenuContext.openPaneDepth,
|
|
14
|
+
open = _useMenuContext.open;
|
|
16
15
|
const auto = 'auto';
|
|
17
16
|
const updateMaskDimensions = function () {
|
|
18
17
|
let reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|