@iress-oss/ids-components 5.20.0 → 5.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +378 -0
- package/README.md +1 -1
- package/dist/{AutocompleteNoResults-CogA3XZs.js → AutocompleteNoResults-D_052VQ9.js} +1 -1
- package/dist/ComboboxHiddenInput-BcqYDu3M.js +32 -0
- package/dist/{FieldAppendToLabel-CuSREliL.js → FieldAppendToLabel-CWIO4lAR.js} +5 -5
- package/dist/InputBase-C0zGNQy5.js +56 -0
- package/dist/Loading.module-Bpupt31Y.js +13 -0
- package/dist/LoadingSuspense-BtzikVZk.js +5728 -0
- package/dist/LogoFromSrc-DIJbLzdF.js +59 -0
- package/dist/MenuItem.module-B77HFe8G.js +24 -0
- package/dist/Popover.module-DsySRqqg.js +11 -0
- package/dist/PopoverProvider-DZ92QV8I.js +142 -0
- package/dist/{SelectControl-D1SJlplM.js → SelectControl-B5BG5_Pl.js} +2 -2
- package/dist/SliderTicks-jPoPzYf3.js +74 -0
- package/dist/TabSet.module-D1hz6nN2.js +13 -0
- package/dist/Table.module-DotXvwJq.js +32 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +4 -4
- package/dist/components/Autocomplete/components/AutocompleteInstructions.js +7 -7
- package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +36 -35
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.js +5 -5
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/CloseButton/CloseButton.js +2 -2
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroupProvider.js +22 -22
- package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/helpers/composeIDSCard.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +2 -2
- package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +11 -11
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +74 -75
- package/dist/components/CheckboxMark/CheckboxMark.js +1 -1
- package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
- package/dist/components/Col/Col.js +1 -1
- package/dist/components/Combobox/Combobox.js +4 -4
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +4 -4
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +2 -2
- package/dist/components/Combobox/components/ComboboxResults.js +6 -6
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +4 -4
- package/dist/components/Combobox/hooks/useComboboxInlineCompletion.js +34 -37
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Expander/Expander.js +48 -48
- package/dist/components/Field/Field.js +47 -47
- package/dist/components/Field/FieldGroup/FieldGroup.js +59 -59
- package/dist/components/Field/components/FieldAppendToLabel.js +5 -5
- package/dist/components/Filter/Filter.js +4 -4
- package/dist/components/Filter/components/FilterResetButton.js +4 -4
- package/dist/components/Filter/components/FilterSearch.js +4 -4
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormField/FormField.js +46 -49
- package/dist/components/Form/FormField/FormFieldset.js +42 -45
- package/dist/components/Form/FormField/helpers/getErrorTypeMessage.js +10 -10
- package/dist/components/Form/HookForm/HookForm.js +2 -2
- package/dist/components/Form/components/FormValidationSummary.js +15 -16
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Hide/Hide.js +2 -2
- package/dist/components/Hide/helpers/composeHideClasses.js +4 -4
- package/dist/components/Hide/index.js +1 -1
- package/dist/components/Icon/Icon.js +4 -4
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inline/Inline.js +4 -4
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/Input/ClearButton/ClearButton.js +1 -1
- package/dist/components/Input/Input.js +3 -3
- package/dist/components/Input/InputBase/InputBase.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputCurrency/InputCurrency.js +1 -1
- package/dist/components/InputCurrency/index.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +37 -37
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +4 -4
- package/dist/components/Menu/MenuHeading/MenuHeading.js +3 -3
- package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemAria.js +7 -7
- package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +30 -30
- package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
- package/dist/components/Menu/MenuItem/hooks/useMenuItemInteractions.js +47 -49
- package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +5 -5
- package/dist/components/Menu/MenuText/MenuText.js +5 -5
- package/dist/components/Menu/helpers/mapMenuItems.js +21 -21
- package/dist/components/Menu/hooks/useMenuAria.js +2 -2
- package/dist/components/Menu/hooks/useMenuComposite.js +6 -6
- package/dist/components/Menu/hooks/useMenuRole.js +10 -10
- package/dist/components/Menu/hooks/useMenuStyles.js +18 -18
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/hooks/useIDSProvidedModal.js +8 -8
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Navbar/Navbar.js +3 -3
- package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
- package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
- package/dist/components/Navbar/components/NavbarLogo.js +3 -3
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +20 -20
- package/dist/components/Popover/InputPopover/InputPopover.js +2 -2
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +40 -43
- package/dist/components/Popover/InputPopover/InputPopoverProvider.js +61 -61
- package/dist/components/Popover/Popover.js +3 -3
- package/dist/components/Popover/PopoverProvider.js +2 -2
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverActivator.js +53 -58
- package/dist/components/Popover/components/PopoverContent.js +31 -31
- package/dist/components/Popover/helpers/composeFloatingProps.js +21 -24
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +2 -2
- package/dist/components/Popover/hooks/usePopover.js +1 -1
- package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +23 -26
- package/dist/components/Popover/hooks/usePopoverImperativeHandle.js +17 -17
- package/dist/components/Popover/hooks/usePopoverItem.js +13 -14
- package/dist/components/Popover/hooks/usePopoverNavigation.js +22 -22
- package/dist/components/Progress/Progress.js +2 -2
- package/dist/components/Provider/Provider.js +1 -1
- package/dist/components/Radio/Radio.js +2 -2
- package/dist/components/Radio/helpers/mapRadioGroupOptions.js +8 -8
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +68 -56
- package/dist/components/RadioGroup/index.js +6 -5
- package/dist/components/Readonly/Readonly.js +5 -5
- package/dist/components/Readonly/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.js +3 -3
- package/dist/components/RichSelect/SelectBody/SelectBody.js +4 -4
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +4 -4
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +4 -4
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +2 -2
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +4 -4
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +4 -4
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +3 -3
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +2 -2
- package/dist/components/RichSelect/SelectTags/SelectTags.js +3 -3
- package/dist/components/RichSelect/components/SelectActivator.js +1 -1
- package/dist/components/RichSelect/components/SelectOptions.js +4 -4
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Row/Row.js +4 -4
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/components/SelectControl.js +2 -2
- package/dist/components/Select/components/SelectReadonly.js +4 -4
- package/dist/components/Select/helpers/mapSelectOptions.js +9 -9
- package/dist/components/Select/helpers/nodesToSelectOptions.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +11 -11
- package/dist/components/SkipLink/SkipLink.js +2 -2
- package/dist/components/Slideout/Slideout.js +4 -4
- package/dist/components/Slideout/components/SlideoutInner.js +3 -3
- package/dist/components/Slideout/hooks/useIDSProvidedSlideout.js +7 -7
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +3 -3
- package/dist/components/Slider/components/SliderTicks.js +2 -2
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +52 -52
- package/dist/components/TabSet/TabSet.js +24 -24
- package/dist/components/TabSet/TabSetProvider.js +30 -30
- package/dist/components/TabSet/components/TabSetItem.js +31 -32
- package/dist/components/TabSet/helpers/mapTabs.js +19 -19
- package/dist/components/Table/Table.js +3 -3
- package/dist/components/Table/TableBody/TableBody.js +91 -91
- package/dist/components/Table/TableProvider.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +8 -8
- package/dist/components/Table/components/TableHeader.js +2 -2
- package/dist/components/Table/components/TableHeaderCell.js +1 -1
- package/dist/components/Table/components/TableRows.js +34 -34
- package/dist/components/Table/components/TableSortButton.js +3 -3
- package/dist/components/Table/helpers/composeIDSTableColumnDefs.js +22 -22
- package/dist/components/Table/helpers/composeIDSTableInitialSorting.js +2 -2
- package/dist/components/Table/hooks/useIDSTableColumnSort.js +6 -6
- package/dist/components/Table/hooks/useIDSTableColumnStyles.js +14 -15
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/Tag.js +2 -2
- package/dist/components/Tag/TagInput/TagInput.js +1 -1
- package/dist/components/Tag/components/TagListInput/TagListInput.js +2 -2
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Toaster/Toast/Toast.js +2 -2
- package/dist/components/Toaster/Toast/ToastAnimated.js +3 -3
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +3 -3
- package/dist/components/Toaster/ToasterProvider.js +1 -1
- package/dist/components/Toaster/hooks/useToaster.js +1 -1
- package/dist/components/Toaster/index.js +1 -1
- package/dist/components/Toggle/Toggle.js +25 -25
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +2 -2
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +2 -2
- package/dist/constants.js +1 -1
- package/dist/floating-ui.react-DYBeYtOf.js +3464 -0
- package/dist/fuzzysort-BNka47rs.js +395 -0
- package/dist/helpers/dom/closestCrossShadow.js +16 -17
- package/dist/helpers/dom/focusableElements.js +6 -6
- package/dist/helpers/dom/getActiveElement.js +5 -6
- package/dist/helpers/formatting/formatDateTime.js +8 -7
- package/dist/helpers/label-value/composeLabelValueDescriptor.js +8 -8
- package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
- package/dist/helpers/label-value/getValueFromLabelValues.js +5 -6
- package/dist/helpers/label-value/highlightQueryInLabel.js +4 -7
- package/dist/helpers/label-value/searchLabelValues.js +1 -1
- package/dist/helpers/responsive/getResponsiveLayoutModifiers.js +4 -4
- package/dist/helpers/transition/getTransitionDuration.js +5 -8
- package/dist/hooks/useAriaRelationship.js +19 -21
- package/dist/hooks/useBreakpoint.js +8 -11
- package/dist/hooks/useControlledState.js +40 -40
- package/dist/{index-BQfnxwrU.js → index-BaVtNOfa.js} +41 -51
- package/dist/{index-Dms7F5NM.js → index-DLnR8XTt.js} +1 -11
- package/dist/{index-2QXL0WYc.js → index-cbHCAGLB.js} +2 -7
- package/dist/{index.esm-BnSuefUA.js → index.esm-CL8gh5wr.js} +1 -5
- package/dist/main.js +159 -158
- package/dist/patterns/Loading/Loading.js +1 -1
- package/dist/patterns/Loading/LoadingSuspense.js +1 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +3 -3
- package/dist/patterns/Loading/components/DefaultLoading.js +3 -3
- package/dist/patterns/Loading/components/LongLoading.js +42 -42
- package/dist/patterns/Loading/components/PageLoading.js +3 -3
- package/dist/patterns/Loading/components/StartUpLoading.js +65 -65
- package/dist/patterns/Loading/components/ValidateLoading.js +3 -3
- package/dist/patterns/Loading/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useIDSButtonGroupItem-YYpF5FzH.js +29 -0
- package/package.json +67 -38
- package/dist/ComboboxHiddenInput-gTOjjF3f.js +0 -32
- package/dist/InputBase-BFK9n82f.js +0 -56
- package/dist/Loading.module-g2pe-Gfx.js +0 -13
- package/dist/LoadingSuspense-D9nGJ3gx.js +0 -5773
- package/dist/LogoFromSrc-BnImWqt6.js +0 -59
- package/dist/MenuItem.module-BxcFZeSh.js +0 -24
- package/dist/Popover.module-BKrF_xRW.js +0 -11
- package/dist/PopoverProvider-d3hhpW2k.js +0 -142
- package/dist/SliderTicks-DQN0Ka4d.js +0 -78
- package/dist/TabSet.module-FRUnHgA1.js +0 -13
- package/dist/Table.module-r-RfIeLI.js +0 -32
- package/dist/floating-ui.react-nmA48tb2.js +0 -3463
- package/dist/fuzzysort-eoXOpoo6.js +0 -395
- package/dist/src/components/Alert/Alert.d.ts +0 -9
- package/dist/src/components/Alert/Alert.types.d.ts +0 -41
- package/dist/src/components/Alert/index.d.ts +0 -2
- package/dist/src/components/Autocomplete/Autocomplete.d.ts +0 -3
- package/dist/src/components/Autocomplete/Autocomplete.types.d.ts +0 -144
- package/dist/src/components/Autocomplete/components/AutocompleteInstructions.d.ts +0 -2
- package/dist/src/components/Autocomplete/components/AutocompleteNoResults.d.ts +0 -2
- package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +0 -6
- package/dist/src/components/Autocomplete/index.d.ts +0 -3
- package/dist/src/components/Badge/Badge.d.ts +0 -2
- package/dist/src/components/Badge/Badge.types.d.ts +0 -37
- package/dist/src/components/Badge/index.d.ts +0 -2
- package/dist/src/components/Button/Button.d.ts +0 -2
- package/dist/src/components/Button/Button.types.d.ts +0 -106
- package/dist/src/components/Button/CloseButton/CloseButton.d.ts +0 -3
- package/dist/src/components/Button/CloseButton/CloseButton.types.d.ts +0 -8
- package/dist/src/components/Button/index.d.ts +0 -4
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +0 -2
- package/dist/src/components/ButtonGroup/ButtonGroup.types.d.ts +0 -63
- package/dist/src/components/ButtonGroup/ButtonGroupProvider.d.ts +0 -3
- package/dist/src/components/ButtonGroup/hooks/useButtonGroup.d.ts +0 -1
- package/dist/src/components/ButtonGroup/hooks/useIDSButtonGroupItem.d.ts +0 -2
- package/dist/src/components/ButtonGroup/index.d.ts +0 -3
- package/dist/src/components/Card/Card.d.ts +0 -2
- package/dist/src/components/Card/Card.types.d.ts +0 -91
- package/dist/src/components/Card/components/ButtonCard.d.ts +0 -2
- package/dist/src/components/Card/components/LinkCard.d.ts +0 -2
- package/dist/src/components/Card/helpers/composeIDSCard.d.ts +0 -3
- package/dist/src/components/Card/helpers/composeIDSCardSlots.d.ts +0 -2
- package/dist/src/components/Card/index.d.ts +0 -6
- package/dist/src/components/Checkbox/Checkbox.d.ts +0 -2
- package/dist/src/components/Checkbox/Checkbox.types.d.ts +0 -65
- package/dist/src/components/Checkbox/helpers/mapCheckboxGroupOptions.d.ts +0 -5
- package/dist/src/components/Checkbox/index.d.ts +0 -2
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +0 -2
- package/dist/src/components/CheckboxGroup/CheckboxGroup.types.d.ts +0 -70
- package/dist/src/components/CheckboxGroup/CheckboxGroupContext.d.ts +0 -2
- package/dist/src/components/CheckboxGroup/index.d.ts +0 -2
- package/dist/src/components/CheckboxMark/CheckboxMark.d.ts +0 -2
- package/dist/src/components/CheckboxMark/CheckboxMark.types.d.ts +0 -11
- package/dist/src/components/CheckboxMark/index.d.ts +0 -2
- package/dist/src/components/Col/Col.d.ts +0 -2
- package/dist/src/components/Col/Col.types.d.ts +0 -78
- package/dist/src/components/Col/index.d.ts +0 -2
- package/dist/src/components/Combobox/Combobox.d.ts +0 -6
- package/dist/src/components/Combobox/Combobox.types.d.ts +0 -55
- package/dist/src/components/Combobox/MultiCombobox/MultiCombobox.d.ts +0 -6
- package/dist/src/components/Combobox/MultiCombobox/MultiCombobox.types.d.ts +0 -27
- package/dist/src/components/Combobox/components/ComboboxHiddenInput.d.ts +0 -2
- package/dist/src/components/Combobox/components/ComboboxResults.d.ts +0 -2
- package/dist/src/components/Combobox/components/ComboboxResultsDescriptor.d.ts +0 -2
- package/dist/src/components/Combobox/hooks/useComboboxFlags.d.ts +0 -5
- package/dist/src/components/Combobox/hooks/useComboboxInlineCompletion.d.ts +0 -2
- package/dist/src/components/Combobox/index.d.ts +0 -4
- package/dist/src/components/Container/Container.d.ts +0 -2
- package/dist/src/components/Container/Container.types.d.ts +0 -15
- package/dist/src/components/Container/index.d.ts +0 -2
- package/dist/src/components/Divider/Divider.d.ts +0 -2
- package/dist/src/components/Divider/Divider.types.d.ts +0 -17
- package/dist/src/components/Divider/index.d.ts +0 -2
- package/dist/src/components/Expander/Expander.d.ts +0 -2
- package/dist/src/components/Expander/Expander.types.d.ts +0 -39
- package/dist/src/components/Expander/index.d.ts +0 -2
- package/dist/src/components/Field/Field.d.ts +0 -2
- package/dist/src/components/Field/Field.types.d.ts +0 -34
- package/dist/src/components/Field/FieldGroup/FieldGroup.d.ts +0 -2
- package/dist/src/components/Field/FieldGroup/FieldGroup.types.d.ts +0 -15
- package/dist/src/components/Field/components/FieldAppendToLabel.d.ts +0 -2
- package/dist/src/components/Field/components/FieldLegend.d.ts +0 -2
- package/dist/src/components/Field/helpers/getUniqueItemsByKey.d.ts +0 -1
- package/dist/src/components/Field/index.d.ts +0 -4
- package/dist/src/components/Filter/Filter.d.ts +0 -2
- package/dist/src/components/Filter/Filter.types.d.ts +0 -71
- package/dist/src/components/Filter/components/FilterLabel.d.ts +0 -2
- package/dist/src/components/Filter/components/FilterResetButton.d.ts +0 -2
- package/dist/src/components/Filter/components/FilterSearch.d.ts +0 -3
- package/dist/src/components/Filter/hooks/useFilterFlags.d.ts +0 -7
- package/dist/src/components/Filter/index.d.ts +0 -2
- package/dist/src/components/Form/Form.d.ts +0 -11
- package/dist/src/components/Form/Form.types.d.ts +0 -188
- package/dist/src/components/Form/FormContext.d.ts +0 -8
- package/dist/src/components/Form/FormField/FormField.d.ts +0 -7
- package/dist/src/components/Form/FormField/FormField.types.d.ts +0 -111
- package/dist/src/components/Form/FormField/FormFieldset.d.ts +0 -7
- package/dist/src/components/Form/FormField/helpers/getErrorTypeMessage.d.ts +0 -2
- package/dist/src/components/Form/FormField/helpers/transformCustomRulesToValidateRule.d.ts +0 -3
- package/dist/src/components/Form/HookForm/HookForm.d.ts +0 -5
- package/dist/src/components/Form/components/FormValidationSummary.d.ts +0 -5
- package/dist/src/components/Form/hooks/useNoDefaultValueInForms.d.ts +0 -8
- package/dist/src/components/Form/index.d.ts +0 -6
- package/dist/src/components/HeadingWithDeprecatedFallback/HeadingWithDeprecatedFallback.d.ts +0 -10
- package/dist/src/components/Hide/Hide.d.ts +0 -2
- package/dist/src/components/Hide/Hide.types.d.ts +0 -24
- package/dist/src/components/Hide/helpers/composeHideClasses.d.ts +0 -4
- package/dist/src/components/Hide/index.d.ts +0 -2
- package/dist/src/components/Icon/Icon.d.ts +0 -2
- package/dist/src/components/Icon/Icon.types.d.ts +0 -99
- package/dist/src/components/Icon/index.d.ts +0 -2
- package/dist/src/components/Inline/Inline.d.ts +0 -2
- package/dist/src/components/Inline/Inline.types.d.ts +0 -41
- package/dist/src/components/Inline/index.d.ts +0 -2
- package/dist/src/components/Input/ClearButton/ClearButton.d.ts +0 -4
- package/dist/src/components/Input/Input.d.ts +0 -14
- package/dist/src/components/Input/Input.types.d.ts +0 -73
- package/dist/src/components/Input/InputBase/InputBase.d.ts +0 -9
- package/dist/src/components/Input/InputBase/InputBase.types.d.ts +0 -15
- package/dist/src/components/Input/index.d.ts +0 -3
- package/dist/src/components/InputCurrency/InputCurrency.d.ts +0 -4
- package/dist/src/components/InputCurrency/InputCurrency.types.d.ts +0 -23
- package/dist/src/components/InputCurrency/index.d.ts +0 -2
- package/dist/src/components/Label/Label.d.ts +0 -2
- package/dist/src/components/Label/Label.types.d.ts +0 -15
- package/dist/src/components/Label/LabelBase/LabelBase.d.ts +0 -2
- package/dist/src/components/Label/LabelBase/LabelBase.types.d.ts +0 -35
- package/dist/src/components/Label/index.d.ts +0 -2
- package/dist/src/components/Menu/Menu.d.ts +0 -2
- package/dist/src/components/Menu/Menu.types.d.ts +0 -130
- package/dist/src/components/Menu/MenuDivider/MenuDivider.d.ts +0 -2
- package/dist/src/components/Menu/MenuHeading/MenuHeading.d.ts +0 -2
- package/dist/src/components/Menu/MenuItem/MenuItem.d.ts +0 -2
- package/dist/src/components/Menu/MenuItem/MenuItem.types.d.ts +0 -122
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemAria.d.ts +0 -11
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemButtonProps.d.ts +0 -14
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemComposite.d.ts +0 -20
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemInteractions.d.ts +0 -11
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemRole.d.ts +0 -9
- package/dist/src/components/Menu/MenuProvider.d.ts +0 -3
- package/dist/src/components/Menu/MenuText/MenuText.d.ts +0 -2
- package/dist/src/components/Menu/helpers/mapMenuItems.d.ts +0 -6
- package/dist/src/components/Menu/hooks/useMenu.d.ts +0 -1
- package/dist/src/components/Menu/hooks/useMenuAria.d.ts +0 -11
- package/dist/src/components/Menu/hooks/useMenuComposite.d.ts +0 -18
- package/dist/src/components/Menu/hooks/useMenuRole.d.ts +0 -12
- package/dist/src/components/Menu/hooks/useMenuStyles.d.ts +0 -11
- package/dist/src/components/Menu/index.d.ts +0 -13
- package/dist/src/components/Modal/Modal.d.ts +0 -2
- package/dist/src/components/Modal/Modal.types.d.ts +0 -105
- package/dist/src/components/Modal/ModalProvider.d.ts +0 -3
- package/dist/src/components/Modal/hooks/useIDSProvidedModal.d.ts +0 -5
- package/dist/src/components/Modal/hooks/useModal.d.ts +0 -3
- package/dist/src/components/Modal/index.d.ts +0 -4
- package/dist/src/components/Navbar/Navbar.d.ts +0 -2
- package/dist/src/components/Navbar/Navbar.types.d.ts +0 -65
- package/dist/src/components/Navbar/components/HomeLinkContent.d.ts +0 -7
- package/dist/src/components/Navbar/components/LogoFromSrc.d.ts +0 -6
- package/dist/src/components/Navbar/components/NavbarLogo.d.ts +0 -8
- package/dist/src/components/Navbar/index.d.ts +0 -2
- package/dist/src/components/Panel/Panel.d.ts +0 -2
- package/dist/src/components/Panel/Panel.types.d.ts +0 -59
- package/dist/src/components/Panel/index.d.ts +0 -2
- package/dist/src/components/Placeholder/Placeholder.d.ts +0 -2
- package/dist/src/components/Placeholder/Placeholder.types.d.ts +0 -24
- package/dist/src/components/Placeholder/index.d.ts +0 -2
- package/dist/src/components/Popover/InputPopover/InputPopover.d.ts +0 -3
- package/dist/src/components/Popover/InputPopover/InputPopover.types.d.ts +0 -26
- package/dist/src/components/Popover/InputPopover/InputPopoverActivator.d.ts +0 -2
- package/dist/src/components/Popover/InputPopover/InputPopoverProvider.d.ts +0 -2
- package/dist/src/components/Popover/Popover.d.ts +0 -2
- package/dist/src/components/Popover/Popover.types.d.ts +0 -178
- package/dist/src/components/Popover/PopoverProvider.d.ts +0 -3
- package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +0 -5
- package/dist/src/components/Popover/components/PopoverActivator.d.ts +0 -2
- package/dist/src/components/Popover/components/PopoverContent.d.ts +0 -2
- package/dist/src/components/Popover/helpers/composeFloatingProps.d.ts +0 -15
- package/dist/src/components/Popover/helpers/composePopoverWidth.d.ts +0 -2
- package/dist/src/components/Popover/helpers/handlePopoverTabKey.d.ts +0 -8
- package/dist/src/components/Popover/helpers/hasFocus.d.ts +0 -1
- package/dist/src/components/Popover/helpers/waitUntilTrue.d.ts +0 -1
- package/dist/src/components/Popover/hooks/usePopover.d.ts +0 -1
- package/dist/src/components/Popover/hooks/usePopoverActivatorInteractions.d.ts +0 -15
- package/dist/src/components/Popover/hooks/usePopoverAria.d.ts +0 -6
- package/dist/src/components/Popover/hooks/usePopoverImperativeHandle.d.ts +0 -4
- package/dist/src/components/Popover/hooks/usePopoverItem.d.ts +0 -12
- package/dist/src/components/Popover/hooks/usePopoverNavigation.d.ts +0 -16
- package/dist/src/components/Popover/hooks/usePopoverState.d.ts +0 -10
- package/dist/src/components/Popover/index.d.ts +0 -5
- package/dist/src/components/Progress/Progress.d.ts +0 -2
- package/dist/src/components/Progress/Progress.types.d.ts +0 -23
- package/dist/src/components/Progress/index.d.ts +0 -1
- package/dist/src/components/Provider/Provider.d.ts +0 -20
- package/dist/src/components/Provider/index.d.ts +0 -1
- package/dist/src/components/Radio/Radio.d.ts +0 -2
- package/dist/src/components/Radio/Radio.types.d.ts +0 -45
- package/dist/src/components/Radio/helpers/mapRadioGroupOptions.d.ts +0 -5
- package/dist/src/components/Radio/index.d.ts +0 -2
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +0 -2
- package/dist/src/components/RadioGroup/RadioGroup.types.d.ts +0 -70
- package/dist/src/components/RadioGroup/RadioGroupContext.d.ts +0 -2
- package/dist/src/components/RadioGroup/index.d.ts +0 -2
- package/dist/src/components/Readonly/Readonly.d.ts +0 -3
- package/dist/src/components/Readonly/Readonly.types.d.ts +0 -10
- package/dist/src/components/Readonly/index.d.ts +0 -2
- package/dist/src/components/RichSelect/RichSelect.d.ts +0 -2
- package/dist/src/components/RichSelect/RichSelect.types.d.ts +0 -193
- package/dist/src/components/RichSelect/SelectBody/SelectBody.d.ts +0 -2
- package/dist/src/components/RichSelect/SelectBody/SelectBody.types.d.ts +0 -12
- package/dist/src/components/RichSelect/SelectCreate/SelectCreate.d.ts +0 -2
- package/dist/src/components/RichSelect/SelectCreate/SelectCreate.types.d.ts +0 -29
- package/dist/src/components/RichSelect/SelectHeading/SelectHeading.d.ts +0 -2
- package/dist/src/components/RichSelect/SelectHeading/SelectHeading.types.d.ts +0 -17
- package/dist/src/components/RichSelect/SelectLabel/SelectLabel.d.ts +0 -2
- package/dist/src/components/RichSelect/SelectLabel/SelectLabel.types.d.ts +0 -3
- package/dist/src/components/RichSelect/SelectMenu/SelectMenu.d.ts +0 -2
- package/dist/src/components/RichSelect/SelectMenu/SelectMenu.types.d.ts +0 -49
- package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +0 -2
- package/dist/src/components/RichSelect/SelectSearch/SelectSearch.d.ts +0 -2
- package/dist/src/components/RichSelect/SelectSearch/SelectSearch.types.d.ts +0 -2
- package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.d.ts +0 -3
- package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.types.d.ts +0 -18
- package/dist/src/components/RichSelect/SelectTags/SelectTags.d.ts +0 -2
- package/dist/src/components/RichSelect/SelectTags/SelectTags.types.d.ts +0 -27
- package/dist/src/components/RichSelect/components/SelectActivator.d.ts +0 -7
- package/dist/src/components/RichSelect/components/SelectHiddenInput.d.ts +0 -4
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +0 -8
- package/dist/src/components/RichSelect/hooks/useRichSelectState.d.ts +0 -17
- package/dist/src/components/RichSelect/index.d.ts +0 -19
- package/dist/src/components/Row/Row.d.ts +0 -2
- package/dist/src/components/Row/Row.types.d.ts +0 -42
- package/dist/src/components/Row/index.d.ts +0 -2
- package/dist/src/components/Select/Select.d.ts +0 -2
- package/dist/src/components/Select/Select.types.d.ts +0 -89
- package/dist/src/components/Select/SelectOption/SelectOption.d.ts +0 -2
- package/dist/src/components/Select/components/SelectControl.d.ts +0 -2
- package/dist/src/components/Select/components/SelectReadonly.d.ts +0 -2
- package/dist/src/components/Select/helpers/mapSelectOptions.d.ts +0 -3
- package/dist/src/components/Select/helpers/nodesToSelectOptions.d.ts +0 -11
- package/dist/src/components/Select/index.d.ts +0 -4
- package/dist/src/components/Skeleton/Skeleton.d.ts +0 -2
- package/dist/src/components/Skeleton/Skeleton.types.d.ts +0 -36
- package/dist/src/components/Skeleton/index.d.ts +0 -2
- package/dist/src/components/SkipLink/SkipLink.d.ts +0 -2
- package/dist/src/components/SkipLink/SkipLink.types.d.ts +0 -22
- package/dist/src/components/SkipLink/index.d.ts +0 -2
- package/dist/src/components/Slideout/Slideout.d.ts +0 -2
- package/dist/src/components/Slideout/Slideout.types.d.ts +0 -150
- package/dist/src/components/Slideout/SlideoutProvider.d.ts +0 -3
- package/dist/src/components/Slideout/components/SlideoutInner.d.ts +0 -2
- package/dist/src/components/Slideout/hooks/useIDSProvidedSlideout.d.ts +0 -5
- package/dist/src/components/Slideout/hooks/useSlideout.d.ts +0 -3
- package/dist/src/components/Slideout/index.d.ts +0 -4
- package/dist/src/components/Slider/Slider.d.ts +0 -2
- package/dist/src/components/Slider/Slider.types.d.ts +0 -94
- package/dist/src/components/Slider/components/SliderTicks.d.ts +0 -2
- package/dist/src/components/Slider/index.d.ts +0 -2
- package/dist/src/components/Spinner/Spinner.d.ts +0 -2
- package/dist/src/components/Spinner/Spinner.types.d.ts +0 -13
- package/dist/src/components/Spinner/index.d.ts +0 -2
- package/dist/src/components/Stack/Stack.d.ts +0 -2
- package/dist/src/components/Stack/Stack.types.d.ts +0 -22
- package/dist/src/components/Stack/index.d.ts +0 -2
- package/dist/src/components/TabSet/Tab/Tab.d.ts +0 -2
- package/dist/src/components/TabSet/Tab/Tab.types.d.ts +0 -21
- package/dist/src/components/TabSet/TabSet.d.ts +0 -2
- package/dist/src/components/TabSet/TabSet.types.d.ts +0 -84
- package/dist/src/components/TabSet/TabSetProvider.d.ts +0 -3
- package/dist/src/components/TabSet/components/TabSetItem.d.ts +0 -2
- package/dist/src/components/TabSet/helpers/mapTabs.d.ts +0 -3
- package/dist/src/components/TabSet/hooks/useTabSetItems.d.ts +0 -1
- package/dist/src/components/TabSet/index.d.ts +0 -5
- package/dist/src/components/Table/Table.d.ts +0 -7
- package/dist/src/components/Table/Table.types.d.ts +0 -208
- package/dist/src/components/Table/TableBody/TableBody.d.ts +0 -2
- package/dist/src/components/Table/TableBody/TableBody.types.d.ts +0 -29
- package/dist/src/components/Table/TableContext.d.ts +0 -2
- package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.d.ts +0 -2
- package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.types.d.ts +0 -30
- package/dist/src/components/Table/TableProvider.d.ts +0 -5
- package/dist/src/components/Table/components/TableBodyCell.d.ts +0 -2
- package/dist/src/components/Table/components/TableEmpty.d.ts +0 -2
- package/dist/src/components/Table/components/TableHeader.d.ts +0 -2
- package/dist/src/components/Table/components/TableHeaderCell.d.ts +0 -2
- package/dist/src/components/Table/components/TableRows.d.ts +0 -2
- package/dist/src/components/Table/components/TableSortButton.d.ts +0 -2
- package/dist/src/components/Table/helpers/composeIDSTableColumnDefs.d.ts +0 -2
- package/dist/src/components/Table/helpers/composeIDSTableInitialSorting.d.ts +0 -3
- package/dist/src/components/Table/helpers/findColumnByKey.d.ts +0 -2
- package/dist/src/components/Table/helpers/getFormatFromValue.d.ts +0 -2
- package/dist/src/components/Table/helpers/hasColumns.d.ts +0 -2
- package/dist/src/components/Table/hooks/useIDSTableColumnSort.d.ts +0 -2
- package/dist/src/components/Table/hooks/useIDSTableColumnStyles.d.ts +0 -2
- package/dist/src/components/Table/hooks/useTable.d.ts +0 -1
- package/dist/src/components/Table/index.d.ts +0 -6
- package/dist/src/components/Tag/Tag.d.ts +0 -2
- package/dist/src/components/Tag/Tag.types.d.ts +0 -25
- package/dist/src/components/Tag/TagInput/TagInput.d.ts +0 -3
- package/dist/src/components/Tag/TagInput/TagInput.types.d.ts +0 -21
- package/dist/src/components/Tag/components/TagListInput/TagListInput.d.ts +0 -3
- package/dist/src/components/Tag/components/TagListInput/TagListInput.types.d.ts +0 -45
- package/dist/src/components/Tag/index.d.ts +0 -4
- package/dist/src/components/Text/Text.d.ts +0 -2
- package/dist/src/components/Text/Text.types.d.ts +0 -45
- package/dist/src/components/Text/index.d.ts +0 -2
- package/dist/src/components/Toaster/Toast/Toast.d.ts +0 -3
- package/dist/src/components/Toaster/Toast/Toast.types.d.ts +0 -95
- package/dist/src/components/Toaster/Toast/ToastAnimated.d.ts +0 -2
- package/dist/src/components/Toaster/Toast/ToastIcon.d.ts +0 -6
- package/dist/src/components/Toaster/Toaster.d.ts +0 -2
- package/dist/src/components/Toaster/Toaster.types.d.ts +0 -37
- package/dist/src/components/Toaster/ToasterProvider.d.ts +0 -14
- package/dist/src/components/Toaster/hooks/useToaster.d.ts +0 -9
- package/dist/src/components/Toaster/index.d.ts +0 -5
- package/dist/src/components/Toggle/Toggle.d.ts +0 -2
- package/dist/src/components/Toggle/Toggle.types.d.ts +0 -45
- package/dist/src/components/Toggle/index.d.ts +0 -2
- package/dist/src/components/Tooltip/Tooltip.d.ts +0 -2
- package/dist/src/components/Tooltip/Tooltip.types.d.ts +0 -33
- package/dist/src/components/Tooltip/index.d.ts +0 -2
- package/dist/src/components/ValidationMessage/ValidationBase/ValidationBase.d.ts +0 -2
- package/dist/src/components/ValidationMessage/ValidationBase/ValidationBase.types.d.ts +0 -27
- package/dist/src/components/ValidationMessage/ValidationLink/ValidationLink.d.ts +0 -2
- package/dist/src/components/ValidationMessage/ValidationLink/ValidationLink.types.d.ts +0 -12
- package/dist/src/components/ValidationMessage/ValidationMessage.d.ts +0 -2
- package/dist/src/components/ValidationMessage/ValidationMessage.types.d.ts +0 -13
- package/dist/src/components/ValidationMessage/ValidationSummary/ValidationSummary.d.ts +0 -2
- package/dist/src/components/ValidationMessage/ValidationSummary/ValidationSummary.types.d.ts +0 -27
- package/dist/src/components/ValidationMessage/index.d.ts +0 -6
- package/dist/src/constants.d.ts +0 -123
- package/dist/src/enums.d.ts +0 -215
- package/dist/src/helpers/dom/closestCrossShadow.d.ts +0 -9
- package/dist/src/helpers/dom/domUtils.d.ts +0 -5
- package/dist/src/helpers/dom/focusableElements.d.ts +0 -1
- package/dist/src/helpers/dom/getActiveElement.d.ts +0 -1
- package/dist/src/helpers/dom/hasShadowDom.d.ts +0 -1
- package/dist/src/helpers/form/getFormControlValueAsString.d.ts +0 -2
- package/dist/src/helpers/form/getFormControlValueAsStringIfDefined.d.ts +0 -2
- package/dist/src/helpers/form/getValueAsEvent.d.ts +0 -15
- package/dist/src/helpers/form/isValidFormInputElement.d.ts +0 -1
- package/dist/src/helpers/formatting/capitalizeFirstLetter.d.ts +0 -1
- package/dist/src/helpers/formatting/formatCurrency.d.ts +0 -25
- package/dist/src/helpers/formatting/formatDate.d.ts +0 -5
- package/dist/src/helpers/formatting/formatDateTime.d.ts +0 -3
- package/dist/src/helpers/formatting/formatObjectKey.d.ts +0 -1
- package/dist/src/helpers/formatting/formatPercentage.d.ts +0 -1
- package/dist/src/helpers/formatting/stringReplacer.d.ts +0 -2
- package/dist/src/helpers/formatting/toArray.d.ts +0 -1
- package/dist/src/helpers/formatting/toCSSLengthValue.d.ts +0 -1
- package/dist/src/helpers/label-value/composeLabelValueDescriptor.d.ts +0 -9
- package/dist/src/helpers/label-value/getQueryRangeExclusive.d.ts +0 -8
- package/dist/src/helpers/label-value/getValueFromLabelValues.d.ts +0 -2
- package/dist/src/helpers/label-value/highlightQueryInLabel.d.ts +0 -2
- package/dist/src/helpers/label-value/highlightQueryInLabelValue.d.ts +0 -3
- package/dist/src/helpers/label-value/searchLabelValues.d.ts +0 -2
- package/dist/src/helpers/responsive/getResponsiveLayoutModifiers.d.ts +0 -2
- package/dist/src/helpers/responsive/getResponsivePaddingClasses.d.ts +0 -2
- package/dist/src/helpers/transition/getTransitionDuration.d.ts +0 -1
- package/dist/src/helpers/transition/timeStringToNumber.d.ts +0 -1
- package/dist/src/helpers/utility/generateScopedName.d.ts +0 -8
- package/dist/src/helpers/utility/idsLogger.d.ts +0 -3
- package/dist/src/helpers/utility/propagateTestid.d.ts +0 -1
- package/dist/src/hooks/index.d.ts +0 -4
- package/dist/src/hooks/useAriaRelationship.d.ts +0 -11
- package/dist/src/hooks/useBreakpoint.d.ts +0 -11
- package/dist/src/hooks/useControlledState.d.ts +0 -22
- package/dist/src/hooks/useIdIfNeeded.d.ts +0 -2
- package/dist/src/hooks/useResponsiveProps.d.ts +0 -19
- package/dist/src/interfaces.d.ts +0 -68
- package/dist/src/main.d.ts +0 -58
- package/dist/src/patterns/Loading/Loading.d.ts +0 -47
- package/dist/src/patterns/Loading/LoadingSuspense.d.ts +0 -73
- package/dist/src/patterns/Loading/components/ComponentLoading.d.ts +0 -53
- package/dist/src/patterns/Loading/components/DefaultLoading.d.ts +0 -27
- package/dist/src/patterns/Loading/components/LongLoading.d.ts +0 -60
- package/dist/src/patterns/Loading/components/PageLoading.d.ts +0 -41
- package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +0 -67
- package/dist/src/patterns/Loading/components/ValidateLoading.d.ts +0 -38
- package/dist/src/patterns/Loading/hooks/useEstimatedProgressValue.d.ts +0 -11
- package/dist/src/patterns/Loading/hooks/useShouldRenderLoading.d.ts +0 -10
- package/dist/src/patterns/Loading/hooks/useShowIndicator.d.ts +0 -9
- package/dist/src/patterns/Loading/hooks/useSuspenseResource.d.ts +0 -17
- package/dist/src/patterns/Loading/index.d.ts +0 -2
- package/dist/src/types.d.ts +0 -21
- package/dist/useIDSButtonGroupItem-VfKx4O-O.js +0 -30
- package/dist/vite.config.d.ts +0 -2
- package/dist/vitest.config.d.ts +0 -2
- package/dist/vitest.setup.d.ts +0 -0
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { StartUpLoadingProps } from './components/StartUpLoading';
|
|
2
|
-
import { DefaultLoadingProps } from './components/DefaultLoading';
|
|
3
|
-
import { ValidateLoadingProps } from './components/ValidateLoading';
|
|
4
|
-
import { ComponentLoadingProps } from './components/ComponentLoading';
|
|
5
|
-
import { PageLoadingProps } from './components/PageLoading';
|
|
6
|
-
import { LongLoadingProps } from './components/LongLoading';
|
|
7
|
-
export type IressLoadingProps = StartUpLoadingProps | ValidateLoadingProps | PageLoadingProps | ComponentLoadingProps | LongLoadingProps | DefaultLoadingProps;
|
|
8
|
-
/**
|
|
9
|
-
* A pattern component that has in-built loading states for different contexts, designed to provide a consistent user experience across Iress applications.
|
|
10
|
-
*
|
|
11
|
-
* The `pattern` prop is used to determine the type of loading state to display. The following patterns are available:
|
|
12
|
-
*
|
|
13
|
-
* - `component`: Loading pattern for a component that is expected to take some time to load, but has content around it that can be loaded before it (hence not part of page pattern). It also supports updating the state of the component via a slightly different UI. Examples:
|
|
14
|
-
* - Charts that can be updated in real-time
|
|
15
|
-
* - Tables that load many records and may update in real-time
|
|
16
|
-
* - `long`: Loading pattern for a component that is expected to take longer than 10 seconds to load. It displays a checklist of items that are being loaded. Examples:
|
|
17
|
-
* - Calling multiple slow APIs to load data
|
|
18
|
-
* - Loading results from AI
|
|
19
|
-
* - Processing a large amount of data as a queue (eg. bulk uploading or large media file uploads)
|
|
20
|
-
* - `page`: Loading pattern for a page, with out-of-the-box skeleton templates. Examples:
|
|
21
|
-
* - Dashboard page with multiple filters/panels
|
|
22
|
-
* - Search page with multiple filters and search results
|
|
23
|
-
* - Detail page for a record
|
|
24
|
-
* - Form page
|
|
25
|
-
* - Article page
|
|
26
|
-
* - `start-up`: Loading pattern when the application is first loaded. Examples:
|
|
27
|
-
* - Loading an application for the first time
|
|
28
|
-
* - Switching from a different application to a new application
|
|
29
|
-
* - Switching from a client's website to an Iress application
|
|
30
|
-
* - Switching themes
|
|
31
|
-
* - `validate`: Loading pattern when validating user input. Examples:
|
|
32
|
-
* - Submitting a form
|
|
33
|
-
* - Saving a record
|
|
34
|
-
*
|
|
35
|
-
* If no `pattern` is provided, it will use the default experience, which only displays a message after a certain amount of time to help stop drop-offs due to uncommon loading times.
|
|
36
|
-
*/
|
|
37
|
-
export declare const IressLoading: {
|
|
38
|
-
({ pattern, ...restProps }: IressLoadingProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
/**
|
|
40
|
-
* This hook is used to smooth the loading experience by delaying the loading indicator being removed after the loading of an element finishes.
|
|
41
|
-
*
|
|
42
|
-
* @param isLoaded - A boolean value that determines if the component waiting to be loaded has finished loading.
|
|
43
|
-
* @param delay - Once a component has loaded, how long should the loading indicator be displayed for.
|
|
44
|
-
* @returns A boolean value that determines whether the `IressLoading` component is safe to be removed.
|
|
45
|
-
*/
|
|
46
|
-
shouldRender: (isLoaded: boolean, delay?: number, startFrom?: number, avoidDelayTimeout?: number) => boolean;
|
|
47
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StartUpLoadingProps } from './components/StartUpLoading';
|
|
3
|
-
import { ValidateLoadingProps } from './components/ValidateLoading';
|
|
4
|
-
import { PageLoadingProps } from './components/PageLoading';
|
|
5
|
-
import { ComponentLoadingProps } from './components/ComponentLoading';
|
|
6
|
-
import { LongLoadingProps } from './components/LongLoading';
|
|
7
|
-
import { DefaultLoadingProps } from './components/DefaultLoading';
|
|
8
|
-
export type IressLoadingSuspenseProps = (Omit<StartUpLoadingProps, 'loaded'> | ValidateLoadingProps | Omit<PageLoadingProps, 'loaded'> | Omit<ComponentLoadingProps, 'loaded'> | Omit<LongLoadingProps, 'loaded'> | DefaultLoadingProps) & {
|
|
9
|
-
/**
|
|
10
|
-
* The content that will be rendered inside the Suspense boundary.
|
|
11
|
-
* Typically includes lazy-loaded components and components that use the `use` or `IressLoadingSuspense.use` hook.
|
|
12
|
-
*/
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Duration (in milliseconds) to delay unmounting the fallback
|
|
16
|
-
* to allow the fade-out animation to complete.
|
|
17
|
-
* By default it uses the default delay of the pattern.
|
|
18
|
-
*/
|
|
19
|
-
delay?: number;
|
|
20
|
-
/**
|
|
21
|
-
* By default it uses the default delay of the pattern.
|
|
22
|
-
*/
|
|
23
|
-
onLoaded?: () => void;
|
|
24
|
-
/**
|
|
25
|
-
* Duration (in milliseconds) before showing the loading pattern.
|
|
26
|
-
* Default is 500ms, meaning a user will not even see the loading indicator if the page loads before this time.
|
|
27
|
-
*/
|
|
28
|
-
startFrom?: number;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* A pattern component that has in-built loading states for different contexts, designed to provide a consistent user experience across Iress applications.
|
|
32
|
-
*
|
|
33
|
-
* The `pattern` prop is used to determine the type of loading state to display. The following patterns are available:
|
|
34
|
-
*
|
|
35
|
-
* - `component`: Loading pattern for a component that is expected to take some time to load, but has content around it that can be loaded before it (hence not part of page pattern). It also supports updating the state of the component via a slightly different UI. Examples:
|
|
36
|
-
* - Charts that can be updated in real-time
|
|
37
|
-
* - Tables that load many records and may update in real-time
|
|
38
|
-
* - `long`: Loading pattern for a component that is expected to take longer than 10 seconds to load. It displays a checklist of items that are being loaded. Examples:
|
|
39
|
-
* - Calling multiple slow APIs to load data
|
|
40
|
-
* - Loading results from AI
|
|
41
|
-
* - Processing a large amount of data as a queue (eg. bulk uploading or large media file uploads)
|
|
42
|
-
* - `page`: Loading pattern for a page, with out-of-the-box skeleton templates. Examples:
|
|
43
|
-
* - Dashboard page with multiple filters/panels
|
|
44
|
-
* - Search page with multiple filters and search results
|
|
45
|
-
* - Detail page for a record
|
|
46
|
-
* - Form page
|
|
47
|
-
* - Article page
|
|
48
|
-
* - `start-up`: Loading pattern when the application is first loaded. Examples:
|
|
49
|
-
* - Loading an application for the first time
|
|
50
|
-
* - Switching from a different application to a new application
|
|
51
|
-
* - Switching from a client's website to an Iress application
|
|
52
|
-
* - Switching themes
|
|
53
|
-
* - `validate`: Loading pattern when validating user input. Examples:
|
|
54
|
-
* - Submitting a form
|
|
55
|
-
* - Saving a record
|
|
56
|
-
*
|
|
57
|
-
* If no `pattern` is provided, it will use the default experience, which only displays a message after a certain amount of time to help stop drop-offs due to uncommon loading times.
|
|
58
|
-
*/
|
|
59
|
-
export declare const IressLoadingSuspense: {
|
|
60
|
-
({ children, delay: delayProp, onLoaded, pattern, startFrom: startFromProp, ...restProps }: IressLoadingSuspenseProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
/**
|
|
62
|
-
* A polyfill for the `use` hook in React 19. It allows you to suspend a component until the resource (Promise) is resolved.
|
|
63
|
-
* **Note:** For those using React 19, import the `use` hook from React instead of using this polyfill.
|
|
64
|
-
* @see https://react.dev/reference/react/use
|
|
65
|
-
*/
|
|
66
|
-
use: <T>(fetcher: () => Promise<T>) => T;
|
|
67
|
-
/**
|
|
68
|
-
* Uncache the resource (Promise) that is being used in the `use` hook.
|
|
69
|
-
* **Note:** For those using React 19, import the `use` hook from React instead of using this method.
|
|
70
|
-
* @see https://react.dev/reference/react/use
|
|
71
|
-
*/
|
|
72
|
-
uncache: (fetcher: () => Promise<unknown>, timeout?: number) => void;
|
|
73
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { IressHTMLAttributes } from '../../../interfaces';
|
|
3
|
-
declare const templates: {
|
|
4
|
-
chart: import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
export interface ComponentLoadingProps extends IressHTMLAttributes {
|
|
7
|
-
/**
|
|
8
|
-
* The chart that is being loaded for the first time or being refreshed/updated.
|
|
9
|
-
*/
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* If set to `true`, will hide the skeleton and display the chart.
|
|
13
|
-
*/
|
|
14
|
-
loaded?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Use `pattern="component"` for the following use cases:
|
|
17
|
-
* - Component that is expected to be slow to load, such as a chart, table or large graphic.
|
|
18
|
-
* - Component that can be refreshed/updated with new data.
|
|
19
|
-
*/
|
|
20
|
-
pattern?: 'component';
|
|
21
|
-
/**
|
|
22
|
-
* Only screen readers will see this message, it is changed to the `message` after the delay.
|
|
23
|
-
* @default 'Loading...'
|
|
24
|
-
*/
|
|
25
|
-
screenReaderText?: ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* Which template to use as the skeleton, or you can use a ReactNode to customise the skeleton completely.
|
|
28
|
-
* @default 'chart'
|
|
29
|
-
*/
|
|
30
|
-
template?: keyof typeof templates | Exclude<ReactNode, string | number | boolean | null>;
|
|
31
|
-
/**
|
|
32
|
-
* Set the timeouts for showing the skeleton and update messages.
|
|
33
|
-
*/
|
|
34
|
-
timeout?: {
|
|
35
|
-
/**
|
|
36
|
-
* The time in milliseconds before the skeleton is displayed.
|
|
37
|
-
* @default 0
|
|
38
|
-
*/
|
|
39
|
-
skeleton?: number;
|
|
40
|
-
/**
|
|
41
|
-
* The time in milliseconds before the update message is displayed.
|
|
42
|
-
* @default 1000
|
|
43
|
-
*/
|
|
44
|
-
update?: number;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Set the chart to be updated. If a `ReactNode` is provided, it will be displayed as the message.
|
|
48
|
-
* If set to `true`, will display the default message `Updating...`.
|
|
49
|
-
*/
|
|
50
|
-
update?: ReactNode;
|
|
51
|
-
}
|
|
52
|
-
export declare const ComponentLoading: ({ children, className, loaded, screenReaderText, template, timeout, update, ...restProps }: ComponentLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { IressHTMLAttributes } from '../../../interfaces';
|
|
3
|
-
export interface DefaultLoadingProps extends IressHTMLAttributes {
|
|
4
|
-
/**
|
|
5
|
-
* Message to display when the loading time is longer than expected.
|
|
6
|
-
* @default 'This is taking longer than expected...'
|
|
7
|
-
*/
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Only screen readers will see this message, it is changed to the `children` message after the delay.
|
|
11
|
-
* @default 'Loading...'
|
|
12
|
-
*/
|
|
13
|
-
screenReaderText?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Do not set the `pattern` prop when no other pattern can be applied. It will only show the loading message after a delay, and is intended for use when loading is not expected to take a long time.
|
|
16
|
-
* Example use cases:
|
|
17
|
-
* - Navigating between different routes
|
|
18
|
-
* - Calling an API within the page that does not require a loading state
|
|
19
|
-
*/
|
|
20
|
-
pattern?: 'default';
|
|
21
|
-
/**
|
|
22
|
-
* Delay in milliseconds before the message is displayed.
|
|
23
|
-
* @default 3000
|
|
24
|
-
*/
|
|
25
|
-
timeout?: number;
|
|
26
|
-
}
|
|
27
|
-
export declare const DefaultLoading: ({ children, className, screenReaderText, timeout, ...restProps }: DefaultLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { IressProgressProps } from '../../../components/Progress/Progress.types';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { IressHTMLAttributes } from '../../../interfaces';
|
|
4
|
-
export interface LongLoadingProps extends IressHTMLAttributes {
|
|
5
|
-
/**
|
|
6
|
-
* The children are displayed while loading. This will be displayed above the progress bar and checklist.
|
|
7
|
-
*/
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* An error to display if the loading fails. This will override the `messageList` and show an error message instead.
|
|
11
|
-
*/
|
|
12
|
-
error?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Estimated time in milliseconds for the loading to finish.
|
|
15
|
-
* @default 10000
|
|
16
|
-
*/
|
|
17
|
-
estimatedFinishTime?: number;
|
|
18
|
-
/**
|
|
19
|
-
* If set to `true`, will start hiding the loading indicator. It is recommended to use this prop if you are using the `IressLoading.shouldRender` hook to achieve a smooth loading experience.
|
|
20
|
-
*/
|
|
21
|
-
loaded?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* A checklist to display while loading. The key is the time when you want the item to be checked.
|
|
24
|
-
*/
|
|
25
|
-
messageList: Record<number, ReactNode>;
|
|
26
|
-
/**
|
|
27
|
-
* The long loading pattern will display a checklist of items that are being loaded.
|
|
28
|
-
*
|
|
29
|
-
* Use `pattern="long"` for the following use cases:
|
|
30
|
-
* - Calling multiple slow APIs to load data
|
|
31
|
-
* - Loading results from AI
|
|
32
|
-
* - Processing a large amount of data as a queue (eg. bulk uploading or large media file uploads)
|
|
33
|
-
*/
|
|
34
|
-
pattern?: 'long';
|
|
35
|
-
/**
|
|
36
|
-
* If provided, will use this to set the `value` of the progress bar. If not provided, will use the `estimatedFinishTime` to calculate the progress.
|
|
37
|
-
*/
|
|
38
|
-
progress?: IressProgressProps['value'];
|
|
39
|
-
/**
|
|
40
|
-
* This is a render prop that allows you to override the default progress rendering.
|
|
41
|
-
* This is useful if you want to use a different progress component or if you want to add additional props to the progress bar.
|
|
42
|
-
*/
|
|
43
|
-
renderProgress?: (props: Pick<IressProgressProps, 'className' | 'min' | 'max' | 'sectionTitle' | 'value'>) => ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* Set the timeouts for showing the progress bar and message.
|
|
46
|
-
*/
|
|
47
|
-
timeout?: {
|
|
48
|
-
/**
|
|
49
|
-
* The time in milliseconds before this component begins to fade out (if `loaded` is set to `true`).
|
|
50
|
-
* @default 1300
|
|
51
|
-
*/
|
|
52
|
-
loaded?: number;
|
|
53
|
-
/**
|
|
54
|
-
* The time in milliseconds before the checklist is displayed.
|
|
55
|
-
* @default 500
|
|
56
|
-
*/
|
|
57
|
-
message?: number;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
export declare const LongLoading: ({ children, className, error, estimatedFinishTime, loaded, messageList, progress, renderProgress, timeout, ...restProps }: LongLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { IressHTMLAttributes } from '../../../interfaces';
|
|
3
|
-
declare const templates: {
|
|
4
|
-
page: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
form: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
dashboard: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export interface PageLoadingProps extends Omit<IressHTMLAttributes, 'children'> {
|
|
9
|
-
/**
|
|
10
|
-
* If provided, will switch the skeleton to this template. Use when you have critical content that can be displayed while loading to allow the user to see some content while the rest is loading.
|
|
11
|
-
*/
|
|
12
|
-
critical?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* If set to `true`, will start hiding the loading indicator. It is recommended to use this prop if you are using the `IressLoading.shouldRender` hook to achieve a smooth loading experience.
|
|
15
|
-
*/
|
|
16
|
-
loaded?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Use `pattern="page"` for the following use cases:
|
|
19
|
-
* - Detail page for a record
|
|
20
|
-
* - Form page
|
|
21
|
-
* - Article page
|
|
22
|
-
*/
|
|
23
|
-
pattern?: 'page';
|
|
24
|
-
/**
|
|
25
|
-
* Only screen readers will see this message.
|
|
26
|
-
* @default 'Loading...'
|
|
27
|
-
*/
|
|
28
|
-
screenReaderText?: ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* Which template to use as the skeleton, or you can use a ReactNode to customise the skeleton completely.
|
|
31
|
-
* @default 'page'
|
|
32
|
-
*/
|
|
33
|
-
template?: keyof typeof templates | Exclude<ReactNode, string | number | boolean | null>;
|
|
34
|
-
/**
|
|
35
|
-
* Delay in milliseconds before the skeleton is displayed.
|
|
36
|
-
* @default 500
|
|
37
|
-
*/
|
|
38
|
-
timeout?: number;
|
|
39
|
-
}
|
|
40
|
-
export declare const PageLoading: ({ className, critical, loaded, screenReaderText, template, timeout, ...restProps }: PageLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export {};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { IressProgressProps } from '../../../components/Progress/Progress.types';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { IressHTMLAttributes } from '../../../interfaces';
|
|
4
|
-
export interface StartUpLoadingProps extends IressHTMLAttributes {
|
|
5
|
-
/**
|
|
6
|
-
* Message to display when the loading time is longer than expected.
|
|
7
|
-
* @default 'One moment please...'
|
|
8
|
-
*/
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Estimated time in milliseconds for the loading to finish.
|
|
12
|
-
* @default 3000
|
|
13
|
-
*/
|
|
14
|
-
estimatedFinishTime?: number;
|
|
15
|
-
/**
|
|
16
|
-
* If set to `true`, will start hiding the loading indicator. It is recommended to use this prop if you are using the `IressLoading.shouldRender` hook to achieve a smooth loading experience.
|
|
17
|
-
*/
|
|
18
|
-
loaded?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* A message list to display while loading. The key is the time when you want the message to change to this message.
|
|
21
|
-
* If using a message list, the `children` will not be displayed.
|
|
22
|
-
*/
|
|
23
|
-
messageList?: Record<number, ReactNode>;
|
|
24
|
-
/**
|
|
25
|
-
* Use `pattern="start-up"` for the following use cases:
|
|
26
|
-
* - Loading an application for the first time
|
|
27
|
-
* - Switching from a different application to a new application
|
|
28
|
-
* - Switching from a client's website to an Iress application
|
|
29
|
-
* - Switching themes
|
|
30
|
-
*/
|
|
31
|
-
pattern?: 'start-up';
|
|
32
|
-
/**
|
|
33
|
-
* If provided, will use this to set the `value` of the progress bar. If not provided, will use the `estimatedFinishTime` to calculate the progress.
|
|
34
|
-
*/
|
|
35
|
-
progress?: IressProgressProps['value'];
|
|
36
|
-
/**
|
|
37
|
-
* This is a render prop that allows you to override the default progress rendering.
|
|
38
|
-
* This is useful if you want to use a different progress component or if you want to add additional props to the progress bar.
|
|
39
|
-
*/
|
|
40
|
-
renderProgress?: (props: Pick<IressProgressProps, 'className' | 'min' | 'max' | 'sectionTitle' | 'value'>) => ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* Only screen readers will see this message, it is changed to the `children` message after the delay.
|
|
43
|
-
* @default 'Loading...'
|
|
44
|
-
*/
|
|
45
|
-
screenReaderText?: ReactNode;
|
|
46
|
-
/**
|
|
47
|
-
* Set the timeouts for showing the progress bar and message.
|
|
48
|
-
*/
|
|
49
|
-
timeout?: {
|
|
50
|
-
/**
|
|
51
|
-
* The time in milliseconds before this component begins to fade out (if `loaded` is set to `true`).
|
|
52
|
-
* @default 200
|
|
53
|
-
*/
|
|
54
|
-
loaded?: number;
|
|
55
|
-
/**
|
|
56
|
-
* The time in milliseconds before the message message is displayed.
|
|
57
|
-
* @default 2500
|
|
58
|
-
*/
|
|
59
|
-
message?: number;
|
|
60
|
-
/**
|
|
61
|
-
* The time in milliseconds before the progress bar is displayed.
|
|
62
|
-
* @default 500
|
|
63
|
-
*/
|
|
64
|
-
progress?: number;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export declare const StartUpLoading: ({ className, children, "data-testid": dataTestId, estimatedFinishTime, loaded, messageList, progress, renderProgress, screenReaderText, timeout, ...restProps }: StartUpLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { IressButtonProps } from '../../../components/Button';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { IressHTMLAttributes } from '../../../interfaces';
|
|
4
|
-
export interface ValidateLoadingProps extends IressHTMLAttributes {
|
|
5
|
-
/**
|
|
6
|
-
* When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
|
|
7
|
-
*/
|
|
8
|
-
loading?: IressButtonProps['loading'];
|
|
9
|
-
/**
|
|
10
|
-
* Set the message to be displayed when the button is in the loading state.
|
|
11
|
-
* @default 'This is taking longer than expected...'
|
|
12
|
-
*/
|
|
13
|
-
message?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Use `pattern="validate"` for the following use cases:
|
|
16
|
-
* - Submitting a form
|
|
17
|
-
* - Saving a record
|
|
18
|
-
*/
|
|
19
|
-
pattern?: 'validate';
|
|
20
|
-
/**
|
|
21
|
-
* This sets where the loading message will be displayed.
|
|
22
|
-
* - `bottom` - The loading message will be displayed below the button. It will be absolute positioned.
|
|
23
|
-
* - `top` - The loading message will be displayed above the button. It will be absolute positioned.
|
|
24
|
-
* - `right` - The loading message will be displayed to the right of the button. It will be inline positioned.
|
|
25
|
-
*/
|
|
26
|
-
position?: 'bottom' | 'top' | 'right';
|
|
27
|
-
/**
|
|
28
|
-
* This is a render prop that allows you to override the default button rendering.
|
|
29
|
-
* This is useful if you want to use a different button component or if you want to add additional props to the button.
|
|
30
|
-
*/
|
|
31
|
-
renderButton?: (props: Pick<IressButtonProps, 'className' | 'loading'>) => ReactNode;
|
|
32
|
-
/**
|
|
33
|
-
* The time in milliseconds before the loading message is displayed.
|
|
34
|
-
* @default 2500
|
|
35
|
-
*/
|
|
36
|
-
timeout?: number;
|
|
37
|
-
}
|
|
38
|
-
export declare const ValidateLoading: ({ children, className, loading, message, pattern, position, renderButton, timeout, ...restProps }: ValidateLoadingProps) => string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IressProgressProps } from '../../../components/Progress/Progress.types';
|
|
2
|
-
/**
|
|
3
|
-
* This hook is used to calculate the estimated progress of a loading component, allowing you to show an animated progress bar even when real progress is not available.
|
|
4
|
-
*
|
|
5
|
-
* @param estimatedFinishTime - The estimated time in milliseconds for the loading to finish.
|
|
6
|
-
* @param isLoaded - A boolean value that determines if the component waiting to be loaded has finished loading.
|
|
7
|
-
* @param progress - If provided, will use this as the progress value. If not provided, will use the `estimatedFinishTime` to calculate the progress.
|
|
8
|
-
* @param latestMessageTimecode - The latest timecode of the message list. It helps us determine if still in progress, particularly when its higher than the estimated finish time.
|
|
9
|
-
* @returns A number value that represents the current progress of the loading component.
|
|
10
|
-
*/
|
|
11
|
-
export declare const useEstimatedProgressValue: (estimatedFinishTime: number, isLoaded?: boolean, progress?: IressProgressProps["value"], latestMessageTimecode?: number) => number;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This hook is used to smooth the loading experience by delaying the loading indicator being removed after the loading of an element finishes, as well as avoiding the indicator completely if the loading is too quick.
|
|
3
|
-
*
|
|
4
|
-
* @param isLoaded - A boolean value that determines if the component waiting to be loaded has finished loading.
|
|
5
|
-
* @param delay - Once a component has loaded, how long should the loading indicator be displayed for. This is useful to allow the loading indicator to animate out.
|
|
6
|
-
* @param startFrom - If a component is still loading after this time in milliseconds, you should show the loading message. Default is 500ms, meaning a user will not even see the loading indicator if the page loads before this time.
|
|
7
|
-
* @param avoidDelayTimeout - If the component has a start up animation, this is the time in milliseconds that we will avoid the delay timeout for. This is useful to speed up the loading indicator removal if the component loaded before the first half of an animation finishes.
|
|
8
|
-
* @returns A boolean value that determines whether the `IressLoading` component should be rendered.
|
|
9
|
-
*/
|
|
10
|
-
export declare const useShouldRenderLoading: (isLoaded: boolean, delay?: number, startFrom?: number, avoidDelayTimeout?: number) => boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This hook is used to delay the indicator being shown and removed during the loading process.
|
|
3
|
-
*
|
|
4
|
-
* @param isLoaded - A boolean value that determines if the component waiting to be loaded has finished loading.
|
|
5
|
-
* @param showDelay - Once a component has started loading, how long long we should wait before showing the loading indicator. This is useful to avoid flickering if the component loads quickly.
|
|
6
|
-
* @param hideDelay - Once a component has loaded, how long we should wait before removing the loading indicator. This is useful to allow the loading indicator to animate out.
|
|
7
|
-
* @returns A boolean value that determines whether the loading indicator should be shown.
|
|
8
|
-
*/
|
|
9
|
-
export declare const useShowIndicator: (isLoaded?: boolean, showDelay?: number, hideDelay?: number) => boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is a polyfill for the `use` hook in React 19, allowing you to suspend a component until the resource (Promise) is resolved.
|
|
3
|
-
* **Note:** For those using React 19, import the `use` hook from React instead of using this polyfill.
|
|
4
|
-
* @param promise The promise to suspend on. Once it resolves, the component will re-render with the resolved value.
|
|
5
|
-
* @returns {T | Error | Promise<void>} If the promise has not resolved, it will throw the promise, causing the component to suspend. If it has resolved successfully, it will return the result. If it has errored, it will throw the error.
|
|
6
|
-
* @see https://react.dev/reference/react/use
|
|
7
|
-
*/
|
|
8
|
-
export declare const useSuspenseResource: <T>(fetcher: () => Promise<T>) => T;
|
|
9
|
-
/**
|
|
10
|
-
* Our polyfill is not as smart as React's `use` hook, so we need to manually uncache the resource after a certain timeout.
|
|
11
|
-
* You usually need this if you are calling parameters with your `useSuspenseResource` hook (eg. `useSuspenseResource(() => fetch('/api/data'))`).
|
|
12
|
-
* **Note:** For those using React 19, import the `use` hook from React instead of using this polyfill.
|
|
13
|
-
* @param fetcher The function that returns a promise to suspend on (usually an API call).
|
|
14
|
-
* @param timeout The time in milliseconds after which the resource will be uncached. Default is 1000ms, usually enough to avoid flickering.
|
|
15
|
-
* @see https://react.dev/reference/react/use
|
|
16
|
-
*/
|
|
17
|
-
export declare const uncacheSuspenseResource: (fetcher: () => Promise<unknown>, timeout?: number) => void;
|
package/dist/src/types.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BREAKPOINTS, DISPLAY_MODES, FLOATING_UI_ALIGNS, FORM_ELEMENT_WIDTHS, GUTTER_SIZES, HEADING_LEVELS, HORIZONTAL_ALIGNS, LOGGER_LEVELS, PADDING_SIZES, SYSTEM_VALIDATION_STATUSES, TEXT_ALIGNS, TEXT_MODES, TEXT_VARIANTS, VERTICAL_ALIGNS } from './constants';
|
|
2
|
-
import { VariablePaddingSize } from './interfaces';
|
|
3
|
-
import { PaddingSize } from './enums';
|
|
4
|
-
export type Breakpoints = (typeof BREAKPOINTS)[number];
|
|
5
|
-
export type DisplayModes = (typeof DISPLAY_MODES)[number];
|
|
6
|
-
export type FloatingUIContainer = HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
|
|
7
|
-
export type FloatingUIAligns = (typeof FLOATING_UI_ALIGNS)[number];
|
|
8
|
-
export type FormControlValue = string | number | boolean | null;
|
|
9
|
-
export type FormElementWidths = (typeof FORM_ELEMENT_WIDTHS)[number];
|
|
10
|
-
export type GutterSizes = (typeof GUTTER_SIZES)[number];
|
|
11
|
-
export type HeadingLevels = (typeof HEADING_LEVELS)[number];
|
|
12
|
-
export type HorizontalAligns = (typeof HORIZONTAL_ALIGNS)[number];
|
|
13
|
-
export type LoggerLevelsUnion = (typeof LOGGER_LEVELS)[number];
|
|
14
|
-
export type MixedPaddingSize = VariablePaddingSize | PaddingSize | PaddingSizes;
|
|
15
|
-
export type PaddingSizes = (typeof PADDING_SIZES)[number];
|
|
16
|
-
export type ResponsiveProps<T> = Partial<Record<Breakpoints, T>>;
|
|
17
|
-
export type SystemValidationStatuses = (typeof SYSTEM_VALIDATION_STATUSES)[number];
|
|
18
|
-
export type TextAligns = (typeof TEXT_ALIGNS)[number];
|
|
19
|
-
export type TextModes = (typeof TEXT_MODES)[number] | 'body';
|
|
20
|
-
export type TextVariants = (typeof TEXT_VARIANTS)[number];
|
|
21
|
-
export type VerticalAligns = (typeof VERTICAL_ALIGNS)[number];
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { useButtonGroup as i } from "./components/ButtonGroup/hooks/useButtonGroup.js";
|
|
2
|
-
import { c as r } from "./index-2QXL0WYc.js";
|
|
3
|
-
const c = "ids-button-group-v5200", n = "ids-button-group--values-v5200", u = "ids-button-group--label-v5200", a = "ids-button-group--item-v5200", v = "ids-button-group--active-v5200", e = {
|
|
4
|
-
buttonGroup: c,
|
|
5
|
-
values: n,
|
|
6
|
-
label: u,
|
|
7
|
-
item: a,
|
|
8
|
-
active: v
|
|
9
|
-
}, l = ({
|
|
10
|
-
value: s
|
|
11
|
-
}) => {
|
|
12
|
-
const t = i();
|
|
13
|
-
if (t)
|
|
14
|
-
return {
|
|
15
|
-
className: r(e.item, {
|
|
16
|
-
[e.active]: t.isActive(s)
|
|
17
|
-
}),
|
|
18
|
-
props: {
|
|
19
|
-
"aria-pressed": t.isActive(s)
|
|
20
|
-
},
|
|
21
|
-
toggle() {
|
|
22
|
-
var o;
|
|
23
|
-
s !== void 0 && ((o = t == null ? void 0 : t.toggle) == null || o.call(t, s, !t.isActive(s)));
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
e as s,
|
|
29
|
-
l as u
|
|
30
|
-
};
|
package/dist/vite.config.d.ts
DELETED
package/dist/vitest.config.d.ts
DELETED
package/dist/vitest.setup.d.ts
DELETED
|
File without changes
|
/package/{LICENSE.txt → LICENSE}
RENAMED
|
File without changes
|