@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,152 +1,142 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import "../../Button-
|
|
4
|
-
import { IressCloseButton as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { s as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
const
|
|
19
|
-
children:
|
|
20
|
-
className:
|
|
21
|
-
closeText:
|
|
22
|
-
container:
|
|
23
|
-
"data-testid":
|
|
24
|
-
defaultShow:
|
|
25
|
-
disableBackdropClick:
|
|
26
|
-
fixedFooter:
|
|
27
|
-
footer:
|
|
28
|
-
heading:
|
|
29
|
-
noCloseButton:
|
|
30
|
-
onEntered:
|
|
31
|
-
onExited:
|
|
32
|
-
onShowChange:
|
|
33
|
-
onStatus:
|
|
34
|
-
onTransitionEnd:
|
|
35
|
-
show:
|
|
1
|
+
import { jsx as n, jsxs as w } from "react/jsx-runtime";
|
|
2
|
+
import { useState as Z, useEffect as N, useMemo as oo } from "react";
|
|
3
|
+
import "../../Button-mmhMLwp9.js";
|
|
4
|
+
import { IressCloseButton as eo } from "../Button/CloseButton/CloseButton.js";
|
|
5
|
+
import { u as to, b as ro, c as so, d as no, e as ao, F as io, f as lo, g as co } from "../../floating-ui.react-BetVZ099.js";
|
|
6
|
+
import { idsLogger as mo } from "../../helpers/utility/idsLogger.js";
|
|
7
|
+
import { propagateTestid as l } from "../../helpers/utility/propagateTestid.js";
|
|
8
|
+
import { useIdIfNeeded as fo } from "../../hooks/useIdIfNeeded.js";
|
|
9
|
+
import { text as uo } from "../Text/Text.styles.js";
|
|
10
|
+
import { IressText as po } from "../Text/Text.js";
|
|
11
|
+
import { useProviderModal as go } from "./hooks/useProviderModal.js";
|
|
12
|
+
import { modal as ho } from "./Modal.styles.js";
|
|
13
|
+
import { c as C } from "../../cx-DN21T1EH.js";
|
|
14
|
+
import { s as u } from "../../factory-oPXoMw9H.js";
|
|
15
|
+
import { s as bo } from "../../is-valid-prop-Ce0wiweq.js";
|
|
16
|
+
import { GlobalCSSClass as p } from "../../enums.js";
|
|
17
|
+
import { getTransitionDuration as yo } from "../../helpers/transition/getTransitionDuration.js";
|
|
18
|
+
const Ro = ({
|
|
19
|
+
children: P,
|
|
20
|
+
className: k,
|
|
21
|
+
closeText: S,
|
|
22
|
+
container: g,
|
|
23
|
+
"data-testid": t,
|
|
24
|
+
defaultShow: E = !1,
|
|
25
|
+
disableBackdropClick: B,
|
|
26
|
+
fixedFooter: T,
|
|
27
|
+
footer: h,
|
|
28
|
+
heading: d,
|
|
29
|
+
noCloseButton: j,
|
|
30
|
+
onEntered: D,
|
|
31
|
+
onExited: O,
|
|
32
|
+
onShowChange: R,
|
|
33
|
+
onStatus: b,
|
|
34
|
+
onTransitionEnd: _,
|
|
35
|
+
show: c,
|
|
36
36
|
static: a,
|
|
37
|
-
style:
|
|
38
|
-
...
|
|
37
|
+
style: $,
|
|
38
|
+
...m
|
|
39
39
|
}) => {
|
|
40
|
-
const [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
const [G, L] = Z(E);
|
|
41
|
+
let y = 240;
|
|
42
|
+
const s = go(m.id), F = fo({ id: m.id }), f = `${F}--heading`, U = s.opened || c || G, I = (o) => {
|
|
43
|
+
s.show(o), L(o), R?.(o);
|
|
44
|
+
}, { context: e } = to({
|
|
45
|
+
open: U,
|
|
46
|
+
onOpenChange: I
|
|
47
|
+
}), q = ro(e, {
|
|
48
|
+
enabled: !B,
|
|
49
|
+
outsidePress: (o) => !o.target.closest(`.${p.Toaster}`),
|
|
48
50
|
outsidePressEvent: "mousedown"
|
|
49
|
-
}),
|
|
51
|
+
}), z = so(e), A = no([q, z]);
|
|
52
|
+
e.refs.floating.current && (y = yo(
|
|
53
|
+
e.refs.floating.current,
|
|
54
|
+
1.2,
|
|
55
|
+
240
|
|
56
|
+
));
|
|
57
|
+
const { isMounted: H, status: i } = ao(e, {
|
|
50
58
|
duration: {
|
|
51
|
-
close:
|
|
59
|
+
close: y
|
|
52
60
|
}
|
|
53
|
-
}),
|
|
54
|
-
fixedFooter:
|
|
61
|
+
}), r = ho({
|
|
62
|
+
fixedFooter: T,
|
|
55
63
|
static: a,
|
|
56
|
-
status:
|
|
57
|
-
}), [
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
status: i
|
|
65
|
+
}), [J, K] = bo(m), { p: v = "lg", width: Q = "overlay.md", ...V } = J;
|
|
66
|
+
N(() => {
|
|
67
|
+
s.opened && c && mo(
|
|
60
68
|
"IressModal: Please use either IressModalProvider for uncontrolled components, or the show prop for controlled components, rather than both. If you use both, the open state of the modal will become unpredictable. If you want to show a modal by default in uncontrolled mode, use the defaultShow prop."
|
|
61
69
|
);
|
|
62
|
-
}, [
|
|
63
|
-
|
|
64
|
-
}, [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
((g = window.getComputedStyle(t.refs.floating.current, null)) == null ? void 0 : g.transitionDuration) || ".3s"
|
|
68
|
-
) * 1.2);
|
|
69
|
-
}, [t.refs.floating, s]);
|
|
70
|
-
const P = se(() => typeof i == "string" ? /* @__PURE__ */ n(
|
|
71
|
-
Fe,
|
|
70
|
+
}, [s.opened, c]), N(() => {
|
|
71
|
+
b?.(i);
|
|
72
|
+
}, [i, b]);
|
|
73
|
+
const x = oo(() => typeof d == "string" ? /* @__PURE__ */ n(
|
|
74
|
+
po,
|
|
72
75
|
{
|
|
73
|
-
className:
|
|
74
|
-
id:
|
|
76
|
+
className: r.header,
|
|
77
|
+
id: f,
|
|
75
78
|
element: "h2",
|
|
76
|
-
"data-testid":
|
|
77
|
-
children:
|
|
79
|
+
"data-testid": l(t, "heading"),
|
|
80
|
+
children: d
|
|
78
81
|
}
|
|
79
|
-
) :
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
[
|
|
87
|
-
u,
|
|
88
|
-
s,
|
|
89
|
-
d,
|
|
90
|
-
t.refs.floating,
|
|
91
|
-
m,
|
|
92
|
-
a
|
|
93
|
-
]
|
|
94
|
-
);
|
|
95
|
-
if (!X) return null;
|
|
96
|
-
const R = /* @__PURE__ */ n(
|
|
97
|
-
fe,
|
|
82
|
+
) : d, [t, f, d, r.header]), W = (o) => {
|
|
83
|
+
_?.(o), !(!(o.propertyName === "opacity" || !o.propertyName) || o.target !== o.currentTarget) && (i === "open" ? (D?.(), a || e.refs.floating?.current?.focus()) : i === "close" && O?.());
|
|
84
|
+
};
|
|
85
|
+
if (!H) return null;
|
|
86
|
+
const M = /* @__PURE__ */ n(
|
|
87
|
+
io,
|
|
98
88
|
{
|
|
99
|
-
className:
|
|
100
|
-
"data-testid":
|
|
89
|
+
className: C(k, r.backdrop, p.ModalBackdrop),
|
|
90
|
+
"data-testid": l(t, "backdrop"),
|
|
101
91
|
lockScroll: !a,
|
|
102
|
-
style:
|
|
92
|
+
style: $,
|
|
103
93
|
children: /* @__PURE__ */ n(
|
|
104
|
-
|
|
94
|
+
lo,
|
|
105
95
|
{
|
|
106
|
-
context:
|
|
107
|
-
initialFocus:
|
|
96
|
+
context: e,
|
|
97
|
+
initialFocus: e.refs.floating,
|
|
108
98
|
disabled: a,
|
|
109
|
-
children: /* @__PURE__ */
|
|
110
|
-
|
|
99
|
+
children: /* @__PURE__ */ w(
|
|
100
|
+
u.div,
|
|
111
101
|
{
|
|
112
|
-
ref: (
|
|
113
|
-
className:
|
|
114
|
-
id:
|
|
115
|
-
"data-testid":
|
|
116
|
-
"aria-labelledby":
|
|
117
|
-
...
|
|
118
|
-
...
|
|
119
|
-
w:
|
|
120
|
-
onTransitionEnd:
|
|
102
|
+
ref: (o) => e.refs.setFloating(o),
|
|
103
|
+
className: C(r.modal, uo(), p.Modal),
|
|
104
|
+
id: F,
|
|
105
|
+
"data-testid": t,
|
|
106
|
+
"aria-labelledby": x ? f : void 0,
|
|
107
|
+
...A.getFloatingProps(K),
|
|
108
|
+
...V,
|
|
109
|
+
w: Q,
|
|
110
|
+
onTransitionEnd: W,
|
|
121
111
|
children: [
|
|
122
|
-
!
|
|
123
|
-
|
|
112
|
+
!j && /* @__PURE__ */ n(
|
|
113
|
+
eo,
|
|
124
114
|
{
|
|
125
|
-
onClick: () =>
|
|
126
|
-
screenreaderText:
|
|
127
|
-
className:
|
|
128
|
-
"data-testid":
|
|
115
|
+
onClick: () => I(!1),
|
|
116
|
+
screenreaderText: S,
|
|
117
|
+
className: r.closeButton,
|
|
118
|
+
"data-testid": l(t, "close-button__button")
|
|
129
119
|
}
|
|
130
120
|
),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
|
|
121
|
+
/* @__PURE__ */ w(
|
|
122
|
+
u.div,
|
|
133
123
|
{
|
|
134
|
-
className:
|
|
135
|
-
"data-testid":
|
|
136
|
-
p:
|
|
124
|
+
className: r.content,
|
|
125
|
+
"data-testid": l(t, "content"),
|
|
126
|
+
p: v,
|
|
137
127
|
children: [
|
|
138
|
-
|
|
139
|
-
|
|
128
|
+
x,
|
|
129
|
+
P
|
|
140
130
|
]
|
|
141
131
|
}
|
|
142
132
|
),
|
|
143
|
-
|
|
144
|
-
|
|
133
|
+
h && /* @__PURE__ */ n(
|
|
134
|
+
u.div,
|
|
145
135
|
{
|
|
146
|
-
className:
|
|
147
|
-
"data-testid":
|
|
148
|
-
p:
|
|
149
|
-
children:
|
|
136
|
+
className: r.footer,
|
|
137
|
+
"data-testid": l(t, "footer"),
|
|
138
|
+
p: v,
|
|
139
|
+
children: h
|
|
150
140
|
}
|
|
151
141
|
)
|
|
152
142
|
]
|
|
@@ -155,9 +145,9 @@ const ze = ({
|
|
|
155
145
|
}
|
|
156
146
|
)
|
|
157
147
|
}
|
|
158
|
-
),
|
|
159
|
-
return a && !
|
|
148
|
+
), X = g ?? s?.container;
|
|
149
|
+
return a && !X ? M : /* @__PURE__ */ n(co, { root: g ?? s?.container, children: M });
|
|
160
150
|
};
|
|
161
151
|
export {
|
|
162
|
-
|
|
152
|
+
Ro as IressModal
|
|
163
153
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
const
|
|
1
|
+
import { s as a } from "../../sva-OmxClA9g.js";
|
|
2
|
+
const o = [
|
|
3
3
|
"modal",
|
|
4
4
|
"backdrop",
|
|
5
5
|
"closeButton",
|
|
@@ -7,8 +7,8 @@ const a = [
|
|
|
7
7
|
"content",
|
|
8
8
|
"footer",
|
|
9
9
|
"pushElement"
|
|
10
|
-
],
|
|
11
|
-
slots:
|
|
10
|
+
], t = a({
|
|
11
|
+
slots: o,
|
|
12
12
|
base: {
|
|
13
13
|
backdrop: {
|
|
14
14
|
transition: "[all 0.3s ease-in-out]",
|
|
@@ -16,11 +16,11 @@ const a = [
|
|
|
16
16
|
},
|
|
17
17
|
closeButton: {
|
|
18
18
|
position: "absolute",
|
|
19
|
-
top: "spacing.
|
|
20
|
-
right: "spacing.
|
|
19
|
+
top: "spacing.2",
|
|
20
|
+
right: "spacing.2"
|
|
21
21
|
},
|
|
22
22
|
header: {
|
|
23
|
-
mb: "spacing.
|
|
23
|
+
mb: "spacing.4"
|
|
24
24
|
},
|
|
25
25
|
footer: {
|
|
26
26
|
borderBlockStart: "divider"
|
|
@@ -28,16 +28,19 @@ const a = [
|
|
|
28
28
|
modal: {
|
|
29
29
|
position: "relative",
|
|
30
30
|
borderRadius: "radius.system.layout",
|
|
31
|
-
padding: "spacing.
|
|
31
|
+
padding: "spacing.0",
|
|
32
32
|
width: "overlay.md",
|
|
33
|
-
maxWidth: "[calc(100vw - ({spacing.spacing.
|
|
33
|
+
maxWidth: "[calc(100vw - ({spacing.spacing.7}))]",
|
|
34
34
|
minHeight: "auto",
|
|
35
35
|
layerStyle: "elevation.floating",
|
|
36
36
|
background: "colour.neutral.10",
|
|
37
37
|
outline: "[0]",
|
|
38
38
|
opacity: 0,
|
|
39
39
|
transition: "[all 0.3s ease-in-out]",
|
|
40
|
-
marginBlock: "spacing.
|
|
40
|
+
marginBlock: "spacing.7",
|
|
41
|
+
"@media (min-height: 600px)": {
|
|
42
|
+
marginBlock: "[100px]"
|
|
43
|
+
},
|
|
41
44
|
marginInline: "auto"
|
|
42
45
|
}
|
|
43
46
|
},
|
|
@@ -50,14 +53,20 @@ const a = [
|
|
|
50
53
|
modal: {
|
|
51
54
|
display: "flex",
|
|
52
55
|
flexDirection: "column",
|
|
53
|
-
maxHeight: "[calc(100vh - ({spacing.spacing.
|
|
56
|
+
maxHeight: "[calc(100vh - ({spacing.spacing.7} * 2))]",
|
|
57
|
+
"@media (min-height: 600px)": {
|
|
58
|
+
maxHeight: "[calc(100vh - (100px * 2))]"
|
|
59
|
+
},
|
|
54
60
|
overflow: "clip"
|
|
55
61
|
},
|
|
56
62
|
content: {
|
|
57
63
|
flex: "[1]",
|
|
58
64
|
overflowX: "hidden",
|
|
59
65
|
overflowY: "auto",
|
|
60
|
-
maxHeight: "[calc(100vh - ({spacing.spacing.
|
|
66
|
+
maxHeight: "[calc(100vh - ({spacing.spacing.7} * 2))]",
|
|
67
|
+
"@media (min-height: 600px)": {
|
|
68
|
+
maxHeight: "[calc(100vh - (100px * 2))]"
|
|
69
|
+
}
|
|
61
70
|
},
|
|
62
71
|
footer: {
|
|
63
72
|
flex: "[0]"
|
|
@@ -119,5 +128,5 @@ const a = [
|
|
|
119
128
|
}
|
|
120
129
|
});
|
|
121
130
|
export {
|
|
122
|
-
|
|
131
|
+
t as modal
|
|
123
132
|
};
|
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
), b = ({
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useCallback as t, useMemo as p } from "react";
|
|
3
|
+
import { ModalContext as M } from "./hooks/useModal.js";
|
|
4
|
+
const b = ({
|
|
6
5
|
children: a,
|
|
7
6
|
container: s
|
|
8
7
|
}) => {
|
|
9
|
-
const [
|
|
10
|
-
|
|
11
|
-
}, []),
|
|
12
|
-
|
|
13
|
-
(
|
|
8
|
+
const [r, n] = i([]), l = t((e) => {
|
|
9
|
+
n((o) => o.includes(e) ? [...o] : [...o, e]);
|
|
10
|
+
}, []), u = t((e) => {
|
|
11
|
+
n(
|
|
12
|
+
(o) => o.includes(e) ? o.filter((m) => m !== e) : [...o]
|
|
14
13
|
);
|
|
15
|
-
}, []),
|
|
16
|
-
(
|
|
17
|
-
if (
|
|
18
|
-
|
|
14
|
+
}, []), c = t(
|
|
15
|
+
(e, o = !0) => {
|
|
16
|
+
if (o) return l(e);
|
|
17
|
+
u(e);
|
|
19
18
|
},
|
|
20
|
-
[
|
|
21
|
-
), d =
|
|
19
|
+
[u, l]
|
|
20
|
+
), d = p(
|
|
22
21
|
() => ({
|
|
23
|
-
opened:
|
|
22
|
+
opened: r,
|
|
24
23
|
container: s,
|
|
25
|
-
showModal:
|
|
24
|
+
showModal: c
|
|
26
25
|
}),
|
|
27
|
-
[s,
|
|
26
|
+
[s, r, c]
|
|
28
27
|
);
|
|
29
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ f(M.Provider, { value: d, children: a });
|
|
30
29
|
};
|
|
31
30
|
export {
|
|
32
|
-
b as IressModalProvider
|
|
33
|
-
p as ModalContext
|
|
31
|
+
b as IressModalProvider
|
|
34
32
|
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { useContext as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { createContext as r, useContext as s, useMemo as d } from "react";
|
|
2
|
+
const n = r(
|
|
3
|
+
void 0
|
|
4
|
+
), u = () => {
|
|
5
|
+
const o = s(n);
|
|
6
|
+
return d(
|
|
6
7
|
() => ({
|
|
7
|
-
showModal: (e,
|
|
8
|
+
showModal: (e, t = !0) => {
|
|
8
9
|
if (o === void 0)
|
|
9
10
|
throw new Error(
|
|
10
11
|
"IressModal: useModal must be used within a IressModalProvider"
|
|
11
12
|
);
|
|
12
|
-
o.showModal(e,
|
|
13
|
+
o.showModal(e, t);
|
|
13
14
|
}
|
|
14
15
|
}),
|
|
15
16
|
[o]
|
|
16
17
|
);
|
|
17
18
|
};
|
|
18
19
|
export {
|
|
20
|
+
n as ModalContext,
|
|
19
21
|
u as useModal
|
|
20
22
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useContext as
|
|
2
|
-
import { ModalContext as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
1
|
+
import { useContext as r } from "react";
|
|
2
|
+
import { ModalContext as t } from "./useModal.js";
|
|
3
|
+
function a(o) {
|
|
4
|
+
const e = r(t);
|
|
5
5
|
return {
|
|
6
|
-
opened:
|
|
7
|
-
container:
|
|
8
|
-
show: (
|
|
6
|
+
opened: o && e?.opened.includes(o),
|
|
7
|
+
container: e?.container,
|
|
8
|
+
show: (n) => o && e?.showModal(o, n)
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
a as useProviderModal
|
|
13
13
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { modal as e } from "./Modal.styles.js";
|
|
2
|
-
import { IressModal as
|
|
3
|
-
import { IressModalProvider as
|
|
4
|
-
import { useModal as
|
|
2
|
+
import { IressModal as t } from "./Modal.js";
|
|
3
|
+
import { IressModalProvider as l } from "./ModalProvider.js";
|
|
4
|
+
import { ModalContext as s, useModal as x } from "./hooks/useModal.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
t as IressModal,
|
|
7
|
+
l as IressModalProvider,
|
|
8
|
+
s as ModalContext,
|
|
8
9
|
e as modal,
|
|
9
|
-
|
|
10
|
+
x as useModal
|
|
10
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { panel as m } from "./Panel.styles.js";
|
|
3
|
-
import { s as t } from "../../factory-
|
|
3
|
+
import { s as t } from "../../factory-oPXoMw9H.js";
|
|
4
4
|
import { IressText as e } from "../Text/Text.js";
|
|
5
5
|
import { c as a } from "../../cx-DN21T1EH.js";
|
|
6
6
|
import { GlobalCSSClass as p } from "../../enums.js";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { toCSSLengthValue as
|
|
1
|
+
import { jsxs as r, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { toCSSLengthValue as a } from "../../helpers/formatting/toCSSLengthValue.js";
|
|
3
3
|
import { c as p } from "../../cx-DN21T1EH.js";
|
|
4
4
|
import { placeholder as x } from "./Placeholder.styles.js";
|
|
5
5
|
import { IressText as d } from "../Text/Text.js";
|
|
6
6
|
import { GlobalCSSClass as g } from "../../enums.js";
|
|
7
|
-
const
|
|
7
|
+
const C = ({
|
|
8
8
|
children: c,
|
|
9
9
|
className: m,
|
|
10
10
|
height: s = "auto",
|
|
11
11
|
stretch: i,
|
|
12
|
-
style:
|
|
13
|
-
width:
|
|
12
|
+
style: e,
|
|
13
|
+
width: t = "auto",
|
|
14
14
|
...n
|
|
15
15
|
}) => {
|
|
16
|
-
const h = s === "auto" ? i ? "100%" : s :
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
const h = s === "auto" ? i ? "100%" : s : a(s), o = x();
|
|
17
|
+
return /* @__PURE__ */ r(
|
|
18
18
|
d,
|
|
19
19
|
{
|
|
20
|
-
className: p(m,
|
|
20
|
+
className: p(m, o.root, g.Placeholder),
|
|
21
21
|
...n,
|
|
22
22
|
style: {
|
|
23
|
-
...
|
|
24
|
-
width:
|
|
23
|
+
...e,
|
|
24
|
+
width: t ? a(t) : e?.width,
|
|
25
25
|
height: h
|
|
26
26
|
},
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ r("svg", { xmlns: "http://www.w3.org/2000/svg", className: o.svg, children: [
|
|
29
|
+
/* @__PURE__ */ l("line", { x1: "0", y1: "0", x2: "100%", y2: "100%", className: o.line }),
|
|
30
|
+
/* @__PURE__ */ l("line", { x1: "100%", y1: "0", x2: "0", y2: "100%", className: o.line })
|
|
31
31
|
] }),
|
|
32
32
|
c
|
|
33
33
|
]
|
|
@@ -35,5 +35,5 @@ const H = ({
|
|
|
35
35
|
);
|
|
36
36
|
};
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
C as IressPlaceholder
|
|
39
39
|
};
|