@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,82 +1,87 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { propagateTestid as
|
|
4
|
-
import { IressCheckboxMark as
|
|
1
|
+
import { jsxs as x, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as N, useId as S, useEffect as T } from "react";
|
|
3
|
+
import { propagateTestid as f } from "../../helpers/utility/propagateTestid.js";
|
|
4
|
+
import { IressCheckboxMark as y } from "../CheckboxMark/CheckboxMark.js";
|
|
5
5
|
import "../CheckboxMark/CheckboxMark.styles.js";
|
|
6
|
-
import { toggle as
|
|
7
|
-
import { c as
|
|
8
|
-
import { c as
|
|
9
|
-
import { GlobalCSSClass as
|
|
10
|
-
import { s as
|
|
6
|
+
import { toggle as p } from "./Toggle.styles.js";
|
|
7
|
+
import { c as g } from "../../css-fGu_jDvv.js";
|
|
8
|
+
import { c as u } from "../../cx-DN21T1EH.js";
|
|
9
|
+
import { GlobalCSSClass as B } from "../../enums.js";
|
|
10
|
+
import { s as L } from "../../factory-oPXoMw9H.js";
|
|
11
|
+
import { useControlledState as _ } from "../../hooks/useControlledState.js";
|
|
11
12
|
const j = ({
|
|
12
|
-
hiddenLabel:
|
|
13
|
-
layout:
|
|
14
|
-
children:
|
|
15
|
-
"data-testid":
|
|
16
|
-
...
|
|
13
|
+
hiddenLabel: r,
|
|
14
|
+
layout: l,
|
|
15
|
+
children: c,
|
|
16
|
+
"data-testid": n,
|
|
17
|
+
...s
|
|
17
18
|
}) => {
|
|
18
|
-
const
|
|
19
|
+
const i = p({ hiddenLabel: r, layout: l });
|
|
19
20
|
return /* @__PURE__ */ o(
|
|
20
21
|
"span",
|
|
21
22
|
{
|
|
22
|
-
...
|
|
23
|
-
className:
|
|
24
|
-
"data-testid":
|
|
25
|
-
children:
|
|
23
|
+
...s,
|
|
24
|
+
className: i.label,
|
|
25
|
+
"data-testid": f(n, "label"),
|
|
26
|
+
children: c
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
29
|
}, D = ({
|
|
29
|
-
checked:
|
|
30
|
-
hiddenLabel:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
checked: r,
|
|
31
|
+
hiddenLabel: l,
|
|
32
|
+
defaultChecked: c,
|
|
33
|
+
children: n,
|
|
34
|
+
layout: s = "inline",
|
|
35
|
+
className: i,
|
|
36
|
+
onChange: b,
|
|
35
37
|
"data-testid": d,
|
|
36
|
-
...
|
|
38
|
+
...h
|
|
37
39
|
}) => {
|
|
38
|
-
const
|
|
39
|
-
hiddenLabel:
|
|
40
|
-
id:
|
|
40
|
+
const t = N(null), m = `toggleLabel--${S()}`, k = {
|
|
41
|
+
hiddenLabel: l,
|
|
42
|
+
id: m,
|
|
41
43
|
"data-testid": d
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
+
}, { value: e, setValue: C } = _({
|
|
45
|
+
component: "IressToggle",
|
|
46
|
+
propName: "checked",
|
|
47
|
+
defaultValue: c,
|
|
48
|
+
value: r
|
|
49
|
+
}), v = (I) => {
|
|
50
|
+
C(!e), b?.(!e, I);
|
|
44
51
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
), a.current.offsetHeight, a.current.classList.add(
|
|
51
|
-
u({ _before: { animationStyle: "toggle-active" } })
|
|
52
|
+
T(() => {
|
|
53
|
+
t.current && (t.current.classList.remove(
|
|
54
|
+
g({ _before: { animationStyle: "toggle-active" } })
|
|
55
|
+
), t.current.offsetHeight, t.current.classList.add(
|
|
56
|
+
g({ _before: { animationStyle: "toggle-active" } })
|
|
52
57
|
));
|
|
53
58
|
}, [e]);
|
|
54
|
-
const
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
-
|
|
59
|
+
const a = p({ layout: s, checked: !!e });
|
|
60
|
+
return /* @__PURE__ */ x(
|
|
61
|
+
L.div,
|
|
57
62
|
{
|
|
58
63
|
"data-testid": d,
|
|
59
|
-
...
|
|
60
|
-
className:
|
|
64
|
+
...h,
|
|
65
|
+
className: u(i, a.toggleBase, B.Toggle),
|
|
61
66
|
children: [
|
|
62
|
-
/* @__PURE__ */ o(j, { ...
|
|
63
|
-
/* @__PURE__ */ o("div", { className:
|
|
67
|
+
/* @__PURE__ */ o(j, { ...k, layout: s, children: n }),
|
|
68
|
+
/* @__PURE__ */ o("div", { className: a.toggleButtonContainer, children: /* @__PURE__ */ o(
|
|
64
69
|
"button",
|
|
65
70
|
{
|
|
66
|
-
className:
|
|
71
|
+
className: u(a.toggleButton),
|
|
67
72
|
role: "switch",
|
|
68
73
|
type: "button",
|
|
69
|
-
"aria-checked": e,
|
|
70
|
-
onClick:
|
|
71
|
-
"aria-labelledby":
|
|
72
|
-
"data-testid":
|
|
73
|
-
ref:
|
|
74
|
+
"aria-checked": !!e,
|
|
75
|
+
onClick: v,
|
|
76
|
+
"aria-labelledby": m,
|
|
77
|
+
"data-testid": f(d, "button__button"),
|
|
78
|
+
ref: t,
|
|
74
79
|
children: /* @__PURE__ */ o(
|
|
75
|
-
|
|
80
|
+
y,
|
|
76
81
|
{
|
|
77
|
-
className:
|
|
82
|
+
className: a.checkboxMark,
|
|
78
83
|
bg: "transparent",
|
|
79
|
-
checked: e,
|
|
84
|
+
checked: !!e,
|
|
80
85
|
size: "sm"
|
|
81
86
|
}
|
|
82
87
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as e } from "../../sva-
|
|
1
|
+
import { s as e } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const t = e({
|
|
3
3
|
slots: [
|
|
4
4
|
"toggleBase",
|
|
@@ -11,7 +11,7 @@ const t = e({
|
|
|
11
11
|
base: {
|
|
12
12
|
toggleBase: {
|
|
13
13
|
display: "inline-flex",
|
|
14
|
-
gap: "spacing.
|
|
14
|
+
gap: "spacing.1",
|
|
15
15
|
color: "colour.primary.fill"
|
|
16
16
|
},
|
|
17
17
|
toggleButtonContainer: {
|
|
@@ -38,7 +38,7 @@ const t = e({
|
|
|
38
38
|
position: "relative",
|
|
39
39
|
justifyContent: "flex-start",
|
|
40
40
|
alignItems: "center",
|
|
41
|
-
padding: "spacing.
|
|
41
|
+
padding: "spacing.0",
|
|
42
42
|
cursor: "pointer",
|
|
43
43
|
border: "[none]",
|
|
44
44
|
backgroundColor: "transparent",
|
|
@@ -51,10 +51,10 @@ const t = e({
|
|
|
51
51
|
},
|
|
52
52
|
_before: {
|
|
53
53
|
content: '""',
|
|
54
|
-
top: "spacing.
|
|
55
|
-
left: "spacing.
|
|
56
|
-
right: "spacing.
|
|
57
|
-
bottom: "spacing.
|
|
54
|
+
top: "spacing.0",
|
|
55
|
+
left: "spacing.0",
|
|
56
|
+
right: "spacing.0",
|
|
57
|
+
bottom: "spacing.0",
|
|
58
58
|
position: "absolute",
|
|
59
59
|
borderRadius: "[{sizes.toggle.thumb}]",
|
|
60
60
|
pointerEvents: "none",
|
|
@@ -81,14 +81,14 @@ const t = e({
|
|
|
81
81
|
},
|
|
82
82
|
checkboxMark: {
|
|
83
83
|
opacity: 0,
|
|
84
|
-
marginInlineStart: "spacing.
|
|
84
|
+
marginInlineStart: "spacing.1",
|
|
85
85
|
"&&:hover": {
|
|
86
86
|
bg: "transparent"
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
label: {
|
|
90
90
|
display: "inline-block",
|
|
91
|
-
marginInlineEnd: "spacing.
|
|
91
|
+
marginInlineEnd: "spacing.1",
|
|
92
92
|
color: "colour.neutral.80",
|
|
93
93
|
textStyle: "typography.body.md.strong",
|
|
94
94
|
lineHeight: "1.5rem"
|
|
@@ -109,8 +109,8 @@ const t = e({
|
|
|
109
109
|
flexDirection: "row-reverse"
|
|
110
110
|
},
|
|
111
111
|
label: {
|
|
112
|
-
marginInlineStart: "spacing.
|
|
113
|
-
marginInlineEnd: "spacing.
|
|
112
|
+
marginInlineStart: "spacing.1",
|
|
113
|
+
marginInlineEnd: "spacing.0"
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"inline-between": {
|
|
@@ -129,7 +129,7 @@ const t = e({
|
|
|
129
129
|
},
|
|
130
130
|
label: {
|
|
131
131
|
display: "block",
|
|
132
|
-
marginBlockEnd: "spacing.
|
|
132
|
+
marginBlockEnd: "spacing.1"
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
},
|
|
@@ -140,7 +140,7 @@ const t = e({
|
|
|
140
140
|
display: "inline-block"
|
|
141
141
|
},
|
|
142
142
|
checkboxMark: {
|
|
143
|
-
marginInlineEnd: "spacing.
|
|
143
|
+
marginInlineEnd: "spacing.1"
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
},
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as w, useEffect as j, Fragment as N } from "react";
|
|
3
3
|
import { c as O } from "../../cx-DN21T1EH.js";
|
|
4
|
-
import { u as P, o as R, i as E, j as G, s as H, k as L, l as k, b as B, c as D, d as M } from "../../floating-ui.react-
|
|
4
|
+
import { u as P, o as R, i as E, j as G, s as H, k as L, l as k, b as B, c as D, d as M } from "../../floating-ui.react-BetVZ099.js";
|
|
5
5
|
import { propagateTestid as p } from "../../helpers/utility/propagateTestid.js";
|
|
6
6
|
import { toArray as W } from "../../helpers/formatting/toArray.js";
|
|
7
7
|
import { idsLogger as q } from "../../helpers/utility/idsLogger.js";
|
|
8
8
|
import { focusableElements as z } from "../../helpers/dom/focusableElements.js";
|
|
9
9
|
import { tooltip as J } from "./Tooltip.styles.js";
|
|
10
|
-
import { s as K } from "../../factory-
|
|
10
|
+
import { s as K } from "../../factory-oPXoMw9H.js";
|
|
11
11
|
import { GlobalCSSClass as Q } from "../../enums.js";
|
|
12
12
|
const re = ({
|
|
13
13
|
children: o,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as o } from "../../sva-
|
|
1
|
+
import { s as o } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const a = o({
|
|
3
3
|
slots: ["root", "activator", "content"],
|
|
4
4
|
base: {
|
|
@@ -11,7 +11,7 @@ const a = o({
|
|
|
11
11
|
zIndex: "600",
|
|
12
12
|
width: "[max-content]",
|
|
13
13
|
maxWidth: "[20em]",
|
|
14
|
-
padding: "spacing.
|
|
14
|
+
padding: "spacing.2",
|
|
15
15
|
borderRadius: "radius.system.form",
|
|
16
16
|
borderStyle: "solid",
|
|
17
17
|
layerStyle: "elevation.floating",
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { capitalizeFirstLetter as
|
|
1
|
+
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { capitalizeFirstLetter as f } from "../../helpers/formatting/capitalizeFirstLetter.js";
|
|
3
3
|
import { c as p } from "../../cx-DN21T1EH.js";
|
|
4
|
-
import { IressText as
|
|
5
|
-
import { s as
|
|
6
|
-
import { GlobalCSSClass as
|
|
7
|
-
import { isValidFormInputElement as
|
|
8
|
-
const
|
|
9
|
-
prefix:
|
|
10
|
-
status:
|
|
11
|
-
}) =>
|
|
12
|
-
children:
|
|
13
|
-
className:
|
|
4
|
+
import { IressText as u } from "../Text/Text.js";
|
|
5
|
+
import { s as l } from "../../factory-oPXoMw9H.js";
|
|
6
|
+
import { GlobalCSSClass as x } from "../../enums.js";
|
|
7
|
+
import { isValidFormInputElement as y } from "../../helpers/form/isValidFormInputElement.js";
|
|
8
|
+
const b = ({
|
|
9
|
+
prefix: r,
|
|
10
|
+
status: i = "danger"
|
|
11
|
+
}) => r || `${i === "danger" ? "Error" : f(i)}: `, $ = ({
|
|
12
|
+
children: r,
|
|
13
|
+
className: i,
|
|
14
14
|
linkToTarget: e,
|
|
15
|
-
prefix:
|
|
16
|
-
status:
|
|
17
|
-
visiblePrefix:
|
|
15
|
+
prefix: m,
|
|
16
|
+
status: o = "danger",
|
|
17
|
+
visiblePrefix: d = !1,
|
|
18
18
|
...n
|
|
19
|
-
}) => /* @__PURE__ */
|
|
20
|
-
|
|
19
|
+
}) => /* @__PURE__ */ c(
|
|
20
|
+
u,
|
|
21
21
|
{
|
|
22
|
-
color: `colour.system.${
|
|
22
|
+
color: `colour.system.${o}.text`,
|
|
23
23
|
display: "block",
|
|
24
24
|
...n,
|
|
25
25
|
element: e ? "a" : "div",
|
|
26
26
|
href: e ? `#${e}` : void 0,
|
|
27
27
|
onClick: (a) => {
|
|
28
|
-
|
|
29
|
-
if ((l = n.onClick) == null || l.call(n, a), !e)
|
|
28
|
+
if (n.onClick?.(a), !e)
|
|
30
29
|
return;
|
|
31
|
-
const
|
|
32
|
-
|
|
30
|
+
const t = document.getElementById(e);
|
|
31
|
+
t && (a.preventDefault(), y(t) ? t.focus() : (t.setAttribute("tabIndex", "-1"), t.focus(), t.removeAttribute("tabIndex")));
|
|
33
32
|
},
|
|
34
|
-
className: p(
|
|
33
|
+
className: p(i, x.ValidationMessage),
|
|
35
34
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ s(l.div, { srOnly: !d, display: "inline", pe: "spacing.1", children: /* @__PURE__ */ s(b, { prefix: m, status: o }) }),
|
|
36
|
+
/* @__PURE__ */ s(l.div, { display: "inline", children: r })
|
|
38
37
|
]
|
|
39
38
|
}
|
|
40
39
|
);
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
$ as IressValidationMessage
|
|
43
42
|
};
|
|
@@ -3,7 +3,7 @@ import { propagateTestid as p } from "../../../helpers/utility/propagateTestid.j
|
|
|
3
3
|
import { IressValidationMessage as c } from "../ValidationMessage.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { useIdIfNeeded as g } from "../../../hooks/useIdIfNeeded.js";
|
|
6
|
-
import { s as e } from "../../../factory-
|
|
6
|
+
import { s as e } from "../../../factory-oPXoMw9H.js";
|
|
7
7
|
import { c as S } from "../../../cx-DN21T1EH.js";
|
|
8
8
|
import { GlobalCSSClass as h } from "../../../enums.js";
|
|
9
9
|
const N = ({
|
|
@@ -24,15 +24,15 @@ const N = ({
|
|
|
24
24
|
{
|
|
25
25
|
"data-testid": a,
|
|
26
26
|
listStyle: "none",
|
|
27
|
-
m: "spacing.
|
|
28
|
-
p: "spacing.
|
|
27
|
+
m: "spacing.0",
|
|
28
|
+
p: "spacing.0",
|
|
29
29
|
...m,
|
|
30
30
|
className: S(u, h.ValidationSummary),
|
|
31
31
|
children: [
|
|
32
32
|
o.map((i) => /* @__PURE__ */ r(
|
|
33
33
|
e.li,
|
|
34
34
|
{
|
|
35
|
-
m: "spacing.
|
|
35
|
+
m: "spacing.0",
|
|
36
36
|
children: /* @__PURE__ */ r(
|
|
37
37
|
c,
|
|
38
38
|
{
|
|
@@ -48,7 +48,7 @@ const N = ({
|
|
|
48
48
|
},
|
|
49
49
|
`${x}-${i.linkToTarget}-${i.message}`
|
|
50
50
|
)),
|
|
51
|
-
t && /* @__PURE__ */ r(e.li, { m: "spacing.
|
|
51
|
+
t && /* @__PURE__ */ r(e.li, { m: "spacing.0", children: /* @__PURE__ */ r(
|
|
52
52
|
c,
|
|
53
53
|
{
|
|
54
54
|
status: n,
|