@iress-oss/ids-components 5.14.2 → 5.15.0

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.
Files changed (189) hide show
  1. package/dist/{AutocompleteNoResults-CA3kLIMp.js → AutocompleteNoResults-CvhIxKQI.js} +1 -1
  2. package/dist/{ComboboxHiddenInput-3nXQLXWs.js → ComboboxHiddenInput-B7ztqo0l.js} +5 -5
  3. package/dist/{FieldAppendToLabel-fLFwdVe0.js → FieldAppendToLabel-DgXoSKDG.js} +6 -5
  4. package/dist/{InputBase-Gu84XDiJ.js → InputBase-nWIFJcGj.js} +1 -1
  5. package/dist/Loading.module-Bs6DSfb4.js +13 -0
  6. package/dist/{LoadingSuspense-CbdTDOzY.js → LoadingSuspense-BdXYIsHy.js} +2325 -2300
  7. package/dist/LogoFromSrc-CtJE0Fsr.js +59 -0
  8. package/dist/MenuItem.module-Bj20OWCC.js +24 -0
  9. package/dist/Popover.module-DJ-RK5B3.js +11 -0
  10. package/dist/{SelectControl-CzcS0y-K.js → SelectControl-CYKkf3rM.js} +1 -1
  11. package/dist/{SliderTicks-Dfc9Q2il.js → SliderTicks-Dqz-k-xS.js} +1 -1
  12. package/dist/TabSet.module-Cu1itlcf.js +13 -0
  13. package/dist/Table.module-Bb7fJIr8.js +32 -0
  14. package/dist/components/Alert/Alert.js +1 -1
  15. package/dist/components/Alert/index.js +1 -1
  16. package/dist/components/Autocomplete/Autocomplete.js +5 -4
  17. package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
  18. package/dist/components/Autocomplete/index.js +1 -1
  19. package/dist/components/Badge/Badge.js +4 -4
  20. package/dist/components/Button/Button.js +2 -2
  21. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  22. package/dist/components/Button/index.js +1 -1
  23. package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
  24. package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +1 -1
  25. package/dist/components/ButtonGroup/index.js +1 -1
  26. package/dist/components/Checkbox/Checkbox.js +1 -1
  27. package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
  28. package/dist/components/Checkbox/index.js +1 -1
  29. package/dist/components/CheckboxGroup/CheckboxGroup.js +6 -6
  30. package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
  31. package/dist/components/Combobox/Combobox.js +5 -4
  32. package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +5 -4
  33. package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
  34. package/dist/components/Combobox/components/ComboboxResults.js +5 -4
  35. package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +4 -3
  36. package/dist/components/Combobox/index.js +1 -1
  37. package/dist/components/Expander/Expander.js +1 -1
  38. package/dist/components/Field/Field.js +1 -1
  39. package/dist/components/Field/FieldGroup/FieldGroup.js +2 -2
  40. package/dist/components/Field/components/FieldAppendToLabel.js +5 -4
  41. package/dist/components/Filter/Filter.js +5 -4
  42. package/dist/components/Filter/components/FilterResetButton.js +4 -3
  43. package/dist/components/Filter/components/FilterSearch.js +4 -3
  44. package/dist/components/Filter/index.js +1 -1
  45. package/dist/components/Form/Form.js +1 -1
  46. package/dist/components/Form/FormField/FormField.js +9 -8
  47. package/dist/components/Form/FormField/FormFieldset.js +5 -4
  48. package/dist/components/Form/HookForm/HookForm.js +1 -1
  49. package/dist/components/Form/index.js +1 -1
  50. package/dist/components/Hide/Hide.js +1 -1
  51. package/dist/components/Hide/helpers/composeHideClasses.js +5 -4
  52. package/dist/components/Hide/index.js +1 -1
  53. package/dist/components/Icon/Icon.js +4 -3
  54. package/dist/components/Icon/index.js +1 -1
  55. package/dist/components/Inline/Inline.js +4 -3
  56. package/dist/components/Inline/index.js +1 -1
  57. package/dist/components/Input/ClearButton/ClearButton.js +1 -1
  58. package/dist/components/Input/Input.js +2 -2
  59. package/dist/components/Input/InputBase/InputBase.js +1 -1
  60. package/dist/components/Input/index.js +1 -1
  61. package/dist/components/InputCurrency/InputCurrency.js +1 -1
  62. package/dist/components/InputCurrency/index.js +1 -1
  63. package/dist/components/Label/LabelBase/LabelBase.js +1 -1
  64. package/dist/components/Menu/Menu.js +1 -1
  65. package/dist/components/Menu/MenuDivider/MenuDivider.js +4 -3
  66. package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -2
  67. package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
  68. package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +1 -1
  69. package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
  70. package/dist/components/Menu/MenuText/MenuText.js +5 -4
  71. package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
  72. package/dist/components/Menu/hooks/useMenuStyles.js +3 -3
  73. package/dist/components/Menu/index.js +1 -1
  74. package/dist/components/Modal/Modal.js +2 -2
  75. package/dist/components/Modal/index.js +1 -1
  76. package/dist/components/Navbar/Navbar.js +2 -2
  77. package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
  78. package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
  79. package/dist/components/Navbar/components/NavbarLogo.js +2 -2
  80. package/dist/components/Navbar/index.js +1 -1
  81. package/dist/components/Placeholder/Placeholder.js +1 -1
  82. package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
  83. package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
  84. package/dist/components/Popover/InputPopover/InputPopoverProvider.js +1 -1
  85. package/dist/components/Popover/Popover.js +1 -1
  86. package/dist/components/Popover/PopoverProvider.js +1 -1
  87. package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
  88. package/dist/components/Popover/components/PopoverActivator.js +1 -1
  89. package/dist/components/Popover/components/PopoverContent.js +2 -2
  90. package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
  91. package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
  92. package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
  93. package/dist/components/Progress/Progress.js +1 -1
  94. package/dist/components/Provider/Provider.js +38 -0
  95. package/dist/components/Provider/index.js +4 -0
  96. package/dist/components/Radio/Radio.js +1 -1
  97. package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
  98. package/dist/components/Radio/index.js +1 -1
  99. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  100. package/dist/components/Readonly/Readonly.js +5 -4
  101. package/dist/components/Readonly/index.js +1 -1
  102. package/dist/components/RichSelect/RichSelect.js +4 -3
  103. package/dist/components/RichSelect/SelectBody/SelectBody.js +5 -4
  104. package/dist/components/RichSelect/SelectCreate/SelectCreate.js +9 -8
  105. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +4 -3
  106. package/dist/components/RichSelect/SelectLabel/SelectLabel.js +1 -1
  107. package/dist/components/RichSelect/SelectMenu/SelectMenu.js +4 -3
  108. package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +4 -3
  109. package/dist/components/RichSelect/SelectSearch/SelectSearch.js +4 -3
  110. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
  111. package/dist/components/RichSelect/SelectTags/SelectTags.js +4 -3
  112. package/dist/components/RichSelect/components/SelectActivator.js +1 -1
  113. package/dist/components/RichSelect/components/SelectOptions.js +4 -3
  114. package/dist/components/RichSelect/index.js +1 -1
  115. package/dist/components/Row/Row.js +4 -3
  116. package/dist/components/Row/index.js +1 -1
  117. package/dist/components/Select/Select.js +2 -2
  118. package/dist/components/Select/components/SelectControl.js +1 -1
  119. package/dist/components/Select/components/SelectReadonly.js +4 -3
  120. package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
  121. package/dist/components/Select/helpers/nodesToSelectOptions.js +3 -3
  122. package/dist/components/Select/index.js +1 -1
  123. package/dist/components/Skeleton/Skeleton.js +2 -2
  124. package/dist/components/SkipLink/SkipLink.js +1 -1
  125. package/dist/components/Slideout/Slideout.js +2 -2
  126. package/dist/components/Slideout/components/SlideoutInner.js +1 -1
  127. package/dist/components/Slideout/index.js +1 -1
  128. package/dist/components/Slider/Slider.js +2 -2
  129. package/dist/components/Slider/components/SliderTicks.js +1 -1
  130. package/dist/components/Slider/index.js +1 -1
  131. package/dist/components/Spinner/Spinner.js +1 -1
  132. package/dist/components/Spinner/index.js +1 -1
  133. package/dist/components/TabSet/Tab/Tab.js +1 -1
  134. package/dist/components/TabSet/TabSet.js +2 -2
  135. package/dist/components/TabSet/components/TabSetItem.js +2 -2
  136. package/dist/components/Table/Table.js +2 -2
  137. package/dist/components/Table/TableBody/TableBody.js +15 -15
  138. package/dist/components/Table/components/TableEmpty.js +1 -1
  139. package/dist/components/Table/components/TableHeader.js +1 -1
  140. package/dist/components/Table/components/TableHeaderCell.js +1 -1
  141. package/dist/components/Table/components/TableSortButton.js +3 -3
  142. package/dist/components/Table/hooks/useIDSTableColumnStyles.js +1 -1
  143. package/dist/components/Table/index.js +1 -1
  144. package/dist/components/Tag/Tag.js +1 -1
  145. package/dist/components/Tag/TagInput/TagInput.js +1 -1
  146. package/dist/components/Tag/components/TagListInput/TagListInput.js +1 -1
  147. package/dist/components/Tag/index.js +1 -1
  148. package/dist/components/Toaster/Toast/Toast.js +1 -1
  149. package/dist/components/Toaster/Toast/ToastAnimated.js +2 -2
  150. package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
  151. package/dist/components/Toaster/Toaster.js +2 -2
  152. package/dist/components/Toaster/ToasterProvider.js +1 -1
  153. package/dist/components/Toaster/hooks/useToaster.js +24 -3
  154. package/dist/components/Toaster/index.js +11 -10
  155. package/dist/components/Toggle/Toggle.js +3 -3
  156. package/dist/components/Tooltip/Tooltip.js +2 -2
  157. package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +1 -1
  158. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
  159. package/dist/constants.js +11 -11
  160. package/dist/{floating-ui.react-DfZ-vbiG.js → floating-ui.react-SmaXvp4L.js} +189 -183
  161. package/dist/main.js +287 -284
  162. package/dist/patterns/Loading/Loading.js +1 -1
  163. package/dist/patterns/Loading/LoadingSuspense.js +1 -1
  164. package/dist/patterns/Loading/components/ComponentLoading.js +2 -2
  165. package/dist/patterns/Loading/components/DefaultLoading.js +3 -3
  166. package/dist/patterns/Loading/components/LongLoading.js +2 -2
  167. package/dist/patterns/Loading/components/PageLoading.js +3 -3
  168. package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
  169. package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
  170. package/dist/patterns/Loading/index.js +1 -1
  171. package/dist/src/components/Form/Form.types.d.ts +10 -1
  172. package/dist/src/components/Provider/Provider.d.ts +20 -0
  173. package/dist/src/components/Provider/index.d.ts +1 -0
  174. package/dist/src/components/Toaster/Toast/Toast.types.d.ts +2 -1
  175. package/dist/src/components/Toaster/ToasterProvider.d.ts +5 -2
  176. package/dist/src/components/Toaster/hooks/useToaster.d.ts +3 -3
  177. package/dist/src/constants.d.ts +7 -7
  178. package/dist/src/main.d.ts +1 -0
  179. package/dist/src/patterns/Loading/components/PageLoading.d.ts +3 -3
  180. package/dist/style.css +1 -1
  181. package/dist/{useIDSButtonGroupItem-DUZ2VDnl.js → useIDSButtonGroupItem-CniAJ9N5.js} +1 -1
  182. package/dist/vite.config.d.ts +1 -1
  183. package/package.json +2 -2
  184. package/dist/Loading.module-BoPWGcXe.js +0 -13
  185. package/dist/LogoFromSrc-C3T9li5n.js +0 -59
  186. package/dist/MenuItem.module-36-M9GIW.js +0 -24
  187. package/dist/Popover.module-qeMQ2uo5.js +0 -11
  188. package/dist/TabSet.module-BduoH_21.js +0 -13
  189. package/dist/Table.module-CONHit0r.js +0 -32
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "./components/StartUpLoading.js";
3
- import { Q as s } from "../../LoadingSuspense-CbdTDOzY.js";
3
+ import { P as s } from "../../LoadingSuspense-BdXYIsHy.js";
4
4
  import "./hooks/useShouldRenderLoading.js";
