@iress-oss/ids-components 6.0.0-alpha.0 → 6.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/Autocomplete-CLvWVHp6.js +358 -0
- package/dist/{Button-BXzmntRi.js → Button-D6AL0bia.js} +86 -85
- package/dist/Provider-BXQiO7Gp.js +64 -0
- package/dist/{TableProvider-D8SQKIG8.js → TableProvider-_4Whj6P5.js} +11 -11
- package/dist/components/Alert/Alert.js +34 -35
- package/dist/components/Alert/Alert.styles.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/Checkbox/Checkbox.js +85 -86
- package/dist/components/Checkbox/Checkbox.styles.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +69 -74
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +1 -1
- 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 +3 -2
- package/dist/components/Divider/Divider.js +2 -2
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.js +46 -41
- package/dist/components/Expander/Expander.styles.js +2 -2
- package/dist/components/Field/Field.js +55 -54
- package/dist/components/Field/Field.styles.js +10 -3
- package/dist/components/Field/FieldGroup/FieldGroup.js +40 -40
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +1 -1
- package/dist/components/Field/components/FieldFooter.js +32 -32
- package/dist/components/Field/components/FieldHint.js +2 -2
- package/dist/components/Filter/Filter.js +213 -100
- package/dist/components/Filter/Filter.styles.js +1 -1
- 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 +1 -1
- package/dist/components/Input/Input.js +98 -102
- package/dist/components/Input/Input.styles.js +1 -1
- package/dist/components/Input/InputBase/InputBase.js +23 -23
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +32 -32
- package/dist/components/Link/Link.js +50 -51
- package/dist/components/Link/Link.styles.js +2 -1
- package/dist/components/Menu/Menu.js +51 -51
- package/dist/components/Menu/Menu.styles.js +1 -1
- 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 +119 -123
- package/dist/components/Modal/Modal.styles.js +15 -6
- 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 +4 -4
- package/dist/components/Progress/Progress.styles.js +1 -1
- package/dist/components/Provider/Provider.js +12 -35
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +79 -80
- package/dist/components/Radio/Radio.styles.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +69 -77
- package/dist/components/RadioGroup/RadioGroup.styles.js +1 -1
- package/dist/components/Readonly/Readonly.js +44 -43
- package/dist/components/Readonly/Readonly.styles.js +8 -13
- package/dist/components/RichSelect/RichSelect.js +21 -86
- package/dist/components/RichSelect/RichSelect.styles.js +1 -1
- 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 +1 -1
- 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 +161 -105
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +2 -2
- package/dist/components/Slideout/Slideout.js +155 -160
- package/dist/components/Slideout/Slideout.styles.js +1 -1
- 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 +1 -1
- 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 +3 -3
- package/dist/components/TabSet/Tab/Tab.js +88 -88
- package/dist/components/TabSet/Tab/Tab.styles.js +1 -1
- package/dist/components/TabSet/TabSet.js +69 -59
- package/dist/components/TabSet/TabSet.styles.js +1 -1
- 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 +1 -2
- 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 +2 -2
- package/dist/components/Text/index.js +1 -2
- package/dist/components/Toaster/Toaster.js +59 -11
- package/dist/components/Toaster/Toaster.styles.js +1 -1
- 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 +1 -1
- package/dist/components/Toaster/components/Toast/ToastAnimated.js +36 -37
- package/dist/components/Toaster/hooks/useToaster.js +24 -22
- package/dist/components/Toaster/index.js +5 -4
- package/dist/components/Toggle/Toggle.js +42 -42
- package/dist/components/Toggle/Toggle.styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +25 -26
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/{composeTableColumnDefs-CeWqgpKW.js → composeTableColumnDefs-Hmd6yfdj.js} +99 -99
- 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-CmSaAiNF.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/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-CvOVcYUc.js} +40 -14
- package/dist/{index.esm-BnSuefUA.js → index.esm-8uZEha-3.js} +1 -1
- package/dist/{index.esm-BdbWn-w_.js → index.esm-B6vzbp0e.js} +5 -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 +19 -7
- package/dist/patterns/Loading/LoadingSuspense.js +26 -26
- package/dist/patterns/Loading/components/ComponentLoading.js +49 -49
- 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 +63 -60
- package/dist/patterns/Loading/components/StartUpLoading.js +61 -59
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/hooks/useShowIndicator.js +11 -11
- package/dist/patterns/Shadow/Shadow.js +32235 -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 +1 -1
- 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/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/components/Field/Field.styles.d.ts +8 -1
- package/dist/src/components/Field/FieldGroup/FieldGroup.styles.d.ts +1 -1
- package/dist/src/components/Label/Label.styles.d.ts +1 -1
- package/dist/src/components/Modal/Modal.styles.d.ts +6 -0
- 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/Readonly/Readonly.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/RichSelect.d.ts +11 -1
- 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/Slideout/SlideoutProvider.d.ts +0 -6
- package/dist/src/components/Slideout/hooks/useSlideout.d.ts +7 -0
- 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/hooks/useToaster.d.ts +7 -6
- package/dist/src/enums.d.ts +1 -9
- package/dist/src/interfaces.d.ts +1 -0
- 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 +1 -0
- 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 +47 -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 +21 -6
- package/dist/src/styled-system/types/prop-type.d.ts +9 -2
- 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/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,127 +1,126 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getFormControlValueAsString as
|
|
4
|
-
import { IressCheckboxMark as
|
|
1
|
+
import { jsx as c, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as K, useRef as L, useId as Q, useState as W, useContext as X, useCallback as Y, useImperativeHandle as Z } from "react";
|
|
3
|
+
import { getFormControlValueAsString as g } from "../../helpers/form/getFormControlValueAsString.js";
|
|
4
|
+
import { IressCheckboxMark as _ } from "../CheckboxMark/CheckboxMark.js";
|
|
5
5
|
import "../CheckboxMark/CheckboxMark.styles.js";
|
|
6
|
-
import { useControlledState as
|
|
7
|
-
import { IressReadonly as
|
|
6
|
+
import { useControlledState as $ } from "../../hooks/useControlledState.js";
|
|
7
|
+
import { IressReadonly as ee } from "../Readonly/Readonly.js";
|
|
8
8
|
import "../Readonly/Readonly.styles.js";
|
|
9
9
|
import { checkbox as oe } from "./Checkbox.styles.js";
|
|
10
|
-
import { c as l } from "../../
|
|
11
|
-
import { c as
|
|
12
|
-
import { propagateTestid as
|
|
13
|
-
import { getCheckboxGroupContext as
|
|
10
|
+
import { c as l } from "../../css-fGu_jDvv.js";
|
|
11
|
+
import { c as y } from "../../cx-DN21T1EH.js";
|
|
12
|
+
import { propagateTestid as te } from "../../helpers/utility/propagateTestid.js";
|
|
13
|
+
import { getCheckboxGroupContext as se } from "../CheckboxGroup/CheckboxGroup.js";
|
|
14
14
|
import "../CheckboxGroup/CheckboxGroup.styles.js";
|
|
15
|
-
import { GlobalCSSClass as
|
|
16
|
-
import { s as F } from "../../factory-
|
|
17
|
-
import { s as
|
|
18
|
-
import { IressText as
|
|
19
|
-
import { useNoDefaultValueInForms as
|
|
20
|
-
const
|
|
15
|
+
import { GlobalCSSClass as i } from "../../enums.js";
|
|
16
|
+
import { s as F } from "../../factory-oPXoMw9H.js";
|
|
17
|
+
import { s as re } from "../../is-valid-prop-Ce0wiweq.js";
|
|
18
|
+
import { IressText as ne } from "../Text/Text.js";
|
|
19
|
+
import { useNoDefaultValueInForms as ce } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
20
|
+
const ae = ({
|
|
21
21
|
checked: S,
|
|
22
22
|
className: V,
|
|
23
|
-
defaultChecked:
|
|
24
|
-
hiddenControl:
|
|
25
|
-
hiddenLabel:
|
|
26
|
-
indeterminate:
|
|
27
|
-
id:
|
|
28
|
-
name:
|
|
29
|
-
onChange:
|
|
30
|
-
value:
|
|
31
|
-
children:
|
|
32
|
-
readOnly:
|
|
23
|
+
defaultChecked: d,
|
|
24
|
+
hiddenControl: N,
|
|
25
|
+
hiddenLabel: R,
|
|
26
|
+
indeterminate: u,
|
|
27
|
+
id: G,
|
|
28
|
+
name: v,
|
|
29
|
+
onChange: p,
|
|
30
|
+
value: o,
|
|
31
|
+
children: h,
|
|
32
|
+
readOnly: w,
|
|
33
33
|
touch: j,
|
|
34
34
|
"data-testid": f,
|
|
35
|
-
...
|
|
36
|
-
},
|
|
37
|
-
|
|
35
|
+
...k
|
|
36
|
+
}, E) => {
|
|
37
|
+
ce({
|
|
38
38
|
component: "IressCheckbox",
|
|
39
|
-
defaultValue:
|
|
39
|
+
defaultValue: d,
|
|
40
40
|
message: "Using the `defaultChecked` prop on an `IressCheckbox` inside an `IressForm` component is not supported. Please use the `defaultValue` prop on the `IressFormField`, or use `defaultValues` on the `IressForm` component (recommended) to ensure a single source of truth for your form."
|
|
41
41
|
});
|
|
42
|
-
const C =
|
|
43
|
-
|
|
44
|
-
), e =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
const C = L(null), a = C.current, H = Q(), b = G ?? H, [M, P] = W(
|
|
43
|
+
u ?? !1
|
|
44
|
+
), e = X(se()), T = e ? void 0 : d, q = e?.hiddenCheckbox ?? N, A = e?.touch ?? j, D = e?.readOnly ?? w, O = e?.name ?? v;
|
|
45
|
+
let m = S;
|
|
46
|
+
e && o ? m = e.value.includes(o) : !e && typeof o == "boolean" && (m = o);
|
|
47
|
+
const {
|
|
48
|
+
value: t,
|
|
49
|
+
setValue: x,
|
|
50
|
+
isControlled: s
|
|
51
|
+
} = $({
|
|
49
52
|
component: "IressCheckbox",
|
|
50
53
|
propName: "checked",
|
|
51
|
-
defaultValue:
|
|
52
|
-
value:
|
|
53
|
-
}),
|
|
54
|
-
(
|
|
55
|
-
|
|
56
|
-
r || q(!1), I(a.target.checked), i == null || i(a, a.target.checked, t), (x = e == null ? void 0 : e.onChange) == null || x.call(e, a, a.target.checked, t);
|
|
54
|
+
defaultValue: T,
|
|
55
|
+
value: m
|
|
56
|
+
}), U = s ? u : M, z = Y(
|
|
57
|
+
(n) => {
|
|
58
|
+
s || P(!1), x(n.target.checked), p?.(n, n.target.checked, o), e?.onChange?.(n, n.target.checked, o);
|
|
57
59
|
},
|
|
58
|
-
[e,
|
|
60
|
+
[e, s, p, x, o]
|
|
59
61
|
);
|
|
60
|
-
if (E
|
|
61
|
-
focus: () =>
|
|
62
|
-
blur: () =>
|
|
63
|
-
input:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
})), z)
|
|
68
|
-
return s ? /* @__PURE__ */ m(
|
|
69
|
-
te,
|
|
62
|
+
if (Z(E, () => ({
|
|
63
|
+
focus: () => a?.focus(),
|
|
64
|
+
blur: () => a?.blur(),
|
|
65
|
+
input: a
|
|
66
|
+
})), D)
|
|
67
|
+
return t ? /* @__PURE__ */ c(
|
|
68
|
+
ee,
|
|
70
69
|
{
|
|
71
|
-
...
|
|
70
|
+
...k,
|
|
72
71
|
width: void 0,
|
|
73
|
-
value:
|
|
74
|
-
children:
|
|
72
|
+
value: g(o),
|
|
73
|
+
children: h
|
|
75
74
|
}
|
|
76
75
|
) : null;
|
|
77
|
-
const
|
|
78
|
-
hiddenControl:
|
|
79
|
-
hiddenLabel:
|
|
80
|
-
touch:
|
|
81
|
-
checked:
|
|
82
|
-
}), [
|
|
83
|
-
return /* @__PURE__ */
|
|
76
|
+
const r = oe.raw({
|
|
77
|
+
hiddenControl: q,
|
|
78
|
+
hiddenLabel: R,
|
|
79
|
+
touch: A,
|
|
80
|
+
checked: t
|
|
81
|
+
}), [B, J] = re(k);
|
|
82
|
+
return /* @__PURE__ */ I(
|
|
84
83
|
"div",
|
|
85
84
|
{
|
|
86
85
|
"data-testid": f,
|
|
87
|
-
className:
|
|
86
|
+
className: y(
|
|
88
87
|
V,
|
|
89
|
-
l(
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
l(r.root, B),
|
|
89
|
+
i.Group,
|
|
90
|
+
i.Checkbox
|
|
92
91
|
),
|
|
93
92
|
children: [
|
|
94
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ c(
|
|
95
94
|
F.input,
|
|
96
95
|
{
|
|
97
|
-
...
|
|
98
|
-
...
|
|
99
|
-
value:
|
|
96
|
+
...J,
|
|
97
|
+
...r.input,
|
|
98
|
+
value: g(o),
|
|
100
99
|
type: "checkbox",
|
|
101
|
-
id:
|
|
102
|
-
defaultChecked:
|
|
103
|
-
checked:
|
|
104
|
-
onChange:
|
|
100
|
+
id: b,
|
|
101
|
+
defaultChecked: s ? void 0 : t,
|
|
102
|
+
checked: s ? t : void 0,
|
|
103
|
+
onChange: z,
|
|
105
104
|
ref: C,
|
|
106
|
-
name:
|
|
105
|
+
name: O
|
|
107
106
|
}
|
|
108
107
|
),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
|
|
108
|
+
/* @__PURE__ */ I(F.label, { htmlFor: b, ...r.label, children: [
|
|
109
|
+
/* @__PURE__ */ c(
|
|
110
|
+
_,
|
|
112
111
|
{
|
|
113
|
-
className:
|
|
114
|
-
checked:
|
|
115
|
-
indeterminate:
|
|
116
|
-
"data-testid":
|
|
112
|
+
className: y(l(r.mark), i.FormElement),
|
|
113
|
+
checked: t,
|
|
114
|
+
indeterminate: U,
|
|
115
|
+
"data-testid": te(f, "checkboxMark")
|
|
117
116
|
}
|
|
118
117
|
),
|
|
119
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ c(ne, { element: "span", className: l(r.labelSpan), children: h })
|
|
120
119
|
] })
|
|
121
120
|
]
|
|
122
121
|
}
|
|
123
122
|
);
|
|
124
|
-
}, Re =
|
|
123
|
+
}, Re = K(ae);
|
|
125
124
|
export {
|
|
126
125
|
Re as IressCheckbox
|
|
127
126
|
};
|
|
@@ -1,92 +1,87 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { toArray as
|
|
4
|
-
import { useControlledState as
|
|
5
|
-
import { checkboxGroup as
|
|
6
|
-
import { c as
|
|
7
|
-
import { GlobalCSSClass as
|
|
8
|
-
import { useNoDefaultValueInForms as
|
|
9
|
-
function
|
|
10
|
-
return
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N, createContext as T, useRef as V, useImperativeHandle as j, useMemo as w } from "react";
|
|
3
|
+
import { toArray as m } from "../../helpers/formatting/toArray.js";
|
|
4
|
+
import { useControlledState as y } from "../../hooks/useControlledState.js";
|
|
5
|
+
import { checkboxGroup as A } from "./CheckboxGroup.styles.js";
|
|
6
|
+
import { c as D } from "../../cx-DN21T1EH.js";
|
|
7
|
+
import { GlobalCSSClass as E } from "../../enums.js";
|
|
8
|
+
import { useNoDefaultValueInForms as H } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
9
|
+
function M() {
|
|
10
|
+
return T(void 0);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function _() {
|
|
13
|
+
return z;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
className:
|
|
17
|
-
value:
|
|
18
|
-
defaultValue:
|
|
19
|
-
children:
|
|
20
|
-
layout:
|
|
21
|
-
onBlur:
|
|
22
|
-
onChange:
|
|
23
|
-
onFocus:
|
|
24
|
-
hiddenCheckbox:
|
|
25
|
-
name:
|
|
26
|
-
role:
|
|
27
|
-
readOnly:
|
|
28
|
-
touch:
|
|
29
|
-
...
|
|
30
|
-
},
|
|
31
|
-
|
|
15
|
+
const z = M(), J = ({
|
|
16
|
+
className: f,
|
|
17
|
+
value: n,
|
|
18
|
+
defaultValue: r,
|
|
19
|
+
children: x,
|
|
20
|
+
layout: C = "stack",
|
|
21
|
+
onBlur: v,
|
|
22
|
+
onChange: b,
|
|
23
|
+
onFocus: d,
|
|
24
|
+
hiddenCheckbox: s,
|
|
25
|
+
name: l,
|
|
26
|
+
role: h = "group",
|
|
27
|
+
readOnly: t,
|
|
28
|
+
touch: i,
|
|
29
|
+
...k
|
|
30
|
+
}, G) => {
|
|
31
|
+
H({
|
|
32
32
|
component: "IressCheckboxGroup",
|
|
33
|
-
defaultValue:
|
|
33
|
+
defaultValue: r
|
|
34
34
|
});
|
|
35
|
-
const { value:
|
|
35
|
+
const { value: a, setValue: g, toggleValue: u } = y({
|
|
36
36
|
component: "IressCheckbox",
|
|
37
|
-
defaultValue:
|
|
37
|
+
defaultValue: r === void 0 ? void 0 : m(r),
|
|
38
38
|
multiple: !0,
|
|
39
|
-
onChange:
|
|
40
|
-
value:
|
|
41
|
-
}),
|
|
42
|
-
|
|
39
|
+
onChange: b,
|
|
40
|
+
value: n === void 0 ? void 0 : m(n)
|
|
41
|
+
}), e = V(null), c = e.current;
|
|
42
|
+
j(G, () => ({
|
|
43
43
|
// React hook form requires the focus, blur, input
|
|
44
|
-
focus: () =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
blur: () => e == null ? void 0 : e.blur(),
|
|
49
|
-
input: e,
|
|
44
|
+
focus: () => c?.querySelector("input")?.focus(),
|
|
45
|
+
blur: () => c?.blur(),
|
|
46
|
+
input: c,
|
|
50
47
|
// Custom methods allowing you to interact with an uncontrolled checkbox group
|
|
51
|
-
check: (o) =>
|
|
52
|
-
reset: () =>
|
|
48
|
+
check: (o) => u(o, !0),
|
|
49
|
+
reset: () => g([])
|
|
53
50
|
}));
|
|
54
|
-
const
|
|
51
|
+
const I = w(
|
|
55
52
|
() => ({
|
|
56
|
-
hiddenCheckbox:
|
|
57
|
-
name:
|
|
58
|
-
onChange: (o,
|
|
59
|
-
readOnly:
|
|
60
|
-
touch:
|
|
61
|
-
value:
|
|
53
|
+
hiddenCheckbox: s,
|
|
54
|
+
name: l,
|
|
55
|
+
onChange: (o, q, B) => u(B, q),
|
|
56
|
+
readOnly: t,
|
|
57
|
+
touch: i,
|
|
58
|
+
value: a ?? []
|
|
62
59
|
}),
|
|
63
|
-
[
|
|
64
|
-
),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}, { Provider: N } = K();
|
|
71
|
-
return /* @__PURE__ */ x(N, { value: S, children: /* @__PURE__ */ x(
|
|
60
|
+
[l, a, s, t, i, u]
|
|
61
|
+
), S = (o) => {
|
|
62
|
+
d?.(o), o.target === e.current && e.current.querySelector("input")?.focus();
|
|
63
|
+
}, F = (o) => {
|
|
64
|
+
o.relatedTarget && !e.current?.contains(o.relatedTarget) && v?.(o);
|
|
65
|
+
}, { Provider: R } = _();
|
|
66
|
+
return /* @__PURE__ */ p(R, { value: I, children: /* @__PURE__ */ p(
|
|
72
67
|
"div",
|
|
73
68
|
{
|
|
74
|
-
...
|
|
75
|
-
role:
|
|
76
|
-
ref:
|
|
77
|
-
className:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
69
|
+
...k,
|
|
70
|
+
role: h,
|
|
71
|
+
ref: e,
|
|
72
|
+
className: D(
|
|
73
|
+
f,
|
|
74
|
+
A({ layout: C, readOnly: t }),
|
|
75
|
+
E.CheckboxGroup
|
|
81
76
|
),
|
|
82
|
-
onBlur:
|
|
83
|
-
onFocus:
|
|
84
|
-
children:
|
|
77
|
+
onBlur: F,
|
|
78
|
+
onFocus: S,
|
|
79
|
+
children: x
|
|
85
80
|
}
|
|
86
81
|
) });
|
|
87
|
-
},
|
|
82
|
+
}, Z = N(J);
|
|
88
83
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
z as CheckboxGroupContext,
|
|
85
|
+
Z as IressCheckboxGroup,
|
|
86
|
+
_ as getCheckboxGroupContext
|
|
92
87
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "../../
|
|
2
|
+
import { c as o } from "../../css-fGu_jDvv.js";
|
|
3
3
|
import { c as p } from "../../cx-DN21T1EH.js";
|
|
4
4
|
import { checkboxMark as x } from "./CheckboxMark.styles.js";
|
|
5
|
-
import { s as k } from "../../is-valid-prop-
|
|
5
|
+
import { s as k } from "../../is-valid-prop-Ce0wiweq.js";
|
|
6
6
|
import { GlobalCSSClass as f } from "../../enums.js";
|
|
7
7
|
const d = ({
|
|
8
8
|
checked: r,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as r } from "../../sva-
|
|
1
|
+
import { s as r } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const e = r({
|
|
3
3
|
slots: ["root", "indeterminateMark", "checkedMark"],
|
|
4
4
|
base: {
|
|
@@ -13,7 +13,7 @@ const e = r({
|
|
|
13
13
|
borderColor: "colour.neutral.70",
|
|
14
14
|
borderRadius: "radius.025",
|
|
15
15
|
bg: "colour.neutral.10",
|
|
16
|
-
transitionProperty: "all",
|
|
16
|
+
transitionProperty: "[all]",
|
|
17
17
|
transitionDuration: "0.2s",
|
|
18
18
|
transitionTimingFunction: "ease-out",
|
|
19
19
|
color: "colour.primary.fill",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { s as r } from "../../factory-
|
|
2
|
+
import { s as r } from "../../factory-oPXoMw9H.js";
|
|
3
3
|
import { col as t } from "./Col.styles.js";
|
|
4
4
|
import { c as l } from "../../cx-DN21T1EH.js";
|
|
5
5
|
import { GlobalCSSClass as p } from "../../enums.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { s as t } from "../../factory-
|
|
2
|
+
import { s as t } from "../../factory-oPXoMw9H.js";
|
|
3
3
|
import { container as m } from "./Container.styles.js";
|
|
4
4
|
import { c as n } from "../../cx-DN21T1EH.js";
|
|
5
5
|
import { GlobalCSSClass as a } from "../../enums.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { a } from "../../cva-
|
|
1
|
+
import { c as a } from "../../cva-JiDXAa83.js";
|
|
2
2
|
const n = a({
|
|
3
3
|
base: {
|
|
4
4
|
borderRadius: "radius.system.layout",
|
|
5
5
|
paddingBlock: void 0,
|
|
6
6
|
paddingInline: "spacing.400",
|
|
7
|
-
marginInline: "auto"
|
|
7
|
+
marginInline: "auto",
|
|
8
|
+
width: "[100%]"
|
|
8
9
|
},
|
|
9
10
|
variants: {
|
|
10
11
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { c as p } from "../../
|
|
2
|
+
import { c as p } from "../../css-fGu_jDvv.js";
|
|
3
3
|
import { c as e } from "../../cx-DN21T1EH.js";
|
|
4
4
|
import { divider as a } from "./Divider.styles.js";
|
|
5
|
-
import { s as c } from "../../is-valid-prop-
|
|
5
|
+
import { s as c } from "../../is-valid-prop-Ce0wiweq.js";
|
|
6
6
|
import { GlobalCSSClass as l } from "../../enums.js";
|
|
7
7
|
const P = ({
|
|
8
8
|
className: r,
|
|
@@ -1,60 +1,65 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as P, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as j, useEffect as k } from "react";
|
|
3
|
-
import { propagateTestid as
|
|
4
|
-
import { useIdIfNeeded as
|
|
5
|
-
import { expander as
|
|
6
|
-
import { c } from "../../
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
3
|
+
import { propagateTestid as d } from "../../helpers/utility/propagateTestid.js";
|
|
4
|
+
import { useIdIfNeeded as w } from "../../hooks/useIdIfNeeded.js";
|
|
5
|
+
import { expander as m } from "./Expander.styles.js";
|
|
6
|
+
import { c as y } from "../../css-fGu_jDvv.js";
|
|
7
|
+
import { c as p } from "../../cx-DN21T1EH.js";
|
|
8
|
+
import { IressText as l } from "../Text/Text.js";
|
|
9
|
+
import { s as O } from "../../factory-oPXoMw9H.js";
|
|
10
|
+
import { s as S } from "../../is-valid-prop-Ce0wiweq.js";
|
|
11
|
+
import { GlobalCSSClass as T } from "../../enums.js";
|
|
12
|
+
const J = ({
|
|
11
13
|
activator: f,
|
|
12
|
-
activatorStyle:
|
|
13
|
-
children:
|
|
14
|
-
className:
|
|
14
|
+
activatorStyle: e = {},
|
|
15
|
+
children: x,
|
|
16
|
+
className: N,
|
|
15
17
|
"data-testid": o,
|
|
16
|
-
onChange:
|
|
17
|
-
id:
|
|
18
|
-
mode:
|
|
19
|
-
noGutter:
|
|
20
|
-
open:
|
|
21
|
-
...
|
|
18
|
+
onChange: u,
|
|
19
|
+
id: I,
|
|
20
|
+
mode: i = "section",
|
|
21
|
+
noGutter: h,
|
|
22
|
+
open: r = !1,
|
|
23
|
+
...C
|
|
22
24
|
}) => {
|
|
23
|
-
const [
|
|
25
|
+
const [s, c] = j(r), n = w({ id: I }), t = m({ mode: i, open: s }), _ = m.raw({ mode: i, open: s });
|
|
24
26
|
k(() => {
|
|
25
|
-
|
|
26
|
-
}, [
|
|
27
|
+
c(r);
|
|
28
|
+
}, [r]);
|
|
27
29
|
const b = () => {
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
30
|
+
c(!s), u?.(!s);
|
|
31
|
+
}, [v, E] = S(e);
|
|
32
|
+
return /* @__PURE__ */ P(
|
|
33
|
+
l,
|
|
32
34
|
{
|
|
33
|
-
className:
|
|
34
|
-
...
|
|
35
|
+
className: p(N, t.root, T.Expander),
|
|
36
|
+
...C,
|
|
35
37
|
"data-testid": o,
|
|
36
|
-
id:
|
|
38
|
+
id: n,
|
|
37
39
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
40
|
+
/* @__PURE__ */ a(
|
|
41
|
+
O.button,
|
|
40
42
|
{
|
|
41
|
-
...
|
|
42
|
-
"aria-expanded":
|
|
43
|
-
"aria-controls": `${
|
|
44
|
-
className:
|
|
45
|
-
|
|
43
|
+
...E,
|
|
44
|
+
"aria-expanded": s,
|
|
45
|
+
"aria-controls": `${n}__container`,
|
|
46
|
+
className: p(
|
|
47
|
+
e?.className,
|
|
48
|
+
y(_.activator, v)
|
|
49
|
+
),
|
|
50
|
+
"data-testid": e?.["data-testid"] ?? d(o, "activator"),
|
|
46
51
|
onClick: b,
|
|
47
52
|
type: "button",
|
|
48
53
|
children: f
|
|
49
54
|
}
|
|
50
55
|
),
|
|
51
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ a(
|
|
52
57
|
"div",
|
|
53
58
|
{
|
|
54
|
-
id: `${
|
|
55
|
-
className:
|
|
56
|
-
"data-testid":
|
|
57
|
-
children: /* @__PURE__ */
|
|
59
|
+
id: `${n}__container`,
|
|
60
|
+
className: t.container,
|
|
61
|
+
"data-testid": d(o, "container"),
|
|
62
|
+
children: /* @__PURE__ */ a("div", { className: t.containerInner, children: /* @__PURE__ */ a(l, { className: t.content, noGutter: h, children: x }) })
|
|
58
63
|
}
|
|
59
64
|
)
|
|
60
65
|
]
|
|
@@ -62,5 +67,5 @@ const H = ({
|
|
|
62
67
|
);
|
|
63
68
|
};
|
|
64
69
|
export {
|
|
65
|
-
|
|
70
|
+
J as IressExpander
|
|
66
71
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as e } from "../../sva-
|
|
1
|
+
import { s as e } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const o = e({
|
|
3
3
|
slots: ["root", "activator", "content", "container", "containerInner"],
|
|
4
4
|
base: {
|
|
@@ -10,7 +10,7 @@ const o = e({
|
|
|
10
10
|
alignItems: "center",
|
|
11
11
|
justifyContent: "space-between",
|
|
12
12
|
width: "auto",
|
|
13
|
-
|
|
13
|
+
bg: "transparent",
|
|
14
14
|
cursor: "pointer",
|
|
15
15
|
tableChevron: !0,
|
|
16
16
|
position: "relative",
|