@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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getActiveElement as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
c as hasFocus
|
|
1
|
+
import { getActiveElement as e } from "../../../helpers/dom/getActiveElement.js";
|
|
2
|
+
//#region src/components/Popover/helpers/hasFocus.ts
|
|
3
|
+
var t = (t) => {
|
|
4
|
+
let n = e();
|
|
5
|
+
return t && n ? t.contains(n) : !1;
|
|
8
6
|
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as hasFocus };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
c as waitUntilTrue
|
|
1
|
+
//#region src/components/Popover/helpers/waitUntilTrue.ts
|
|
2
|
+
var e = async (e, t = 1e3, n = 50) => {
|
|
3
|
+
let r = Date.now();
|
|
4
|
+
return new Promise((i, a) => {
|
|
5
|
+
let o = () => {
|
|
6
|
+
e() ? i() : Date.now() - r >= t ? a(/* @__PURE__ */ Error("Condition not met within timeout")) : setTimeout(o, n);
|
|
7
|
+
};
|
|
8
|
+
o();
|
|
9
|
+
});
|
|
12
10
|
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as waitUntilTrue };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
1
|
+
import { t as e } from "../../../PopoverProvider-DgUOscvy.js";
|
|
2
|
+
import { useContext as t } from "react";
|
|
3
|
+
//#region src/components/Popover/hooks/usePopover.tsx
|
|
4
|
+
var n = () => t(e);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as usePopover };
|
|
@@ -1,33 +1,24 @@
|
|
|
1
|
-
import { useCallback as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
n.setActiveIndex(a);
|
|
23
|
-
}
|
|
24
|
-
if (t.key === "Escape" && n?.setShowWithReason(!1, t.nativeEvent, "focus"), t.key === "ArrowRight" && t.isDefaultPrevented() && t.target instanceof HTMLInputElement && t.target.value?.length) {
|
|
25
|
-
const a = t.target, e = a.selectionStart ?? 0;
|
|
26
|
-
e < a.value.length && a.setSelectionRange(e + 1, e + 1);
|
|
27
|
-
}
|
|
28
|
-
}, o = (t, n) => {
|
|
29
|
-
t.key === "ArrowDown" && n?.setShowWithReason(!0, t.nativeEvent, "focus");
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
c as usePopoverActivatorInteractions
|
|
1
|
+
import { useCallback as e } from "react";
|
|
2
|
+
//#region src/components/Popover/hooks/usePopoverActivatorInteractions.tsx
|
|
3
|
+
var t = (t, i) => ({
|
|
4
|
+
onBlur: e((e) => {
|
|
5
|
+
i?.onBlur?.(e);
|
|
6
|
+
}, [i]),
|
|
7
|
+
onKeyDown: e((e) => {
|
|
8
|
+
t?.show ? n(e, t) : t && r(e, t), i?.onKeyDown?.(e);
|
|
9
|
+
}, [i, t])
|
|
10
|
+
}), n = (e, t) => {
|
|
11
|
+
let n = t?.getVirtualFocus !== void 0;
|
|
12
|
+
if (t?.getVirtualFocus?.()?.onKeyDown?.(e, t), e.key === "Tab" && (t?.getVirtualFocus?.()?.onBlur?.(e), t?.getVirtualFocus && t?.setShowWithReason(!1, e.nativeEvent, "focus")), e.key === "PageUp" && n && t.setActiveIndex(0), e.key === "PageDown" && n) {
|
|
13
|
+
let e = Math.max(t?.list.current.length - 1, 0);
|
|
14
|
+
t.setActiveIndex(e);
|
|
15
|
+
}
|
|
16
|
+
if (e.key === "Escape" && t?.setShowWithReason(!1, e.nativeEvent, "focus"), e.key === "ArrowRight" && e.isDefaultPrevented() && e.target instanceof HTMLInputElement && e.target.value?.length) {
|
|
17
|
+
let t = e.target, n = t.selectionStart ?? 0;
|
|
18
|
+
n < t.value.length && t.setSelectionRange(n + 1, n + 1);
|
|
19
|
+
}
|
|
20
|
+
}, r = (e, t) => {
|
|
21
|
+
e.key === "ArrowDown" && t?.setShowWithReason(!0, e.nativeEvent, "focus");
|
|
33
22
|
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { t as usePopoverActivatorInteractions };
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
getAriaControls: () => r.current,
|
|
13
|
-
toggleAriaControls: u
|
|
14
|
-
};
|
|
1
|
+
import { useCallback as e, useRef as t } from "react";
|
|
2
|
+
//#region src/components/Popover/hooks/usePopoverAria.tsx
|
|
3
|
+
function n() {
|
|
4
|
+
let n = t([]);
|
|
5
|
+
return {
|
|
6
|
+
getAriaControls: () => n.current,
|
|
7
|
+
toggleAriaControls: e((e, t = !0) => {
|
|
8
|
+
t && !n.current.includes(e) && (n.current = [...n.current, e]), !t && n.current.includes(e) && (n.current = n.current.filter((t) => e !== t));
|
|
9
|
+
}, [])
|
|
10
|
+
};
|
|
15
11
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as usePopoverAria };
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { useImperativeHandle as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
e.elements.floating
|
|
20
|
-
]
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
g as usePopoverImperativeHandle
|
|
1
|
+
import { useImperativeHandle as e } from "react";
|
|
2
|
+
//#region src/components/Popover/hooks/usePopoverImperativeHandle.tsx
|
|
3
|
+
var t = (t, n, r, i, a) => {
|
|
4
|
+
e(t, () => ({
|
|
5
|
+
getActivator: () => n.elements.domReference,
|
|
6
|
+
getFocusableActivator: a?.getFocusableActivator,
|
|
7
|
+
getContent: () => n.elements.floating,
|
|
8
|
+
setShow: i.setShow,
|
|
9
|
+
show: i.show,
|
|
10
|
+
toggleAriaControls: r.toggleAriaControls
|
|
11
|
+
}), [
|
|
12
|
+
a?.getFocusableActivator,
|
|
13
|
+
i.setShow,
|
|
14
|
+
i.show,
|
|
15
|
+
r.toggleAriaControls,
|
|
16
|
+
n.elements.domReference,
|
|
17
|
+
n.elements.floating
|
|
18
|
+
]);
|
|
25
19
|
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { t as usePopoverImperativeHandle };
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { _ as e } from "../../../floating-ui.react-Dj2ev6bJ.js";
|
|
2
|
+
import { usePopover as t } from "./usePopover.js";
|
|
3
|
+
import { useEffect as n, useId as r } from "react";
|
|
4
|
+
//#region src/components/Popover/hooks/usePopoverItem.tsx
|
|
5
|
+
var i = (i, a = null) => {
|
|
6
|
+
let o = t(), { ref: s, index: c } = e({ label: i }), l = r(), u = o?.setVirtualFocus && c === o?.activeIndex, d = u ? 0 : -1;
|
|
7
|
+
return n(() => {
|
|
8
|
+
u && o?.setVirtualFocus?.(a);
|
|
9
|
+
}, [
|
|
10
|
+
u,
|
|
11
|
+
o,
|
|
12
|
+
a
|
|
13
|
+
]), {
|
|
14
|
+
id: l,
|
|
15
|
+
isActiveInPopover: u,
|
|
16
|
+
ref: s,
|
|
17
|
+
tabIndex: o ? d : void 0
|
|
18
|
+
};
|
|
17
19
|
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { i as usePopoverItem };
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
b as usePopoverNavigation
|
|
1
|
+
import { v as e } from "../../../floating-ui.react-Dj2ev6bJ.js";
|
|
2
|
+
import { useEffect as t, useMemo as n, useRef as r, useState as i } from "react";
|
|
3
|
+
//#region src/components/Popover/hooks/usePopoverNavigation.tsx
|
|
4
|
+
var a = (a, o, s, c, l = 0) => {
|
|
5
|
+
let u = n(() => !!(o && ["menu", "listbox"].includes(o)), [o]), d = n(() => u ? s?.focusItemOnOpen : !1, [s?.focusItemOnOpen, u]), [f, p] = i(null);
|
|
6
|
+
t(() => {
|
|
7
|
+
a.open ? p(d ? l : null) : p(null);
|
|
8
|
+
}, [
|
|
9
|
+
a.open,
|
|
10
|
+
d,
|
|
11
|
+
l
|
|
12
|
+
]);
|
|
13
|
+
let m = r([]), h = r(null);
|
|
14
|
+
return {
|
|
15
|
+
activeIndex: f,
|
|
16
|
+
list: m,
|
|
17
|
+
listNav: e(a, {
|
|
18
|
+
...s,
|
|
19
|
+
activeIndex: f,
|
|
20
|
+
enabled: u,
|
|
21
|
+
focusItemOnHover: !1,
|
|
22
|
+
listRef: m,
|
|
23
|
+
loop: o === "menu",
|
|
24
|
+
onNavigate: (e) => {
|
|
25
|
+
p(e), c?.(e);
|
|
26
|
+
},
|
|
27
|
+
virtualItemRef: h
|
|
28
|
+
}),
|
|
29
|
+
setActiveIndex: p
|
|
30
|
+
};
|
|
32
31
|
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { a as usePopoverNavigation };
|
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
setShow: t,
|
|
21
|
-
setHasInnerRole: (l) => {
|
|
22
|
-
e.current = l;
|
|
23
|
-
},
|
|
24
|
-
show: !!n
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
c as usePopoverState
|
|
1
|
+
import { useControlledState as e } from "../../../hooks/useControlledState.js";
|
|
2
|
+
import { useRef as t } from "react";
|
|
3
|
+
//#region src/components/Popover/hooks/usePopoverState.tsx
|
|
4
|
+
var n = ({ defaultShow: n, show: r }) => {
|
|
5
|
+
let i = t(!1), { isControlled: a, setValue: o, value: s } = e({
|
|
6
|
+
component: "IressPopover",
|
|
7
|
+
defaultValue: n,
|
|
8
|
+
propName: "show",
|
|
9
|
+
value: r
|
|
10
|
+
});
|
|
11
|
+
return {
|
|
12
|
+
hasInnerRole: () => i.current,
|
|
13
|
+
isControlled: a,
|
|
14
|
+
setShow: o,
|
|
15
|
+
setHasInnerRole: (e) => {
|
|
16
|
+
i.current = e;
|
|
17
|
+
},
|
|
18
|
+
show: !!s
|
|
19
|
+
};
|
|
29
20
|
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { n as usePopoverState };
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import { POPOVER_TYPES as e, POPOVER_USE_MAX_HEIGHT as
|
|
2
|
-
import { IressPopover as
|
|
3
|
-
import { usePopoverItem as
|
|
4
|
-
import { IressInputPopover as
|
|
5
|
-
export {
|
|
6
|
-
f as IressInputPopover,
|
|
7
|
-
m as IressPopover,
|
|
8
|
-
e as POPOVER_TYPES,
|
|
9
|
-
p as POPOVER_USE_MAX_HEIGHT,
|
|
10
|
-
P as PopoverCssClass,
|
|
11
|
-
s as PopoverType,
|
|
12
|
-
E as usePopoverItem
|
|
13
|
-
};
|
|
1
|
+
import { POPOVER_TYPES as e, POPOVER_USE_MAX_HEIGHT as t, PopoverCssClass as n, PopoverType as r } from "./Popover.types.js";
|
|
2
|
+
import { IressPopover as i } from "./Popover.js";
|
|
3
|
+
import { usePopoverItem as a } from "./hooks/usePopoverItem.js";
|
|
4
|
+
import { IressInputPopover as o } from "./InputPopover/InputPopover.js";
|
|
5
|
+
export { o as IressInputPopover, i as IressPopover, e as POPOVER_TYPES, t as POPOVER_USE_MAX_HEIGHT, n as PopoverCssClass, r as PopoverType, a as usePopoverItem };
|
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { stringReplacer as m } from "../../helpers/formatting/stringReplacer.js";
|
|
4
|
-
import { c as u } from "../../index-cbHCAGLB.js";
|
|
5
|
-
const v = "ids-progress-v5208", f = "ids-progress--indicator-v5208", n = {
|
|
6
|
-
progress: v,
|
|
7
|
-
indicator: f
|
|
8
|
-
}, h = ({
|
|
9
|
-
className: c,
|
|
10
|
-
max: r = 100,
|
|
11
|
-
min: s = 0,
|
|
12
|
-
sectionTitle: l = "Progress is {{current}} of {{max}}",
|
|
13
|
-
value: e = 0,
|
|
14
|
-
"data-testid": t,
|
|
15
|
-
...d
|
|
16
|
-
}) => {
|
|
17
|
-
const a = Math.min(Math.max(e, s ?? 0), r), p = `${Math.round((e - s) / (r - s) * 100).toString()}%`, o = () => m(l, [
|
|
18
|
-
{ name: "{{current}}", value: String(a) },
|
|
19
|
-
{ name: "{{max}}", value: r.toString() }
|
|
20
|
-
]);
|
|
21
|
-
return /* @__PURE__ */ i(
|
|
22
|
-
"div",
|
|
23
|
-
{
|
|
24
|
-
...d,
|
|
25
|
-
"data-testid": t,
|
|
26
|
-
className: u(c, n.progress),
|
|
27
|
-
children: /* @__PURE__ */ i(
|
|
28
|
-
"div",
|
|
29
|
-
{
|
|
30
|
-
"aria-valuetext": o(),
|
|
31
|
-
"aria-valuemax": r,
|
|
32
|
-
"aria-valuemin": s,
|
|
33
|
-
"aria-valuenow": a,
|
|
34
|
-
"aria-label": o(),
|
|
35
|
-
className: n.indicator,
|
|
36
|
-
role: "progressbar",
|
|
37
|
-
"data-testid": g(t, "progressbar"),
|
|
38
|
-
style: {
|
|
39
|
-
width: p
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
}, P = h;
|
|
46
|
-
export {
|
|
47
|
-
P as IressProgress
|
|
48
|
-
};
|
|
1
|
+
import { t as e } from "../../Progress-BypnLSGF.js";
|
|
2
|
+
export { e as IressProgress };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { IressModalProvider as l } from "../Modal/ModalProvider.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { a as p } from "../../SlideoutProvider-CQh140HM.js";
|
|
6
|
-
import { createPortal as n } from "react-dom";
|
|
7
|
-
const x = ({
|
|
8
|
-
children: e,
|
|
9
|
-
container: r,
|
|
10
|
-
injectPushStyles: o,
|
|
11
|
-
noIcons: i,
|
|
12
|
-
position: m,
|
|
13
|
-
...t
|
|
14
|
-
}) => /* @__PURE__ */ d(l, { container: r, children: [
|
|
15
|
-
/* @__PURE__ */ s(c, { container: r, position: m, children: /* @__PURE__ */ s(
|
|
16
|
-
p,
|
|
17
|
-
{
|
|
18
|
-
container: r,
|
|
19
|
-
injectPushStyles: o,
|
|
20
|
-
...t,
|
|
21
|
-
children: e
|
|
22
|
-
}
|
|
23
|
-
) }),
|
|
24
|
-
!i && n(
|
|
25
|
-
/* @__PURE__ */ s(
|
|
26
|
-
"link",
|
|
27
|
-
{
|
|
28
|
-
rel: "stylesheet",
|
|
29
|
-
href: "https://cdn.iress.com/icons/5.15.4/css/combined.min.css"
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
document.head,
|
|
33
|
-
"design-system-icons"
|
|
34
|
-
)
|
|
35
|
-
] });
|
|
36
|
-
export {
|
|
37
|
-
x as IressProvider
|
|
38
|
-
};
|
|
1
|
+
import { S as e } from "../../main-CTy1XcUn.js";
|
|
2
|
+
export { e as IressProvider };
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
import { u as d } from "../../LoadingSuspense-CuQm3zqO.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "../../hooks/useIdIfNeeded.js";
|
|
6
|
-
import "../../helpers/utility/propagateTestid.js";
|
|
7
|
-
import "../RadioGroup/RadioGroupContext.js";
|
|
8
|
-
import "../../helpers/form/getFormControlValueAsString.js";
|
|
9
|
-
export {
|
|
10
|
-
d as IressRadio
|
|
11
|
-
};
|
|
1
|
+
import { x as e } from "../../main-CTy1XcUn.js";
|
|
2
|
+
export { e as IressRadio };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
children: o
|
|
14
|
-
},
|
|
15
|
-
o || d(e) || t
|
|
16
|
-
))) : null;
|
|
17
|
-
export {
|
|
18
|
-
f as mapRadioGroupOptions
|
|
19
|
-
};
|
|
1
|
+
import { x as e } from "../../../main-CTy1XcUn.js";
|
|
2
|
+
import { idsLogger as t } from "../../../helpers/utility/idsLogger.js";
|
|
3
|
+
import { getFormControlValueAsString as n } from "../../../helpers/form/getFormControlValueAsString.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Radio/helpers/mapRadioGroupOptions.tsx
|
|
6
|
+
var i = (i) => i?.length ? (t("IressRadioGroup: mapRadioGroupOptions has been deprecated and will be removed in a future version of IDS, please map and render the items array directly in your application instead", "warn"), i.map(({ label: t, testId: i, value: a }, o) => /* @__PURE__ */ r(e, {
|
|
7
|
+
value: a,
|
|
8
|
+
"data-testid": i,
|
|
9
|
+
children: t
|
|
10
|
+
}, t || n(a) || o))) : null;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as mapRadioGroupOptions };
|
|
@@ -1,98 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { RadioGroupLayout as C } from "./RadioGroup.types.js";
|
|
4
|
-
import { forwardRef as L, useRef as S, useMemo as W, useImperativeHandle as j } from "react";
|
|
5
|
-
import { useControlledState as D } from "../../hooks/useControlledState.js";
|
|
6
|
-
import { RadioGroupContext as E } from "./RadioGroupContext.js";
|
|
7
|
-
import { useNoDefaultValueInForms as H } from "../Form/hooks/useNoDefaultValueInForms.js";
|
|
8
|
-
const M = "ids-radio-group-v5208", P = "ids-radio-group--stack-v5208", z = "ids-radio-group--block-v5208", A = "ids-radio-group--inline-v5208", J = "ids-radio-group--inline-flex-v5208", K = "ids-radio-group--inline-equal-width-v5208", g = {
|
|
9
|
-
radioGroup: M,
|
|
10
|
-
stack: P,
|
|
11
|
-
"ids-radio": "ids-radio-v5208",
|
|
12
|
-
block: z,
|
|
13
|
-
"ids-radio--label": "ids-radio--label-v5208",
|
|
14
|
-
inline: A,
|
|
15
|
-
inlineFlex: J,
|
|
16
|
-
inlineEqualWidth: K
|
|
17
|
-
};
|
|
18
|
-
function O(r, i, t) {
|
|
19
|
-
return r && i && r.contains(i) ? !1 : i ? !0 : t === r;
|
|
20
|
-
}
|
|
21
|
-
const G = L(
|
|
22
|
-
({
|
|
23
|
-
children: r,
|
|
24
|
-
className: i,
|
|
25
|
-
hiddenRadio: t,
|
|
26
|
-
layout: u = "stack",
|
|
27
|
-
name: a,
|
|
28
|
-
onChange: l,
|
|
29
|
-
onFocus: b,
|
|
30
|
-
onBlur: k,
|
|
31
|
-
required: d,
|
|
32
|
-
role: x = "radiogroup",
|
|
33
|
-
defaultValue: c,
|
|
34
|
-
readonly: p,
|
|
35
|
-
value: I,
|
|
36
|
-
touch: f,
|
|
37
|
-
...h
|
|
38
|
-
}, F) => {
|
|
39
|
-
H({
|
|
40
|
-
component: "IressRadioGroup",
|
|
41
|
-
defaultValue: c
|
|
42
|
-
});
|
|
43
|
-
const s = S(null), e = s.current, { value: m, setValue: n } = D({
|
|
44
|
-
component: "IressRadioGroup",
|
|
45
|
-
defaultValue: c,
|
|
46
|
-
value: I
|
|
47
|
-
}), N = W(
|
|
48
|
-
() => ({
|
|
49
|
-
name: a,
|
|
50
|
-
value: m,
|
|
51
|
-
hiddenRadio: t,
|
|
52
|
-
required: d,
|
|
53
|
-
readonly: p,
|
|
54
|
-
touch: f,
|
|
55
|
-
onChange: (o, v) => {
|
|
56
|
-
n(v), l?.(o, v);
|
|
57
|
-
}
|
|
58
|
-
}),
|
|
59
|
-
[a, m, t, d, p, n, l, f]
|
|
60
|
-
);
|
|
61
|
-
j(F, () => ({
|
|
62
|
-
// React hook form requires the focus, blur, input
|
|
63
|
-
focus: () => e?.focus(),
|
|
64
|
-
blur: () => e?.blur(),
|
|
65
|
-
input: e,
|
|
66
|
-
reset: () => n(void 0)
|
|
67
|
-
}));
|
|
68
|
-
const q = (o) => {
|
|
69
|
-
b?.(o), o.target === s.current && s.current.querySelector("input")?.focus();
|
|
70
|
-
}, y = (o) => {
|
|
71
|
-
O(
|
|
72
|
-
s.current,
|
|
73
|
-
o.relatedTarget,
|
|
74
|
-
o.target
|
|
75
|
-
) && k?.(o);
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ R(E.Provider, { value: N, children: /* @__PURE__ */ R(
|
|
78
|
-
"div",
|
|
79
|
-
{
|
|
80
|
-
...h,
|
|
81
|
-
ref: s,
|
|
82
|
-
role: x,
|
|
83
|
-
className: B(i, g.radioGroup, {
|
|
84
|
-
[g[u]]: !!u
|
|
85
|
-
}),
|
|
86
|
-
onFocus: q,
|
|
87
|
-
onBlur: y,
|
|
88
|
-
children: r
|
|
89
|
-
}
|
|
90
|
-
) });
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
G.displayName = "IressRadioGroup";
|
|
94
|
-
G.Layout = C;
|
|
95
|
-
export {
|
|
96
|
-
G as IressRadioGroup,
|
|
97
|
-
O as shouldFireRadioGroupBlur
|
|
98
|
-
};
|
|
1
|
+
import { n as e, t } from "../../RadioGroup-DtA0WE3l.js";
|
|
2
|
+
export { t as IressRadioGroup, e as shouldFireRadioGroupBlur };
|