@iress-oss/ids-components 6.0.0-alpha.23 → 6.0.0-alpha.25

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 (182) hide show
  1. package/dist/{Button-BrpmQKsB.js → Button-DNFXX5JD.js} +229 -104
  2. package/dist/Provider-uPW2d6U5.js +49 -0
  3. package/dist/components/Alert/Alert.d.ts +13 -6
  4. package/dist/components/Alert/Alert.js +67 -67
  5. package/dist/components/Alert/Alert.styles.d.ts +112 -36
  6. package/dist/components/Alert/Alert.styles.js +159 -65
  7. package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
  8. package/dist/components/Badge/Badge.js +3 -3
  9. package/dist/components/Badge/Badge.styles.d.ts +1 -1
  10. package/dist/components/Badge/Badge.styles.js +4 -3
  11. package/dist/components/Button/Button.d.ts +5 -0
  12. package/dist/components/Button/Button.js +9 -4
  13. package/dist/components/Button/CloseButton/CloseButton.js +13 -15
  14. package/dist/components/Button/index.js +1 -1
  15. package/dist/components/ButtonGroup/ButtonGroup.js +3 -3
  16. package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
  17. package/dist/components/Card/Card.d.ts +5 -1
  18. package/dist/components/Card/Card.js +26 -24
  19. package/dist/components/Card/Card.styles.d.ts +8 -4
  20. package/dist/components/Card/Card.styles.js +13 -10
  21. package/dist/components/Checkbox/Checkbox.js +3 -3
  22. package/dist/components/Checkbox/Checkbox.styles.d.ts +3 -3
  23. package/dist/components/Checkbox/Checkbox.styles.js +8 -9
  24. package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +1 -1
  25. package/dist/components/CheckboxMark/CheckboxMark.js +20 -35
  26. package/dist/components/CheckboxMark/CheckboxMark.styles.js +9 -7
  27. package/dist/components/Col/Col.js +1 -1
  28. package/dist/components/Col/Col.styles.js +1 -1
  29. package/dist/components/Container/Container.js +1 -1
  30. package/dist/components/Container/Container.styles.js +1 -1
  31. package/dist/components/Divider/Divider.js +2 -2
  32. package/dist/components/Divider/Divider.styles.js +1 -1
  33. package/dist/components/Expander/Expander.js +3 -3
  34. package/dist/components/Expander/Expander.styles.js +3 -8
  35. package/dist/components/Field/Field.js +3 -3
  36. package/dist/components/Field/Field.styles.d.ts +2 -2
  37. package/dist/components/Field/Field.styles.js +8 -4
  38. package/dist/components/Field/FieldGroup/FieldGroup.js +3 -3
  39. package/dist/components/Field/FieldGroup/FieldGroup.styles.d.ts +12 -12
  40. package/dist/components/Field/FieldGroup/FieldGroup.styles.js +13 -13
  41. package/dist/components/Field/components/FieldFooter.js +25 -23
  42. package/dist/components/Field/components/FieldHint.js +2 -2
  43. package/dist/components/Filter/Filter.js +3 -3
  44. package/dist/components/Filter/Filter.styles.js +1 -1
  45. package/dist/components/Filter/components/FilterResetButton.js +1 -1
  46. package/dist/components/Filter/components/FilterResultsDescriptor.js +1 -1
  47. package/dist/components/Filter/components/FilterSearch.d.ts +2 -0
  48. package/dist/components/Hide/Hide.js +1 -1
  49. package/dist/components/Icon/Icon.js +3 -3
  50. package/dist/components/Icon/Icon.styles.js +1 -1
  51. package/dist/components/Image/Image.js +1 -1
  52. package/dist/components/Image/Image.styles.js +1 -1
  53. package/dist/components/Inline/Inline.js +1 -1
  54. package/dist/components/Inline/Inline.styles.js +1 -1
  55. package/dist/components/Input/Input.d.ts +10 -0
  56. package/dist/components/Input/Input.js +125 -107
  57. package/dist/components/Input/Input.styles.d.ts +11 -1
  58. package/dist/components/Input/Input.styles.js +62 -22
  59. package/dist/components/Input/InputBase/InputBase.js +1 -1
  60. package/dist/components/Label/Label.styles.js +5 -5
  61. package/dist/components/Label/LabelBase/LabelBase.js +1 -1
  62. package/dist/components/Link/Link.js +2 -2
  63. package/dist/components/Link/Link.styles.js +5 -10
  64. package/dist/components/Menu/Menu.js +1 -1
  65. package/dist/components/Menu/Menu.styles.js +6 -10
  66. package/dist/components/Menu/MenuItem/MenuItem.js +2 -2
  67. package/dist/components/Menu/MenuText/MenuText.js +2 -2
  68. package/dist/components/Modal/Modal.js +3 -3
  69. package/dist/components/Modal/Modal.styles.d.ts +1 -1
  70. package/dist/components/Modal/Modal.styles.js +3 -3
  71. package/dist/components/Panel/Panel.js +1 -1
  72. package/dist/components/Panel/Panel.styles.d.ts +1 -1
  73. package/dist/components/Panel/Panel.styles.js +2 -2
  74. package/dist/components/Placeholder/Placeholder.styles.js +1 -1
  75. package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
  76. package/dist/components/Popover/Popover.js +1 -1
  77. package/dist/components/Popover/Popover.styles.js +2 -2
  78. package/dist/components/Popover/components/PopoverContent.js +1 -1
  79. package/dist/components/Progress/Progress.js +4 -4
  80. package/dist/components/Progress/Progress.styles.js +1 -1
  81. package/dist/components/Provider/Provider.js +1 -1
  82. package/dist/components/Provider/index.js +1 -1
  83. package/dist/components/Radio/Radio.js +3 -3
  84. package/dist/components/Radio/Radio.styles.d.ts +12 -3
  85. package/dist/components/Radio/Radio.styles.js +18 -13
  86. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  87. package/dist/components/RadioGroup/RadioGroup.styles.js +1 -1
  88. package/dist/components/Readonly/Readonly.js +2 -2
  89. package/dist/components/Readonly/Readonly.styles.js +4 -4
  90. package/dist/components/RichSelect/RichSelect.styles.js +1 -1
  91. package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +1 -1
  92. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
  93. package/dist/components/RichSelect/SelectLabel/SelectLabel.js +16 -16
  94. package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +4 -13
  95. package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +1 -1
  96. package/dist/components/RichSelect/SelectSearch/SelectSearch.styles.js +1 -1
  97. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +8 -15
  98. package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
  99. package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +4 -13
  100. package/dist/components/Row/Row.js +1 -1
  101. package/dist/components/Row/Row.styles.js +1 -1
  102. package/dist/components/Select/Select.js +2 -2
  103. package/dist/components/Select/Select.styles.js +8 -6
  104. package/dist/components/Select/SelectOption/SelectOption.js +1 -1
  105. package/dist/components/Select/components/SelectControl.js +1 -1
  106. package/dist/components/Skeleton/Skeleton.styles.js +2 -2
  107. package/dist/components/SkipLink/SkipLink.js +1 -1
  108. package/dist/components/SkipLink/SkipLink.styles.js +1 -1
  109. package/dist/components/Slideout/Slideout.js +1 -1
  110. package/dist/components/Slideout/Slideout.styles.d.ts +7 -9
  111. package/dist/components/Slideout/Slideout.styles.js +11 -13
  112. package/dist/components/Slideout/components/SlideoutInner.js +3 -3
  113. package/dist/components/Slideout/hooks/usePushElement.js +1 -1
  114. package/dist/components/Slider/Slider.js +2 -2
  115. package/dist/components/Slider/Slider.styles.js +5 -13
  116. package/dist/components/Slider/components/SliderTicks.js +1 -1
  117. package/dist/components/Spinner/Spinner.styles.js +2 -2
  118. package/dist/components/Stack/Stack.js +1 -1
  119. package/dist/components/Stack/Stack.styles.js +1 -1
  120. package/dist/components/Styled/Styled.js +1 -1
  121. package/dist/components/TabSet/Tab/Tab.js +1 -1
  122. package/dist/components/TabSet/Tab/Tab.styles.d.ts +4 -6
  123. package/dist/components/TabSet/Tab/Tab.styles.js +10 -14
  124. package/dist/components/TabSet/TabSet.js +1 -1
  125. package/dist/components/TabSet/TabSet.styles.d.ts +2 -2
  126. package/dist/components/TabSet/TabSet.styles.js +9 -12
  127. package/dist/components/Table/Table.js +1 -1
  128. package/dist/components/Table/Table.styles.js +3 -3
  129. package/dist/components/Table/TableBody/TableBody.js +1 -1
  130. package/dist/components/Table/components/TableRows.js +1 -1
  131. package/dist/components/Table/hooks/useTableColumnStyles.js +2 -2
  132. package/dist/components/Tag/Tag.js +4 -4
  133. package/dist/components/Tag/Tag.styles.d.ts +1 -6
  134. package/dist/components/Tag/Tag.styles.js +3 -8
  135. package/dist/components/Tag/TagInput/TagInput.styles.js +1 -1
  136. package/dist/components/Text/Text.js +1 -1
  137. package/dist/components/Text/Text.styles.js +3 -3
  138. package/dist/components/Toaster/Toaster.js +1 -1
  139. package/dist/components/Toaster/Toaster.styles.js +1 -1
  140. package/dist/components/Toaster/components/Toast/Toast.js +2 -2
  141. package/dist/components/Toaster/components/Toast/Toast.styles.js +2 -2
  142. package/dist/components/Toggle/Toggle.js +2 -2
  143. package/dist/components/Toggle/Toggle.styles.js +2 -4
  144. package/dist/components/Tooltip/Tooltip.js +1 -1
  145. package/dist/components/Tooltip/Tooltip.styles.js +2 -2
  146. package/dist/components/ValidationMessage/ValidationMessage.js +18 -10
  147. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
  148. package/dist/constants.d.ts +8 -8
  149. package/dist/constants.js +7 -7
  150. package/dist/{create-recipe-DUTadmvy.js → create-recipe-BDTG8O8S.js} +2 -2
  151. package/dist/{css-BStWZDQe.js → css-DVJ-ALYD.js} +13 -13
  152. package/dist/{cva-DJVW1KHF.js → cva-3iuaj0TL.js} +1 -1
  153. package/dist/enums.d.ts +1 -0
  154. package/dist/enums.js +1 -1
  155. package/dist/{factory-BrouwSOb.js → factory-CcYfm2kB.js} +3 -3
  156. package/dist/helpers/styling/iressCss.js +1 -1
  157. package/dist/{index-Bir9MtY7.js → index-7z9nAsjZ.js} +95 -67
  158. package/dist/interfaces.d.ts +1 -9
  159. package/dist/is-valid-prop-C5D641yn.js +7 -0
  160. package/dist/main.js +2 -2
  161. package/dist/patterns/Form/Form.styles.js +1 -1
  162. package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +11 -11
  163. package/dist/patterns/Form/HookForm/HookForm.js +1 -1
  164. package/dist/patterns/Loading/Loading.styles.d.ts +1 -1
  165. package/dist/patterns/Loading/Loading.styles.js +1 -1
  166. package/dist/patterns/Loading/components/ComponentLoading.js +1 -1
  167. package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
  168. package/dist/patterns/Loading/components/LongLoading.js +1 -1
  169. package/dist/patterns/Loading/components/PageLoading.js +1 -1
  170. package/dist/patterns/Loading/components/StartUpLoading.js +1 -1
  171. package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
  172. package/dist/patterns/Shadow/Shadow.js +886 -814
  173. package/dist/style.css +1 -1
  174. package/dist/styled-system/recipes/button.d.ts +2 -1
  175. package/dist/styled-system/tokens/tokens.d.ts +4 -4
  176. package/dist/styled-system/types/composition.d.ts +3 -0
  177. package/dist/styled-system/types/conditions.d.ts +0 -4
  178. package/dist/styled-system/types/prop-type.d.ts +3 -3
  179. package/dist/{sva-Df1FmoEW.js → sva-CsHRIRDW.js} +2 -2
  180. package/package.json +8 -8
  181. package/dist/Provider-Dw49edAo.js +0 -53
  182. package/dist/is-valid-prop-DTA0i8bT.js +0 -7
