@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,32 +1,29 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { FOCUSABLE_QUERY_SELECTOR as
|
|
3
|
-
import { focusableElements as
|
|
4
|
-
import { waitUntilTrue as
|
|
5
|
-
const
|
|
1
|
+
import { t as o } from "../../../index.esm-CL8gh5wr.js";
|
|
2
|
+
import { FOCUSABLE_QUERY_SELECTOR as c } from "../../../constants.js";
|
|
3
|
+
import { focusableElements as l } from "../../../helpers/dom/focusableElements.js";
|
|
4
|
+
import { waitUntilTrue as u } from "./waitUntilTrue.js";
|
|
5
|
+
const E = async (t, a) => {
|
|
6
6
|
if (a.key !== "Tab")
|
|
7
7
|
return;
|
|
8
8
|
const i = t.api.elements.reference;
|
|
9
9
|
if (!i)
|
|
10
10
|
return;
|
|
11
11
|
let n = i;
|
|
12
|
-
if (!n.matches(
|
|
13
|
-
const e =
|
|
12
|
+
if (!n.matches(c)) {
|
|
13
|
+
const e = l(i);
|
|
14
14
|
n = e[e.length - 1];
|
|
15
15
|
}
|
|
16
16
|
if (a.shiftKey && (t.setShow(!1), n.focus()), !a.shiftKey) {
|
|
17
17
|
t.setShowWithReason(!1);
|
|
18
|
-
const e =
|
|
19
|
-
(r) =>
|
|
20
|
-
var o;
|
|
21
|
-
return !((o = t.api.elements.floating) != null && o.contains(r)) && !r.hasAttribute("data-floating-ui-focus-guard");
|
|
22
|
-
}
|
|
18
|
+
const e = o(document.documentElement).filter(
|
|
19
|
+
(r) => !t.api.elements.floating?.contains(r) && !r.hasAttribute("data-floating-ui-focus-guard")
|
|
23
20
|
), f = e.indexOf(n), s = e[f + 1];
|
|
24
21
|
if (f === -1 || !s) return;
|
|
25
|
-
await
|
|
22
|
+
await u(
|
|
26
23
|
() => !s.hasAttribute("data-floating-ui-inert")
|
|
27
24
|
), s.focus();
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
27
|
export {
|
|
31
|
-
|
|
28
|
+
E as handlePopoverTabKey
|
|
32
29
|
};
|
|
@@ -1,139 +1,143 @@
|
|
|
1
|
-
import { createContext as z, useRef as
|
|
2
|
-
import { useControlledState as
|
|
3
|
-
import { o as
|
|
1
|
+
import { createContext as z, useRef as V, useMemo as p, useCallback as x } from "react";
|
|
2
|
+
import { useControlledState as D } from "../../../hooks/useControlledState.js";
|
|
3
|
+
import { o as A, j as E, i as K, s as T, m as W, u as X, n as B, b as J, c as L, d as Q, p as Y } from "../../../floating-ui.react-BetVZ099.js";
|
|
4
4
|
import { usePopoverNavigation as Z } from "./usePopoverNavigation.js";
|
|
5
|
-
import { focusableElements as
|
|
6
|
-
import { usePopoverAria as
|
|
7
|
-
import { closestCrossShadow as
|
|
5
|
+
import { focusableElements as ee } from "../../../helpers/dom/focusableElements.js";
|
|
6
|
+
import { usePopoverAria as oe } from "./usePopoverAria.js";
|
|
7
|
+
import { closestCrossShadow as te } from "../../../helpers/dom/closestCrossShadow.js";
|
|
8
8
|
import { GlobalCSSClass as se } from "../../../enums.js";
|
|
9
|
-
const
|
|
9
|
+
const ne = 200, fe = ({
|
|
10
10
|
align: i = "auto",
|
|
11
|
-
autoHighlight:
|
|
12
|
-
component:
|
|
13
|
-
defaultShow:
|
|
14
|
-
focusStartIndex:
|
|
15
|
-
hasInputActivator:
|
|
16
|
-
matchActivatorWidth:
|
|
17
|
-
onActivated:
|
|
18
|
-
onDeactivated:
|
|
11
|
+
autoHighlight: I = !0,
|
|
12
|
+
component: M = "IressPopover",
|
|
13
|
+
defaultShow: N,
|
|
14
|
+
focusStartIndex: d,
|
|
15
|
+
hasInputActivator: a,
|
|
16
|
+
matchActivatorWidth: v,
|
|
17
|
+
onActivated: k,
|
|
18
|
+
onDeactivated: H,
|
|
19
19
|
onNavigate: _,
|
|
20
20
|
show: $,
|
|
21
|
-
type:
|
|
22
|
-
virtualFocus:
|
|
21
|
+
type: l,
|
|
22
|
+
virtualFocus: n
|
|
23
23
|
}) => {
|
|
24
|
-
const w =
|
|
24
|
+
const w = V(!1), C = V(null), {
|
|
25
25
|
isControlled: h,
|
|
26
26
|
setValue: f,
|
|
27
|
-
value:
|
|
28
|
-
} =
|
|
29
|
-
component:
|
|
30
|
-
defaultValue:
|
|
27
|
+
value: r
|
|
28
|
+
} = D({
|
|
29
|
+
component: M,
|
|
30
|
+
defaultValue: N,
|
|
31
31
|
propName: "show",
|
|
32
32
|
value: $
|
|
33
33
|
}), j = p(() => {
|
|
34
|
-
const e =
|
|
35
|
-
|
|
36
|
-
i === "auto" ?
|
|
37
|
-
|
|
38
|
-
mainAxis: !
|
|
39
|
-
|
|
34
|
+
const e = a ? [A(5), E({ padding: 5 })] : [
|
|
35
|
+
A(5),
|
|
36
|
+
i === "auto" ? K() : E(),
|
|
37
|
+
T((t) => ({
|
|
38
|
+
mainAxis: !te(
|
|
39
|
+
t.elements.reference,
|
|
40
40
|
`.${se.Slideout}`
|
|
41
41
|
)
|
|
42
42
|
}))
|
|
43
43
|
];
|
|
44
|
-
return
|
|
44
|
+
return v ? [
|
|
45
45
|
...e,
|
|
46
|
-
|
|
47
|
-
apply({ rects:
|
|
46
|
+
W({
|
|
47
|
+
apply({ rects: t, availableHeight: s, elements: y }) {
|
|
48
48
|
requestAnimationFrame(() => {
|
|
49
49
|
Object.assign(y.floating.style, {
|
|
50
|
-
minWidth: `${
|
|
51
|
-
maxHeight:
|
|
50
|
+
minWidth: `${t.reference.width}px`,
|
|
51
|
+
maxHeight: s > ne ? `${s}px` : void 0
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
},
|
|
55
55
|
padding: 5
|
|
56
56
|
})
|
|
57
57
|
] : e;
|
|
58
|
-
}, [
|
|
59
|
-
open:
|
|
60
|
-
onOpenChange: (e,
|
|
61
|
-
f(e), e ?
|
|
58
|
+
}, [v, a, i]), o = X({
|
|
59
|
+
open: r,
|
|
60
|
+
onOpenChange: (e, t, s) => {
|
|
61
|
+
f(e), e ? k?.(t, s, c) : H?.(t, s, c);
|
|
62
62
|
},
|
|
63
63
|
middleware: j,
|
|
64
64
|
placement: i === "auto" ? void 0 : i,
|
|
65
65
|
whileElementsMounted: Y
|
|
66
|
-
}), { activeIndex:
|
|
66
|
+
}), { activeIndex: c, list: b, listNav: q, setActiveIndex: u } = Z(
|
|
67
67
|
o.context,
|
|
68
|
-
|
|
68
|
+
l,
|
|
69
69
|
{
|
|
70
|
-
focusItemOnOpen:
|
|
71
|
-
virtual:
|
|
70
|
+
focusItemOnOpen: I,
|
|
71
|
+
virtual: n
|
|
72
72
|
},
|
|
73
73
|
_,
|
|
74
|
-
|
|
74
|
+
d
|
|
75
75
|
), F = B(o.context, {
|
|
76
|
-
enabled: !
|
|
76
|
+
enabled: !a
|
|
77
77
|
}), G = J(o.context, {
|
|
78
78
|
enabled: !0,
|
|
79
|
-
escapeKey: !
|
|
79
|
+
escapeKey: !a
|
|
80
80
|
}), U = L(o.context, {
|
|
81
|
-
role:
|
|
82
|
-
}),
|
|
81
|
+
role: l
|
|
82
|
+
}), S = oe(), P = Q([F, G, U, q]), g = p(() => n ? {
|
|
83
83
|
getVirtualFocus: () => C.current,
|
|
84
84
|
setVirtualFocus: (e) => {
|
|
85
85
|
C.current = e;
|
|
86
86
|
}
|
|
87
|
-
} : {}, [
|
|
87
|
+
} : {}, [n]), m = x(() => {
|
|
88
88
|
const e = o.elements.reference;
|
|
89
|
-
return
|
|
90
|
-
}, [o.elements.reference]),
|
|
91
|
-
(e) => !e || !
|
|
92
|
-
[
|
|
93
|
-
)
|
|
89
|
+
return e?.querySelector("[role=combobox]") ?? ee(e)[0];
|
|
90
|
+
}, [o.elements.reference]), O = x(
|
|
91
|
+
(e) => !e || !r ? !1 : e === m(),
|
|
92
|
+
[m, r]
|
|
93
|
+
), R = x(() => {
|
|
94
|
+
u(d ?? null);
|
|
95
|
+
}, [d, u]);
|
|
94
96
|
return p(
|
|
95
97
|
() => ({
|
|
96
|
-
activeIndex:
|
|
97
|
-
...
|
|
98
|
+
activeIndex: c,
|
|
99
|
+
...S,
|
|
98
100
|
api: o,
|
|
99
|
-
getFocusableActivator:
|
|
101
|
+
getFocusableActivator: m,
|
|
100
102
|
hasInnerRole: () => w.current,
|
|
101
|
-
interactions:
|
|
102
|
-
isActiveActivator:
|
|
103
|
+
interactions: P,
|
|
104
|
+
isActiveActivator: O,
|
|
103
105
|
isControlled: h,
|
|
104
|
-
isVirtualFocus: !!
|
|
105
|
-
list:
|
|
106
|
-
|
|
106
|
+
isVirtualFocus: !!n,
|
|
107
|
+
list: b,
|
|
108
|
+
resetActiveIndex: R,
|
|
109
|
+
setActiveIndex: u,
|
|
107
110
|
setShow: f,
|
|
108
111
|
setShowWithReason: o.context.onOpenChange,
|
|
109
112
|
setHasInnerRole: (e) => {
|
|
110
113
|
w.current = e;
|
|
111
114
|
},
|
|
112
|
-
show: !!
|
|
113
|
-
type:
|
|
114
|
-
...
|
|
115
|
+
show: !!r,
|
|
116
|
+
type: l,
|
|
117
|
+
...g
|
|
115
118
|
}),
|
|
116
119
|
[
|
|
117
|
-
|
|
120
|
+
c,
|
|
118
121
|
o,
|
|
122
|
+
S,
|
|
123
|
+
m,
|
|
119
124
|
P,
|
|
120
|
-
|
|
121
|
-
g,
|
|
122
|
-
R,
|
|
125
|
+
O,
|
|
123
126
|
h,
|
|
124
|
-
S,
|
|
125
127
|
b,
|
|
128
|
+
R,
|
|
129
|
+
u,
|
|
126
130
|
f,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
r,
|
|
132
|
+
l,
|
|
133
|
+
g,
|
|
134
|
+
n
|
|
131
135
|
]
|
|
132
136
|
);
|
|
133
|
-
},
|
|
137
|
+
}, pe = z(
|
|
134
138
|
void 0
|
|
135
139
|
);
|
|
136
140
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
pe as PopoverContext,
|
|
142
|
+
fe as usePopover
|
|
139
143
|
};
|
|
@@ -1,36 +1,33 @@
|
|
|
1
|
-
import { useCallback as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
(
|
|
5
|
-
|
|
6
|
-
(a = t == null ? void 0 : t.onBlur) == null || a.call(t, i);
|
|
1
|
+
import { useCallback as s } from "react";
|
|
2
|
+
const c = (t, n) => {
|
|
3
|
+
const a = s(
|
|
4
|
+
(e) => {
|
|
5
|
+
n?.onBlur?.(e);
|
|
7
6
|
},
|
|
8
|
-
[
|
|
9
|
-
),
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
n != null && n.show ? c(i, n) : n && k(i, n), (a = t == null ? void 0 : t.onKeyDown) == null || a.call(t, i);
|
|
7
|
+
[n]
|
|
8
|
+
), i = s(
|
|
9
|
+
(e) => {
|
|
10
|
+
t?.show ? l(e, t) : t && o(e, t), n?.onKeyDown?.(e);
|
|
13
11
|
},
|
|
14
|
-
[
|
|
12
|
+
[n, t]
|
|
15
13
|
);
|
|
16
14
|
return {
|
|
17
|
-
onBlur:
|
|
18
|
-
onKeyDown:
|
|
15
|
+
onBlur: a,
|
|
16
|
+
onKeyDown: i
|
|
19
17
|
};
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
t.setActiveIndex(l);
|
|
18
|
+
}, l = (t, n) => {
|
|
19
|
+
const a = n?.getVirtualFocus !== void 0;
|
|
20
|
+
if (n?.getVirtualFocus?.()?.onKeyDown?.(t), t.key === "Tab" && (n?.getVirtualFocus?.()?.onBlur?.(t), n?.getVirtualFocus && n?.setShowWithReason(!1, t.nativeEvent, "focus")), t.key === "PageUp" && a && n.setActiveIndex(0), t.key === "PageDown" && a) {
|
|
21
|
+
const i = Math.max(n?.list.current.length - 1, 0);
|
|
22
|
+
n.setActiveIndex(i);
|
|
26
23
|
}
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
|
|
24
|
+
if (t.key === "ArrowUp" && n?.activeIndex === 0 && n?.setShowWithReason(!1, t.nativeEvent, "focus"), t.key === "ArrowRight" && t.isDefaultPrevented() && t.target instanceof HTMLInputElement && t.target.value?.length) {
|
|
25
|
+
const i = t.target, e = i.selectionStart ?? 0;
|
|
26
|
+
e < i.value.length && i.setSelectionRange(e + 1, e + 1);
|
|
30
27
|
}
|
|
31
|
-
},
|
|
32
|
-
|
|
28
|
+
}, o = (t, n) => {
|
|
29
|
+
t.key === "ArrowDown" && n?.setShowWithReason(!0, t.nativeEvent, "focus");
|
|
33
30
|
};
|
|
34
31
|
export {
|
|
35
|
-
|
|
32
|
+
c as usePopoverActivatorInteractions
|
|
36
33
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { PopoverContext as
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
if (
|
|
7
|
-
return
|
|
8
|
-
}, [
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
tabIndex: t ? c : void 0
|
|
1
|
+
import { h as c } from "../../../floating-ui.react-BetVZ099.js";
|
|
2
|
+
import { useContext as p, useId as f, useMemo as m, useEffect as v } from "react";
|
|
3
|
+
import { PopoverContext as d } from "./usePopover.js";
|
|
4
|
+
const l = (r, t = null) => {
|
|
5
|
+
const e = p(d), { ref: s, index: n } = c({ label: r }), i = f(), o = n === e?.activeIndex, u = m(() => {
|
|
6
|
+
if (e)
|
|
7
|
+
return o && !e?.isVirtualFocus ? 0 : -1;
|
|
8
|
+
}, [o, e]);
|
|
9
|
+
return v(() => {
|
|
10
|
+
o && e?.setVirtualFocus?.(t);
|
|
11
|
+
}, [o, e, t]), {
|
|
12
|
+
id: i,
|
|
13
|
+
isActiveInPopover: o,
|
|
14
|
+
ref: s,
|
|
15
|
+
tabIndex: e ? u : void 0
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
l as usePopoverItem
|
|
21
20
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
import { x as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
() => !!(
|
|
6
|
-
[
|
|
7
|
-
),
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, [
|
|
11
|
-
const
|
|
12
|
-
...
|
|
13
|
-
activeIndex:
|
|
14
|
-
enabled:
|
|
1
|
+
import { useMemo as r, useState as O, useEffect as N, useRef as c } from "react";
|
|
2
|
+
import { x as R } from "../../../floating-ui.react-BetVZ099.js";
|
|
3
|
+
const b = (s, e, o, m, u = 0) => {
|
|
4
|
+
const t = r(
|
|
5
|
+
() => !!(e && ["menu", "listbox"].includes(e)),
|
|
6
|
+
[e]
|
|
7
|
+
), l = r(() => t ? o?.focusItemOnOpen : !1, [o?.focusItemOnOpen, t]), [i, n] = O(null);
|
|
8
|
+
N(() => {
|
|
9
|
+
s.open ? n(l ? u : null) : n(null);
|
|
10
|
+
}, [s.open, l, u]);
|
|
11
|
+
const a = c([]), v = c(null), I = R(s, {
|
|
12
|
+
...o,
|
|
13
|
+
activeIndex: i,
|
|
14
|
+
enabled: t,
|
|
15
15
|
focusItemOnHover: !1,
|
|
16
|
-
listRef:
|
|
17
|
-
loop:
|
|
18
|
-
onNavigate: (
|
|
19
|
-
|
|
16
|
+
listRef: a,
|
|
17
|
+
loop: e === "menu",
|
|
18
|
+
onNavigate: (f) => {
|
|
19
|
+
n(f), m?.(f);
|
|
20
20
|
},
|
|
21
21
|
virtualItemRef: v
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
|
-
activeIndex:
|
|
25
|
-
list:
|
|
24
|
+
activeIndex: i,
|
|
25
|
+
list: a,
|
|
26
26
|
listNav: I,
|
|
27
|
-
setActiveIndex:
|
|
27
|
+
setActiveIndex: n
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
b as usePopoverNavigation
|
|
32
32
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IressPopover as e } from "./Popover.js";
|
|
2
|
-
import { popover as
|
|
3
|
-
import {
|
|
4
|
-
import { usePopoverItem as
|
|
2
|
+
import { popover as t } from "./Popover.styles.js";
|
|
3
|
+
import { IressInputPopover as s } from "./InputPopover/InputPopover.js";
|
|
4
|
+
import { usePopoverItem as v } from "./hooks/usePopoverItem.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as IressInputPopover,
|
|
7
7
|
e as IressPopover,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
t as popover,
|
|
9
|
+
v as usePopoverItem
|
|
10
10
|
};
|
|
@@ -1,62 +1,56 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { c as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { s as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const A = ({
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { stringReplacer as v } from "../../helpers/formatting/stringReplacer.js";
|
|
3
|
+
import { c as P } from "../../css-fGu_jDvv.js";
|
|
4
|
+
import { c as S } from "../../cx-DN21T1EH.js";
|
|
5
|
+
import { progress as y } from "./Progress.styles.js";
|
|
6
|
+
import { s as n } from "../../factory-oPXoMw9H.js";
|
|
7
|
+
import { s as b } from "../../is-valid-prop-Ce0wiweq.js";
|
|
8
|
+
import { GlobalCSSClass as x } from "../../enums.js";
|
|
9
|
+
import { t as C } from "../../index-CZ9ot38T.js";
|
|
10
|
+
const V = ({
|
|
12
11
|
borderRadius: e,
|
|
13
12
|
className: p,
|
|
14
13
|
max: r = 100,
|
|
15
14
|
min: s,
|
|
16
|
-
sectionTitle:
|
|
17
|
-
style:
|
|
18
|
-
value:
|
|
19
|
-
...
|
|
15
|
+
sectionTitle: c = "Progress is {{current}} of {{max}}",
|
|
16
|
+
style: f,
|
|
17
|
+
value: u = 0,
|
|
18
|
+
...g
|
|
20
19
|
}) => {
|
|
21
|
-
const [
|
|
20
|
+
const [d, t] = b(g), a = S(
|
|
22
21
|
p,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
), i = () =>
|
|
26
|
-
{ name: "{{current}}", value: String(
|
|
22
|
+
P(y.raw(), d),
|
|
23
|
+
x.Progress
|
|
24
|
+
), o = Math.min(Math.max(u, s ?? 0), r), i = () => v(c, [
|
|
25
|
+
{ name: "{{current}}", value: String(o) },
|
|
27
26
|
{ name: "{{max}}", value: r.toString() }
|
|
28
|
-
])
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
g(y);
|
|
32
|
-
}, [o, s, r]);
|
|
33
|
-
const m = {
|
|
34
|
-
"--iress-border-radius": e ? j(`radii.${e}`) : void 0,
|
|
35
|
-
...u
|
|
27
|
+
]), l = {
|
|
28
|
+
"--iress-border-radius": e ? C(`radii.${e}`) : void 0,
|
|
29
|
+
...f
|
|
36
30
|
};
|
|
37
|
-
return s !== void 0 ? /* @__PURE__ */
|
|
38
|
-
|
|
31
|
+
return s !== void 0 ? /* @__PURE__ */ m(
|
|
32
|
+
n.meter,
|
|
39
33
|
{
|
|
40
34
|
"aria-label": i(),
|
|
41
|
-
className:
|
|
35
|
+
className: a,
|
|
42
36
|
max: r,
|
|
43
37
|
min: s,
|
|
44
|
-
value:
|
|
45
|
-
...
|
|
46
|
-
style:
|
|
38
|
+
value: o,
|
|
39
|
+
...t,
|
|
40
|
+
style: l
|
|
47
41
|
}
|
|
48
|
-
) : /* @__PURE__ */
|
|
49
|
-
|
|
42
|
+
) : /* @__PURE__ */ m(
|
|
43
|
+
n.progress,
|
|
50
44
|
{
|
|
51
45
|
"aria-label": i(),
|
|
52
|
-
className:
|
|
46
|
+
className: a,
|
|
53
47
|
max: r,
|
|
54
|
-
value:
|
|
55
|
-
...
|
|
56
|
-
style:
|
|
48
|
+
value: o,
|
|
49
|
+
...t,
|
|
50
|
+
style: l
|
|
57
51
|
}
|
|
58
52
|
);
|
|
59
53
|
};
|
|
60
54
|
export {
|
|
61
|
-
|
|
55
|
+
V as IressProgress
|
|
62
56
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as r } from "../../cva-JiDXAa83.js";
|
|
2
2
|
const e = r({
|
|
3
3
|
base: {
|
|
4
4
|
appearance: "none",
|
|
@@ -13,20 +13,20 @@ const e = r({
|
|
|
13
13
|
_progressBar: {
|
|
14
14
|
bg: "transparent",
|
|
15
15
|
height: "progress.height",
|
|
16
|
-
margin: "spacing.
|
|
16
|
+
margin: "spacing.0"
|
|
17
17
|
},
|
|
18
18
|
_progressValue: {
|
|
19
19
|
appearance: "none",
|
|
20
20
|
bg: "[currentColor]",
|
|
21
21
|
borderRadius: "var(--iress-border-radius)",
|
|
22
|
-
margin: "spacing.
|
|
22
|
+
margin: "spacing.0",
|
|
23
23
|
transition: "all"
|
|
24
24
|
},
|
|
25
25
|
_mozProgressValue: {
|
|
26
26
|
appearance: "none",
|
|
27
27
|
bg: "[currentColor]",
|
|
28
28
|
borderRadius: "var(--iress-border-radius)",
|
|
29
|
-
margin: "spacing.
|
|
29
|
+
margin: "spacing.0",
|
|
30
30
|
transition: "all"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,43 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
2
|
import "../Modal/Modal.styles.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../Button-
|
|
4
|
+
import "../../Button-mmhMLwp9.js";
|
|
5
5
|
import "../Button/CloseButton/CloseButton.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import "../Modal/hooks/useModal.js";
|
|
7
|
+
import "../Modal/ModalProvider.js";
|
|
8
|
+
import "../Toaster/ToasterProvider.js";
|
|
9
|
+
import "../Toaster/hooks/useToaster.js";
|
|
8
10
|
import "../Toaster/Toaster.styles.js";
|
|
9
11
|
import "../Toaster/components/Toast/Toast.styles.js";
|
|
10
12
|
import "../Slideout/Slideout.styles.js";
|
|
11
|
-
import "../../index-
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
children: i,
|
|
17
|
-
container: o,
|
|
18
|
-
noDefaultFont: m,
|
|
19
|
-
noIcons: t,
|
|
20
|
-
position: p,
|
|
21
|
-
...d
|
|
22
|
-
}) => /* @__PURE__ */ c(l, { container: o, children: [
|
|
23
|
-
/* @__PURE__ */ r(n, { container: o, position: p, children: /* @__PURE__ */ r(h, { container: o, ...d, children: i }) }),
|
|
24
|
-
!m && e(
|
|
25
|
-
f.map((s) => /* @__PURE__ */ r("link", { rel: "stylesheet", href: s }, s)),
|
|
26
|
-
document.head,
|
|
27
|
-
"design-system-font"
|
|
28
|
-
),
|
|
29
|
-
!t && e(
|
|
30
|
-
/* @__PURE__ */ r(
|
|
31
|
-
"link",
|
|
32
|
-
{
|
|
33
|
-
rel: "stylesheet",
|
|
34
|
-
href: "https://cdn.iress.com/icons/5.15.4/css/combined.min.css"
|
|
35
|
-
}
|
|
36
|
-
),
|
|
37
|
-
document.head,
|
|
38
|
-
"design-system-icons"
|
|
39
|
-
)
|
|
40
|
-
] });
|
|
13
|
+
import "../../index-CZ9ot38T.js";
|
|
14
|
+
import "../Slideout/hooks/useSlideout.js";
|
|
15
|
+
import "../Slideout/SlideoutProvider.js";
|
|
16
|
+
import "react-dom";
|
|
17
|
+
import { I as h } from "../../Provider-8wS70V56.js";
|
|
41
18
|
export {
|
|
42
|
-
|
|
19
|
+
h as IressProvider
|
|
43
20
|
};
|