@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
package/dist/types.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { highlightQueryInLabelValue as e } from "./helpers/label-value/highlightQueryInLabelValue.js";
|
|
2
|
+
import { searchLabelValues as t } from "./helpers/label-value/searchLabelValues.js";
|
|
3
|
+
import { useCallback as n, useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
4
|
+
//#region ../../node_modules/use-debounce/dist/index.module.js
|
|
5
|
+
function s(e, t, n, o) {
|
|
6
|
+
var s = this, c = a(null), l = a(0), u = a(0), d = a(null), f = a([]), p = a(), m = a(), h = a(e), g = a(!0), _ = a(), v = a();
|
|
7
|
+
h.current = e;
|
|
8
|
+
var y = typeof window < "u", b = !t && t !== 0 && y;
|
|
9
|
+
if (typeof e != "function") throw TypeError("Expected a function");
|
|
10
|
+
t = +t || 0;
|
|
11
|
+
var x = !!(n ||= {}).leading, S = !("trailing" in n) || !!n.trailing, C = !!n.flushOnExit && S, w = "maxWait" in n, T = "debounceOnServer" in n && !!n.debounceOnServer, E = w ? Math.max(+n.maxWait || 0, t) : null, D = i(function() {
|
|
12
|
+
var e = function(e) {
|
|
13
|
+
var t = f.current, n = p.current;
|
|
14
|
+
return f.current = p.current = null, l.current = e, u.current = u.current || e, m.current = h.current.apply(n, t);
|
|
15
|
+
}, n = function(e, t) {
|
|
16
|
+
b && cancelAnimationFrame(d.current), d.current = b ? requestAnimationFrame(e) : setTimeout(e, t);
|
|
17
|
+
}, r = function(e) {
|
|
18
|
+
if (!g.current) return !1;
|
|
19
|
+
var n = e - c.current;
|
|
20
|
+
return !c.current || n >= t || n < 0 || w && e - l.current >= E;
|
|
21
|
+
}, i = function(t) {
|
|
22
|
+
return d.current = null, S && f.current ? e(t) : (f.current = p.current = null, m.current);
|
|
23
|
+
}, a = function e() {
|
|
24
|
+
var a = Date.now();
|
|
25
|
+
if (x && u.current === l.current && D(), r(a)) return i(a);
|
|
26
|
+
if (g.current) {
|
|
27
|
+
var o = t - (a - c.current);
|
|
28
|
+
n(e, w ? Math.min(o, E - (a - l.current)) : o);
|
|
29
|
+
}
|
|
30
|
+
}, D = function() {
|
|
31
|
+
o && o({});
|
|
32
|
+
}, O = function() {
|
|
33
|
+
if (y || T) {
|
|
34
|
+
var i, o = Date.now(), u = r(o);
|
|
35
|
+
if (f.current = [].slice.call(arguments), p.current = s, c.current = o, C && !_.current && (_.current = function() {
|
|
36
|
+
globalThis.document?.visibilityState === "hidden" && v.current.flush();
|
|
37
|
+
}, (i = globalThis.document) == null || i.addEventListener == null || i.addEventListener("visibilitychange", _.current)), u) {
|
|
38
|
+
if (!d.current && g.current) return l.current = c.current, n(a, t), x ? e(c.current) : m.current;
|
|
39
|
+
if (w) return n(a, t), e(c.current);
|
|
40
|
+
}
|
|
41
|
+
return d.current || n(a, t), m.current;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return O.cancel = function() {
|
|
45
|
+
var e = d.current;
|
|
46
|
+
e && (b ? cancelAnimationFrame(d.current) : clearTimeout(d.current)), l.current = 0, f.current = c.current = p.current = d.current = null, e && o && o({});
|
|
47
|
+
}, O.isPending = function() {
|
|
48
|
+
return !!d.current;
|
|
49
|
+
}, O.flush = function() {
|
|
50
|
+
return d.current ? i(Date.now()) : m.current;
|
|
51
|
+
}, O;
|
|
52
|
+
}, [
|
|
53
|
+
x,
|
|
54
|
+
w,
|
|
55
|
+
t,
|
|
56
|
+
E,
|
|
57
|
+
S,
|
|
58
|
+
C,
|
|
59
|
+
b,
|
|
60
|
+
y,
|
|
61
|
+
T,
|
|
62
|
+
o
|
|
63
|
+
]);
|
|
64
|
+
return v.current = D, r(function() {
|
|
65
|
+
return g.current = !0, function() {
|
|
66
|
+
var e;
|
|
67
|
+
C && v.current.flush(), _.current &&= ((e = globalThis.document) == null || e.removeEventListener == null || e.removeEventListener("visibilitychange", _.current), null), g.current = !1;
|
|
68
|
+
};
|
|
69
|
+
}, [C]), D;
|
|
70
|
+
}
|
|
71
|
+
function c(e, t) {
|
|
72
|
+
return e === t;
|
|
73
|
+
}
|
|
74
|
+
function l(e, t, r) {
|
|
75
|
+
var i = r && r.equalityFn || c, l = a(e), u = o({})[1], d = s(n(function(e) {
|
|
76
|
+
l.current = e, u({});
|
|
77
|
+
}, [u]), t, r, u), f = a(e);
|
|
78
|
+
return i(f.current, e) || (d(e), f.current = e), [l.current, d];
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/Autocomplete/hooks/useAutocompleteSearch.tsx
|
|
82
|
+
var u = 500, d = 1, f = (e) => e instanceof Error && e.message ? e.message : typeof e == "string" ? e : !0, p = () => {
|
|
83
|
+
let [t, r] = o(!1), [i, a] = o(!1), [s, c] = o([]), [l, u] = o(!1);
|
|
84
|
+
return {
|
|
85
|
+
loading: t,
|
|
86
|
+
error: i,
|
|
87
|
+
results: s,
|
|
88
|
+
hasSearched: l,
|
|
89
|
+
reset: n(() => {
|
|
90
|
+
c([]), r(!1), a(!1), u(!1);
|
|
91
|
+
}, []),
|
|
92
|
+
updateWithResults: n((t, n) => {
|
|
93
|
+
c(t.map((t) => e(t, n))), a(!1), r(!1);
|
|
94
|
+
}, []),
|
|
95
|
+
updateWithError: n((e) => {
|
|
96
|
+
c([]), a(e), r(!1);
|
|
97
|
+
}, []),
|
|
98
|
+
clearError: n(() => {
|
|
99
|
+
a(!1);
|
|
100
|
+
}, []),
|
|
101
|
+
setLoadingState: n((e) => {
|
|
102
|
+
r(e);
|
|
103
|
+
}, []),
|
|
104
|
+
setSearched: n((e) => {
|
|
105
|
+
u(e);
|
|
106
|
+
}, []),
|
|
107
|
+
clearErrorState: n(() => {
|
|
108
|
+
a(!1);
|
|
109
|
+
}, [])
|
|
110
|
+
};
|
|
111
|
+
}, m = (e, r) => {
|
|
112
|
+
let i = a(""), o = n((e) => i.current === e, []), s = n((e) => {
|
|
113
|
+
i.current = e;
|
|
114
|
+
}, []);
|
|
115
|
+
return {
|
|
116
|
+
handleAsync: n(async (t, n, i, a = !1) => {
|
|
117
|
+
if (o(n) && !a) return;
|
|
118
|
+
r.current += 1;
|
|
119
|
+
let c = r.current;
|
|
120
|
+
if (s(n), n.length >= i) {
|
|
121
|
+
e.setLoadingState(!0), e.clearErrorState();
|
|
122
|
+
try {
|
|
123
|
+
let i = await t(n);
|
|
124
|
+
if (c !== r.current) return;
|
|
125
|
+
e.setSearched(!0), e.updateWithResults(i, n);
|
|
126
|
+
} catch (t) {
|
|
127
|
+
if (c !== r.current) return;
|
|
128
|
+
e.setSearched(!0), e.updateWithError(f(t));
|
|
129
|
+
}
|
|
130
|
+
} else e.reset();
|
|
131
|
+
}, [
|
|
132
|
+
e,
|
|
133
|
+
o,
|
|
134
|
+
s,
|
|
135
|
+
r
|
|
136
|
+
]),
|
|
137
|
+
handleSync: n((n, r, i, a = !1) => {
|
|
138
|
+
if (!(o(r) && !a)) if (s(r), r.length >= i) {
|
|
139
|
+
e.setSearched(!0);
|
|
140
|
+
let i = t(r, n);
|
|
141
|
+
e.updateWithResults(i, r);
|
|
142
|
+
} else e.reset();
|
|
143
|
+
}, [
|
|
144
|
+
e,
|
|
145
|
+
o,
|
|
146
|
+
s
|
|
147
|
+
])
|
|
148
|
+
};
|
|
149
|
+
}, h = ({ debounceThreshold: e = u, initialOptions: t = [], minSearchLength: i = d, options: o = [], query: s = "" }) => {
|
|
150
|
+
let c = p(), f = m(c, a(0)), [h] = l(s, e), g = n((e = !1) => {
|
|
151
|
+
if (typeof o == "function") {
|
|
152
|
+
f.handleAsync(o, h, i, e);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
f.handleSync(o, h, i, e);
|
|
156
|
+
}, [
|
|
157
|
+
h,
|
|
158
|
+
i,
|
|
159
|
+
o,
|
|
160
|
+
f
|
|
161
|
+
]);
|
|
162
|
+
r(g, [g]);
|
|
163
|
+
let _ = () => h.length < i ? t ?? [] : c.hasSearched ? c.results : t ?? [];
|
|
164
|
+
return {
|
|
165
|
+
clearError: c.clearError,
|
|
166
|
+
debouncedQuery: h,
|
|
167
|
+
error: c.error,
|
|
168
|
+
loading: c.loading,
|
|
169
|
+
shouldShowInstructions: s.length < i && t.length === 0,
|
|
170
|
+
shouldShowDebounceWaiting: s.length >= i && h.length < i && !c.loading && !c.hasSearched,
|
|
171
|
+
shouldShowNoResults: c.hasSearched && !c.loading && c.results.length === 0 && h.length >= i,
|
|
172
|
+
displayResults: _(),
|
|
173
|
+
results: _(),
|
|
174
|
+
startSearch: g,
|
|
175
|
+
stopSearch: c.reset
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
//#endregion
|
|
179
|
+
export { h as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { n as e } from "./chunk-efA98nb6.js";
|
|
2
|
+
import { t } from "./classnames-BTnCYmAN.js";
|
|
3
|
+
import { useButtonGroup as n } from "./components/ButtonGroup/hooks/useButtonGroup.js";
|
|
4
|
+
var r = {
|
|
5
|
+
buttonGroup: "ids-button-group-v5209",
|
|
6
|
+
values: "ids-button-group--values-v5209",
|
|
7
|
+
label: "ids-button-group--label-v5209",
|
|
8
|
+
item: "ids-button-group--item-v5209",
|
|
9
|
+
active: "ids-button-group--active-v5209"
|
|
10
|
+
}, i = /* @__PURE__ */ e(t(), 1), a = ({ value: e }) => {
|
|
11
|
+
let t = n();
|
|
12
|
+
if (t) return {
|
|
13
|
+
className: (0, i.default)(r.item, { [r.active]: t.isActive(e) }),
|
|
14
|
+
props: { "aria-pressed": t.isActive(e) },
|
|
15
|
+
toggle() {
|
|
16
|
+
e !== void 0 && t?.toggle?.(e, !t.isActive(e));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as n, a as t };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { n as e } from "./chunk-efA98nb6.js";
|
|
2
|
+
import { t } from "./classnames-BTnCYmAN.js";
|
|
3
|
+
import { usePopover as n } from "./components/Popover/hooks/usePopover.js";
|
|
4
|
+
//#region src/components/Menu/Menu.module.scss
|
|
5
|
+
var r = "ids-menu-v5209", i = "ids-menu--inline-v5209", a = "ids-menu--stack-v5209", o = "ids-menu--fluid-v5209", s = {
|
|
6
|
+
menu: r,
|
|
7
|
+
inline: i,
|
|
8
|
+
"inline-equal-width": "ids-menu--inline-equal-width-v5209",
|
|
9
|
+
stack: a,
|
|
10
|
+
fluid: o,
|
|
11
|
+
"ids-menu-item--divider": "ids-menu-item--divider-v5209"
|
|
12
|
+
}, c = /* @__PURE__ */ e(t(), 1), l = ({ className: e, fluid: t, layout: r = "stack", role: i }) => {
|
|
13
|
+
let a = n()?.type;
|
|
14
|
+
return { className: (0, c.default)(e, s.menu, s[r], {
|
|
15
|
+
[s.fluid]: (a && ["listbox", "menu"].includes(a)) ?? t,
|
|
16
|
+
[s.nav]: i === "nav" && s.nav
|
|
17
|
+
}) };
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { l as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iress-oss/ids-components",
|
|
3
|
-
"version": "5.20.
|
|
3
|
+
"version": "5.20.9",
|
|
4
4
|
"description": "Iress React Component Library",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"@types/query-selector-shadow-dom": "^1.0.4",
|
|
41
41
|
"@types/react": "19.2.14",
|
|
42
42
|
"@types/react-dom": "19.2.3",
|
|
43
|
-
"@vitejs/plugin-react": "^
|
|
44
|
-
"@vitest/coverage-v8": "^4.
|
|
45
|
-
"@vitest/ui": "^4.
|
|
43
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
44
|
+
"@vitest/coverage-v8": "^4.1.3",
|
|
45
|
+
"@vitest/ui": "^4.1.3",
|
|
46
46
|
"colorjs.io": "^0.6.1",
|
|
47
|
-
"eslint": "^10.0
|
|
48
|
-
"eslint-plugin-file-progress": "^
|
|
47
|
+
"eslint": "^10.2.0",
|
|
48
|
+
"eslint-plugin-file-progress": "^4.0.0",
|
|
49
49
|
"eslint-plugin-mdx": "^3.7.0",
|
|
50
50
|
"eslint-plugin-prettier": "^5.5.5",
|
|
51
51
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
52
52
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
53
|
-
"eslint-plugin-sonarjs": "^4.0.
|
|
53
|
+
"eslint-plugin-sonarjs": "^4.0.2",
|
|
54
54
|
"glob": "^13.0.3",
|
|
55
55
|
"jest-axe": "^10.0.0",
|
|
56
|
-
"jsdom": "^
|
|
57
|
-
"postcss": "^8.5.
|
|
56
|
+
"jsdom": "^29.0.0",
|
|
57
|
+
"postcss": "^8.5.9",
|
|
58
58
|
"postcss-preset-env": "^11.1.3",
|
|
59
59
|
"postcss-scss": "^4.0.9",
|
|
60
60
|
"prettier": "^3.8.1",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"react-dom": "^19.2.4",
|
|
64
64
|
"react-dropzone": "15.0.0",
|
|
65
65
|
"rimraf": "^6.1.3",
|
|
66
|
-
"sass": "^1.
|
|
67
|
-
"storybook": "^10.
|
|
66
|
+
"sass": "^1.98.0",
|
|
67
|
+
"storybook": "^10.3.3",
|
|
68
68
|
"typescript": "^5.9.3",
|
|
69
|
-
"vite": "^
|
|
69
|
+
"vite": "^8.0.0",
|
|
70
70
|
"vite-bundle-visualizer": "^1.2.1",
|
|
71
71
|
"vite-plugin-dts": "^4.5.4",
|
|
72
|
-
"vite-plugin-static-copy": "^3.
|
|
72
|
+
"vite-plugin-static-copy": "^3.3.0",
|
|
73
73
|
"vite-tsconfig-paths": "^6.1.0",
|
|
74
|
-
"vitest": "^4.
|
|
74
|
+
"vitest": "^4.1.3"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@floating-ui/react": "0.27.19",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"fuzzysort": "3.1.0",
|
|
81
81
|
"query-selector-shadow-dom": "1.0.1",
|
|
82
82
|
"react-hook-form": "7.53.1",
|
|
83
|
-
"use-debounce": "10.1.
|
|
83
|
+
"use-debounce": "10.1.1"
|
|
84
84
|
},
|
|
85
85
|
"repository": {
|
|
86
86
|
"type": "git",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
const e = "ids-autocomplete--popover-content-v5208", n = "ids-autocomplete--option-list-v5208", p = {
|
|
3
|
-
popoverContent: e,
|
|
4
|
-
optionList: n
|
|
5
|
-
}, r = ({
|
|
6
|
-
noResultsText: o,
|
|
7
|
-
styles: t = p
|
|
8
|
-
}) => typeof o == "string" ? /* @__PURE__ */ s("div", { className: t.noResults, children: o }) : o;
|
|
9
|
-
export {
|
|
10
|
-
r as A,
|
|
11
|
-
p as s
|
|
12
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { propagateTestid as e } from "./helpers/utility/propagateTestid.js";
|
|
3
|
-
import { c as n } from "./index-cbHCAGLB.js";
|
|
4
|
-
import { forwardRef as p } from "react";
|
|
5
|
-
const m = "ids-combobox--input-v5208", r = "ids-combobox--readonly-v5208", a = "ids-combobox-v5208", c = "ids-combobox--popover-content-v5208", b = "ids-combobox--option-list-v5208", l = {
|
|
6
|
-
input: m,
|
|
7
|
-
readonly: r,
|
|
8
|
-
"ids-field-group--join": "ids-field-group--join-v5208",
|
|
9
|
-
"ids-field-group--fields": "ids-field-group--fields-v5208",
|
|
10
|
-
"ids-field": "ids-field-v5208",
|
|
11
|
-
combobox: a,
|
|
12
|
-
"ids-menuItem": "ids-menu-item-v5208",
|
|
13
|
-
popoverContent: c,
|
|
14
|
-
optionList: b
|
|
15
|
-
}, f = p(
|
|
16
|
-
({ dataTestId: i, hiddenInputProps: o, ...s }, t) => /* @__PURE__ */ d(
|
|
17
|
-
"input",
|
|
18
|
-
{
|
|
19
|
-
...o,
|
|
20
|
-
...s,
|
|
21
|
-
className: n(o?.className, l.hiddenInput),
|
|
22
|
-
"data-testid": e(i, "hidden-input"),
|
|
23
|
-
ref: t,
|
|
24
|
-
type: "hidden"
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
);
|
|
28
|
-
f.displayName = "ComboboxHiddenInput";
|
|
29
|
-
export {
|
|
30
|
-
f as C,
|
|
31
|
-
l as s
|
|
32
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as d, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { c as l } from "./index-cbHCAGLB.js";
|
|
3
|
-
import "./LoadingSuspense-CuQm3zqO.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "./fuzzysort-BNka47rs.js";
|
|
6
|
-
import "./components/Badge/Badge.js";
|
|
7
|
-
import "./components/ButtonGroup/ButtonGroupProvider.js";
|
|
8
|
-
import { propagateTestid as o } from "./helpers/utility/propagateTestid.js";
|
|
9
|
-
import { GlobalCSSClass as n } from "./enums.js";
|
|
10
|
-
import "./components/Card/Card.js";
|
|
11
|
-
import "./components/CheckboxGroup/CheckboxGroup.js";
|
|
12
|
-
import "./components/Col/Col.js";
|
|
13
|
-
import "./components/Expander/Expander.js";
|
|
14
|
-
import "./components/Form/FormContext.js";
|
|
15
|
-
import "./components/Menu/Menu.js";
|
|
16
|
-
import "./components/Menu/MenuProvider.js";
|
|
17
|
-
import "./PopoverProvider-BMBTLkRr.js";
|
|
18
|
-
import "./components/CheckboxMark/CheckboxMark.types.js";
|
|
19
|
-
import "./components/CheckboxMark/CheckboxMark.js";
|
|
20
|
-
import "./components/Modal/ModalProvider.js";
|
|
21
|
-
import "./components/Panel/Panel.js";
|
|
22
|
-
import "./components/Popover/Popover.js";
|
|
23
|
-
import "./components/Popover/InputPopover/InputPopover.js";
|
|
24
|
-
import "./SlideoutProvider-CQh140HM.js";
|
|
25
|
-
import "react-dom";
|
|
26
|
-
import "./components/RadioGroup/RadioGroup.js";
|
|
27
|
-
import "./components/Text/Text.js";
|
|
28
|
-
import "./components/Skeleton/Skeleton.js";
|
|
29
|
-
import "./components/SkipLink/SkipLink.js";
|
|
30
|
-
import "./components/Stack/Stack.js";
|
|
31
|
-
import "./components/Table/TableContext.js";
|
|
32
|
-
import "./components/Table/TableProvider.js";
|
|
33
|
-
import "./components/TabSet/Tab/Tab.js";
|
|
34
|
-
import "./components/TabSet/TabSet.js";
|
|
35
|
-
import "./components/Toggle/Toggle.js";
|
|
36
|
-
import "./components/Tooltip/Tooltip.js";
|
|
37
|
-
import "./components/ValidationMessage/ValidationMessage.js";
|
|
38
|
-
import { IressValidationSummary as c } from "./components/ValidationMessage/ValidationSummary/ValidationSummary.js";
|
|
39
|
-
import { getUniqueItemsByKey as f } from "./components/Field/helpers/getUniqueItemsByKey.js";
|
|
40
|
-
const v = "ids-field-v5208", h = "ids-field--invalid-v5208", y = "ids-field--label-v5208", b = "ids-field--hidden-label-v5208", S = "ids-field--hint-v5208", u = "ids-field--error-summary-v5208", p = {
|
|
41
|
-
field: v,
|
|
42
|
-
invalid: h,
|
|
43
|
-
label: y,
|
|
44
|
-
hiddenLabel: b,
|
|
45
|
-
hint: S,
|
|
46
|
-
errorSummary: u
|
|
47
|
-
}, pi = ({
|
|
48
|
-
error: e,
|
|
49
|
-
errorMessages: i,
|
|
50
|
-
hiddenLabel: s,
|
|
51
|
-
hint: r,
|
|
52
|
-
"data-parent-testid": t
|
|
53
|
-
}) => /* @__PURE__ */ a(d, { children: [
|
|
54
|
-
r && /* @__PURE__ */ m(
|
|
55
|
-
"div",
|
|
56
|
-
{
|
|
57
|
-
className: l(p.hint, {
|
|
58
|
-
[n.SROnly]: s
|
|
59
|
-
}),
|
|
60
|
-
"data-testid": o(t, "hint"),
|
|
61
|
-
children: r
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
e,
|
|
65
|
-
i && /* @__PURE__ */ m(
|
|
66
|
-
c,
|
|
67
|
-
{
|
|
68
|
-
className: p.errorSummary,
|
|
69
|
-
messages: f(i, "message"),
|
|
70
|
-
"data-testid": o(t, "error")
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] });
|
|
74
|
-
export {
|
|
75
|
-
pi as F,
|
|
76
|
-
p as s
|
|
77
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as x, useRef as c, useImperativeHandle as g } from "react";
|
|
3
|
-
import { c as d } from "./index-cbHCAGLB.js";
|
|
4
|
-
import { idsLogger as y } from "./helpers/utility/idsLogger.js";
|
|
5
|
-
import { LoggerLevels as b } from "./enums.js";
|
|
6
|
-
const h = "ids-input-base--readonly-v5208", v = "ids-input-base--form-control-v5208", I = "ids-input-base--textarea-v5208", R = "ids-input-base--readonly-align-right-v5208", o = {
|
|
7
|
-
readonly: h,
|
|
8
|
-
formControl: v,
|
|
9
|
-
textarea: I,
|
|
10
|
-
readonlyAlignRight: R
|
|
11
|
-
}, N = x((m, f) => {
|
|
12
|
-
const {
|
|
13
|
-
rows: i = 0,
|
|
14
|
-
type: p = "text",
|
|
15
|
-
"data-testid": t,
|
|
16
|
-
className: l,
|
|
17
|
-
...r
|
|
18
|
-
} = m, a = i > 0, s = c(null), n = c(null);
|
|
19
|
-
return g(f, () => {
|
|
20
|
-
const e = a ? n.current : s.current;
|
|
21
|
-
return {
|
|
22
|
-
// React hook form requires the focus, blur, input
|
|
23
|
-
focus: () => e?.focus(),
|
|
24
|
-
blur: () => e?.blur(),
|
|
25
|
-
input: a ? n.current : s.current
|
|
26
|
-
};
|
|
27
|
-
}), a ? (["min", "max", "step"].forEach((e) => {
|
|
28
|
-
({ ...r, type: p })[e] && y(
|
|
29
|
-
"IressInput: The prop '${prop}' is not supported when 'rows' is greater than 0 and the component is rendered as a textarea.",
|
|
30
|
-
b.Warn
|
|
31
|
-
);
|
|
32
|
-
}), /* @__PURE__ */ u(
|
|
33
|
-
"textarea",
|
|
34
|
-
{
|
|
35
|
-
rows: i,
|
|
36
|
-
...t && { "data-testid": `${t}__textarea` },
|
|
37
|
-
...r,
|
|
38
|
-
ref: n,
|
|
39
|
-
className: d(o.formControl, o.textarea, l)
|
|
40
|
-
}
|
|
41
|
-
)) : /* @__PURE__ */ u(
|
|
42
|
-
"input",
|
|
43
|
-
{
|
|
44
|
-
type: p,
|
|
45
|
-
...t && { "data-testid": `${t}__input` },
|
|
46
|
-
...r,
|
|
47
|
-
ref: s,
|
|
48
|
-
className: d(o.formControl, l)
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
});
|
|
52
|
-
N.displayName = "InputBase";
|
|
53
|
-
export {
|
|
54
|
-
N as I,
|
|
55
|
-
o as b
|
|
56
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const i = "ids-loading--error-v5208", d = {
|
|
2
|
-
"fade-in": "ids-loading--fade-in-v5208",
|
|
3
|
-
"fade-in--active": "ids-loading--fade-in--active-v5208",
|
|
4
|
-
"slide-in": "ids-loading--slide-in-v5208",
|
|
5
|
-
"slide-in--active": "ids-loading--slide-in--active-v5208",
|
|
6
|
-
"fade-next": "ids-loading--fade-next-v5208",
|
|
7
|
-
"fade-next-width": "ids-loading--fade-next-width-v5208",
|
|
8
|
-
"slide-next": "ids-loading--slide-next-v5208",
|
|
9
|
-
error: i
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
d as l
|
|
13
|
-
};
|