@@ -1,21 +1,26 @@
1
- import { jsxs as q, Fragment as N, jsx as u } from "react/jsx-runtime";
2
- import { forwardRef as j, useId as M, useRef as R, useMemo as n, useCallback as E, useImperativeHandle as A } from "react";
3
- import { IressSpinner as K } from "./components/Spinner/Spinner.js";
1
+ import { jsxs as N, Fragment as O, jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as j, useId as M, useRef as R, useMemo as d, useCallback as E, useImperativeHandle as T } from "react";
3
+ import { IressSpinner as A } from "./components/Spinner/Spinner.js";
4
4
  import "./components/Spinner/Spinner.styles.js";
5
- import { GlobalCSSClass as d } from "./enums.js";
5
+ import { GlobalCSSClass as b } from "./enums.js";
6
6
  import "./components/ButtonGroup/ButtonGroup.js";
7
7
  import "./components/ButtonGroup/ButtonGroup.styles.js";
8
- import { useButtonGroupItem as O } from "./components/ButtonGroup/hooks/useButtonGroupItem.js";
9
- import { s as W } from "./is-valid-prop-DTA0i8bT.js";
10
- import { m as D, a as L, s as T, i as z, c as J } from "./css-BStWZDQe.js";
11
- import { c as Q } from "./cx-DN21T1EH.js";
12
- import { c as U } from "./create-recipe-DUTadmvy.js";
8
+ import { useButtonGroupItem as K } from "./components/ButtonGroup/hooks/useButtonGroupItem.js";
9
+ import { s as L } from "./is-valid-prop-C5D641yn.js";
10
+ import { m as W, a as D, s as z, i as J, c as Q } from "./css-DVJ-ALYD.js";
11
+ import { c as U } from "./cx-DN21T1EH.js";
12
+ import { c as X } from "./create-recipe-BDTG8O8S.js";
13
13
  import "./components/Popover/Popover.js";
