@qualtrics/ui-react 2.79.1 → 2.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/__node_modules/@radix-ui/primitive/dist/index.js +5 -6
- package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +8 -7
- package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +71 -63
- package/dist/__node_modules/@radix-ui/react-context/dist/index.js +10 -14
- package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +2 -4
- package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +22 -15
- package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +89 -89
- package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +26 -19
- package/dist/__node_modules/@radix-ui/react-id/dist/index.js +5 -2
- package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +165 -129
- package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +139 -106
- package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +9 -5
- package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +27 -20
- package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +4 -5
- package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +61 -38
- package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +8 -12
- package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +40 -35
- package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +5 -2
- package/dist/__shared/cjs/{index-91d2f6f8.js → index-2272eaad.js} +15 -9
- package/dist/__shared/cjs/{index-d4ec6b6f.js → index-7fd3ddfe.js} +2829 -2634
- package/dist/components/Accordion/Accordion.js +27 -21
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionContext.js +6 -8
- package/dist/components/Accordion/AccordionHeader.js +13 -17
- package/dist/components/Accordion/AccordionPanel.js +7 -11
- package/dist/components/Accordion/AccordionSection.js +14 -11
- package/dist/components/Banner/Banner.js +10 -11
- package/dist/components/Banner/BannerBody.js +1 -3
- package/dist/components/Banner/BannerFooter.js +1 -3
- package/dist/components/Banner/BannerTitle.js +1 -3
- package/dist/components/BreakpointSwitch/Breakpoint.js +2 -5
- package/dist/components/BreakpointSwitch/BreakpointContext.js +3 -4
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +1 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +19 -13
- package/dist/components/ButtonGroup/ButtonGroup.js +7 -7
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Check.js +8 -6
- package/dist/components/Checkbox/Checkbox.js +31 -28
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/CheckboxField.js +14 -13
- package/dist/components/ColorPicker/Alpha.js +8 -12
- package/dist/components/ColorPicker/ColorPicker.js +67 -48
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +23 -24
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +27 -22
- package/dist/components/ColorPicker/ColorPickerWIthNoColor.js +11 -7
- package/dist/components/ColorPicker/Hue.js +9 -13
- package/dist/components/ColorPicker/Palette.js +23 -21
- package/dist/components/ColorPicker/Saturation.js +11 -15
- package/dist/components/ColorPicker/utils/hexToHsv.js +4 -5
- package/dist/components/ColorPicker/utils/hsvToHex.js +3 -5
- package/dist/components/ColorPicker/utils/rgbToHex.js +3 -5
- package/dist/components/Combobox/Combobox.js +166 -133
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxContext.js +3 -4
- package/dist/components/Combobox/ComboboxHeader.js +6 -6
- package/dist/components/Combobox/ComboboxIcon.js +14 -14
- package/dist/components/Combobox/ComboboxInput.js +41 -43
- package/dist/components/Combobox/ComboboxList.js +20 -20
- package/dist/components/Combobox/ComboboxOption.js +9 -10
- package/dist/components/ConfigPane/ConfigPane.js +52 -36
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider.js +4 -4
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/index.js +7 -9
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +18 -21
- package/dist/components/Dropdown/Dropdown.js +68 -43
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +53 -47
- package/dist/components/Dropdown/DropdownContext.js +3 -4
- package/dist/components/Dropdown/DropdownHeader.js +12 -9
- package/dist/components/Dropdown/DropdownHeaderContext.js +3 -4
- package/dist/components/Dropdown/DropdownList.js +32 -32
- package/dist/components/Dropdown/DropdownOption.js +32 -30
- package/dist/components/Dropdown/DropdownSearch.js +12 -14
- package/dist/components/FilePicker/FilePicker.js +30 -25
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/ErrorText.js +5 -5
- package/dist/components/FormField/FormField.js +27 -14
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +6 -13
- package/dist/components/FormField/HelperText.js +5 -5
- package/dist/components/FormField/ReadOnlyText.js +4 -6
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +22 -15
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +6 -5
- package/dist/components/Icon/IconTypes.js +1 -0
- package/dist/components/IconButton/IconButton.js +25 -16
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +25 -14
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +42 -29
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +26 -21
- package/dist/components/InputGroup/InputGroup.js +7 -7
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/InputGroup/InputGroupAddon.js +7 -6
- package/dist/components/InputGroup/InputGroupProvider.js +5 -8
- package/dist/components/Label/Label.js +8 -9
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link.js +9 -7
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner.js +22 -17
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionContainer.js +8 -10
- package/dist/components/LogicEditor/ConditionSet.js +16 -21
- package/dist/components/LogicEditor/Controls.js +17 -20
- package/dist/components/LogicEditor/LogicEditor.js +33 -24
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/LogicEditorContext.js +3 -4
- package/dist/components/LogicEditor/utils.js +5 -9
- package/dist/components/Modal/Modal.js +63 -49
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/Modal/ModalBody.js +5 -5
- package/dist/components/Modal/ModalContext.js +3 -4
- package/dist/components/Modal/ModalFooter.js +5 -5
- package/dist/components/Modal/ModalHeader.js +10 -12
- package/dist/components/NewMenu/BaseMenu.js +83 -54
- package/dist/components/NewMenu/Menu/Menu.js +10 -12
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +6 -7
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +35 -30
- package/dist/components/NewMenu/parts/MenuAnchor.js +15 -16
- package/dist/components/NewMenu/parts/MenuContext.js +3 -4
- package/dist/components/NewMenu/parts/MenuItem.js +23 -17
- package/dist/components/NewMenu/parts/MenuSearchBox.js +4 -6
- package/dist/components/NewMenu/parts/SubmenuAnchor.js +5 -5
- package/dist/components/NumberStepper/NumberStepper.js +42 -37
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperContext.js +3 -4
- package/dist/components/NumberStepper/NumberStepperDecrement.js +13 -15
- package/dist/components/NumberStepper/NumberStepperIncrement.js +13 -15
- package/dist/components/NumberStepper/NumberStepperInput.js +28 -30
- package/dist/components/PageLayout/MainContent.js +4 -4
- package/dist/components/PageLayout/PageContainer.js +4 -4
- package/dist/components/PageLayout/PageHeader.js +4 -4
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +20 -16
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationContext.js +3 -4
- package/dist/components/Pagination/PaginationNextButton.js +15 -17
- package/dist/components/Pagination/PaginationPageInput.js +24 -24
- package/dist/components/Pagination/PaginationPreviousButton.js +14 -16
- package/dist/components/Popover/Popover.js +27 -18
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +23 -16
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +33 -23
- package/dist/components/Radio/Radio.js +26 -28
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/Radio/RadioGroup.js +15 -16
- package/dist/components/Radio/RadioGroupContext.js +3 -4
- package/dist/components/Radio/RadioOption.js +11 -10
- package/dist/components/SearchInput/SearchInput.js +32 -25
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/ExpandCollapseButton.js +4 -6
- package/dist/components/SidebarNav/SidebarNav.js +19 -13
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavContext.js +3 -4
- package/dist/components/SidebarNav/SidebarNavLink.js +7 -10
- package/dist/components/Slider/RangeSlider.js +36 -24
- package/dist/components/Slider/Slider.js +29 -20
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +26 -17
- package/dist/components/Switch/Switch.js +19 -19
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Switch/SwitchField.js +13 -13
- package/dist/components/Table/Table.js +5 -5
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Table/TableBody.js +5 -5
- package/dist/components/Table/TableCell.js +5 -5
- package/dist/components/Table/TableHead.js +5 -5
- package/dist/components/Table/TableHeaderCell.js +5 -5
- package/dist/components/Table/TableRow.js +5 -5
- package/dist/components/Tabs/Tab.js +12 -13
- package/dist/components/Tabs/TabContextProvider.js +10 -13
- package/dist/components/Tabs/TabList.js +17 -13
- package/dist/components/Tabs/TabPanel.js +10 -11
- package/dist/components/Tabs/TabPanels.js +1 -3
- package/dist/components/Tabs/Tabs.js +20 -12
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +51 -29
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/A11yHelpersContext.js +3 -9
- package/dist/components/UIProvider/PortalTargetContext.js +6 -8
- package/dist/components/UIProvider/UIProvider.js +4 -5
- package/dist/components/deprecated_ColorPicker/Alpha.js +7 -7
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +24 -13
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +16 -9
- package/dist/components/deprecated_ColorPicker/Hue.js +6 -6
- package/dist/components/deprecated_ColorPicker/Saturation.js +14 -16
- package/dist/components/deprecated_ColorPicker/Swatch.js +7 -6
- package/dist/components/deprecated_ColorPicker/useMouseDrag.js +5 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper.js +34 -25
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperContext.js +3 -4
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +14 -16
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +14 -16
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +32 -34
- package/dist/components/deprecated_Tabs/Tab.js +8 -9
- package/dist/components/deprecated_Tabs/TabContextProvider.js +3 -4
- package/dist/components/deprecated_Tabs/Tabs.js +13 -9
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +6 -6
- package/dist/components/deprecated_Toolbar/Toolbar.js +16 -11
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarContext.js +3 -4
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +16 -16
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +44 -29
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +19 -20
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +34 -24
- package/dist/design-tokens/less/typography.js +3 -3
- package/dist/hooks/useBreakpoints/useBreakpoints.js +12 -4
- package/dist/hooks/useClickOutside/useClickOutside.js +1 -3
- package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +5 -2
- package/dist/hooks/useEventListener/useEventListener.js +6 -5
- package/dist/hooks/useFocusSequence/useFocusSequence.js +12 -12
- package/dist/hooks/useId/useId.js +4 -1
- package/dist/hooks/useIsFocused/useIsFocused.js +5 -1
- package/dist/hooks/useIsHovered/useIsHovered.js +5 -1
- package/dist/hooks/useIsTruncated/useIsTruncated.js +11 -16
- package/dist/hooks/useMouseDrag/useMouseDrag.js +5 -1
- package/dist/hooks/useOverlay/useOverlay.js +10 -10
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +9 -2
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/FrontlineEmployeeVoiceIcon.js +6 -0
- package/dist/icons/createIconComponent.js +7 -6
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.es.js +1 -0
- package/dist/icons/index.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +7 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +192 -173
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +30 -25
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +12 -15
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +83 -65
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +25 -30
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +10 -9
- package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +12 -10
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +9 -13
- package/dist/next/AdvancedTable/AdvancedTableRow.js +16 -16
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +7 -11
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +32 -36
- package/dist/next/AdvancedTable/useDragAndDropConfig.js +44 -53
- package/dist/next/Chat/Chat.js +5 -6
- package/dist/next/Chat/ChatContext.js +3 -4
- package/dist/next/Chat/ChatInput.js +24 -20
- package/dist/next/Chat/ChatMessage.js +16 -20
- package/dist/next/Chat/ChatMessageList.js +11 -10
- package/dist/next/Chat/ChatMessageText.js +1 -3
- package/dist/next/Chat/Loader.js +6 -9
- package/dist/next/Chat/MessageContext.js +3 -4
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +28 -18
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +8 -8
- package/dist/next/CollectionGrid/CollectionGrid.js +14 -12
- package/dist/next/CollectionGrid/CollectionGridItem.js +4 -5
- package/dist/next/Combobox/Combobox.js +48 -37
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxContext.js +3 -4
- package/dist/next/Combobox/ComboboxFlyout.js +12 -15
- package/dist/next/Combobox/ComboboxGroup.js +10 -14
- package/dist/next/Combobox/ComboboxGroupContext.js +9 -10
- package/dist/next/Combobox/ComboboxInput.js +37 -39
- package/dist/next/Combobox/ComboboxOption.js +15 -19
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +9 -4
- package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +2 -3
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +10 -5
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +12 -5
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +5 -1
- package/dist/next/Drawer/Drawer.js +52 -27
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +21 -19
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/FormFieldWrapper.js +11 -11
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Form/useForm.js +25 -30
- package/dist/next/Form/useFormField.js +3 -4
- package/dist/next/Form/utils/createFormInstance.js +7 -9
- package/dist/next/Form/utils/useFormContext.js +3 -4
- package/dist/next/Indicator/Indicator.js +12 -8
- package/dist/next/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input.js +49 -35
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LayoutGrid/LayoutGrid.js +11 -12
- package/dist/next/LayoutGrid/LayoutGridItem.js +5 -6
- package/dist/next/LoadingSpinner/LoadingSpinner.js +22 -17
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +7 -4
- package/dist/next/Menu/Hooks/useMaskDimensions.js +6 -7
- package/dist/next/Menu/Hooks/usePaneSearch.js +50 -39
- package/dist/next/Menu/Menu.js +28 -15
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +17 -18
- package/dist/next/Menu/MenuContext.js +13 -18
- package/dist/next/Menu/MenuItem.js +28 -29
- package/dist/next/Menu/MenuPane.js +74 -61
- package/dist/next/Menu/MenuSearch.js +10 -10
- package/dist/next/Menu/PaneChildren.js +10 -15
- package/dist/next/Menu/SubMenu.js +91 -76
- package/dist/next/Pagination/Pagination.js +40 -31
- package/dist/next/Pagination/RowDisplayCount.js +6 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +49 -47
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +27 -30
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SelectButton.js +16 -15
- package/dist/next/Select/SelectContext.js +3 -4
- package/dist/next/Select/SelectItem.js +12 -13
- package/dist/next/Select/SelectPane.js +13 -14
- package/dist/next/Select/SelectedItems.js +16 -10
- package/dist/next/Select/SubSelect.js +21 -18
- package/dist/next/SplitButton/SplitButton.js +30 -22
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/SplitButton/SplitButtonOption.js +6 -6
- package/dist/next/Stack/Stack.js +26 -26
- package/dist/next/Stack/StackItem.js +12 -14
- package/dist/next/TimePicker/TimeDropdown.js +18 -18
- package/dist/next/TimePicker/TimeInput.js +38 -42
- package/dist/next/TimePicker/TimePicker.js +46 -25
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +5 -7
- package/dist/next/TimePicker/utils.js +34 -13
- package/dist/next/ToggleButton/ToggleButton.js +14 -13
- package/dist/next/ToggleButton/ToggleButtonGroup.js +8 -10
- package/dist/next/ToggleButton/ToggleButtonGroupContext.js +3 -4
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/Tooltip/Tooltip.js +5 -4
- package/dist/next/Typography/Typography.js +8 -7
- package/dist/next/index.d.ts +12 -2
- package/dist/next/index.js +2395 -2199
- package/dist/utils/Flyout/Flyout.js +14 -13
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Flyout/FlyoutHeader.js +6 -6
- package/dist/utils/Flyout/FlyoutOption.js +11 -8
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +4 -6
- package/dist/utils/Popper/Popper.js +71 -61
- package/dist/utils/Popper/PopperContext.js +5 -6
- package/dist/utils/Portal/Portal.js +7 -5
- package/dist/utils/Text/Text.js +10 -8
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +10 -6
- package/dist/utils/Translation/Translate.js +4 -7
- package/dist/utils/Translation/TranslationProvider.js +10 -14
- package/dist/utils/Translation/containsComponentOrElement.js +3 -1
- package/dist/utils/Translation/useTranslation.js +2 -3
- package/dist/utils/VirtuosoTestWrapper/VirtuosoTestWrapper.js +1 -3
- package/dist/utils/filterChildren/filterChildren.js +4 -4
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +4 -4
|
@@ -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, { forwardRef } from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './Pagination2.js';
|
|
@@ -11,30 +12,27 @@ import { Button } from '../Button/Button2.js';
|
|
|
11
12
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
12
13
|
import ChevronLeftIcon from '../../icons/components/ChevronLeftIcon.js';
|
|
13
14
|
|
|
15
|
+
const _excluded = ["data-testid", "disabled", "onClick", "className"];
|
|
14
16
|
/**
|
|
15
17
|
* Renders the PaginationPrevioudButton.
|
|
16
18
|
* Either `Pagination` renders this component automatically or the consumer renders this component explicitly.
|
|
17
19
|
*/
|
|
18
20
|
const PaginationPreviousButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const {
|
|
27
|
-
translate
|
|
28
|
-
} = useTranslation();
|
|
21
|
+
let dataTestIdFromProps = _ref['data-testid'],
|
|
22
|
+
disabled = _ref.disabled,
|
|
23
|
+
onClick = _ref.onClick,
|
|
24
|
+
className = _ref.className,
|
|
25
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
+
const _useTranslation = useTranslation(),
|
|
27
|
+
translate = _useTranslation.translate;
|
|
29
28
|
const buttonLabel = translate('previousPage');
|
|
30
29
|
|
|
31
30
|
// Context for Pagination
|
|
32
|
-
const
|
|
33
|
-
pageInputValue,
|
|
34
|
-
dataTestId,
|
|
35
|
-
handlePageChange,
|
|
36
|
-
setPageInputValue
|
|
37
|
-
} = usePaginationContext();
|
|
31
|
+
const _usePaginationContext = usePaginationContext(),
|
|
32
|
+
pageInputValue = _usePaginationContext.pageInputValue,
|
|
33
|
+
dataTestId = _usePaginationContext.dataTestId,
|
|
34
|
+
handlePageChange = _usePaginationContext.handlePageChange,
|
|
35
|
+
setPageInputValue = _usePaginationContext.setPageInputValue;
|
|
38
36
|
|
|
39
37
|
/**
|
|
40
38
|
* Decrements the `pageInputValue`.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import styles from './Popover2.js';
|
|
@@ -10,29 +12,36 @@ import Popper from '../../utils/Popper/Popper.js';
|
|
|
10
12
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
11
13
|
import { offset, flip } from '@floating-ui/react-dom';
|
|
12
14
|
|
|
15
|
+
const _excluded = ["show", "onClose", "content", "placement", "children", "zIndex", "className", "portalTarget", "isArrowRemoved", "onClickOutside", "onClick", "onKeyDown", "style", "id"];
|
|
13
16
|
const Popover = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
14
|
-
let
|
|
15
|
-
show = false,
|
|
16
|
-
onClose,
|
|
17
|
-
content,
|
|
18
|
-
placement =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
let _ref$show = _ref.show,
|
|
18
|
+
show = _ref$show === void 0 ? false : _ref$show,
|
|
19
|
+
onClose = _ref.onClose,
|
|
20
|
+
content = _ref.content,
|
|
21
|
+
_ref$placement = _ref.placement,
|
|
22
|
+
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
|
23
|
+
children = _ref.children,
|
|
24
|
+
_ref$zIndex = _ref.zIndex,
|
|
25
|
+
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
26
|
+
className = _ref.className,
|
|
27
|
+
portalTarget = _ref.portalTarget,
|
|
28
|
+
_ref$isArrowRemoved = _ref.isArrowRemoved,
|
|
29
|
+
isArrowRemoved = _ref$isArrowRemoved === void 0 ? false : _ref$isArrowRemoved,
|
|
30
|
+
onClickOutside = _ref.onClickOutside,
|
|
31
|
+
onClick = _ref.onClick,
|
|
32
|
+
onKeyDown = _ref.onKeyDown,
|
|
33
|
+
_ref$style = _ref.style,
|
|
34
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
35
|
+
externalId = _ref.id,
|
|
36
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
31
37
|
const classes = classNames(styles.popover, className);
|
|
32
38
|
const anchorRef = useRef(null);
|
|
33
39
|
const popperRef = useRef(null);
|
|
34
40
|
const preventClickOutside = useClickOutsidePortals(e => show && (onClickOutside === null || onClickOutside === void 0 ? void 0 : onClickOutside(e)));
|
|
35
|
-
const
|
|
41
|
+
const _useState = useState(false),
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
43
|
+
isInDOM = _useState2[0],
|
|
44
|
+
setIsInDOM = _useState2[1];
|
|
36
45
|
const popoverId = useId(externalId);
|
|
37
46
|
|
|
38
47
|
// Focus lock can't be enabled without `onClose` function because keyboard users need a way to exit the focus lock
|
|
@@ -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 = {"popover":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._M4VCw{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._M4VCw:focus{outline:none}._2Z0ks,._2Z0ks>div{position:absolute;width:8px;height:8px;background:inherit}._2Z0ks{visibility:hidden;z-index:1000}._2Z0ks>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._2Z0ks{bottom:-4px}[data-popper-placement^=top]>._2Z0ks>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._2Z0ks{left:-5px}[data-popper-placement^=right]>._2Z0ks>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._2Z0ks{top:-5px}[data-popper-placement^=bottom]>._2Z0ks>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._2Z0ks{right:-4px}[data-popper-placement^=left]>._2Z0ks>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
4
|
+
var styles = {"popover":"_M4VCw","arrow":"_2Z0ks"};
|
|
5
|
+
var stylesheet="._M4VCw{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._M4VCw:focus{outline:none}._2Z0ks,._2Z0ks>div{position:absolute;width:8px;height:8px;background:inherit}._2Z0ks{visibility:hidden;z-index:1000}._2Z0ks>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._2Z0ks{bottom:-4px}[data-popper-placement^=top]>._2Z0ks>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._2Z0ks{left:-5px}[data-popper-placement^=right]>._2Z0ks>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._2Z0ks{top:-5px}[data-popper-placement^=bottom]>._2Z0ks>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._2Z0ks{right:-4px}[data-popper-placement^=left]>._2Z0ks>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default, { forwardRef, useState, useRef } from 'react';
|
|
3
5
|
import styles from './QuickSearch2.js';
|
|
4
6
|
import '../NewMenu/index.js';
|
|
@@ -11,27 +13,32 @@ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
|
11
13
|
import LoadingSpinner from '../LoadingSpinner/LoadingSpinner.js';
|
|
12
14
|
import MenuItem from '../NewMenu/parts/MenuItem.js';
|
|
13
15
|
|
|
16
|
+
const _excluded = ["maxHeight", "menuProps", "onSelect", "placement", "portalTarget", "zIndex", "isFlyoutFullWidth", "role"];
|
|
14
17
|
const QuickSearch = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
15
18
|
var _anchorRef$current;
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
isFlyoutFullWidth = false,
|
|
24
|
-
role,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
let externalMaxHeight = _ref.maxHeight,
|
|
20
|
+
menuProps = _ref.menuProps,
|
|
21
|
+
onSelect = _ref.onSelect,
|
|
22
|
+
placement = _ref.placement,
|
|
23
|
+
portalTarget = _ref.portalTarget,
|
|
24
|
+
zIndex = _ref.zIndex,
|
|
25
|
+
_ref$isFlyoutFullWidt = _ref.isFlyoutFullWidth,
|
|
26
|
+
isFlyoutFullWidth = _ref$isFlyoutFullWidt === void 0 ? false : _ref$isFlyoutFullWidt,
|
|
27
|
+
role = _ref.role,
|
|
28
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
const _useState = useState(false),
|
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
+
isLoading = _useState2[0],
|
|
32
|
+
setIsLoading = _useState2[1];
|
|
33
|
+
const _useState3 = useState([]),
|
|
34
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
35
|
+
items = _useState4[0],
|
|
36
|
+
setItems = _useState4[1];
|
|
29
37
|
const maxHeight = items.length > 10 ? 500 : undefined;
|
|
30
38
|
const anchorRef = useRef(null);
|
|
31
39
|
const anchorWidth = anchorRef === null || anchorRef === void 0 || (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.clientWidth;
|
|
32
|
-
const
|
|
33
|
-
translate
|
|
34
|
-
} = useTranslation();
|
|
40
|
+
const _useTranslation = useTranslation(),
|
|
41
|
+
translate = _useTranslation.translate;
|
|
35
42
|
return /*#__PURE__*/React__default.createElement(Menu, _extends({}, menuProps, {
|
|
36
43
|
private_isFirstElementHighlightedOnUserActivatedOpen: false,
|
|
37
44
|
private_isClosedMenuOpenedOnAnchorClick: false,
|
|
@@ -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 = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._vgnUc{display:flex;height:32px}";
|
|
4
|
+
var styles = {"loadingSpinner":"_vgnUc"};
|
|
5
|
+
var stylesheet="._vgnUc{display:flex;height:32px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default, { forwardRef, useState, useCallback } from 'react';
|
|
3
5
|
import { debounce, throttle } from 'throttle-debounce';
|
|
4
6
|
import '../../hooks/index.js';
|
|
@@ -11,34 +13,42 @@ import { useEnhancedDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
|
11
13
|
import Input from '../Input/Input.js';
|
|
12
14
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
13
15
|
|
|
16
|
+
const _excluded = ["onSearch", "debouncePeriod", "throttlePeriod", "setIsLoading", "items", "setItems", "minChars", "value", "defaultValue", "onChange"];
|
|
14
17
|
const QuickSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
debouncePeriod = 0,
|
|
18
|
-
throttlePeriod =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
let onSearch = _ref.onSearch,
|
|
19
|
+
_ref$debouncePeriod = _ref.debouncePeriod,
|
|
20
|
+
debouncePeriod = _ref$debouncePeriod === void 0 ? 0 : _ref$debouncePeriod,
|
|
21
|
+
_ref$throttlePeriod = _ref.throttlePeriod,
|
|
22
|
+
throttlePeriod = _ref$throttlePeriod === void 0 ? 0 : _ref$throttlePeriod,
|
|
23
|
+
setIsLoading = _ref.setIsLoading,
|
|
24
|
+
_ref$items = _ref.items,
|
|
25
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
26
|
+
setItems = _ref.setItems,
|
|
27
|
+
_ref$minChars = _ref.minChars,
|
|
28
|
+
minChars = _ref$minChars === void 0 ? 1 : _ref$minChars,
|
|
29
|
+
externalValue = _ref.value,
|
|
30
|
+
_ref$defaultValue = _ref.defaultValue,
|
|
31
|
+
defaultValue = _ref$defaultValue === void 0 ? '' : _ref$defaultValue,
|
|
32
|
+
onChange = _ref.onChange,
|
|
33
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
28
34
|
const isMounted = useMounted();
|
|
29
|
-
const
|
|
35
|
+
const _useState = useState(defaultValue),
|
|
36
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
+
internalValue = _useState2[0],
|
|
38
|
+
setInternalValue = _useState2[1];
|
|
30
39
|
const isControlled = externalValue !== undefined;
|
|
31
40
|
const value = isControlled ? externalValue : internalValue;
|
|
32
41
|
const valueRef = useLatest(value);
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
const _useState3 = useState(false),
|
|
43
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
44
|
+
changed = _useState4[0],
|
|
45
|
+
setChanged = _useState4[1];
|
|
46
|
+
const _ref2 = useMenuContext(),
|
|
47
|
+
open = _ref2.isOpen,
|
|
48
|
+
setIsOpen = _ref2.setIsOpen,
|
|
49
|
+
internalCloseMenu = _ref2.closeAndFocusAnchor,
|
|
50
|
+
anchorRef = _ref2.anchorRef,
|
|
51
|
+
setHighlightedIndex = _ref2.setHighlightedIndex;
|
|
42
52
|
const openMenu = () => {
|
|
43
53
|
// this prevents the "no items to display" text from appearing on initial open.
|
|
44
54
|
if (!open) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import React__default from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './Radio2.js';
|
|
@@ -8,40 +9,37 @@ import useFormField from '../../next/Form/useFormField.js';
|
|
|
8
9
|
import '../../utils/index.js';
|
|
9
10
|
import concatIds from '../../utils/concatIds/concatIds.js';
|
|
10
11
|
|
|
12
|
+
const _excluded = ["id", "className", "disabled", "value", "aria-label", "aria-labelledby", "aria-describedby", "onChange", "onBlur", "checked", "defaultChecked", "inputProps"];
|
|
11
13
|
const Radio = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
12
14
|
var _ref2, _ref3, _ref5;
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
disabled = false,
|
|
17
|
-
value,
|
|
18
|
-
'aria-label'
|
|
19
|
-
'aria-labelledby'
|
|
20
|
-
'aria-describedby'
|
|
21
|
-
onChange
|
|
22
|
-
onBlur
|
|
23
|
-
checked
|
|
24
|
-
defaultChecked
|
|
25
|
-
inputProps,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const {
|
|
35
|
-
register
|
|
36
|
-
} = useFormField();
|
|
15
|
+
let id = _ref.id,
|
|
16
|
+
className = _ref.className,
|
|
17
|
+
_ref$disabled = _ref.disabled,
|
|
18
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
19
|
+
value = _ref.value,
|
|
20
|
+
ariaLabel = _ref['aria-label'],
|
|
21
|
+
ariaLabelledBy = _ref['aria-labelledby'],
|
|
22
|
+
externalAriaDescribedBy = _ref['aria-describedby'],
|
|
23
|
+
radioOnChange = _ref.onChange,
|
|
24
|
+
externalOnBlur = _ref.onBlur,
|
|
25
|
+
radioChecked = _ref.checked,
|
|
26
|
+
radioDefaultChecked = _ref.defaultChecked,
|
|
27
|
+
inputProps = _ref.inputProps,
|
|
28
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
const _useRadioGroupContext = useRadioGroupContext(),
|
|
30
|
+
name = _useRadioGroupContext.name,
|
|
31
|
+
radioGroupOnChange = _useRadioGroupContext.onChange,
|
|
32
|
+
groupDefaultValue = _useRadioGroupContext.groupDefaultValue,
|
|
33
|
+
groupValue = _useRadioGroupContext.groupValue;
|
|
34
|
+
const _useFormField = useFormField(),
|
|
35
|
+
register = _useFormField.register;
|
|
37
36
|
const registerProps = name && register ? register === null || register === void 0 ? void 0 : register(name, {
|
|
38
37
|
type: 'radio',
|
|
39
38
|
radioValue: value
|
|
40
39
|
}) : undefined;
|
|
41
|
-
const
|
|
42
|
-
helperTextId
|
|
43
|
-
errorTextId
|
|
44
|
-
} = useFormFieldContext();
|
|
40
|
+
const _useFormFieldContext = useFormFieldContext(),
|
|
41
|
+
formFieldHelperTextId = _useFormFieldContext.helperTextId,
|
|
42
|
+
formFieldErrorTextId = _useFormFieldContext.errorTextId;
|
|
45
43
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-describedby']);
|
|
46
44
|
const checked = (_ref2 = (_ref3 = groupValue !== undefined ? value === groupValue : radioChecked) !== null && _ref3 !== void 0 ? _ref3 : inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked) !== null && _ref2 !== void 0 ? _ref2 : registerProps === null || registerProps === void 0 ? void 0 : registerProps.checked;
|
|
47
45
|
const defaultChecked = groupDefaultValue !== undefined ? value === groupDefaultValue : radioDefaultChecked !== null && radioDefaultChecked !== void 0 ? radioDefaultChecked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.defaultChecked;
|
|
@@ -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 = {"radio":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._XXmcv{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._sGZdt,._XXmcv{cursor:pointer;height:16px;width:16px}._sGZdt{position:absolute;opacity:0;z-index:10}._sGZdt:disabled{cursor:not-allowed}._sGZdt:checked~._it4Be:after{content:\"\"}._ml9kJ{color:#32363a;display:flex;align-items:center;cursor:pointer}._ml9kJ:has(input:disabled){color:rgba(50,54,58,.4)}._3LKDd{margin-right:12px;flex-shrink:0}._7VYB5{width:100%}._it4Be{position:relative;display:flex;align-items:center;justify-content:center;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._it4Be:not(._-76L0):hover._k3SYj,._sGZdt:hover ._it4Be:not(._-76L0)._k3SYj{background-color:#085caf}._it4Be:not(._-76L0):hover:not(._k3SYj),._sGZdt:hover ._it4Be:not(._-76L0):not(._k3SYj){border-color:#0b6ed0}._it4Be ._UVKDx{fill:#0b6ed0;fill-opacity:0}._it4Be._k3SYj ._UVKDx{fill-opacity:1}._it4Be._k3SYj:not(._-76L0){border-color:transparent;background-color:#0b6ed0}._it4Be._k3SYj:not(._-76L0) ._UVKDx{fill:#fff}._it4Be._-76L0{opacity:.4}._it4Be ._oBkTU{border-radius:2px}._it4Be ._oBkTU,._it4Be:after{position:absolute;height:10px;width:10px;background-color:#0b6ed0}._it4Be:after{z-index:0;border-radius:50%;top:2px;left:2px}._n1ib2{border:none;padding:0;margin:0}._ITmzi{padding:0;margin:0 0 14px;color:#01213f}._sGZdt.focus-visible~._it4Be,._sGZdt:focus-visible~._it4Be{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"radio":"_XXmcv","input":"_sGZdt","check":"_it4Be","label":"_ml9kJ","wrappedInput":"_3LKDd","container":"_7VYB5","disabled":"_-76L0","checked":"_k3SYj","checkIcon":"_UVKDx","mixed":"_oBkTU","radioGroup":"_n1ib2","legend":"_ITmzi"};
|
|
5
|
+
var stylesheet="._XXmcv{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._sGZdt,._XXmcv{cursor:pointer;height:16px;width:16px}._sGZdt{position:absolute;opacity:0;z-index:10}._sGZdt:disabled{cursor:not-allowed}._sGZdt:checked~._it4Be:after{content:\"\"}._ml9kJ{color:#32363a;display:flex;align-items:center;cursor:pointer}._ml9kJ:has(input:disabled){color:rgba(50,54,58,.4)}._3LKDd{margin-right:12px;flex-shrink:0}._7VYB5{width:100%}._it4Be{position:relative;display:flex;align-items:center;justify-content:center;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._it4Be:not(._-76L0):hover._k3SYj,._sGZdt:hover ._it4Be:not(._-76L0)._k3SYj{background-color:#085caf}._it4Be:not(._-76L0):hover:not(._k3SYj),._sGZdt:hover ._it4Be:not(._-76L0):not(._k3SYj){border-color:#0b6ed0}._it4Be ._UVKDx{fill:#0b6ed0;fill-opacity:0}._it4Be._k3SYj ._UVKDx{fill-opacity:1}._it4Be._k3SYj:not(._-76L0){border-color:transparent;background-color:#0b6ed0}._it4Be._k3SYj:not(._-76L0) ._UVKDx{fill:#fff}._it4Be._-76L0{opacity:.4}._it4Be ._oBkTU{border-radius:2px}._it4Be ._oBkTU,._it4Be:after{position:absolute;height:10px;width:10px;background-color:#0b6ed0}._it4Be:after{z-index:0;border-radius:50%;top:2px;left:2px}._n1ib2{border:none;padding:0;margin:0}._ITmzi{padding:0;margin:0 0 14px;color:#01213f}._sGZdt.focus-visible~._it4Be,._sGZdt:focus-visible~._it4Be{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import React__default from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './Radio2.js';
|
|
@@ -6,23 +7,21 @@ import { RadioGroupContextProvider } from './RadioGroupContext.js';
|
|
|
6
7
|
import FormFieldWrapper from '../../next/Form/FormFields/FormFieldWrapper.js';
|
|
7
8
|
import useFormField from '../../next/Form/useFormField.js';
|
|
8
9
|
|
|
10
|
+
const _excluded = ["className", "label", "name", "defaultValue", "value", "onChange", "children", "helperText", "errorText", "data-testid"];
|
|
9
11
|
const RadioGroup = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const {
|
|
24
|
-
fieldErrors
|
|
25
|
-
} = useFormField();
|
|
12
|
+
let className = _ref.className,
|
|
13
|
+
label = _ref.label,
|
|
14
|
+
name = _ref.name,
|
|
15
|
+
defaultValue = _ref.defaultValue,
|
|
16
|
+
value = _ref.value,
|
|
17
|
+
onChange = _ref.onChange,
|
|
18
|
+
children = _ref.children,
|
|
19
|
+
helperText = _ref.helperText,
|
|
20
|
+
errorText = _ref.errorText,
|
|
21
|
+
dataTestId = _ref['data-testid'],
|
|
22
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
+
const _useFormField = useFormField(),
|
|
24
|
+
fieldErrors = _useFormField.fieldErrors;
|
|
26
25
|
const classes = classNames(className, styles.radioGroup);
|
|
27
26
|
return /*#__PURE__*/React__default.createElement(RadioGroupContextProvider, {
|
|
28
27
|
value: {
|
|
@@ -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
|
+
RadioGroupContextProvider = _createContextUtiliti.Provider,
|
|
6
|
+
useRadioGroupContext = _createContextUtiliti.useContext;
|
|
8
7
|
|
|
9
8
|
export { RadioGroupContextProvider, useRadioGroupContext };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
3
|
import React__default from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './Radio2.js';
|
|
@@ -6,17 +7,17 @@ import Radio from './Radio.js';
|
|
|
6
7
|
import '../Label/index.js';
|
|
7
8
|
import Label from '../Label/Label.js';
|
|
8
9
|
|
|
10
|
+
const _excluded = ["value", "label", "id", "className", "disabled", "inputProps", "aria-describedby"];
|
|
9
11
|
const RadioOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
disabled = false,
|
|
16
|
-
inputProps,
|
|
17
|
-
'aria-describedby'
|
|
18
|
-
|
|
19
|
-
} = _ref;
|
|
12
|
+
let value = _ref.value,
|
|
13
|
+
label = _ref.label,
|
|
14
|
+
id = _ref.id,
|
|
15
|
+
className = _ref.className,
|
|
16
|
+
_ref$disabled = _ref.disabled,
|
|
17
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
18
|
+
inputProps = _ref.inputProps,
|
|
19
|
+
ariaDescribedBy = _ref['aria-describedby'],
|
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
21
|
return /*#__PURE__*/React__default.createElement(Label, _extends({}, rest, {
|
|
21
22
|
ref: ref,
|
|
22
23
|
htmlFor: id,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import React__default, { forwardRef, useState, useRef, useEffect } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import styles from './SearchInput2.js';
|
|
@@ -14,32 +15,38 @@ import SearchIcon from '../../icons/components/SearchIcon.js';
|
|
|
14
15
|
import CloseIcon from '../../icons/components/CloseIcon.js';
|
|
15
16
|
|
|
16
17
|
const SearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
17
|
-
let
|
|
18
|
-
defaultValue = '',
|
|
19
|
-
value,
|
|
20
|
-
onChange,
|
|
21
|
-
onKeyDown,
|
|
22
|
-
placeholder,
|
|
23
|
-
'aria-label'
|
|
24
|
-
'aria-labelledby'
|
|
25
|
-
'aria-describedby'
|
|
26
|
-
'aria-controls'
|
|
27
|
-
'aria-expanded'
|
|
28
|
-
isDisabled =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const
|
|
18
|
+
let _ref$defaultValue = _ref.defaultValue,
|
|
19
|
+
defaultValue = _ref$defaultValue === void 0 ? '' : _ref$defaultValue,
|
|
20
|
+
value = _ref.value,
|
|
21
|
+
onChange = _ref.onChange,
|
|
22
|
+
onKeyDown = _ref.onKeyDown,
|
|
23
|
+
placeholder = _ref.placeholder,
|
|
24
|
+
ariaLabel = _ref['aria-label'],
|
|
25
|
+
ariaLabelledby = _ref['aria-labelledby'],
|
|
26
|
+
ariaDescribedby = _ref['aria-describedby'],
|
|
27
|
+
ariaControls = _ref['aria-controls'],
|
|
28
|
+
ariaExpanded = _ref['aria-expanded'],
|
|
29
|
+
_ref$isDisabled = _ref.isDisabled,
|
|
30
|
+
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
31
|
+
onFocus = _ref.onFocus,
|
|
32
|
+
onBlur = _ref.onBlur,
|
|
33
|
+
className = _ref.className,
|
|
34
|
+
style = _ref.style,
|
|
35
|
+
id = _ref.id,
|
|
36
|
+
dataTestId = _ref['data-testid'],
|
|
37
|
+
_ref$role = _ref.role,
|
|
38
|
+
role = _ref$role === void 0 ? 'searchbox' : _ref$role;
|
|
39
|
+
const _useControllableState = useControllableState(defaultValue, onChange, value),
|
|
40
|
+
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
41
|
+
inputValue = _useControllableState2[0],
|
|
42
|
+
setInputValue = _useControllableState2[1];
|
|
43
|
+
const _useState = useState(false),
|
|
44
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45
|
+
wasInputValueCleared = _useState2[0],
|
|
46
|
+
setWasInputValueCleared = _useState2[1];
|
|
39
47
|
const inputRef = useRef(null);
|
|
40
|
-
const
|
|
41
|
-
translate
|
|
42
|
-
} = useTranslation();
|
|
48
|
+
const _useTranslation = useTranslation(),
|
|
49
|
+
translate = _useTranslation.translate;
|
|
43
50
|
const clearButtonLabel = translate('clearSearchInput');
|
|
44
51
|
const isClearButtonHidden = !inputValue || isDisabled;
|
|
45
52
|
const usedWithinInputGroup = !!useInputGroupContext().className;
|
|
@@ -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 = {"searchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._P7vEz{display:inline-block;position:relative}._Fc7dv._Fc7dv{padding-left:36px;padding-right:36px;width:100%}._Fc7dv._Fc7dv:disabled+._E064y{fill-opacity:.6}._E064y{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._E064y._vkklx{z-index:20}._O9-Y1{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._O9-Y1:hover{cursor:pointer}._O9-Y1:hover>._6zgdY{fill:#32363a}._O9-Y1:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6zgdY{fill:#515559}";
|
|
4
|
+
var styles = {"searchInput":"_P7vEz","searchInputInput":"_Fc7dv","searchInputSearchIcon":"_E064y","usedWithinInputGroup":"_vkklx","searchInputClearButton":"_O9-Y1","searchInputClearButtonIcon":"_6zgdY"};
|
|
5
|
+
var stylesheet="._P7vEz{display:inline-block;position:relative}._Fc7dv._Fc7dv{padding-left:36px;padding-right:36px;width:100%}._Fc7dv._Fc7dv:disabled+._E064y{fill-opacity:.6}._E064y{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._E064y._vkklx{z-index:20}._O9-Y1{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._O9-Y1:hover{cursor:pointer}._O9-Y1:hover>._6zgdY{fill:#32363a}._O9-Y1:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6zgdY{fill:#515559}";
|
|
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 };
|
|
@@ -14,12 +14,10 @@ import ChevronRightIcon from '../../icons/components/ChevronRightIcon.js';
|
|
|
14
14
|
import ChevronLeftIcon from '../../icons/components/ChevronLeftIcon.js';
|
|
15
15
|
|
|
16
16
|
const ExpandCollapseButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
17
|
-
const
|
|
18
|
-
translate
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
isCollapsed
|
|
22
|
-
} = useSidebarNavContext();
|
|
17
|
+
const _useTranslation = useTranslation(),
|
|
18
|
+
translate = _useTranslation.translate;
|
|
19
|
+
const _useSidebarNavContext = useSidebarNavContext(),
|
|
20
|
+
isCollapsed = _useSidebarNavContext.isCollapsed;
|
|
23
21
|
if (isCollapsed) {
|
|
24
22
|
const expandSidebarLabel = translate('showLabels');
|
|
25
23
|
return /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import React__default, { forwardRef, useRef, useState, useEffect } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import styles from './SidebarNav2.js';
|
|
@@ -14,20 +15,25 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
|
14
15
|
// is the render function
|
|
15
16
|
|
|
16
17
|
const SidebarNav = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
17
|
-
let
|
|
18
|
-
isCollapsible = true,
|
|
19
|
-
isCollapsed
|
|
20
|
-
onIsCollapsedChange,
|
|
21
|
-
children,
|
|
22
|
-
NavLink,
|
|
23
|
-
'aria-label'
|
|
24
|
-
'aria-labelledby'
|
|
25
|
-
'aria-describedby'
|
|
26
|
-
'data-testid'
|
|
27
|
-
} = _ref;
|
|
18
|
+
let _ref$isCollapsible = _ref.isCollapsible,
|
|
19
|
+
isCollapsible = _ref$isCollapsible === void 0 ? true : _ref$isCollapsible,
|
|
20
|
+
externalIsCollapsed = _ref.isCollapsed,
|
|
21
|
+
onIsCollapsedChange = _ref.onIsCollapsedChange,
|
|
22
|
+
children = _ref.children,
|
|
23
|
+
NavLink = _ref.NavLink,
|
|
24
|
+
ariaLabel = _ref['aria-label'],
|
|
25
|
+
ariaLabelledBy = _ref['aria-labelledby'],
|
|
26
|
+
ariaDescribedBy = _ref['aria-describedby'],
|
|
27
|
+
dataTestId = _ref['data-testid'];
|
|
28
28
|
const expandCollapseButtonRef = useRef(null);
|
|
29
|
-
const
|
|
30
|
-
|
|
29
|
+
const _useState = useState(false),
|
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
+
isExpandCollapseButtonFocused = _useState2[0],
|
|
32
|
+
setIsExpandCollapseButtonFocused = _useState2[1];
|
|
33
|
+
const _useControllableState = useControllableState(false, isCollapsible ? onIsCollapsedChange : undefined, isCollapsible && externalIsCollapsed),
|
|
34
|
+
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
35
|
+
isCollapsed = _useControllableState2[0],
|
|
36
|
+
setIsCollapsed = _useControllableState2[1];
|
|
31
37
|
|
|
32
38
|
/*
|
|
33
39
|
* Focuses the new expand/collapse button when the tabs expand/collapse and the old expand/collapse button was focused.
|