5
5
  import "./components/LongLoading.js";
6
6
  export {
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { R as i } from "../../LoadingSuspense-CbdTDOzY.js";
3
+ import { Q as i } from "../../LoadingSuspense-BdXYIsHy.js";
4
4
  import "./hooks/useSuspenseResource.js";
5
5
  export {
6
6
  i as IressLoadingSuspense
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../components/Skeleton/Skeleton.js";
4
- import { ah as e } from "../../../LoadingSuspense-CbdTDOzY.js";
5
- import "../../../Loading.module-BoPWGcXe.js";
4
+ import { ag as e } from "../../../LoadingSuspense-BdXYIsHy.js";
5
+ import "../../../Loading.module-Bs6DSfb4.js";
6
6
  import "../../../index-2QXL0WYc.js";
7
7
  import "../../../components/Text/Text.js";
8
8
  export {
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { af as f } from "../../../LoadingSuspense-CbdTDOzY.js";
3
+ import { ae as e } from "../../../LoadingSuspense-BdXYIsHy.js";
4
4
  import "../../../components/Text/Text.js";
5
5
  import "../../../index-2QXL0WYc.js";
6
- import "../../../Loading.module-BoPWGcXe.js";
6
+ import "../../../Loading.module-Bs6DSfb4.js";
7
7
  export {
8
- f as DefaultLoading
8
+ e as DefaultLoading
9
9
  };
@@ -2,7 +2,7 @@ import { jsx as c, jsxs as g } from "react/jsx-runtime";
2
2
  import { IressStack as w } from "../../../components/Stack/Stack.js";
3
3
  import { useMemo as f, useId as y } from "react";
4
4
  import { c as h } from "../../../index-2QXL0WYc.js";
5
- import { l as m } from "../../../Loading.module-BoPWGcXe.js";
5
+ import { l as m } from "../../../Loading.module-Bs6DSfb4.js";
6
6
  import { IressText as M } from "../../../components/Text/Text.js";
7
7
  import { IressPanel as S } from "../../../components/Panel/Panel.js";
8
8
  import { IressProgress as j } from "../../../components/Progress/Progress.js";
@@ -10,7 +10,7 @@ import { GlobalCSSClass as L } from "../../../enums.js";
10
10
  import { propagateTestid as O } from "../../../helpers/utility/propagateTestid.js";
11
11
  import { useShowIndicator as C } from "../hooks/useShowIndicator.js";
12
12
  import { useEstimatedProgressValue as G } from "../hooks/useEstimatedProgressValue.js";
13
- const P = "ids-long-loading--root-v5142", V = "ids-long-loading--panel-v5142", B = "ids-long-loading--dots-v5142", E = "ids-long-loading--check-list-v5142", R = "ids-long-loading--check-list-item-v5142", T = "ids-long-loading--check-list-item__done-v5142", U = "ids-long-loading--checked-v5142", $ = "ids-long-loading--checked__circle-v5142", q = "ids-long-loading--checked__check-v5142", s = {
13
+ const P = "ids-long-loading--root-v5150", V = "ids-long-loading--panel-v5150", B = "ids-long-loading--dots-v5150", E = "ids-long-loading--check-list-v5150", R = "ids-long-loading--check-list-item-v5150", T = "ids-long-loading--check-list-item__done-v5150", U = "ids-long-loading--checked-v5150", $ = "ids-long-loading--checked__circle-v5150", q = "ids-long-loading--checked__check-v5150", s = {
14
14
  root: P,
15
15
  panel: V,
16
16
  dots: B,
@@ -3,12 +3,12 @@ import "react";
3
3
  import "../../../components/Stack/Stack.js";
4
4
  import "../../../components/Skeleton/Skeleton.js";
5
5
  import "../../../components/Container/Container.js";
6
- import { ai as s } from "../../../LoadingSuspense-CbdTDOzY.js";
6
+ import { ah as n } from "../../../LoadingSuspense-BdXYIsHy.js";
7
7
  import "../../../components/Col/Col.js";
8
8
  import "../../../components/Divider/Divider.js";
9
9
  import "../../../components/Card/Card.js";
10
10
  import "../../../index-2QXL0WYc.js";
11
- import "../../../Loading.module-BoPWGcXe.js";
11
+ import "../../../Loading.module-Bs6DSfb4.js";
12
12
  export {
13
- s as PageLoading
13
+ n as PageLoading
14
14
  };
@@ -3,12 +3,12 @@ import { IressStack as j } from "../../../components/Stack/Stack.js";
3
3
  import { useState as y, useEffect as u, useRef as I, useMemo as T } from "react";
4
4
  import { IressProgress as k } from "../../../components/Progress/Progress.js";
5
5
  import { c as M } from "../../../index-2QXL0WYc.js";
6
- import { l as n } from "../../../Loading.module-BoPWGcXe.js";
6
+ import { l as n } from "../../../Loading.module-Bs6DSfb4.js";
7
7
  import { IressText as v } from "../../../components/Text/Text.js";
8
8
  import { propagateTestid as O } from "../../../helpers/utility/propagateTestid.js";
9
9
  import { useShowIndicator as E } from "../hooks/useShowIndicator.js";
10
10
  import { useEstimatedProgressValue as R } from "../hooks/useEstimatedProgressValue.js";
11
- const H = "ids-start-up-loading--root-v5142", P = "ids-start-up-loading--progress-v5142", h = {
11
+ const H = "ids-start-up-loading--root-v5150", P = "ids-start-up-loading--progress-v5150", h = {
12
12
  root: H,
13
13
  progress: P
14
14
  }, U = ({
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
- import { ag as d } from "../../../LoadingSuspense-CbdTDOzY.js";
2
+ import { af as d } from "../../../LoadingSuspense-BdXYIsHy.js";
3
3
  import "../../../index-2QXL0WYc.js";
4
4
  import "react";
5
5
  import "../../../components/Text/Text.js";
6
- import "../../../Loading.module-BoPWGcXe.js";
6
+ import "../../../Loading.module-Bs6DSfb4.js";
7
7
  export {
8
8
  d as ValidateLoading
9
9
  };
@@ -1,4 +1,4 @@
1
- import { Q as a, R as o } from "../../LoadingSuspense-CbdTDOzY.js";
1
+ import { P as a, Q as o } from "../../LoadingSuspense-BdXYIsHy.js";
2
2
  export {
3
3
  a as IressLoading,
4
4
  o as IressLoadingSuspense
@@ -73,6 +73,12 @@ export interface IressHookFormProps<T extends FieldValues, TContext = object> ex
73
73
  * [Learn more](https://react-hook-form.com/docs/useform/formstate)
74
74
  */
75
75
  onValidChange?: (isValid: boolean) => void;
76
+ /**
77
+ * If set to `true`, the summary will only update when the form is submitted, not on every field change.
78
+ * This is useful for performance reasons, especially in large forms.
79
+ * @default false
80
+ */
81
+ updateErrorSummaryOnSubmit?: boolean;
76
82
  }
77
83
  export interface IressFormProps<T extends FieldValues, TContext = object> extends Partial<Omit<UseFormProps<T, TContext>, 'disabled' | 'errors'>>, Omit<IressHookFormProps<T, TContext>, 'form'> {
78
84
  /**
@@ -139,7 +145,10 @@ export interface IressFormProps<T extends FieldValues, TContext = object> extend
139
145
  */
140
146
  reValidateMode?: UseFormProps<T, TContext>['reValidateMode'];
141
147
  /**
142
- * When set to true (default), and the user submits a form that fails validation, focus is set on the first field with an error.
148
+ * When set to true, and the user submits a form that fails validation, focus is set on the first field with an error.
149
+ * By default, it is set based on the `hiddenErrorSummary` prop.
150
+ * - If hiddenErrorSummary is true, it will focus on the first field with an error.
151
+ * - If hiddenErrorSummary is false, it will focus on the error summary.
143
152
  *
144
153
  * [Learn more](https://react-hook-form.com/docs/useform#shouldFocusError)
145
154
  */
@@ -0,0 +1,20 @@
1
+ import { FloatingUIContainer } from '../../types';
2
+ import { ReactNode } from 'react';
3
+ import { IressToasterProviderProps } from '../Toaster';
4
+ import { IressSlideoutProviderProps } from '../Slideout';
5
+ export interface IressProviderProps extends Pick<IressSlideoutProviderProps, 'injectPushStyles'>, Pick<IressToasterProviderProps, 'position'> {
6
+ /**
7
+ * The contents of your application, and/or the components which will be calling slideouts, modals and toasts.
8
+ */
9
+ children?: ReactNode;
10
+ /**
11
+ * Container to render modal, slideouts and toasts into.
12
+ * If not provided, will render into the body of the document.
13
+ */
14
+ container?: FloatingUIContainer;
15
+ /**
16
+ * If you don't want to load the Iress Icon CSS from the CDN, set this to true.
17
+ */
18
+ noIcons?: boolean;
19
+ }
20
+ export declare const IressProvider: ({ children, container, injectPushStyles, noIcons, position, ...restProps }: IressProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Provider';
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { IressHTMLAttributes } from '../../../interfaces';
3
3
  import { HeadingLevel } from '../../../enums';
4
+ import { ButtonRef } from '../../Button';
4
5
  interface ToastHeadingProps<T = HTMLDivElement> extends IressHTMLAttributes<T> {
5
6
  /**
6
7
  * The heading area of the toast. You can pass react component such as `<IressText>Error</IressText>`.
@@ -17,7 +18,7 @@ interface ToastCloseButtonProps<T = HTMLDivElement> extends IressHTMLAttributes<
17
18
  /**
18
19
  * Click event on the close button of the toast.
19
20
  */
20
- onClose?: React.MouseEventHandler<HTMLButtonElement>;
21
+ onClose?: (e?: React.MouseEvent<ButtonRef>) => void;
21
22
  }
22
23
  interface ToastActionProps<T = HTMLDivElement> extends IressHTMLAttributes<T> {
23
24
  /**
@@ -1,8 +1,11 @@
1
+ import { MouseEvent } from 'react';
1
2
  import { IressToasterOptions, IressToasterProviderProps } from './Toaster.types';
2
3
  import { IressToastProps } from './Toast/Toast.types';
4
+ import { ButtonRef } from '../Button';
3
5
  interface ToasterContextValue {
4
- show: (toast: IressToastProps) => void;
5
- close: (id: string) => void;
6
+ animateOut: (id: string) => void;
7
+ show: (toast: IressToastProps) => string;
8
+ close: (id: string, e?: MouseEvent<ButtonRef>) => void;
6
9
  options: IressToasterOptions;
7
10
  setOptions: (options: IressToasterOptions) => void;
8
11
  }
@@ -1,9 +1,9 @@
1
1
  import { NewToast } from '../Toast/Toast.types';
2
2
  import { ToasterPositions } from '../Toaster.types';
3
3
  export declare const useToaster: (position?: ToasterPositions) => {
4
- success: (toast: NewToast) => void;
5
- error: (toast: NewToast) => void;
6
- info: (toast: NewToast) => void;
4
+ success: (toast: NewToast) => string;
5
+ error: (toast: NewToast) => string;
6
+ info: (toast: NewToast) => string;
7
7
  close: (id: string) => void;
8
8
  options: import('../Toaster.types').IressToasterOptions;
9
9
  };
@@ -95,29 +95,29 @@ export declare const Z_INDEX: {
95
95
  /**
96
96
  * The default z-index used for most elements. Can be combined with raised and floating elevations.
97
97
  */
98
- '000': number;
98
+ DEFAULT: number;
99
99
  /**
100
100
  * Used for IressNavbar. Can be combined with overflow elevation.
101
101
  */
102
- 100: number;
102
+ NAVBAR: number;
103
103
  /**
104
104
  * Used for IressPopover. Can be combined with floating elevation.
105
105
  */
106
- 200: number;
106
+ POPOVER: number;
107
107
  /**
108
108
  * Used for IressSlideout. Can be combined with floating elevation.
109
109
  */
110
- 300: number;
110
+ SLIDEOUT: number;
111
111
  /**
112
112
  * Used for IressModal. Can be combined with floating elevation.
113
113
  */
114
- 400: number;
114
+ MODAL: number;
115
115
  /**
116
116
  * Used for IressToast. Can be combined with floating elevation.
117
117
  */
118
- 500: number;
118
+ TOAST: number;
119
119
  /**
120
120
  * Used for IressTooltip. Can be combined with floating elevation.
121
121
  */
122
- 600: number;
122
+ TOOLTIP: number;
123
123
  };
@@ -27,6 +27,7 @@ export * from './components/Panel';
27
27
  export * from './components/Placeholder';
28
28
  export * from './components/Popover';
29
29
  export * from './components/Progress';
30
+ export * from './components/Provider';
30
31
  export * from './components/Radio';
31
32
  export * from './components/RadioGroup';
32
33
  export * from './components/Readonly';
@@ -1,9 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { IressHTMLAttributes } from '../../../interfaces';
3
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;
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
7
  };
8
8
  export interface PageLoadingProps extends Omit<IressHTMLAttributes, 'children'> {
9
9
  /**