14
14
  import "./components/Popover/Popover.styles.js";
15
15
  import "./components/Popover/InputPopover/InputPopover.js";
16
- import { usePopover as X } from "./components/Popover/hooks/usePopover.js";
16
+ import { usePopover as Y } from "./components/Popover/hooks/usePopover.js";
17
17
  import "./components/Popover/hooks/useFloatingPopover.js";
18
- const h = {}, Y = [
18
+ import { IressIcon as Z } from "./components/Icon/Icon.js";
19
+ import "./components/Icon/Icon.styles.js";
20
+ import "./components/Icon/IconProvider.js";
21
+ import { IressTooltip as $ } from "./components/Tooltip/Tooltip.js";
22
+ import "./components/Tooltip/Tooltip.styles.js";
23
+ const I = {}, oo = [
19
24
  {
20
25
  mode: "primary",
21
26
  status: "danger",
@@ -50,7 +55,7 @@ const h = {}, Y = [
50
55
  borderColor: "[color-mix(in srgb, {colors.colour.system.danger.surfaceHover}, black 5%)]"
51
56
  },
52
57
  _active: {
53
- boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 60%) 0px 0px 0px 3px"
58
+ boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 40%) 0px 0px 0px 3px"
54
59
  }
55
60
  },
56
61
  spinner: {
@@ -69,7 +74,7 @@ const h = {}, Y = [
69
74
  bg: "colour.system.danger.surfaceHover"
70
75
  },
71
76
  _active: {
72
- boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 60%) 0px 0px 0px 3px"
77
+ boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 40%) 0px 0px 0px 3px"
73
78
  }
