@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,208 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode, default as React } from 'react';
|
|
2
|
+
import { IressHTMLAttributes, WithDataAttributes } from '../../interfaces';
|
|
3
|
+
import { Cell, Column, ColumnSort, Row, SortDirection, SortingFnOption, Table } from '@tanstack/react-table';
|
|
4
|
+
import { AriaRelationshipProps } from '../../hooks/useAriaRelationship';
|
|
5
|
+
export interface IressTableCommonProps<TRow extends object = never, TVal = never> {
|
|
6
|
+
/**
|
|
7
|
+
* Caption that describes the data in the table, required for accessibility.
|
|
8
|
+
*/
|
|
9
|
+
caption: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Multiple table elements can be passed as children.
|
|
12
|
+
* Used to create a static table, or add a `<tfoot />` element to a `rows` based table.
|
|
13
|
+
*/
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* A mapping of columns to be displayed in the table.
|
|
17
|
+
* If not provided, it will be automatically regenerated from the row data.
|
|
18
|
+
*/
|
|
19
|
+
columns?: Record<string, TableColumnNoKey<TRow, TVal> | undefined> | TableColumn<TRow, TVal>[];
|
|
20
|
+
/**
|
|
21
|
+
* Content to be show when there is no rowData (columns must also be provided).
|
|
22
|
+
*/
|
|
23
|
+
empty?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* When set to true, the table caption will be visually hidden.
|
|
26
|
+
*/
|
|
27
|
+
hiddenCaption?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* When set to true, the table header (`<thead></thead>`) will be not be rendered.
|
|
30
|
+
* Only use with very simple tables.
|
|
31
|
+
*/
|
|
32
|
+
hiddenHeader?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Add additional props to the row element.
|
|
35
|
+
* Can be a props map or a function that returns an props map. The function is called with the row data.
|
|
36
|
+
*/
|
|
37
|
+
rowProps?: IressHTMLAttributes<HTMLTableRowElement> | ((row: Row<TRow>) => IressHTMLAttributes<HTMLTableRowElement>);
|
|
38
|
+
/**
|
|
39
|
+
* Each object in the array contains the data for a row.
|
|
40
|
+
* @default []
|
|
41
|
+
*/
|
|
42
|
+
rows?: TRow[];
|
|
43
|
+
/**
|
|
44
|
+
* Defaults to 'row' - the first cell in the row is a `<th>`, otherwise it's a `<td>`.
|
|
45
|
+
* @default 'row'
|
|
46
|
+
*/
|
|
47
|
+
scope?: TableScope | TableScopes;
|
|
48
|
+
}
|
|
49
|
+
export interface IressTableProps<TRow extends object = never, TVal = never> extends IressHTMLAttributes<HTMLTableElement>, IressTableCommonProps<TRow, TVal> {
|
|
50
|
+
/**
|
|
51
|
+
* Compact view of the table, used for tables with a lot of data.
|
|
52
|
+
*/
|
|
53
|
+
compact?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* When set to true, hovering over a row will trigger a UI change.
|
|
56
|
+
*/
|
|
57
|
+
hover?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface TableColumn<TRow extends object, TVal = never> {
|
|
60
|
+
/**
|
|
61
|
+
* Aligns the content of the cell.
|
|
62
|
+
* @default left
|
|
63
|
+
*/
|
|
64
|
+
align?: TableColumnAligns;
|
|
65
|
+
/**
|
|
66
|
+
* The currency code to prefix to the value if `format` is set to currency.
|
|
67
|
+
* @default $
|
|
68
|
+
*/
|
|
69
|
+
currencyCode?: string;
|
|
70
|
+
/**
|
|
71
|
+
* When set to true, a divider will be rendered after the column.
|
|
72
|
+
*/
|
|
73
|
+
divider?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Formats the cell content.
|
|
76
|
+
* To use the in-built formatters, set this to: string, number, date, currency, percent.
|
|
77
|
+
* Use a custom formatter by passing a function that returns a ReactNode.
|
|
78
|
+
*/
|
|
79
|
+
format?: TableCellFormats | ((value: TVal, row?: TRow) => ReactNode);
|
|
80
|
+
/**
|
|
81
|
+
* The unique key for the column.
|
|
82
|
+
*/
|
|
83
|
+
key: string;
|
|
84
|
+
/**
|
|
85
|
+
* The label for the column header.
|
|
86
|
+
*/
|
|
87
|
+
label?: ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the column should wrap text or not. May need to be false if the column heading is long.
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
92
|
+
noWrap?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* When set to true, the column will be sortable.
|
|
95
|
+
* Setting it to either `asc` or `desc` will set the initial sort order.
|
|
96
|
+
*/
|
|
97
|
+
sort?: boolean | SortDirection;
|
|
98
|
+
/**
|
|
99
|
+
* The sorting function to use when sorting the column.
|
|
100
|
+
* If not provided, the default sorting function will be used based on the original row data.
|
|
101
|
+
* @link [API Docs](https://tanstack.com/table/v8/docs/api/features/sorting#sortingfn)
|
|
102
|
+
+ @link [Guide](https://tanstack.com/table/v8/docs/guide/sorting)
|
|
103
|
+
*/
|
|
104
|
+
sortFn?: SortingFnOption<TRow>;
|
|
105
|
+
/**
|
|
106
|
+
* Text to be read by a screen reader when a column is sortable (but not currently sorted).
|
|
107
|
+
* @default sortable
|
|
108
|
+
*/
|
|
109
|
+
sortableText?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The width of the column.
|
|
112
|
+
*/
|
|
113
|
+
width?: string;
|
|
114
|
+
}
|
|
115
|
+
export type TableColumnNoKey<TRow extends object, TVal = unknown> = Omit<TableColumn<TRow, TVal>, 'key'>;
|
|
116
|
+
export interface IressTableProviderProps<TRow extends object, TVal = unknown> extends PropsWithChildren {
|
|
117
|
+
columns?: IressTableProps<TRow, TVal>['columns'];
|
|
118
|
+
rows: TRow[];
|
|
119
|
+
}
|
|
120
|
+
export interface TableContextValue<TRow extends object, TVal = unknown> {
|
|
121
|
+
api: Table<TRow>;
|
|
122
|
+
getColumnByKey: (key: string) => TableColumnNoKey<TRow, TVal> | undefined;
|
|
123
|
+
}
|
|
124
|
+
export interface TableHeaderProps extends Partial<Pick<AriaRelationshipProps, 'setControlViaRef'>> {
|
|
125
|
+
additionalHeaders?: string;
|
|
126
|
+
className?: string;
|
|
127
|
+
tableId: string;
|
|
128
|
+
testId?: string;
|
|
129
|
+
}
|
|
130
|
+
export interface TableHeaderCellProps extends PropsWithChildren, WithDataAttributes {
|
|
131
|
+
additionalHeaders?: string;
|
|
132
|
+
columnApi: Pick<Column<object, unknown>, 'getCanSort' | 'toggleSorting' | 'id'>;
|
|
133
|
+
tableId: string;
|
|
134
|
+
}
|
|
135
|
+
export interface TableRowsProps<TRow extends object = never> extends Partial<Pick<AriaRelationshipProps, 'setControlViaRef'>> {
|
|
136
|
+
additionalHeaders?: string;
|
|
137
|
+
hiddenHeader?: boolean;
|
|
138
|
+
scope?: TableScopes;
|
|
139
|
+
rowProps?: IressTableProps<TRow>['rowProps'];
|
|
140
|
+
tableId: string;
|
|
141
|
+
testId?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface TableBodyCellProps<TRow extends object = never> extends PropsWithChildren, WithDataAttributes {
|
|
144
|
+
additionalHeaders?: string;
|
|
145
|
+
cellApi: Pick<Cell<TRow, unknown>, 'column' | 'row' | 'id'>;
|
|
146
|
+
hiddenHeader?: boolean;
|
|
147
|
+
index: number;
|
|
148
|
+
scope?: TableScopes;
|
|
149
|
+
tableId: string;
|
|
150
|
+
}
|
|
151
|
+
export interface TableSortButtonProps extends PropsWithChildren {
|
|
152
|
+
label?: string;
|
|
153
|
+
noWrap?: boolean;
|
|
154
|
+
sort?: ColumnSort;
|
|
155
|
+
toggleSorting: () => void;
|
|
156
|
+
}
|
|
157
|
+
export interface TableColumnHookProps {
|
|
158
|
+
columnApi?: Pick<Column<object, unknown>, 'getCanSort' | 'toggleSorting'>;
|
|
159
|
+
columnKey: string;
|
|
160
|
+
}
|
|
161
|
+
export interface TableColumnSortHook {
|
|
162
|
+
buttonProps: TableSortButtonProps;
|
|
163
|
+
columnProps: {
|
|
164
|
+
'aria-sort'?: 'none' | 'ascending' | 'descending';
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
export interface TableColumnStylesHook {
|
|
168
|
+
className: string;
|
|
169
|
+
style: React.CSSProperties;
|
|
170
|
+
}
|
|
171
|
+
export interface TableRef<TRow extends object> {
|
|
172
|
+
api: Table<TRow>;
|
|
173
|
+
}
|
|
174
|
+
export interface TableExports {
|
|
175
|
+
/**
|
|
176
|
+
* Allows you to access the table context within a child of the `IressTable`.
|
|
177
|
+
*/
|
|
178
|
+
useTable: <TRow extends object, TVal = never>() => TableContextValue<TRow, TVal>;
|
|
179
|
+
}
|
|
180
|
+
export interface TableEnums {
|
|
181
|
+
/** @deprecated IressTable.Scope enum is now deprecated and will be removed in a future version. Please use the value directly instead. **/
|
|
182
|
+
Scope: typeof TableScope;
|
|
183
|
+
}
|
|
184
|
+
/** @deprecated IressTable.Scope enum is now deprecated and will be removed in a future version. Please use the value directly instead. **/
|
|
185
|
+
export declare enum TableScope {
|
|
186
|
+
Row = "row",
|
|
187
|
+
Col = "col"
|
|
188
|
+
}
|
|
189
|
+
export declare const TABLE_SCOPES: readonly ["row", "col"];
|
|
190
|
+
export type TableScopes = (typeof TABLE_SCOPES)[number];
|
|
191
|
+
/** @deprecated TableColumnAlign enum is now deprecated and will be removed in a future version. Please use the value directly instead. **/
|
|
192
|
+
export declare enum TableColumnAlign {
|
|
193
|
+
Left = "left",
|
|
194
|
+
Right = "right",
|
|
195
|
+
Center = "center"
|
|
196
|
+
}
|
|
197
|
+
export declare const TABLE_COLUMN_ALIGN: readonly ["left", "right", "center"];
|
|
198
|
+
export type TableColumnAligns = (typeof TABLE_COLUMN_ALIGN)[number];
|
|
199
|
+
/** @deprecated TableCellFormat enum is now deprecated and will be removed in a future version. Please use the value directly instead. **/
|
|
200
|
+
export declare enum TableCellFormat {
|
|
201
|
+
String = "string",
|
|
202
|
+
Number = "number",
|
|
203
|
+
Date = "date",
|
|
204
|
+
Currency = "currency",
|
|
205
|
+
Percent = "percent"
|
|
206
|
+
}
|
|
207
|
+
export declare const TABLE_CELL_FORMATS: readonly ["string", "number", "date", "shortDate", "isoDateTime", "relativeTime", "currency", "percent"];
|
|
208
|
+
export type TableCellFormats = (typeof TABLE_CELL_FORMATS)[number];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { IressTableBodyProps } from './TableBody.types';
|
|
2
|
+
export declare const IressTableBody: <TRow extends object = never, TVal = never>({ caption, children, columns, className, "data-testid": dataTestId, empty, hiddenCaption, hiddenHeader, onOpened, onClosed, open, rowProps, rows, scope, ...restProps }: IressTableBodyProps<TRow, TVal>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IressTableCommonProps } from '../Table.types';
|
|
3
|
+
import { IressHTMLAttributes } from '../../../interfaces';
|
|
4
|
+
export interface IressTableBodyProps<TRow extends object = never, TVal = never> extends IressHTMLAttributes<HTMLTableSectionElement>, IressTableCommonProps<TRow, TVal> {
|
|
5
|
+
/**
|
|
6
|
+
* Caption that describes the data in the inner table, required for accessibility.
|
|
7
|
+
* Used to open/close the inner table.
|
|
8
|
+
*
|
|
9
|
+
* **Note:** Do not include interactive elements inside the caption.
|
|
10
|
+
*/
|
|
11
|
+
caption: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* When set to true, the table caption will be visually hidden.
|
|
14
|
+
* If set, the inner table will always be open.
|
|
15
|
+
*/
|
|
16
|
+
hiddenCaption?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Is called when table is opened.
|
|
19
|
+
*/
|
|
20
|
+
onOpened?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Is called when table is closed.
|
|
23
|
+
*/
|
|
24
|
+
onClosed?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* When true, all rows will be visible, otherwise they are hidden.
|
|
27
|
+
*/
|
|
28
|
+
open?: boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { IressTableFormattedValueProps } from './TableFormattedValue.types';
|
|
2
|
+
export declare const IressTableFormattedValue: <TRow extends object, TVal = unknown>({ currencyCode, currencyFormatOptions, format, row, value, }: IressTableFormattedValueProps<TRow, TVal>) => string | number | boolean | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | TVal | null | undefined;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TableCellFormats } from '../Table.types';
|
|
3
|
+
import { CurrencyFormatterProps } from '../../../helpers/formatting/formatCurrency';
|
|
4
|
+
export interface IressTableFormattedValueProps<TRow extends object, TVal = unknown> {
|
|
5
|
+
/**
|
|
6
|
+
* The currency code to prefix to the value if `format` is set to currency.
|
|
7
|
+
* @default $
|
|
8
|
+
* @deprecated Use the `currencyFormatOptions` prop instead.
|
|
9
|
+
*/
|
|
10
|
+
currencyCode?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The currency code to prefix to the value if `format` is set to currency.
|
|
13
|
+
* @default { locale: 'en-AU', currencyCode: 'AUD' }
|
|
14
|
+
*/
|
|
15
|
+
currencyFormatOptions?: Omit<CurrencyFormatterProps, 'value'>;
|
|
16
|
+
/**
|
|
17
|
+
* Formats the cell content.
|
|
18
|
+
* To use the in-built formatters, set this to: string, number, date, currency, percent.
|
|
19
|
+
* Use a custom formatter by passing a function that returns a ReactNode.
|
|
20
|
+
*/
|
|
21
|
+
format?: TableCellFormats | ((value: TVal, row?: TRow) => ReactNode);
|
|
22
|
+
/**
|
|
23
|
+
* The row data.
|
|
24
|
+
*/
|
|
25
|
+
row?: TRow;
|
|
26
|
+
/**
|
|
27
|
+
* The value to format.
|
|
28
|
+
*/
|
|
29
|
+
value: TVal;
|
|
30
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactElement, Ref } from 'react';
|
|
2
|
+
import { IressTableProviderProps, TableRef } from './Table.types';
|
|
3
|
+
export declare const IressTableProvider: <TRow extends object = never, TVal = never>(props: IressTableProviderProps<TRow, TVal> & {
|
|
4
|
+
ref?: Ref<TableRef<TRow>>;
|
|
5
|
+
}) => ReactElement;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { TableBodyCellProps } from '../Table.types';
|
|
2
|
+
export declare const TableBodyCell: <TRow extends object = never>({ additionalHeaders, cellApi, children, hiddenHeader, index, scope, tableId, ...restProps }: TableBodyCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { IressTableProps } from '../Table.types';
|
|
2
|
+
export declare const composeIDSTableColumnDefs: <TRow extends object, TVal = never>(rows: TRow[], columns?: IressTableProps<TRow, TVal>["columns"]) => import('@tanstack/table-core').AccessorFnColumnDef<TRow, TRow[keyof TRow]>[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTable: <TRow extends object, TVal = unknown>() => import('..').TableContextValue<TRow, TVal>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './Table.types';
|
|
2
|
+
export * from './Table';
|
|
3
|
+
export * from './TableFormattedValue/TableFormattedValue.types';
|
|
4
|
+
export * from './TableFormattedValue/TableFormattedValue';
|
|
5
|
+
export * from './TableBody/TableBody.types';
|
|
6
|
+
export * from './TableBody/TableBody';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IressHTMLAttributes } from '../../interfaces';
|
|
2
|
+
import { ButtonRef } from '../Button';
|
|
3
|
+
export interface IressTagProps extends IressHTMLAttributes {
|
|
4
|
+
/**
|
|
5
|
+
* Contents of the tag.
|
|
6
|
+
*/
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* You can completely replace the delete button to provide your own functionality.
|
|
10
|
+
* When this is provided, `deleteButtonText` will not be used and `onDelete` and `onDeleteButtonBlur` will not be called.
|
|
11
|
+
*/
|
|
12
|
+
deleteButton?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Screen reader text for delete button
|
|
15
|
+
*/
|
|
16
|
+
deleteButtonText?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Callback triggered when the tag is deleted
|
|
19
|
+
*/
|
|
20
|
+
onDelete?: (children: string, e: React.SyntheticEvent<ButtonRef>) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Callback triggered when the close button is blurred
|
|
23
|
+
*/
|
|
24
|
+
onDeleteButtonBlur?: (e: React.FocusEvent<HTMLButtonElement>) => void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
import { TagListInputProps } from '../components/TagListInput/TagListInput.types';
|
|
3
|
+
import { InputBaseElement } from '../../Input';
|
|
4
|
+
export interface IressTagInputProps extends Omit<TagListInputProps, 'defaultValue' | 'deleteButton' | 'onChange' | 'styles' | 'tags' | 'value'> {
|
|
5
|
+
/**
|
|
6
|
+
* Tags to display (uncontrolled)
|
|
7
|
+
*/
|
|
8
|
+
defaultValue?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Emitted when the value changes.
|
|
11
|
+
*/
|
|
12
|
+
onChange?: (e?: SyntheticEvent<InputBaseElement>, value?: string[]) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Emitted when the user attempts to add a tag that already exists.
|
|
15
|
+
*/
|
|
16
|
+
onExistingTag?: (tag: string) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Tags to display (controlled)
|
|
19
|
+
*/
|
|
20
|
+
value?: string[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IressInputProps } from '../../../Input';
|
|
2
|
+
export interface TagListInputProps extends IressInputProps<string> {
|
|
3
|
+
/**
|
|
4
|
+
* You can completely replace the delete button to provide your own functionality
|
|
5
|
+
* When this is provided, `onTagDelete`, `onTagDeleteAll` and `onTagDeleteButtonBlur` will not be called.
|
|
6
|
+
*/
|
|
7
|
+
deleteButton?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Emitted when a tag is deleted
|
|
10
|
+
*/
|
|
11
|
+
onTagDelete?: (label: string) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Emitted when the combined tag delete button is clicked
|
|
14
|
+
*/
|
|
15
|
+
onTagDeleteAll?: (label: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Emitted when a tag's delete button is blurred
|
|
18
|
+
*/
|
|
19
|
+
onTagDeleteButtonBlur?: (e: React.FocusEvent<HTMLButtonElement>) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Text displayed next to tag count in tag when tag limit is exceeded
|
|
22
|
+
* @default options selected
|
|
23
|
+
*/
|
|
24
|
+
selectedOptionsTagText?: string;
|
|
25
|
+
/**
|
|
26
|
+
* If you would like to override the styles for the tag list input,
|
|
27
|
+
* you can pass in a CSS module here with the following keys.
|
|
28
|
+
*/
|
|
29
|
+
styles?: {
|
|
30
|
+
tagListInput?: string;
|
|
31
|
+
tagListInput__element?: string;
|
|
32
|
+
tagListInput__items?: string;
|
|
33
|
+
tagListInput__itemsInner?: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Tags to display in the tag list input
|
|
37
|
+
* This is usually the label key in an array of `LabelValue[]` pairs
|
|
38
|
+
*/
|
|
39
|
+
tags?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* Limit of tags to display before shortening to `selectedOptionsTagText`
|
|
42
|
+
* @default 5
|
|
43
|
+
*/
|
|
44
|
+
tagLimit?: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TextElement, TextMode, TextVariant, TextAlign, HeadingLevel } from '../../enums';
|
|
3
|
+
import { IressHTMLAttributes } from '../../interfaces';
|
|
4
|
+
import { HeadingLevels, TextAligns, TextModes, TextVariants } from '../../main';
|
|
5
|
+
export interface IressTextProps extends IressHTMLAttributes<HTMLElement> {
|
|
6
|
+
/**
|
|
7
|
+
* The content to be rendered; can be a string or a ReactNode (e.g. IressIcon).
|
|
8
|
+
*/
|
|
9
|
+
children?: ReactNode | string;
|
|
10
|
+
/**
|
|
11
|
+
* Text alignment.
|
|
12
|
+
*/
|
|
13
|
+
align?: TextAlign | TextAligns;
|
|
14
|
+
/**
|
|
15
|
+
* The HTML element that should be rendered.
|
|
16
|
+
* @default TextElement.Div
|
|
17
|
+
*/
|
|
18
|
+
element?: TextElement | HeadingLevel | TextElements | HeadingLevels;
|
|
19
|
+
/**
|
|
20
|
+
* Allows control of the text color.
|
|
21
|
+
*
|
|
22
|
+
* **Note**: The body mode has been deprecated and will be removed in a future version. Please use the body variant instead.
|
|
23
|
+
*/
|
|
24
|
+
mode?: TextMode | TextModes;
|
|
25
|
+
/**
|
|
26
|
+
* Removes bottom margin from last child of the text element if true.
|
|
27
|
+
*/
|
|
28
|
+
noGutter?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The typographic style to be rendered.
|
|
31
|
+
*/
|
|
32
|
+
variant?: TextVariant | TextVariants;
|
|
33
|
+
}
|
|
34
|
+
export declare const TEXT_ELEMENTS: readonly ["p", "div", "span", "h1", "h2", "h3", "h4", "h5", "h6", "code", "blockquote", "caption", "cite", "small"];
|
|
35
|
+
export type TextElements = (typeof TEXT_ELEMENTS)[number];
|
|
36
|
+
export interface TextWithEnums extends React.FC<IressTextProps> {
|
|
37
|
+
/** @deprecated IressText.Mode is now deprecated and will be removed in a future version. Please use the value directly instead. */
|
|
38
|
+
Mode: typeof TextMode;
|
|
39
|
+
/** @deprecated IressText.Element is now deprecated and will be removed in a future version. Please use the value directly instead. */
|
|
40
|
+
Element: typeof TextElement;
|
|
41
|
+
/** @deprecated IressText.Align is now deprecated and will be removed in a future version. Please use the value directly instead. */
|
|
42
|
+
Align: typeof TextAlign;
|
|
43
|
+
/** @deprecated IressText.Variant is now deprecated and will be removed in a future version. Please use the value directly instead. */
|
|
44
|
+
Variant: typeof TextVariant;
|
|
45
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IressToastProps, ToastWithEnums } from './Toast.types';
|
|
2
|
+
export declare const Toast: ({ heading, headingLevel, headingText, status, actions, content, dismissible, onClose, children, "data-testid": dataTestId, className, ...restProps }: IressToastProps, ref: React.Ref<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const IressToast: ToastWithEnums;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IressHTMLAttributes } from '../../../interfaces';
|
|
3
|
+
import { HeadingLevel } from '../../../enums';
|
|
4
|
+
import { ButtonRef } from '../../Button';
|
|
5
|
+
interface ToastHeadingProps<T = HTMLDivElement> extends IressHTMLAttributes<T> {
|
|
6
|
+
/**
|
|
7
|
+
* The heading area of the toast. You can pass react component such as `<IressText>Error</IressText>`.
|
|
8
|
+
* If a string is provided, it will default to a `<h2 />` element.
|
|
9
|
+
*/
|
|
10
|
+
heading?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
interface ToastCloseButtonProps<T = HTMLDivElement> extends IressHTMLAttributes<T> {
|
|
13
|
+
/**
|
|
14
|
+
* A boolean to show hide the dismiss close button on the top right of the corner.
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
dismissible?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Click event on the close button of the toast.
|
|
20
|
+
*/
|
|
21
|
+
onClose?: (e?: React.MouseEvent<ButtonRef>) => void;
|
|
22
|
+
}
|
|
23
|
+
interface ToastActionProps<T = HTMLDivElement> extends IressHTMLAttributes<T> {
|
|
24
|
+
/**
|
|
25
|
+
* Buttons and controls for the toast.
|
|
26
|
+
*/
|
|
27
|
+
actions?: React.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
interface ToastContentProps extends ToastHeadingProps, ToastCloseButtonProps, ToastActionProps {
|
|
30
|
+
/**
|
|
31
|
+
* The toast message.
|
|
32
|
+
*/
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* The content of the toast message.
|
|
36
|
+
* @deprecated use children instead.
|
|
37
|
+
*/
|
|
38
|
+
content?: string;
|
|
39
|
+
/**
|
|
40
|
+
* System status of Toast
|
|
41
|
+
*/
|
|
42
|
+
status: ToastStatus;
|
|
43
|
+
}
|
|
44
|
+
export interface IressToastProps extends IressHTMLAttributes<HTMLDivElement>, ToastContentProps {
|
|
45
|
+
/**
|
|
46
|
+
* The toast message.
|
|
47
|
+
*/
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* The content of the toast message.
|
|
51
|
+
* @deprecated use children instead.
|
|
52
|
+
*/
|
|
53
|
+
content?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Heading level for the Toast heading. Will be ignored if headingText is not supplied.
|
|
56
|
+
* @default h2
|
|
57
|
+
* @deprecated Use `heading` instead.
|
|
58
|
+
*/
|
|
59
|
+
headingLevel?: HeadingLevel;
|
|
60
|
+
/**
|
|
61
|
+
* Text for Toast heading. If not supplied, heading will not be displayed.
|
|
62
|
+
* @deprecated Use `heading` instead.
|
|
63
|
+
*/
|
|
64
|
+
headingText?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The amount of time, in milliseconds, the toast is displayed on screen without
|
|
67
|
+
* the users interaction. Will fall back to timeout prop on parent toaster and then
|
|
68
|
+
* the default time of 6000ms. If set to 0, the toast will not auto dismiss.
|
|
69
|
+
* @default 6000
|
|
70
|
+
*/
|
|
71
|
+
timeout?: number;
|
|
72
|
+
}
|
|
73
|
+
export interface IressToastAnimatedProps extends IressToastProps {
|
|
74
|
+
/**
|
|
75
|
+
* The animation of the toast. If not provided, it will simply fade in and out.
|
|
76
|
+
*/
|
|
77
|
+
animation?: ToastAnimation;
|
|
78
|
+
/**
|
|
79
|
+
* Called when the element timed out.
|
|
80
|
+
*/
|
|
81
|
+
onTimeout?: () => void;
|
|
82
|
+
}
|
|
83
|
+
export type ToastActionComponent = React.FC<ToastActionProps>;
|
|
84
|
+
export type ToastCloseButtonComponent = React.FC<ToastCloseButtonProps>;
|
|
85
|
+
export type ToastContentComponent = React.FC<ToastContentProps>;
|
|
86
|
+
export type ToastWithEnums = React.ForwardRefExoticComponent<IressToastProps & React.RefAttributes<HTMLDivElement>> & {
|
|
87
|
+
/** @deprecated IressToast.HeadingLevel is now deprecated and will be removed in a future version. Please use the value directly. **/
|
|
88
|
+
HeadingLevel: typeof HeadingLevel;
|
|
89
|
+
};
|
|
90
|
+
export type NewToast = Omit<IressToastProps, 'status'>;
|
|
91
|
+
export declare const TOAST_STATUS: readonly ["success", "error", "info"];
|
|
92
|
+
export type ToastStatus = (typeof TOAST_STATUS)[number];
|
|
93
|
+
export declare const TOAST_ANIMATION: readonly ["start-x", "end-x", "start-y", "end-y"];
|
|
94
|
+
export type ToastAnimation = (typeof TOAST_ANIMATION)[number];
|
|
95
|
+
export {};
|