@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,50 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { g as
|
|
3
|
-
import { TableBodyCell as
|
|
4
|
-
import { propagateTestid as
|
|
5
|
-
import { useContext as
|
|
6
|
-
import { s } from "../../../factory-
|
|
7
|
-
const
|
|
8
|
-
additionalHeaders:
|
|
9
|
-
hiddenHeader:
|
|
10
|
-
rowProps:
|
|
11
|
-
setControlViaRef:
|
|
12
|
-
scope:
|
|
13
|
-
tableId:
|
|
14
|
-
testId:
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { g as f, f as c } from "../../../TableProvider-bdUNuoG-.js";
|
|
3
|
+
import { TableBodyCell as u } from "./TableBodyCell.js";
|
|
4
|
+
import { propagateTestid as g } from "../../../helpers/utility/propagateTestid.js";
|
|
5
|
+
import { useContext as b } from "react";
|
|
6
|
+
import { s as x } from "../../../factory-oPXoMw9H.js";
|
|
7
|
+
const R = ({
|
|
8
|
+
additionalHeaders: s,
|
|
9
|
+
hiddenHeader: a,
|
|
10
|
+
rowProps: o = {},
|
|
11
|
+
setControlViaRef: m,
|
|
12
|
+
scope: p = "row",
|
|
13
|
+
tableId: r,
|
|
14
|
+
testId: l
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
return
|
|
18
|
-
|
|
16
|
+
const d = b(f())?.api.getSortedRowModel().rows;
|
|
17
|
+
return d?.length ? d.map((e) => /* @__PURE__ */ n(
|
|
18
|
+
x.tr,
|
|
19
19
|
{
|
|
20
|
-
"data-testid":
|
|
21
|
-
id: `${
|
|
22
|
-
ref: (
|
|
23
|
-
const
|
|
24
|
-
|
|
20
|
+
"data-testid": l?.replace("tbody", "row"),
|
|
21
|
+
id: `${r}--rows--${e.id}`,
|
|
22
|
+
ref: (t) => {
|
|
23
|
+
const i = `${r}--rows--${e.id}`;
|
|
24
|
+
m?.(i)(t);
|
|
25
25
|
},
|
|
26
|
-
...typeof
|
|
27
|
-
children:
|
|
28
|
-
|
|
26
|
+
...typeof o == "function" ? o(e) : o,
|
|
27
|
+
children: e.getVisibleCells().map((t, i) => /* @__PURE__ */ n(
|
|
28
|
+
u,
|
|
29
29
|
{
|
|
30
|
-
additionalHeaders:
|
|
31
|
-
"data-testid":
|
|
32
|
-
|
|
33
|
-
`row_${
|
|
30
|
+
additionalHeaders: s,
|
|
31
|
+
"data-testid": g(
|
|
32
|
+
l?.replace("tbody", "cell"),
|
|
33
|
+
`row_${e.id}__col_${t.column.id}`
|
|
34
34
|
),
|
|
35
|
-
cellApi:
|
|
36
|
-
hiddenHeader:
|
|
37
|
-
index:
|
|
38
|
-
scope:
|
|
39
|
-
tableId:
|
|
40
|
-
children:
|
|
35
|
+
cellApi: t,
|
|
36
|
+
hiddenHeader: a,
|
|
37
|
+
index: i,
|
|
38
|
+
scope: p,
|
|
39
|
+
tableId: r,
|
|
40
|
+
children: c(t.column.columnDef.cell, t.getContext())
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
t.id
|
|
43
43
|
))
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
e.id
|
|
46
46
|
)) : null;
|
|
47
47
|
};
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
R as TableRows
|
|
50
50
|
};
|
|
@@ -3,13 +3,13 @@ import { IressIcon as l } from "../../Icon/Icon.js";
|
|
|
3
3
|
import "../../Icon/Icon.styles.js";
|
|
4
4
|
import { table as p } from "../Table.styles.js";
|
|
5
5
|
const x = ({
|
|
6
|
-
children:
|
|
7
|
-
label:
|
|
8
|
-
noWrap:
|
|
6
|
+
children: r,
|
|
7
|
+
label: s = "sortable",
|
|
8
|
+
noWrap: e = !0,
|
|
9
9
|
sort: o,
|
|
10
10
|
toggleSorting: n
|
|
11
11
|
}) => {
|
|
12
|
-
const c = o
|
|
12
|
+
const c = o?.desc ? "sort-down" : "sort-up", t = p({ sortButtonNoWrap: e });
|
|
13
13
|
return /* @__PURE__ */ a(
|
|
14
14
|
"button",
|
|
15
15
|
{
|
|
@@ -17,13 +17,13 @@ const x = ({
|
|
|
17
17
|
className: t.sortHeader,
|
|
18
18
|
onClick: n,
|
|
19
19
|
children: [
|
|
20
|
-
|
|
20
|
+
r,
|
|
21
21
|
/* @__PURE__ */ m(
|
|
22
22
|
l,
|
|
23
23
|
{
|
|
24
24
|
name: o ? c : "sort",
|
|
25
25
|
className: t.sortIcon,
|
|
26
|
-
screenreaderText:
|
|
26
|
+
screenreaderText: s
|
|
27
27
|
}
|
|
28
28
|
)
|
|
29
29
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../TableFormattedValue/TableFormattedValue.js";
|
|
3
3
|
import "../../../helpers/formatting/formatObjectKey.js";
|
|
4
|
-
import { a as t } from "../../../composeTableColumnDefs-
|
|
4
|
+
import { a as t } from "../../../composeTableColumnDefs-BfFBOARB.js";
|
|
5
5
|
export {
|
|
6
6
|
t as composeTableColumnDefs
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = (e) => e ? e.map(
|
|
2
2
|
(t) => [t.key, t]
|
|
3
|
-
).filter(([, t]) => typeof
|
|
3
|
+
).filter(([, t]) => typeof t?.sort == "string").map(([t, r]) => ({
|
|
4
4
|
id: t,
|
|
5
|
-
desc:
|
|
5
|
+
desc: r?.sort === "desc"
|
|
6
6
|
})) : [];
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
n as composeTableInitialSorting
|
|
9
9
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { useContext as
|
|
2
|
-
import { a as
|
|
3
|
-
const
|
|
4
|
-
columnApi:
|
|
5
|
-
columnKey:
|
|
1
|
+
import { useContext as g } from "react";
|
|
2
|
+
import { a as c } from "../../../TableProvider-bdUNuoG-.js";
|
|
3
|
+
const S = ({
|
|
4
|
+
columnApi: r,
|
|
5
|
+
columnKey: n
|
|
6
6
|
}) => {
|
|
7
|
-
const
|
|
8
|
-
if (!t || !
|
|
9
|
-
const
|
|
7
|
+
const e = g(c), t = e?.getColumnByKey(n), s = t?.sort ?? t?.sortFn;
|
|
8
|
+
if (!t || !s || !r?.getCanSort()) return;
|
|
9
|
+
const o = e?.api.getState().sorting.find((i) => i.id === n), a = o?.desc ? "descending" : "ascending";
|
|
10
10
|
return {
|
|
11
11
|
buttonProps: {
|
|
12
12
|
label: t.sortableText,
|
|
13
|
-
sort:
|
|
13
|
+
sort: o,
|
|
14
14
|
toggleSorting: () => {
|
|
15
|
-
|
|
15
|
+
r.toggleSorting();
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
columnProps: {
|
|
19
|
-
"aria-sort":
|
|
19
|
+
"aria-sort": o ? a : "none"
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
S as useTableColumnSort
|
|
25
25
|
};
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { tableCell as
|
|
1
|
+
import { tableCell as i } from "../Table.styles.js";
|
|
2
2
|
import { useContext as m } from "react";
|
|
3
|
-
import { a
|
|
4
|
-
import { c as n } from "../../../
|
|
5
|
-
import { s as
|
|
6
|
-
const
|
|
3
|
+
import { a } from "../../../TableProvider-bdUNuoG-.js";
|
|
4
|
+
import { c as n } from "../../../css-fGu_jDvv.js";
|
|
5
|
+
import { s as l } from "../../../is-valid-prop-Ce0wiweq.js";
|
|
6
|
+
const h = ({
|
|
7
7
|
columnKey: o
|
|
8
8
|
}) => {
|
|
9
|
-
|
|
10
|
-
const t = (r = m(d)) == null ? void 0 : r.getColumnByKey(o);
|
|
9
|
+
const t = m(a)?.getColumnByKey(o);
|
|
11
10
|
if (!t) return;
|
|
12
|
-
const
|
|
11
|
+
const r = t.format === "number" || t.format === "currency" ? t.format : "default", [e] = l(t), { width: d, ...s } = e;
|
|
13
12
|
return {
|
|
14
13
|
className: n(
|
|
15
|
-
|
|
16
|
-
format: t.textAlign ? void 0 :
|
|
14
|
+
i.raw({
|
|
15
|
+
format: t.textAlign ? void 0 : r,
|
|
17
16
|
divider: t.divider
|
|
18
17
|
}),
|
|
19
|
-
|
|
18
|
+
s
|
|
20
19
|
),
|
|
21
20
|
style: {
|
|
22
|
-
width: t
|
|
23
|
-
minWidth: t
|
|
21
|
+
width: t?.width,
|
|
22
|
+
minWidth: t?.width
|
|
24
23
|
}
|
|
25
24
|
};
|
|
26
25
|
};
|
|
27
26
|
export {
|
|
28
|
-
|
|
27
|
+
h as useTableColumnStyles
|
|
29
28
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { IressTable as o } from "./Table.js";
|
|
2
2
|
import { table as t, tableCell as a } from "./Table.styles.js";
|
|
3
3
|
import { IressTableBody as b } from "./TableBody/TableBody.js";
|
|
4
|
-
import { IressTableFormattedValue as
|
|
4
|
+
import { IressTableFormattedValue as f } from "./TableFormattedValue/TableFormattedValue.js";
|
|
5
5
|
export {
|
|
6
6
|
o as IressTable,
|
|
7
7
|
b as IressTableBody,
|
|
8
|
-
|
|
9
|
-
f as TABLE_CELL_FORMATS,
|
|
8
|
+
f as IressTableFormattedValue,
|
|
10
9
|
t as table,
|
|
11
10
|
a as tableCell
|
|
12
11
|
};
|
|
@@ -1,42 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { propagateTestid as
|
|
4
|
-
import "../../Button-
|
|
5
|
-
import { IressCloseButton as
|
|
6
|
-
import { IressText as
|
|
7
|
-
import { tag as
|
|
8
|
-
import { c as
|
|
9
|
-
import { GlobalCSSClass as
|
|
10
|
-
const
|
|
1
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as u } from "react";
|
|
3
|
+
import { propagateTestid as d } from "../../helpers/utility/propagateTestid.js";
|
|
4
|
+
import "../../Button-mmhMLwp9.js";
|
|
5
|
+
import { IressCloseButton as x } from "../Button/CloseButton/CloseButton.js";
|
|
6
|
+
import { IressText as C } from "../Text/Text.js";
|
|
7
|
+
import { tag as g } from "./Tag.styles.js";
|
|
8
|
+
import { c as T } from "../../cx-DN21T1EH.js";
|
|
9
|
+
import { GlobalCSSClass as b } from "../../enums.js";
|
|
10
|
+
const k = ({
|
|
11
11
|
children: n,
|
|
12
|
-
className:
|
|
12
|
+
className: a,
|
|
13
13
|
"data-testid": o,
|
|
14
|
-
deleteButton:
|
|
15
|
-
deleteButtonText:
|
|
16
|
-
onDelete:
|
|
17
|
-
onDeleteButtonBlur:
|
|
18
|
-
...
|
|
14
|
+
deleteButton: r,
|
|
15
|
+
deleteButtonText: m = "Delete",
|
|
16
|
+
onDelete: l,
|
|
17
|
+
onDeleteButtonBlur: c,
|
|
18
|
+
...i
|
|
19
19
|
}) => {
|
|
20
|
-
const
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
20
|
+
const s = u(null), t = g({ customDeleteButton: !!r });
|
|
21
|
+
return /* @__PURE__ */ f(
|
|
22
|
+
C,
|
|
23
23
|
{
|
|
24
|
-
className:
|
|
24
|
+
className: T(a, t.root, b.Tag),
|
|
25
25
|
"data-testid": o,
|
|
26
26
|
element: "span",
|
|
27
|
-
...
|
|
27
|
+
...i,
|
|
28
28
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
29
|
+
/* @__PURE__ */ e("span", { ref: s, className: t.content, children: n }),
|
|
30
|
+
/* @__PURE__ */ e("span", { className: t.deleteButton, children: r ?? /* @__PURE__ */ e(
|
|
31
|
+
x,
|
|
32
32
|
{
|
|
33
|
-
"data-testid":
|
|
34
|
-
onBlur:
|
|
35
|
-
onClick: (
|
|
36
|
-
|
|
37
|
-
return t == null ? void 0 : t(((m = a.current) == null ? void 0 : m.textContent) ?? "", f);
|
|
38
|
-
},
|
|
39
|
-
screenreaderText: i
|
|
33
|
+
"data-testid": d(o, "delete-button__button"),
|
|
34
|
+
onBlur: c,
|
|
35
|
+
onClick: (p) => l?.(s.current?.textContent ?? "", p),
|
|
36
|
+
screenreaderText: m
|
|
40
37
|
}
|
|
41
38
|
) })
|
|
42
39
|
]
|
|
@@ -44,5 +41,5 @@ const G = ({
|
|
|
44
41
|
);
|
|
45
42
|
};
|
|
46
43
|
export {
|
|
47
|
-
|
|
44
|
+
k as IressTag
|
|
48
45
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as o } from "../../sva-
|
|
1
|
+
import { s as o } from "../../sva-OmxClA9g.js";
|
|
2
2
|
const t = o({
|
|
3
3
|
slots: ["root", "content", "deleteButton"],
|
|
4
4
|
base: {
|
|
@@ -8,9 +8,8 @@ const t = o({
|
|
|
8
8
|
border: "divider",
|
|
9
9
|
borderRadius: "radius.system.badge",
|
|
10
10
|
display: "inline-flex",
|
|
11
|
-
gap: "spacing.
|
|
11
|
+
gap: "spacing.1",
|
|
12
12
|
px: "xs",
|
|
13
|
-
py: "spacing.050",
|
|
14
13
|
transition: "colors"
|
|
15
14
|
},
|
|
16
15
|
content: {
|
|
@@ -22,9 +21,9 @@ const t = o({
|
|
|
22
21
|
fontSize: "inherit",
|
|
23
22
|
minWidth: "[0]",
|
|
24
23
|
minHeight: "[0]",
|
|
25
|
-
py: "spacing.
|
|
26
|
-
px: "spacing.
|
|
27
|
-
mx: "spacing.
|
|
24
|
+
py: "spacing.0",
|
|
25
|
+
px: "spacing.0",
|
|
26
|
+
mx: "spacing.1",
|
|
28
27
|
_after: {
|
|
29
28
|
display: "none"
|
|
30
29
|
}
|
|
@@ -1,125 +1,141 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { IressInput as
|
|
1
|
+
import { jsxs as y, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $, useState as b, useCallback as z } from "react";
|
|
3
|
+
import { IressInput as F } from "../../Input/Input.js";
|
|
4
4
|
import "../../Input/Input.styles.js";
|
|
5
|
-
import { useControlledState as
|
|
6
|
-
import { getValueAsEvent as
|
|
7
|
-
import { IressTag as
|
|
5
|
+
import { useControlledState as G } from "../../../hooks/useControlledState.js";
|
|
6
|
+
import { getValueAsEvent as p } from "../../../helpers/form/getValueAsEvent.js";
|
|
7
|
+
import { IressTag as h } from "../Tag.js";
|
|
8
8
|
import { propagateTestid as v } from "../../../helpers/utility/propagateTestid.js";
|
|
9
9
|
import "../../Inline/Inline.styles.js";
|
|
10
|
-
import { IressInline as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
import { IressInline as H } from "../../Inline/Inline.js";
|
|
11
|
+
import { tagInput as J } from "./TagInput.styles.js";
|
|
12
|
+
const L = ({
|
|
13
|
+
"data-testid": s,
|
|
14
|
+
onTagDelete: c,
|
|
15
|
+
onTagDeleteAll: u,
|
|
16
|
+
onTagDeleteButtonBlur: i,
|
|
17
|
+
selectedOptionsTagText: n,
|
|
18
|
+
tags: r = [],
|
|
19
|
+
tagLimit: m = 5
|
|
20
|
+
}) => r.length ? r.length <= m ? r.map((l) => /* @__PURE__ */ d(
|
|
21
|
+
h,
|
|
21
22
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
children: m
|
|
33
|
-
},
|
|
34
|
-
m
|
|
35
|
-
))
|
|
36
|
-
}
|
|
37
|
-
) : /* @__PURE__ */ x(
|
|
38
|
-
w,
|
|
23
|
+
deleteButtonText: `Delete ${l}`,
|
|
24
|
+
onDelete: c,
|
|
25
|
+
onDeleteButtonBlur: i,
|
|
26
|
+
"data-testid": v(s, "tag"),
|
|
27
|
+
ml: "xs",
|
|
28
|
+
children: l
|
|
29
|
+
},
|
|
30
|
+
l
|
|
31
|
+
)) : /* @__PURE__ */ y(
|
|
32
|
+
h,
|
|
39
33
|
{
|
|
40
|
-
onDelete:
|
|
41
|
-
onDeleteButtonBlur:
|
|
42
|
-
"data-testid": v(
|
|
34
|
+
onDelete: u,
|
|
35
|
+
onDeleteButtonBlur: i,
|
|
36
|
+
"data-testid": v(s, "tag"),
|
|
37
|
+
ml: "xs",
|
|
38
|
+
py: "none",
|
|
43
39
|
children: [
|
|
44
|
-
String(
|
|
40
|
+
String(r.length) || "0",
|
|
45
41
|
" ",
|
|
46
|
-
|
|
42
|
+
n
|
|
47
43
|
]
|
|
48
44
|
}
|
|
49
|
-
) : null,
|
|
45
|
+
) : null, M = $(
|
|
50
46
|
({
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
47
|
+
className: s,
|
|
48
|
+
defaultValue: c,
|
|
49
|
+
name: u,
|
|
50
|
+
onBlur: i,
|
|
51
|
+
onChange: n,
|
|
52
|
+
onExistingTag: r,
|
|
53
|
+
onKeyDown: m,
|
|
54
|
+
onTagDelete: l,
|
|
55
|
+
onTagDeleteAll: w,
|
|
56
|
+
onTagDeleteButtonBlur: B,
|
|
57
|
+
selectedOptionsTagText: x = "selected",
|
|
58
|
+
style: k,
|
|
59
|
+
tagLimit: j = 5,
|
|
60
|
+
width: A = "100perc",
|
|
61
|
+
value: S,
|
|
62
|
+
...f
|
|
63
|
+
}, E) => {
|
|
64
|
+
const [D, g] = b(""), { value: a, setValue: o } = G({
|
|
65
65
|
component: "IressTagInput",
|
|
66
|
-
defaultValue:
|
|
67
|
-
value:
|
|
68
|
-
}),
|
|
69
|
-
(
|
|
70
|
-
if (!
|
|
66
|
+
defaultValue: c,
|
|
67
|
+
value: S
|
|
68
|
+
}), K = J(), I = z(
|
|
69
|
+
(e = "") => {
|
|
70
|
+
if (!e)
|
|
71
71
|
return;
|
|
72
|
-
if (
|
|
73
|
-
|
|
72
|
+
if (a?.includes(e)) {
|
|
73
|
+
r?.(e);
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
const
|
|
77
|
-
|
|
76
|
+
const t = [...a ?? [], e];
|
|
77
|
+
n?.(p(t), t), o(t);
|
|
78
78
|
},
|
|
79
|
-
[
|
|
80
|
-
),
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
if (
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
} else if (
|
|
87
|
-
const
|
|
88
|
-
|
|
79
|
+
[n, r, o, a]
|
|
80
|
+
), N = (e) => {
|
|
81
|
+
i?.(e), I(e.currentTarget.value), g("");
|
|
82
|
+
}, V = (e) => {
|
|
83
|
+
if (m?.(e), e.key === "Backspace" && !D) {
|
|
84
|
+
const t = a?.slice(0, -1);
|
|
85
|
+
n?.(p(t), t), o(t);
|
|
86
|
+
} else if (e.key === "Enter") {
|
|
87
|
+
const t = e.currentTarget;
|
|
88
|
+
t.value && (e.preventDefault(), I(t.value), g(""));
|
|
89
89
|
}
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
|
|
90
|
+
}, q = (e, t) => {
|
|
91
|
+
t.stopPropagation(), l?.(e, t);
|
|
92
|
+
const T = a?.filter((R) => R !== e);
|
|
93
|
+
n?.(p(T), T), o(T);
|
|
94
|
+
}, Q = (e, t) => {
|
|
95
|
+
t.stopPropagation(), w?.(e, t), n?.(p([]), []), o([]);
|
|
96
96
|
};
|
|
97
|
-
return /* @__PURE__ */
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
97
|
+
return /* @__PURE__ */ y(H, { gap: "sm", className: s, style: k, children: [
|
|
98
|
+
/* @__PURE__ */ d(
|
|
99
|
+
F,
|
|
100
|
+
{
|
|
101
|
+
...f,
|
|
102
|
+
className: K.input,
|
|
103
|
+
onBlur: N,
|
|
104
|
+
onChange: (e) => g(e.currentTarget.value),
|
|
105
|
+
onKeyDown: V,
|
|
106
|
+
prepend: /* @__PURE__ */ d(
|
|
107
|
+
L,
|
|
108
|
+
{
|
|
109
|
+
"data-testid": f["data-testid"],
|
|
110
|
+
onTagDelete: q,
|
|
111
|
+
onTagDeleteAll: Q,
|
|
112
|
+
onTagDeleteButtonBlur: B,
|
|
113
|
+
selectedOptionsTagText: x,
|
|
114
|
+
tags: a ?? [],
|
|
115
|
+
tagLimit: j
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
ref: E,
|
|
119
|
+
width: A,
|
|
120
|
+
value: D
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
u && /* @__PURE__ */ d(
|
|
124
|
+
"input",
|
|
125
|
+
{
|
|
126
|
+
type: "hidden",
|
|
127
|
+
value: (a ?? []).join(", "),
|
|
128
|
+
name: u,
|
|
129
|
+
"data-testid": v(
|
|
130
|
+
f["data-testid"],
|
|
131
|
+
"hidden-input"
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
] });
|
|
120
136
|
}
|
|
121
137
|
);
|
|
122
|
-
|
|
138
|
+
M.displayName = "IressTagInput";
|
|
123
139
|
export {
|
|
124
|
-
|
|
140
|
+
M as IressTagInput
|
|
125
141
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as t } from "../../../sva-OmxClA9g.js";
|
|
2
|
+
const s = t({
|
|
3
|
+
slots: ["input", "tag"],
|
|
4
|
+
base: {
|
|
5
|
+
input: {
|
|
6
|
+
flexWrap: "wrap",
|
|
7
|
+
rowGap: "xs",
|
|
8
|
+
py: "xs",
|
|
9
|
+
"& > :first-child": {
|
|
10
|
+
display: "contents",
|
|
11
|
+
minHeight: "[0px]"
|
|
12
|
+
},
|
|
13
|
+
"& > input": {
|
|
14
|
+
width: "auto",
|
|
15
|
+
minHeight: "[calc({sizes.input.height} - {spacing.xs} * 2.5)]",
|
|
16
|
+
py: "none"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
tag: {
|
|
20
|
+
marginLeft: "xs"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
s as tagInput
|
|
26
|
+
};
|