74
79
  },
75
80
  spinner: {
@@ -88,7 +93,7 @@ const h = {}, Y = [
88
93
  bg: "colour.system.danger.surfaceHover"
89
94
  },
90
95
  _active: {
91
- boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 60%) 0px 0px 0px 3px"
96
+ boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 40%) 0px 0px 0px 3px"
92
97
  }
93
98
  },
94
99
  spinner: {
@@ -145,7 +150,7 @@ const h = {}, Y = [
145
150
  borderColor: "[color-mix(in srgb, {colors.colour.system.success.surfaceHover}, black 5%)]"
146
151
  },
147
152
  _active: {
148
- boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 60%) 0px 0px 0px 3px"
153
+ boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 40%) 0px 0px 0px 3px"
149
154
  }
150
155
  },
151
156
  spinner: {
@@ -164,7 +169,7 @@ const h = {}, Y = [
164
169
  bg: "colour.system.success.surfaceHover"
165
170
  },
166
171
  _active: {
167
- boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 60%) 0px 0px 0px 3px"
172
+ boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 40%) 0px 0px 0px 3px"
168
173
  }
169
174
  },
170
175
  spinner: {
@@ -183,7 +188,7 @@ const h = {}, Y = [
183
188
  bg: "colour.system.success.surfaceHover"
184
189
  },
185
190
  _active: {
186
- boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 60%) 0px 0px 0px 3px"
191
+ boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 40%) 0px 0px 0px 3px"
187
192
  }
188
193
  },
189
194
  spinner: {
@@ -207,35 +212,131 @@ const h = {}, Y = [
207
212
  }
208
213
  }
209
214
  },
