@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,3 +1,5 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
2
|
+
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
1
3
|
import React__default, { forwardRef, useCallback } from 'react';
|
|
2
4
|
import classNames from 'classnames';
|
|
3
5
|
import AccordionStyles from './Accordion2.js';
|
|
@@ -8,26 +10,30 @@ import useControllableState from '../../hooks/useControllableState/useControllab
|
|
|
8
10
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
9
11
|
|
|
10
12
|
const Accordion = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
variant = 'default',
|
|
14
|
-
isMultiOpen =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
13
|
+
let headingLevel = _ref.headingLevel,
|
|
14
|
+
_ref$variant = _ref.variant,
|
|
15
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
16
|
+
_ref$isMultiOpen = _ref.isMultiOpen,
|
|
17
|
+
isMultiOpen = _ref$isMultiOpen === void 0 ? false : _ref$isMultiOpen,
|
|
18
|
+
_ref$initialOpenSecti = _ref.initialOpenSectionIds,
|
|
19
|
+
initialOpenSectionIds = _ref$initialOpenSecti === void 0 ? [] : _ref$initialOpenSecti,
|
|
20
|
+
externalOpenSectionIds = _ref.openSectionIds,
|
|
21
|
+
onOpenSectionIdsChange = _ref.onOpenSectionIdsChange,
|
|
22
|
+
_ref$overflow = _ref.overflow,
|
|
23
|
+
overflow = _ref$overflow === void 0 ? 'auto' : _ref$overflow,
|
|
24
|
+
dataTestId = _ref['data-testid'],
|
|
25
|
+
children = _ref.children;
|
|
26
|
+
const _useControllableState = useControllableState(initialOpenSectionIds, onOpenSectionIdsChange, externalOpenSectionIds),
|
|
27
|
+
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
28
|
+
openSectionIds = _useControllableState2[0],
|
|
29
|
+
setOpenSectionIds = _useControllableState2[1];
|
|
30
|
+
const _useFocusSequence = useFocusSequence(),
|
|
31
|
+
registerNode = _useFocusSequence.registerNode,
|
|
32
|
+
deregisterNode = _useFocusSequence.deregisterNode,
|
|
33
|
+
focusNext = _useFocusSequence.focusNext,
|
|
34
|
+
focusPrevious = _useFocusSequence.focusPrevious,
|
|
35
|
+
focusFirst = _useFocusSequence.focusFirst,
|
|
36
|
+
focusLast = _useFocusSequence.focusLast;
|
|
31
37
|
const handleKeyDown = useEventCallback(e => {
|
|
32
38
|
switch (e.key) {
|
|
33
39
|
case 'ArrowUp':
|
|
@@ -55,7 +61,7 @@ const Accordion = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
55
61
|
}
|
|
56
62
|
});
|
|
57
63
|
const toggleSection = useCallback(sectionId => {
|
|
58
|
-
if (openSectionIds.
|
|
64
|
+
if (_includesInstanceProperty(openSectionIds).call(openSectionIds, sectionId)) {
|
|
59
65
|
setOpenSectionIds(prevOpenSectionIds => prevOpenSectionIds.filter(id => id !== sectionId));
|
|
60
66
|
} else if (isMultiOpen) {
|
|
61
67
|
setOpenSectionIds(prevOpenSectionIds => [...prevOpenSectionIds, sectionId]);
|
|
@@ -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 AccordionStyles = {"accordion":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._useFE{width:100%;display:flex;flex-direction:column}._useFE._XSvat{grid-gap:20px;gap:20px}._TTecI{display:flex;width:100%;border:none;outline:none;background-color:transparent;color:#32363a;font-size:14px;font-weight:700;line-height:18px;text-align:left;padding:10px 16px 10px 0;cursor:pointer}._TTecI ._j9rx5{margin-top:-3px}._0ioRZ{flex:1}._x8XuU{padding:8px 16px 16px 24px;font-size:14px;line-height:20px;overflow:var(--accordion-panel-overflow,auto)}._R9r3k ._TTecI{border-radius:4px}._R9r3k ._TTecI:hover:not(._kfgq4){background-color:rgba(50,54,58,.08)}._R9r3k ._TTecI:active:not(._kfgq4){background-color:rgba(50,54,58,.11)}._zch0n ._TTecI{font-weight:400;padding-left:12px;border-top:1px solid #eee}._zch0n ._TTecI:hover:not(._kfgq4){background-color:rgba(50,54,58,.08)}._zch0n ._TTecI:active:not(._kfgq4){background-color:rgba(50,54,58,.11)}._XSvat ._MVpqI{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._XSvat ._MVpqI._QL-Ec{box-shadow:none}._XSvat ._MVpqI._QL-Ec ._TTecI{border-radius:6px}._XSvat ._TTecI{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._XSvat ._TTecI ._0ioRZ{padding-left:20px}._XSvat ._TTecI:hover:not(disabled){border:1px solid #c2c2c2}._XSvat ._TTecI:active:not(._kfgq4){border:1px solid #898989}._XSvat ._x8XuU{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._QL-Ec ._x8XuU{display:none}._kfgq4{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._TTecI.focus-visible,._TTecI:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._TTecI.focus-visible:before,._TTecI:focus-visible:before{z-index:1}._zch0n ._TTecI.focus-visible,._zch0n ._TTecI:focus-visible{border-color:transparent}";
|
|
4
|
+
var AccordionStyles = {"accordion":"_useFE","block-variant":"_XSvat","header":"_TTecI","headerIcon":"_j9rx5","title":"_0ioRZ","panel":"_x8XuU","default-variant":"_R9r3k","disabled":"_kfgq4","outlined-variant":"_zch0n","section":"_MVpqI","closed":"_QL-Ec"};
|
|
5
|
+
var stylesheet="._useFE{width:100%;display:flex;flex-direction:column}._useFE._XSvat{grid-gap:20px;gap:20px}._TTecI{display:flex;width:100%;border:none;outline:none;background-color:transparent;color:#32363a;font-size:14px;font-weight:700;line-height:18px;text-align:left;padding:10px 16px 10px 0;cursor:pointer}._TTecI ._j9rx5{margin-top:-3px}._0ioRZ{flex:1}._x8XuU{padding:8px 16px 16px 24px;font-size:14px;line-height:20px;overflow:var(--accordion-panel-overflow,auto)}._R9r3k ._TTecI{border-radius:4px}._R9r3k ._TTecI:hover:not(._kfgq4){background-color:rgba(50,54,58,.08)}._R9r3k ._TTecI:active:not(._kfgq4){background-color:rgba(50,54,58,.11)}._zch0n ._TTecI{font-weight:400;padding-left:12px;border-top:1px solid #eee}._zch0n ._TTecI:hover:not(._kfgq4){background-color:rgba(50,54,58,.08)}._zch0n ._TTecI:active:not(._kfgq4){background-color:rgba(50,54,58,.11)}._XSvat ._MVpqI{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._XSvat ._MVpqI._QL-Ec{box-shadow:none}._XSvat ._MVpqI._QL-Ec ._TTecI{border-radius:6px}._XSvat ._TTecI{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._XSvat ._TTecI ._0ioRZ{padding-left:20px}._XSvat ._TTecI:hover:not(disabled){border:1px solid #c2c2c2}._XSvat ._TTecI:active:not(._kfgq4){border:1px solid #898989}._XSvat ._x8XuU{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._QL-Ec ._x8XuU{display:none}._kfgq4{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._TTecI.focus-visible,._TTecI:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._TTecI.focus-visible:before,._TTecI:focus-visible:before{z-index:1}._zch0n ._TTecI.focus-visible,._zch0n ._TTecI:focus-visible{border-color:transparent}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { AccordionStyles as default, stylesheet };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import '../../utils/index.js';
|
|
2
2
|
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
Provider
|
|
6
|
-
useContext
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
useContext: useAccordionSectionContext
|
|
11
|
-
} = createContextUtilities();
|
|
4
|
+
const _createContextUtiliti = createContextUtilities(),
|
|
5
|
+
AccordionContextProvider = _createContextUtiliti.Provider,
|
|
6
|
+
useAccordionContext = _createContextUtiliti.useContext;
|
|
7
|
+
const _createContextUtiliti2 = createContextUtilities(),
|
|
8
|
+
AccordionSectionContextProvider = _createContextUtiliti2.Provider,
|
|
9
|
+
useAccordionSectionContext = _createContextUtiliti2.useContext;
|
|
12
10
|
|
|
13
11
|
export { AccordionContextProvider, AccordionSectionContextProvider, useAccordionContext, useAccordionSectionContext };
|
|
@@ -9,23 +9,19 @@ import CaretDownIcon from '../../icons/components/CaretDownIcon.js';
|
|
|
9
9
|
import CaretRightIcon from '../../icons/components/CaretRightIcon.js';
|
|
10
10
|
|
|
11
11
|
const AccordionHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
isDisabled,
|
|
26
|
-
sectionId,
|
|
27
|
-
position
|
|
28
|
-
} = useAccordionSectionContext();
|
|
12
|
+
let children = _ref.children;
|
|
13
|
+
const _useAccordionContext = useAccordionContext(),
|
|
14
|
+
headingLevel = _useAccordionContext.headingLevel,
|
|
15
|
+
dataTestId = _useAccordionContext.dataTestId,
|
|
16
|
+
toggleSection = _useAccordionContext.toggleSection,
|
|
17
|
+
registerNode = _useAccordionContext.registerNode,
|
|
18
|
+
deregisterNode = _useAccordionContext.deregisterNode,
|
|
19
|
+
handleKeyDown = _useAccordionContext.handleKeyDown;
|
|
20
|
+
const _useAccordionSectionC = useAccordionSectionContext(),
|
|
21
|
+
isOpen = _useAccordionSectionC.isOpen,
|
|
22
|
+
isDisabled = _useAccordionSectionC.isDisabled,
|
|
23
|
+
sectionId = _useAccordionSectionC.sectionId,
|
|
24
|
+
position = _useAccordionSectionC.position;
|
|
29
25
|
function handleClick() {
|
|
30
26
|
if (!isDisabled) {
|
|
31
27
|
toggleSection(sectionId);
|
|
@@ -6,17 +6,13 @@ import '../../utils/index.js';
|
|
|
6
6
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
7
7
|
|
|
8
8
|
const AccordionPanel = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = useAccordionSectionContext();
|
|
17
|
-
const {
|
|
18
|
-
dataTestId
|
|
19
|
-
} = useAccordionContext();
|
|
9
|
+
let className = _ref.className,
|
|
10
|
+
children = _ref.children;
|
|
11
|
+
const _useAccordionSectionC = useAccordionSectionContext(),
|
|
12
|
+
sectionId = _useAccordionSectionC.sectionId,
|
|
13
|
+
position = _useAccordionSectionC.position;
|
|
14
|
+
const _useAccordionContext = useAccordionContext(),
|
|
15
|
+
dataTestId = _useAccordionContext.dataTestId;
|
|
20
16
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
21
17
|
className: classNames(className, AccordionStyles.panel),
|
|
22
18
|
ref: ref,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
2
|
+
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
1
3
|
import React__default, { forwardRef, useState, useEffect } from 'react';
|
|
2
4
|
import classNames from 'classnames';
|
|
3
5
|
import AccordionStyles from './Accordion2.js';
|
|
@@ -6,19 +8,20 @@ import '../../hooks/index.js';
|
|
|
6
8
|
import useId from '../../hooks/useId/useId.js';
|
|
7
9
|
|
|
8
10
|
const AccordionSection = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
isDisabled = false,
|
|
13
|
-
children
|
|
14
|
-
} = _ref;
|
|
11
|
+
let id = _ref.id,
|
|
12
|
+
position = _ref.position,
|
|
13
|
+
_ref$isDisabled = _ref.isDisabled,
|
|
14
|
+
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
15
|
+
children = _ref.children;
|
|
15
16
|
const sectionId = useId(id);
|
|
16
|
-
const
|
|
17
|
-
openSectionIds
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
const _useAccordionContext = useAccordionContext(),
|
|
18
|
+
openSectionIds = _useAccordionContext.openSectionIds;
|
|
19
|
+
const _useState = useState(false),
|
|
20
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
21
|
+
isOpen = _useState2[0],
|
|
22
|
+
setIsOpen = _useState2[1];
|
|
20
23
|
useEffect(() => {
|
|
21
|
-
if (openSectionIds !== undefined) setIsOpen(openSectionIds.
|
|
24
|
+
if (openSectionIds !== undefined) setIsOpen(_includesInstanceProperty(openSectionIds).call(openSectionIds, sectionId));
|
|
22
25
|
}, [sectionId, openSectionIds]);
|
|
23
26
|
const classes = classNames(AccordionStyles.section, {
|
|
24
27
|
[AccordionStyles.closed]: !isOpen
|
|
@@ -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 '../IconButton/index.js';
|
|
@@ -17,6 +18,7 @@ import IconButton from '../IconButton/IconButton.js';
|
|
|
17
18
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
18
19
|
import CloseIcon from '../../icons/components/CloseIcon.js';
|
|
19
20
|
|
|
21
|
+
const _excluded = ["onClose", "icon", "status", "data-testid", "children"];
|
|
20
22
|
const statusIconMap = {
|
|
21
23
|
info: InformationIcon,
|
|
22
24
|
warn: WarningIcon,
|
|
@@ -24,21 +26,18 @@ const statusIconMap = {
|
|
|
24
26
|
success: SuccessIcon
|
|
25
27
|
};
|
|
26
28
|
const Banner = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
...rest
|
|
34
|
-
} = _ref;
|
|
29
|
+
let onClose = _ref.onClose,
|
|
30
|
+
icon$1 = _ref.icon,
|
|
31
|
+
status = _ref.status,
|
|
32
|
+
dataTestId = _ref['data-testid'],
|
|
33
|
+
children = _ref.children,
|
|
34
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
35
35
|
let title$1;
|
|
36
36
|
let footer;
|
|
37
37
|
let content;
|
|
38
38
|
let IconUsed = icon$1;
|
|
39
|
-
const
|
|
40
|
-
translate
|
|
41
|
-
} = useTranslation();
|
|
39
|
+
const _useTranslation = useTranslation(),
|
|
40
|
+
translate = _useTranslation.translate;
|
|
42
41
|
React__default.Children.forEach(children, child => {
|
|
43
42
|
if (! /*#__PURE__*/React__default.isValidElement(child)) return;
|
|
44
43
|
if (child.type === BannerTitle) {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
const BannerBody = _ref => {
|
|
4
|
-
let
|
|
5
|
-
children
|
|
6
|
-
} = _ref;
|
|
4
|
+
let children = _ref.children;
|
|
7
5
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
8
6
|
};
|
|
9
7
|
BannerBody.displayName = 'BannerBody';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
const BannerFooter = _ref => {
|
|
4
|
-
let
|
|
5
|
-
children
|
|
6
|
-
} = _ref;
|
|
4
|
+
let children = _ref.children;
|
|
7
5
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
8
6
|
};
|
|
9
7
|
BannerFooter.displayName = 'BannerFooter';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
const BannerTitle = _ref => {
|
|
4
|
-
let
|
|
5
|
-
children
|
|
6
|
-
} = _ref;
|
|
4
|
+
let children = _ref.children;
|
|
7
5
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
8
6
|
};
|
|
9
7
|
BannerTitle.displayName = 'BannerTitle';
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { useBreakpointContext } from './BreakpointContext.js';
|
|
2
2
|
|
|
3
3
|
function Breakpoint(_ref) {
|
|
4
|
-
let
|
|
5
|
-
|
|
6
|
-
size,
|
|
7
|
-
children
|
|
8
|
-
} = _ref;
|
|
4
|
+
let size = _ref.size,
|
|
5
|
+
children = _ref.children;
|
|
9
6
|
const inBreakpointSwitch = useBreakpointContext();
|
|
10
7
|
if (!inBreakpointSwitch) {
|
|
11
8
|
throw new Error('Breakpoint must be inside a BreakpointSwitch');
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import '../../utils/index.js';
|
|
2
2
|
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
useContext
|
|
6
|
-
Provider
|
|
7
|
-
} = createContextUtilities(false);
|
|
4
|
+
const _createContextUtiliti = createContextUtilities(false),
|
|
5
|
+
useBreakpointContext = _createContextUtiliti.useContext,
|
|
6
|
+
BreakpointContextProvider = _createContextUtiliti.Provider;
|
|
8
7
|
|
|
9
8
|
export { BreakpointContextProvider, useBreakpointContext };
|
|
@@ -5,9 +5,7 @@ import { BreakpointContextProvider } from './BreakpointContext.js';
|
|
|
5
5
|
import useResponsiveValue from '../../hooks/useResponsiveValue/useResponsiveValue.js';
|
|
6
6
|
|
|
7
7
|
function BreakpointSwitch(_ref) {
|
|
8
|
-
let
|
|
9
|
-
children
|
|
10
|
-
} = _ref;
|
|
8
|
+
let children = _ref.children;
|
|
11
9
|
const childList = {};
|
|
12
10
|
React__default.Children.forEach(children, element => {
|
|
13
11
|
// Ignore non-elements. This allows people to more easily inline conditionals.
|
|
@@ -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 buttonStyles = {"btn":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._UGTeZ{padding:0 16px;font-size:14px;line-height:14px;color:#fff;fill:#fff;background-color:#fff;border:1px solid #fff;border-radius:4px;height:36px;min-height:36px;cursor:pointer;position:relative;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;overflow:hidden;transition:border .2s,background .2s,color .2s}._UGTeZ._Ijjbi{padding:0 8px;height:26px;min-height:26px}._UGTeZ._4gWnR{display:block;width:100%}._UGTeZ._-PUST{cursor:not-allowed}._UGTeZ:active:focus,._UGTeZ:focus{outline:none}._UGTeZ._0-tJl{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._UGTeZ._0-tJl:hover:not(._-PUST){background-color:#eee}._UGTeZ._0-tJl:active:not(._-PUST){background-color:#e5e5e5}._UGTeZ._0-tJl._-PUST{color:rgba(81,85,89,.4);fill:rgba(81,85,89,.4);background-color:hsla(0,0%,100%,.4);border:1px solid rgba(81,85,89,.4)}._UGTeZ._JZBeE{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._UGTeZ._JZBeE:hover:not(._-PUST){background-color:#085caf;border-color:#085caf}._UGTeZ._JZBeE:active:not(._-PUST){background-color:#0854a1;border-color:#0854a1}._UGTeZ._JZBeE._-PUST{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._UGTeZ._Wtou5{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._UGTeZ._Wtou5:hover:not(._-PUST){background-color:#eef5fc}._UGTeZ._Wtou5:active:not(._-PUST){background-color:#e1edf9}._UGTeZ._Wtou5._-PUST{background-color:hsla(0,0%,100%,.4);border-color:rgba(11,110,208,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._UGTeZ._-bIV3{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._UGTeZ._-bIV3:hover:not(._-PUST){background-color:#eef5fc;border-color:#eef5fc}._UGTeZ._-bIV3:active:not(._-PUST){background-color:#e1edf9;border-color:#e1edf9}._UGTeZ._-bIV3._-PUST{background-color:hsla(0,0%,100%,.4);border-color:hsla(0,0%,100%,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._UGTeZ._vrV74{color:#0b6ed0;fill:#0b6ed0;padding:0}._UGTeZ._vrV74:hover:not(._-PUST){color:#085caf}._UGTeZ._vrV74:active:not(._-PUST){color:#0854a1}._UGTeZ._vrV74._-PUST{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._UGTeZ._dFOwP{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._UGTeZ._dFOwP:hover:not(._-PUST){background-color:#ffecec}._UGTeZ._dFOwP:active:not(._-PUST){background-color:#ffdbdb}._UGTeZ._dFOwP._-PUST{background-color:hsla(0,0%,100%,.4);border-color:rgba(187,0,0,.4);color:rgba(187,0,0,.4);fill:rgba(187,0,0,.4)}._UGTeZ.focus-visible,._UGTeZ:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var buttonStyles = {"btn":"_UGTeZ","small":"_Ijjbi","full":"_4gWnR","disabled":"_-PUST","default":"_0-tJl","primary":"_JZBeE","secondary":"_Wtou5","tertiary":"_-bIV3","link":"_vrV74","danger":"_dFOwP"};
|
|
5
|
+
var stylesheet="._UGTeZ{padding:0 16px;font-size:14px;line-height:14px;color:#fff;fill:#fff;background-color:#fff;border:1px solid #fff;border-radius:4px;height:36px;min-height:36px;cursor:pointer;position:relative;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;overflow:hidden;transition:border .2s,background .2s,color .2s}._UGTeZ._Ijjbi{padding:0 8px;height:26px;min-height:26px}._UGTeZ._4gWnR{display:block;width:100%}._UGTeZ._-PUST{cursor:not-allowed}._UGTeZ:active:focus,._UGTeZ:focus{outline:none}._UGTeZ._0-tJl{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._UGTeZ._0-tJl:hover:not(._-PUST){background-color:#eee}._UGTeZ._0-tJl:active:not(._-PUST){background-color:#e5e5e5}._UGTeZ._0-tJl._-PUST{color:rgba(81,85,89,.4);fill:rgba(81,85,89,.4);background-color:hsla(0,0%,100%,.4);border:1px solid rgba(81,85,89,.4)}._UGTeZ._JZBeE{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._UGTeZ._JZBeE:hover:not(._-PUST){background-color:#085caf;border-color:#085caf}._UGTeZ._JZBeE:active:not(._-PUST){background-color:#0854a1;border-color:#0854a1}._UGTeZ._JZBeE._-PUST{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._UGTeZ._Wtou5{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._UGTeZ._Wtou5:hover:not(._-PUST){background-color:#eef5fc}._UGTeZ._Wtou5:active:not(._-PUST){background-color:#e1edf9}._UGTeZ._Wtou5._-PUST{background-color:hsla(0,0%,100%,.4);border-color:rgba(11,110,208,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._UGTeZ._-bIV3{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._UGTeZ._-bIV3:hover:not(._-PUST){background-color:#eef5fc;border-color:#eef5fc}._UGTeZ._-bIV3:active:not(._-PUST){background-color:#e1edf9;border-color:#e1edf9}._UGTeZ._-bIV3._-PUST{background-color:hsla(0,0%,100%,.4);border-color:hsla(0,0%,100%,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._UGTeZ._vrV74{color:#0b6ed0;fill:#0b6ed0;padding:0}._UGTeZ._vrV74:hover:not(._-PUST){color:#085caf}._UGTeZ._vrV74:active:not(._-PUST){color:#0854a1}._UGTeZ._vrV74._-PUST{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._UGTeZ._dFOwP{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._UGTeZ._dFOwP:hover:not(._-PUST){background-color:#ffecec}._UGTeZ._dFOwP:active:not(._-PUST){background-color:#ffdbdb}._UGTeZ._dFOwP._-PUST{background-color:hsla(0,0%,100%,.4);border-color:rgba(187,0,0,.4);color:rgba(187,0,0,.4);fill:rgba(187,0,0,.4)}._UGTeZ.focus-visible,._UGTeZ:focus-visible{outline:none;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 { buttonStyles as default, stylesheet };
|
|
@@ -1,23 +1,29 @@
|
|
|
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 buttonStyles from './Button.js';
|
|
5
6
|
import { useInputGroupContext } from '../InputGroup/InputGroupProvider.js';
|
|
6
7
|
|
|
8
|
+
const _excluded = ["children", "kind", "disabled", "small", "full", "className", "type", "onClick", "onKeyDown", "aria-disabled"];
|
|
7
9
|
const Button = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
kind = 'default',
|
|
11
|
-
disabled =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
let children = _ref.children,
|
|
11
|
+
_ref$kind = _ref.kind,
|
|
12
|
+
kind = _ref$kind === void 0 ? 'default' : _ref$kind,
|
|
13
|
+
_ref$disabled = _ref.disabled,
|
|
14
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15
|
+
_ref$small = _ref.small,
|
|
16
|
+
small = _ref$small === void 0 ? false : _ref$small,
|
|
17
|
+
_ref$full = _ref.full,
|
|
18
|
+
full = _ref$full === void 0 ? false : _ref$full,
|
|
19
|
+
_ref$className = _ref.className,
|
|
20
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
21
|
+
_ref$type = _ref.type,
|
|
22
|
+
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
23
|
+
onClick = _ref.onClick,
|
|
24
|
+
onKeyDown = _ref.onKeyDown,
|
|
25
|
+
ariaDisabled = _ref['aria-disabled'],
|
|
26
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
27
|
const inputGroupContext = useInputGroupContext();
|
|
22
28
|
const classes = classNames(className, buttonStyles.btn, inputGroupContext.className, {
|
|
23
29
|
[buttonStyles[kind]]: kind,
|
|
@@ -1,16 +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 from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import styles from './ButtonGroup2.js';
|
|
5
6
|
|
|
7
|
+
const _excluded = ["children", "className", "full", "small"];
|
|
6
8
|
const ButtonGroup = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
...rest
|
|
13
|
-
} = _ref;
|
|
9
|
+
let children = _ref.children,
|
|
10
|
+
className = _ref.className,
|
|
11
|
+
full = _ref.full,
|
|
12
|
+
small = _ref.small,
|
|
13
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
14
|
return /*#__PURE__*/React__default.createElement("span", _extends({
|
|
15
15
|
role: "group"
|
|
16
16
|
}, rest, {
|
|
@@ -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 = {"buttonGroup":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._ij5DN{display:inline-flex;align-items:stretch}._ij5DN._eQvOG{width:100%}._ij5DN ._76EXt{margin:0;min-width:0}._ij5DN ._76EXt:focus{z-index:20}._ij5DN ._76EXt:hover{z-index:10}._ij5DN ._76EXt._qQWDH{border:none}._ij5DN ._76EXt._eQvOG{display:inline-flex;width:auto;flex-grow:1}._ij5DN ._76EXt:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._ij5DN ._76EXt:first-child._qQWDH{border-right:1px solid #fff}._ij5DN ._76EXt:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._ij5DN ._76EXt:not(:last-child):not(:first-child)._qQWDH{border-left:1px solid #fff;border-right:1px solid #fff}._ij5DN ._76EXt:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._ij5DN ._76EXt:last-child._qQWDH{border-left:1px solid #fff}._ij5DN ._76EXt:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
4
|
+
var styles = {"buttonGroup":"_ij5DN","full":"_eQvOG","buttonGroupElement":"_76EXt","primary":"_qQWDH"};
|
|
5
|
+
var stylesheet="._ij5DN{display:inline-flex;align-items:stretch}._ij5DN._eQvOG{width:100%}._ij5DN ._76EXt{margin:0;min-width:0}._ij5DN ._76EXt:focus{z-index:20}._ij5DN ._76EXt:hover{z-index:10}._ij5DN ._76EXt._qQWDH{border:none}._ij5DN ._76EXt._eQvOG{display:inline-flex;width:auto;flex-grow:1}._ij5DN ._76EXt:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._ij5DN ._76EXt:first-child._qQWDH{border-right:1px solid #fff}._ij5DN ._76EXt:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._ij5DN ._76EXt:not(:last-child):not(:first-child)._qQWDH{border-left:1px solid #fff;border-right:1px solid #fff}._ij5DN ._76EXt:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._ij5DN ._76EXt:last-child._qQWDH{border-left:1px solid #fff}._ij5DN ._76EXt:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
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,15 +1,17 @@
|
|
|
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 './Checkbox2.js';
|
|
5
6
|
|
|
7
|
+
const _excluded = ["className", "checked", "disabled"];
|
|
6
8
|
const Check = _ref => {
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
checked = false,
|
|
10
|
-
disabled =
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
let className = _ref.className,
|
|
10
|
+
_ref$checked = _ref.checked,
|
|
11
|
+
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
12
|
+
_ref$disabled = _ref.disabled,
|
|
13
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
15
|
return /*#__PURE__*/React__default.createElement("span", _extends({
|
|
14
16
|
className: classNames(className, styles.check, {
|
|
15
17
|
[styles.checked]: checked === true,
|
|
@@ -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, { useMemo, useRef, useEffect } from 'react';
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import styles from './Checkbox2.js';
|
|
@@ -17,31 +19,30 @@ import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
|
17
19
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
18
20
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
19
21
|
|
|
22
|
+
const _excluded = ["id", "className", "checked", "defaultChecked", "disabled", "onChange", "value", "name", "label", "errorText", "helperText", "inputProps", "aria-label", "aria-labelledby", "aria-describedby", "data-testid"];
|
|
20
23
|
const Checkbox = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
21
24
|
var _ref2, _ref3;
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
onChange,
|
|
29
|
-
value,
|
|
30
|
-
name,
|
|
31
|
-
label,
|
|
32
|
-
errorText,
|
|
33
|
-
helperText,
|
|
34
|
-
inputProps,
|
|
35
|
-
'aria-label'
|
|
36
|
-
'aria-labelledby'
|
|
37
|
-
'aria-describedby'
|
|
38
|
-
'data-testid'
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
fieldErrors
|
|
44
|
-
} = useFormField();
|
|
25
|
+
let id = _ref.id,
|
|
26
|
+
className = _ref.className,
|
|
27
|
+
externalChecked = _ref.checked,
|
|
28
|
+
defaultChecked = _ref.defaultChecked,
|
|
29
|
+
_ref$disabled = _ref.disabled,
|
|
30
|
+
externalDisabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
31
|
+
onChange = _ref.onChange,
|
|
32
|
+
value = _ref.value,
|
|
33
|
+
name = _ref.name,
|
|
34
|
+
label = _ref.label,
|
|
35
|
+
errorText = _ref.errorText,
|
|
36
|
+
helperText = _ref.helperText,
|
|
37
|
+
inputProps = _ref.inputProps,
|
|
38
|
+
externalAriaLabel = _ref['aria-label'],
|
|
39
|
+
externalAriaLabelledBy = _ref['aria-labelledby'],
|
|
40
|
+
externalAriaDescribedBy = _ref['aria-describedby'],
|
|
41
|
+
dataTestId = _ref['data-testid'],
|
|
42
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
43
|
+
const _useFormField = useFormField(),
|
|
44
|
+
register = _useFormField.register,
|
|
45
|
+
fieldErrors = _useFormField.fieldErrors;
|
|
45
46
|
const inputId = useId(id !== null && id !== void 0 ? id : inputProps === null || inputProps === void 0 ? void 0 : inputProps.id);
|
|
46
47
|
const registerProps = name && register ? register(name, {
|
|
47
48
|
type: 'checkbox'
|
|
@@ -51,12 +52,14 @@ const Checkbox = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
51
52
|
registerProps === null || registerProps === void 0 || registerProps.onBlur(e);
|
|
52
53
|
inputProps === null || inputProps === void 0 || (_inputProps$onBlur = inputProps.onBlur) === null || _inputProps$onBlur === void 0 || _inputProps$onBlur.call(inputProps, e);
|
|
53
54
|
};
|
|
54
|
-
const
|
|
55
|
-
helperTextId
|
|
56
|
-
errorTextId
|
|
57
|
-
} = useFormFieldContext();
|
|
55
|
+
const _useFormFieldContext = useFormFieldContext(),
|
|
56
|
+
formFieldHelperTextId = _useFormFieldContext.helperTextId,
|
|
57
|
+
formFieldErrorTextId = _useFormFieldContext.errorTextId;
|
|
58
58
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-describedby']);
|
|
59
|
-
const
|
|
59
|
+
const _useControllableState = useControllableState(defaultChecked, () => {}, (_ref2 = externalChecked !== null && externalChecked !== void 0 ? externalChecked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked) !== null && _ref2 !== void 0 ? _ref2 : registerProps === null || registerProps === void 0 ? void 0 : registerProps.checked),
|
|
60
|
+
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
61
|
+
checked = _useControllableState2[0],
|
|
62
|
+
setChecked = _useControllableState2[1];
|
|
60
63
|
const disabled = useMemo(() => externalDisabled !== null && externalDisabled !== void 0 ? externalDisabled : inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled, [externalDisabled, inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled]);
|
|
61
64
|
const onChangeHandler = useEventCallback(e => {
|
|
62
65
|
if (disabled) return;
|
|
@@ -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 = {"checkbox":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._fdnU5{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._aeimt,._fdnU5{cursor:pointer;height:16px;width:16px}._aeimt{position:absolute;opacity:0;z-index:10}._aeimt:disabled{cursor:not-allowed}._3zyXG{color:#32363a;display:flex;align-items:center;cursor:pointer}._1-m0T{cursor:auto;color:hsla(0,0%,53.7%,.4)}._uPDRC{margin-right:12px;flex-shrink:0}._1Zytu{position:absolute;top:0;left:0}._MMGh-{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}._aeimt:hover ._MMGh-:not(._ONPvo)._hMzjR,._MMGh-:not(._ONPvo):hover._hMzjR{background-color:#085caf}._aeimt:hover ._MMGh-:not(._ONPvo):not(._hMzjR),._MMGh-:not(._ONPvo):hover:not(._hMzjR){border-color:#0b6ed0}._MMGh- ._sALmm{fill:#0b6ed0;fill-opacity:0}._MMGh-._hMzjR ._sALmm{fill-opacity:1}._MMGh-._hMzjR:not(._ONPvo){border-color:transparent;background-color:#0b6ed0}._MMGh-._hMzjR:not(._ONPvo) ._sALmm{fill:#fff}._MMGh-._ONPvo{opacity:.4}._MMGh- ._ul1nf{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._0JvUz{color:#32363a;margin-left:12px}._GtLL6{display:flex;align-items:center}._GtLL6:has(input:disabled) ._0JvUz{color:rgba(50,54,58,.4)}._GtLL6:not(:has(input:disabled)) ._0JvUz{cursor:pointer}._aeimt.focus-visible~._1Zytu>._MMGh-,._aeimt:focus-visible~._1Zytu>._MMGh-{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"checkbox":"_fdnU5","input":"_aeimt","label":"_3zyXG","labelDisabled":"_1-m0T","wrappedInput":"_uPDRC","visualCheck":"_1Zytu","check":"_MMGh-","disabled":"_ONPvo","checked":"_hMzjR","checkIcon":"_sALmm","mixed":"_ul1nf","checkboxLabel":"_0JvUz","checkboxField":"_GtLL6"};
|
|
5
|
+
var stylesheet="._fdnU5{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._aeimt,._fdnU5{cursor:pointer;height:16px;width:16px}._aeimt{position:absolute;opacity:0;z-index:10}._aeimt:disabled{cursor:not-allowed}._3zyXG{color:#32363a;display:flex;align-items:center;cursor:pointer}._1-m0T{cursor:auto;color:hsla(0,0%,53.7%,.4)}._uPDRC{margin-right:12px;flex-shrink:0}._1Zytu{position:absolute;top:0;left:0}._MMGh-{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}._aeimt:hover ._MMGh-:not(._ONPvo)._hMzjR,._MMGh-:not(._ONPvo):hover._hMzjR{background-color:#085caf}._aeimt:hover ._MMGh-:not(._ONPvo):not(._hMzjR),._MMGh-:not(._ONPvo):hover:not(._hMzjR){border-color:#0b6ed0}._MMGh- ._sALmm{fill:#0b6ed0;fill-opacity:0}._MMGh-._hMzjR ._sALmm{fill-opacity:1}._MMGh-._hMzjR:not(._ONPvo){border-color:transparent;background-color:#0b6ed0}._MMGh-._hMzjR:not(._ONPvo) ._sALmm{fill:#fff}._MMGh-._ONPvo{opacity:.4}._MMGh- ._ul1nf{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._0JvUz{color:#32363a;margin-left:12px}._GtLL6{display:flex;align-items:center}._GtLL6:has(input:disabled) ._0JvUz{color:rgba(50,54,58,.4)}._GtLL6:not(:has(input:disabled)) ._0JvUz{cursor:pointer}._aeimt.focus-visible~._1Zytu>._MMGh-,._aeimt:focus-visible~._1Zytu>._MMGh-{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 };
|