@iress-oss/ids-components 5.20.2 → 5.20.3
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-D_052VQ9.js → AutocompleteNoResults-B7El1R2l.js} +1 -1
- package/dist/{ComboboxHiddenInput-BcqYDu3M.js → ComboboxHiddenInput-CWfIj-Zz.js} +5 -5
- package/dist/{FieldAppendToLabel-CWIO4lAR.js → FieldAppendToLabel-BTdzhQ7Z.js} +3 -3
- package/dist/{InputBase-C0zGNQy5.js → InputBase-Hc9D8St6.js} +1 -1
- package/dist/Loading.module-BjceG0Wh.js +13 -0
- package/dist/{LoadingSuspense-BtzikVZk.js → LoadingSuspense-Bwd232Nt.js} +114 -114
- package/dist/LogoFromSrc-CAdoYYud.js +59 -0
- package/dist/MenuItem.module-BQw_K5D4.js +24 -0
- package/dist/Popover.module-ZU-08mVQ.js +11 -0
- package/dist/{PopoverProvider-DZ92QV8I.js → PopoverProvider-Cvg6ObBO.js} +4 -4
- package/dist/{SelectControl-B5BG5_Pl.js → SelectControl-WoixPfwh.js} +1 -1
- package/dist/{SliderTicks-jPoPzYf3.js → SliderTicks-D-B1uIdS.js} +1 -1
- package/dist/TabSet.module-4ohNBuQS.js +13 -0
- package/dist/Table.module-BYwGboft.js +32 -0
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +3 -3
- package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +6 -6
- package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +3 -3
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
- package/dist/components/Combobox/components/ComboboxResults.js +4 -4
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +2 -2
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Expander/Expander.js +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/Field/FieldGroup/FieldGroup.js +2 -2
- package/dist/components/Field/components/FieldAppendToLabel.js +3 -3
- package/dist/components/Filter/Filter.js +3 -3
- package/dist/components/Filter/components/FilterResetButton.js +2 -2
- package/dist/components/Filter/components/FilterSearch.js +2 -2
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormField/FormField.js +2 -2
- package/dist/components/Form/FormField/FormFieldset.js +2 -2
- package/dist/components/Form/HookForm/HookForm.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Hide/helpers/composeHideClasses.js +2 -2
- package/dist/components/Hide/index.js +1 -1
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inline/Inline.js +2 -2
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/Input/ClearButton/ClearButton.js +1 -1
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/InputBase/InputBase.js +1 -1
- 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 +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +2 -2
- package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -2
- package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +1 -1
- package/dist/components/Menu/MenuText/MenuText.js +3 -3
- package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
- package/dist/components/Menu/hooks/useMenuStyles.js +3 -3
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Navbar/Navbar.js +2 -2
- 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 +2 -2
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverProvider.js +1 -1
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/PopoverProvider.js +1 -1
- package/dist/components/Popover/components/PopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverContent.js +1 -1
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
- package/dist/components/Popover/hooks/usePopover.js +1 -1
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Provider/Provider.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/Readonly/Readonly.js +3 -3
- package/dist/components/Readonly/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/SelectBody/SelectBody.js +2 -2
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +2 -2
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +2 -2
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +2 -2
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
- package/dist/components/RichSelect/components/SelectActivator.js +1 -1
- package/dist/components/RichSelect/components/SelectOptions.js +2 -2
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Row/Row.js +2 -2
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/SelectControl.js +1 -1
- package/dist/components/Select/components/SelectReadonly.js +2 -2
- package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
- package/dist/components/Select/helpers/nodesToSelectOptions.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/Slideout.js +2 -2
- package/dist/components/Slideout/components/SlideoutInner.js +2 -2
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/components/SliderTicks.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +1 -1
- package/dist/components/TabSet/TabSet.js +1 -1
- package/dist/components/TabSet/components/TabSetItem.js +1 -1
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/TableBody/TableBody.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +1 -1
- package/dist/components/Table/components/TableHeader.js +1 -1
- package/dist/components/Table/components/TableHeaderCell.js +1 -1
- package/dist/components/Table/components/TableSortButton.js +2 -2
- package/dist/components/Table/hooks/useIDSTableColumnStyles.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/TagInput/TagInput.js +1 -1
- package/dist/components/Tag/components/TagListInput/TagListInput.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Toaster/Toast/Toast.js +1 -1
- package/dist/components/Toaster/Toast/ToastAnimated.js +1 -1
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +1 -1
- 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 +3 -3
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +1 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/main.js +2 -2
- package/dist/patterns/Loading/Loading.js +1 -1
- package/dist/patterns/Loading/LoadingSuspense.js +1 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +2 -2
- package/dist/patterns/Loading/components/DefaultLoading.js +2 -2
- package/dist/patterns/Loading/components/LongLoading.js +2 -2
- package/dist/patterns/Loading/components/PageLoading.js +2 -2
- package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/index.js +1 -1
- package/dist/src/components/Alert/Alert.d.ts +9 -0
- package/dist/src/components/Alert/Alert.types.d.ts +41 -0
- package/dist/src/components/Alert/index.d.ts +2 -0
- package/dist/src/components/Autocomplete/Autocomplete.d.ts +3 -0
- package/dist/src/components/Autocomplete/Autocomplete.types.d.ts +144 -0
- package/dist/src/components/Autocomplete/components/AutocompleteInstructions.d.ts +2 -0
- package/dist/src/components/Autocomplete/components/AutocompleteNoResults.d.ts +2 -0
- package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +6 -0
- package/dist/src/components/Autocomplete/index.d.ts +3 -0
- package/dist/src/components/Badge/Badge.d.ts +2 -0
- package/dist/src/components/Badge/Badge.types.d.ts +37 -0
- package/dist/src/components/Badge/index.d.ts +2 -0
- package/dist/src/components/Button/Button.d.ts +2 -0
- package/dist/src/components/Button/Button.types.d.ts +106 -0
- package/dist/src/components/Button/CloseButton/CloseButton.d.ts +3 -0
- package/dist/src/components/Button/CloseButton/CloseButton.types.d.ts +8 -0
- package/dist/src/components/Button/index.d.ts +4 -0
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/src/components/ButtonGroup/ButtonGroup.types.d.ts +63 -0
- package/dist/src/components/ButtonGroup/ButtonGroupProvider.d.ts +3 -0
- package/dist/src/components/ButtonGroup/hooks/useButtonGroup.d.ts +1 -0
- package/dist/src/components/ButtonGroup/hooks/useIDSButtonGroupItem.d.ts +2 -0
- package/dist/src/components/ButtonGroup/index.d.ts +3 -0
- package/dist/src/components/Card/Card.d.ts +2 -0
- package/dist/src/components/Card/Card.types.d.ts +91 -0
- package/dist/src/components/Card/components/ButtonCard.d.ts +2 -0
- package/dist/src/components/Card/components/LinkCard.d.ts +2 -0
- package/dist/src/components/Card/helpers/composeIDSCard.d.ts +3 -0
- package/dist/src/components/Card/helpers/composeIDSCardSlots.d.ts +2 -0
- package/dist/src/components/Card/index.d.ts +6 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +2 -0
- package/dist/src/components/Checkbox/Checkbox.types.d.ts +65 -0
- package/dist/src/components/Checkbox/helpers/mapCheckboxGroupOptions.d.ts +5 -0
- package/dist/src/components/Checkbox/index.d.ts +2 -0
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -0
- package/dist/src/components/CheckboxGroup/CheckboxGroup.types.d.ts +70 -0
- package/dist/src/components/CheckboxGroup/CheckboxGroupContext.d.ts +2 -0
- package/dist/src/components/CheckboxGroup/index.d.ts +2 -0
- package/dist/src/components/CheckboxMark/CheckboxMark.d.ts +2 -0
- package/dist/src/components/CheckboxMark/CheckboxMark.types.d.ts +11 -0
- package/dist/src/components/CheckboxMark/index.d.ts +2 -0
- package/dist/src/components/Col/Col.d.ts +2 -0
- package/dist/src/components/Col/Col.types.d.ts +78 -0
- package/dist/src/components/Col/index.d.ts +2 -0
- package/dist/src/components/Combobox/Combobox.d.ts +6 -0
- package/dist/src/components/Combobox/Combobox.types.d.ts +55 -0
- package/dist/src/components/Combobox/MultiCombobox/MultiCombobox.d.ts +6 -0
- package/dist/src/components/Combobox/MultiCombobox/MultiCombobox.types.d.ts +27 -0
- package/dist/src/components/Combobox/components/ComboboxHiddenInput.d.ts +2 -0
- package/dist/src/components/Combobox/components/ComboboxResults.d.ts +2 -0
- package/dist/src/components/Combobox/components/ComboboxResultsDescriptor.d.ts +2 -0
- package/dist/src/components/Combobox/hooks/useComboboxFlags.d.ts +5 -0
- package/dist/src/components/Combobox/hooks/useComboboxInlineCompletion.d.ts +2 -0
- package/dist/src/components/Combobox/index.d.ts +4 -0
- package/dist/src/components/Container/Container.d.ts +2 -0
- package/dist/src/components/Container/Container.types.d.ts +15 -0
- package/dist/src/components/Container/index.d.ts +2 -0
- package/dist/src/components/Divider/Divider.d.ts +2 -0
- package/dist/src/components/Divider/Divider.types.d.ts +17 -0
- package/dist/src/components/Divider/index.d.ts +2 -0
- package/dist/src/components/Expander/Expander.d.ts +2 -0
- package/dist/src/components/Expander/Expander.types.d.ts +39 -0
- package/dist/src/components/Expander/index.d.ts +2 -0
- package/dist/src/components/Field/Field.d.ts +2 -0
- package/dist/src/components/Field/Field.types.d.ts +34 -0
- package/dist/src/components/Field/FieldGroup/FieldGroup.d.ts +2 -0
- package/dist/src/components/Field/FieldGroup/FieldGroup.types.d.ts +15 -0
- package/dist/src/components/Field/components/FieldAppendToLabel.d.ts +2 -0
- package/dist/src/components/Field/components/FieldLegend.d.ts +2 -0
- package/dist/src/components/Field/helpers/getUniqueItemsByKey.d.ts +1 -0
- package/dist/src/components/Field/index.d.ts +4 -0
- package/dist/src/components/Filter/Filter.d.ts +2 -0
- package/dist/src/components/Filter/Filter.types.d.ts +71 -0
- package/dist/src/components/Filter/components/FilterLabel.d.ts +2 -0
- package/dist/src/components/Filter/components/FilterResetButton.d.ts +2 -0
- package/dist/src/components/Filter/components/FilterSearch.d.ts +3 -0
- package/dist/src/components/Filter/hooks/useFilterFlags.d.ts +7 -0
- package/dist/src/components/Filter/index.d.ts +2 -0
- package/dist/src/components/Form/Form.d.ts +11 -0
- package/dist/src/components/Form/Form.types.d.ts +188 -0
- package/dist/src/components/Form/FormContext.d.ts +8 -0
- package/dist/src/components/Form/FormField/FormField.d.ts +7 -0
- package/dist/src/components/Form/FormField/FormField.types.d.ts +111 -0
- package/dist/src/components/Form/FormField/FormFieldset.d.ts +7 -0
- package/dist/src/components/Form/FormField/helpers/getErrorTypeMessage.d.ts +2 -0
- package/dist/src/components/Form/FormField/helpers/transformCustomRulesToValidateRule.d.ts +3 -0
- package/dist/src/components/Form/HookForm/HookForm.d.ts +5 -0
- package/dist/src/components/Form/components/FormValidationSummary.d.ts +5 -0
- package/dist/src/components/Form/hooks/useNoDefaultValueInForms.d.ts +8 -0
- package/dist/src/components/Form/index.d.ts +6 -0
- package/dist/src/components/HeadingWithDeprecatedFallback/HeadingWithDeprecatedFallback.d.ts +10 -0
- package/dist/src/components/Hide/Hide.d.ts +2 -0
- package/dist/src/components/Hide/Hide.types.d.ts +24 -0
- package/dist/src/components/Hide/helpers/composeHideClasses.d.ts +4 -0
- package/dist/src/components/Hide/index.d.ts +2 -0
- package/dist/src/components/Icon/Icon.d.ts +2 -0
- package/dist/src/components/Icon/Icon.types.d.ts +99 -0
- package/dist/src/components/Icon/index.d.ts +2 -0
- package/dist/src/components/Inline/Inline.d.ts +2 -0
- package/dist/src/components/Inline/Inline.types.d.ts +41 -0
- package/dist/src/components/Inline/index.d.ts +2 -0
- package/dist/src/components/Input/ClearButton/ClearButton.d.ts +4 -0
- package/dist/src/components/Input/Input.d.ts +14 -0
- package/dist/src/components/Input/Input.types.d.ts +73 -0
- package/dist/src/components/Input/InputBase/InputBase.d.ts +9 -0
- package/dist/src/components/Input/InputBase/InputBase.types.d.ts +15 -0
- package/dist/src/components/Input/index.d.ts +3 -0
- package/dist/src/components/InputCurrency/InputCurrency.d.ts +3 -0
- package/dist/src/components/InputCurrency/InputCurrency.types.d.ts +23 -0
- package/dist/src/components/InputCurrency/index.d.ts +2 -0
- package/dist/src/components/Label/Label.d.ts +2 -0
- package/dist/src/components/Label/Label.types.d.ts +15 -0
- package/dist/src/components/Label/LabelBase/LabelBase.d.ts +2 -0
- package/dist/src/components/Label/LabelBase/LabelBase.types.d.ts +35 -0
- package/dist/src/components/Label/index.d.ts +2 -0
- package/dist/src/components/Menu/Menu.d.ts +2 -0
- package/dist/src/components/Menu/Menu.types.d.ts +130 -0
- package/dist/src/components/Menu/MenuDivider/MenuDivider.d.ts +2 -0
- package/dist/src/components/Menu/MenuHeading/MenuHeading.d.ts +2 -0
- package/dist/src/components/Menu/MenuItem/MenuItem.d.ts +2 -0
- package/dist/src/components/Menu/MenuItem/MenuItem.types.d.ts +122 -0
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemAria.d.ts +11 -0
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemButtonProps.d.ts +14 -0
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemComposite.d.ts +20 -0
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemInteractions.d.ts +11 -0
- package/dist/src/components/Menu/MenuItem/hooks/useMenuItemRole.d.ts +9 -0
- package/dist/src/components/Menu/MenuProvider.d.ts +3 -0
- package/dist/src/components/Menu/MenuText/MenuText.d.ts +2 -0
- package/dist/src/components/Menu/helpers/mapMenuItems.d.ts +6 -0
- package/dist/src/components/Menu/hooks/useMenu.d.ts +1 -0
- package/dist/src/components/Menu/hooks/useMenuAria.d.ts +11 -0
- package/dist/src/components/Menu/hooks/useMenuComposite.d.ts +18 -0
- package/dist/src/components/Menu/hooks/useMenuRole.d.ts +12 -0
- package/dist/src/components/Menu/hooks/useMenuStyles.d.ts +11 -0
- package/dist/src/components/Menu/index.d.ts +13 -0
- package/dist/src/components/Modal/Modal.d.ts +2 -0
- package/dist/src/components/Modal/Modal.types.d.ts +105 -0
- package/dist/src/components/Modal/ModalProvider.d.ts +3 -0
- package/dist/src/components/Modal/hooks/useIDSProvidedModal.d.ts +5 -0
- package/dist/src/components/Modal/hooks/useModal.d.ts +3 -0
- package/dist/src/components/Modal/index.d.ts +4 -0
- package/dist/src/components/Navbar/Navbar.d.ts +2 -0
- package/dist/src/components/Navbar/Navbar.types.d.ts +65 -0
- package/dist/src/components/Navbar/components/HomeLinkContent.d.ts +7 -0
- package/dist/src/components/Navbar/components/LogoFromSrc.d.ts +6 -0
- package/dist/src/components/Navbar/components/NavbarLogo.d.ts +8 -0
- package/dist/src/components/Navbar/index.d.ts +2 -0
- package/dist/src/components/Panel/Panel.d.ts +2 -0
- package/dist/src/components/Panel/Panel.types.d.ts +59 -0
- package/dist/src/components/Panel/index.d.ts +2 -0
- package/dist/src/components/Placeholder/Placeholder.d.ts +2 -0
- package/dist/src/components/Placeholder/Placeholder.types.d.ts +24 -0
- package/dist/src/components/Placeholder/index.d.ts +2 -0
- package/dist/src/components/Popover/InputPopover/InputPopover.d.ts +3 -0
- package/dist/src/components/Popover/InputPopover/InputPopover.types.d.ts +26 -0
- package/dist/src/components/Popover/InputPopover/InputPopoverActivator.d.ts +2 -0
- package/dist/src/components/Popover/InputPopover/InputPopoverProvider.d.ts +2 -0
- package/dist/src/components/Popover/Popover.d.ts +2 -0
- package/dist/src/components/Popover/Popover.types.d.ts +178 -0
- package/dist/src/components/Popover/PopoverProvider.d.ts +3 -0
- package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +5 -0
- package/dist/src/components/Popover/components/PopoverActivator.d.ts +2 -0
- package/dist/src/components/Popover/components/PopoverContent.d.ts +2 -0
- package/dist/src/components/Popover/helpers/composeFloatingProps.d.ts +15 -0
- package/dist/src/components/Popover/helpers/composePopoverWidth.d.ts +2 -0
- package/dist/src/components/Popover/helpers/handlePopoverTabKey.d.ts +8 -0
- package/dist/src/components/Popover/helpers/hasFocus.d.ts +1 -0
- package/dist/src/components/Popover/helpers/waitUntilTrue.d.ts +1 -0
- package/dist/src/components/Popover/hooks/usePopover.d.ts +1 -0
- package/dist/src/components/Popover/hooks/usePopoverActivatorInteractions.d.ts +15 -0
- package/dist/src/components/Popover/hooks/usePopoverAria.d.ts +6 -0
- package/dist/src/components/Popover/hooks/usePopoverImperativeHandle.d.ts +4 -0
- package/dist/src/components/Popover/hooks/usePopoverItem.d.ts +12 -0
- package/dist/src/components/Popover/hooks/usePopoverNavigation.d.ts +16 -0
- package/dist/src/components/Popover/hooks/usePopoverState.d.ts +10 -0
- package/dist/src/components/Popover/index.d.ts +5 -0
- package/dist/src/components/Progress/Progress.d.ts +2 -0
- package/dist/src/components/Progress/Progress.types.d.ts +23 -0
- package/dist/src/components/Progress/index.d.ts +1 -0
- package/dist/src/components/Provider/Provider.d.ts +20 -0
- package/dist/src/components/Provider/index.d.ts +1 -0
- package/dist/src/components/Radio/Radio.d.ts +2 -0
- package/dist/src/components/Radio/Radio.types.d.ts +45 -0
- package/dist/src/components/Radio/helpers/mapRadioGroupOptions.d.ts +5 -0
- package/dist/src/components/Radio/index.d.ts +2 -0
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +7 -0
- package/dist/src/components/RadioGroup/RadioGroup.types.d.ts +70 -0
- package/dist/src/components/RadioGroup/RadioGroupContext.d.ts +2 -0
- package/dist/src/components/RadioGroup/index.d.ts +2 -0
- package/dist/src/components/Readonly/Readonly.d.ts +3 -0
- package/dist/src/components/Readonly/Readonly.types.d.ts +10 -0
- package/dist/src/components/Readonly/index.d.ts +2 -0
- package/dist/src/components/RichSelect/RichSelect.d.ts +2 -0
- package/dist/src/components/RichSelect/RichSelect.types.d.ts +193 -0
- package/dist/src/components/RichSelect/SelectBody/SelectBody.d.ts +2 -0
- package/dist/src/components/RichSelect/SelectBody/SelectBody.types.d.ts +12 -0
- package/dist/src/components/RichSelect/SelectCreate/SelectCreate.d.ts +2 -0
- package/dist/src/components/RichSelect/SelectCreate/SelectCreate.types.d.ts +29 -0
- package/dist/src/components/RichSelect/SelectHeading/SelectHeading.d.ts +2 -0
- package/dist/src/components/RichSelect/SelectHeading/SelectHeading.types.d.ts +17 -0
- package/dist/src/components/RichSelect/SelectLabel/SelectLabel.d.ts +2 -0
- package/dist/src/components/RichSelect/SelectLabel/SelectLabel.types.d.ts +3 -0
- package/dist/src/components/RichSelect/SelectMenu/SelectMenu.d.ts +2 -0
- package/dist/src/components/RichSelect/SelectMenu/SelectMenu.types.d.ts +49 -0
- package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +2 -0
- package/dist/src/components/RichSelect/SelectSearch/SelectSearch.d.ts +2 -0
- package/dist/src/components/RichSelect/SelectSearch/SelectSearch.types.d.ts +2 -0
- package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.d.ts +3 -0
- package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.types.d.ts +18 -0
- package/dist/src/components/RichSelect/SelectTags/SelectTags.d.ts +2 -0
- package/dist/src/components/RichSelect/SelectTags/SelectTags.types.d.ts +27 -0
- package/dist/src/components/RichSelect/components/SelectActivator.d.ts +7 -0
- package/dist/src/components/RichSelect/components/SelectHiddenInput.d.ts +4 -0
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +8 -0
- package/dist/src/components/RichSelect/hooks/useRichSelectState.d.ts +17 -0
- package/dist/src/components/RichSelect/index.d.ts +19 -0
- package/dist/src/components/Row/Row.d.ts +2 -0
- package/dist/src/components/Row/Row.types.d.ts +42 -0
- package/dist/src/components/Row/index.d.ts +2 -0
- package/dist/src/components/Select/Select.d.ts +2 -0
- package/dist/src/components/Select/Select.types.d.ts +89 -0
- package/dist/src/components/Select/SelectOption/SelectOption.d.ts +2 -0
- package/dist/src/components/Select/components/SelectControl.d.ts +2 -0
- package/dist/src/components/Select/components/SelectReadonly.d.ts +2 -0
- package/dist/src/components/Select/helpers/mapSelectOptions.d.ts +3 -0
- package/dist/src/components/Select/helpers/nodesToSelectOptions.d.ts +11 -0
- package/dist/src/components/Select/index.d.ts +4 -0
- package/dist/src/components/Skeleton/Skeleton.d.ts +2 -0
- package/dist/src/components/Skeleton/Skeleton.types.d.ts +36 -0
- package/dist/src/components/Skeleton/index.d.ts +2 -0
- package/dist/src/components/SkipLink/SkipLink.d.ts +2 -0
- package/dist/src/components/SkipLink/SkipLink.types.d.ts +22 -0
- package/dist/src/components/SkipLink/index.d.ts +2 -0
- package/dist/src/components/Slideout/Slideout.d.ts +2 -0
- package/dist/src/components/Slideout/Slideout.types.d.ts +150 -0
- package/dist/src/components/Slideout/SlideoutProvider.d.ts +3 -0
- package/dist/src/components/Slideout/components/SlideoutInner.d.ts +2 -0
- package/dist/src/components/Slideout/hooks/useIDSProvidedSlideout.d.ts +5 -0
- package/dist/src/components/Slideout/hooks/useSlideout.d.ts +3 -0
- package/dist/src/components/Slideout/index.d.ts +4 -0
- package/dist/src/components/Slider/Slider.d.ts +2 -0
- package/dist/src/components/Slider/Slider.types.d.ts +94 -0
- package/dist/src/components/Slider/components/SliderTicks.d.ts +2 -0
- package/dist/src/components/Slider/index.d.ts +2 -0
- package/dist/src/components/Spinner/Spinner.d.ts +2 -0
- package/dist/src/components/Spinner/Spinner.types.d.ts +13 -0
- package/dist/src/components/Spinner/index.d.ts +2 -0
- package/dist/src/components/Stack/Stack.d.ts +2 -0
- package/dist/src/components/Stack/Stack.types.d.ts +22 -0
- package/dist/src/components/Stack/index.d.ts +2 -0
- package/dist/src/components/TabSet/Tab/Tab.d.ts +2 -0
- package/dist/src/components/TabSet/Tab/Tab.types.d.ts +21 -0
- package/dist/src/components/TabSet/TabSet.d.ts +2 -0
- package/dist/src/components/TabSet/TabSet.types.d.ts +84 -0
- package/dist/src/components/TabSet/TabSetProvider.d.ts +3 -0
- package/dist/src/components/TabSet/components/TabSetItem.d.ts +2 -0
- package/dist/src/components/TabSet/helpers/mapTabs.d.ts +3 -0
- package/dist/src/components/TabSet/hooks/useTabSetItems.d.ts +1 -0
- package/dist/src/components/TabSet/index.d.ts +5 -0
- package/dist/src/components/Table/Table.d.ts +7 -0
- package/dist/src/components/Table/Table.types.d.ts +208 -0
- package/dist/src/components/Table/TableBody/TableBody.d.ts +2 -0
- package/dist/src/components/Table/TableBody/TableBody.types.d.ts +29 -0
- package/dist/src/components/Table/TableContext.d.ts +2 -0
- package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.d.ts +2 -0
- package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.types.d.ts +30 -0
- package/dist/src/components/Table/TableProvider.d.ts +5 -0
- package/dist/src/components/Table/components/TableBodyCell.d.ts +2 -0
- package/dist/src/components/Table/components/TableEmpty.d.ts +2 -0
- package/dist/src/components/Table/components/TableHeader.d.ts +2 -0
- package/dist/src/components/Table/components/TableHeaderCell.d.ts +2 -0
- package/dist/src/components/Table/components/TableRows.d.ts +2 -0
- package/dist/src/components/Table/components/TableSortButton.d.ts +2 -0
- package/dist/src/components/Table/helpers/composeIDSTableColumnDefs.d.ts +2 -0
- package/dist/src/components/Table/helpers/composeIDSTableInitialSorting.d.ts +3 -0
- package/dist/src/components/Table/helpers/findColumnByKey.d.ts +2 -0
- package/dist/src/components/Table/helpers/getFormatFromValue.d.ts +2 -0
- package/dist/src/components/Table/helpers/hasColumns.d.ts +2 -0
- package/dist/src/components/Table/hooks/useIDSTableColumnSort.d.ts +2 -0
- package/dist/src/components/Table/hooks/useIDSTableColumnStyles.d.ts +2 -0
- package/dist/src/components/Table/hooks/useTable.d.ts +1 -0
- package/dist/src/components/Table/index.d.ts +6 -0
- package/dist/src/components/Tag/Tag.d.ts +2 -0
- package/dist/src/components/Tag/Tag.types.d.ts +25 -0
- package/dist/src/components/Tag/TagInput/TagInput.d.ts +3 -0
- package/dist/src/components/Tag/TagInput/TagInput.types.d.ts +21 -0
- package/dist/src/components/Tag/components/TagListInput/TagListInput.d.ts +3 -0
- package/dist/src/components/Tag/components/TagListInput/TagListInput.types.d.ts +45 -0
- package/dist/src/components/Tag/index.d.ts +4 -0
- package/dist/src/components/Text/Text.d.ts +2 -0
- package/dist/src/components/Text/Text.types.d.ts +45 -0
- package/dist/src/components/Text/index.d.ts +2 -0
- package/dist/src/components/Toaster/Toast/Toast.d.ts +3 -0
- package/dist/src/components/Toaster/Toast/Toast.types.d.ts +95 -0
- package/dist/src/components/Toaster/Toast/ToastAnimated.d.ts +2 -0
- package/dist/src/components/Toaster/Toast/ToastIcon.d.ts +6 -0
- package/dist/src/components/Toaster/Toaster.d.ts +2 -0
- package/dist/src/components/Toaster/Toaster.types.d.ts +37 -0
- package/dist/src/components/Toaster/ToasterProvider.d.ts +14 -0
- package/dist/src/components/Toaster/hooks/useToaster.d.ts +9 -0
- package/dist/src/components/Toaster/index.d.ts +5 -0
- package/dist/src/components/Toggle/Toggle.d.ts +2 -0
- package/dist/src/components/Toggle/Toggle.types.d.ts +45 -0
- package/dist/src/components/Toggle/index.d.ts +2 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/src/components/Tooltip/Tooltip.types.d.ts +33 -0
- package/dist/src/components/Tooltip/index.d.ts +2 -0
- package/dist/src/components/ValidationMessage/ValidationBase/ValidationBase.d.ts +2 -0
- package/dist/src/components/ValidationMessage/ValidationBase/ValidationBase.types.d.ts +27 -0
- package/dist/src/components/ValidationMessage/ValidationLink/ValidationLink.d.ts +2 -0
- package/dist/src/components/ValidationMessage/ValidationLink/ValidationLink.types.d.ts +12 -0
- package/dist/src/components/ValidationMessage/ValidationMessage.d.ts +2 -0
- package/dist/src/components/ValidationMessage/ValidationMessage.types.d.ts +13 -0
- package/dist/src/components/ValidationMessage/ValidationSummary/ValidationSummary.d.ts +2 -0
- package/dist/src/components/ValidationMessage/ValidationSummary/ValidationSummary.types.d.ts +27 -0
- package/dist/src/components/ValidationMessage/index.d.ts +6 -0
- package/dist/src/constants.d.ts +123 -0
- package/dist/src/enums.d.ts +215 -0
- package/dist/src/helpers/dom/closestCrossShadow.d.ts +9 -0
- package/dist/src/helpers/dom/domUtils.d.ts +5 -0
- package/dist/src/helpers/dom/focusableElements.d.ts +1 -0
- package/dist/src/helpers/dom/getActiveElement.d.ts +1 -0
- package/dist/src/helpers/dom/hasShadowDom.d.ts +1 -0
- package/dist/src/helpers/form/getFormControlValueAsString.d.ts +2 -0
- package/dist/src/helpers/form/getFormControlValueAsStringIfDefined.d.ts +2 -0
- package/dist/src/helpers/form/getValueAsEvent.d.ts +15 -0
- package/dist/src/helpers/form/isValidFormInputElement.d.ts +1 -0
- package/dist/src/helpers/formatting/capitalizeFirstLetter.d.ts +1 -0
- package/dist/src/helpers/formatting/formatCurrency.d.ts +25 -0
- package/dist/src/helpers/formatting/formatDate.d.ts +5 -0
- package/dist/src/helpers/formatting/formatDateTime.d.ts +3 -0
- package/dist/src/helpers/formatting/formatObjectKey.d.ts +1 -0
- package/dist/src/helpers/formatting/formatPercentage.d.ts +1 -0
- package/dist/src/helpers/formatting/stringReplacer.d.ts +2 -0
- package/dist/src/helpers/formatting/toArray.d.ts +1 -0
- package/dist/src/helpers/formatting/toCSSLengthValue.d.ts +1 -0
- package/dist/src/helpers/label-value/composeLabelValueDescriptor.d.ts +9 -0
- package/dist/src/helpers/label-value/getQueryRangeExclusive.d.ts +8 -0
- package/dist/src/helpers/label-value/getValueFromLabelValues.d.ts +2 -0
- package/dist/src/helpers/label-value/highlightQueryInLabel.d.ts +2 -0
- package/dist/src/helpers/label-value/highlightQueryInLabelValue.d.ts +3 -0
- package/dist/src/helpers/label-value/searchLabelValues.d.ts +2 -0
- package/dist/src/helpers/responsive/getResponsiveLayoutModifiers.d.ts +2 -0
- package/dist/src/helpers/responsive/getResponsivePaddingClasses.d.ts +2 -0
- package/dist/src/helpers/transition/getTransitionDuration.d.ts +1 -0
- package/dist/src/helpers/transition/timeStringToNumber.d.ts +1 -0
- package/dist/src/helpers/utility/generateScopedName.d.ts +8 -0
- package/dist/src/helpers/utility/idsLogger.d.ts +3 -0
- package/dist/src/helpers/utility/propagateTestid.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +4 -0
- package/dist/src/hooks/useAriaRelationship.d.ts +11 -0
- package/dist/src/hooks/useBreakpoint.d.ts +11 -0
- package/dist/src/hooks/useControlledState.d.ts +22 -0
- package/dist/src/hooks/useIdIfNeeded.d.ts +2 -0
- package/dist/src/hooks/useResponsiveProps.d.ts +19 -0
- package/dist/src/interfaces.d.ts +68 -0
- package/dist/src/main.d.ts +58 -0
- package/dist/src/patterns/Loading/Loading.d.ts +47 -0
- package/dist/src/patterns/Loading/LoadingSuspense.d.ts +73 -0
- package/dist/src/patterns/Loading/components/ComponentLoading.d.ts +53 -0
- package/dist/src/patterns/Loading/components/DefaultLoading.d.ts +27 -0
- package/dist/src/patterns/Loading/components/LongLoading.d.ts +60 -0
- package/dist/src/patterns/Loading/components/PageLoading.d.ts +41 -0
- package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +67 -0
- package/dist/src/patterns/Loading/components/ValidateLoading.d.ts +38 -0
- package/dist/src/patterns/Loading/hooks/useEstimatedProgressValue.d.ts +11 -0
- package/dist/src/patterns/Loading/hooks/useShouldRenderLoading.d.ts +10 -0
- package/dist/src/patterns/Loading/hooks/useShowIndicator.d.ts +9 -0
- package/dist/src/patterns/Loading/hooks/useSuspenseResource.d.ts +17 -0
- package/dist/src/patterns/Loading/index.d.ts +2 -0
- package/dist/src/types.d.ts +21 -0
- package/dist/style.css +1 -1
- package/dist/{useIDSButtonGroupItem-YYpF5FzH.js → useIDSButtonGroupItem-BB7Moa3N.js} +1 -1
- package/package.json +11 -11
- package/dist/Loading.module-Bpupt31Y.js +0 -13
- package/dist/LogoFromSrc-DIJbLzdF.js +0 -59
- package/dist/MenuItem.module-B77HFe8G.js +0 -24
- package/dist/Popover.module-DsySRqqg.js +0 -11
- package/dist/TabSet.module-D1hz6nN2.js +0 -13
- package/dist/Table.module-DotXvwJq.js +0 -32
|
@@ -0,0 +1,41 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,67 @@
|
|
|
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;
|
|
@@ -0,0 +1,38 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1,21 @@
|
|
|
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];
|