@iress-oss/ids-components 6.0.0-alpha.12 → 6.0.0-alpha.14

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 (61) hide show
  1. package/dist/{Button-ZGbOkyOo.js → Button-BTkololu.js} +124 -117
  2. package/dist/{Provider-BPoPUE-B.js → Provider-B87u_maF.js} +4 -4
  3. package/dist/components/Alert/Alert.js +35 -36
  4. package/dist/components/Alert/Alert.styles.d.ts +24 -32
  5. package/dist/components/Alert/Alert.styles.js +24 -32
  6. package/dist/components/Button/Button.d.ts +3 -2
  7. package/dist/components/Button/Button.js +1 -1
  8. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  9. package/dist/components/Button/index.js +1 -1
  10. package/dist/components/Card/Card.styles.js +1 -1
  11. package/dist/components/Divider/Divider.d.ts +1 -1
  12. package/dist/components/Divider/Divider.js +24 -20
  13. package/dist/components/Divider/Divider.styles.d.ts +6 -1
  14. package/dist/components/Divider/Divider.styles.js +17 -3
  15. package/dist/components/Expander/Expander.js +65 -52
  16. package/dist/components/Expander/Expander.styles.d.ts +23 -11
  17. package/dist/components/Expander/Expander.styles.js +44 -31
  18. package/dist/components/Filter/Filter.js +120 -117
  19. package/dist/components/Filter/Filter.styles.js +5 -3
  20. package/dist/components/Filter/components/FilterResetButton.js +1 -1
  21. package/dist/components/Input/Input.js +1 -1
  22. package/dist/components/Link/Link.styles.js +0 -1
  23. package/dist/components/Menu/MenuText/MenuText.js +1 -1
  24. package/dist/components/Modal/Modal.js +1 -1
  25. package/dist/components/Modal/Modal.styles.d.ts +1 -1
  26. package/dist/components/Modal/Modal.styles.js +1 -1
  27. package/dist/components/Progress/Progress.js +1 -1
  28. package/dist/components/Provider/Provider.js +1 -1
  29. package/dist/components/Provider/index.js +1 -1
  30. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +19 -19
  31. package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
  32. package/dist/components/SkipLink/SkipLink.js +1 -1
  33. package/dist/components/Slideout/components/SlideoutInner.js +1 -1
  34. package/dist/components/Slideout/hooks/usePushElement.js +1 -1
  35. package/dist/components/Stack/Stack.d.ts +5 -1
  36. package/dist/components/Stack/Stack.styles.d.ts +20 -0
  37. package/dist/components/Stack/Stack.styles.js +23 -3
  38. package/dist/components/TabSet/TabSet.styles.js +1 -1
  39. package/dist/components/Tag/Tag.d.ts +27 -4
  40. package/dist/components/Tag/Tag.js +50 -33
  41. package/dist/components/Tag/Tag.styles.d.ts +25 -0
  42. package/dist/components/Tag/Tag.styles.js +39 -12
  43. package/dist/components/Tag/TagInput/TagInput.js +51 -48
  44. package/dist/components/Tag/TagInput/TagInput.styles.js +4 -10
  45. package/dist/components/Toaster/components/Toast/Toast.d.ts +5 -3
  46. package/dist/components/Toaster/components/Toast/Toast.js +65 -58
  47. package/dist/components/Toaster/components/Toast/Toast.styles.d.ts +31 -1
  48. package/dist/components/Toaster/components/Toast/Toast.styles.js +33 -6
  49. package/dist/{index-gmMGso0u.js → index-Bm5rQqn5.js} +5 -1
  50. package/dist/interfaces.d.ts +7 -2
  51. package/dist/main.js +2 -2
  52. package/dist/patterns/Loading/components/LongLoading.js +28 -28
  53. package/dist/patterns/Loading/components/PageLoading.js +32 -32
  54. package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
  55. package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +14 -14
  56. package/dist/patterns/Shadow/Shadow.js +469 -776
  57. package/dist/style.css +1 -1
  58. package/dist/styled-system/recipes/button.d.ts +1 -1
  59. package/dist/styled-system/tokens/tokens.d.ts +1 -1
  60. package/dist/styled-system/types/prop-type.d.ts +2 -2
  61. package/package.json +4 -4
