@iress-oss/ids-components 6.0.0-alpha.0 → 6.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/Autocomplete-CLvWVHp6.js +358 -0
- package/dist/{Button-BXzmntRi.js → Button-D6AL0bia.js} +86 -85
- package/dist/Provider-BXQiO7Gp.js +64 -0
- package/dist/{TableProvider-D8SQKIG8.js → TableProvider-_4Whj6P5.js} +11 -11
- package/dist/components/Alert/Alert.js +34 -35
- package/dist/components/Alert/Alert.styles.js +1 -1
- package/dist/components/Alert/index.js +4 -5
- package/dist/components/Autocomplete/Autocomplete.js +17 -82
- package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +36 -35
- package/dist/components/Autocomplete/index.js +6 -4
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/Badge.styles.js +1 -1
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
- package/dist/components/ButtonGroup/hooks/useButtonGroupItem.js +11 -12
- package/dist/components/Card/Card.js +2 -2
- package/dist/components/Card/Card.styles.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +85 -86
- package/dist/components/Checkbox/Checkbox.styles.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +69 -74
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +1 -1
- package/dist/components/CheckboxMark/CheckboxMark.js +2 -2
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +2 -2
- package/dist/components/Col/Col.js +1 -1
- package/dist/components/Col/Col.styles.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Container/Container.styles.js +3 -2
- package/dist/components/Divider/Divider.js +2 -2
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.js +46 -41
- package/dist/components/Expander/Expander.styles.js +2 -2
- package/dist/components/Field/Field.js +55 -54
- package/dist/components/Field/Field.styles.js +10 -3
- package/dist/components/Field/FieldGroup/FieldGroup.js +40 -40
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +1 -1
- package/dist/components/Field/components/FieldFooter.js +32 -32
- package/dist/components/Field/components/FieldHint.js +2 -2
- package/dist/components/Filter/Filter.js +213 -100
- package/dist/components/Filter/Filter.styles.js +1 -1
- package/dist/components/Filter/components/FilterResetButton.js +17 -18
- package/dist/components/Filter/components/FilterResultsDescriptor.js +6 -6
- package/dist/components/Filter/components/FilterSearch.js +18 -19
- package/dist/components/Filter/index.js +2 -2
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/Icon.styles.js +1 -1
- package/dist/components/Image/Image.js +1 -1
- package/dist/components/Image/Image.styles.js +1 -1
- package/dist/components/Inline/Inline.js +1 -1
- package/dist/components/Inline/Inline.styles.js +1 -1
- package/dist/components/Input/Input.js +98 -102
- package/dist/components/Input/Input.styles.js +1 -1
- package/dist/components/Input/InputBase/InputBase.js +23 -23
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +32 -32
- package/dist/components/Link/Link.js +50 -51
- package/dist/components/Link/Link.styles.js +2 -1
- package/dist/components/Menu/Menu.js +51 -51
- package/dist/components/Menu/Menu.styles.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +13 -13
- package/dist/components/Menu/MenuItem/MenuItem.js +144 -146
- package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +5 -5
- package/dist/components/Menu/MenuText/MenuText.js +38 -38
- package/dist/components/Modal/Modal.js +119 -123
- package/dist/components/Modal/Modal.styles.js +15 -6
- package/dist/components/Modal/ModalProvider.js +20 -22
- package/dist/components/Modal/hooks/useModal.js +9 -7
- package/dist/components/Modal/hooks/useProviderModal.js +8 -8
- package/dist/components/Modal/index.js +7 -6
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Panel/Panel.styles.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +14 -14
- package/dist/components/Placeholder/Placeholder.styles.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +89 -14
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +31 -34
- package/dist/components/Popover/Popover.js +44 -43
- package/dist/components/Popover/Popover.styles.js +2 -2
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverActivator.js +48 -53
- package/dist/components/Popover/components/PopoverContent.js +33 -33
- package/dist/components/Popover/helpers/composeFloatingProps.js +23 -26
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +11 -14
- package/dist/components/Popover/hooks/usePopover.js +79 -75
- package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +23 -26
- package/dist/components/Popover/hooks/usePopoverItem.js +16 -17
- package/dist/components/Popover/hooks/usePopoverNavigation.js +22 -22
- package/dist/components/Popover/index.js +6 -6
- package/dist/components/Progress/Progress.js +4 -4
- package/dist/components/Progress/Progress.styles.js +1 -1
- package/dist/components/Provider/Provider.js +12 -35
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +79 -80
- package/dist/components/Radio/Radio.styles.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +69 -77
- package/dist/components/RadioGroup/RadioGroup.styles.js +1 -1
- package/dist/components/Readonly/Readonly.js +44 -43
- package/dist/components/Readonly/Readonly.styles.js +8 -13
- package/dist/components/RichSelect/RichSelect.js +21 -86
- package/dist/components/RichSelect/RichSelect.styles.js +1 -1
- package/dist/components/RichSelect/SelectBody/SelectBody.js +23 -117
- package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +1 -1
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +25 -114
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +67 -97
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +19 -19
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +69 -69
- package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +52 -46
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +43 -98
- package/dist/components/RichSelect/SelectSearch/SelectSearch.styles.js +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +31 -32
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +161 -105
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +1 -1
- package/dist/components/RichSelect/components/SelectActivator.js +63 -6
- package/dist/components/RichSelect/components/SelectOptions.js +201 -95
- package/dist/components/RichSelect/index.js +18 -15
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/Row.styles.js +1 -1
- package/dist/components/Select/Select.js +71 -71
- package/dist/components/Select/Select.styles.js +1 -1
- package/dist/components/Select/SelectOption/SelectOption.js +1 -1
- package/dist/components/Select/components/SelectControl.js +1 -1
- package/dist/components/Select/components/SelectReadonly.js +30 -33
- package/dist/components/Select/helpers/nodesToSelectOptions.js +19 -20
- package/dist/components/Skeleton/Skeleton.styles.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +2 -2
- package/dist/components/Slideout/Slideout.js +155 -160
- package/dist/components/Slideout/Slideout.styles.js +1 -1
- package/dist/components/Slideout/SlideoutProvider.js +18 -20
- package/dist/components/Slideout/components/SlideoutInner.js +3 -3
- package/dist/components/Slideout/hooks/useProviderSlideout.js +8 -8
- package/dist/components/Slideout/hooks/usePushElement.js +27 -27
- package/dist/components/Slideout/hooks/useSlideout.js +11 -9
- package/dist/components/Slideout/index.js +7 -6
- package/dist/components/Slider/Slider.js +76 -76
- package/dist/components/Slider/Slider.styles.js +1 -1
- package/dist/components/Slider/components/SliderTicks.js +15 -16
- package/dist/components/Spinner/Spinner.styles.js +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/Stack/Stack.styles.js +3 -3
- package/dist/components/TabSet/Tab/Tab.js +88 -88
- package/dist/components/TabSet/Tab/Tab.styles.js +1 -1
- package/dist/components/TabSet/TabSet.js +69 -59
- package/dist/components/TabSet/TabSet.styles.js +1 -1
- package/dist/components/TabSet/TabSetProvider.js +43 -43
- package/dist/components/Table/Table.js +39 -39
- package/dist/components/Table/Table.styles.js +10 -8
- package/dist/components/Table/TableBody/TableBody.js +76 -76
- package/dist/components/Table/TableFormattedValue/TableFormattedValue.js +8 -18
- package/dist/components/Table/TableProvider.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +8 -8
- package/dist/components/Table/components/TableHeader.js +31 -32
- package/dist/components/Table/components/TableHeaderCell.js +23 -24
- package/dist/components/Table/components/TableRows.js +38 -38
- package/dist/components/Table/components/TableSortButton.js +6 -6
- package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
- package/dist/components/Table/helpers/composeTableInitialSorting.js +4 -4
- package/dist/components/Table/hooks/useTableColumnSort.js +12 -12
- package/dist/components/Table/hooks/useTableColumnStyles.js +13 -14
- package/dist/components/Table/index.js +2 -3
- package/dist/components/Tag/Tag.js +29 -32
- package/dist/components/Tag/Tag.styles.js +1 -2
- package/dist/components/Tag/TagInput/TagInput.js +120 -104
- package/dist/components/Tag/TagInput/TagInput.styles.js +26 -0
- package/dist/components/Text/Text.js +16 -36
- package/dist/components/Text/Text.styles.js +2 -2
- package/dist/components/Text/index.js +1 -2
- package/dist/components/Toaster/Toaster.js +59 -11
- package/dist/components/Toaster/Toaster.styles.js +1 -1
- package/dist/components/Toaster/ToasterProvider.js +49 -6
- package/dist/components/Toaster/components/Toast/Toast.js +46 -47
- package/dist/components/Toaster/components/Toast/Toast.styles.js +1 -1
- package/dist/components/Toaster/components/Toast/ToastAnimated.js +36 -37
- package/dist/components/Toaster/hooks/useToaster.js +24 -22
- package/dist/components/Toaster/index.js +5 -4
- package/dist/components/Toggle/Toggle.js +42 -42
- package/dist/components/Toggle/Toggle.styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +25 -26
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/{composeTableColumnDefs-CeWqgpKW.js → composeTableColumnDefs-Hmd6yfdj.js} +99 -99
- package/dist/constants.js +10 -10
- package/dist/{create-recipe-BqEnhJ30.js → create-recipe-C-ASk1Hy.js} +11 -10
- package/dist/css-fGu_jDvv.js +228 -0
- package/dist/cva-JiDXAa83.js +63 -0
- package/dist/enums.js +7 -7
- package/dist/factory-oPXoMw9H.js +58 -0
- package/dist/{floating-ui.react-CPN4oQCc.js → floating-ui.react-CmSaAiNF.js} +1153 -1151
- package/dist/fuzzysort-DKAolWVP.js +397 -0
- package/dist/helpers/dom/closestCrossShadow.js +16 -17
- package/dist/helpers/dom/focusableElements.js +6 -6
- package/dist/helpers/dom/getActiveElement.js +5 -6
- package/dist/helpers/formatting/formatDateTime.js +9 -10
- package/dist/helpers/label-value/composeLabelValueDescriptor.js +8 -8
- package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
- package/dist/helpers/label-value/getValueFromLabelValues.js +5 -6
- package/dist/helpers/label-value/highlightQueryInLabel.js +4 -7
- package/dist/helpers/label-value/highlightQueryInLabelValue.js +6 -5
- package/dist/helpers/label-value/searchLabelValues.js +1 -1
- package/dist/helpers/responsive/getResponsiveLayoutModifiers.js +4 -4
- package/dist/helpers/styling/iressCss.js +2 -2
- package/dist/helpers/transition/getTransitionDuration.js +5 -8
- package/dist/hooks/useAriaRelationship.js +19 -21
- package/dist/hooks/useBreakpoint.js +8 -11
- package/dist/hooks/useControlledState.js +37 -35
- package/dist/{index-DlGwAtoO.js → index-CvOVcYUc.js} +40 -14
- package/dist/{index.esm-BnSuefUA.js → index.esm-8uZEha-3.js} +1 -1
- package/dist/{index.esm-BdbWn-w_.js → index.esm-B6vzbp0e.js} +5 -5
- package/dist/is-valid-prop-Ce0wiweq.js +7 -0
- package/dist/main.js +298 -292
- package/dist/patterns/Form/Form.js +1 -1
- package/dist/patterns/Form/Form.styles.js +1 -1
- package/dist/patterns/Form/FormField/FormField.js +41 -44
- package/dist/patterns/Form/FormField/FormFieldset.js +41 -44
- package/dist/patterns/Form/FormField/helpers/getErrorTypeMessage.js +10 -10
- package/dist/patterns/Form/FormField/hooks/useFieldRenderProps.js +26 -26
- package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +55 -56
- package/dist/patterns/Form/HookForm/HookForm.js +72 -75
- package/dist/patterns/Form/components/LongForm.js +1 -1
- package/dist/patterns/Form/components/ShortForm.js +12 -12
- package/dist/patterns/Loading/Loading.styles.js +19 -7
- package/dist/patterns/Loading/LoadingSuspense.js +26 -26
- package/dist/patterns/Loading/components/ComponentLoading.js +49 -49
- package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
- package/dist/patterns/Loading/components/LongLoading.js +45 -45
- package/dist/patterns/Loading/components/PageLoading.js +63 -60
- package/dist/patterns/Loading/components/StartUpLoading.js +61 -59
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/hooks/useShowIndicator.js +11 -11
- package/dist/patterns/Shadow/Shadow.js +32235 -0
- package/dist/patterns/Shadow/index.js +4 -0
- package/dist/src/components/Alert/Alert.d.ts +0 -1
- package/dist/src/components/Alert/Alert.styles.d.ts +1 -1
- package/dist/src/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +1 -1
- package/dist/src/components/Autocomplete/index.d.ts +1 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/components/Field/Field.styles.d.ts +8 -1
- package/dist/src/components/Field/FieldGroup/FieldGroup.styles.d.ts +1 -1
- package/dist/src/components/Label/Label.styles.d.ts +1 -1
- package/dist/src/components/Modal/Modal.styles.d.ts +6 -0
- package/dist/src/components/Modal/ModalProvider.d.ts +0 -16
- package/dist/src/components/Modal/hooks/useModal.d.ts +17 -0
- package/dist/src/components/Popover/Popover.styles.d.ts +1 -1
- package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +1 -1
- package/dist/src/components/Popover/hooks/usePopover.d.ts +4 -0
- package/dist/src/components/Popover/hooks/usePopoverNavigation.d.ts +1 -1
- package/dist/src/components/Readonly/Readonly.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/RichSelect.d.ts +11 -1
- package/dist/src/components/RichSelect/SelectBody/SelectBody.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectMenu/SelectMenu.d.ts +2 -2
- package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectSearch/SelectSearch.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.d.ts +1 -2
- package/dist/src/components/RichSelect/SelectTags/SelectTags.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectTags/SelectTags.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
- package/dist/src/components/Slideout/SlideoutProvider.d.ts +0 -6
- package/dist/src/components/Slideout/hooks/useSlideout.d.ts +7 -0
- package/dist/src/components/TabSet/TabSet.d.ts +10 -1
- package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.d.ts +2 -3
- package/dist/src/components/Table/helpers/composeTableColumnDefs.d.ts +1 -1
- package/dist/src/components/Tag/TagInput/TagInput.styles.d.ts +1 -0
- package/dist/src/components/Text/Text.d.ts +1 -2
- package/dist/src/components/Toaster/ToasterProvider.d.ts +0 -2
- package/dist/src/components/Toaster/components/Toast/Toast.d.ts +1 -2
- package/dist/src/components/Toaster/hooks/useToaster.d.ts +7 -6
- package/dist/src/enums.d.ts +1 -9
- package/dist/src/interfaces.d.ts +1 -0
- package/dist/src/main.d.ts +1 -1
- package/dist/src/patterns/Form/hooks/useNoDefaultValueInForms.d.ts +1 -1
- package/dist/src/patterns/Loading/Loading.styles.d.ts +1 -0
- package/dist/src/patterns/Loading/components/PageLoading.d.ts +5 -1
- package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +8 -3
- package/dist/src/patterns/Loading/components/ValidateLoading.d.ts +1 -1
- package/dist/src/patterns/Shadow/Shadow.d.ts +34 -0
- package/dist/src/patterns/Shadow/index.d.ts +1 -0
- package/dist/src/patterns/Shadow/meta/Thumbnail.d.ts +2 -0
- package/dist/src/patterns/Shadow/meta/index.d.ts +7 -0
- package/dist/src/styled-system/jsx/create-style-context.d.ts +47 -0
- package/dist/src/styled-system/jsx/index.d.ts +1 -0
- package/dist/src/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/dist/src/styled-system/patterns/bleed.d.ts +0 -1
- package/dist/src/styled-system/patterns/box.d.ts +0 -1
- package/dist/src/styled-system/patterns/center.d.ts +0 -1
- package/dist/src/styled-system/patterns/circle.d.ts +0 -1
- package/dist/src/styled-system/patterns/container.d.ts +0 -1
- package/dist/src/styled-system/patterns/cq.d.ts +0 -1
- package/dist/src/styled-system/patterns/divider.d.ts +0 -1
- package/dist/src/styled-system/patterns/flex.d.ts +0 -1
- package/dist/src/styled-system/patterns/float.d.ts +0 -1
- package/dist/src/styled-system/patterns/grid-item.d.ts +0 -1
- package/dist/src/styled-system/patterns/grid.d.ts +0 -1
- package/dist/src/styled-system/patterns/hstack.d.ts +0 -1
- package/dist/src/styled-system/patterns/link-overlay.d.ts +0 -1
- package/dist/src/styled-system/patterns/spacer.d.ts +0 -1
- package/dist/src/styled-system/patterns/square.d.ts +0 -1
- package/dist/src/styled-system/patterns/stack.d.ts +0 -1
- package/dist/src/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/dist/src/styled-system/patterns/vstack.d.ts +0 -1
- package/dist/src/styled-system/patterns/wrap.d.ts +0 -1
- package/dist/src/styled-system/recipes/button.d.ts +4 -3
- package/dist/src/styled-system/recipes/table.d.ts +4 -1
- package/dist/src/styled-system/recipes/text.d.ts +3 -2
- package/dist/src/styled-system/tokens/tokens.d.ts +4 -4
- package/dist/src/styled-system/types/composition.d.ts +83 -23
- package/dist/src/styled-system/types/conditions.d.ts +15 -11
- package/dist/src/styled-system/types/jsx.d.ts +21 -6
- package/dist/src/styled-system/types/prop-type.d.ts +9 -2
- package/dist/src/styled-system/types/style-props.d.ts +14 -1
- package/dist/src/styled-system/types/system-types.d.ts +76 -0
- package/dist/style.css +1 -1
- package/dist/sva-OmxClA9g.js +34 -0
- package/package.json +68 -46
- package/dist/Filter-Bwk7SIlJ.js +0 -1103
- package/dist/InputPopover-BWWuoQZ2.js +0 -132
- package/dist/ToasterProvider-XqpAGfRs.js +0 -112
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/cva-B2x59Dph.js +0 -294
- package/dist/factory-DHLOr79I.js +0 -53
- package/dist/fuzzysort-eoXOpoo6.js +0 -395
- package/dist/helpers/utility/generateScopedName.js +0 -9
- package/dist/is-valid-prop-DFFvE05x.js +0 -7
- package/dist/panda.config.d.ts +0 -4
- package/dist/src/helpers/utility/generateScopedName.d.ts +0 -8
- package/dist/sva-TRyehFkb.js +0 -32
- package/dist/theme-preset/config-recipes/button.d.ts +0 -6
- package/dist/theme-preset/config-recipes/table.d.ts +0 -1
- package/dist/theme-preset/config-recipes/text.d.ts +0 -1
- package/dist/theme-preset/globalCss.d.ts +0 -1
- package/dist/theme-preset/index.d.ts +0 -2
- package/dist/theme-preset/staticCss.d.ts +0 -2
- package/dist/theme-preset/storybook.d.ts +0 -4
- package/dist/theme-preset/tokens/animationStyles.d.ts +0 -1
- package/dist/theme-preset/tokens/borders.d.ts +0 -50
- package/dist/theme-preset/tokens/breakpoints.d.ts +0 -8
- package/dist/theme-preset/tokens/colors.d.ts +0 -156
- package/dist/theme-preset/tokens/keyframes.d.ts +0 -1
- package/dist/theme-preset/tokens/layerStyles.d.ts +0 -40
- package/dist/theme-preset/tokens/radii.d.ts +0 -42
- package/dist/theme-preset/tokens/sizes.d.ts +0 -246
- package/dist/theme-preset/tokens/spacing.d.ts +0 -100
- package/dist/theme-preset/tokens/textStyles.d.ts +0 -5
- package/dist/theme-preset/tokens/zIndex.d.ts +0 -23
- package/dist/theme-preset/utilities/chevron.d.ts +0 -3
- package/dist/theme-preset/utilities/focusable.d.ts +0 -1
- package/dist/theme-preset/utilities/gutter.d.ts +0 -1
- package/dist/theme-preset/utilities/hide.d.ts +0 -1
- package/dist/theme-preset/utilities/noGutter.d.ts +0 -1
- package/dist/theme-preset/utilities/offset.d.ts +0 -75
- package/dist/theme-preset/utilities/sliderThumb.d.ts +0 -1
- package/dist/theme-preset/utilities/span.d.ts +0 -120
- package/dist/theme-preset/utilities/stretch.d.ts +0 -1
- package/dist/theme-preset/utilities/topLeftTriangle.d.ts +0 -2
- package/dist/typography--vGt_ztU.js +0 -12
- package/dist/vite.config.d.ts +0 -2
- package/dist/vitest.config.d.ts +0 -2
- package/dist/vitest.setup.d.ts +0 -0
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { createContext as g, useMemo as c } from "react";
|
|
4
|
-
import { c as d, a as p, g as b, b as C } from "./composeTableColumnDefs-
|
|
5
|
-
import { composeTableInitialSorting as
|
|
4
|
+
import { c as d, a as p, g as b, b as C } from "./composeTableColumnDefs-Hmd6yfdj.js";
|
|
5
|
+
import { composeTableInitialSorting as m } from "./components/Table/helpers/composeTableInitialSorting.js";
|
|
6
6
|
/**
|
|
7
7
|
* react-table
|
|
8
8
|
*
|
|
@@ -14,18 +14,18 @@ import { composeTableInitialSorting as y } from "./components/Table/helpers/comp
|
|
|
14
14
|
* @license MIT
|
|
15
15
|
*/
|
|
16
16
|
function P(t, e) {
|
|
17
|
-
return t ?
|
|
17
|
+
return t ? y(t) ? /* @__PURE__ */ s.createElement(t, e) : t : null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function y(t) {
|
|
20
|
+
return S(t) || typeof t == "function" || R(t);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function S(t) {
|
|
23
23
|
return typeof t == "function" && (() => {
|
|
24
24
|
const e = Object.getPrototypeOf(t);
|
|
25
25
|
return e.prototype && e.prototype.isReactComponent;
|
|
26
26
|
})();
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function R(t) {
|
|
29
29
|
return typeof t == "object" && typeof t.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(t.$$typeof.description);
|
|
30
30
|
}
|
|
31
31
|
function x(t) {
|
|
@@ -71,17 +71,17 @@ const M = T(), k = ({
|
|
|
71
71
|
getCoreRowModel: C(),
|
|
72
72
|
getSortedRowModel: b(),
|
|
73
73
|
initialState: {
|
|
74
|
-
sorting:
|
|
74
|
+
sorting: m(e)
|
|
75
75
|
}
|
|
76
76
|
}), i = c(
|
|
77
77
|
() => ({
|
|
78
78
|
api: n,
|
|
79
|
-
getColumnByKey: (
|
|
79
|
+
getColumnByKey: (l) => e?.find((u) => u.key === l)
|
|
80
80
|
}),
|
|
81
81
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- only update when columns and rows change
|
|
82
82
|
[o, e, n.getState().sorting]
|
|
83
83
|
), { Provider: r } = v();
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ f(r, { value: i, children: t });
|
|
85
85
|
};
|
|
86
86
|
export {
|
|
87
87
|
k as T,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as k, createElement as y } from "react";
|
|
3
3
|
import { IressIcon as j } from "../Icon/Icon.js";
|
|
4
4
|
import "../Icon/Icon.styles.js";
|
|
@@ -7,7 +7,7 @@ import { propagateTestid as h } from "../../helpers/utility/propagateTestid.js";
|
|
|
7
7
|
import { alert as w } from "./Alert.styles.js";
|
|
8
8
|
import { c as N } from "../../cx-DN21T1EH.js";
|
|
9
9
|
import { GlobalCSSClass as B } from "../../enums.js";
|
|
10
|
-
import { I as E } from "../../Button-
|
|
10
|
+
import { I as E } from "../../Button-D6AL0bia.js";
|
|
11
11
|
import { IressCloseButton as V } from "../Button/CloseButton/CloseButton.js";
|
|
12
12
|
import "../Inline/Inline.styles.js";
|
|
13
13
|
import { IressInline as $ } from "../Inline/Inline.js";
|
|
@@ -18,85 +18,85 @@ const F = {
|
|
|
18
18
|
success: "check",
|
|
19
19
|
warning: "exclamation-triangle"
|
|
20
20
|
}, Y = ({
|
|
21
|
-
actions:
|
|
21
|
+
actions: n,
|
|
22
22
|
children: I,
|
|
23
23
|
className: x,
|
|
24
24
|
defaultDismissed: g,
|
|
25
25
|
dismissed: b,
|
|
26
|
-
footer:
|
|
27
|
-
heading:
|
|
28
|
-
icon:
|
|
29
|
-
onDismiss:
|
|
30
|
-
status:
|
|
31
|
-
variant:
|
|
32
|
-
...
|
|
26
|
+
footer: c,
|
|
27
|
+
heading: o,
|
|
28
|
+
icon: a,
|
|
29
|
+
onDismiss: d,
|
|
30
|
+
status: r = "info",
|
|
31
|
+
variant: m,
|
|
32
|
+
...l
|
|
33
33
|
}) => {
|
|
34
|
-
const C = !!
|
|
34
|
+
const C = !!d, e = w({ status: r, variant: m }), p = !!n?.length, A = !!c || p, { value: v, setValue: S } = q({
|
|
35
35
|
component: "IressAlert",
|
|
36
36
|
defaultValue: g,
|
|
37
37
|
propName: "dismissed",
|
|
38
38
|
value: b
|
|
39
39
|
}), f = k(() => {
|
|
40
|
-
if (
|
|
40
|
+
if (a === !1)
|
|
41
41
|
return null;
|
|
42
|
-
const s =
|
|
43
|
-
return /* @__PURE__ */
|
|
42
|
+
const s = a ?? F[r];
|
|
43
|
+
return /* @__PURE__ */ t(
|
|
44
44
|
j,
|
|
45
45
|
{
|
|
46
46
|
name: s,
|
|
47
|
-
screenreaderText: `${
|
|
47
|
+
screenreaderText: `${r}: `,
|
|
48
48
|
fixedWidth: !0,
|
|
49
49
|
className: e.icon
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
}, [e.icon,
|
|
53
|
-
return v ? null : /* @__PURE__ */
|
|
52
|
+
}, [e.icon, a, r]);
|
|
53
|
+
return v ? null : /* @__PURE__ */ i(
|
|
54
54
|
u,
|
|
55
55
|
{
|
|
56
56
|
className: N(x, e.alert, B.Alert),
|
|
57
|
-
...
|
|
57
|
+
...l,
|
|
58
58
|
children: [
|
|
59
|
-
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
|
|
59
|
+
m !== "sidebar" && f,
|
|
60
|
+
/* @__PURE__ */ i("div", { className: e.wrapper, children: [
|
|
61
|
+
o && /* @__PURE__ */ t(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
64
|
className: e.heading,
|
|
65
|
-
"data-testid": h(
|
|
66
|
-
children: typeof
|
|
67
|
-
|
|
65
|
+
"data-testid": h(l["data-testid"], "heading"),
|
|
66
|
+
children: typeof o == "string" ? /* @__PURE__ */ i(u, { element: "h2", className: e.heading, children: [
|
|
67
|
+
m === "sidebar" && f,
|
|
68
68
|
" ",
|
|
69
|
-
|
|
70
|
-
] }) :
|
|
69
|
+
o
|
|
70
|
+
] }) : o
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
A && /* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ t("div", { className: e.children, children: I }),
|
|
74
|
+
A && /* @__PURE__ */ i(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
className: e.footer,
|
|
78
|
-
"data-testid": h(
|
|
78
|
+
"data-testid": h(l["data-testid"], "footer"),
|
|
79
79
|
children: [
|
|
80
|
-
p && /* @__PURE__ */
|
|
80
|
+
p && /* @__PURE__ */ t($, { gap: "sm", pb: "spacing.050", children: n?.map((s, T) => /* @__PURE__ */ y(
|
|
81
81
|
E,
|
|
82
82
|
{
|
|
83
83
|
...s,
|
|
84
84
|
className: N(s.className, e.action),
|
|
85
|
-
color: `colour.system.${
|
|
85
|
+
color: `colour.system.${r}.text`,
|
|
86
86
|
key: T
|
|
87
87
|
}
|
|
88
88
|
)) }),
|
|
89
|
-
|
|
89
|
+
c
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
92
|
)
|
|
93
93
|
] }),
|
|
94
|
-
C && /* @__PURE__ */
|
|
94
|
+
C && /* @__PURE__ */ t(
|
|
95
95
|
V,
|
|
96
96
|
{
|
|
97
97
|
className: e.dismiss,
|
|
98
98
|
onClick: (s) => {
|
|
99
|
-
|
|
99
|
+
d?.(s), S(!0);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
)
|
|
@@ -105,6 +105,5 @@ const F = {
|
|
|
105
105
|
);
|
|
106
106
|
};
|
|
107
107
|
export {
|
|
108
|
-
F as ALERT_ICONS,
|
|
109
108
|
Y as IressAlert
|
|
110
109
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { alert as
|
|
1
|
+
import { IressAlert as o } from "./Alert.js";
|
|
2
|
+
import { alert as f } from "./Alert.styles.js";
|
|
3
3
|
export {
|
|
4
|
-
o as
|
|
5
|
-
|
|
6
|
-
l as alert
|
|
4
|
+
o as IressAlert,
|
|
5
|
+
f as alert
|
|
7
6
|
};
|
|
@@ -3,7 +3,7 @@ import "../../cx-DN21T1EH.js";
|
|
|
3
3
|
import "./Autocomplete.styles.js";
|
|
4
4
|
import "../Popover/Popover.js";
|
|
5
5
|
import "../Popover/Popover.styles.js";
|
|
6
|
-
import "
|
|
6
|
+
import "../Popover/InputPopover/InputPopover.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../Popover/hooks/usePopover.js";
|
|
9
9
|
import "../Input/Input.js";
|
|
@@ -16,95 +16,30 @@ import "../../helpers/form/getFormControlValueAsStringIfDefined.js";
|
|
|
16
16
|
import "./hooks/useAutocompleteSearch.js";
|
|
17
17
|
import "../Icon/Icon.js";
|
|
18
18
|
import "./components/AutocompleteInstructions.js";
|
|
19
|
-
import {
|
|
20
|
-
import "../
|
|
21
|
-
import "../Alert/Alert.styles.js";
|
|
22
|
-
import "../Badge/Badge.styles.js";
|
|
19
|
+
import { a as R } from "../../Autocomplete-CLvWVHp6.js";
|
|
20
|
+
import "../RichSelect/SelectBody/SelectBody.styles.js";
|
|
23
21
|
import "../../enums.js";
|
|
24
|
-
import "../../Button-BXzmntRi.js";
|
|
25
|
-
import "../Button/CloseButton/CloseButton.js";
|
|
26
|
-
import "../ButtonGroup/ButtonGroup.styles.js";
|
|
27
|
-
import "../ButtonGroup/ButtonGroupProvider.js";
|
|
28
|
-
import "../Card/Card.styles.js";
|
|
29
|
-
import "../Checkbox/Checkbox.js";
|
|
30
|
-
import "../Checkbox/Checkbox.styles.js";
|
|
31
|
-
import "../CheckboxGroup/CheckboxGroup.js";
|
|
32
|
-
import "../CheckboxGroup/CheckboxGroup.styles.js";
|
|
33
|
-
import "../Col/Col.styles.js";
|
|
34
|
-
import "../Col/Col.js";
|
|
35
|
-
import "../Container/Container.styles.js";
|
|
36
|
-
import "../Container/Container.js";
|
|
37
|
-
import "../Divider/Divider.styles.js";
|
|
38
|
-
import "../Expander/Expander.styles.js";
|
|
39
|
-
import "../Label/Label.styles.js";
|
|
40
|
-
import "../Field/Field.styles.js";
|
|
41
|
-
import "../Icon/Icon.styles.js";
|
|
42
|
-
import "../Tooltip/Tooltip.styles.js";
|
|
43
|
-
import "../Field/FieldGroup/FieldGroup.styles.js";
|
|
44
|
-
import "../Hide/Hide.js";
|
|
45
|
-
import "../Image/Image.js";
|
|
46
|
-
import "../Image/Image.styles.js";
|
|
47
|
-
import "../Inline/Inline.styles.js";
|
|
48
|
-
import "../Inline/Inline.js";
|
|
49
|
-
import "../InputCurrency/InputCurrency.js";
|
|
50
|
-
import "../Link/Link.js";
|
|
51
|
-
import "../Link/Link.styles.js";
|
|
52
22
|
import "../Menu/Menu.js";
|
|
53
23
|
import "../Menu/Menu.styles.js";
|
|
24
|
+
import "../Divider/Divider.styles.js";
|
|
54
25
|
import "../Menu/MenuItem/MenuItem.js";
|
|
55
|
-
import "../
|
|
56
|
-
import "../
|
|
57
|
-
import "../Panel/Panel.js";
|
|
58
|
-
import "../Panel/Panel.styles.js";
|
|
59
|
-
import "../Placeholder/Placeholder.styles.js";
|
|
60
|
-
import "../Progress/Progress.styles.js";
|
|
61
|
-
import "../../index-DlGwAtoO.js";
|
|
62
|
-
import "../../ToasterProvider-XqpAGfRs.js";
|
|
63
|
-
import "../Toaster/Toaster.styles.js";
|
|
64
|
-
import "../Toaster/components/Toast/Toast.styles.js";
|
|
65
|
-
import "../Slideout/Slideout.styles.js";
|
|
66
|
-
import "../Slideout/SlideoutProvider.js";
|
|
67
|
-
import "react-dom";
|
|
68
|
-
import "../../typography--vGt_ztU.js";
|
|
69
|
-
import "../Radio/Radio.js";
|
|
70
|
-
import "../Radio/Radio.styles.js";
|
|
71
|
-
import "../RadioGroup/RadioGroup.js";
|
|
72
|
-
import "../RadioGroup/RadioGroup.styles.js";
|
|
73
|
-
import "../Readonly/Readonly.js";
|
|
74
|
-
import "../Readonly/Readonly.styles.js";
|
|
75
|
-
import "../Row/Row.styles.js";
|
|
76
|
-
import "../Row/Row.js";
|
|
77
|
-
import "../Select/Select.styles.js";
|
|
78
|
-
import "../Select/Select.js";
|
|
79
|
-
import "../Skeleton/Skeleton.styles.js";
|
|
80
|
-
import "../SkipLink/SkipLink.js";
|
|
81
|
-
import "../SkipLink/SkipLink.styles.js";
|
|
82
|
-
import "../Slider/Slider.js";
|
|
83
|
-
import "../Slider/Slider.styles.js";
|
|
84
|
-
import "../Spinner/Spinner.styles.js";
|
|
85
|
-
import "../Stack/Stack.styles.js";
|
|
86
|
-
import "../../TableProvider-D8SQKIG8.js";
|
|
87
|
-
import "../Table/Table.styles.js";
|
|
88
|
-
import "../TabSet/TabSetProvider.js";
|
|
89
|
-
import "../TabSet/TabSet.styles.js";
|
|
90
|
-
import "../TabSet/Tab/Tab.js";
|
|
91
|
-
import "../TabSet/Tab/Tab.styles.js";
|
|
92
|
-
import "../Tag/Tag.styles.js";
|
|
93
|
-
import "../Tag/TagInput/TagInput.js";
|
|
94
|
-
import "../CheckboxMark/CheckboxMark.styles.js";
|
|
95
|
-
import "../Toggle/Toggle.styles.js";
|
|
96
|
-
import "../../patterns/Form/Form.js";
|
|
97
|
-
import "../../patterns/Form/FormContext.js";
|
|
98
|
-
import "../../patterns/Form/FormValidationSummary/FormValidationSummary.js";
|
|
99
|
-
import "../../patterns/Form/HookForm/HookForm.js";
|
|
100
|
-
import "../../patterns/Loading/Loading.js";
|
|
101
|
-
import "../../patterns/Loading/LoadingSuspense.js";
|
|
102
|
-
import "../RichSelect/SelectBody/SelectBody.styles.js";
|
|
26
|
+
import "../Icon/Icon.styles.js";
|
|
27
|
+
import "../RichSelect/SelectHeading/SelectHeading.js";
|
|
103
28
|
import "../RichSelect/SelectLabel/SelectLabel.styles.js";
|
|
104
29
|
import "../RichSelect/SelectMenu/SelectMenu.js";
|
|
105
30
|
import "../RichSelect/SelectSearch/SelectSearch.styles.js";
|
|
106
31
|
import "../RichSelect/SelectSearchInput/SelectSearchInput.js";
|
|
107
32
|
import "../RichSelect/SelectTags/SelectTags.styles.js";
|
|
33
|
+
import "../../Button-D6AL0bia.js";
|
|
34
|
+
import "../Button/CloseButton/CloseButton.js";
|
|
35
|
+
import "../Tag/Tag.styles.js";
|
|
36
|
+
import "../Tag/TagInput/TagInput.js";
|
|
37
|
+
import "../Inline/Inline.styles.js";
|
|
38
|
+
import "../Inline/Inline.js";
|
|
39
|
+
import "../Readonly/Readonly.js";
|
|
40
|
+
import "../Readonly/Readonly.styles.js";
|
|
41
|
+
import "../Alert/Alert.js";
|
|
42
|
+
import "../Alert/Alert.styles.js";
|
|
108
43
|
export {
|
|
109
|
-
|
|
44
|
+
R as IressAutocomplete
|
|
110
45
|
};
|
|
@@ -2,7 +2,7 @@ import { useRef as f, useState as R, useCallback as p, useEffect as _, useMemo a
|
|
|
2
2
|
import { searchLabelValues as U } from "../../../helpers/label-value/searchLabelValues.js";
|
|
3
3
|
import { highlightQueryInLabelValue as I } from "../../../helpers/label-value/highlightQueryInLabelValue.js";
|
|
4
4
|
function V(e, n, u, c) {
|
|
5
|
-
var
|
|
5
|
+
var a = this, t = f(null), l = f(0), s = f(0), r = f(null), d = f([]), h = f(), m = f(), T = f(e), E = f(!0);
|
|
6
6
|
T.current = e;
|
|
7
7
|
var v = typeof window < "u", g = !n && n !== 0 && v;
|
|
8
8
|
if (typeof e != "function") throw new TypeError("Expected a function");
|
|
@@ -14,38 +14,39 @@ function V(e, n, u, c) {
|
|
|
14
14
|
};
|
|
15
15
|
}, []);
|
|
16
16
|
var M = L(function() {
|
|
17
|
-
var x = function(
|
|
17
|
+
var x = function(o) {
|
|
18
18
|
var i = d.current, y = h.current;
|
|
19
|
-
return d.current = h.current = null,
|
|
20
|
-
}, D = function(
|
|
21
|
-
g && cancelAnimationFrame(r.current), r.current = g ? requestAnimationFrame(
|
|
22
|
-
}, H = function(
|
|
19
|
+
return d.current = h.current = null, l.current = o, s.current = s.current || o, m.current = T.current.apply(y, i);
|
|
20
|
+
}, D = function(o, i) {
|
|
21
|
+
g && cancelAnimationFrame(r.current), r.current = g ? requestAnimationFrame(o) : setTimeout(o, i);
|
|
22
|
+
}, H = function(o) {
|
|
23
23
|
if (!E.current) return !1;
|
|
24
|
-
var i =
|
|
25
|
-
return !t.current || i >= n || i < 0 || S &&
|
|
26
|
-
}, Q = function(
|
|
27
|
-
return r.current = null, A && d.current ? x(
|
|
28
|
-
}, F = function
|
|
24
|
+
var i = o - t.current;
|
|
25
|
+
return !t.current || i >= n || i < 0 || S && o - l.current >= b;
|
|
26
|
+
}, Q = function(o) {
|
|
27
|
+
return r.current = null, A && d.current ? x(o) : (d.current = h.current = null, m.current);
|
|
28
|
+
}, F = function o() {
|
|
29
29
|
var i = Date.now();
|
|
30
|
-
if (w && s.current ===
|
|
30
|
+
if (w && s.current === l.current && N(), H(i)) return Q(i);
|
|
31
31
|
if (E.current) {
|
|
32
|
-
var y = n - (i - t.current), k = S ? Math.min(y, b - (i -
|
|
33
|
-
D(
|
|
32
|
+
var y = n - (i - t.current), k = S ? Math.min(y, b - (i - l.current)) : y;
|
|
33
|
+
D(o, k);
|
|
34
34
|
}
|
|
35
35
|
}, N = function() {
|
|
36
36
|
c && c({});
|
|
37
37
|
}, W = function() {
|
|
38
38
|
if (v || O) {
|
|
39
|
-
var
|
|
40
|
-
if (d.current = [].slice.call(arguments), h.current =
|
|
41
|
-
if (!r.current && E.current) return
|
|
39
|
+
var o = Date.now(), i = H(o);
|
|
40
|
+
if (d.current = [].slice.call(arguments), h.current = a, t.current = o, i) {
|
|
41
|
+
if (!r.current && E.current) return l.current = t.current, D(F, n), w ? x(t.current) : m.current;
|
|
42
42
|
if (S) return D(F, n), x(t.current);
|
|
43
43
|
}
|
|
44
44
|
return r.current || D(F, n), m.current;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
return W.cancel = function() {
|
|
48
|
-
|
|
48
|
+
var o = r.current;
|
|
49
|
+
o && (g ? cancelAnimationFrame(r.current) : clearTimeout(r.current)), l.current = 0, d.current = t.current = h.current = r.current = null, o && c && c({});
|
|
49
50
|
}, W.isPending = function() {
|
|
50
51
|
return !!r.current;
|
|
51
52
|
}, W.flush = function() {
|
|
@@ -58,13 +59,13 @@ function B(e, n) {
|
|
|
58
59
|
return e === n;
|
|
59
60
|
}
|
|
60
61
|
function C(e, n, u) {
|
|
61
|
-
var c = B,
|
|
62
|
-
|
|
62
|
+
var c = B, a = f(e), t = R({})[1], l = V(p(function(r) {
|
|
63
|
+
a.current = r, t({});
|
|
63
64
|
}, [t]), n, u, t), s = f(e);
|
|
64
|
-
return c(s.current, e) || (
|
|
65
|
+
return c(s.current, e) || (l(e), s.current = e), [a.current, l];
|
|
65
66
|
}
|
|
66
67
|
const G = 500, P = 1, j = (e) => e instanceof Error && e.message ? e.message : typeof e == "string" ? e : !0, z = () => {
|
|
67
|
-
const [e, n] = R(!1), [u, c] = R(!1), [
|
|
68
|
+
const [e, n] = R(!1), [u, c] = R(!1), [a, t] = R([]), [l, s] = R(!1), r = p(() => {
|
|
68
69
|
t([]), n(!1), c(!1), s(!1);
|
|
69
70
|
}, []), d = p(
|
|
70
71
|
(g, w) => {
|
|
@@ -89,8 +90,8 @@ const G = 500, P = 1, j = (e) => e instanceof Error && e.message ? e.message : t
|
|
|
89
90
|
return {
|
|
90
91
|
loading: e,
|
|
91
92
|
error: u,
|
|
92
|
-
results:
|
|
93
|
-
hasSearched:
|
|
93
|
+
results: a,
|
|
94
|
+
hasSearched: l,
|
|
94
95
|
reset: r,
|
|
95
96
|
updateWithResults: d,
|
|
96
97
|
updateWithError: h,
|
|
@@ -100,13 +101,13 @@ const G = 500, P = 1, j = (e) => e instanceof Error && e.message ? e.message : t
|
|
|
100
101
|
clearErrorState: v
|
|
101
102
|
};
|
|
102
103
|
}, J = (e, n) => {
|
|
103
|
-
const u = f(""), c = p((s) => u.current === s, []),
|
|
104
|
+
const u = f(""), c = p((s) => u.current === s, []), a = p((s) => {
|
|
104
105
|
u.current = s;
|
|
105
106
|
}, []), t = p(
|
|
106
107
|
async (s, r, d) => {
|
|
107
108
|
if (c(r)) return;
|
|
108
109
|
const h = ++n.current;
|
|
109
|
-
if (
|
|
110
|
+
if (a(r), r.length >= d) {
|
|
110
111
|
e.setLoadingState(!0), e.clearErrorState();
|
|
111
112
|
try {
|
|
112
113
|
const m = await s(r);
|
|
@@ -121,31 +122,31 @@ const G = 500, P = 1, j = (e) => e instanceof Error && e.message ? e.message : t
|
|
|
121
122
|
} else
|
|
122
123
|
e.reset();
|
|
123
124
|
},
|
|
124
|
-
[e, c,
|
|
125
|
-
),
|
|
125
|
+
[e, c, a, n]
|
|
126
|
+
), l = p(
|
|
126
127
|
(s, r, d) => {
|
|
127
128
|
if (!c(r))
|
|
128
|
-
if (
|
|
129
|
+
if (a(r), r.length >= d) {
|
|
129
130
|
e.setSearched(!0);
|
|
130
131
|
const h = U(r, s);
|
|
131
132
|
e.updateWithResults(h, r);
|
|
132
133
|
} else
|
|
133
134
|
e.reset();
|
|
134
135
|
},
|
|
135
|
-
[e, c,
|
|
136
|
+
[e, c, a]
|
|
136
137
|
);
|
|
137
138
|
return {
|
|
138
139
|
handleAsync: t,
|
|
139
|
-
handleSync:
|
|
140
|
+
handleSync: l
|
|
140
141
|
};
|
|
141
142
|
}, Z = ({
|
|
142
143
|
debounceThreshold: e = G,
|
|
143
144
|
initialOptions: n = [],
|
|
144
145
|
minSearchLength: u = P,
|
|
145
146
|
options: c = [],
|
|
146
|
-
query:
|
|
147
|
+
query: a = ""
|
|
147
148
|
}) => {
|
|
148
|
-
const t = z(),
|
|
149
|
+
const t = z(), l = f(0), s = J(t, l), [r] = C(a, e);
|
|
149
150
|
return _(() => {
|
|
150
151
|
if (typeof c == "function") {
|
|
151
152
|
s.handleAsync(
|
|
@@ -161,8 +162,8 @@ const G = 500, P = 1, j = (e) => e instanceof Error && e.message ? e.message : t
|
|
|
161
162
|
debouncedQuery: r,
|
|
162
163
|
error: t.error,
|
|
163
164
|
loading: t.loading,
|
|
164
|
-
shouldShowInstructions:
|
|
165
|
-
shouldShowDebounceWaiting:
|
|
165
|
+
shouldShowInstructions: a.length < u,
|
|
166
|
+
shouldShowDebounceWaiting: a.length >= u && r.length < u && !t.loading && !t.hasSearched,
|
|
166
167
|
shouldShowNoResults: t.hasSearched && !t.loading && t.results.length === 0 && r.length >= u,
|
|
167
168
|
results: r ? t.results : n ?? [],
|
|
168
169
|
stopSearch: t.reset
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as t } from "../../Autocomplete-CLvWVHp6.js";
|
|
2
|
+
import { autoComplete as m } from "./Autocomplete.styles.js";
|
|
3
|
+
import { useAutocompleteSearch as a } from "./hooks/useAutocompleteSearch.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
m as
|
|
5
|
+
t as IressAutocomplete,
|
|
6
|
+
m as autoComplete,
|
|
7
|
+
a as useAutocompleteSearch
|
|
6
8
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { propagateTestid as f } from "../../helpers/utility/propagateTestid.js";
|
|
3
|
-
import { c as a } from "../../
|
|
3
|
+
import { c as a } from "../../css-fGu_jDvv.js";
|
|
4
4
|
import { c as g } from "../../cx-DN21T1EH.js";
|
|
5
5
|
import { badge as b } from "./Badge.styles.js";
|
|
6
|
-
import { s as x } from "../../factory-
|
|
7
|
-
import { s as y } from "../../is-valid-prop-
|
|
6
|
+
import { s as x } from "../../factory-oPXoMw9H.js";
|
|
7
|
+
import { s as y } from "../../is-valid-prop-Ce0wiweq.js";
|
|
8
8
|
import { GlobalCSSClass as C } from "../../enums.js";
|
|
9
9
|
const w = ({
|
|
10
10
|
children: e,
|
|
@@ -4,12 +4,12 @@ import "../Spinner/Spinner.js";
|
|
|
4
4
|
import "../Spinner/Spinner.styles.js";
|
|
5
5
|
import "../../enums.js";
|
|
6
6
|
import "../ButtonGroup/ButtonGroup.styles.js";
|
|
7
|
-
import "../../
|
|
7
|
+
import "../../css-fGu_jDvv.js";
|
|
8
8
|
import "../../cx-DN21T1EH.js";
|
|
9
|
-
import "../../is-valid-prop-
|
|
9
|
+
import "../../is-valid-prop-Ce0wiweq.js";
|
|
10
10
|
import "../ButtonGroup/ButtonGroupProvider.js";
|
|
11
11
|
import "../ButtonGroup/hooks/useButtonGroupItem.js";
|
|
12
|
-
import { I as B } from "../../Button-
|
|
12
|
+
import { I as B } from "../../Button-D6AL0bia.js";
|
|
13
13
|
import "../Popover/hooks/usePopover.js";
|
|
14
14
|
export {
|
|
15
15
|
B as IressButton
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { I as e } from "../../../Button-
|
|
2
|
+
import { I as e } from "../../../Button-D6AL0bia.js";
|
|
3
3
|
import { IressIcon as a } from "../../Icon/Icon.js";
|
|
4
4
|
import "../../Icon/Icon.styles.js";
|
|
5
5
|
import { forwardRef as i } from "react";
|
|
@@ -4,7 +4,7 @@ import { useIdIfNeeded as b } from "../../hooks/useIdIfNeeded.js";
|
|
|
4
4
|
import { propagateTestid as v } from "../../helpers/utility/propagateTestid.js";
|
|
5
5
|
import { buttonGroup as G } from "./ButtonGroup.styles.js";
|
|
6
6
|
import { c as x } from "../../cx-DN21T1EH.js";
|
|
7
|
-
import { s as N } from "../../factory-
|
|
7
|
+
import { s as N } from "../../factory-oPXoMw9H.js";
|
|
8
8
|
import { ButtonGroupProvider as h } from "./ButtonGroupProvider.js";
|
|
9
9
|
import { GlobalCSSClass as B } from "../../enums.js";
|
|
10
10
|
const w = ({
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { useContext as
|
|
2
|
-
import { ButtonGroupContext as
|
|
3
|
-
const
|
|
4
|
-
value:
|
|
1
|
+
import { useContext as e } from "react";
|
|
2
|
+
import { ButtonGroupContext as i } from "../ButtonGroupProvider.js";
|
|
3
|
+
const p = ({
|
|
4
|
+
value: t
|
|
5
5
|
}) => {
|
|
6
|
-
const
|
|
7
|
-
if (!
|
|
8
|
-
const
|
|
6
|
+
const o = e(i);
|
|
7
|
+
if (!o) return;
|
|
8
|
+
const r = o.isActive(t);
|
|
9
9
|
return {
|
|
10
|
-
active:
|
|
10
|
+
active: r,
|
|
11
11
|
props: {
|
|
12
|
-
"aria-pressed":
|
|
12
|
+
"aria-pressed": r
|
|
13
13
|
},
|
|
14
14
|
toggle() {
|
|
15
|
-
|
|
16
|
-
e !== void 0 && ((r = t == null ? void 0 : t.toggle) == null || r.call(t, e, !o));
|
|
15
|
+
t !== void 0 && o?.toggle?.(t, !r);
|
|
17
16
|
}
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
19
|
export {
|
|
21
|
-
|
|
20
|
+
p as useButtonGroupItem
|
|
22
21
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as k, Fragment as P } from "react/jsx-runtime";
|
|
2
|
-
import { s as j } from "../../is-valid-prop-
|
|
2
|
+
import { s as j } from "../../is-valid-prop-Ce0wiweq.js";
|
|
3
3
|
import { card as M } from "./Card.styles.js";
|
|
4
|
-
import { c as e } from "../../
|
|
4
|
+
import { c as e } from "../../css-fGu_jDvv.js";
|
|
5
5
|
import { c as w } from "../../cx-DN21T1EH.js";
|
|
6
6
|
import { propagateTestid as r } from "../../helpers/utility/propagateTestid.js";
|
|
7
7
|
import { useMemo as B } from "react";
|