@iress-oss/ids-components 5.20.8 → 5.20.9
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/dist/AutocompleteNoResults-B9WjoXJo.js +10 -0
- package/dist/Badge-BqaFutTZ.js +40 -0
- package/dist/CheckboxGroup-WLxp9nIX.js +79 -0
- package/dist/CheckboxMark.types-CW7xyywE.js +17 -0
- package/dist/ClearButton-s0_b3pvJ.js +25 -0
- package/dist/ComboboxHiddenInput-DH3V3Dyg.js +27 -0
- package/dist/Expander-B3_k6HJq.js +55 -0
- package/dist/InputBase-BnBuTYZm.js +48 -0
- package/dist/LabelBase-CV1O4V_d.js +51 -0
- package/dist/Loading.module-DdUL1FMv.js +16 -0
- package/dist/LogoFromSrc-7oPJTvAO.js +50 -0
- package/dist/LongLoading-Dw8sUYlh.js +117 -0
- package/dist/MenuItem.module-guf-3YyL.js +24 -0
- package/dist/Placeholder-C1YrHg4w.js +35 -0
- package/dist/Popover.module-6flgSLob.js +10 -0
- package/dist/PopoverProvider-DgUOscvy.js +109 -0
- package/dist/Progress-BypnLSGF.js +35 -0
- package/dist/RadioGroup-DtA0WE3l.js +78 -0
- package/dist/SelectControl-D8Y9Up2f.js +28 -0
- package/dist/Skeleton-D_iuo6Xw.js +34 -0
- package/dist/SkipLink-rElTLeMe.js +15 -0
- package/dist/SlideoutProvider-DnaE67W-.js +125 -0
- package/dist/SliderTicks-BqTI-XhQ.js +47 -0
- package/dist/StartUpLoading-DFAMmjg3.js +68 -0
- package/dist/Tab-C08D4jxr.js +68 -0
- package/dist/TabSet.module-q8a7ksiF.js +13 -0
- package/dist/Table.module-DnaTe51E.js +32 -0
- package/dist/Toggle-CF22OY-P.js +66 -0
- package/dist/Tooltip-BxM_1Wtq.js +60 -0
- package/dist/ValidationBase-A2Ed7iem.js +29 -0
- package/dist/ValidationSummary-D6Wa4vOf.js +38 -0
- package/dist/chunk-efA98nb6.js +13 -0
- package/dist/classnames-BTnCYmAN.js +31 -0
- package/dist/components/Alert/Alert.js +2 -11
- package/dist/components/Alert/Alert.types.js +8 -8
- package/dist/components/Alert/index.js +3 -6
- package/dist/components/Autocomplete/Autocomplete.js +2 -45
- package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
- package/dist/components/Autocomplete/components/AutocompleteInstructions.js +10 -10
- package/dist/components/Autocomplete/components/AutocompleteNoResults.js +2 -5
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +2 -191
- package/dist/components/Autocomplete/index.js +3 -6
- package/dist/components/Badge/Badge.js +2 -49
- package/dist/components/Badge/Badge.types.js +14 -14
- package/dist/components/Badge/index.js +3 -7
- package/dist/components/Button/Button.js +2 -10
- package/dist/components/Button/Button.types.js +22 -20
- package/dist/components/Button/CloseButton/CloseButton.js +2 -7
- package/dist/components/Button/CloseButton/CloseButton.types.js +0 -1
- package/dist/components/Button/index.js +3 -11
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -72
- package/dist/components/ButtonGroup/ButtonGroup.types.js +0 -1
- package/dist/components/ButtonGroup/ButtonGroupProvider.js +26 -33
- package/dist/components/ButtonGroup/hooks/useButtonGroup.js +6 -6
- package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +2 -6
- package/dist/components/ButtonGroup/index.js +3 -6
- package/dist/components/Card/Card.js +34 -48
- package/dist/components/Card/Card.types.js +8 -5
- package/dist/components/Card/components/ButtonCard.js +29 -37
- package/dist/components/Card/components/LinkCard.js +28 -36
- package/dist/components/Card/helpers/composeIDSCard.js +18 -26
- package/dist/components/Card/helpers/composeIDSCardSlots.js +47 -32
- package/dist/components/Card/index.js +7 -15
- package/dist/components/Checkbox/Checkbox.js +2 -15
- package/dist/components/Checkbox/Checkbox.types.js +0 -1
- package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +12 -19
- package/dist/components/Checkbox/index.js +2 -4
- package/dist/components/CheckboxGroup/CheckboxGroup.js +2 -99
- package/dist/components/CheckboxGroup/CheckboxGroup.types.js +10 -10
- package/dist/components/CheckboxGroup/CheckboxGroupContext.js +5 -5
- package/dist/components/CheckboxGroup/index.js +3 -7
- package/dist/components/CheckboxMark/CheckboxMark.js +29 -40
- package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -16
- package/dist/components/CheckboxMark/index.js +3 -6
- package/dist/components/Col/Col.js +14 -33
- package/dist/components/Col/Col.types.js +67 -65
- package/dist/components/Col/index.js +3 -12
- package/dist/components/Combobox/Combobox.js +2 -48
- package/dist/components/Combobox/Combobox.types.js +0 -1
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +2 -46
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.types.js +0 -1
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +2 -8
- package/dist/components/Combobox/components/ComboboxResults.js +2 -41
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +2 -40
- package/dist/components/Combobox/hooks/useComboboxFlags.js +11 -14
- package/dist/components/Combobox/hooks/useComboboxInlineCompletion.js +39 -59
- package/dist/components/Combobox/index.js +2 -5
- package/dist/components/Container/Container.js +12 -21
- package/dist/components/Container/Container.types.js +6 -4
- package/dist/components/Container/index.js +3 -6
- package/dist/components/Divider/Divider.js +14 -21
- package/dist/components/Divider/Divider.types.js +6 -4
- package/dist/components/Divider/index.js +2 -5
- package/dist/components/Expander/Expander.js +2 -80
- package/dist/components/Expander/Expander.types.js +10 -6
- package/dist/components/Expander/index.js +3 -7
- package/dist/components/Field/Field.js +2 -71
- package/dist/components/Field/Field.types.js +0 -1
- package/dist/components/Field/FieldGroup/FieldGroup.js +2 -77
- package/dist/components/Field/FieldGroup/FieldGroup.types.js +0 -1
- package/dist/components/Field/components/FieldAppendToLabel.js +2 -43
- package/dist/components/Field/components/FieldLegend.js +9 -6
- package/dist/components/Field/helpers/getUniqueItemsByKey.js +4 -8
- package/dist/components/Field/index.js +2 -6
- package/dist/components/Filter/Filter.js +2 -45
- package/dist/components/Filter/Filter.types.js +0 -1
- package/dist/components/Filter/components/FilterLabel.js +6 -10
- package/dist/components/Filter/components/FilterResetButton.js +2 -39
- package/dist/components/Filter/components/FilterSearch.js +2 -39
- package/dist/components/Filter/hooks/useFilterFlags.js +15 -24
- package/dist/components/Filter/index.js +2 -4
- package/dist/components/Form/Form.js +2 -6
- package/dist/components/Form/Form.types.js +6 -4
- package/dist/components/Form/FormContext.js +5 -7
- package/dist/components/Form/FormField/FormField.js +2 -91
- package/dist/components/Form/FormField/FormField.types.js +6 -4
- package/dist/components/Form/FormField/FormFieldset.js +2 -81
- package/dist/components/Form/FormField/helpers/getErrorTypeMessage.js +9 -19
- package/dist/components/Form/FormField/helpers/transformCustomRulesToValidateRule.js +23 -33
- package/dist/components/Form/HookForm/HookForm.js +2 -12
- package/dist/components/Form/components/FormValidationSummary.js +22 -22
- package/dist/components/Form/hooks/useNoDefaultValueInForms.js +6 -13
- package/dist/components/Form/index.js +4 -13
- package/dist/components/HeadingWithDeprecatedFallback/HeadingWithDeprecatedFallback.js +12 -14
- package/dist/components/Hide/Hide.js +2 -7
- package/dist/components/Hide/Hide.types.js +8 -5
- package/dist/components/Hide/helpers/composeHideClasses.js +2 -40
- package/dist/components/Hide/index.js +3 -7
- package/dist/components/Icon/Icon.js +2 -40
- package/dist/components/Icon/Icon.types.js +35 -30
- package/dist/components/Icon/index.js +3 -15
- package/dist/components/Inline/Inline.js +2 -41
- package/dist/components/Inline/Inline.types.js +6 -4
- package/dist/components/Inline/index.js +3 -6
- package/dist/components/Input/ClearButton/ClearButton.js +2 -20
- package/dist/components/Input/Input.js +2 -14
- package/dist/components/Input/Input.types.js +15 -15
- package/dist/components/Input/InputBase/InputBase.js +2 -9
- package/dist/components/Input/InputBase/InputBase.types.js +0 -1
- package/dist/components/Input/index.js +3 -7
- package/dist/components/InputCurrency/InputCurrency.js +2 -8
- package/dist/components/InputCurrency/InputCurrency.types.js +0 -1
- package/dist/components/InputCurrency/index.js +2 -4
- package/dist/components/Label/Label.js +9 -6
- package/dist/components/Label/Label.types.js +0 -1
- package/dist/components/Label/LabelBase/LabelBase.js +2 -70
- package/dist/components/Label/LabelBase/LabelBase.types.js +0 -1
- package/dist/components/Label/index.js +2 -4
- package/dist/components/Menu/Menu.js +49 -63
- package/dist/components/Menu/Menu.types.js +17 -10
- package/dist/components/Menu/MenuDivider/MenuDivider.js +2 -39
- package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -8
- package/dist/components/Menu/MenuItem/MenuItem.js +2 -11
- package/dist/components/Menu/MenuItem/MenuItem.types.js +10 -6
- package/dist/components/Menu/MenuItem/hooks/useMenuItemAria.js +11 -16
- package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +44 -46
- package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +17 -14
- package/dist/components/Menu/MenuItem/hooks/useMenuItemInteractions.js +53 -64
- package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +8 -8
- package/dist/components/Menu/MenuProvider.js +45 -66
- package/dist/components/Menu/MenuText/MenuText.js +2 -40
- package/dist/components/Menu/helpers/mapMenuItems.js +2 -47
- package/dist/components/Menu/hooks/useMenu.js +6 -6
- package/dist/components/Menu/hooks/useMenuAria.js +13 -18
- package/dist/components/Menu/hooks/useMenuComposite.js +7 -7
- package/dist/components/Menu/hooks/useMenuRole.js +11 -12
- package/dist/components/Menu/hooks/useMenuStyles.js +2 -26
- package/dist/components/Menu/index.js +10 -29
- package/dist/components/Modal/Modal.js +2 -16
- package/dist/components/Modal/Modal.types.js +9 -4
- package/dist/components/Modal/ModalProvider.js +26 -31
- package/dist/components/Modal/hooks/useIDSProvidedModal.js +12 -12
- package/dist/components/Modal/hooks/useModal.js +11 -19
- package/dist/components/Modal/index.js +5 -11
- package/dist/components/Navbar/Navbar.js +2 -13
- package/dist/components/Navbar/Navbar.types.js +6 -4
- package/dist/components/Navbar/components/HomeLinkContent.js +2 -6
- package/dist/components/Navbar/components/LogoFromSrc.js +2 -6
- package/dist/components/Navbar/components/NavbarLogo.js +2 -8
- package/dist/components/Navbar/index.js +3 -6
- package/dist/components/Panel/Panel.js +21 -35
- package/dist/components/Panel/Panel.types.js +12 -11
- package/dist/components/Panel/index.js +3 -8
- package/dist/components/Placeholder/Placeholder.js +2 -42
- package/dist/components/Placeholder/Placeholder.types.js +0 -1
- package/dist/components/Placeholder/index.js +2 -4
- package/dist/components/Popover/InputPopover/InputPopover.js +51 -87
- package/dist/components/Popover/InputPopover/InputPopover.types.js +0 -1
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +50 -58
- package/dist/components/Popover/InputPopover/InputPopoverProvider.js +86 -107
- package/dist/components/Popover/Popover.js +59 -97
- package/dist/components/Popover/Popover.types.js +14 -15
- package/dist/components/Popover/PopoverProvider.js +2 -15
- package/dist/components/Popover/components/NestedPopoverActivator.js +9 -9
- package/dist/components/Popover/components/PopoverActivator.js +63 -81
- package/dist/components/Popover/components/PopoverContent.js +51 -58
- package/dist/components/Popover/helpers/composeFloatingProps.js +42 -33
- package/dist/components/Popover/helpers/composePopoverWidth.js +7 -4
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +23 -29
- package/dist/components/Popover/helpers/hasFocus.js +7 -7
- package/dist/components/Popover/helpers/waitUntilTrue.js +11 -11
- package/dist/components/Popover/hooks/usePopover.js +6 -6
- package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +23 -32
- package/dist/components/Popover/hooks/usePopoverAria.js +12 -17
- package/dist/components/Popover/hooks/usePopoverImperativeHandle.js +20 -24
- package/dist/components/Popover/hooks/usePopoverItem.js +20 -16
- package/dist/components/Popover/hooks/usePopoverNavigation.js +32 -31
- package/dist/components/Popover/hooks/usePopoverState.js +21 -28
- package/dist/components/Popover/index.js +5 -13
- package/dist/components/Progress/Progress.js +2 -48
- package/dist/components/Progress/Progress.types.js +0 -1
- package/dist/components/Progress/index.js +2 -4
- package/dist/components/Provider/Provider.js +2 -38
- package/dist/components/Provider/index.js +2 -4
- package/dist/components/Radio/Radio.js +2 -11
- package/dist/components/Radio/Radio.types.js +0 -1
- package/dist/components/Radio/helpers/mapRadioGroupOptions.js +12 -19
- package/dist/components/Radio/index.js +2 -4
- package/dist/components/RadioGroup/RadioGroup.js +2 -98
- package/dist/components/RadioGroup/RadioGroup.types.js +11 -11
- package/dist/components/RadioGroup/RadioGroupContext.js +5 -5
- package/dist/components/RadioGroup/index.js +3 -8
- package/dist/components/Readonly/Readonly.js +2 -43
- package/dist/components/Readonly/Readonly.types.js +0 -1
- package/dist/components/Readonly/index.js +2 -4
- package/dist/components/RichSelect/RichSelect.js +2 -42
- package/dist/components/RichSelect/RichSelect.types.js +0 -1
- package/dist/components/RichSelect/SelectBody/SelectBody.js +2 -56
- package/dist/components/RichSelect/SelectBody/SelectBody.types.js +0 -1
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +2 -63
- package/dist/components/RichSelect/SelectCreate/SelectCreate.types.js +0 -1
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +2 -40
- package/dist/components/RichSelect/SelectHeading/SelectHeading.types.js +0 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +2 -12
- package/dist/components/RichSelect/SelectLabel/SelectLabel.types.js +0 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +2 -44
- package/dist/components/RichSelect/SelectMenu/SelectMenu.types.js +0 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +2 -39
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +2 -39
- package/dist/components/RichSelect/SelectSearch/SelectSearch.types.js +0 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +2 -8
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.types.js +0 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +2 -45
- package/dist/components/RichSelect/SelectTags/SelectTags.types.js +0 -1
- package/dist/components/RichSelect/components/SelectActivator.js +2 -7
- package/dist/components/RichSelect/components/SelectHiddenInput.js +18 -29
- package/dist/components/RichSelect/components/SelectOptions.js +2 -40
- package/dist/components/RichSelect/hooks/useRichSelectState.js +15 -17
- package/dist/components/RichSelect/index.js +3 -16
- package/dist/components/Row/Row.js +2 -41
- package/dist/components/Row/Row.types.js +6 -4
- package/dist/components/Row/index.js +3 -6
- package/dist/components/Select/Select.js +2 -14
- package/dist/components/Select/Select.types.js +0 -1
- package/dist/components/Select/SelectOption/SelectOption.js +8 -8
- package/dist/components/Select/components/SelectControl.js +2 -9
- package/dist/components/Select/components/SelectReadonly.js +2 -40
- package/dist/components/Select/helpers/mapSelectOptions.js +2 -21
- package/dist/components/Select/helpers/nodesToSelectOptions.js +2 -9
- package/dist/components/Select/index.js +3 -9
- package/dist/components/Skeleton/Skeleton.js +2 -44
- package/dist/components/Skeleton/Skeleton.types.js +10 -6
- package/dist/components/Skeleton/index.js +3 -7
- package/dist/components/SkipLink/SkipLink.js +2 -30
- package/dist/components/SkipLink/SkipLink.types.js +0 -1
- package/dist/components/SkipLink/index.js +2 -4
- package/dist/components/Slideout/Slideout.js +2 -18
- package/dist/components/Slideout/Slideout.types.js +14 -14
- package/dist/components/Slideout/SlideoutProvider.js +2 -8
- package/dist/components/Slideout/components/SlideoutInner.js +2 -8
- package/dist/components/Slideout/hooks/useIDSProvidedSlideout.js +12 -12
- package/dist/components/Slideout/hooks/useSlideout.js +11 -19
- package/dist/components/Slideout/index.js +5 -16
- package/dist/components/Slider/Slider.js +2 -12
- package/dist/components/Slider/Slider.types.js +0 -1
- package/dist/components/Slider/components/SliderTicks.js +2 -10
- package/dist/components/Slider/index.js +2 -4
- package/dist/components/Spinner/Spinner.js +2 -6
- package/dist/components/Spinner/Spinner.types.js +0 -1
- package/dist/components/Spinner/index.js +2 -4
- package/dist/components/Stack/Stack.js +15 -26
- package/dist/components/Stack/Stack.types.js +6 -4
- package/dist/components/Stack/index.js +3 -6
- package/dist/components/TabSet/Tab/Tab.js +2 -100
- package/dist/components/TabSet/Tab/Tab.types.js +0 -1
- package/dist/components/TabSet/TabSet.js +37 -58
- package/dist/components/TabSet/TabSet.types.js +10 -6
- package/dist/components/TabSet/TabSetProvider.js +45 -49
- package/dist/components/TabSet/components/TabSetItem.js +24 -44
- package/dist/components/TabSet/helpers/mapTabs.js +2 -33
- package/dist/components/TabSet/hooks/useTabSetItems.js +5 -5
- package/dist/components/TabSet/index.js +21 -11
- package/dist/components/Table/Table.js +2 -18
- package/dist/components/Table/Table.types.js +22 -22
- package/dist/components/Table/TableBody/TableBody.js +2 -125
- package/dist/components/Table/TableBody/TableBody.types.js +0 -1
- package/dist/components/Table/TableContext.js +9 -9
- package/dist/components/Table/TableFormattedValue/TableFormattedValue.js +11 -17
- package/dist/components/Table/TableFormattedValue/TableFormattedValue.types.js +0 -1
- package/dist/components/Table/TableProvider.js +31 -38
- package/dist/components/Table/components/TableBodyCell.js +16 -30
- package/dist/components/Table/components/TableEmpty.js +15 -11
- package/dist/components/Table/components/TableHeader.js +2 -8
- package/dist/components/Table/components/TableHeaderCell.js +2 -8
- package/dist/components/Table/components/TableRows.js +29 -48
- package/dist/components/Table/components/TableSortButton.js +2 -7
- package/dist/components/Table/helpers/composeIDSTableColumnDefs.js +29 -41
- package/dist/components/Table/helpers/composeIDSTableInitialSorting.js +6 -9
- package/dist/components/Table/helpers/findColumnByKey.js +4 -4
- package/dist/components/Table/helpers/getFormatFromValue.js +7 -10
- package/dist/components/Table/helpers/hasColumns.js +4 -4
- package/dist/components/Table/hooks/useIDSTableColumnSort.js +18 -23
- package/dist/components/Table/hooks/useIDSTableColumnStyles.js +21 -23
- package/dist/components/Table/hooks/useTable.js +5 -5
- package/dist/components/Table/index.js +4 -15
- package/dist/components/Tag/Tag.js +2 -8
- package/dist/components/Tag/Tag.types.js +0 -1
- package/dist/components/Tag/TagInput/TagInput.js +2 -8
- package/dist/components/Tag/TagInput/TagInput.types.js +0 -1
- package/dist/components/Tag/components/TagListInput/TagListInput.js +2 -8
- package/dist/components/Tag/components/TagListInput/TagListInput.types.js +0 -1
- package/dist/components/Tag/index.js +2 -5
- package/dist/components/Text/Text.js +19 -34
- package/dist/components/Text/Text.types.js +18 -18
- package/dist/components/Text/index.js +3 -6
- package/dist/components/Toaster/Toast/Toast.js +2 -13
- package/dist/components/Toaster/Toast/Toast.types.js +12 -9
- package/dist/components/Toaster/Toast/ToastAnimated.js +2 -9
- package/dist/components/Toaster/Toast/ToastIcon.js +2 -6
- package/dist/components/Toaster/Toaster.js +2 -11
- package/dist/components/Toaster/Toaster.types.js +23 -25
- package/dist/components/Toaster/ToasterProvider.js +2 -7
- package/dist/components/Toaster/hooks/useToaster.js +2 -26
- package/dist/components/Toaster/index.js +4 -17
- package/dist/components/Toggle/Toggle.js +2 -102
- package/dist/components/Toggle/Toggle.types.js +10 -10
- package/dist/components/Toggle/index.js +3 -7
- package/dist/components/Tooltip/Tooltip.js +2 -77
- package/dist/components/Tooltip/Tooltip.types.js +0 -1
- package/dist/components/Tooltip/index.js +2 -4
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +2 -51
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.types.js +0 -1
- package/dist/components/ValidationMessage/ValidationLink/ValidationLink.js +15 -21
- package/dist/components/ValidationMessage/ValidationLink/ValidationLink.types.js +0 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +11 -8
- package/dist/components/ValidationMessage/ValidationMessage.types.js +0 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +2 -69
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.types.js +0 -1
- package/dist/components/ValidationMessage/index.js +4 -8
- package/dist/constants-C4s0aMXs.js +161 -0
- package/dist/constants.js +2 -193
- package/dist/enums.js +42 -22
- package/dist/floating-ui.react-Dj2ev6bJ.js +3098 -0
- package/dist/fuzzysort-BZ6Yv-YR.js +377 -0
- package/dist/helpers/dom/closestCrossShadow.js +19 -24
- package/dist/helpers/dom/domUtils.js +10 -11
- package/dist/helpers/dom/focusableElements.js +7 -9
- package/dist/helpers/dom/getActiveElement.js +7 -7
- package/dist/helpers/dom/hasShadowDom.js +4 -4
- package/dist/helpers/form/getFormControlValueAsString.js +4 -4
- package/dist/helpers/form/getFormControlValueAsStringIfDefined.js +6 -7
- package/dist/helpers/form/getValueAsEvent.js +6 -6
- package/dist/helpers/form/isValidFormInputElement.js +4 -4
- package/dist/helpers/formatting/capitalizeFirstLetter.js +4 -4
- package/dist/helpers/formatting/formatCurrency.js +14 -21
- package/dist/helpers/formatting/formatDate.js +16 -22
- package/dist/helpers/formatting/formatDateTime.js +49 -54
- package/dist/helpers/formatting/formatObjectKey.js +4 -4
- package/dist/helpers/formatting/formatPercentage.js +6 -6
- package/dist/helpers/formatting/stringReplacer.js +8 -8
- package/dist/helpers/formatting/toArray.js +4 -4
- package/dist/helpers/formatting/toCSSLengthValue.js +6 -6
- package/dist/helpers/label-value/composeLabelValueDescriptor.js +9 -12
- package/dist/helpers/label-value/getQueryRangeExclusive.js +10 -13
- package/dist/helpers/label-value/getValueFromLabelValues.js +7 -7
- package/dist/helpers/label-value/highlightQueryInLabel.js +7 -6
- package/dist/helpers/label-value/highlightQueryInLabelValue.js +8 -8
- package/dist/helpers/label-value/searchLabelValues.js +12 -11
- package/dist/helpers/responsive/getResponsiveLayoutModifiers.js +8 -10
- package/dist/helpers/responsive/getResponsivePaddingClasses.js +6 -10
- package/dist/helpers/transition/getTransitionDuration.js +5 -7
- package/dist/helpers/transition/timeStringToNumber.js +4 -4
- package/dist/helpers/utility/generateScopedName.js +8 -9
- package/dist/helpers/utility/idsLogger.js +5 -9
- package/dist/helpers/utility/propagateTestid.js +4 -4
- package/dist/hooks/index.js +5 -11
- package/dist/hooks/useAriaRelationship.js +20 -35
- package/dist/hooks/useBreakpoint.js +16 -16
- package/dist/hooks/useControlledState.js +35 -53
- package/dist/hooks/useIdIfNeeded.js +7 -7
- package/dist/hooks/useResponsiveProps.js +25 -25
- package/dist/index.esm-BCkAygZA.js +169 -0
- package/dist/interfaces.js +0 -1
- package/dist/lib-CUMSFn3v.js +1415 -0
- package/dist/main-CTy1XcUn.js +4604 -0
- package/dist/main.js +88 -336
- package/dist/patterns/Loading/Loading.js +2 -8
- package/dist/patterns/Loading/LoadingSuspense.js +2 -7
- package/dist/patterns/Loading/components/ComponentLoading.js +2 -10
- package/dist/patterns/Loading/components/DefaultLoading.js +2 -9
- package/dist/patterns/Loading/components/LongLoading.js +2 -132
- package/dist/patterns/Loading/components/PageLoading.js +2 -14
- package/dist/patterns/Loading/components/StartUpLoading.js +2 -107
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -9
- package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +25 -25
- package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +26 -23
- package/dist/patterns/Loading/hooks/useShowIndicator.js +18 -19
- package/dist/patterns/Loading/hooks/useSuspenseResource.js +19 -26
- package/dist/patterns/Loading/index.js +2 -5
- package/dist/style.css +2 -1
- package/dist/types.js +0 -1
- package/dist/useAutocompleteSearch-CBgqGiKn.js +179 -0
- package/dist/useIDSButtonGroupItem-BkzYQzAi.js +21 -0
- package/dist/useMenuStyles-cry3mes_.js +20 -0
- package/package.json +15 -15
- package/dist/AutocompleteNoResults-B60rzwfa.js +0 -12
- package/dist/ComboboxHiddenInput-BUswpU00.js +0 -32
- package/dist/FieldAppendToLabel-BK8cAMZT.js +0 -77
- package/dist/InputBase-B6gEHXZ7.js +0 -56
- package/dist/Loading.module-BXP_0EH0.js +0 -13
- package/dist/LoadingSuspense-CuQm3zqO.js +0 -5740
- package/dist/LogoFromSrc-BvialtyP.js +0 -59
- package/dist/MenuItem.module-BFPHZtJl.js +0 -24
- package/dist/Popover.module-oIsv6lht.js +0 -11
- package/dist/PopoverProvider-BMBTLkRr.js +0 -142
- package/dist/SelectControl-Bf6qXlwP.js +0 -47
- package/dist/SlideoutProvider-CQh140HM.js +0 -200
- package/dist/SliderTicks-DRFLh0Rw.js +0 -74
- package/dist/TabSet.module-Dks7jQfN.js +0 -13
- package/dist/Table.module-BARl9Jy6.js +0 -32
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/floating-ui.react-DfIjfJIq.js +0 -3503
- package/dist/fuzzysort-BNka47rs.js +0 -395
- package/dist/index-BaVtNOfa.js +0 -1693
- package/dist/index-DLnR8XTt.js +0 -47
- package/dist/index-cbHCAGLB.js +0 -40
- package/dist/index.esm-CL8gh5wr.js +0 -192
- package/dist/useIDSButtonGroupItem-DXJpvTGd.js +0 -29
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { n as e } from "./chunk-efA98nb6.js";
|
|
2
|
+
import { t } from "./classnames-BTnCYmAN.js";
|
|
3
|
+
import { GlobalCSSClass as n } from "./enums.js";
|
|
4
|
+
import { propagateTestid as r } from "./helpers/utility/propagateTestid.js";
|
|
5
|
+
import { ButtonCssClass as i } from "./components/Button/Button.types.js";
|
|
6
|
+
import { IressCheckboxMark as a } from "./components/CheckboxMark/CheckboxMark.js";
|
|
7
|
+
import { ToggleLayout as o } from "./components/Toggle/Toggle.types.js";
|
|
8
|
+
import { forwardRef as s, useEffect as c, useId as l, useState as u } from "react";
|
|
9
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
+
//#region src/components/Toggle/Toggle.module.scss
|
|
11
|
+
var p = "ids-toggle--toggle-base-v5209", m = "ids-toggle--checkbox-mark-v5209", h = "ids-toggle--toggle-button-v5209", g = "ids-toggle--button-checked-v5209", _ = "ids-toggle--toggle-button-container-v5209", v = "ids-toggle--label-v5209", y = "ids-toggle--layout__inline-v5209", b = "ids-toggle--layout__stack-v5209", x = {
|
|
12
|
+
toggleBase: p,
|
|
13
|
+
checkboxMark: m,
|
|
14
|
+
toggleButton: h,
|
|
15
|
+
buttonChecked: g,
|
|
16
|
+
toggleButtonContainer: _,
|
|
17
|
+
label: v,
|
|
18
|
+
layout__inline: y,
|
|
19
|
+
"layout__inline-reverse": "ids-toggle--layout__inline-reverse-v5209",
|
|
20
|
+
"layout__inline-between": "ids-toggle--layout__inline-between-v5209",
|
|
21
|
+
layout__stack: b
|
|
22
|
+
}, S = /* @__PURE__ */ e(t(), 1), C = ({ hiddenLabel: e, children: t, "data-testid": i, ...a }) => /* @__PURE__ */ d("span", {
|
|
23
|
+
...a,
|
|
24
|
+
className: (0, S.default)(x.label, { [n.SROnly]: e }),
|
|
25
|
+
"data-testid": r(i, "label"),
|
|
26
|
+
children: t
|
|
27
|
+
}), w = s(({ checked: e = !1, hiddenLabel: t, children: n, layout: o = "inline", className: s, onChange: p, "data-testid": m, ...h }, g) => {
|
|
28
|
+
let [_, v] = u(e), y = `toggleLabel--${l()}`, b = {
|
|
29
|
+
hiddenLabel: t,
|
|
30
|
+
id: y,
|
|
31
|
+
"data-testid": m
|
|
32
|
+
}, w = (e) => {
|
|
33
|
+
v(!_), p?.(!_, e);
|
|
34
|
+
};
|
|
35
|
+
return c(() => {
|
|
36
|
+
let t = setTimeout(() => v(e), 0);
|
|
37
|
+
return () => clearTimeout(t);
|
|
38
|
+
}, [e, p]), /* @__PURE__ */ f("div", {
|
|
39
|
+
"data-testid": m,
|
|
40
|
+
...h,
|
|
41
|
+
className: (0, S.default)(s, x.toggleBase, x[`layout__${o}`]),
|
|
42
|
+
ref: g,
|
|
43
|
+
children: [/* @__PURE__ */ d(C, {
|
|
44
|
+
...b,
|
|
45
|
+
children: n
|
|
46
|
+
}), /* @__PURE__ */ d("div", {
|
|
47
|
+
className: x.toggleButtonContainer,
|
|
48
|
+
children: /* @__PURE__ */ d("button", {
|
|
49
|
+
className: (0, S.default)(i.Base, x.toggleButton, { [x.buttonChecked]: _ }),
|
|
50
|
+
role: "switch",
|
|
51
|
+
type: "button",
|
|
52
|
+
"aria-checked": _,
|
|
53
|
+
onClick: w,
|
|
54
|
+
"aria-labelledby": y,
|
|
55
|
+
"data-testid": r(m, "button__button"),
|
|
56
|
+
children: /* @__PURE__ */ d(a, {
|
|
57
|
+
className: (0, S.default)(x.checkboxMark, { "visibility-hidden": !_ }),
|
|
58
|
+
checked: _
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
})]
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
w.displayName = "IressToggle", w.Layout = o;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { w as t };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { n as e } from "./chunk-efA98nb6.js";
|
|
2
|
+
import { t } from "./classnames-BTnCYmAN.js";
|
|
3
|
+
import { FloatingUIAlign as n } from "./enums.js";
|
|
4
|
+
import { propagateTestid as r } from "./helpers/utility/propagateTestid.js";
|
|
5
|
+
import { idsLogger as i } from "./helpers/utility/idsLogger.js";
|
|
6
|
+
import { C as a, S as o, d as s, g as c, h as l, m as u, u as d, w as f, x as p, y as m } from "./floating-ui.react-Dj2ev6bJ.js";
|
|
7
|
+
import { toArray as h } from "./helpers/formatting/toArray.js";
|
|
8
|
+
import { focusableElements as g } from "./helpers/dom/focusableElements.js";
|
|
9
|
+
import { Fragment as _, useEffect as v, useState as y } from "react";
|
|
10
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
11
|
+
var S = {
|
|
12
|
+
tooltip: "ids-tooltip-v5209",
|
|
13
|
+
content: "ids-tooltip--content-v5209"
|
|
14
|
+
}, C = /* @__PURE__ */ e(t(), 1), w = ({ children: e, className: t, align: n = "top", delay: w = 500, open: T = !1, tooltipText: E, "data-testid": D, ...O }) => {
|
|
15
|
+
let k = (0, C.default)(t, { [S.tooltip]: !0 }), A = n === "auto", [j, M] = y(T), { refs: N, floatingStyles: P, context: F } = s({
|
|
16
|
+
placement: A ? void 0 : n,
|
|
17
|
+
open: j,
|
|
18
|
+
onOpenChange: M,
|
|
19
|
+
middleware: [
|
|
20
|
+
a(5),
|
|
21
|
+
A ? p() : o(),
|
|
22
|
+
f()
|
|
23
|
+
]
|
|
24
|
+
}), { getReferenceProps: I, getFloatingProps: L } = c([
|
|
25
|
+
l(F, {
|
|
26
|
+
move: !1,
|
|
27
|
+
delay: {
|
|
28
|
+
open: w,
|
|
29
|
+
close: 500
|
|
30
|
+
}
|
|
31
|
+
}),
|
|
32
|
+
u(F),
|
|
33
|
+
d(F),
|
|
34
|
+
m(F, { role: "tooltip" })
|
|
35
|
+
]);
|
|
36
|
+
return v(() => {
|
|
37
|
+
!e || !N.reference.current || g(N.reference.current).length > 0 || i("IressTooltip: The content that activates the tooltip is not focusable,\n which is a failure of WCAG Level AA Success Criterion 1.4.13 - Content on Hover or Focus.\n To fix this warning, change the activator to either IressButton, IressMenuItem or another focusable component.", "warn");
|
|
38
|
+
}, [e, N.reference]), /* @__PURE__ */ x("div", {
|
|
39
|
+
className: k,
|
|
40
|
+
...O,
|
|
41
|
+
"data-testid": D,
|
|
42
|
+
children: [/* @__PURE__ */ b("div", {
|
|
43
|
+
className: S.activator,
|
|
44
|
+
"data-testid": r(D, "activator"),
|
|
45
|
+
ref: N.setReference,
|
|
46
|
+
...I(),
|
|
47
|
+
children: e
|
|
48
|
+
}), j && /* @__PURE__ */ b("div", {
|
|
49
|
+
className: S.content,
|
|
50
|
+
style: P,
|
|
51
|
+
"data-testid": r(D, "tooltip-text"),
|
|
52
|
+
ref: N.setFloating,
|
|
53
|
+
...L(),
|
|
54
|
+
children: h(E).map((e, t, n) => /* @__PURE__ */ x(_, { children: [e, t < n.length - 1 && /* @__PURE__ */ b("br", {})] }, t))
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
w.Align = n;
|
|
59
|
+
//#endregion
|
|
60
|
+
export { w as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { n as e } from "./chunk-efA98nb6.js";
|
|
2
|
+
import { t } from "./classnames-BTnCYmAN.js";
|
|
3
|
+
import { GlobalCSSClass as n } from "./enums.js";
|
|
4
|
+
import { capitalizeFirstLetter as r } from "./helpers/formatting/capitalizeFirstLetter.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
var o = {
|
|
7
|
+
validationMessage: "ids-validation-message-v5209",
|
|
8
|
+
prefix: "ids-validation-message--prefix-v5209",
|
|
9
|
+
message: "ids-validation-message--message-v5209",
|
|
10
|
+
danger: "ids-validation-message--danger-v5209",
|
|
11
|
+
warning: "ids-validation-message--warning-v5209",
|
|
12
|
+
success: "ids-validation-message--success-v5209",
|
|
13
|
+
info: "ids-validation-message--info-v5209"
|
|
14
|
+
}, s = /* @__PURE__ */ e(t(), 1), c = ({ prefix: e, status: t = "danger" }) => e || `${t === "danger" ? "Error" : r(t)}: `, l = ({ as: e = "div", children: t, className: r, prefix: l, status: u = "danger", visiblePrefix: d, ...f }) => /* @__PURE__ */ a(e, {
|
|
15
|
+
...f,
|
|
16
|
+
className: (0, s.default)(r, o.validationMessage, o[u], "iress-u-text", `iress--${u}`),
|
|
17
|
+
children: [/* @__PURE__ */ i("div", {
|
|
18
|
+
className: (0, s.default)(o.prefix, { [n.SROnly]: !d }),
|
|
19
|
+
children: /* @__PURE__ */ i(c, {
|
|
20
|
+
prefix: l,
|
|
21
|
+
status: u
|
|
22
|
+
})
|
|
23
|
+
}), /* @__PURE__ */ i("div", {
|
|
24
|
+
className: o.message,
|
|
25
|
+
children: t
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { l as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { n as e } from "./chunk-efA98nb6.js";
|
|
2
|
+
import { t } from "./classnames-BTnCYmAN.js";
|
|
3
|
+
import { propagateTestid as n } from "./helpers/utility/propagateTestid.js";
|
|
4
|
+
import { useIdIfNeeded as r } from "./hooks/useIdIfNeeded.js";
|
|
5
|
+
import { IressValidationMessage as i } from "./components/ValidationMessage/ValidationMessage.js";
|
|
6
|
+
import { IressValidationLink as a } from "./components/ValidationMessage/ValidationLink/ValidationLink.js";
|
|
7
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
8
|
+
var s = { validationSummary: "ids-validation-summary-v5209" }, c = /* @__PURE__ */ e(t(), 1), l = ({ children: e, "data-testid": t, linkToTarget: n, prefix: r, status: s, visiblePrefix: c }) => n ? /* @__PURE__ */ o(a, {
|
|
9
|
+
linkToTarget: n,
|
|
10
|
+
status: s,
|
|
11
|
+
prefix: r,
|
|
12
|
+
visiblePrefix: c,
|
|
13
|
+
"data-testid": t,
|
|
14
|
+
children: e
|
|
15
|
+
}) : /* @__PURE__ */ o(i, {
|
|
16
|
+
status: s,
|
|
17
|
+
prefix: r,
|
|
18
|
+
visiblePrefix: c,
|
|
19
|
+
"data-testid": t,
|
|
20
|
+
children: e
|
|
21
|
+
}), u = ({ messages: e = [], linkToTarget: t, prefix: i, visiblePrefix: a, status: u = "danger", className: d, "data-testid": f, ...p }) => {
|
|
22
|
+
let m = r({ id: p.id });
|
|
23
|
+
return e.length ? /* @__PURE__ */ o("ul", {
|
|
24
|
+
...p,
|
|
25
|
+
className: (0, c.default)(d, s.validationSummary),
|
|
26
|
+
"data-testid": f,
|
|
27
|
+
children: e.map((e) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(l, {
|
|
28
|
+
linkToTarget: e.linkToTarget ?? t,
|
|
29
|
+
status: e.status ?? u,
|
|
30
|
+
prefix: e.prefix ?? i,
|
|
31
|
+
visiblePrefix: e.visiblePrefix ?? a,
|
|
32
|
+
"data-testid": e.dataTestId ?? n(f, "error"),
|
|
33
|
+
children: e.message
|
|
34
|
+
}) }, `${m}-${e.linkToTarget}-${e.message}`))
|
|
35
|
+
}) : null;
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { u as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
|
|
3
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
+
get: ((e) => i[e]).bind(null, d),
|
|
5
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
+
});
|
|
7
|
+
return e;
|
|
8
|
+
}, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
|
|
9
|
+
value: n,
|
|
10
|
+
enumerable: !0
|
|
11
|
+
}) : a, n));
|
|
12
|
+
//#endregion
|
|
13
|
+
export { c as n, o as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as e } from "./chunk-efA98nb6.js";
|
|
2
|
+
//#region ../../node_modules/classnames/index.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
(function() {
|
|
5
|
+
var e = {}.hasOwnProperty;
|
|
6
|
+
function n() {
|
|
7
|
+
for (var e = "", t = 0; t < arguments.length; t++) {
|
|
8
|
+
var n = arguments[t];
|
|
9
|
+
n && (e = i(e, r(n)));
|
|
10
|
+
}
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
function r(t) {
|
|
14
|
+
if (typeof t == "string" || typeof t == "number") return t;
|
|
15
|
+
if (typeof t != "object") return "";
|
|
16
|
+
if (Array.isArray(t)) return n.apply(null, t);
|
|
17
|
+
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) return t.toString();
|
|
18
|
+
var r = "";
|
|
19
|
+
for (var a in t) e.call(t, a) && t[a] && (r = i(r, a));
|
|
20
|
+
return r;
|
|
21
|
+
}
|
|
22
|
+
function i(e, t) {
|
|
23
|
+
return t ? e ? e + " " + t : e + t : e;
|
|
24
|
+
}
|
|
25
|
+
t !== void 0 && t.exports ? (n.default = n, t.exports = n) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
|
|
26
|
+
return n;
|
|
27
|
+
}) : window.classNames = n;
|
|
28
|
+
})();
|
|
29
|
+
}));
|
|
30
|
+
//#endregion
|
|
31
|
+
export { t };
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
import "./Alert.types.js";
|
|
4
|
-
import "../../enums.js";
|
|
5
|
-
import { I as a } from "../../LoadingSuspense-CuQm3zqO.js";
|
|
6
|
-
import "../Text/Text.js";
|
|
7
|
-
import "../../helpers/utility/propagateTestid.js";
|
|
8
|
-
import "../HeadingWithDeprecatedFallback/HeadingWithDeprecatedFallback.js";
|
|
9
|
-
export {
|
|
10
|
-
a as IressAlert
|
|
11
|
-
};
|
|
1
|
+
import { kt as e } from "../../main-CTy1XcUn.js";
|
|
2
|
+
export { e as IressAlert };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
n as ALERT_ICONS
|
|
1
|
+
//#region src/components/Alert/Alert.types.ts
|
|
2
|
+
var e = {
|
|
3
|
+
danger: "ban",
|
|
4
|
+
info: "info-square",
|
|
5
|
+
success: "check",
|
|
6
|
+
warning: "exclamation-triangle"
|
|
9
7
|
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as ALERT_ICONS };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
o as ALERT_ICONS,
|
|
5
|
-
t as IressAlert
|
|
6
|
-
};
|
|
1
|
+
import { kt as e } from "../../main-CTy1XcUn.js";
|
|
2
|
+
import { ALERT_ICONS as t } from "./Alert.types.js";
|
|
3
|
+
export { t as ALERT_ICONS, e as IressAlert };
|
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
import "../../AutocompleteNoResults-B60rzwfa.js";
|
|
4
|
-
import "../Popover/Popover.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "../../PopoverProvider-BMBTLkRr.js";
|
|
7
|
-
import "../Popover/InputPopover/InputPopover.js";
|
|
8
|
-
import { a as R } from "../../LoadingSuspense-CuQm3zqO.js";
|
|
9
|
-
import "../../hooks/useControlledState.js";
|
|
10
|
-
import "../../helpers/utility/propagateTestid.js";
|
|
11
|
-
import "../../helpers/formatting/toArray.js";
|
|
12
|
-
import "../../helpers/form/getValueAsEvent.js";
|
|
13
|
-
import "../../helpers/form/getFormControlValueAsStringIfDefined.js";
|
|
14
|
-
import "./hooks/useAutocompleteSearch.js";
|
|
15
|
-
import "./components/AutocompleteInstructions.js";
|
|
16
|
-
import "../Badge/Badge.js";
|
|
17
|
-
import "../ButtonGroup/ButtonGroupProvider.js";
|
|
18
|
-
import "../Card/Card.js";
|
|
19
|
-
import "../CheckboxGroup/CheckboxGroup.js";
|
|
20
|
-
import "../Col/Col.js";
|
|
21
|
-
import "../Expander/Expander.js";
|
|
22
|
-
import "../Form/FormContext.js";
|
|
23
|
-
import "../Menu/Menu.js";
|
|
24
|
-
import "../Menu/MenuProvider.js";
|
|
25
|
-
import "../CheckboxMark/CheckboxMark.types.js";
|
|
26
|
-
import "../CheckboxMark/CheckboxMark.js";
|
|
27
|
-
import "../Modal/ModalProvider.js";
|
|
28
|
-
import "../Panel/Panel.js";
|
|
29
|
-
import "../../SlideoutProvider-CQh140HM.js";
|
|
30
|
-
import "react-dom";
|
|
31
|
-
import "../RadioGroup/RadioGroup.js";
|
|
32
|
-
import "../Skeleton/Skeleton.js";
|
|
33
|
-
import "../SkipLink/SkipLink.js";
|
|
34
|
-
import "../Stack/Stack.js";
|
|
35
|
-
import "../Table/TableContext.js";
|
|
36
|
-
import "../Table/TableProvider.js";
|
|
37
|
-
import "../TabSet/Tab/Tab.js";
|
|
38
|
-
import "../TabSet/TabSet.js";
|
|
39
|
-
import "../Text/Text.js";
|
|
40
|
-
import "../Toggle/Toggle.js";
|
|
41
|
-
import "../Tooltip/Tooltip.js";
|
|
42
|
-
import "../ValidationMessage/ValidationMessage.js";
|
|
43
|
-
export {
|
|
44
|
-
R as IressAutocomplete
|
|
45
|
-
};
|
|
1
|
+
import { rt as e } from "../../main-CTy1XcUn.js";
|
|
2
|
+
export { e as IressAutocomplete };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
1
|
import { IressPanel as e } from "../../Panel/Panel.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
a as AutocompleteInstructions
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/Autocomplete/components/AutocompleteInstructions.tsx
|
|
4
|
+
var n = ({ minSearchLength: n, styles: r }) => {
|
|
5
|
+
let i = `Type at least ${n} character${n === 1 ? "" : "s"} to search`;
|
|
6
|
+
return /* @__PURE__ */ t(e, {
|
|
7
|
+
className: r?.instructions ?? "",
|
|
8
|
+
children: i
|
|
9
|
+
});
|
|
12
10
|
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as AutocompleteInstructions };
|
|
@@ -1,191 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { highlightQueryInLabelValue as P } from "../../../helpers/label-value/highlightQueryInLabelValue.js";
|
|
4
|
-
function j(e, t, u, c) {
|
|
5
|
-
var a = this, n = d(null), i = d(0), s = d(0), r = d(null), o = d([]), h = d(), f = d(), m = d(e), S = d(!0), p = d(), E = d();
|
|
6
|
-
m.current = e;
|
|
7
|
-
var w = typeof window < "u", y = !t && t !== 0 && w;
|
|
8
|
-
if (typeof e != "function") throw new TypeError("Expected a function");
|
|
9
|
-
t = +t || 0;
|
|
10
|
-
var F = !!(u = u || {}).leading, O = !("trailing" in u) || !!u.trailing, T = !!u.flushOnExit && O, D = "maxWait" in u, _ = "debounceOnServer" in u && !!u.debounceOnServer, H = D ? Math.max(+u.maxWait || 0, t) : null, M = B(function() {
|
|
11
|
-
var b = function(l) {
|
|
12
|
-
var g = o.current, R = h.current;
|
|
13
|
-
return o.current = h.current = null, i.current = l, s.current = s.current || l, f.current = m.current.apply(R, g);
|
|
14
|
-
}, W = function(l, g) {
|
|
15
|
-
y && cancelAnimationFrame(r.current), r.current = y ? requestAnimationFrame(l) : setTimeout(l, g);
|
|
16
|
-
}, N = function(l) {
|
|
17
|
-
if (!S.current) return !1;
|
|
18
|
-
var g = l - n.current;
|
|
19
|
-
return !n.current || g >= t || g < 0 || D && l - i.current >= H;
|
|
20
|
-
}, k = function(l) {
|
|
21
|
-
return r.current = null, O && o.current ? b(l) : (o.current = h.current = null, f.current);
|
|
22
|
-
}, Q = function l() {
|
|
23
|
-
var g = Date.now();
|
|
24
|
-
if (F && s.current === i.current && V(), N(g)) return k(g);
|
|
25
|
-
if (S.current) {
|
|
26
|
-
var R = t - (g - n.current), L = D ? Math.min(R, H - (g - i.current)) : R;
|
|
27
|
-
W(l, L);
|
|
28
|
-
}
|
|
29
|
-
}, V = function() {
|
|
30
|
-
c && c({});
|
|
31
|
-
}, x = function() {
|
|
32
|
-
if (w || _) {
|
|
33
|
-
var l, g = Date.now(), R = N(g);
|
|
34
|
-
if (o.current = [].slice.call(arguments), h.current = a, n.current = g, T && !p.current && (p.current = function() {
|
|
35
|
-
var L;
|
|
36
|
-
((L = global.document) == null ? void 0 : L.visibilityState) === "hidden" && E.current.flush();
|
|
37
|
-
}, (l = global.document) == null || l.addEventListener == null || l.addEventListener("visibilitychange", p.current)), R) {
|
|
38
|
-
if (!r.current && S.current) return i.current = n.current, W(Q, t), F ? b(n.current) : f.current;
|
|
39
|
-
if (D) return W(Q, t), b(n.current);
|
|
40
|
-
}
|
|
41
|
-
return r.current || W(Q, t), f.current;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return x.cancel = function() {
|
|
45
|
-
var l = r.current;
|
|
46
|
-
l && (y ? cancelAnimationFrame(r.current) : clearTimeout(r.current)), i.current = 0, o.current = n.current = h.current = r.current = null, l && c && c({});
|
|
47
|
-
}, x.isPending = function() {
|
|
48
|
-
return !!r.current;
|
|
49
|
-
}, x.flush = function() {
|
|
50
|
-
return r.current ? k(Date.now()) : f.current;
|
|
51
|
-
}, x;
|
|
52
|
-
}, [F, D, t, H, O, T, y, w, _, c]);
|
|
53
|
-
return E.current = M, U(function() {
|
|
54
|
-
return S.current = !0, function() {
|
|
55
|
-
var b;
|
|
56
|
-
T && E.current.flush(), p.current && ((b = global.document) == null || b.removeEventListener == null || b.removeEventListener("visibilitychange", p.current), p.current = null), S.current = !1;
|
|
57
|
-
};
|
|
58
|
-
}, [T]), M;
|
|
59
|
-
}
|
|
60
|
-
function z(e, t) {
|
|
61
|
-
return e === t;
|
|
62
|
-
}
|
|
63
|
-
function I(e, t, u) {
|
|
64
|
-
var c = z, a = d(e), n = A({})[1], i = j(v(function(r) {
|
|
65
|
-
a.current = r, n({});
|
|
66
|
-
}, [n]), t, u, n), s = d(e);
|
|
67
|
-
return c(s.current, e) || (i(e), s.current = e), [a.current, i];
|
|
68
|
-
}
|
|
69
|
-
const J = 500, K = 1, X = (e) => e instanceof Error && e.message ? e.message : typeof e == "string" ? e : !0, Y = () => {
|
|
70
|
-
const [e, t] = A(!1), [u, c] = A(!1), [a, n] = A([]), [i, s] = A(!1), r = v(() => {
|
|
71
|
-
n([]), t(!1), c(!1), s(!1);
|
|
72
|
-
}, []), o = v(
|
|
73
|
-
(E, w) => {
|
|
74
|
-
n(
|
|
75
|
-
E.map(
|
|
76
|
-
(y) => P(y, w)
|
|
77
|
-
)
|
|
78
|
-
), c(!1), t(!1);
|
|
79
|
-
},
|
|
80
|
-
[]
|
|
81
|
-
), h = v((E) => {
|
|
82
|
-
n([]), c(E), t(!1);
|
|
83
|
-
}, []), f = v(() => {
|
|
84
|
-
c(!1);
|
|
85
|
-
}, []), m = v((E) => {
|
|
86
|
-
t(E);
|
|
87
|
-
}, []), S = v((E) => {
|
|
88
|
-
s(E);
|
|
89
|
-
}, []), p = v(() => {
|
|
90
|
-
c(!1);
|
|
91
|
-
}, []);
|
|
92
|
-
return {
|
|
93
|
-
loading: e,
|
|
94
|
-
error: u,
|
|
95
|
-
results: a,
|
|
96
|
-
hasSearched: i,
|
|
97
|
-
reset: r,
|
|
98
|
-
updateWithResults: o,
|
|
99
|
-
updateWithError: h,
|
|
100
|
-
clearError: f,
|
|
101
|
-
setLoadingState: m,
|
|
102
|
-
setSearched: S,
|
|
103
|
-
clearErrorState: p
|
|
104
|
-
};
|
|
105
|
-
}, Z = (e, t) => {
|
|
106
|
-
const u = d(""), c = v((s) => u.current === s, []), a = v((s) => {
|
|
107
|
-
u.current = s;
|
|
108
|
-
}, []), n = v(
|
|
109
|
-
async (s, r, o, h = !1) => {
|
|
110
|
-
if (c(r) && !h) return;
|
|
111
|
-
t.current = t.current + 1;
|
|
112
|
-
const f = t.current;
|
|
113
|
-
if (a(r), r.length >= o) {
|
|
114
|
-
e.setLoadingState(!0), e.clearErrorState();
|
|
115
|
-
try {
|
|
116
|
-
const m = await s(r);
|
|
117
|
-
if (f !== t.current) return;
|
|
118
|
-
e.setSearched(!0), e.updateWithResults(m, r);
|
|
119
|
-
} catch (m) {
|
|
120
|
-
if (f !== t.current) return;
|
|
121
|
-
e.setSearched(!0), e.updateWithError(
|
|
122
|
-
X(m)
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
} else
|
|
126
|
-
e.reset();
|
|
127
|
-
},
|
|
128
|
-
[e, c, a, t]
|
|
129
|
-
), i = v(
|
|
130
|
-
(s, r, o, h = !1) => {
|
|
131
|
-
if (!(c(r) && !h))
|
|
132
|
-
if (a(r), r.length >= o) {
|
|
133
|
-
e.setSearched(!0);
|
|
134
|
-
const f = G(r, s);
|
|
135
|
-
e.updateWithResults(f, r);
|
|
136
|
-
} else
|
|
137
|
-
e.reset();
|
|
138
|
-
},
|
|
139
|
-
[e, c, a]
|
|
140
|
-
);
|
|
141
|
-
return {
|
|
142
|
-
handleAsync: n,
|
|
143
|
-
handleSync: i
|
|
144
|
-
};
|
|
145
|
-
}, rr = ({
|
|
146
|
-
debounceThreshold: e = J,
|
|
147
|
-
initialOptions: t = [],
|
|
148
|
-
minSearchLength: u = K,
|
|
149
|
-
options: c = [],
|
|
150
|
-
query: a = ""
|
|
151
|
-
}) => {
|
|
152
|
-
const n = Y(), i = d(0), s = Z(n, i), [r] = I(a, e), o = v(
|
|
153
|
-
(f = !1) => {
|
|
154
|
-
if (typeof c == "function") {
|
|
155
|
-
s.handleAsync(
|
|
156
|
-
c,
|
|
157
|
-
r,
|
|
158
|
-
u,
|
|
159
|
-
f
|
|
160
|
-
);
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
s.handleSync(
|
|
164
|
-
c,
|
|
165
|
-
r,
|
|
166
|
-
u,
|
|
167
|
-
f
|
|
168
|
-
);
|
|
169
|
-
},
|
|
170
|
-
[r, u, c, s]
|
|
171
|
-
);
|
|
172
|
-
U(o, [o]);
|
|
173
|
-
const h = () => r.length < u ? t ?? [] : n.hasSearched ? n.results : t ?? [];
|
|
174
|
-
return {
|
|
175
|
-
clearError: n.clearError,
|
|
176
|
-
debouncedQuery: r,
|
|
177
|
-
error: n.error,
|
|
178
|
-
loading: n.loading,
|
|
179
|
-
shouldShowInstructions: a.length < u && t.length === 0,
|
|
180
|
-
shouldShowDebounceWaiting: a.length >= u && r.length < u && !n.loading && !n.hasSearched,
|
|
181
|
-
shouldShowNoResults: n.hasSearched && !n.loading && n.results.length === 0 && r.length >= u,
|
|
182
|
-
displayResults: h(),
|
|
183
|
-
// Backward compatibility - use displayResults to ensure proper handling of search states
|
|
184
|
-
results: h(),
|
|
185
|
-
startSearch: o,
|
|
186
|
-
stopSearch: n.reset
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
export {
|
|
190
|
-
rr as useAutocompleteSearch
|
|
191
|
-
};
|
|
1
|
+
import { t as e } from "../../../useAutocompleteSearch-CBgqGiKn.js";
|
|
2
|
+
export { e as useAutocompleteSearch };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
r as IressAutocomplete,
|
|
5
|
-
m as useAutocompleteSearch
|
|
6
|
-
};
|
|
1
|
+
import { rt as e } from "../../main-CTy1XcUn.js";
|
|
2
|
+
import { t } from "../../useAutocompleteSearch-CBgqGiKn.js";
|
|
3
|
+
export { e as IressAutocomplete, t as useAutocompleteSearch };
|
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { c as v } from "../../index-cbHCAGLB.js";
|
|
4
|
-
import { propagateTestid as p } from "../../helpers/utility/propagateTestid.js";
|
|
5
|
-
const u = "ids-badge--base-v5208", m = "ids-badge--pill-v5208", f = "ids-badge--success-v5208", h = "ids-badge--warning-v5208", k = "ids-badge--danger-v5208", N = "ids-badge--info-v5208", w = "ids-badge--positive-v5208", x = "ids-badge--negative-v5208", B = "ids-badge-v5208", M = "ids-badge--host-v5208", s = {
|
|
6
|
-
base: u,
|
|
7
|
-
pill: m,
|
|
8
|
-
success: f,
|
|
9
|
-
warning: h,
|
|
10
|
-
danger: k,
|
|
11
|
-
info: N,
|
|
12
|
-
positive: w,
|
|
13
|
-
negative: x,
|
|
14
|
-
"background-default": "ids-badge--background-default-v5208",
|
|
15
|
-
"background-alt": "ids-badge--background-alt-v5208",
|
|
16
|
-
badge: B,
|
|
17
|
-
"ids-icon": "ids-icon-v5208",
|
|
18
|
-
host: M
|
|
19
|
-
}, t = ({
|
|
20
|
-
children: i,
|
|
21
|
-
mode: o = "background-default",
|
|
22
|
-
pill: n,
|
|
23
|
-
className: g,
|
|
24
|
-
host: a,
|
|
25
|
-
...e
|
|
26
|
-
}) => {
|
|
27
|
-
const c = {
|
|
28
|
-
[s.badge]: !0,
|
|
29
|
-
[s.base]: !0,
|
|
30
|
-
[s[o]]: !0,
|
|
31
|
-
[s.pill]: n
|
|
32
|
-
}, d = /* @__PURE__ */ r("span", { className: v(c, g), ...e, children: i });
|
|
33
|
-
return a ? /* @__PURE__ */ b(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
className: s.host,
|
|
37
|
-
"data-testid": p(e["data-testid"], "host"),
|
|
38
|
-
children: [
|
|
39
|
-
a,
|
|
40
|
-
d
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
) : d;
|
|
44
|
-
};
|
|
45
|
-
t.displayName = "IressBadge";
|
|
46
|
-
t.Mode = l;
|
|
47
|
-
export {
|
|
48
|
-
t as IressBadge
|
|
49
|
-
};
|
|
1
|
+
import { t as e } from "../../Badge-BqaFutTZ.js";
|
|
2
|
+
export { e as IressBadge };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
//#region src/components/Badge/Badge.types.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.Success = "success", e.Warning = "warning", e.Danger = "danger", e.Info = "info", e.Positive = "positive", e.Negative = "negative", e.BackgroundAlt = "background-alt", e.BackgroundDefault = "background-default", e;
|
|
4
|
+
}({}), t = [
|
|
5
|
+
"success",
|
|
6
|
+
"warning",
|
|
7
|
+
"danger",
|
|
8
|
+
"info",
|
|
9
|
+
"positive",
|
|
10
|
+
"negative",
|
|
11
|
+
"background-alt",
|
|
12
|
+
"background-default"
|
|
11
13
|
];
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
r as BadgeMode
|
|
15
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as BADGE_MODES, e as BadgeMode };
|