@@ -1,13 +1,13 @@
1
- import { jsxs as N, Fragment as j, jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as M, useId as R, useRef as E, useMemo as l, useCallback as W, useImperativeHandle as A } from "react";
3
- import { IressSpinner as K } from "./components/Spinner/Spinner.js";
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 W } from "react";
3
+ import { IressSpinner as A } from "./components/Spinner/Spinner.js";
4
4
  import "./components/Spinner/Spinner.styles.js";
5
5
  import { GlobalCSSClass as d } 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 D } from "./is-valid-prop-DweT-eOL.js";
10
- import { m as L, a as T, s as q, i as z, c as J } from "./css-DNdLYQld.js";
8
+ import { useButtonGroupItem as K } from "./components/ButtonGroup/hooks/useButtonGroupItem.js";
9
+ import { s as O } from "./is-valid-prop-DweT-eOL.js";
10
+ import { m as D, a as L, s as T, i as z, c as J } from "./css-DNdLYQld.js";
11
11
  import { c as Q } from "./cx-DN21T1EH.js";
12
12
  import { c as U } from "./create-recipe-DjqynAXe.js";
13
13
  import "./components/Popover/Popover.js";
@@ -15,27 +15,21 @@ import "./components/Popover/Popover.styles.js";
15
15
  import "./components/Popover/InputPopover/InputPopover.js";
16
16
  import { usePopover as X } from "./components/Popover/hooks/usePopover.js";
17
17
  import "./components/Popover/hooks/useFloatingPopover.js";
