@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,114 +1,119 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useControlledState as
|
|
4
|
-
import { useIdIfNeeded as
|
|
1
|
+
import { jsx as e, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j, useContext as A } from "react";
|
|
3
|
+
import { useControlledState as B } from "../../hooks/useControlledState.js";
|
|
4
|
+
import { useIdIfNeeded as E } from "../../hooks/useIdIfNeeded.js";
|
|
5
5
|
import { propagateTestid as l } from "../../helpers/utility/propagateTestid.js";
|
|
6
|
-
import { IressReadonly as
|
|
6
|
+
import { IressReadonly as H } from "../Readonly/Readonly.js";
|
|
7
7
|
import "../Readonly/Readonly.styles.js";
|
|
8
|
-
import { getFormControlValueAsString as
|
|
9
|
-
import { c as
|
|
10
|
-
import { c as
|
|
11
|
-
import { radio as
|
|
12
|
-
import { GlobalCSSClass as
|
|
13
|
-
import { IressCheckboxMark as
|
|
8
|
+
import { getFormControlValueAsString as P } from "../../helpers/form/getFormControlValueAsString.js";
|
|
9
|
+
import { c as C } from "../../css-fGu_jDvv.js";
|
|
10
|
+
import { c as z } from "../../cx-DN21T1EH.js";
|
|
11
|
+
import { radio as D } from "./Radio.styles.js";
|
|
12
|
+
import { GlobalCSSClass as p } from "../../enums.js";
|
|
13
|
+
import { IressCheckboxMark as J } from "../CheckboxMark/CheckboxMark.js";
|
|
14
14
|
import "../CheckboxMark/CheckboxMark.styles.js";
|
|
15
|
-
import { getRadioGroupContext as
|
|
15
|
+
import { getRadioGroupContext as K } from "../RadioGroup/RadioGroup.js";
|
|
16
16
|
import "../RadioGroup/RadioGroup.styles.js";
|
|
17
|
-
import { s as h } from "../../factory-
|
|
18
|
-
import { s as
|
|
19
|
-
import { IressText as
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
import { s as h } from "../../factory-oPXoMw9H.js";
|
|
18
|
+
import { s as L } from "../../is-valid-prop-Ce0wiweq.js";
|
|
19
|
+
import { IressText as Q } from "../Text/Text.js";
|
|
20
|
+
const T = (a) => /* @__PURE__ */ e(
|
|
21
|
+
h.svg,
|
|
22
|
+
{
|
|
23
|
+
version: "1.1",
|
|
24
|
+
viewBox: "0 0 200 200",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
...a,
|
|
27
|
+
className: p.FormElement,
|
|
28
|
+
children: /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "70" })
|
|
29
|
+
}
|
|
30
|
+
), U = ({
|
|
31
|
+
checked: a,
|
|
32
|
+
children: u,
|
|
33
|
+
className: x,
|
|
34
|
+
"data-testid": i,
|
|
25
35
|
defaultChecked: g,
|
|
26
|
-
hiddenControl:
|
|
27
|
-
name:
|
|
28
|
-
onChange:
|
|
29
|
-
readOnly:
|
|
30
|
-
required:
|
|
31
|
-
value:
|
|
32
|
-
touch:
|
|
36
|
+
hiddenControl: y,
|
|
37
|
+
name: R,
|
|
38
|
+
onChange: w,
|
|
39
|
+
readOnly: v,
|
|
40
|
+
required: b,
|
|
41
|
+
value: r,
|
|
42
|
+
touch: M,
|
|
33
43
|
...n
|
|
34
|
-
},
|
|
35
|
-
const
|
|
44
|
+
}, N) => {
|
|
45
|
+
const f = E(n), o = A(K()), { value: S, setValue: G } = B({
|
|
36
46
|
component: "Radio",
|
|
37
47
|
defaultValue: !!g,
|
|
38
|
-
value:
|
|
48
|
+
value: a,
|
|
39
49
|
propName: "checked"
|
|
40
|
-
}),
|
|
41
|
-
if (
|
|
42
|
-
return
|
|
43
|
-
|
|
50
|
+
}), d = !!o?.onChange, s = d ? o.value === r : S;
|
|
51
|
+
if (d ? o.readOnly : v)
|
|
52
|
+
return s ? /* @__PURE__ */ e(
|
|
53
|
+
H,
|
|
44
54
|
{
|
|
45
55
|
...n,
|
|
46
56
|
width: void 0,
|
|
47
|
-
value:
|
|
48
|
-
children:
|
|
57
|
+
value: P(r),
|
|
58
|
+
children: u
|
|
49
59
|
}
|
|
50
60
|
) : null;
|
|
51
|
-
const
|
|
52
|
-
hiddenControl:
|
|
53
|
-
touch:
|
|
54
|
-
checked:
|
|
55
|
-
}),
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
version: "1.1",
|
|
59
|
-
viewBox: "0 0 200 200",
|
|
60
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
61
|
-
...s.radioMark,
|
|
62
|
-
className: f.FormElement,
|
|
63
|
-
children: /* @__PURE__ */ t("circle", { cx: "100", cy: "100", r: "70" })
|
|
64
|
-
}
|
|
65
|
-
), [A, B] = U(n);
|
|
66
|
-
return /* @__PURE__ */ C(
|
|
61
|
+
const I = o?.name ?? R, c = o?.hiddenRadio ?? y, O = o?.required ?? b, q = o?.touch ?? M, t = D.raw({
|
|
62
|
+
hiddenControl: c,
|
|
63
|
+
touch: q,
|
|
64
|
+
checked: s
|
|
65
|
+
}), [F, V] = L(n);
|
|
66
|
+
return /* @__PURE__ */ k(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
"data-testid":
|
|
70
|
-
className:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
"data-testid": i,
|
|
70
|
+
className: z(
|
|
71
|
+
x,
|
|
72
|
+
C(t.root, F),
|
|
73
|
+
p.Group,
|
|
74
|
+
p.Radio
|
|
75
75
|
),
|
|
76
76
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ e(
|
|
78
78
|
h.input,
|
|
79
79
|
{
|
|
80
|
-
...
|
|
81
|
-
...
|
|
80
|
+
...V,
|
|
81
|
+
...t.input,
|
|
82
82
|
type: "radio",
|
|
83
|
-
id:
|
|
84
|
-
name:
|
|
85
|
-
ref:
|
|
86
|
-
"data-testid": l(
|
|
87
|
-
onChange: (
|
|
88
|
-
|
|
89
|
-
m || O(d.target.checked), i == null || i(d, o), (x = e == null ? void 0 : e.onChange) == null || x.call(e, d, o);
|
|
83
|
+
id: f,
|
|
84
|
+
name: I,
|
|
85
|
+
ref: N,
|
|
86
|
+
"data-testid": l(i, "input"),
|
|
87
|
+
onChange: (m) => {
|
|
88
|
+
d || G(m.target.checked), w?.(m, r), o?.onChange?.(m, r);
|
|
90
89
|
},
|
|
91
|
-
value: String(
|
|
92
|
-
checked:
|
|
93
|
-
required:
|
|
90
|
+
value: String(r),
|
|
91
|
+
checked: s,
|
|
92
|
+
required: O
|
|
94
93
|
}
|
|
95
94
|
),
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
!
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
/* @__PURE__ */ k(h.label, { htmlFor: f, ...t.label, children: [
|
|
96
|
+
!c && /* @__PURE__ */ e(
|
|
97
|
+
T,
|
|
98
|
+
{
|
|
99
|
+
...t.radioMark,
|
|
100
|
+
"data-testid": l(i, "radioMark")
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
c && /* @__PURE__ */ e(
|
|
104
|
+
J,
|
|
100
105
|
{
|
|
101
|
-
className:
|
|
102
|
-
checked:
|
|
103
|
-
"data-testid": l(
|
|
106
|
+
className: C(t.checkboxMark),
|
|
107
|
+
checked: s,
|
|
108
|
+
"data-testid": l(i, "checkboxMark")
|
|
104
109
|
}
|
|
105
110
|
),
|
|
106
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ e(Q, { element: "span", children: u })
|
|
107
112
|
] })
|
|
108
113
|
]
|
|
109
114
|
}
|
|
110
115
|
);
|
|
111
|
-
},
|
|
116
|
+
}, fo = j(U);
|
|
112
117
|
export {
|
|
113
|
-
|
|
118
|
+
fo as IressRadio
|
|
114
119
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as r } from "../../sva-
|
|
1
|
+
import { s as r } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const e = r({
|
|
3
3
|
slots: [
|
|
4
4
|
"root",
|
|
@@ -13,7 +13,7 @@ const e = r({
|
|
|
13
13
|
color: "colour.primary.fill",
|
|
14
14
|
display: "flex",
|
|
15
15
|
position: "relative",
|
|
16
|
-
padding: "spacing.
|
|
16
|
+
padding: "spacing.0",
|
|
17
17
|
transition: "[all 0.2s ease-out]",
|
|
18
18
|
"&:has(svg:hover)": {
|
|
19
19
|
color: "colour.primary.fillHover"
|
|
@@ -25,14 +25,14 @@ const e = r({
|
|
|
25
25
|
height: "[1px]",
|
|
26
26
|
margin: "[-1px]",
|
|
27
27
|
overflow: "hidden",
|
|
28
|
-
padding: "spacing.
|
|
28
|
+
padding: "spacing.0",
|
|
29
29
|
position: "absolute",
|
|
30
30
|
width: "[1px]"
|
|
31
31
|
},
|
|
32
32
|
label: {
|
|
33
33
|
display: "inline-flex",
|
|
34
34
|
alignItems: "center",
|
|
35
|
-
padding: "spacing.
|
|
35
|
+
padding: "spacing.0",
|
|
36
36
|
border: "[0px solid transparent]",
|
|
37
37
|
borderRadius: "radius.system.form",
|
|
38
38
|
backgroundColor: "[transparent]",
|
|
@@ -54,7 +54,7 @@ const e = r({
|
|
|
54
54
|
width: "[calc(1.3 * 1rem)]",
|
|
55
55
|
height: "[calc(1.3 * 1rem)]",
|
|
56
56
|
borderRadius: "[100%]",
|
|
57
|
-
marginInlineEnd: "spacing.
|
|
57
|
+
marginInlineEnd: "spacing.2",
|
|
58
58
|
flexShrink: 0,
|
|
59
59
|
color: "[currentColor]",
|
|
60
60
|
"& circle": {
|
|
@@ -94,7 +94,7 @@ const e = r({
|
|
|
94
94
|
borderStyle: "solid",
|
|
95
95
|
borderColor: "colour.neutral.40",
|
|
96
96
|
borderRadius: "radius.050",
|
|
97
|
-
padding: "spacing.
|
|
97
|
+
padding: "spacing.4"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
},
|
|
@@ -1,95 +1,87 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useControlledState as
|
|
4
|
-
import { radioGroup as
|
|
5
|
-
import { c as
|
|
6
|
-
import { s as
|
|
7
|
-
import { GlobalCSSClass as
|
|
8
|
-
import { useNoDefaultValueInForms as
|
|
9
|
-
function
|
|
10
|
-
return
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as B, createContext as N, useRef as T, useMemo as j, useImperativeHandle as k } from "react";
|
|
3
|
+
import { useControlledState as D } from "../../hooks/useControlledState.js";
|
|
4
|
+
import { radioGroup as E } from "./RadioGroup.styles.js";
|
|
5
|
+
import { c as H } from "../../cx-DN21T1EH.js";
|
|
6
|
+
import { s as M } from "../../factory-oPXoMw9H.js";
|
|
7
|
+
import { GlobalCSSClass as P } from "../../enums.js";
|
|
8
|
+
import { useNoDefaultValueInForms as h } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
9
|
+
function w() {
|
|
10
|
+
return N(void 0);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function z() {
|
|
13
|
+
return A;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
children:
|
|
17
|
-
className:
|
|
18
|
-
hiddenRadio:
|
|
19
|
-
layout:
|
|
20
|
-
name:
|
|
21
|
-
onBlur:
|
|
15
|
+
const A = w(), J = ({
|
|
16
|
+
children: d,
|
|
17
|
+
className: v,
|
|
18
|
+
hiddenRadio: t,
|
|
19
|
+
layout: G = "stack",
|
|
20
|
+
name: n,
|
|
21
|
+
onBlur: R,
|
|
22
22
|
onChange: s,
|
|
23
|
-
onFocus:
|
|
24
|
-
required:
|
|
25
|
-
role:
|
|
26
|
-
defaultValue:
|
|
27
|
-
readOnly:
|
|
28
|
-
value:
|
|
29
|
-
touch:
|
|
30
|
-
...
|
|
31
|
-
},
|
|
32
|
-
|
|
23
|
+
onFocus: x,
|
|
24
|
+
required: c,
|
|
25
|
+
role: C = "radiogroup",
|
|
26
|
+
defaultValue: a,
|
|
27
|
+
readOnly: i,
|
|
28
|
+
value: S,
|
|
29
|
+
touch: l,
|
|
30
|
+
...g
|
|
31
|
+
}, I) => {
|
|
32
|
+
h({
|
|
33
33
|
component: "IressRadioGroup",
|
|
34
|
-
defaultValue:
|
|
34
|
+
defaultValue: a
|
|
35
35
|
});
|
|
36
|
-
const
|
|
36
|
+
const r = T(null), e = r.current, { value: p, setValue: u } = D({
|
|
37
37
|
component: "IressRadioGroup",
|
|
38
|
-
defaultValue:
|
|
39
|
-
value:
|
|
40
|
-
}),
|
|
38
|
+
defaultValue: a,
|
|
39
|
+
value: S
|
|
40
|
+
}), b = j(
|
|
41
41
|
() => ({
|
|
42
|
-
name:
|
|
43
|
-
value:
|
|
44
|
-
hiddenRadio:
|
|
45
|
-
required:
|
|
46
|
-
readOnly:
|
|
47
|
-
touch:
|
|
48
|
-
onChange: (o,
|
|
49
|
-
|
|
42
|
+
name: n,
|
|
43
|
+
value: p,
|
|
44
|
+
hiddenRadio: t,
|
|
45
|
+
required: c,
|
|
46
|
+
readOnly: i,
|
|
47
|
+
touch: l,
|
|
48
|
+
onChange: (o, m) => {
|
|
49
|
+
u(m), s?.(o, m);
|
|
50
50
|
}
|
|
51
51
|
}),
|
|
52
|
-
[
|
|
52
|
+
[n, p, t, c, i, u, s, l]
|
|
53
53
|
);
|
|
54
|
-
|
|
54
|
+
k(I, () => ({
|
|
55
55
|
// React hook form requires the focus, blur, input
|
|
56
|
-
focus: () =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
blur: () => {
|
|
61
|
-
var o;
|
|
62
|
-
return (o = t == null ? void 0 : t.querySelector("input")) == null ? void 0 : o.blur();
|
|
63
|
-
},
|
|
64
|
-
input: t,
|
|
65
|
-
reset: () => c(void 0)
|
|
56
|
+
focus: () => e?.querySelector("input")?.focus(),
|
|
57
|
+
blur: () => e?.querySelector("input")?.blur(),
|
|
58
|
+
input: e,
|
|
59
|
+
reset: () => u(void 0)
|
|
66
60
|
}));
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return /* @__PURE__ */ v(T, { value: C, children: /* @__PURE__ */ v(
|
|
75
|
-
z.div,
|
|
61
|
+
const y = (o) => {
|
|
62
|
+
x?.(o), o.target === r.current && r.current.querySelector("input")?.focus();
|
|
63
|
+
}, F = (o) => {
|
|
64
|
+
o.relatedTarget && !r.current?.contains(o.relatedTarget) && R?.(o);
|
|
65
|
+
}, { Provider: q } = z();
|
|
66
|
+
return /* @__PURE__ */ f(q, { value: b, children: /* @__PURE__ */ f(
|
|
67
|
+
M.div,
|
|
76
68
|
{
|
|
77
|
-
...
|
|
78
|
-
ref:
|
|
79
|
-
role:
|
|
80
|
-
className:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
69
|
+
...g,
|
|
70
|
+
ref: r,
|
|
71
|
+
role: C,
|
|
72
|
+
className: H(
|
|
73
|
+
v,
|
|
74
|
+
E({ layout: G, hiddenRadio: t }),
|
|
75
|
+
P.RadioGroup
|
|
84
76
|
),
|
|
85
|
-
onBlur:
|
|
86
|
-
onFocus:
|
|
87
|
-
children:
|
|
77
|
+
onBlur: F,
|
|
78
|
+
onFocus: y,
|
|
79
|
+
children: d
|
|
88
80
|
}
|
|
89
81
|
) });
|
|
90
|
-
},
|
|
82
|
+
}, Z = B(J);
|
|
91
83
|
export {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
Z as IressRadioGroup,
|
|
85
|
+
A as RadioGroupContext,
|
|
86
|
+
z as getRadioGroupContext
|
|
95
87
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from "../../cva-
|
|
1
|
+
import { c as a } from "../../cva-JiDXAa83.js";
|
|
2
2
|
const i = a({
|
|
3
3
|
base: {},
|
|
4
4
|
variants: {
|
|
@@ -6,7 +6,7 @@ const i = a({
|
|
|
6
6
|
stack: {
|
|
7
7
|
display: "inline-flex",
|
|
8
8
|
flexFlow: "column wrap",
|
|
9
|
-
rowGap: "spacing.
|
|
9
|
+
rowGap: "spacing.2",
|
|
10
10
|
"& > *": {
|
|
11
11
|
flexBasis: "[0]"
|
|
12
12
|
}
|
|
@@ -14,7 +14,7 @@ const i = a({
|
|
|
14
14
|
block: {
|
|
15
15
|
display: "flex",
|
|
16
16
|
flexFlow: "column wrap",
|
|
17
|
-
rowGap: "spacing.
|
|
17
|
+
rowGap: "spacing.2",
|
|
18
18
|
"& label": {
|
|
19
19
|
flexBasis: "[100%]"
|
|
20
20
|
}
|
|
@@ -23,7 +23,7 @@ const i = a({
|
|
|
23
23
|
display: "flex",
|
|
24
24
|
flexFlow: "row wrap",
|
|
25
25
|
width: "[100%]",
|
|
26
|
-
gap: "spacing.
|
|
26
|
+
gap: "spacing.2",
|
|
27
27
|
"& label": {
|
|
28
28
|
flexBasis: "[auto]",
|
|
29
29
|
flexGrow: "[0]"
|
|
@@ -31,7 +31,7 @@ const i = a({
|
|
|
31
31
|
},
|
|
32
32
|
inlineFlex: {
|
|
33
33
|
display: "inline-flex",
|
|
34
|
-
gap: "spacing.
|
|
34
|
+
gap: "spacing.2"
|
|
35
35
|
},
|
|
36
36
|
inlineEqualWidth: {
|
|
37
37
|
display: "flex",
|
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { propagateTestid as
|
|
4
|
-
import { getFormControlValueAsStringIfDefined as
|
|
5
|
-
import { readonly as
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
1
|
+
import { jsxs as S, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as I } from "react";
|
|
3
|
+
import { propagateTestid as V } from "../../helpers/utility/propagateTestid.js";
|
|
4
|
+
import { getFormControlValueAsStringIfDefined as d } from "../../helpers/form/getFormControlValueAsStringIfDefined.js";
|
|
5
|
+
import { readonly as D } from "./Readonly.styles.js";
|
|
6
|
+
import { c as s } from "../../css-fGu_jDvv.js";
|
|
7
|
+
import { c as P } from "../../cx-DN21T1EH.js";
|
|
8
|
+
import { IressSpinner as g } from "../Spinner/Spinner.js";
|
|
8
9
|
import "../Spinner/Spinner.styles.js";
|
|
9
|
-
import { GlobalCSSClass as
|
|
10
|
-
import { useNoDefaultValueInForms as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
import { GlobalCSSClass as j } from "../../enums.js";
|
|
11
|
+
import { useNoDefaultValueInForms as w } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
12
|
+
import { s as F } from "../../is-valid-prop-Ce0wiweq.js";
|
|
13
|
+
const b = ({
|
|
14
|
+
append: t,
|
|
15
|
+
children: c,
|
|
16
|
+
className: p,
|
|
17
|
+
"data-testid": a,
|
|
18
|
+
defaultValue: i,
|
|
19
|
+
loading: e,
|
|
18
20
|
prepend: l,
|
|
19
|
-
style:
|
|
21
|
+
style: f,
|
|
20
22
|
width: u,
|
|
21
23
|
value: v,
|
|
22
24
|
inline: y,
|
|
23
25
|
alignRight: h,
|
|
24
|
-
...
|
|
25
|
-
},
|
|
26
|
-
|
|
26
|
+
...N
|
|
27
|
+
}, x) => {
|
|
28
|
+
w({
|
|
27
29
|
component: "IressReadonly",
|
|
28
|
-
defaultValue:
|
|
30
|
+
defaultValue: i
|
|
29
31
|
});
|
|
30
|
-
const
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
+
const r = D.raw({ inline: y, width: u, alignRight: h }), n = d(i), m = d(v), [C, R] = F(N);
|
|
33
|
+
return /* @__PURE__ */ S(
|
|
32
34
|
"div",
|
|
33
35
|
{
|
|
34
|
-
className:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
D.Readonly
|
|
36
|
+
className: P(
|
|
37
|
+
p,
|
|
38
|
+
s(r.root, C),
|
|
39
|
+
j.Readonly
|
|
39
40
|
),
|
|
40
|
-
"data-testid":
|
|
41
|
-
style:
|
|
41
|
+
"data-testid": a,
|
|
42
|
+
style: f,
|
|
42
43
|
children: [
|
|
43
|
-
l && /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
44
|
+
l && /* @__PURE__ */ o("div", { className: s(r.addon), children: l }),
|
|
45
|
+
/* @__PURE__ */ o("div", { className: s(r.formControl), children: c ?? m ?? n }),
|
|
46
|
+
/* @__PURE__ */ o("div", { className: s(r.internal), children: e && /* @__PURE__ */ o(
|
|
47
|
+
g,
|
|
47
48
|
{
|
|
48
|
-
screenreaderText:
|
|
49
|
+
screenreaderText: e === !0 ? "loading" : e
|
|
49
50
|
}
|
|
50
51
|
) }),
|
|
51
|
-
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
t && /* @__PURE__ */ o("div", { className: s(r.addon), children: t }),
|
|
53
|
+
/* @__PURE__ */ o(
|
|
53
54
|
"input",
|
|
54
55
|
{
|
|
55
|
-
...
|
|
56
|
-
defaultValue:
|
|
56
|
+
...R,
|
|
57
|
+
defaultValue: n,
|
|
57
58
|
type: "hidden",
|
|
58
|
-
ref:
|
|
59
|
-
"data-testid":
|
|
59
|
+
ref: x,
|
|
60
|
+
"data-testid": V(a, "input"),
|
|
60
61
|
value: m
|
|
61
62
|
}
|
|
62
63
|
)
|
|
63
64
|
]
|
|
64
65
|
}
|
|
65
66
|
);
|
|
66
|
-
},
|
|
67
|
+
}, M = I(b);
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
M as IressReadonly
|
|
69
70
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { s as t } from "../../sva-
|
|
1
|
+
import { s as t } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const i = t({
|
|
3
|
-
slots: ["root", "wrapper", "addon", "internal", "formControl"
|
|
3
|
+
slots: ["root", "wrapper", "addon", "internal", "formControl"],
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
6
6
|
display: "flex",
|
|
7
|
-
alignItems: "stretch",
|
|
8
7
|
backgroundColor: "colour.neutral.10",
|
|
9
8
|
minHeight: "input.height",
|
|
10
9
|
margin: "[0]",
|
|
11
10
|
flexGrow: "1",
|
|
12
|
-
textStyle: "typography.body.
|
|
11
|
+
textStyle: "typography.body.md",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
height: "auto",
|
|
14
|
+
lineHeight: "inherit"
|
|
13
15
|
},
|
|
14
16
|
addon: {
|
|
15
17
|
borderRadius: "radius.100",
|
|
@@ -24,16 +26,16 @@ const i = t({
|
|
|
24
26
|
display: "none"
|
|
25
27
|
},
|
|
26
28
|
"& > *": {
|
|
27
|
-
px: "spacing.
|
|
29
|
+
px: "spacing.3"
|
|
28
30
|
},
|
|
29
31
|
_first: {
|
|
30
32
|
"& > *": {
|
|
31
|
-
pl: "spacing.
|
|
33
|
+
pl: "spacing.0"
|
|
32
34
|
}
|
|
33
35
|
},
|
|
34
36
|
_last: {
|
|
35
37
|
"& > *": {
|
|
36
|
-
pr: "spacing.
|
|
38
|
+
pr: "spacing.0"
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
},
|
|
@@ -41,7 +43,7 @@ const i = t({
|
|
|
41
43
|
display: "flex",
|
|
42
44
|
alignItems: "center",
|
|
43
45
|
"& > *": {
|
|
44
|
-
padding: "[0 {spacing.spacing.
|
|
46
|
+
padding: "[0 {spacing.spacing.3}]"
|
|
45
47
|
},
|
|
46
48
|
_empty: {
|
|
47
49
|
display: "none"
|
|
@@ -51,7 +53,6 @@ const i = t({
|
|
|
51
53
|
borderWidth: 0,
|
|
52
54
|
borderRadius: "radius.system.form",
|
|
53
55
|
backgroundColor: "colour.neutral.10",
|
|
54
|
-
textStyle: "typography.body.lg",
|
|
55
56
|
color: "colour.neutral.80",
|
|
56
57
|
display: "inline-flex",
|
|
57
58
|
alignItems: "center",
|
|
@@ -59,20 +60,14 @@ const i = t({
|
|
|
59
60
|
flex: "auto",
|
|
60
61
|
maxWidth: "[100%]",
|
|
61
62
|
minHeight: "input.height",
|
|
62
|
-
|
|
63
|
+
height: "auto",
|
|
64
|
+
lineHeight: "inherit",
|
|
63
65
|
_focus: {
|
|
64
66
|
outline: "[none]"
|
|
65
67
|
},
|
|
66
68
|
_placeholder: {
|
|
67
69
|
color: "colour.neutral.60"
|
|
68
70
|
}
|
|
69
|
-
},
|
|
70
|
-
readonly: {
|
|
71
|
-
display: "flex",
|
|
72
|
-
alignItems: "center",
|
|
73
|
-
height: "auto",
|
|
74
|
-
minHeight: "input.height",
|
|
75
|
-
lineHeight: "inherit"
|
|
76
71
|
}
|
|
77
72
|
},
|
|
78
73
|
variants: {
|