@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
package/README.md
CHANGED
|
@@ -21,4 +21,4 @@ The component library is part of the Iress Design System (IDS) monorepo. Please
|
|
|
21
21
|
|
|
22
22
|
## Support
|
|
23
23
|
|
|
24
|
-
For support, please reach out to us at our
|
|
24
|
+
For support, please reach out to us at our Slack channel.
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { jsx as t, jsxs as T, Fragment as at } from "react/jsx-runtime";
|
|
2
|
+
import { c as A } from "./cx-DN21T1EH.js";
|
|
3
|
+
import { autoComplete as It } from "./components/Autocomplete/Autocomplete.styles.js";
|
|
4
|
+
import { IressPopover as St } from "./components/Popover/Popover.js";
|
|
5
|
+
import "./components/Popover/Popover.styles.js";
|
|
6
|
+
import { IressInputPopover as Ct } from "./components/Popover/InputPopover/InputPopover.js";
|
|
7
|
+
import { forwardRef as ct, useState as j, useRef as st, useImperativeHandle as At, useEffect as rt, useCallback as bt } from "react";
|
|
8
|
+
import "./components/Popover/hooks/usePopover.js";
|
|
9
|
+
import { IressInput as yt } from "./components/Input/Input.js";
|
|
10
|
+
import "./components/Input/Input.styles.js";
|
|
11
|
+
import { useControlledState as Rt } from "./hooks/useControlledState.js";
|
|
12
|
+
import { propagateTestid as nt } from "./helpers/utility/propagateTestid.js";
|
|
13
|
+
import { toArray as Nt } from "./helpers/formatting/toArray.js";
|
|
14
|
+
import { getValueAsEvent as wt } from "./helpers/form/getValueAsEvent.js";
|
|
15
|
+
import { getFormControlValueAsStringIfDefined as xt } from "./helpers/form/getFormControlValueAsStringIfDefined.js";
|
|
16
|
+
import { useAutocompleteSearch as lt } from "./components/Autocomplete/hooks/useAutocompleteSearch.js";
|
|
17
|
+
import { IressIcon as Dt } from "./components/Icon/Icon.js";
|
|
18
|
+
import { AutocompleteInstructions as Ft } from "./components/Autocomplete/components/AutocompleteInstructions.js";
|
|
19
|
+
import { richSelect as Vt } from "./components/RichSelect/RichSelect.styles.js";
|
|
20
|
+
import { useRichSelectState as Et } from "./components/RichSelect/hooks/useRichSelectState.js";
|
|
21
|
+
import "./components/RichSelect/SelectBody/SelectBody.styles.js";
|
|
22
|
+
import { GlobalCSSClass as it } from "./enums.js";
|
|
23
|
+
import "./components/Menu/Menu.js";
|
|
24
|
+
import "./components/Menu/Menu.styles.js";
|
|
25
|
+
import "./components/Divider/Divider.styles.js";
|
|
26
|
+
import "./components/Menu/MenuItem/MenuItem.js";
|
|
27
|
+
import "./components/Icon/Icon.styles.js";
|
|
28
|
+
import "./components/RichSelect/SelectHeading/SelectHeading.js";
|
|
29
|
+
import "./components/RichSelect/SelectLabel/SelectLabel.styles.js";
|
|
30
|
+
import "./components/RichSelect/SelectMenu/SelectMenu.styles.js";
|
|
31
|
+
import "./components/RichSelect/SelectSearch/SelectSearch.styles.js";
|
|
32
|
+
import "./components/RichSelect/SelectSearchInput/SelectSearchInput.js";
|
|
33
|
+
import "./components/RichSelect/SelectTags/SelectTags.styles.js";
|
|
34
|
+
import "./Button-D6AL0bia.js";
|
|
35
|
+
import "./components/Button/CloseButton/CloseButton.js";
|
|
36
|
+
import "./components/Tag/Tag.styles.js";
|
|
37
|
+
import "./components/Tag/TagInput/TagInput.js";
|
|
38
|
+
import "./components/Inline/Inline.styles.js";
|
|
39
|
+
import "./components/Inline/Inline.js";
|
|
40
|
+
import { IressSelectMenu as Pt } from "./components/RichSelect/SelectMenu/SelectMenu.js";
|
|
41
|
+
import { IressReadonly as ut } from "./components/Readonly/Readonly.js";
|
|
42
|
+
import "./components/Readonly/Readonly.styles.js";
|
|
43
|
+
import { IressAlert as Qt } from "./components/Alert/Alert.js";
|
|
44
|
+
import "./components/Alert/Alert.styles.js";
|
|
45
|
+
import { SelectActivator as Tt } from "./components/RichSelect/components/SelectActivator.js";
|
|
46
|
+
import { SelectOptions as jt } from "./components/RichSelect/components/SelectOptions.js";
|
|
47
|
+
import { SelectHiddenInput as kt } from "./components/RichSelect/components/SelectHiddenInput.js";
|
|
48
|
+
import { useNoDefaultValueInForms as qt } from "./patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
49
|
+
const Ht = ({
|
|
50
|
+
align: b = "bottom-start",
|
|
51
|
+
append: k,
|
|
52
|
+
autoHighlight: q = !0,
|
|
53
|
+
className: H,
|
|
54
|
+
debounceThreshold: L,
|
|
55
|
+
defaultValue: y,
|
|
56
|
+
footer: d,
|
|
57
|
+
header: M,
|
|
58
|
+
id: B,
|
|
59
|
+
initialOptions: R,
|
|
60
|
+
matchActivatorWidth: N = !0,
|
|
61
|
+
minSearchLength: w,
|
|
62
|
+
multiSelect: f,
|
|
63
|
+
name: x,
|
|
64
|
+
onActivated: G,
|
|
65
|
+
onDeactivated: D,
|
|
66
|
+
onChange: F,
|
|
67
|
+
onBlur: h,
|
|
68
|
+
options: v,
|
|
69
|
+
placeholder: z,
|
|
70
|
+
prepend: J,
|
|
71
|
+
readOnly: K,
|
|
72
|
+
renderHiddenInput: u,
|
|
73
|
+
renderLabel: U,
|
|
74
|
+
renderOptions: W,
|
|
75
|
+
required: X,
|
|
76
|
+
selectedOptionsText: Y,
|
|
77
|
+
type: g,
|
|
78
|
+
value: a,
|
|
79
|
+
virtualFocus: l,
|
|
80
|
+
width: I,
|
|
81
|
+
...m
|
|
82
|
+
}, S) => {
|
|
83
|
+
qt({
|
|
84
|
+
component: "IressRichSelect",
|
|
85
|
+
defaultValue: y
|
|
86
|
+
});
|
|
87
|
+
const [r, p] = j(!1), [c, Z] = j(""), { value: o, setValue: V, getValuesString: E, getLabelsString: _ } = Et({
|
|
88
|
+
component: "IressRichSelect",
|
|
89
|
+
defaultValue: y,
|
|
90
|
+
multiple: f,
|
|
91
|
+
value: a
|
|
92
|
+
}), i = st(null), s = st(null), {
|
|
93
|
+
debouncedQuery: $,
|
|
94
|
+
error: P,
|
|
95
|
+
results: O,
|
|
96
|
+
stopSearch: C,
|
|
97
|
+
loading: e,
|
|
98
|
+
shouldShowInstructions: n,
|
|
99
|
+
shouldShowNoResults: mt
|
|
100
|
+
} = lt({
|
|
101
|
+
debounceThreshold: L,
|
|
102
|
+
initialOptions: R,
|
|
103
|
+
minSearchLength: w,
|
|
104
|
+
options: v,
|
|
105
|
+
query: c
|
|
106
|
+
});
|
|
107
|
+
At(S, () => i.current ? {
|
|
108
|
+
...i.current,
|
|
109
|
+
focus: () => i.current?.getActivator()?.focus(),
|
|
110
|
+
blur: () => i.current?.getActivator()?.blur(),
|
|
111
|
+
hiddenInput: s.current ?? void 0,
|
|
112
|
+
input: s.current ?? null
|
|
113
|
+
} : {
|
|
114
|
+
hiddenInput: s.current ?? void 0,
|
|
115
|
+
input: s.current ?? null,
|
|
116
|
+
focus: () => s.current?.focus(),
|
|
117
|
+
blur: () => s.current?.blur()
|
|
118
|
+
}), rt(() => {
|
|
119
|
+
r ? G?.() : D?.();
|
|
120
|
+
}, [r]);
|
|
121
|
+
const pt = bt(
|
|
122
|
+
(Q) => {
|
|
123
|
+
if (!h) return;
|
|
124
|
+
const gt = Q.currentTarget, ot = Q.relatedTarget;
|
|
125
|
+
!r && (!ot || !gt.contains(ot)) && h(Q), Q.stopPropagation();
|
|
126
|
+
},
|
|
127
|
+
[h, r]
|
|
128
|
+
);
|
|
129
|
+
if (K)
|
|
130
|
+
return /* @__PURE__ */ t(ut, { value: E(), children: _(", ") });
|
|
131
|
+
const tt = typeof v == "function", dt = l ?? !tt, ft = g ?? (tt ? void 0 : "listbox"), et = Vt({ width: I }), ht = () => {
|
|
132
|
+
p(!0);
|
|
133
|
+
}, vt = () => {
|
|
134
|
+
p(!1), C();
|
|
135
|
+
};
|
|
136
|
+
return /* @__PURE__ */ T(at, { children: [
|
|
137
|
+
/* @__PURE__ */ t(
|
|
138
|
+
St,
|
|
139
|
+
{
|
|
140
|
+
...m,
|
|
141
|
+
activator: /* @__PURE__ */ t(
|
|
142
|
+
Tt,
|
|
143
|
+
{
|
|
144
|
+
append: k,
|
|
145
|
+
async: tt,
|
|
146
|
+
error: P,
|
|
147
|
+
id: B,
|
|
148
|
+
loading: e,
|
|
149
|
+
multiSelect: f,
|
|
150
|
+
onChange: F,
|
|
151
|
+
placeholder: z,
|
|
152
|
+
prepend: J,
|
|
153
|
+
renderLabel: U,
|
|
154
|
+
selectedOptionsText: Y,
|
|
155
|
+
setValue: V,
|
|
156
|
+
setShow: p,
|
|
157
|
+
show: r,
|
|
158
|
+
value: o
|
|
159
|
+
}
|
|
160
|
+
),
|
|
161
|
+
align: b,
|
|
162
|
+
className: A(H, et.richSelect, it.RichSelect),
|
|
163
|
+
contentClassName: A(et.popoverContent),
|
|
164
|
+
matchActivatorWidth: N,
|
|
165
|
+
onActivated: ht,
|
|
166
|
+
onDeactivated: vt,
|
|
167
|
+
ref: i,
|
|
168
|
+
show: r,
|
|
169
|
+
type: ft,
|
|
170
|
+
virtualFocus: dt,
|
|
171
|
+
onBlur: pt,
|
|
172
|
+
children: /* @__PURE__ */ T("div", { className: et.wrapper, children: [
|
|
173
|
+
M,
|
|
174
|
+
/* @__PURE__ */ t(
|
|
175
|
+
jt,
|
|
176
|
+
{
|
|
177
|
+
autoHighlight: q,
|
|
178
|
+
debouncedQuery: $,
|
|
179
|
+
error: P,
|
|
180
|
+
initialOptions: R,
|
|
181
|
+
loading: e,
|
|
182
|
+
minSearchLength: w,
|
|
183
|
+
multiSelect: f,
|
|
184
|
+
onChange: F,
|
|
185
|
+
options: v,
|
|
186
|
+
query: c,
|
|
187
|
+
renderOptions: W,
|
|
188
|
+
results: O,
|
|
189
|
+
setQuery: Z,
|
|
190
|
+
setShow: p,
|
|
191
|
+
setValue: V,
|
|
192
|
+
shouldShowInstructions: n,
|
|
193
|
+
shouldShowNoResults: mt,
|
|
194
|
+
show: r,
|
|
195
|
+
value: o
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
d
|
|
199
|
+
] })
|
|
200
|
+
}
|
|
201
|
+
),
|
|
202
|
+
/* @__PURE__ */ t(
|
|
203
|
+
kt,
|
|
204
|
+
{
|
|
205
|
+
"data-testid": m["data-testid"],
|
|
206
|
+
getValuesString: E,
|
|
207
|
+
name: x,
|
|
208
|
+
renderHiddenInput: u,
|
|
209
|
+
required: X,
|
|
210
|
+
value: o,
|
|
211
|
+
ref: s
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
] });
|
|
215
|
+
}, Te = ct(Ht), Lt = ct(
|
|
216
|
+
({
|
|
217
|
+
alwaysShowOnFocus: b,
|
|
218
|
+
append: k = /* @__PURE__ */ t(Dt, { name: "search" }),
|
|
219
|
+
autoComplete: q = "off",
|
|
220
|
+
autoSelect: H = !0,
|
|
221
|
+
className: L,
|
|
222
|
+
clearable: y = !0,
|
|
223
|
+
"data-testid": d,
|
|
224
|
+
debounceThreshold: M,
|
|
225
|
+
defaultValue: B,
|
|
226
|
+
errorText: R = /* @__PURE__ */ t(Qt, { status: "danger", mb: "none", children: "An unknown error occurred. Please contact support if the error persists." }),
|
|
227
|
+
initialOptions: N,
|
|
228
|
+
limitDesktop: w = 12,
|
|
229
|
+
limitMobile: f = 6,
|
|
230
|
+
minSearchLength: x,
|
|
231
|
+
noResultsText: G,
|
|
232
|
+
onChange: D,
|
|
233
|
+
onClear: F,
|
|
234
|
+
onFocus: h,
|
|
235
|
+
options: v,
|
|
236
|
+
popoverProps: {
|
|
237
|
+
autoHighlight: z = !1,
|
|
238
|
+
append: J,
|
|
239
|
+
prepend: K,
|
|
240
|
+
...u
|
|
241
|
+
} = {},
|
|
242
|
+
readOnly: U,
|
|
243
|
+
value: W,
|
|
244
|
+
...X
|
|
245
|
+
}, Y) => {
|
|
246
|
+
const [g, a] = j(!1), { value: l, setValue: I } = Rt({
|
|
247
|
+
component: "IressAutocomplete",
|
|
248
|
+
defaultValue: B,
|
|
249
|
+
value: W
|
|
250
|
+
}), [m, S] = j(!1), {
|
|
251
|
+
clearError: r,
|
|
252
|
+
debouncedQuery: p,
|
|
253
|
+
error: c,
|
|
254
|
+
loading: Z,
|
|
255
|
+
results: o,
|
|
256
|
+
stopSearch: V,
|
|
257
|
+
shouldShowInstructions: E,
|
|
258
|
+
shouldShowNoResults: _
|
|
259
|
+
} = lt({
|
|
260
|
+
debounceThreshold: M,
|
|
261
|
+
initialOptions: N,
|
|
262
|
+
minSearchLength: x,
|
|
263
|
+
options: v,
|
|
264
|
+
query: xt(l)
|
|
265
|
+
});
|
|
266
|
+
if (rt(() => {
|
|
267
|
+
m && !g && o.length > 0 && a(!0);
|
|
268
|
+
}, [o.length, g, m]), rt(() => {
|
|
269
|
+
c && a(!0);
|
|
270
|
+
}, [c]), U)
|
|
271
|
+
return /* @__PURE__ */ t(ut, { value: l });
|
|
272
|
+
const i = (e, n) => {
|
|
273
|
+
D?.(e, n), I(n), S(!0);
|
|
274
|
+
}, s = (e) => {
|
|
275
|
+
F?.(e), I("");
|
|
276
|
+
}, $ = (e) => {
|
|
277
|
+
h?.(e), N?.length && a(!0);
|
|
278
|
+
}, P = (e) => {
|
|
279
|
+
const n = Nt(e)?.[0];
|
|
280
|
+
D?.(
|
|
281
|
+
wt(n?.label),
|
|
282
|
+
n?.label,
|
|
283
|
+
n
|
|
284
|
+
), I(n?.label), a(!1), S(!1);
|
|
285
|
+
}, O = () => {
|
|
286
|
+
(!b || !l) && V(), r(), a(!1), l && S(!1);
|
|
287
|
+
}, C = It({
|
|
288
|
+
isEmpty: o.length === 0
|
|
289
|
+
});
|
|
290
|
+
return /* @__PURE__ */ T(
|
|
291
|
+
Ct,
|
|
292
|
+
{
|
|
293
|
+
...u,
|
|
294
|
+
activator: /* @__PURE__ */ t(
|
|
295
|
+
yt,
|
|
296
|
+
{
|
|
297
|
+
...X,
|
|
298
|
+
append: k,
|
|
299
|
+
autoComplete: q,
|
|
300
|
+
clearable: y,
|
|
301
|
+
"data-testid": nt(d, "input"),
|
|
302
|
+
loading: Z,
|
|
303
|
+
onChange: i,
|
|
304
|
+
onClear: s,
|
|
305
|
+
onFocus: $,
|
|
306
|
+
value: l,
|
|
307
|
+
ref: Y
|
|
308
|
+
}
|
|
309
|
+
),
|
|
310
|
+
autoHighlight: z,
|
|
311
|
+
className: A(
|
|
312
|
+
L,
|
|
313
|
+
u.className,
|
|
314
|
+
C.root,
|
|
315
|
+
it.Autocomplete
|
|
316
|
+
),
|
|
317
|
+
contentClassName: A(
|
|
318
|
+
u.contentClassName,
|
|
319
|
+
C.popoverContent
|
|
320
|
+
),
|
|
321
|
+
contentStyle: u.contentStyle,
|
|
322
|
+
"data-testid": d,
|
|
323
|
+
minLength: 0,
|
|
324
|
+
onActivated: () => (m || b) && a(!0),
|
|
325
|
+
onDeactivated: O,
|
|
326
|
+
show: g,
|
|
327
|
+
type: "listbox",
|
|
328
|
+
children: [
|
|
329
|
+
o.length > 0 && /* @__PURE__ */ T(at, { children: [
|
|
330
|
+
K,
|
|
331
|
+
/* @__PURE__ */ t(
|
|
332
|
+
Pt,
|
|
333
|
+
{
|
|
334
|
+
changeOnBlur: H,
|
|
335
|
+
className: A(C.optionList),
|
|
336
|
+
"data-testid": nt(d, "menu"),
|
|
337
|
+
items: o,
|
|
338
|
+
limitDesktop: w,
|
|
339
|
+
limitMobile: f,
|
|
340
|
+
onChange: P,
|
|
341
|
+
selected: { label: p }
|
|
342
|
+
}
|
|
343
|
+
),
|
|
344
|
+
J
|
|
345
|
+
] }),
|
|
346
|
+
c && R,
|
|
347
|
+
E && !c && /* @__PURE__ */ t(Ft, { minSearchLength: x ?? 1 }),
|
|
348
|
+
_ && !c && G
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
);
|
|
354
|
+
Lt.displayName = "IressAutocomplete";
|
|
355
|
+
export {
|
|
356
|
+
Te as I,
|
|
357
|
+
Lt as a
|
|
358
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { IressSpinner as
|
|
1
|
+
import { jsxs as M, Fragment as N, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R, useId as E, useContext as W, useRef as k, useMemo as u, useCallback as A, useImperativeHandle as K } from "react";
|
|
3
|
+
import { IressSpinner as O } from "./components/Spinner/Spinner.js";
|
|
4
4
|
import "./components/Spinner/Spinner.styles.js";
|
|
5
|
-
import { GlobalCSSClass as
|
|
5
|
+
import { GlobalCSSClass as f } from "./enums.js";
|
|
6
6
|
import "./components/ButtonGroup/ButtonGroup.styles.js";
|
|
7
|
-
import { m as
|
|
8
|
-
import { c as
|
|
9
|
-
import { s as
|
|
7
|
+
import { m as D, a as L, s as T, i as q, c as z } from "./css-fGu_jDvv.js";
|
|
8
|
+
import { c as J } from "./cx-DN21T1EH.js";
|
|
9
|
+
import { s as Q } from "./is-valid-prop-Ce0wiweq.js";
|
|
10
10
|
import "./components/ButtonGroup/ButtonGroupProvider.js";
|
|
11
|
-
import { useButtonGroupItem as
|
|
12
|
-
import { c as
|
|
13
|
-
import { PopoverContext as
|
|
14
|
-
const
|
|
11
|
+
import { useButtonGroupItem as U } from "./components/ButtonGroup/hooks/useButtonGroupItem.js";
|
|
12
|
+
import { c as X } from "./create-recipe-C-ASk1Hy.js";
|
|
13
|
+
import { PopoverContext as Y } from "./components/Popover/hooks/usePopover.js";
|
|
14
|
+
const h = {}, Z = [
|
|
15
15
|
{
|
|
16
16
|
mode: "primary",
|
|
17
17
|
status: "danger",
|
|
@@ -193,7 +193,7 @@ const F = {}, $ = [
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
],
|
|
196
|
+
], $ = [
|
|
197
197
|
[
|
|
198
198
|
"root",
|
|
199
199
|
"button__root"
|
|
@@ -210,7 +210,7 @@ const F = {}, $ = [
|
|
|
210
210
|
"spinner",
|
|
211
211
|
"button__spinner"
|
|
212
212
|
]
|
|
213
|
-
], oo = /* @__PURE__ */
|
|
213
|
+
], oo = /* @__PURE__ */ $.map(([o, e]) => [o, X(e, h, q(Z, o))]), ro = D((o = {}) => Object.fromEntries(oo.map(([e, t]) => [e, t.recipeFn(o)]))), S = [
|
|
214
214
|
"active",
|
|
215
215
|
"fluid",
|
|
216
216
|
"inButtonGroup",
|
|
@@ -218,11 +218,12 @@ const F = {}, $ = [
|
|
|
218
218
|
"mode",
|
|
219
219
|
"noWrap",
|
|
220
220
|
"status"
|
|
221
|
-
],
|
|
221
|
+
], to = (o) => ({ ...h, ...L(o) }), so = /* @__PURE__ */ Object.assign(ro, {
|
|
222
222
|
__recipe__: !1,
|
|
223
223
|
__name__: "button",
|
|
224
224
|
raw: (o) => o,
|
|
225
|
-
|
|
225
|
+
classNameMap: {},
|
|
226
|
+
variantKeys: S,
|
|
226
227
|
variantMap: {
|
|
227
228
|
active: [
|
|
228
229
|
"true"
|
|
@@ -256,100 +257,100 @@ const F = {}, $ = [
|
|
|
256
257
|
]
|
|
257
258
|
},
|
|
258
259
|
splitVariantProps(o) {
|
|
259
|
-
return
|
|
260
|
+
return T(o, S);
|
|
260
261
|
},
|
|
261
|
-
getVariantProps:
|
|
262
|
+
getVariantProps: to
|
|
262
263
|
}), eo = ({
|
|
263
264
|
active: o,
|
|
264
|
-
append:
|
|
265
|
+
append: e,
|
|
265
266
|
children: t,
|
|
266
|
-
className:
|
|
267
|
+
className: d,
|
|
267
268
|
element: p,
|
|
268
|
-
fluid:
|
|
269
|
-
loading:
|
|
270
|
-
mode:
|
|
271
|
-
prepend:
|
|
272
|
-
noWrap:
|
|
273
|
-
onClick:
|
|
274
|
-
status:
|
|
275
|
-
value:
|
|
276
|
-
...
|
|
277
|
-
},
|
|
278
|
-
const
|
|
279
|
-
active: o ??
|
|
280
|
-
fluid:
|
|
281
|
-
inButtonGroup: !!
|
|
282
|
-
mode:
|
|
283
|
-
loading: !!
|
|
284
|
-
noWrap:
|
|
285
|
-
status:
|
|
286
|
-
}), [
|
|
287
|
-
() =>
|
|
288
|
-
[
|
|
289
|
-
),
|
|
290
|
-
(
|
|
291
|
-
|
|
269
|
+
fluid: x,
|
|
270
|
+
loading: r = !1,
|
|
271
|
+
mode: y = "secondary",
|
|
272
|
+
prepend: l,
|
|
273
|
+
noWrap: C = !1,
|
|
274
|
+
onClick: b,
|
|
275
|
+
status: F,
|
|
276
|
+
value: w,
|
|
277
|
+
...g
|
|
278
|
+
}, B) => {
|
|
279
|
+
const i = E(), I = w ?? (typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? t : void 0), G = W(Y), m = k(null), n = U({ value: I }), H = u(() => n ? n.active ? "primary" : "tertiary" : y, [n, y]), s = so({
|
|
280
|
+
active: o ?? G?.isActiveActivator(m.current),
|
|
281
|
+
fluid: x === !0 ? "true" : x,
|
|
282
|
+
inButtonGroup: !!n,
|
|
283
|
+
mode: H,
|
|
284
|
+
loading: !!r,
|
|
285
|
+
noWrap: C,
|
|
286
|
+
status: F
|
|
287
|
+
}), [_, c] = u(
|
|
288
|
+
() => Q(g),
|
|
289
|
+
[g]
|
|
290
|
+
), v = A(
|
|
291
|
+
(j) => {
|
|
292
|
+
r || (b?.(j), n?.toggle());
|
|
292
293
|
},
|
|
293
|
-
[
|
|
294
|
-
),
|
|
294
|
+
[n, r, b]
|
|
295
|
+
), P = u(
|
|
295
296
|
() => ({
|
|
296
|
-
children: /* @__PURE__ */
|
|
297
|
-
|
|
298
|
-
!!
|
|
299
|
-
|
|
297
|
+
children: /* @__PURE__ */ M(N, { children: [
|
|
298
|
+
l && !r && /* @__PURE__ */ a("span", { className: s.prepend, children: l }),
|
|
299
|
+
!!r && /* @__PURE__ */ a(
|
|
300
|
+
O,
|
|
300
301
|
{
|
|
301
|
-
className:
|
|
302
|
+
className: s.spinner,
|
|
302
303
|
fixedWidth: !0,
|
|
303
|
-
id:
|
|
304
|
-
screenreaderText:
|
|
304
|
+
id: i,
|
|
305
|
+
screenreaderText: r === !0 ? "Loading" : r
|
|
305
306
|
}
|
|
306
307
|
),
|
|
307
308
|
t,
|
|
308
|
-
|
|
309
|
+
e && /* @__PURE__ */ a("span", { className: s.append, children: e })
|
|
309
310
|
] }),
|
|
310
|
-
className:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
311
|
+
className: J(
|
|
312
|
+
d,
|
|
313
|
+
f.FormElement,
|
|
314
|
+
f.FormElementInner,
|
|
315
|
+
s.root,
|
|
316
|
+
z(_),
|
|
317
|
+
f.Button
|
|
317
318
|
),
|
|
318
|
-
onClick:
|
|
319
|
+
onClick: v
|
|
319
320
|
}),
|
|
320
321
|
[
|
|
321
|
-
|
|
322
|
+
e,
|
|
322
323
|
t,
|
|
323
|
-
|
|
324
|
-
S,
|
|
325
|
-
s,
|
|
326
|
-
i,
|
|
327
|
-
m,
|
|
324
|
+
d,
|
|
328
325
|
v,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
326
|
+
r,
|
|
327
|
+
l,
|
|
328
|
+
i,
|
|
329
|
+
_,
|
|
330
|
+
s.append,
|
|
331
|
+
s.prepend,
|
|
332
|
+
s.root,
|
|
333
|
+
s.spinner
|
|
333
334
|
]
|
|
334
335
|
);
|
|
335
|
-
|
|
336
|
-
const
|
|
337
|
-
() => p ?? (
|
|
338
|
-
[p,
|
|
336
|
+
K(B, () => m.current);
|
|
337
|
+
const V = u(
|
|
338
|
+
() => p ?? (c.href ? "a" : "button"),
|
|
339
|
+
[p, c.href]
|
|
339
340
|
);
|
|
340
|
-
return /* @__PURE__ */
|
|
341
|
-
|
|
341
|
+
return /* @__PURE__ */ a(
|
|
342
|
+
V,
|
|
342
343
|
{
|
|
343
|
-
"aria-describedby":
|
|
344
|
-
type: p || !
|
|
345
|
-
...
|
|
346
|
-
...
|
|
347
|
-
...
|
|
348
|
-
ref:
|
|
344
|
+
"aria-describedby": r ? i : void 0,
|
|
345
|
+
type: p || !c.href ? "button" : void 0,
|
|
346
|
+
...P,
|
|
347
|
+
...n?.props,
|
|
348
|
+
...c,
|
|
349
|
+
ref: m
|
|
349
350
|
}
|
|
350
351
|
);
|
|
351
|
-
}, _o =
|
|
352
|
+
}, _o = R(eo);
|
|
352
353
|
export {
|
|
353
354
|
_o as I,
|
|
354
|
-
|
|
355
|
+
so as b
|
|
355
356
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsxs as $, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "./components/Modal/Modal.styles.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "./Button-D6AL0bia.js";
|
|
5
|
+
import "./components/Button/CloseButton/CloseButton.js";
|
|
6
|
+
import "./components/Modal/hooks/useModal.js";
|
|
7
|
+
import { IressModalProvider as a } from "./components/Modal/ModalProvider.js";
|
|
8
|
+
import { IressToasterProvider as m } from "./components/Toaster/ToasterProvider.js";
|
|
9
|
+
import "./components/Toaster/hooks/useToaster.js";
|
|
10
|
+
import "./components/Toaster/Toaster.styles.js";
|
|
11
|
+
import "./components/Toaster/components/Toast/Toast.styles.js";
|
|
12
|
+
import "./components/Slideout/Slideout.styles.js";
|
|
13
|
+
import "./index-CvOVcYUc.js";
|
|
14
|
+
import "./components/Slideout/hooks/useSlideout.js";
|
|
15
|
+
import { IressSlideoutProvider as d } from "./components/Slideout/SlideoutProvider.js";
|
|
16
|
+
import { createPortal as y } from "react-dom";
|
|
17
|
+
var o = /* @__PURE__ */ ((e) => (e.Color = "color", e.Dimension = "dimension", e.FontFamily = "fontFamily", e.FontSize = "fontSize", e.Background = "background", e.Border = "border", e.Radius = "radius", e.Shadow = "shadow", e.Typography = "typography", e))(o || {});
|
|
18
|
+
o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color, o.Color;
|
|
19
|
+
o.Shadow, o.Border, o.Shadow, o.Border, o.Shadow, o.Border, o.Shadow, o.Shadow, o.Color;
|
|
20
|
+
o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Radius, o.Radius, o.Radius, o.Radius;
|
|
21
|
+
o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension;
|
|
22
|
+
const h = [
|
|
23
|
+
"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
|
|
24
|
+
];
|
|
25
|
+
o.FontSize, o.FontFamily, o.FontFamily, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography;
|
|
26
|
+
const z = ({
|
|
27
|
+
children: e,
|
|
28
|
+
container: r,
|
|
29
|
+
noDefaultFont: i,
|
|
30
|
+
noIcons: s,
|
|
31
|
+
position: l,
|
|
32
|
+
...n
|
|
33
|
+
}) => /* @__PURE__ */ $(a, { container: r, children: [
|
|
34
|
+
/* @__PURE__ */ t(m, { container: r, position: l, children: /* @__PURE__ */ t(d, { container: r, ...n, children: e }) }),
|
|
35
|
+
!i && y(
|
|
36
|
+
h.map((p) => /* @__PURE__ */ t(
|
|
37
|
+
"link",
|
|
38
|
+
{
|
|
39
|
+
rel: "stylesheet",
|
|
40
|
+
href: p,
|
|
41
|
+
"data-iress-design-system-font": !0
|
|
42
|
+
},
|
|
43
|
+
p
|
|
44
|
+
)),
|
|
45
|
+
document.head,
|
|
46
|
+
"design-system-font"
|
|
47
|
+
),
|
|
48
|
+
!s && y(
|
|
49
|
+
/* @__PURE__ */ t(
|
|
50
|
+
"link",
|
|
51
|
+
{
|
|
52
|
+
rel: "stylesheet",
|
|
53
|
+
href: "https://cdn.iress.com/icons/5.15.4/css/combined.min.css",
|
|
54
|
+
"data-iress-design-system-icons": !0
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
document.head,
|
|
58
|
+
"design-system-icons"
|
|
59
|
+
)
|
|
60
|
+
] });
|
|
61
|
+
export {
|
|
62
|
+
z as I,
|
|
63
|
+
h as n
|
|
64
|
+
};
|