18
- const H = {}, Y = [
18
+ const h = {}, Y = [
19
19
  {
20
20
  mode: "primary",
21
21
  status: "danger",
22
22
  css: {
23
23
  root: {
24
+ bg: "colour.system.danger.fill",
25
+ borderColor: "colour.system.danger.fill",
24
26
  color: "colour.system.danger.onFill",
25
- _before: {
26
- content: "''",
27
- bg: "colour.system.danger.fill",
28
- borderColor: "colour.system.danger.fill"
29
- },
30
- _after: {
31
- content: "''",
27
+ _hover: {
32
28
  bg: "colour.system.danger.fillHover",
33
29
  borderColor: "colour.system.danger.fillHover"
34
30
  },
35
31
  _active: {
36
- _after: {
37
- boxShadow: "color-mix(in srgb, {colors.colour.system.danger.fill}, transparent 80%) 0px 0px 0px 3px"
38
- }
32
+ boxShadow: "color-mix(in srgb, {colors.colour.system.danger.fill}, transparent 80%) 0px 0px 0px 3px"
39
33
  }
40
34
  },
41
35
  spinner: {
@@ -48,21 +42,15 @@ const H = {}, Y = [
48
42
  status: "danger",
49
43
  css: {
50
44
  root: {
45
+ bg: "colour.system.danger.surface",
46
+ borderColor: "[color-mix(in srgb, {colors.colour.system.danger.surface}, black 5%)]",
51
47
  color: "colour.system.danger.text",
52
- _before: {
53
- content: "''",
54
- bg: "colour.system.danger.surface",
55
- borderColor: "[color-mix(in srgb, {colors.colour.system.danger.surface}, black 5%)]"
56
- },
57
- _after: {
58
- content: "''",
48
+ _hover: {
59
49
  bg: "colour.system.danger.surfaceHover",
60
50
  borderColor: "[color-mix(in srgb, {colors.colour.system.danger.surfaceHover}, black 5%)]"
61
51
  },
62
52
  _active: {
63
- _after: {
64
- boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 60%) 0px 0px 0px 3px"
65
- }
53
+ boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 60%) 0px 0px 0px 3px"
66
54
  }
67
55
  },
68
56
  spinner: {
@@ -75,18 +63,32 @@ const H = {}, Y = [
75
63
  status: "danger",
76
64
  css: {
77
65
  root: {
66
+ borderColor: "colour.system.danger.fill",
78
67
  color: "colour.system.danger.text",
79
- _before: {
80
- borderColor: "colour.system.danger.fill"
68
+ _hover: {
69
+ bg: "colour.system.danger.surfaceHover"
81
70
  },
82
- _after: {
83
- bg: "colour.system.danger.surfaceHover",
84
- borderColor: "colour.system.danger.fill"
71
+ _active: {
72
+ boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 60%) 0px 0px 0px 3px"
73
+ }
74
+ },
75
+ spinner: {
76
+ color: "colour.system.danger.text"
77
+ }
78
+ }
79
+ },
80
+ {
81
+ mode: "quaternary",
82
+ status: "danger",
83
+ css: {
84
+ root: {
85
+ borderColor: "colour.system.danger.surface",
86
+ color: "colour.system.danger.text",
87
+ _hover: {
88
+ bg: "colour.system.danger.surfaceHover"
85
89
  },
86
90
  _active: {
87
- _after: {
88
- boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 60%) 0px 0px 0px 3px"
89
- }
91
+ boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 60%) 0px 0px 0px 3px"
90
92
  }
91
93
  },
92
94
  spinner: {
@@ -100,7 +102,7 @@ const H = {}, Y = [
100
102
  css: {
101
103
  root: {
102
104
  color: "colour.system.danger.text",
103
- _after: {
105
+ _hover: {
104
106
  bg: "colour.system.danger.surfaceHover",
105
107
  borderColor: "colour.system.danger.surfaceHover"
106
108
  }
@@ -115,19 +117,14 @@ const H = {}, Y = [
115
117
  status: "success",
116
118
  css: {
117
119
  root: {
120
+ bg: "colour.system.success.fill",
121
+ borderColor: "colour.system.success.fill",
118
122
  color: "colour.system.success.onFill",
119
- _before: {
120
- bg: "colour.system.success.fill",
121
- borderColor: "colour.system.success.fill"
122
- },
123
- _after: {
124
- bg: "colour.system.success.fillHover",
125
- borderColor: "colour.system.success.fill"
123
+ _hover: {
124
+ bg: "colour.system.success.fillHover"
126
125
  },
127
126
  _active: {
128
- _after: {
129
- boxShadow: "color-mix(in srgb, {colors.colour.system.success.fill}, transparent 80%) 0px 0px 0px 3px"
130
- }
127
+ boxShadow: "color-mix(in srgb, {colors.colour.system.success.fill}, transparent 80%) 0px 0px 0px 3px"
131
128
  }
132
129
  },
133
130
  spinner: {
@@ -140,19 +137,15 @@ const H = {}, Y = [
140
137
  status: "success",
141
138
  css: {
142
139
  root: {
140
+ bg: "colour.system.success.surface",
141
+ borderColor: "[color-mix(in srgb, {colors.colour.system.success.surface}, black 5%)]",
143
142
  color: "colour.system.success.text",
144
- _before: {
145
- bg: "colour.system.success.surface",
146
- borderColor: "[color-mix(in srgb, {colors.colour.system.success.surface}, black 5%)]"
147
- },
148
- _after: {
143
+ _hover: {
149
144
  bg: "colour.system.success.surfaceHover",
150
145
  borderColor: "[color-mix(in srgb, {colors.colour.system.success.surfaceHover}, black 5%)]"
151
146
  },
152
147
  _active: {
153
- _after: {
154
- boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 60%) 0px 0px 0px 3px"
155
- }
148
+ boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 60%) 0px 0px 0px 3px"
156
149
  }
157
150
  },
158
151
  spinner: {
@@ -165,18 +158,13 @@ const H = {}, Y = [
165
158
  status: "success",
166
159
  css: {
167
160
  root: {
161
+ borderColor: "colour.system.success.fill",
168
162
  color: "colour.system.success.text",
169
- _before: {
170
- borderColor: "colour.system.success.fill"
171
- },
172
- _after: {
173
- bg: "colour.system.success.surfaceHover",
174
- borderColor: "colour.system.success.fill"
163
+ _hover: {
164
+ bg: "colour.system.success.surfaceHover"
175
165
  },
176
166
  _active: {
177
- _after: {
178
- boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 60%) 0px 0px 0px 3px"
179
- }
167
+ boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 60%) 0px 0px 0px 3px"
180
168
  }
181
169
  },
182
170
  spinner: {
@@ -185,14 +173,17 @@ const H = {}, Y = [
185
173
  }
186
174
  },
187
175
  {
188
- mode: "muted",
176
+ mode: "quaternary",
189
177
  status: "success",
190
178
  css: {
191
179
  root: {
180
+ borderColor: "colour.system.success.surface",
192
181
  color: "colour.system.success.text",
193
- _after: {
194
- bg: "colour.system.success.surfaceHover",
195
- borderColor: "colour.system.success.surfaceHover"
182
+ _hover: {
183
+ bg: "colour.system.success.surfaceHover"
184
+ },
185
+ _active: {
186
+ boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 60%) 0px 0px 0px 3px"
196
187
  }
197
188
  },
198
189
  spinner: {
@@ -201,23 +192,28 @@ const H = {}, Y = [
201
192
  }
202
193
  },
203
194
  {
204
- mode: "primary",
205
- loading: !0,
195
+ mode: "muted",
196
+ status: "success",
206
197
  css: {
207
198
  root: {
208
- color: "colour.neutral.60"
199
+ color: "colour.system.success.text",
200
+ _hover: {
201
+ bg: "colour.system.success.surfaceHover",
202
+ borderColor: "colour.system.success.surfaceHover"
203
+ }
209
204
  },
210
205
  spinner: {
211
- color: "colour.neutral.60"
206
+ color: "colour.system.success.text"
212
207
  }
213
208
  }
214
209
  },
215
210
  {
216
- mode: "secondary",
211
+ mode: "primary",
217
212
  loading: !0,
218
213
  css: {
219
214
  root: {
220
- borderColor: "colour.neutral.60",
215
+ bg: "colour.neutral.30",
216
+ borderColor: "colour.neutral.30",
221
217
  color: "colour.neutral.60"
222
218
  },
223
219
  spinner: {
@@ -226,10 +222,15 @@ const H = {}, Y = [
226
222
  }
227
223
  },
228
224
  {
229
- mode: "tertiary",
225
+ mode: [
226
+ "secondary",
227
+ "tertiary",
228
+ "quaternary"
229
+ ],
230
230
  loading: !0,
231
231
  css: {
232
232
  root: {
233
+ bg: "colour.neutral.30",
233
234
  borderColor: "colour.neutral.60",
234
235
  color: "colour.neutral.60"
235
236
  },
@@ -258,7 +259,7 @@ const H = {}, Y = [
258
259
  css: {
259
260
  root: {
260
261
  color: "colour.neutral.80",
261
- _after: {
262
+ _hover: {
262
263
  bg: "colour.primary.surfaceHover"
263
264
  }
264
265
  }
@@ -267,11 +268,16 @@ const H = {}, Y = [
267
268
  {
268
269
  mode: [
269
270
  "primary",
271
+ "secondary",
272
+ "tertiary",
273
+ "quaternary",
270
274
  "muted"
271
275
  ],
272
276
  active: !0,
273
277
  css: {
274
278
  root: {
279
+ bg: "colour.primary.surface",
280
+ borderColor: "colour.primary.text",
275
281
  color: "colour.primary.text"
276
282
  }
277
283
  }
@@ -293,7 +299,7 @@ const H = {}, Y = [
293
299
  "spinner",
294
300
  "button__spinner"
295
301
  ]
296
- ], $ = /* @__PURE__ */ Z.map(([o, t]) => [o, U(t, H, z(Y, o))]), oo = L((o = {}) => Object.fromEntries($.map(([t, s]) => [t, s.recipeFn(o)]))), C = [
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 = [
297
303
  "active",
298
304
  "fluid",
299
305
  "inButtonGroup",
@@ -301,7 +307,7 @@ const H = {}, Y = [
301
307
  "mode",
302
308
  "noWrap",
303
309
  "status"
304
- ], ro = (o) => ({ ...H, ...T(o) }), so = /* @__PURE__ */ Object.assign(oo, {
310
+ ], ro = (o) => ({ ...h, ...L(o) }), so = /* @__PURE__ */ Object.assign(oo, {
305
311
  __recipe__: !1,
306
312
  __name__: "button",
307
313
  raw: (o) => o,
@@ -330,6 +336,7 @@ const H = {}, Y = [
330
336
  "primary",
331
337
  "secondary",
332
338
  "tertiary",
339
+ "quaternary",
333
340
  "muted"
334
341
  ],
335
342
  noWrap: [
@@ -341,50 +348,50 @@ const H = {}, Y = [
341
348
  ]
342
349
  },
343
350
  splitVariantProps(o) {
344
- return q(o, C);
351
+ return T(o, C);
345
352
  },
346
353
  getVariantProps: ro
347
354
  }), eo = ({
348
355
  active: o,
349
356
  append: t,
350
357
  children: s,
351
- className: f,
352
- element: u,
358
+ className: y,
359
+ element: l,
353
360
  fluid: b,
354
361
  loading: r = !1,
355
- mode: y = "secondary",
362
+ mode: x = "secondary",
356
363
  prepend: m,
357
- noWrap: S = !1,
358
- onClick: x,
359
- status: h,
360
- value: F,
361
- ...g
362
- }, I) => {
363
- const i = R(), B = F ?? (typeof s == "string" || typeof s == "number" || typeof s == "boolean" ? s : void 0), w = X(), p = E(null), c = O({ value: B }), G = l(() => c ? c.active ? "primary" : "tertiary" : y, [c, y]), e = so({
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 = K({ value: I }), G = n(() => c ? c.active ? "primary" : "tertiary" : x, [c, x]), e = so({
364
371
  active: (
365
372
  // eslint-disable-next-line react-hooks/refs -- ref needed for forwarding
366
- o ?? w?.isActiveActivator(p.current)
373
+ o ?? B?.isActiveActivator(p.current)
367
374
  ),
368
375
  fluid: b === !0 ? "true" : b,
369
376
  inButtonGroup: !!c,
370
377
  mode: G,
371
378
  loading: !!r,
372
- noWrap: S,
373
- status: h
374
- }), [_, n] = l(
375
- () => D(g),
376
- [g]
377
- ), v = W(
379
+ noWrap: H,
380
+ status: S
381
+ }), [v, a] = n(
382
+ () => O(f),
383
+ [f]
384
+ ), _ = E(
378
385
  (V) => {
379
- r || (x?.(V), c?.toggle());
386
+ r || (g?.(V), c?.toggle());
380
387
  },
381
- [c, r, x]
382
- ), P = l(
388
+ [c, r, g]
389
+ ), P = n(
383
390
  () => ({
384
- children: /* @__PURE__ */ N(j, { children: [
385
- m && !r && /* @__PURE__ */ a("span", { className: e.prepend, children: m }),
386
- !!r && /* @__PURE__ */ a(
387
- K,
391
+ children: /* @__PURE__ */ q(N, { children: [
392
+ m && !r && /* @__PURE__ */ u("span", { className: e.prepend, children: m }),
393
+ !!r && /* @__PURE__ */ u(
394
+ A,
388
395
  {
389
396
  className: e.spinner,
390
397
  fixedWidth: !0,
@@ -393,50 +400,50 @@ const H = {}, Y = [
393
400
  }
394
401
  ),
395
402
  s,
396
- t && /* @__PURE__ */ a("span", { className: e.append, children: t })
403
+ t && /* @__PURE__ */ u("span", { className: e.append, children: t })
397
404
  ] }),
398
405
  className: Q(
399
- f,
406
+ y,
400
407
  d.FormElement,
401
408
  d.FormElementInner,
402
409
  e.root,
403
- J(_),
410
+ J(v),
404
411
  d.Button
405
412
  ),
406
- onClick: v
413
+ onClick: _
407
414
  }),
408
415
  [
409
416
  t,
410
417
  s,
411
- f,
412
- v,
418
+ y,
419
+ _,
413
420
  r,
414
421
  m,
415
422
  i,
416
- _,
423
+ v,
417
424
  e.append,
418
425
  e.prepend,
419
426
  e.root,
420
427
  e.spinner
421
428
  ]
422
429
  );
423
- A(I, () => p.current);
424
- const k = l(
425
- () => u ?? (n.href ? "a" : "button"),
426
- [u, n.href]
430
+ W(F, () => p.current);
431
+ const k = n(
432
+ () => l ?? (a.href ? "a" : "button"),
433
+ [l, a.href]
427
434
  );
428
- return /* @__PURE__ */ a(
435
+ return /* @__PURE__ */ u(
429
436
  k,
430
437
  {
431
438
  "aria-describedby": r ? i : void 0,
432
- type: u || !n.href ? "button" : void 0,
439
+ type: l || !a.href ? "button" : void 0,
433
440
  ...P,
434
441
  ...c?.props,
435
- ...n,
442
+ ...a,
436
443
  ref: p
437
444
  }
438
445
  );
439
- }, to = M(eo);
446
+ }, to = j(eo);
440
447
  to.displayName = "IressButton";
441
448
  export {
442
449
  to as I,
@@ -3,13 +3,13 @@ import "./components/Modal/Modal.styles.js";
3
3
  import "./components/Modal/Modal.js";
4
4
  import { IressModalProvider as n } from "./components/Modal/ModalProvider.js";
5
5
  import "./components/Modal/hooks/useModal.js";
6
- import { IressToasterProvider as m } from "./components/Toaster/ToasterProvider.js";
6
+ import { IressToasterProvider as d } from "./components/Toaster/ToasterProvider.js";
7
7
  import "./components/Toaster/hooks/useToaster.js";
8
8
  import "./components/Toaster/Toaster.styles.js";
9
9
  import "./components/Toaster/components/Toast/Toast.styles.js";
10
10
  import "./components/Slideout/Slideout.js";
11
11
  import "./components/Slideout/Slideout.styles.js";
12
- import { IressSlideoutProvider as d } from "./components/Slideout/SlideoutProvider.js";
12
+ import { IressSlideoutProvider as m } from "./components/Slideout/SlideoutProvider.js";
13
13
  import "./components/Slideout/hooks/useSlideout.js";
14
14
  import { createPortal as y } from "react-dom";
15
15
  var o = /* @__PURE__ */ ((e) => (e.Color = "color", e.Dimension = "dimension", e.FontFamily = "fontFamily", e.FontSize = "fontSize", e.Background = "background", e.Border = "border", e.Radius = "radius", e.Shadow = "shadow", e.Typography = "typography", e))(o || {});
@@ -20,7 +20,7 @@ o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.Dimension, o.
20
20
  const C = [
21
21
  "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"
22
22
  ];
23
- o.FontSize, o.FontFamily, o.FontFamily, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography;
23
+ o.FontSize, o.FontFamily, o.FontFamily, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography, o.Typography;
24
24
  const h = ({
25
25
  children: e,
26
26
  container: t,
@@ -29,7 +29,7 @@ const h = ({
29
29
  position: s,
30
30
  ...$
31
31
  }) => /* @__PURE__ */ a(n, { container: t, children: [
32
- /* @__PURE__ */ r(m, { container: t, position: s, children: /* @__PURE__ */ r(d, { container: t, ...$, children: e }) }),
32
+ /* @__PURE__ */ r(d, { container: t, position: s, children: /* @__PURE__ */ r(m, { container: t, ...$, children: e }) }),
33
33
  !l && y(
34
34
  C.map((p) => /* @__PURE__ */ r(
35
35
  "link",
@@ -1,5 +1,5 @@
1
- import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
- import { useMemo as T, createElement as k } from "react";
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { useMemo as k, createElement as y } from "react";
3
3
  import { IressIcon as j } from "../Icon/Icon.js";
4
4
  import "../Icon/Icon.styles.js";
5
5
  import { IressText as u } from "../Text/Text.js";
@@ -7,83 +7,82 @@ import { propagateTestid as N } from "../../helpers/utility/propagateTestid.js";
7
7
  import { alert as w } from "./Alert.styles.js";
8
8
  import { c as h } from "../../cx-DN21T1EH.js";
9
9
  import { GlobalCSSClass as B } from "../../enums.js";
10
- import { I as E } from "../../Button-ZGbOkyOo.js";
10
+ import { I as E } from "../../Button-BTkololu.js";
11
11
  import { IressCloseButton as V } from "../Button/CloseButton/CloseButton.js";
12
12
  import "../Inline/Inline.styles.js";
13
- import { IressInline as $ } from "../Inline/Inline.js";
14
- import { useControlledState as q } from "../../hooks/useControlledState.js";
15
- const F = {
13
+ import { IressInline as q } from "../Inline/Inline.js";
14
+ import { useControlledState as F } from "../../hooks/useControlledState.js";
15
+ const G = {
16
16
  danger: "ban",
17
17
  info: "info-square",
18
18
  success: "check",
19
19
  warning: "exclamation-triangle"
20
- }, G = ({
20
+ }, L = ({
21
21
  actions: n,
22
22
  children: I,
23
- className: x,
24
- defaultDismissed: g,
23
+ className: g,
24
+ defaultDismissed: x,
25
25
  dismissed: b,
26
26
  footer: c,
27
- heading: o,
28
- icon: i,
27
+ heading: t,
28
+ icon: o,
29
29
  onDismiss: d,
30
- status: r = "info",
30
+ status: a = "info",
31
31
  variant: m,
32
32
  ...l
33
33
  }) => {
34
- const A = !!d, e = w({ status: r, variant: m }), p = !!n?.length, C = !!c || p, { value: v, setValue: y } = q({
34
+ const A = !!d, e = w({ status: a, variant: m }), p = !!n?.length, C = !!c || p, { value: v, setValue: S } = F({
35
35
  component: "IressAlert",
36
- defaultValue: g,
36
+ defaultValue: x,
37
37
  propName: "dismissed",
38
38
  value: b
39
- }), f = T(() => {
40
- if (i === !1)
39
+ }), f = k(() => {
40
+ if (o === !1)
41
41
  return null;
42
- const s = i ?? F[r];
43
- return /* @__PURE__ */ t(
42
+ const s = o ?? G[a];
43
+ return /* @__PURE__ */ r(
44
44
  j,
45
45
  {
46
46
  name: s,
47
- screenreaderText: `${r}: `,
47
+ screenreaderText: `${a}: `,
48
48
  fixedWidth: !0,
49
49
  className: e.icon
50
50
  }
51
51
  );
52
- }, [e.icon, i, r]);
53
- return v ? null : /* @__PURE__ */ a(
52
+ }, [e.icon, o, a]);
53
+ return v ? null : /* @__PURE__ */ i(
54
54
  u,
55
55
  {
56
- className: h(x, e.alert, B.Alert),
56
+ className: h(g, e.alert, B.Alert),
57
57
  ...l,
58
58
  children: [
59
59
  m !== "sidebar" && f,
60
- /* @__PURE__ */ a("div", { className: e.wrapper, children: [
61
- o && /* @__PURE__ */ t(
60
+ /* @__PURE__ */ i("div", { className: e.wrapper, children: [
61
+ t && /* @__PURE__ */ r(
62
62
  "div",
63
63
  {
64
64
  className: e.heading,
65
65
  "data-testid": N(l["data-testid"], "heading"),
66
- children: typeof o == "string" ? /* @__PURE__ */ a(u, { element: "h2", className: e.heading, children: [
66
+ children: typeof t == "string" ? /* @__PURE__ */ i(u, { element: "h2", className: e.heading, children: [
67
67
  m === "sidebar" && f,
68
68
  " ",
69
- o
70
- ] }) : o
69
+ t
70
+ ] }) : t
71
71
  }
72
72
  ),
73
- /* @__PURE__ */ t("div", { className: e.children, children: I }),
74
- C && /* @__PURE__ */ a(
73
+ /* @__PURE__ */ r("div", { className: e.children, children: I }),
74
+ C && /* @__PURE__ */ i(
75
75
  "div",
76
76
  {
77
77
  className: e.footer,
78
78
  "data-testid": N(l["data-testid"], "footer"),
79
79
  children: [
80
- p && /* @__PURE__ */ t($, { gap: "sm", pb: "spacing.1", children: n?.map((s, S) => /* @__PURE__ */ k(
80
+ p && /* @__PURE__ */ r(q, { gap: "sm", pb: "spacing.1", children: n?.map((s, T) => /* @__PURE__ */ y(
81
81
  E,
82
82
  {
83
83
  ...s,
84
84
  className: h(s.className, e.action),
85
- color: `colour.system.${r}.text`,
86
- key: S
85
+ key: T
87
86
  }
88
87
  )) }),
89
88
  c
@@ -91,12 +90,12 @@ const F = {
91
90
  }
92
91
  )
93
92
  ] }),
94
- A && /* @__PURE__ */ t(
93
+ A && /* @__PURE__ */ r(
95
94
  V,
96
95
  {
97
96
  className: e.dismiss,
98
97
  onClick: (s) => {
99
- d?.(s), y(!0);
98
+ d?.(s), S(!0);
100
99
  }
101
100
  }
102
101
  )
@@ -104,7 +103,7 @@ const F = {
104
103
  }
105
104
  );
106
105
  };
107
- G.displayName = "IressAlert";
106
+ L.displayName = "IressAlert";
108
107
  export {
109
- G as IressAlert
108
+ L as IressAlert
110
109
  };