215
+ {
216
+ mode: "secondary",
217
+ status: "info",
218
+ css: {
219
+ root: {
220
+ bg: "colour.system.info.surface",
221
+ borderColor: "[color-mix(in srgb, {colors.colour.system.info.surface}, black 5%)]",
222
+ color: "colour.system.info.text",
223
+ _hover: {
224
+ bg: "colour.system.info.surfaceHover",
225
+ borderColor: "[color-mix(in srgb, {colors.colour.system.info.surfaceHover}, black 5%)]"
226
+ },
227
+ _active: {
228
+ boxShadow: "[color-mix(in srgb, {colors.colour.system.info.surface}, transparent 40%) 0px 0px 0px 3px]"
229
+ }
230
+ },
231
+ spinner: {
232
+ color: "colour.system.info.text"
233
+ }
234
+ }
235
+ },
236
+ {
237
+ mode: "tertiary",
238
+ status: "info",
239
+ css: {
240
+ root: {
241
+ borderColor: "colour.system.info.fill",
242
+ color: "colour.system.info.text",
243
+ _hover: {
244
+ bg: "colour.system.info.surfaceHover"
245
+ },
246
+ _active: {
247
+ boxShadow: "[color-mix(in srgb, {colors.colour.system.info.surface}, transparent 40%) 0px 0px 0px 3px]"
248
+ }
249
+ },
250
+ spinner: {
251
+ color: "colour.system.info.text"
252
+ }
253
+ }
254
+ },
255
+ {
256
+ mode: "secondary",
257
+ status: "warning",
258
+ css: {
259
+ root: {
260
+ bg: "colour.system.warning.surface",
261
+ borderColor: "[color-mix(in srgb, {colors.colour.system.warning.surface}, black 5%)]",
262
+ color: "colour.system.warning.text",
263
+ _hover: {
264
+ bg: "colour.system.warning.surfaceHover",
265
+ borderColor: "[color-mix(in srgb, {colors.colour.system.warning.surfaceHover}, black 5%)]"
266
+ },
267
+ _active: {
268
+ boxShadow: "[color-mix(in srgb, {colors.colour.system.warning.surface}, transparent 40%) 0px 0px 0px 3px]"
269
+ }
270
+ },
271
+ spinner: {
272
+ color: "colour.system.warning.text"
273
+ }
274
+ }
275
+ },
276
+ {
277
+ mode: "tertiary",
278
+ status: "warning",
279
+ css: {
280
+ root: {
281
+ borderColor: "colour.system.warning.fill",
282
+ color: "colour.system.warning.text",
283
+ _hover: {
284
+ bg: "colour.system.warning.surfaceHover"
285
+ },
286
+ _active: {
287
+ boxShadow: "[color-mix(in srgb, {colors.colour.system.warning.surface}, transparent 40%) 0px 0px 0px 3px]"
288
+ }
289
+ },
290
+ spinner: {
291
+ color: "colour.system.warning.text"
292
+ }
293
+ }
294
+ },
210
295
  {
211
296
  mode: "primary",
212
297
  loading: !0,
213
298
  css: {
214
299
  root: {
215
- bg: "colour.neutral.30",
216
- borderColor: "colour.neutral.30",
217
- color: "colour.neutral.60"
300
+ bg: "colour.neutral.20",
301
+ borderColor: "colour.neutral.20",
302
+ color: "colour.neutral.70"
218
303
  },
219
304
  spinner: {
220
- color: "colour.neutral.60"
305
+ color: "colour.neutral.70"
221
306
  }
222
307
  }
223
308
  },
224
309
  {
225
310
  mode: [
226
311
  "secondary",
227
- "tertiary",
228
312
  "quaternary"
229
313
  ],
230
314
  loading: !0,
231
315
  css: {
232
316
  root: {
233
- bg: "colour.neutral.30",
234
- borderColor: "colour.neutral.60",
235
- color: "colour.neutral.60"
317
+ bg: "colour.neutral.20",
318
+ borderColor: "colour.neutral.40",
319
+ color: "colour.neutral.70",
320
+ _hover: {
321
+ boxShadow: "none"
322
+ }
236
323
  },
237
324
  spinner: {
238
- color: "colour.neutral.60"
325
+ color: "colour.neutral.70"
326
+ }
327
+ }
328
+ },
329
+ {
330
+ mode: "tertiary",
331
+ loading: !0,
332
+ css: {
333
+ root: {
334
+ bg: "colour.neutral.20",
335
+ borderColor: "colour.neutral.70",
336
+ color: "colour.neutral.70"
337
+ },
338
+ spinner: {
339
+ color: "colour.neutral.70"
239
340
  }
240
341
  }
241
342
  },
@@ -282,7 +383,7 @@ const h = {}, Y = [
282
383
  }
283
384
  }
284
385
  }
