@iress-oss/ids-components 6.0.0-alpha.0 → 6.0.0-alpha.2
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/README.md +1 -1
- package/dist/Autocomplete-C5ubHBTi.js +358 -0
- package/dist/{Button-BXzmntRi.js → Button-mmhMLwp9.js} +89 -85
- package/dist/Provider-8wS70V56.js +64 -0
- package/dist/{TableProvider-D8SQKIG8.js → TableProvider-bdUNuoG-.js} +11 -21
- package/dist/components/Alert/Alert.js +34 -35
- package/dist/components/Alert/Alert.styles.js +15 -15
- package/dist/components/Alert/index.js +4 -5
- package/dist/components/Autocomplete/Autocomplete.js +17 -82
- package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +36 -35
- package/dist/components/Autocomplete/index.js +6 -4
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/Badge.styles.js +5 -5
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
- package/dist/components/ButtonGroup/hooks/useButtonGroupItem.js +11 -12
- package/dist/components/Card/Card.js +2 -2
- package/dist/components/Card/Card.styles.js +17 -17
- package/dist/components/Checkbox/Checkbox.js +85 -86
- package/dist/components/Checkbox/Checkbox.styles.js +6 -6
- package/dist/components/CheckboxGroup/CheckboxGroup.js +69 -74
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +11 -11
- package/dist/components/CheckboxMark/CheckboxMark.js +2 -2
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +2 -2
- package/dist/components/Col/Col.js +1 -1
- package/dist/components/Col/Col.styles.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Container/Container.styles.js +4 -3
- package/dist/components/Divider/Divider.js +2 -2
- package/dist/components/Divider/Divider.styles.js +2 -2
- package/dist/components/Expander/Expander.js +46 -41
- package/dist/components/Expander/Expander.styles.js +5 -5
- package/dist/components/Field/Field.js +55 -54
- package/dist/components/Field/Field.styles.js +17 -10
- package/dist/components/Field/FieldGroup/FieldGroup.js +40 -40
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +6 -6
- package/dist/components/Field/components/FieldFooter.js +32 -32
- package/dist/components/Field/components/FieldHint.js +3 -3
- package/dist/components/Filter/Filter.js +213 -100
- package/dist/components/Filter/Filter.styles.js +4 -4
- package/dist/components/Filter/components/FilterResetButton.js +17 -18
- package/dist/components/Filter/components/FilterResultsDescriptor.js +6 -6
- package/dist/components/Filter/components/FilterSearch.js +18 -19
- package/dist/components/Filter/index.js +2 -2
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/Icon.styles.js +1 -1
- package/dist/components/Image/Image.js +1 -1
- package/dist/components/Image/Image.styles.js +1 -1
- package/dist/components/Inline/Inline.js +1 -1
- package/dist/components/Inline/Inline.styles.js +2 -2
- package/dist/components/Input/Input.js +102 -108
- package/dist/components/Input/Input.styles.js +8 -8
- package/dist/components/Input/InputBase/InputBase.js +23 -23
- package/dist/components/Label/Label.styles.js +4 -4
- package/dist/components/Label/LabelBase/LabelBase.js +32 -32
- package/dist/components/Link/Link.js +50 -51
- package/dist/components/Link/Link.styles.js +4 -3
- package/dist/components/Menu/Menu.js +51 -51
- package/dist/components/Menu/Menu.styles.js +12 -12
- package/dist/components/Menu/MenuDivider/MenuDivider.js +13 -13
- package/dist/components/Menu/MenuItem/MenuItem.js +144 -146
- package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +5 -5
- package/dist/components/Menu/MenuText/MenuText.js +38 -38
- package/dist/components/Modal/Modal.js +115 -125
- package/dist/components/Modal/Modal.styles.js +22 -13
- package/dist/components/Modal/ModalProvider.js +20 -22
- package/dist/components/Modal/hooks/useModal.js +9 -7
- package/dist/components/Modal/hooks/useProviderModal.js +8 -8
- package/dist/components/Modal/index.js +7 -6
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Panel/Panel.styles.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +14 -14
- package/dist/components/Placeholder/Placeholder.styles.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +89 -14
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +31 -34
- package/dist/components/Popover/Popover.js +44 -43
- package/dist/components/Popover/Popover.styles.js +2 -2
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverActivator.js +48 -53
- package/dist/components/Popover/components/PopoverContent.js +33 -33
- package/dist/components/Popover/helpers/composeFloatingProps.js +23 -26
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +11 -14
- package/dist/components/Popover/hooks/usePopover.js +79 -75
- package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +23 -26
- package/dist/components/Popover/hooks/usePopoverItem.js +16 -17
- package/dist/components/Popover/hooks/usePopoverNavigation.js +22 -22
- package/dist/components/Popover/index.js +6 -6
- package/dist/components/Progress/Progress.js +35 -41
- package/dist/components/Progress/Progress.styles.js +4 -4
- package/dist/components/Provider/Provider.js +12 -35
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +86 -81
- package/dist/components/Radio/Radio.styles.js +6 -6
- package/dist/components/RadioGroup/RadioGroup.js +69 -77
- package/dist/components/RadioGroup/RadioGroup.styles.js +5 -5
- package/dist/components/Readonly/Readonly.js +44 -43
- package/dist/components/Readonly/Readonly.styles.js +12 -17
- package/dist/components/RichSelect/RichSelect.js +21 -86
- package/dist/components/RichSelect/RichSelect.styles.js +10 -10
- package/dist/components/RichSelect/SelectBody/SelectBody.js +23 -117
- package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +1 -1
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +25 -114
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +67 -97
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +19 -19
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +6 -6
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +69 -69
- package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +52 -46
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +43 -98
- package/dist/components/RichSelect/SelectSearch/SelectSearch.styles.js +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +31 -32
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +159 -105
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +4 -4
- package/dist/components/RichSelect/components/SelectActivator.js +63 -6
- package/dist/components/RichSelect/components/SelectOptions.js +201 -95
- package/dist/components/RichSelect/index.js +18 -15
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/Row.styles.js +1 -1
- package/dist/components/Select/Select.js +71 -71
- package/dist/components/Select/Select.styles.js +9 -9
- package/dist/components/Select/SelectOption/SelectOption.js +1 -1
- package/dist/components/Select/components/SelectControl.js +1 -1
- package/dist/components/Select/components/SelectReadonly.js +30 -33
- package/dist/components/Select/helpers/nodesToSelectOptions.js +19 -20
- package/dist/components/Skeleton/Skeleton.styles.js +2 -2
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +3 -3
- package/dist/components/Slideout/Slideout.js +161 -161
- package/dist/components/Slideout/Slideout.styles.js +8 -8
- package/dist/components/Slideout/SlideoutProvider.js +18 -20
- package/dist/components/Slideout/components/SlideoutInner.js +3 -3
- package/dist/components/Slideout/hooks/useProviderSlideout.js +8 -8
- package/dist/components/Slideout/hooks/usePushElement.js +27 -27
- package/dist/components/Slideout/hooks/useSlideout.js +11 -9
- package/dist/components/Slideout/index.js +7 -6
- package/dist/components/Slider/Slider.js +76 -76
- package/dist/components/Slider/Slider.styles.js +4 -4
- package/dist/components/Slider/components/SliderTicks.js +15 -16
- package/dist/components/Spinner/Spinner.styles.js +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/Stack/Stack.styles.js +4 -4
- package/dist/components/TabSet/Tab/Tab.js +88 -88
- package/dist/components/TabSet/Tab/Tab.styles.js +3 -3
- package/dist/components/TabSet/TabSet.js +80 -67
- package/dist/components/TabSet/TabSet.styles.js +4 -4
- package/dist/components/TabSet/TabSetProvider.js +43 -43
- package/dist/components/Table/Table.js +39 -39
- package/dist/components/Table/Table.styles.js +10 -8
- package/dist/components/Table/TableBody/TableBody.js +76 -76
- package/dist/components/Table/TableFormattedValue/TableFormattedValue.js +8 -18
- package/dist/components/Table/TableProvider.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +8 -8
- package/dist/components/Table/components/TableHeader.js +31 -32
- package/dist/components/Table/components/TableHeaderCell.js +23 -24
- package/dist/components/Table/components/TableRows.js +38 -38
- package/dist/components/Table/components/TableSortButton.js +6 -6
- package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
- package/dist/components/Table/helpers/composeTableInitialSorting.js +4 -4
- package/dist/components/Table/hooks/useTableColumnSort.js +12 -12
- package/dist/components/Table/hooks/useTableColumnStyles.js +13 -14
- package/dist/components/Table/index.js +2 -3
- package/dist/components/Tag/Tag.js +29 -32
- package/dist/components/Tag/Tag.styles.js +5 -6
- package/dist/components/Tag/TagInput/TagInput.js +120 -104
- package/dist/components/Tag/TagInput/TagInput.styles.js +26 -0
- package/dist/components/Text/Text.js +16 -36
- package/dist/components/Text/Text.styles.js +5 -4
- package/dist/components/Text/index.js +1 -2
- package/dist/components/Toaster/Toaster.js +59 -11
- package/dist/components/Toaster/Toaster.styles.js +2 -2
- package/dist/components/Toaster/ToasterProvider.js +49 -6
- package/dist/components/Toaster/components/Toast/Toast.js +46 -47
- package/dist/components/Toaster/components/Toast/Toast.styles.js +13 -13
- package/dist/components/Toaster/components/Toast/ToastAnimated.js +38 -37
- package/dist/components/Toaster/hooks/useToaster.js +24 -22
- package/dist/components/Toaster/index.js +5 -4
- package/dist/components/Toggle/Toggle.js +59 -54
- package/dist/components/Toggle/Toggle.styles.js +13 -13
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.styles.js +2 -2
- package/dist/components/ValidationMessage/ValidationMessage.js +25 -26
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +5 -5
- package/dist/{composeTableColumnDefs-CeWqgpKW.js → composeTableColumnDefs-BfFBOARB.js} +99 -109
- package/dist/constants.js +10 -10
- package/dist/{create-recipe-BqEnhJ30.js → create-recipe-C-ASk1Hy.js} +11 -10
- package/dist/css-fGu_jDvv.js +228 -0
- package/dist/cva-JiDXAa83.js +63 -0
- package/dist/enums.js +7 -7
- package/dist/factory-oPXoMw9H.js +58 -0
- package/dist/{floating-ui.react-CPN4oQCc.js → floating-ui.react-BetVZ099.js} +1153 -1151
- package/dist/fuzzysort-DKAolWVP.js +397 -0
- package/dist/helpers/dom/closestCrossShadow.js +16 -17
- package/dist/helpers/dom/focusableElements.js +6 -6
- package/dist/helpers/dom/getActiveElement.js +5 -6
- package/dist/helpers/formatting/formatDateTime.js +9 -10
- package/dist/helpers/label-value/composeLabelValueDescriptor.js +8 -8
- package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
- package/dist/helpers/label-value/getValueFromLabelValues.js +5 -6
- package/dist/helpers/label-value/highlightQueryInLabel.js +4 -7
- package/dist/helpers/label-value/highlightQueryInLabelValue.js +6 -5
- package/dist/helpers/label-value/searchLabelValues.js +1 -1
- package/dist/helpers/responsive/getResponsiveLayoutModifiers.js +4 -4
- package/dist/helpers/styling/iressCss.js +2 -2
- package/dist/helpers/styling/mapGutterToGap.js +7 -7
- package/dist/helpers/transition/getTransitionDuration.js +5 -8
- package/dist/hooks/useAriaRelationship.js +19 -21
- package/dist/hooks/useBreakpoint.js +8 -11
- package/dist/hooks/useControlledState.js +37 -35
- package/dist/{index-DlGwAtoO.js → index-CZ9ot38T.js} +107 -129
- package/dist/{index.esm-BdbWn-w_.js → index.esm-B6vzbp0e.js} +5 -5
- package/dist/{index.esm-BnSuefUA.js → index.esm-CL8gh5wr.js} +1 -5
- package/dist/is-valid-prop-Ce0wiweq.js +7 -0
- package/dist/main.js +298 -292
- package/dist/patterns/Form/Form.js +1 -1
- package/dist/patterns/Form/Form.styles.js +1 -1
- package/dist/patterns/Form/FormField/FormField.js +41 -44
- package/dist/patterns/Form/FormField/FormFieldset.js +41 -44
- package/dist/patterns/Form/FormField/helpers/getErrorTypeMessage.js +10 -10
- package/dist/patterns/Form/FormField/hooks/useFieldRenderProps.js +26 -26
- package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +55 -56
- package/dist/patterns/Form/HookForm/HookForm.js +72 -75
- package/dist/patterns/Form/components/LongForm.js +1 -1
- package/dist/patterns/Form/components/ShortForm.js +12 -12
- package/dist/patterns/Loading/Loading.styles.js +32 -20
- package/dist/patterns/Loading/LoadingSuspense.js +34 -34
- package/dist/patterns/Loading/components/ComponentLoading.js +42 -47
- package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
- package/dist/patterns/Loading/components/LongLoading.js +45 -45
- package/dist/patterns/Loading/components/PageLoading.js +64 -64
- package/dist/patterns/Loading/components/StartUpLoading.js +61 -59
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +8 -12
- package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +14 -14
- package/dist/patterns/Loading/hooks/useShowIndicator.js +11 -11
- package/dist/patterns/Shadow/Shadow.js +22009 -0
- package/dist/patterns/Shadow/index.js +4 -0
- package/dist/src/components/Alert/Alert.d.ts +0 -1
- package/dist/src/components/Alert/Alert.styles.d.ts +2 -2
- package/dist/src/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +1 -1
- package/dist/src/components/Autocomplete/index.d.ts +1 -0
- package/dist/src/components/Badge/Badge.styles.d.ts +2 -2
- package/dist/src/components/Card/Card.styles.d.ts +2 -2
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -4
- package/dist/src/components/Expander/Expander.styles.d.ts +2 -2
- package/dist/src/components/Field/Field.styles.d.ts +13 -6
- package/dist/src/components/Field/FieldGroup/FieldGroup.styles.d.ts +1 -1
- package/dist/src/components/Inline/Inline.d.ts +1 -2
- package/dist/src/components/Label/Label.styles.d.ts +1 -1
- package/dist/src/components/Menu/Menu.styles.d.ts +5 -5
- package/dist/src/components/Modal/Modal.styles.d.ts +8 -2
- package/dist/src/components/Modal/ModalProvider.d.ts +0 -16
- package/dist/src/components/Modal/hooks/useModal.d.ts +17 -0
- package/dist/src/components/Popover/Popover.styles.d.ts +1 -1
- package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +1 -1
- package/dist/src/components/Popover/hooks/usePopover.d.ts +4 -0
- package/dist/src/components/Popover/hooks/usePopoverNavigation.d.ts +1 -1
- package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
- package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +4 -4
- package/dist/src/components/Readonly/Readonly.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/RichSelect.d.ts +11 -1
- package/dist/src/components/RichSelect/RichSelect.styles.d.ts +7 -7
- package/dist/src/components/RichSelect/SelectBody/SelectBody.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectMenu/SelectMenu.d.ts +2 -2
- package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectSearch/SelectSearch.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.d.ts +1 -2
- package/dist/src/components/RichSelect/SelectTags/SelectTags.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectTags/SelectTags.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
- package/dist/src/components/Row/Row.d.ts +1 -2
- package/dist/src/components/Select/Select.styles.d.ts +7 -7
- package/dist/src/components/Skeleton/Skeleton.styles.d.ts +1 -1
- package/dist/src/components/Slideout/Slideout.styles.d.ts +2 -2
- package/dist/src/components/Slideout/SlideoutProvider.d.ts +0 -6
- package/dist/src/components/Slideout/hooks/useSlideout.d.ts +7 -0
- package/dist/src/components/Stack/Stack.d.ts +1 -2
- package/dist/src/components/TabSet/TabSet.d.ts +10 -1
- package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.d.ts +2 -3
- package/dist/src/components/Table/helpers/composeTableColumnDefs.d.ts +1 -1
- package/dist/src/components/Tag/TagInput/TagInput.styles.d.ts +1 -0
- package/dist/src/components/Text/Text.d.ts +1 -2
- package/dist/src/components/Toaster/ToasterProvider.d.ts +0 -2
- package/dist/src/components/Toaster/components/Toast/Toast.d.ts +1 -2
- package/dist/src/components/Toaster/components/Toast/Toast.styles.d.ts +4 -4
- package/dist/src/components/Toaster/hooks/useToaster.d.ts +7 -6
- package/dist/src/components/Toggle/Toggle.d.ts +10 -2
- package/dist/src/components/Toggle/Toggle.styles.d.ts +4 -4
- package/dist/src/enums.d.ts +1 -9
- package/dist/src/interfaces.d.ts +9 -10
- package/dist/src/main.d.ts +1 -1
- package/dist/src/patterns/Form/hooks/useNoDefaultValueInForms.d.ts +1 -1
- package/dist/src/patterns/Loading/Loading.styles.d.ts +11 -10
- package/dist/src/patterns/Loading/components/PageLoading.d.ts +5 -1
- package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +8 -3
- package/dist/src/patterns/Loading/components/ValidateLoading.d.ts +1 -1
- package/dist/src/patterns/Shadow/Shadow.d.ts +34 -0
- package/dist/src/patterns/Shadow/index.d.ts +1 -0
- package/dist/src/patterns/Shadow/meta/Thumbnail.d.ts +2 -0
- package/dist/src/patterns/Shadow/meta/index.d.ts +7 -0
- package/dist/src/styled-system/jsx/create-style-context.d.ts +54 -0
- package/dist/src/styled-system/jsx/index.d.ts +1 -0
- package/dist/src/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/dist/src/styled-system/patterns/bleed.d.ts +0 -1
- package/dist/src/styled-system/patterns/box.d.ts +0 -1
- package/dist/src/styled-system/patterns/center.d.ts +0 -1
- package/dist/src/styled-system/patterns/circle.d.ts +0 -1
- package/dist/src/styled-system/patterns/container.d.ts +0 -1
- package/dist/src/styled-system/patterns/cq.d.ts +0 -1
- package/dist/src/styled-system/patterns/divider.d.ts +0 -1
- package/dist/src/styled-system/patterns/flex.d.ts +0 -1
- package/dist/src/styled-system/patterns/float.d.ts +0 -1
- package/dist/src/styled-system/patterns/grid-item.d.ts +0 -1
- package/dist/src/styled-system/patterns/grid.d.ts +0 -1
- package/dist/src/styled-system/patterns/hstack.d.ts +0 -1
- package/dist/src/styled-system/patterns/link-overlay.d.ts +0 -1
- package/dist/src/styled-system/patterns/spacer.d.ts +0 -1
- package/dist/src/styled-system/patterns/square.d.ts +0 -1
- package/dist/src/styled-system/patterns/stack.d.ts +0 -1
- package/dist/src/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/dist/src/styled-system/patterns/vstack.d.ts +0 -1
- package/dist/src/styled-system/patterns/wrap.d.ts +0 -1
- package/dist/src/styled-system/recipes/button.d.ts +4 -3
- package/dist/src/styled-system/recipes/table.d.ts +4 -1
- package/dist/src/styled-system/recipes/text.d.ts +3 -2
- package/dist/src/styled-system/tokens/tokens.d.ts +4 -4
- package/dist/src/styled-system/types/composition.d.ts +83 -23
- package/dist/src/styled-system/types/conditions.d.ts +15 -11
- package/dist/src/styled-system/types/jsx.d.ts +27 -10
- package/dist/src/styled-system/types/prop-type.d.ts +11 -4
- package/dist/src/styled-system/types/style-props.d.ts +14 -1
- package/dist/src/styled-system/types/system-types.d.ts +76 -0
- package/dist/src/types.d.ts +3 -1
- package/dist/style.css +1 -1
- package/dist/sva-OmxClA9g.js +34 -0
- package/package.json +68 -46
- package/dist/Filter-Bwk7SIlJ.js +0 -1103
- package/dist/InputPopover-BWWuoQZ2.js +0 -132
- package/dist/ToasterProvider-XqpAGfRs.js +0 -112
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/cva-B2x59Dph.js +0 -294
- package/dist/factory-DHLOr79I.js +0 -53
- package/dist/fuzzysort-eoXOpoo6.js +0 -395
- package/dist/helpers/utility/generateScopedName.js +0 -9
- package/dist/is-valid-prop-DFFvE05x.js +0 -7
- package/dist/panda.config.d.ts +0 -4
- package/dist/src/helpers/utility/generateScopedName.d.ts +0 -8
- package/dist/sva-TRyehFkb.js +0 -32
- package/dist/theme-preset/config-recipes/button.d.ts +0 -6
- package/dist/theme-preset/config-recipes/table.d.ts +0 -1
- package/dist/theme-preset/config-recipes/text.d.ts +0 -1
- package/dist/theme-preset/globalCss.d.ts +0 -1
- package/dist/theme-preset/index.d.ts +0 -2
- package/dist/theme-preset/staticCss.d.ts +0 -2
- package/dist/theme-preset/storybook.d.ts +0 -4
- package/dist/theme-preset/tokens/animationStyles.d.ts +0 -1
- package/dist/theme-preset/tokens/borders.d.ts +0 -50
- package/dist/theme-preset/tokens/breakpoints.d.ts +0 -8
- package/dist/theme-preset/tokens/colors.d.ts +0 -156
- package/dist/theme-preset/tokens/keyframes.d.ts +0 -1
- package/dist/theme-preset/tokens/layerStyles.d.ts +0 -40
- package/dist/theme-preset/tokens/radii.d.ts +0 -42
- package/dist/theme-preset/tokens/sizes.d.ts +0 -246
- package/dist/theme-preset/tokens/spacing.d.ts +0 -100
- package/dist/theme-preset/tokens/textStyles.d.ts +0 -5
- package/dist/theme-preset/tokens/zIndex.d.ts +0 -23
- package/dist/theme-preset/utilities/chevron.d.ts +0 -3
- package/dist/theme-preset/utilities/focusable.d.ts +0 -1
- package/dist/theme-preset/utilities/gutter.d.ts +0 -1
- package/dist/theme-preset/utilities/hide.d.ts +0 -1
- package/dist/theme-preset/utilities/noGutter.d.ts +0 -1
- package/dist/theme-preset/utilities/offset.d.ts +0 -75
- package/dist/theme-preset/utilities/sliderThumb.d.ts +0 -1
- package/dist/theme-preset/utilities/span.d.ts +0 -120
- package/dist/theme-preset/utilities/stretch.d.ts +0 -1
- package/dist/theme-preset/utilities/topLeftTriangle.d.ts +0 -2
- package/dist/typography--vGt_ztU.js +0 -12
- package/dist/vite.config.d.ts +0 -2
- package/dist/vitest.config.d.ts +0 -2
- package/dist/vitest.setup.d.ts +0 -0
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,42 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { propagateTestid as
|
|
4
|
-
import { mapNodesToSelectOptions as
|
|
5
|
-
import { IressReadonly as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l, useMemo as c } from "react";
|
|
3
|
+
import { propagateTestid as u } from "../../../helpers/utility/propagateTestid.js";
|
|
4
|
+
import { mapNodesToSelectOptions as R } from "../helpers/nodesToSelectOptions.js";
|
|
5
|
+
import { IressReadonly as S } from "../../Readonly/Readonly.js";
|
|
6
6
|
import "../../Readonly/Readonly.styles.js";
|
|
7
|
-
const
|
|
7
|
+
const b = ({
|
|
8
8
|
children: t,
|
|
9
|
-
className:
|
|
10
|
-
"data-testid":
|
|
11
|
-
name:
|
|
12
|
-
required:
|
|
13
|
-
width:
|
|
9
|
+
className: e,
|
|
10
|
+
"data-testid": r,
|
|
11
|
+
name: m,
|
|
12
|
+
required: p,
|
|
13
|
+
width: s,
|
|
14
14
|
value: o,
|
|
15
|
-
...
|
|
16
|
-
},
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, [t, o]);
|
|
25
|
-
return /* @__PURE__ */ l(
|
|
26
|
-
b,
|
|
15
|
+
...i
|
|
16
|
+
}, n) => {
|
|
17
|
+
const a = c(() => String(
|
|
18
|
+
R(t).find(
|
|
19
|
+
(d) => d.value === o
|
|
20
|
+
)?.label ?? ""
|
|
21
|
+
), [t, o]);
|
|
22
|
+
return /* @__PURE__ */ f(
|
|
23
|
+
S,
|
|
27
24
|
{
|
|
28
|
-
...
|
|
29
|
-
className:
|
|
30
|
-
"data-testid":
|
|
31
|
-
name:
|
|
32
|
-
ref:
|
|
33
|
-
required:
|
|
34
|
-
width:
|
|
25
|
+
...i,
|
|
26
|
+
className: e,
|
|
27
|
+
"data-testid": u(r, "pseudo"),
|
|
28
|
+
name: m,
|
|
29
|
+
ref: n,
|
|
30
|
+
required: p,
|
|
31
|
+
width: s,
|
|
35
32
|
value: o,
|
|
36
|
-
children:
|
|
33
|
+
children: a
|
|
37
34
|
}
|
|
38
35
|
);
|
|
39
|
-
},
|
|
36
|
+
}, C = l(b);
|
|
40
37
|
export {
|
|
41
|
-
|
|
38
|
+
C as SelectReadonly
|
|
42
39
|
};
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
import { toArray as
|
|
2
|
-
import { getFormControlValueAsString as
|
|
3
|
-
import { IressSelectOption as
|
|
4
|
-
const
|
|
5
|
-
(e, r = { type:
|
|
6
|
-
var p, t;
|
|
1
|
+
import { toArray as n } from "../../../helpers/formatting/toArray.js";
|
|
2
|
+
import { getFormControlValueAsString as o } from "../../../helpers/form/getFormControlValueAsString.js";
|
|
3
|
+
import { IressSelectOption as t } from "../SelectOption/SelectOption.js";
|
|
4
|
+
const l = (i) => n(i).reduce(
|
|
5
|
+
(e, r = { type: t, props: { label: "" }, key: "" }) => {
|
|
7
6
|
if (r.type === "optgroup")
|
|
8
7
|
e = [
|
|
9
8
|
...e,
|
|
10
9
|
{
|
|
11
10
|
label: r.props.label,
|
|
12
|
-
children:
|
|
11
|
+
children: l(r.props.children)
|
|
13
12
|
}
|
|
14
13
|
];
|
|
15
|
-
else if ([
|
|
16
|
-
const
|
|
17
|
-
delete
|
|
18
|
-
const
|
|
14
|
+
else if ([t, "option"].includes(r.type)) {
|
|
15
|
+
const p = { ...r.props };
|
|
16
|
+
delete p.children;
|
|
17
|
+
const s = String(r.props.children);
|
|
19
18
|
e = [
|
|
20
19
|
...e,
|
|
21
20
|
{
|
|
22
|
-
...
|
|
23
|
-
label:
|
|
21
|
+
...p,
|
|
22
|
+
label: s
|
|
24
23
|
}
|
|
25
24
|
];
|
|
26
|
-
} else (
|
|
25
|
+
} else (r.props?.children || Array.isArray(r)) && (e = [
|
|
27
26
|
...e,
|
|
28
|
-
...
|
|
29
|
-
|
|
27
|
+
...l(
|
|
28
|
+
r.props?.children ?? r
|
|
30
29
|
)
|
|
31
30
|
]);
|
|
32
31
|
return e;
|
|
33
32
|
},
|
|
34
33
|
[]
|
|
35
|
-
),
|
|
36
|
-
(r, p) => r || (p.children ?
|
|
34
|
+
), h = (i, e = []) => e.reduce(
|
|
35
|
+
(r, p) => r || (p.children ? h(i, p.children) : o(p.value) === i ? p.value : r),
|
|
37
36
|
void 0
|
|
38
37
|
);
|
|
39
38
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
h as findValueFromStringInSelectOptions,
|
|
40
|
+
l as mapNodesToSelectOptions
|
|
42
41
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as t } from "../../cva-JiDXAa83.js";
|
|
2
2
|
const o = t({
|
|
3
3
|
base: {
|
|
4
4
|
backgroundColor: "colour.neutral.30",
|
|
@@ -25,7 +25,7 @@ const o = t({
|
|
|
25
25
|
},
|
|
26
26
|
text: {
|
|
27
27
|
width: "[100%]",
|
|
28
|
-
height: "[spacing.
|
|
28
|
+
height: "[spacing.6]"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
|
-
import { I as p } from "../../Button-
|
|
3
|
+
import { I as p } from "../../Button-mmhMLwp9.js";
|
|
4
4
|
import "../Button/CloseButton/CloseButton.js";
|
|
5
5
|
import { c as k } from "../../cx-DN21T1EH.js";
|
|
6
6
|
import { skipLink as n } from "./SkipLink.styles.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const s =
|
|
1
|
+
import { c as t } from "../../cva-JiDXAa83.js";
|
|
2
|
+
const s = t({
|
|
3
3
|
base: {
|
|
4
4
|
position: "absolute",
|
|
5
5
|
top: "[0]",
|
|
6
6
|
left: "[50%]",
|
|
7
7
|
zIndex: "100",
|
|
8
8
|
transform: "[translateX(-50%) translateY(-125%)]",
|
|
9
|
-
marginTop: "spacing.
|
|
9
|
+
marginTop: "spacing.2",
|
|
10
10
|
_focus: {
|
|
11
11
|
transform: "[translateX(-50%) translateY(0)]"
|
|
12
12
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { u as
|
|
5
|
-
import { idsLogger as
|
|
6
|
-
import { propagateTestid as
|
|
7
|
-
import { SlideoutInner as
|
|
8
|
-
import { slideout as
|
|
9
|
-
import { useIdIfNeeded as
|
|
10
|
-
import { IressText as
|
|
11
|
-
import { usePushElement as
|
|
12
|
-
import { s as
|
|
13
|
-
import { GlobalCSSClass as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
|
|
1
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import { c as z } from "../../cx-DN21T1EH.js";
|
|
3
|
+
import { useState as V, useRef as ee, useEffect as b, useMemo as A, useCallback as te } from "react";
|
|
4
|
+
import { u as ne, b as oe, c as re, d as se, e as le, g as ie } from "../../floating-ui.react-BetVZ099.js";
|
|
5
|
+
import { idsLogger as ue } from "../../helpers/utility/idsLogger.js";
|
|
6
|
+
import { propagateTestid as ae } from "../../helpers/utility/propagateTestid.js";
|
|
7
|
+
import { SlideoutInner as fe } from "./components/SlideoutInner.js";
|
|
8
|
+
import { slideout as ce } from "./Slideout.styles.js";
|
|
9
|
+
import { useIdIfNeeded as de } from "../../hooks/useIdIfNeeded.js";
|
|
10
|
+
import { IressText as he } from "../Text/Text.js";
|
|
11
|
+
import { usePushElement as pe } from "./hooks/usePushElement.js";
|
|
12
|
+
import { s as me } from "../../is-valid-prop-Ce0wiweq.js";
|
|
13
|
+
import { GlobalCSSClass as O } from "../../enums.js";
|
|
14
|
+
import { useProviderSlideout as ge } from "./hooks/useProviderSlideout.js";
|
|
15
|
+
import { getTransitionDuration as ye } from "../../helpers/transition/getTransitionDuration.js";
|
|
16
|
+
function Se(o) {
|
|
17
|
+
function l() {
|
|
18
|
+
r && (e.length > 0 && /^[~+>]$/.test(e[e.length - 1]) && e.push(" "), e.push(r));
|
|
19
19
|
}
|
|
20
|
-
var e = [], t,
|
|
20
|
+
var e = [], t, r, i, n = [0], s = 0, a, u = /(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/, d = /^\s+$/, m = [
|
|
21
21
|
/\s+|\/\*|["'>~+[(]/g,
|
|
22
22
|
// general
|
|
23
23
|
/\s+|\/\*|["'[\]()]/g,
|
|
@@ -29,216 +29,216 @@ function Ne(r) {
|
|
|
29
29
|
/\*\//g
|
|
30
30
|
// comment
|
|
31
31
|
];
|
|
32
|
-
for (
|
|
33
|
-
if (
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
for (o = o.trim(); ; )
|
|
33
|
+
if (r = "", i = m[n[n.length - 1]], i.lastIndex = s, t = i.exec(o), t)
|
|
34
|
+
if (a = s, s = i.lastIndex, a < s - t[0].length && (r = o.substring(
|
|
35
|
+
a,
|
|
36
|
+
s - t[0].length
|
|
37
37
|
)), n[n.length - 1] < 3) {
|
|
38
|
-
if (
|
|
38
|
+
if (l(), t[0] === "[")
|
|
39
39
|
n.push(1);
|
|
40
40
|
else if (t[0] === "(")
|
|
41
41
|
n.push(2);
|
|
42
42
|
else if (/^["']$/.test(t[0]))
|
|
43
|
-
n.push(3),
|
|
43
|
+
n.push(3), m[3] = new RegExp(t[0], "g");
|
|
44
44
|
else if (t[0] === "/*")
|
|
45
45
|
n.push(4);
|
|
46
46
|
else if (/^[\])]$/.test(t[0]) && n.length > 0)
|
|
47
47
|
n.pop();
|
|
48
|
-
else if (/^(?:\s+|[~+>])$/.test(t[0]) && (e.length > 0 && !
|
|
48
|
+
else if (/^(?:\s+|[~+>])$/.test(t[0]) && (e.length > 0 && !d.test(e[e.length - 1]) && n[n.length - 1] === 0 && e.push(" "), n[n.length - 1] === 1 && e.length === 5 && e[2].charAt(e[2].length - 1) === "=" && (e[4] = " " + e[4]), d.test(t[0])))
|
|
49
49
|
continue;
|
|
50
50
|
e.push(t[0]);
|
|
51
51
|
} else
|
|
52
|
-
e[e.length - 1] +=
|
|
52
|
+
e[e.length - 1] += r, u.test(e[e.length - 1]) && (n[n.length - 1] === 4 && (e.length < 2 || d.test(e[e.length - 2]) ? e.pop() : e[e.length - 1] = " ", t[0] = ""), n.pop()), e[e.length - 1] += t[0];
|
|
53
53
|
else {
|
|
54
|
-
|
|
54
|
+
r = o.substr(s), l();
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
57
|
return e.join("").trim();
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return
|
|
59
|
+
function Ee(o, l = document, e = null) {
|
|
60
|
+
return be(o, !1, l, e);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
64
|
-
let
|
|
65
|
-
return document.head.createShadowRoot || document.head.attachShadow ?
|
|
62
|
+
function be(o, l, e, t = null) {
|
|
63
|
+
o = Se(o);
|
|
64
|
+
let r = e.querySelector(o);
|
|
65
|
+
return document.head.createShadowRoot || document.head.attachShadow ? r || C(o, ",").reduce((n, s) => {
|
|
66
66
|
if (n)
|
|
67
67
|
return n;
|
|
68
|
-
const
|
|
69
|
-
return n =
|
|
70
|
-
}, null) :
|
|
68
|
+
const a = C(s.replace(/^\s+/g, "").replace(/\s*([>+~]+)\s*/g, "$1"), " ").filter((g) => !!g).map((g) => C(g, ">")), u = a.length - 1, d = a[u][a[u].length - 1], m = Ne(d, e, t), w = we(a, u, e);
|
|
69
|
+
return n = m.find(w), n || null;
|
|
70
|
+
}, null) : r;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function we(o, l, e) {
|
|
73
73
|
return (t) => {
|
|
74
|
-
let
|
|
75
|
-
for (;
|
|
76
|
-
let
|
|
77
|
-
if (r
|
|
78
|
-
|
|
74
|
+
let r = l, i = t, n = !1;
|
|
75
|
+
for (; i && !Ie(i); ) {
|
|
76
|
+
let s = !0;
|
|
77
|
+
if (o[r].length === 1)
|
|
78
|
+
s = i.matches(o[r]);
|
|
79
79
|
else {
|
|
80
|
-
const
|
|
81
|
-
let
|
|
82
|
-
for (const
|
|
83
|
-
if (!
|
|
84
|
-
|
|
80
|
+
const a = [].concat(o[r]).reverse();
|
|
81
|
+
let u = i;
|
|
82
|
+
for (const d of a) {
|
|
83
|
+
if (!u || !u.matches(d)) {
|
|
84
|
+
s = !1;
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
u = T(u, e);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
if (
|
|
90
|
+
if (s && r === 0) {
|
|
91
91
|
n = !0;
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
s && r--, i = T(i, e);
|
|
95
95
|
}
|
|
96
96
|
return n;
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
return
|
|
99
|
+
function C(o, l) {
|
|
100
|
+
return o.match(/\\?.|^$/g).reduce((e, t) => (t === '"' && !e.sQuote ? (e.quote ^= 1, e.a[e.a.length - 1] += t) : t === "'" && !e.quote ? (e.sQuote ^= 1, e.a[e.a.length - 1] += t) : !e.quote && !e.sQuote && t === l ? e.a.push("") : e.a[e.a.length - 1] += t, e), { a: [""] }).a;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
102
|
+
function Ie(o) {
|
|
103
|
+
return o.nodeType === Node.DOCUMENT_FRAGMENT_NODE || o.nodeType === Node.DOCUMENT_NODE;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
const e =
|
|
107
|
-
return e && e.host && e.nodeType === 11 ? e.host : e ===
|
|
105
|
+
function T(o, l) {
|
|
106
|
+
const e = o.parentNode;
|
|
107
|
+
return e && e.host && e.nodeType === 11 ? e.host : e === l ? null : e;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Ne(o = null, l, e = null) {
|
|
110
110
|
let t = [];
|
|
111
111
|
if (e)
|
|
112
112
|
t = e;
|
|
113
113
|
else {
|
|
114
|
-
const
|
|
115
|
-
for (let n = 0; n <
|
|
116
|
-
const
|
|
117
|
-
t.push(
|
|
114
|
+
const r = function(i) {
|
|
115
|
+
for (let n = 0; n < i.length; n++) {
|
|
116
|
+
const s = i[n];
|
|
117
|
+
t.push(s), s.shadowRoot && r(s.shadowRoot.querySelectorAll("*"));
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
|
|
120
|
+
l.shadowRoot && r(l.shadowRoot.querySelectorAll("*")), r(l.querySelectorAll("*"));
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return o ? t.filter((r) => r.matches(o)) : t;
|
|
123
123
|
}
|
|
124
|
-
const
|
|
125
|
-
children:
|
|
126
|
-
className:
|
|
124
|
+
const Ue = ({
|
|
125
|
+
children: o,
|
|
126
|
+
className: l,
|
|
127
127
|
closeText: e = "Close",
|
|
128
128
|
container: t,
|
|
129
|
-
"data-testid":
|
|
130
|
-
defaultShow:
|
|
129
|
+
"data-testid": r,
|
|
130
|
+
defaultShow: i = !1,
|
|
131
131
|
eleToPush: n,
|
|
132
|
-
footer:
|
|
133
|
-
heading:
|
|
134
|
-
mode:
|
|
135
|
-
onEntered:
|
|
136
|
-
onExited:
|
|
137
|
-
onShowChange:
|
|
132
|
+
footer: s,
|
|
133
|
+
heading: a,
|
|
134
|
+
mode: u = "overlay",
|
|
135
|
+
onEntered: d,
|
|
136
|
+
onExited: m,
|
|
137
|
+
onShowChange: w,
|
|
138
138
|
onStatus: g,
|
|
139
|
-
onTransitionEnd:
|
|
140
|
-
position:
|
|
141
|
-
show:
|
|
142
|
-
size:
|
|
143
|
-
style:
|
|
144
|
-
...
|
|
139
|
+
onTransitionEnd: D,
|
|
140
|
+
position: y = "right",
|
|
141
|
+
show: I,
|
|
142
|
+
size: N = "sm",
|
|
143
|
+
style: P,
|
|
144
|
+
...x
|
|
145
145
|
}) => {
|
|
146
|
-
const [
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
146
|
+
const [F, U] = V(i);
|
|
147
|
+
let M = 240;
|
|
148
|
+
const S = ee(null), E = ge(x.id), R = de({ id: x.id }), v = `${R}--heading`, Q = E.opened || I || F, q = (f, p, k) => {
|
|
149
|
+
E?.show?.(f), U(f), w?.(f, k);
|
|
150
|
+
}, { context: h } = ne({
|
|
151
|
+
open: Q,
|
|
152
|
+
onOpenChange: q
|
|
153
|
+
}), j = oe(h, {
|
|
153
154
|
enabled: !0,
|
|
154
155
|
outsidePress: !1
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
}), G = re(h), H = se([j, G]);
|
|
157
|
+
h.refs.floating.current && (M = ye(
|
|
158
|
+
h.refs.floating.current,
|
|
159
|
+
1.2,
|
|
160
|
+
240
|
|
161
|
+
));
|
|
162
|
+
const { isMounted: B, status: c } = le(h, {
|
|
163
|
+
duration: M
|
|
164
|
+
}), L = ce({
|
|
165
|
+
position: y,
|
|
166
|
+
size: N,
|
|
167
|
+
status: c,
|
|
168
|
+
mode: u
|
|
162
169
|
});
|
|
163
|
-
|
|
164
|
-
|
|
170
|
+
b(() => {
|
|
171
|
+
E.opened && I && ue(
|
|
165
172
|
"IressSlideout: Please use either IressSlideoutProvider for uncontrolled components, or the show prop for controlled components, rather than both. If you use both, the open state of the slideout will become unpredictable. If you want to show a slideout by default in uncontrolled mode, use the defaultShow prop."
|
|
166
173
|
);
|
|
167
|
-
}, [
|
|
168
|
-
g
|
|
169
|
-
}, [
|
|
170
|
-
const
|
|
171
|
-
return
|
|
172
|
-
|
|
174
|
+
}, [E.opened, I]), b(() => {
|
|
175
|
+
g?.(c);
|
|
176
|
+
}, [c, g]), b(() => {
|
|
177
|
+
const f = (p) => typeof p == "string" ? Ee(p) : p instanceof Element ? p : p?.current;
|
|
178
|
+
return u === "overlay" ? S.current = null : S.current = f(n), () => {
|
|
179
|
+
S.current = null;
|
|
173
180
|
};
|
|
174
|
-
}, [n,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
) * 1.2);
|
|
179
|
-
}, [p.refs.floating, d]), w(() => {
|
|
180
|
-
var l, c;
|
|
181
|
-
d === "open" && ((c = (l = p.refs.floating) == null ? void 0 : l.current) == null || c.focus());
|
|
182
|
-
}, [p.refs.floating, d]);
|
|
183
|
-
const X = F(
|
|
181
|
+
}, [n, u]), b(() => {
|
|
182
|
+
c === "open" && h.refs.floating?.current?.focus();
|
|
183
|
+
}, [h.refs.floating, c]);
|
|
184
|
+
const J = A(
|
|
184
185
|
() => ({
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
// eslint-disable-next-line react-hooks/refs -- we want to forward the ref
|
|
187
|
+
element: S.current ?? null,
|
|
188
|
+
isActive: u === "push",
|
|
189
|
+
position: y,
|
|
190
|
+
size: N,
|
|
191
|
+
status: c
|
|
190
192
|
}),
|
|
191
|
-
[
|
|
193
|
+
[S, u, y, N, c]
|
|
192
194
|
);
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
(
|
|
196
|
-
|
|
197
|
-
const
|
|
198
|
-
!(
|
|
195
|
+
pe(J);
|
|
196
|
+
const K = te(
|
|
197
|
+
(f) => {
|
|
198
|
+
D?.(f);
|
|
199
|
+
const p = y === "right" ? "right" : "left";
|
|
200
|
+
!(f.propertyName === p || f.propertyName === "opacity" || !f.propertyName) || f.target !== f.currentTarget || (c === "open" ? d?.() : c === "close" && m?.());
|
|
199
201
|
},
|
|
200
|
-
[
|
|
201
|
-
),
|
|
202
|
-
|
|
202
|
+
[D, y, c, d, m]
|
|
203
|
+
), $ = A(() => typeof a == "string" ? /* @__PURE__ */ _(
|
|
204
|
+
he,
|
|
203
205
|
{
|
|
204
|
-
id:
|
|
205
|
-
"data-testid":
|
|
206
|
+
id: v,
|
|
207
|
+
"data-testid": ae(r, "heading"),
|
|
206
208
|
element: "h2",
|
|
207
|
-
children:
|
|
209
|
+
children: a
|
|
208
210
|
}
|
|
209
|
-
) :
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
children: r,
|
|
221
|
-
className: Z,
|
|
211
|
+
) : a, [r, v, a]);
|
|
212
|
+
if (!B) return null;
|
|
213
|
+
const W = z(
|
|
214
|
+
L.root,
|
|
215
|
+
l,
|
|
216
|
+
O.Slideout,
|
|
217
|
+
c === "open" && O.SlideoutOpen
|
|
218
|
+
), [X, Y] = me(x), Z = {
|
|
219
|
+
"aria-labelledby": $ ? v : void 0,
|
|
220
|
+
children: o,
|
|
221
|
+
className: W,
|
|
222
222
|
closeText: e,
|
|
223
|
-
"data-testid":
|
|
224
|
-
footer:
|
|
225
|
-
floatingRef: (
|
|
226
|
-
heading:
|
|
227
|
-
id:
|
|
228
|
-
onOpenChange:
|
|
229
|
-
...
|
|
230
|
-
...
|
|
231
|
-
onTransitionEnd:
|
|
223
|
+
"data-testid": r,
|
|
224
|
+
footer: s,
|
|
225
|
+
floatingRef: (f) => h.refs.setFloating(f),
|
|
226
|
+
heading: $,
|
|
227
|
+
id: R,
|
|
228
|
+
onOpenChange: q,
|
|
229
|
+
...X,
|
|
230
|
+
...H.getFloatingProps(Y),
|
|
231
|
+
onTransitionEnd: K
|
|
232
232
|
};
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
|
|
233
|
+
return /* @__PURE__ */ _(ie, { root: t, children: /* @__PURE__ */ _(
|
|
234
|
+
fe,
|
|
235
235
|
{
|
|
236
|
-
...
|
|
237
|
-
style:
|
|
238
|
-
"data-testid":
|
|
236
|
+
...Z,
|
|
237
|
+
style: P,
|
|
238
|
+
"data-testid": r
|
|
239
239
|
}
|
|
240
240
|
) });
|
|
241
241
|
};
|
|
242
242
|
export {
|
|
243
|
-
|
|
243
|
+
Ue as IressSlideout
|
|
244
244
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as t } from "../../sva-
|
|
1
|
+
import { s as t } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const i = t({
|
|
3
3
|
slots: ["root", "content", "footer", "closeButton"],
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
6
6
|
textStyle: "typography.body.md",
|
|
7
7
|
position: "fixed",
|
|
8
|
-
insetBlockStart: "spacing.
|
|
8
|
+
insetBlockStart: "spacing.0",
|
|
9
9
|
height: "[100%]",
|
|
10
10
|
maxWidth: "[100%]",
|
|
11
11
|
overflowY: "auto",
|
|
@@ -31,15 +31,15 @@ const i = t({
|
|
|
31
31
|
},
|
|
32
32
|
closeButton: {
|
|
33
33
|
position: "absolute",
|
|
34
|
-
insetInlineEnd: "spacing.
|
|
35
|
-
insetBlockStart: "spacing.
|
|
34
|
+
insetInlineEnd: "spacing.1",
|
|
35
|
+
insetBlockStart: "spacing.1"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
variants: {
|
|
39
39
|
position: {
|
|
40
40
|
right: {
|
|
41
41
|
root: {
|
|
42
|
-
insetInlineEnd: "spacing.
|
|
42
|
+
insetInlineEnd: "spacing.0",
|
|
43
43
|
borderStartStartRadius: "radius.050",
|
|
44
44
|
borderEndStartRadius: "radius.050",
|
|
45
45
|
borderStartEndRadius: "radius.000",
|
|
@@ -51,7 +51,7 @@ const i = t({
|
|
|
51
51
|
},
|
|
52
52
|
left: {
|
|
53
53
|
root: {
|
|
54
|
-
insetInlineStart: "spacing.
|
|
54
|
+
insetInlineStart: "spacing.0",
|
|
55
55
|
borderStartStartRadius: "radius.000",
|
|
56
56
|
borderEndStartRadius: "radius.000",
|
|
57
57
|
borderStartEndRadius: "radius.050",
|
|
@@ -143,7 +143,7 @@ const i = t({
|
|
|
143
143
|
position: "right",
|
|
144
144
|
css: {
|
|
145
145
|
root: {
|
|
146
|
-
insetInlineEnd: "spacing.
|
|
146
|
+
insetInlineEnd: "spacing.0"
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
},
|
|
@@ -152,7 +152,7 @@ const i = t({
|
|
|
152
152
|
position: "left",
|
|
153
153
|
css: {
|
|
154
154
|
root: {
|
|
155
|
-
insetInlineStart: "spacing.
|
|
155
|
+
insetInlineStart: "spacing.0"
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
}
|