@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,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as p } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { composeLabelValueDescriptor as s } from "../../../helpers/label-value/composeLabelValueDescriptor.js";
|
|
4
|
+
import { c as l } from "../../../css-fGu_jDvv.js";
|
|
5
5
|
const D = ({
|
|
6
6
|
loading: t,
|
|
7
7
|
noResultsText: o = "No results",
|
|
8
8
|
results: r = [],
|
|
9
9
|
show: e,
|
|
10
10
|
value: i,
|
|
11
|
-
...
|
|
11
|
+
...n
|
|
12
12
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
return /* @__PURE__ */
|
|
13
|
+
const m = p(() => t ? "loading" : e && !r.length ? o : e && r.length ? s(r, "{{numOptions}} results") : s(i) || "None selected", [t, o, r, e, i]);
|
|
14
|
+
return /* @__PURE__ */ c("div", { ...n, className: l({ srOnly: !0 }), children: m });
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
17
|
D as FilterResultsDescriptor
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { filter as
|
|
3
|
-
import { usePopoverItem as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { c as
|
|
6
|
-
import { IressInput as
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { filter as p } from "../Filter.styles.js";
|
|
3
|
+
import { usePopoverItem as a } from "../../Popover/hooks/usePopoverItem.js";
|
|
4
|
+
import { forwardRef as i, useRef as n, useImperativeHandle as f } from "react";
|
|
5
|
+
import { c as l } from "../../../cx-DN21T1EH.js";
|
|
6
|
+
import { IressInput as u } from "../../Input/Input.js";
|
|
7
7
|
import "../../Input/Input.styles.js";
|
|
8
|
-
const
|
|
9
|
-
(
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
|
|
8
|
+
const I = i(
|
|
9
|
+
(r, o) => {
|
|
10
|
+
const e = n(null), { isActiveInPopover: h, ...t } = a();
|
|
11
|
+
f(o, () => e.current);
|
|
12
|
+
const s = p();
|
|
13
|
+
return /* @__PURE__ */ c(
|
|
14
|
+
u,
|
|
15
15
|
{
|
|
16
|
+
...r,
|
|
16
17
|
...t,
|
|
17
|
-
...e,
|
|
18
18
|
autoCorrect: "off",
|
|
19
|
-
className:
|
|
19
|
+
className: l(s.searchInput, r.className),
|
|
20
20
|
style: { width: "100%" },
|
|
21
21
|
ref: (m) => {
|
|
22
|
-
|
|
23
|
-
r.current = m, (c = e == null ? void 0 : e.ref) == null || c.call(e, ((s = r.current) == null ? void 0 : s.input) ?? null);
|
|
22
|
+
e.current = m, t?.ref?.(e.current?.input ?? null);
|
|
24
23
|
},
|
|
25
24
|
type: "search"
|
|
26
25
|
}
|
|
27
26
|
);
|
|
28
27
|
}
|
|
29
28
|
);
|
|
30
|
-
|
|
29
|
+
I.displayName = "FilterSearch";
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
I as FilterSearch
|
|
33
32
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { normaliseHideValues as m } from "./helpers/normaliseHideValues.js";
|
|
3
|
-
import { s as d } from "../../factory-
|
|
3
|
+
import { s as d } from "../../factory-oPXoMw9H.js";
|
|
4
4
|
const n = d("div"), f = ({
|
|
5
5
|
children: s,
|
|
6
6
|
hiddenOn: e,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { s as n } from "../../factory-
|
|
2
|
+
import { s as n } from "../../factory-oPXoMw9H.js";
|
|
3
3
|
import { c as e } from "../../cx-DN21T1EH.js";
|
|
4
4
|
import { icon as x } from "./Icon.styles.js";
|
|
5
5
|
import { GlobalCSSClass as I } from "../../enums.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { GlobalCSSClass as a } from "../../enums.js";
|
|
3
3
|
import { image as i } from "./Image.styles.js";
|
|
4
4
|
import { c as l } from "../../cx-DN21T1EH.js";
|
|
5
|
-
import { s as c } from "../../factory-
|
|
5
|
+
import { s as c } from "../../factory-oPXoMw9H.js";
|
|
6
6
|
const n = c("img", i), y = ({
|
|
7
7
|
className: m,
|
|
8
8
|
maxWidth: s = "100%",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { inline as r } from "./Inline.styles.js";
|
|
3
|
-
import { s as i } from "../../factory-
|
|
3
|
+
import { s as i } from "../../factory-oPXoMw9H.js";
|
|
4
4
|
import { GlobalCSSClass as n } from "../../enums.js";
|
|
5
5
|
import { c as t } from "../../cx-DN21T1EH.js";
|
|
6
6
|
const e = i("div", r), x = ({ className: o, ...s }) => /* @__PURE__ */ m(e, { ...s, className: t(o, n.Inline) });
|
|
@@ -1,150 +1,144 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { GlobalCSSClass as
|
|
4
|
-
import { getFormControlValueAsString as
|
|
5
|
-
import { InputBase as
|
|
6
|
-
import { IressSpinner as
|
|
1
|
+
import { jsx as r, jsxs as F } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A, useRef as N, useState as G, useImperativeHandle as H } from "react";
|
|
3
|
+
import { GlobalCSSClass as d } from "../../enums.js";
|
|
4
|
+
import { getFormControlValueAsString as U } from "../../helpers/form/getFormControlValueAsString.js";
|
|
5
|
+
import { InputBase as z } from "./InputBase/InputBase.js";
|
|
6
|
+
import { IressSpinner as J } from "../Spinner/Spinner.js";
|
|
7
7
|
import "../Spinner/Spinner.styles.js";
|
|
8
|
-
import { useControlledState as
|
|
9
|
-
import { IressReadonly as
|
|
8
|
+
import { useControlledState as K } from "../../hooks/useControlledState.js";
|
|
9
|
+
import { IressReadonly as L } from "../Readonly/Readonly.js";
|
|
10
10
|
import "../Readonly/Readonly.styles.js";
|
|
11
|
-
import { c } from "../../cx-DN21T1EH.js";
|
|
12
|
-
import { input as
|
|
13
|
-
import { s as
|
|
14
|
-
import { s as
|
|
15
|
-
import { useNoDefaultValueInForms as
|
|
16
|
-
import "../../Button-
|
|
17
|
-
import { IressCloseButton as
|
|
18
|
-
const
|
|
11
|
+
import { c as s } from "../../cx-DN21T1EH.js";
|
|
12
|
+
import { input as Q } from "./Input.styles.js";
|
|
13
|
+
import { s as W } from "../../factory-oPXoMw9H.js";
|
|
14
|
+
import { s as X } from "../../is-valid-prop-Ce0wiweq.js";
|
|
15
|
+
import { useNoDefaultValueInForms as Y } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
16
|
+
import "../../Button-mmhMLwp9.js";
|
|
17
|
+
import { IressCloseButton as Z } from "../Button/CloseButton/CloseButton.js";
|
|
18
|
+
const _ = ({ rows: a, ...f }, S) => {
|
|
19
19
|
const {
|
|
20
|
-
loading:
|
|
21
|
-
clearable:
|
|
22
|
-
defaultValue:
|
|
23
|
-
onClear:
|
|
24
|
-
width:
|
|
25
|
-
prepend:
|
|
26
|
-
append:
|
|
27
|
-
onChange:
|
|
28
|
-
className:
|
|
29
|
-
readOnly:
|
|
30
|
-
formatter:
|
|
31
|
-
type:
|
|
32
|
-
inline:
|
|
33
|
-
alignRight:
|
|
34
|
-
...
|
|
35
|
-
} =
|
|
36
|
-
|
|
20
|
+
loading: l = !1,
|
|
21
|
+
clearable: P = !1,
|
|
22
|
+
defaultValue: v,
|
|
23
|
+
onClear: D,
|
|
24
|
+
width: M,
|
|
25
|
+
prepend: g,
|
|
26
|
+
append: u,
|
|
27
|
+
onChange: R,
|
|
28
|
+
className: C,
|
|
29
|
+
readOnly: B,
|
|
30
|
+
formatter: i,
|
|
31
|
+
type: E,
|
|
32
|
+
inline: T,
|
|
33
|
+
alignRight: I,
|
|
34
|
+
...t
|
|
35
|
+
} = f;
|
|
36
|
+
Y({
|
|
37
37
|
component: "IressInput",
|
|
38
|
-
defaultValue:
|
|
38
|
+
defaultValue: v
|
|
39
39
|
});
|
|
40
|
-
const
|
|
40
|
+
const c = N(null), p = N(null), { value: m, setValue: h } = K({
|
|
41
41
|
component: "IressInput",
|
|
42
|
-
defaultValue:
|
|
43
|
-
value:
|
|
44
|
-
}),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if (J(
|
|
49
|
-
B,
|
|
42
|
+
defaultValue: v,
|
|
43
|
+
value: f.value
|
|
44
|
+
}), y = U(m), [x, V] = G(!1), [j, O] = X(t), b = i && !x ? i(m) : y;
|
|
45
|
+
let w = i && !x ? { type: "text" } : { type: E };
|
|
46
|
+
if (a !== void 0 && (w = void 0), H(
|
|
47
|
+
S,
|
|
50
48
|
() => ({
|
|
51
|
-
...
|
|
49
|
+
...c.current,
|
|
52
50
|
extras: {
|
|
53
51
|
additionalOnChangeProps: ["onClear"]
|
|
54
52
|
}
|
|
55
53
|
})
|
|
56
|
-
),
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
|
|
54
|
+
), B)
|
|
55
|
+
return /* @__PURE__ */ r(
|
|
56
|
+
L,
|
|
59
57
|
{
|
|
60
|
-
...
|
|
58
|
+
...t,
|
|
61
59
|
defaultValue: void 0,
|
|
62
|
-
value:
|
|
63
|
-
alignRight:
|
|
64
|
-
append:
|
|
65
|
-
className:
|
|
66
|
-
children:
|
|
60
|
+
value: m,
|
|
61
|
+
alignRight: I,
|
|
62
|
+
append: u,
|
|
63
|
+
className: C,
|
|
64
|
+
children: b
|
|
67
65
|
}
|
|
68
66
|
);
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const t = new Event("change", {
|
|
67
|
+
const k = (e) => {
|
|
68
|
+
h(""), c.current?.focus();
|
|
69
|
+
const o = new Event("change", {
|
|
73
70
|
bubbles: !0
|
|
74
71
|
});
|
|
75
|
-
Object.defineProperty(
|
|
72
|
+
Object.defineProperty(o, "target", {
|
|
76
73
|
writable: !1,
|
|
77
|
-
value: { value: "", ...
|
|
78
|
-
}),
|
|
79
|
-
},
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
alignRight:
|
|
84
|
-
inline:
|
|
85
|
-
isTextarea:
|
|
86
|
-
width:
|
|
74
|
+
value: { value: "", ...e.target }
|
|
75
|
+
}), D?.(o);
|
|
76
|
+
}, q = (e) => {
|
|
77
|
+
const o = e.target.value;
|
|
78
|
+
h(o), R?.(e, o);
|
|
79
|
+
}, n = Q({
|
|
80
|
+
alignRight: I,
|
|
81
|
+
inline: T,
|
|
82
|
+
isTextarea: a !== void 0,
|
|
83
|
+
width: M
|
|
87
84
|
});
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
|
|
85
|
+
return /* @__PURE__ */ F(
|
|
86
|
+
W.div,
|
|
90
87
|
{
|
|
91
|
-
className:
|
|
88
|
+
className: s(
|
|
92
89
|
// classes.root,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
d.FormElement,
|
|
91
|
+
d.Input,
|
|
92
|
+
C,
|
|
93
|
+
n.wrapper,
|
|
94
|
+
d.FormElementInner
|
|
98
95
|
),
|
|
99
|
-
"data-testid":
|
|
100
|
-
...
|
|
96
|
+
"data-testid": t["data-testid"],
|
|
97
|
+
...j,
|
|
101
98
|
children: [
|
|
102
|
-
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
99
|
+
g && /* @__PURE__ */ r("div", { className: s(n.addon), children: g }),
|
|
100
|
+
/* @__PURE__ */ r(
|
|
101
|
+
z,
|
|
105
102
|
{
|
|
106
|
-
...
|
|
107
|
-
...
|
|
108
|
-
className:
|
|
109
|
-
value:
|
|
110
|
-
onChange:
|
|
111
|
-
onFocus: (
|
|
112
|
-
|
|
113
|
-
N(!0), (t = e == null ? void 0 : e.onFocus) == null || t.call(e, r), v.current ? v.current = null : queueMicrotask(() => r.target.select());
|
|
103
|
+
...O,
|
|
104
|
+
...w,
|
|
105
|
+
className: n.formControl,
|
|
106
|
+
value: b,
|
|
107
|
+
onChange: q,
|
|
108
|
+
onFocus: (e) => {
|
|
109
|
+
V(!0), t?.onFocus?.(e), p.current ? p.current = null : queueMicrotask(() => e.target.select());
|
|
114
110
|
},
|
|
115
|
-
onMouseDown: (
|
|
116
|
-
|
|
117
|
-
(t = e == null ? void 0 : e.onMouseDown) == null || t.call(e, r), v.current = !0;
|
|
111
|
+
onMouseDown: (e) => {
|
|
112
|
+
t?.onMouseDown?.(e), p.current = !0;
|
|
118
113
|
},
|
|
119
|
-
onBlur: (
|
|
120
|
-
|
|
121
|
-
N(!1), (t = e == null ? void 0 : e.onBlur) == null || t.call(e, r);
|
|
114
|
+
onBlur: (e) => {
|
|
115
|
+
V(!1), t?.onBlur?.(e);
|
|
122
116
|
},
|
|
123
|
-
rows:
|
|
124
|
-
ref:
|
|
117
|
+
rows: a,
|
|
118
|
+
ref: c
|
|
125
119
|
}
|
|
126
120
|
),
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
|
|
129
|
-
|
|
121
|
+
/* @__PURE__ */ F("div", { className: s(n.internal), children: [
|
|
122
|
+
l && /* @__PURE__ */ r(
|
|
123
|
+
J,
|
|
130
124
|
{
|
|
131
|
-
screenreaderText:
|
|
125
|
+
screenreaderText: l === !0 ? "loading" : l
|
|
132
126
|
}
|
|
133
127
|
),
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
y && P && /* @__PURE__ */ r(
|
|
129
|
+
Z,
|
|
136
130
|
{
|
|
137
|
-
onClick:
|
|
138
|
-
onMouseDown: (
|
|
131
|
+
onClick: k,
|
|
132
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
139
133
|
screenreaderText: "Clear"
|
|
140
134
|
}
|
|
141
135
|
)
|
|
142
136
|
] }),
|
|
143
|
-
|
|
137
|
+
u && /* @__PURE__ */ r("div", { className: s(n.addon), children: u })
|
|
144
138
|
]
|
|
145
139
|
}
|
|
146
140
|
);
|
|
147
|
-
},
|
|
141
|
+
}, ge = A(_);
|
|
148
142
|
export {
|
|
149
|
-
|
|
143
|
+
ge as IressInput
|
|
150
144
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as r } from "../../sva-
|
|
1
|
+
import { s as r } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const o = r({
|
|
3
3
|
slots: ["root", "wrapper", "inline", "addon", "internal", "formControl"],
|
|
4
4
|
base: {
|
|
@@ -27,7 +27,7 @@ const o = r({
|
|
|
27
27
|
alignItems: "center",
|
|
28
28
|
py: "none",
|
|
29
29
|
"&:not(:empty)": {
|
|
30
|
-
px: "spacing.
|
|
30
|
+
px: "spacing.3"
|
|
31
31
|
},
|
|
32
32
|
_empty: {
|
|
33
33
|
display: "none"
|
|
@@ -40,7 +40,7 @@ const o = r({
|
|
|
40
40
|
display: "flex",
|
|
41
41
|
alignItems: "center",
|
|
42
42
|
"& > *": {
|
|
43
|
-
padding: "[0 {spacing.spacing.
|
|
43
|
+
padding: "[0 {spacing.spacing.3}]"
|
|
44
44
|
},
|
|
45
45
|
_empty: {
|
|
46
46
|
display: "none"
|
|
@@ -49,7 +49,7 @@ const o = r({
|
|
|
49
49
|
formControl: {
|
|
50
50
|
borderWidth: 0,
|
|
51
51
|
borderRadius: "radius.system.form",
|
|
52
|
-
padding: "spacing.
|
|
52
|
+
padding: "spacing.2",
|
|
53
53
|
backgroundColor: "colour.neutral.10",
|
|
54
54
|
textStyle: "typography.body.md",
|
|
55
55
|
color: "colour.neutral.80",
|
|
@@ -69,10 +69,10 @@ const o = r({
|
|
|
69
69
|
backgroundColor: "colour.primary.surface",
|
|
70
70
|
color: "colour.primary.text",
|
|
71
71
|
borderRadius: "radius.system.form",
|
|
72
|
-
py: "spacing.
|
|
73
|
-
px: "spacing.
|
|
74
|
-
m: "-spacing.
|
|
75
|
-
mr: "spacing.
|
|
72
|
+
py: "spacing.2",
|
|
73
|
+
px: "spacing.2",
|
|
74
|
+
m: "-spacing.1",
|
|
75
|
+
mr: "spacing.2",
|
|
76
76
|
cursor: "pointer",
|
|
77
77
|
_hover: {
|
|
78
78
|
backgroundColor: "colour.primary.surfaceHover"
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
if (
|
|
7
|
-
const
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l, useRef as s, useImperativeHandle as d } from "react";
|
|
3
|
+
import { s as f } from "../../../factory-oPXoMw9H.js";
|
|
4
|
+
const m = ({ "data-testid": t, rows: e, ...u }, i) => {
|
|
5
|
+
const a = e !== void 0, r = s(null), n = s(null);
|
|
6
|
+
if (d(i, () => {
|
|
7
|
+
const c = a ? n.current : r.current;
|
|
8
8
|
return {
|
|
9
|
-
focus: () =>
|
|
10
|
-
blur: () =>
|
|
11
|
-
input:
|
|
9
|
+
focus: () => c?.focus(),
|
|
10
|
+
blur: () => c?.blur(),
|
|
11
|
+
input: a ? n.current : r.current
|
|
12
12
|
};
|
|
13
13
|
}), e !== void 0)
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
14
|
+
return /* @__PURE__ */ p(
|
|
15
|
+
f.textarea,
|
|
16
16
|
{
|
|
17
17
|
rows: e,
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
ref:
|
|
18
|
+
...t && { "data-testid": `${t}__textarea` },
|
|
19
|
+
...u,
|
|
20
|
+
ref: n
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
const
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
23
|
+
const o = u;
|
|
24
|
+
return /* @__PURE__ */ p(
|
|
25
|
+
f.input,
|
|
26
26
|
{
|
|
27
|
-
...
|
|
28
|
-
...
|
|
29
|
-
type:
|
|
30
|
-
ref:
|
|
27
|
+
...t && { "data-testid": `${t}__input` },
|
|
28
|
+
...o,
|
|
29
|
+
type: o.type ?? "text",
|
|
30
|
+
ref: r
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
|
-
}, v =
|
|
33
|
+
}, v = l(m);
|
|
34
34
|
export {
|
|
35
35
|
v as InputBase
|
|
36
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as t } from "../../sva-
|
|
1
|
+
import { s as t } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const e = t({
|
|
3
3
|
slots: ["root", "required", "text"],
|
|
4
4
|
base: {
|
|
@@ -10,8 +10,8 @@ const e = t({
|
|
|
10
10
|
display: "inline-block",
|
|
11
11
|
position: "relative",
|
|
12
12
|
textStyle: "typography.body.sm.strong",
|
|
13
|
-
top: "-spacing.
|
|
14
|
-
mr: "spacing.
|
|
13
|
+
top: "-spacing.1",
|
|
14
|
+
mr: "spacing.1"
|
|
15
15
|
},
|
|
16
16
|
text: {
|
|
17
17
|
textStyle: "typography.body.md.strong"
|
|
@@ -23,7 +23,7 @@ const e = t({
|
|
|
23
23
|
hiddenLabel: !0,
|
|
24
24
|
css: {
|
|
25
25
|
root: {
|
|
26
|
-
mb: "spacing.
|
|
26
|
+
mb: "spacing.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
1
|
+
import { jsxs as l, jsx as a, Fragment as b } from "react/jsx-runtime";
|
|
2
2
|
import { GlobalCSSClass as g } from "../../../enums.js";
|
|
3
3
|
import { propagateTestid as y } from "../../../helpers/utility/propagateTestid.js";
|
|
4
4
|
import { useState as C, useMemo as S } from "react";
|
|
5
|
-
import { s as
|
|
5
|
+
import { s as r } from "../../../factory-oPXoMw9H.js";
|
|
6
6
|
import { label as j } from "../Label.styles.js";
|
|
7
7
|
import { c as q } from "../../../cx-DN21T1EH.js";
|
|
8
8
|
const R = ({
|
|
9
|
-
append:
|
|
10
|
-
children:
|
|
11
|
-
className:
|
|
12
|
-
"data-testid":
|
|
13
|
-
element:
|
|
14
|
-
hiddenLabel:
|
|
15
|
-
required:
|
|
16
|
-
...
|
|
9
|
+
append: o,
|
|
10
|
+
children: c,
|
|
11
|
+
className: p,
|
|
12
|
+
"data-testid": m,
|
|
13
|
+
element: n,
|
|
14
|
+
hiddenLabel: t = !1,
|
|
15
|
+
required: d,
|
|
16
|
+
...f
|
|
17
17
|
}) => {
|
|
18
|
-
const [
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
() =>
|
|
23
|
-
[
|
|
18
|
+
const [i, u] = C(), e = j({ hasAppend: !!o, hiddenLabel: t }), x = (h) => {
|
|
19
|
+
const s = h?.textContent;
|
|
20
|
+
s && s !== i && u(s);
|
|
21
|
+
}, N = S(
|
|
22
|
+
() => r(n ?? "label"),
|
|
23
|
+
[n]
|
|
24
24
|
);
|
|
25
25
|
return /* @__PURE__ */ l(
|
|
26
|
-
|
|
26
|
+
N,
|
|
27
27
|
{
|
|
28
|
-
className: q(
|
|
29
|
-
"data-testid":
|
|
30
|
-
...
|
|
31
|
-
"data-name":
|
|
28
|
+
className: q(p, g.FormLabel, e.root),
|
|
29
|
+
"data-testid": m,
|
|
30
|
+
...f,
|
|
31
|
+
"data-name": i,
|
|
32
32
|
children: [
|
|
33
|
-
|
|
34
|
-
!
|
|
35
|
-
/* @__PURE__ */
|
|
33
|
+
d && /* @__PURE__ */ l(b, { children: [
|
|
34
|
+
!t && /* @__PURE__ */ a("span", { className: e.required, "aria-hidden": !0, children: "*" }),
|
|
35
|
+
/* @__PURE__ */ a(r.span, { srOnly: !0, children: "Required" })
|
|
36
36
|
] }),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
/* @__PURE__ */ a(
|
|
38
|
+
r.span,
|
|
39
39
|
{
|
|
40
|
-
className:
|
|
41
|
-
"data-testid": y(
|
|
42
|
-
ref:
|
|
43
|
-
srOnly:
|
|
44
|
-
children:
|
|
40
|
+
className: e.text,
|
|
41
|
+
"data-testid": y(m, "text"),
|
|
42
|
+
ref: x,
|
|
43
|
+
srOnly: t,
|
|
44
|
+
children: c
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
|
|
47
|
+
o
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
);
|