285
- ], Z = [
386
+ ], ro = [
286
387
  [
287
388
  "root",
288
389
  "button__root"
@@ -299,20 +400,21 @@ const h = {}, Y = [
299
400
  "spinner",
300
401
  "button__spinner"
301
402
  ]
302
- ], $ = /* @__PURE__ */ Z.map(([o, t]) => [o, U(t, h, z(Y, o))]), oo = D((o = {}) => Object.fromEntries($.map(([t, s]) => [t, s.recipeFn(o)]))), C = [
403
+ ], so = /* @__PURE__ */ ro.map(([o, c]) => [o, X(c, I, J(oo, o))]), eo = W((o = {}) => Object.fromEntries(so.map(([c, r]) => [c, r.recipeFn(o)]))), S = [
303
404
  "active",
304
405
  "fluid",
305
406
  "inButtonGroup",
407
+ "iconOnly",
306
408
  "loading",
307
409
  "mode",
308
410
  "noWrap",
309
411
  "status"
310
- ], ro = (o) => ({ ...h, ...L(o) }), so = /* @__PURE__ */ Object.assign(oo, {
412
+ ], to = (o) => ({ ...I, ...D(o) }), co = /* @__PURE__ */ Object.assign(eo, {
311
413
  __recipe__: !1,
312
414
  __name__: "button",
313
415
  raw: (o) => o,
314
416
  classNameMap: {},
315
- variantKeys: C,
417
+ variantKeys: S,
316
418
  variantMap: {
317
419
  active: [
318
420
  "true"
@@ -329,6 +431,9 @@ const h = {}, Y = [
329
431
  inButtonGroup: [
330
432
  "true"
331
433
  ],
434
+ iconOnly: [
435
+ "true"
436
+ ],
332
437
  loading: [
333
438
  "true"
334
439
  ],
@@ -344,107 +449,127 @@ const h = {}, Y = [
344
449
  ],
345
450
  status: [
346
451
  "success",
347
- "danger"
452
+ "danger",
453
+ "info",
454
+ "warning"
348
455
  ]
349
456
  },
350
457
  splitVariantProps(o) {
351
- return T(o, C);
458
+ return z(o, S);
352
459
  },
353
- getVariantProps: ro
354
- }), eo = ({
460
+ getVariantProps: to
461
+ }), no = ({
355
462
  active: o,
356
- append: t,
357
- children: s,
358
- className: y,
359
- element: l,
360
- fluid: b,
361
- loading: r = !1,
362
- mode: x = "secondary",
363
- prepend: m,
364
- noWrap: H = !1,
365
- onClick: g,
366
- status: S,
367
- value: w,
368
- ...f
369
- }, F) => {
370
- const i = M(), I = w ?? (typeof s == "string" || typeof s == "number" || typeof s == "boolean" ? s : void 0), B = X(), p = R(null), c = O({ value: I }), G = n(() => c ? c.active ? "primary" : "tertiary" : x, [c, x]), e = so({
463
+ append: c,
464
+ children: r,
465
+ className: x,
466
+ element: u,
467
+ fluid: f,
468
+ icon: l,
469
+ loading: s = !1,
470
+ mode: g = "secondary",
471
+ prepend: y,
472
+ noWrap: k = !1,
473
+ onClick: v,
474
+ status: F,
475
+ value: B,
476
+ ..._
477
+ }, G) => {
478
+ const i = M(), P = B ?? (typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? r : void 0), V = Y(), m = R(null), e = K({ value: P }), q = d(() => e ? e.active ? "primary" : "tertiary" : g, [e, g]), t = co({
371
479
  active: (
372
480
  // eslint-disable-next-line react-hooks/refs -- ref needed for forwarding
373
- o ?? B?.isActiveActivator(p.current)
481
+ o ?? V?.isActiveActivator(m.current)
374
482
  ),
375
- fluid: b === !0 ? "true" : b,
376
- inButtonGroup: !!c,
377
- mode: G,
378
- loading: !!r,
379
- noWrap: H,
380
- status: S
381
- }), [v, a] = n(
382
- () => W(f),
383
- [f]
384
- ), _ = E(
385
- (V) => {
386
- r || (g?.(V), c?.toggle());
483
+ fluid: f === !0 ? "true" : f,
484
+ inButtonGroup: !!e,
485
+ mode: q,
486
+ iconOnly: !!l,
487
+ loading: !!s,
488
+ noWrap: k,
489
+ status: F
490
+ }), [h, a] = d(
491
+ () => L(_),
492
+ [_]
493
+ ), C = E(
494
+ (p) => {
495
+ s || (v?.(p), e?.toggle());
387
496
  },
388
- [c, r, g]
389
- ), P = n(
497
+ [e, s, v]
498
+ ), w = d(
390
499
  () => ({
391
- children: /* @__PURE__ */ q(N, { children: [
392
- m && !r && /* @__PURE__ */ u("span", { className: e.prepend, children: m }),
393
- !!r && /* @__PURE__ */ u(
394
- K,
500
+ children: /* @__PURE__ */ N(O, { children: [
501
+ y && !s && /* @__PURE__ */ n("span", { className: t.prepend, children: y }),
502
+ !!s && /* @__PURE__ */ n(
503
+ A,
395
504
  {
396
- className: e.spinner,
505
+ className: t.spinner,
397
506
  id: i,
398
- screenreaderText: r === !0 ? "Loading" : r
507
+ screenreaderText: s === !0 ? "Loading" : s
399
508
  }
400
509
  ),
401
- s,
402
- t && /* @__PURE__ */ u("span", { className: e.append, children: t })
510
+ l ? /* @__PURE__ */ n(Z, { name: l }) : r,
511
+ c && /* @__PURE__ */ n("span", { className: t.append, children: c })
403
512
  ] }),
404
- className: Q(
405
- y,
406
- d.FormElement,
407
- d.FormElementInner,
408
- e.root,
409
- J(v),
410
- d.Button
513
+ className: U(
514
+ x,
515
+ b.FormElement,
516
+ b.FormElementInner,
517
+ t.root,
518
+ Q(h),
519
+ b.Button
411
520
  ),
412
- onClick: _
521
+ onClick: C
413
522
  }),
414
523
  [
415
- t,
524
+ c,
525
+ r,
526
+ x,
527
+ C,
528
+ l,
416
529
  s,
417
530
  y,
418
- _,
419
- r,
420
- m,
421
531
  i,
422
- v,
423
- e.append,
424
- e.prepend,
425
- e.root,
426
- e.spinner
532
+ h,
533
+ t.append,
534
+ t.prepend,
535
+ t.root,
536
+ t.spinner
427
537
  ]
428
538
  );
429
- A(F, () => p.current);
430
- const k = n(
431
- () => l ?? (a.href ? "a" : "button"),
432
- [l, a.href]
539
+ T(G, () => m.current);
540
+ const H = d(
541
+ () => u ?? (a.href ? "a" : "button"),
542
+ [u, a.href]
433
543
  );
434
- return /* @__PURE__ */ u(
435
- k,
544
+ if (l && r) {
545
+ const p = String(r);
546
+ return /* @__PURE__ */ n($, { tooltipText: p, children: /* @__PURE__ */ n(
547
+ H,
548
+ {
549
+ "aria-label": p,
550
+ "aria-describedby": s ? i : void 0,
551
+ type: u || !a.href ? "button" : void 0,
552
+ ...w,
553
+ ...e?.props,
554
+ ...a,
555
+ ref: m
556
+ }
557
+ ) });
558
+ }
559
+ return /* @__PURE__ */ n(
560
+ H,
436
561
  {
437
- "aria-describedby": r ? i : void 0,
438
- type: l || !a.href ? "button" : void 0,
439
- ...P,
440
- ...c?.props,
562
+ "aria-describedby": s ? i : void 0,
563
+ type: u || !a.href ? "button" : void 0,
564
+ ...w,
565
+ ...e?.props,
441
566
  ...a,
442
- ref: p
567
+ ref: m
443
568
  }
444
569
  );
445
- }, to = j(eo);
446
- to.displayName = "IressButton";
570
+ }, ao = j(no);
571
+ ao.displayName = "IressButton";
447
572
  export {
448
- to as I,
449
- so as b
573
+ ao as I,
574
+ co as b
450
575
  };
@@ -0,0 +1,49 @@
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import "./components/Modal/Modal.styles.js";
3
+ import "./components/Modal/Modal.js";
4
+ import { IressModalProvider as m } from "./components/Modal/ModalProvider.js";
5
+ import "./components/Modal/hooks/useModal.js";
6
+ import { IressToasterProvider as d } from "./components/Toaster/ToasterProvider.js";
7
+ import "./components/Toaster/hooks/useToaster.js";
8
+ import "./components/Toaster/Toaster.styles.js";
9
+ import "./components/Toaster/components/Toast/Toast.styles.js";
10
+ import "./components/Slideout/Slideout.js";
11
+ import "./components/Slideout/Slideout.styles.js";
12
+ import { IressSlideoutProvider as g } from "./components/Slideout/SlideoutProvider.js";
13
+ import "./components/Slideout/hooks/useSlideout.js";
14
+ import { createPortal as n } from "react-dom";
15
+ import "./components/Icon/Icon.js";
16
+ import "./components/Icon/Icon.styles.js";
17
+ import { IressIconProvider as h } from "./components/Icon/IconProvider.js";
18
+ var r = /* @__PURE__ */ ((o) => (o.Color = "color", o.Dimension = "dimension", o.FontFamily = "fontFamily", o.FontSize = "fontSize", o.Background = "background", o.Border = "border", o.Radius = "radius", o.Shadow = "shadow", o.Typography = "typography", o))(r || {});
19
+ const l = [
20
+ "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
21
+ ];
22
+ r.FontSize, r.FontFamily, r.FontFamily, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography;
23
+ const $ = ({
24
+ children: o,
25
+ container: p,
26
+ noDefaultFont: y,
27
+ position: i,
28
+ ...s
29
+ }) => /* @__PURE__ */ a(m, { container: p, children: [
30
+ /* @__PURE__ */ e(d, { container: p, position: i, children: /* @__PURE__ */ e(g, { container: p, ...s, children: /* @__PURE__ */ e(h, { container: p, noSubsetting: !0, children: o }) }) }),
31
+ !y && n(
32
+ l.map((t) => /* @__PURE__ */ e(
33
+ "link",
34
+ {
35
+ rel: "stylesheet",
36
+ href: t,
37
+ "data-iress-design-system-font": !0
38
+ },
39
+ t
40
+ )),
41
+ document.head,
42
+ "design-system-font"
43
+ )
44
+ ] });
45
+ $.displayName = "IressProvider";
46
+ export {
47
+ $ as I,
48
+ l as i
49
+ };
@@ -3,22 +3,25 @@ import { IressTextProps } from '../Text';
3
3
  import { ReactNode } from 'react';
4
4
  import { Statuses } from '../../types';
5
5
  import { IressButtonProps, IressCloseButtonProps } from '../Button';
6
+ export interface IressAlertButtonProps extends Omit<IressButtonProps, 'mode' | 'status'> {
7
+ mode?: 'secondary' | 'tertiary';
8
+ }
6
9
  export interface IressAlertProps extends Omit<IressTextProps, 'element'> {
7
10
  /**
8
11
  * Actions to display in the alert. These will be rendered as buttons with opinionated styling.
9
12
  * If you want to use custom buttons, use the `footer` prop instead.
10
13
  **/
11
- actions?: Omit<IressButtonProps, 'mode' | 'status'>[];
14
+ actions?: IressAlertButtonProps[];
12
15
  /**
13
16
  * Contents of the alert. Is automatically wrapped in `<IressText />` and will inherit its styling.
14
17
  **/
15
18
  children?: ReactNode;
16
19
  /**
17
- * Contents of the alert. Is automatically wrapped in `<IressText />` and will inherit its styling.
20
+ * If true, the alert will be dismissed and unrendered from the DOM. Use for uncontrolled dismissal of the alert, where the component manages its own dismissed state internally.
18
21
  **/
19
22
  defaultDismissed?: boolean;
20
23
  /**
21
- * Contents of the alert. Is automatically wrapped in `<IressText />` and will inherit its styling.
24
+ * If true, the alert will be dismissed and unrendered from the DOM. Use for controlled dismissal of the alert, where the parent component manages the dismissed state and passes it down via this prop.
22
25
  **/
23
26
  dismissed?: boolean;
24
27
  /**
@@ -36,6 +39,10 @@ export interface IressAlertProps extends Omit<IressTextProps, 'element'> {
36
39
  * If not provided, the icon will be determined by the `status` prop.
37
40
  **/
38
41
  icon?: IressIconProps['name'] | false;
42
+ /**
43
+ * If true, the alert will have a layout that supports longer content, with increased spacing and the icon aligned to the top of the alert instead of centered. Should be used when the content of the alert is more than a couple of sentences.
44
+ */
45
+ multiLine?: boolean;
39
46
  /**
40
47
  * Icon to display in the alert.
41
48
  * If set to `false`, no icon will be displayed.
@@ -50,11 +57,11 @@ export interface IressAlertProps extends Omit<IressTextProps, 'element'> {
50
57
  /**
51
58
  * Variants of the alert, allowing it to be styled differently based on where its used in the application.
52
59
  * - Sidebar: The icon will be aligned to the heading, and the text will appear below the icon.
53
- * - Site-wide: The border will be removed, except for the bottom border.
60
+ * - Full-width: The border will be removed, except for the bottom border.
54
61
  */
55
- variant?: 'sidebar' | 'site-wide';
62
+ variant?: 'sidebar' | 'full-width';
56
63
  }
57
64
  export declare const IressAlert: {
58
- ({ actions, children, className, defaultDismissed, dismissed: dismissedProp, footer, heading, icon: iconProp, onDismiss, status, variant, ...restProps }: IressAlertProps): import("react/jsx-runtime").JSX.Element | null;
65
+ ({ actions, children, className, defaultDismissed, dismissed: dismissedProp, footer, heading, icon: iconProp, multiLine, onDismiss, status, variant, ...restProps }: IressAlertProps): import("react/jsx-runtime").JSX.Element | null;
59
66
  displayName: string;
60
67
  };