@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,26 +1,20 @@
1
1
  import { s as t } from "../../../sva-B7kca5XO.js";
2
- const s = t({
2
+ const i = t({
3
3
  slots: ["input", "tag"],
4
4
  base: {
5
5
  input: {
6
6
  flexWrap: "wrap",
7
- rowGap: "xs",
8
- py: "xs",
7
+ pl: "spacing.1",
9
8
  "& > :first-child": {
10
9
  display: "contents",
11
10
  minHeight: "[0px]"
12
11
  },
13
12
  "& > input": {
14
- width: "auto",
15
- minHeight: "[calc({sizes.input.height} - {spacing.xs} * 2.5)]",
16
- py: "none"
13
+ width: "auto"
17
14
  }
18
- },
19
- tag: {
20
- marginLeft: "xs"
21
15
  }
22
16
  }
23
17
  });
24
18
  export {
25
- s as tagInput
19
+ i as tagInput
26
20
  };
@@ -1,11 +1,13 @@
1
+ import { IressButtonProps } from '../../../Button';
1
2
  import { ReactNode, MouseEvent } from 'react';
2
3
  import { IressStyledProps } from '../../../../types';
3
4
  export type ToastStatus = 'success' | 'error' | 'info';
4
5
  export interface ToastProps extends Omit<IressStyledProps, 'content'> {
5
6
  /**
6
- * Buttons and controls for the toast.
7
- */
8
- actions?: ReactNode;
7
+ * Actions to display in the alert. These will be rendered as buttons with opinionated styling.
8
+ * If you want to use custom buttons, use the `footer` prop instead.
9
+ **/
10
+ actions?: Omit<IressButtonProps, 'mode' | 'status'>[];
9
11
  /**
10
12
  * Alternative to children.
11
13
  */
@@ -1,86 +1,93 @@
1
- import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
- import { propagateTestid as i } from "../../../../helpers/utility/propagateTestid.js";
3
- import "../../../../Button-ZGbOkyOo.js";
4
- import { IressCloseButton as h } from "../../../Button/CloseButton/CloseButton.js";
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
+ import { forwardRef as I, createElement as b } from "react";
3
+ import { propagateTestid as c } from "../../../../helpers/utility/propagateTestid.js";
4
+ import { I as v } from "../../../../Button-BTkololu.js";
5
+ import { IressCloseButton as C } from "../../../Button/CloseButton/CloseButton.js";
5
6
  import "../../../Inline/Inline.styles.js";
6
- import { IressInline as y } from "../../../Inline/Inline.js";
7
- import { IressText as N } from "../../../Text/Text.js";
8
- import { forwardRef as b } from "react";
9
- import { c as g } from "../../../../cx-DN21T1EH.js";
10
- import { toast as v } from "./Toast.styles.js";
11
- import { s as C } from "../../../../factory-CsinCTPr.js";
12
- import { IressIcon as I } from "../../../Icon/Icon.js";
7
+ import { IressInline as m } from "../../../Inline/Inline.js";
8
+ import { IressText as T } from "../../../Text/Text.js";
9
+ import { c as l } from "../../../../cx-DN21T1EH.js";
10
+ import { toast as k } from "./Toast.styles.js";
11
+ import { s as B } from "../../../../factory-CsinCTPr.js";
12
+ import { IressIcon as S } from "../../../Icon/Icon.js";
13
13
  import "../../../Icon/Icon.styles.js";
14
- import { GlobalCSSClass as T } from "../../../../enums.js";
15
- const S = {
14
+ import { GlobalCSSClass as j } from "../../../../enums.js";
15
+ const w = {
16
16
  error: "colour.system.danger.text",
17
17
  success: "colour.system.success.text",
18
18
  info: "colour.system.info.text"
19
- }, j = {
19
+ }, A = {
20
20
  error: "ban",
21
21
  success: "check",
22
22
  info: "info-square"
23
- }, k = b(
23
+ }, W = I(
24
24
  ({
25
- heading: e,
26
- status: t,
27
- actions: c,
28
- children: m,
29
- content: n,
30
- dismissible: l = !0,
31
- onClose: d,
32
- "data-testid": s,
33
- className: p,
34
- ...f
35
- }, x) => {
36
- const r = v({ status: t });
37
- return /* @__PURE__ */ o(
38
- C.div,
25
+ actions: i,
26
+ heading: t,
27
+ status: o,
28
+ children: p,
29
+ content: d,
30
+ dismissible: f = !0,
31
+ onClose: h,
32
+ "data-testid": r,
33
+ className: u,
34
+ ...x
35
+ }, y) => {
36
+ const s = k({ status: o }), g = !!i?.length;
37
+ return /* @__PURE__ */ e(
38
+ B.div,
39
39
  {
40
- ...f,
41
- "data-testid": s,
42
- className: g(p, r.root, T.Toast),
40
+ ...x,
41
+ "data-testid": r,
42
+ className: l(u, s.root, j.Toast),
43
43
  tabIndex: -1,
44
- ref: x,
45
- children: /* @__PURE__ */ o("div", { className: r.panel, children: /* @__PURE__ */ a(y, { gap: "sm", verticalAlign: "top", noWrap: !0, children: [
46
- /* @__PURE__ */ o(
47
- I,
44
+ ref: y,
45
+ children: /* @__PURE__ */ e("div", { className: s.panel, children: /* @__PURE__ */ n(m, { gap: "sm", verticalAlign: "top", noWrap: !0, children: [
46
+ /* @__PURE__ */ e(
47
+ S,
48
48
  {
49
- name: j[t],
50
- screenreaderText: `${t}: `,
51
- textStyle: "typography.body.lg",
49
+ name: A[o],
50
+ screenreaderText: `${o}: `,
51
+ textStyle: "typography.heading.2",
52
52
  fixedWidth: !0,
53
- color: S[t]
53
+ color: w[o]
54
54
  }
55
55
  ),
56
- /* @__PURE__ */ a(
56
+ /* @__PURE__ */ n(
57
57
  "div",
58
58
  {
59
- className: r.wrapper,
60
- "data-testid": i(s, "content"),
59
+ className: s.wrapper,
60
+ "data-testid": c(r, "content"),
61
61
  children: [
62
- e && /* @__PURE__ */ o(
63
- N,
62
+ t && /* @__PURE__ */ e(
63
+ T,
64
64
  {
65
- className: r.heading,
66
- "data-testid": i(s, "heading"),
67
- children: typeof e == "string" ? /* @__PURE__ */ o("h2", { children: e }) : e
65
+ className: s.heading,
66
+ "data-testid": c(r, "heading"),
67
+ children: typeof t == "string" ? /* @__PURE__ */ e("h2", { children: t }) : t
68
68
  }
69
69
  ),
70
- l && /* @__PURE__ */ o(
71
- h,
70
+ f && /* @__PURE__ */ e(
71
+ C,
72
72
  {
73
- "data-testid": i(
74
- s,
73
+ "data-testid": c(
74
+ r,
75
75
  "close-button__button"
76
76
  ),
77
- className: r.closeButton,
78
- onClick: (u) => d?.(u),
77
+ className: s.closeButton,
78
+ onClick: (a) => h?.(a),
79
79
  screenreaderText: "Dismiss"
80
80
  }
81
81
  ),
82
- /* @__PURE__ */ o("div", { className: r.content, children: n ?? m }),
83
- c && /* @__PURE__ */ o("div", { className: r.footer, children: c })
82
+ /* @__PURE__ */ e("div", { className: s.content, children: d ?? p }),
83
+ g && /* @__PURE__ */ e(m, { gap: "sm", mt: "spacing.1", children: i?.map((a, N) => /* @__PURE__ */ b(
84
+ v,
85
+ {
86
+ ...a,
87
+ className: l(a.className, s.action),
88
+ key: N
89
+ }
90
+ )) })
84
91
  ]
85
92
  }
86
93
  )
@@ -89,7 +96,7 @@ const S = {
89
96
  );
90
97
  }
91
98
  );
92
- k.displayName = "Toast";
99
+ W.displayName = "Toast";
93
100
  export {
94
- k as Toast
101
+ W as Toast
95
102
  };
@@ -1,4 +1,4 @@
1
- export declare const toast: import('../../../../styled-system/types').SlotRecipeRuntimeFn<"footer" | "content" | "heading" | "icon" | "wrapper" | "root" | "closeButton" | "panel", {
1
+ export declare const toast: import('../../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "heading" | "icon" | "wrapper" | "action" | "root" | "closeButton" | "panel", {
2
2
  status: {
3
3
  error: {
4
4
  panel: {
@@ -9,6 +9,16 @@ export declare const toast: import('../../../../styled-system/types').SlotRecipe
9
9
  heading: {
10
10
  color: "colour.system.danger.text";
11
11
  };
12
+ action: {
13
+ bg: "colour.system.danger.fill";
14
+ borderColor: "colour.system.danger.fill";
15
+ color: "colour.system.danger.onFill";
16
+ _hover: {
17
+ bg: "colour.system.danger.fillHover";
18
+ borderColor: "colour.system.danger.fillHover";
19
+ color: "colour.system.danger.onFill";
20
+ };
21
+ };
12
22
  };
13
23
  success: {
14
24
  panel: {
@@ -19,6 +29,16 @@ export declare const toast: import('../../../../styled-system/types').SlotRecipe
19
29
  heading: {
20
30
  color: "colour.system.success.text";
21
31
  };
32
+ action: {
33
+ bg: "colour.system.success.fill";
34
+ borderColor: "colour.system.success.fill";
35
+ color: "colour.system.success.onFill";
36
+ _hover: {
37
+ bg: "colour.system.success.fillHover";
38
+ borderColor: "colour.system.success.fillHover";
39
+ color: "colour.system.success.onFill";
40
+ };
41
+ };
22
42
  };
23
43
  info: {
24
44
  panel: {
@@ -29,6 +49,16 @@ export declare const toast: import('../../../../styled-system/types').SlotRecipe
29
49
  heading: {
30
50
  color: "colour.system.info.text";
31
51
  };
52
+ action: {
53
+ bg: "colour.system.info.fill";
54
+ borderColor: "colour.system.info.fill";
55
+ color: "colour.system.info.onFill";
56
+ _hover: {
57
+ bg: "colour.system.info.fillHover";
58
+ borderColor: "colour.system.info.fillHover";
59
+ color: "colour.system.info.onFill";
60
+ };
61
+ };
32
62
  };
33
63
  };
34
64
  animation: {
@@ -1,13 +1,13 @@
1
1
  import { s as o } from "../../../../sva-B7kca5XO.js";
2
- const n = o({
2
+ const r = o({
3
3
  slots: [
4
4
  "root",
5
+ "action",
5
6
  "panel",
6
7
  "wrapper",
7
8
  "icon",
8
9
  "heading",
9
10
  "content",
10
- "footer",
11
11
  "closeButton"
12
12
  ],
13
13
  base: {
@@ -51,9 +51,6 @@ const n = o({
51
51
  content: {
52
52
  noGutter: !0
53
53
  },
54
- footer: {
55
- paddingBlockStart: "spacing.2"
56
- },
57
54
  closeButton: {
58
55
  position: "absolute",
59
56
  top: "spacing.1",
@@ -70,6 +67,16 @@ const n = o({
70
67
  },
71
68
  heading: {
72
69
  color: "colour.system.danger.text"
70
+ },
71
+ action: {
72
+ bg: "colour.system.danger.fill",
73
+ borderColor: "colour.system.danger.fill",
74
+ color: "colour.system.danger.onFill",
75
+ _hover: {
76
+ bg: "colour.system.danger.fillHover",
77
+ borderColor: "colour.system.danger.fillHover",
78
+ color: "colour.system.danger.onFill"
79
+ }
73
80
  }
74
81
  },
75
82
  success: {
@@ -80,6 +87,16 @@ const n = o({
80
87
  },
81
88
  heading: {
82
89
  color: "colour.system.success.text"
90
+ },
91
+ action: {
92
+ bg: "colour.system.success.fill",
93
+ borderColor: "colour.system.success.fill",
94
+ color: "colour.system.success.onFill",
95
+ _hover: {
96
+ bg: "colour.system.success.fillHover",
97
+ borderColor: "colour.system.success.fillHover",
98
+ color: "colour.system.success.onFill"
99
+ }
83
100
  }
84
101
  },
85
102
  info: {
@@ -90,6 +107,16 @@ const n = o({
90
107
  },
91
108
  heading: {
92
109
  color: "colour.system.info.text"
110
+ },
111
+ action: {
112
+ bg: "colour.system.info.fill",
113
+ borderColor: "colour.system.info.fill",
114
+ color: "colour.system.info.onFill",
115
+ _hover: {
116
+ bg: "colour.system.info.fillHover",
117
+ borderColor: "colour.system.info.fillHover",
118
+ color: "colour.system.info.onFill"
119
+ }
93
120
  }
94
121
  }
95
122
  },
@@ -193,5 +220,5 @@ const n = o({
193
220
  }
194
221
  });
195
222
  export {
196
- n as toast
223
+ r as toast
197
224
  };
@@ -1,6 +1,6 @@
1
1
  const s = {
2
2
  "borders.alert": {
3
- value: "0.5px solid currentColor",
3
+ value: "1px solid currentColor",
4
4
  variable: "var(--borders-alert)"
5
5
  },
6
6
  "borders.divider": {
@@ -323,6 +323,10 @@ const s = {
323
323
  value: "var(--iress-radius-000, 0px)",
324
324
  variable: "var(--radii-none)"
325
325
  },
326
+ "radii.50%": {
327
+ value: "50%",
328
+ variable: "var(--radii-50\\%)"
329
+ },
326
330
  "sizes.container.xs": {
327
331
  value: "100%",
328
332
  variable: "var(--sizes-container\\.xs)"
@@ -224,6 +224,12 @@ export interface IressCSSProps {
224
224
  * The `focusable` prop is used to apply the focus elevation when focused. It can be set to `true` to apply focus styles on focus, or `'within'` to apply focus styles when the element or any of its children are focused.
225
225
  */
226
226
  focusable?: 'true' | 'within';
227
+ /**
228
+ * The `flex` prop is used to set the flex grow property of an element. It allows the element to grow and fill available space in a flex container.
229
+ *
230
+ * In the design system, we only allow `1` as a value to ensure consistent behavior across components, ensuring that flex items expand in a predictable way and preventing layout inconsistencies between implementations.
231
+ */
232
+ flex?: '1';
227
233
  /**
228
234
  * Set **`hideFrom`** to hide an element completely using `display: none`. It can be combined with `hideBelow` to create complex responsive visibility rules.
229
235
  *
@@ -403,9 +409,8 @@ export interface IressCSSProps {
403
409
  *
404
410
  * - `typography.body.sm` - Use for small components such as badges and disclaimers, as well as compact variations of tables and lists.
405
411
  * - `typography.body.md` - The most commonly used body text size, used for most text content in the product and the default state of all components in the design system.
406
- * - `typography.body.lg` - Use for tag lines, subtitles, and other large text content in the product.
407
412
  * - `typography.heading.1` - Use for the main page title to establish a clear hierarchy. There is typically only one H1 per screen, emphasising the primary purpose or context of the page.
408
- * - `typography.heading.2` - Use for primary section headings within a page to organise content and guide the user through key areas. Also suitable for large components—such as modals—where space allows and where it pairs well with body.md or body.lg.
413
+ * - `typography.heading.2` - Use for primary section headings within a page to organise content and guide the user through key areas. Also suitable for large components—such as modals—where space allows and where it pairs well with body.md.
409
414
  * - `typography.heading.3` - Use for sub-sections under H2s to further structure content and maintain a clear visual hierarchy. Ideal for breaking down complex sections into manageable parts.
410
415
  * - `typography.heading.4` - Use for supporting headings within content blocks or small components where space is limited—such as table headers, cards, or side panels. Provides structure without overwhelming the layout.
411
416
  * - `typography.heading.5` - Use for minor labels or titles in compact UI elements, such as cards, sidebars, or inline labels. Best used to emphasise supplementary information without drawing too much attention. Works well with body.sm and is ideal for subtle content like fine print. Use sparingly to preserve typographic hierarchy.
package/dist/main.js CHANGED
@@ -5,7 +5,7 @@ import { autoComplete as I } from "./components/Autocomplete/Autocomplete.styles
5
5
  import { useAutocompleteSearch as l } from "./components/Autocomplete/hooks/useAutocompleteSearch.js";
6
6
  import { IressBadge as n } from "./components/Badge/Badge.js";
7
7
  import { badge as u } from "./components/Badge/Badge.styles.js";
8
- import { I as c, b as C } from "./Button-ZGbOkyOo.js";
8
+ import { I as c, b as C } from "./Button-BTkololu.js";
9
9
  import { IressCloseButton as b } from "./components/Button/CloseButton/CloseButton.js";
10
10
  import { IressButtonGroup as k } from "./components/ButtonGroup/ButtonGroup.js";
11
11
  import { buttonGroup as L } from "./components/ButtonGroup/ButtonGroup.styles.js";
@@ -63,7 +63,7 @@ import { usePopover as Ro } from "./components/Popover/hooks/usePopover.js";
63
63
  import { usePopoverItem as ho } from "./components/Popover/hooks/usePopoverItem.js";
64
64
  import { IressProgress as Po } from "./components/Progress/Progress.js";
65
65
  import { progress as Fo } from "./components/Progress/Progress.styles.js";
66
- import { I as Bo } from "./Provider-BPoPUE-B.js";
66
+ import { I as Bo } from "./Provider-B87u_maF.js";
67
67
  import { IressRadio as yo } from "./components/Radio/Radio.js";
68
68
  import { radio as Oo } from "./components/Radio/Radio.styles.js";
69
69
  import { IressRadioGroup as Ho, RadioGroupContext as Vo, getRadioGroupContext as wo } from "./components/RadioGroup/RadioGroup.js";
@@ -5,16 +5,16 @@ import { useMemo as h, useId as j } from "react";
5
5
  import { IressText as f } from "../../../components/Text/Text.js";
6
6
  import { IressPanel as O } from "../../../components/Panel/Panel.js";
7
7
  import "../../../components/Panel/Panel.styles.js";
8
- import { IressProgress as S } from "../../../components/Progress/Progress.js";
8
+ import { IressProgress as L } from "../../../components/Progress/Progress.js";
9
9
  import "../../../components/Progress/Progress.styles.js";
10
- import { propagateTestid as L } from "../../../helpers/utility/propagateTestid.js";
10
+ import { propagateTestid as S } from "../../../helpers/utility/propagateTestid.js";
11
11
  import { useShowIndicator as B } from "../hooks/useShowIndicator.js";
12
12
  import { useEstimatedProgressValue as P } from "../hooks/useEstimatedProgressValue.js";
13
13
  import { s as V } from "../../../factory-CsinCTPr.js";
14
14
  import { c as C } from "../../../cx-DN21T1EH.js";
15
- import { loading as E, loadingList as y } from "../Loading.styles.js";
15
+ import { loading as E, loadingList as x } from "../Loading.styles.js";
16
16
  const G = ({ message: a, current: i, finished: n }) => {
17
- const o = j(), r = y({ finished: n });
17
+ const s = j(), r = x({ finished: n });
18
18
  return /* @__PURE__ */ d("li", { className: r.item, children: [
19
19
  /* @__PURE__ */ e(
20
20
  "svg",
@@ -42,9 +42,9 @@ const G = ({ message: a, current: i, finished: n }) => {
42
42
  className: r.svg,
43
43
  xmlns: "http://www.w3.org/2000/svg",
44
44
  viewBox: "0 0 52 52",
45
- "aria-labelledby": o,
45
+ "aria-labelledby": s,
46
46
  children: [
47
- /* @__PURE__ */ e("title", { id: o, children: "Finished: " }),
47
+ /* @__PURE__ */ e("title", { id: s, children: "Finished: " }),
48
48
  /* @__PURE__ */ e(
49
49
  "circle",
50
50
  {
@@ -73,52 +73,52 @@ const G = ({ message: a, current: i, finished: n }) => {
73
73
  children: a,
74
74
  className: i,
75
75
  error: n,
76
- estimatedFinishTime: o = 1e4,
76
+ estimatedFinishTime: s = 1e4,
77
77
  loaded: r,
78
78
  messageList: c = {},
79
- progress: x,
80
- renderProgress: N = (m) => /* @__PURE__ */ e(S, { ...m, color: "colour.primary.fill" }),
79
+ progress: N,
80
+ renderProgress: w = (m) => /* @__PURE__ */ e(L, { ...m, color: "colour.primary.fill" }),
81
81
  timeout: p,
82
- ...g
82
+ ...u
83
83
  }) => {
84
84
  const m = B(
85
85
  r,
86
86
  p?.message,
87
87
  p?.loaded ?? 1300
88
- ), w = Math.max(...Object.keys(c).map(Number)) + 500, s = P(
89
- o,
88
+ ), y = Math.max(...Object.keys(c).map(Number)) + 500, o = P(
89
+ s,
90
90
  r,
91
- x,
92
- w
93
- ), b = E({
91
+ N,
92
+ y
93
+ ), I = E({
94
94
  pattern: "long",
95
95
  showIndicator: m,
96
96
  loaded: r,
97
97
  error: !!n
98
- }), I = y(), u = h(() => {
98
+ }), b = x(), g = h(() => {
99
99
  const t = Object.keys(c), l = t.findIndex(
100
- (k) => Number(k) > s
100
+ (k) => Number(k) > o
101
101
  );
102
102
  return r ? "" : t[l] ?? t[t.length - 1];
103
- }, [c, r, s]), v = h(() => Object.entries(c).map(([t, l]) => ({
103
+ }, [c, r, o]), v = h(() => Object.entries(c).map(([t, l]) => ({
104
104
  timecode: Number(t),
105
105
  message: l,
106
- current: t === u,
107
- finished: s >= Number(t)
108
- })), [c, u, s]);
109
- return /* @__PURE__ */ e(V.div, { ...g, className: C(b.root, i), children: /* @__PURE__ */ e(
106
+ current: t === g,
107
+ finished: o >= Number(t)
108
+ })), [c, g, o]);
109
+ return /* @__PURE__ */ e(V.div, { ...u, className: C(I.root, i), children: /* @__PURE__ */ e(
110
110
  O,
111
111
  {
112
- "data-testid": L(g["data-testid"], "panel"),
112
+ "data-testid": S(u["data-testid"], "panel"),
113
113
  bg: "transparent",
114
114
  children: n ?? /* @__PURE__ */ d(M, { gap: "md", children: [
115
115
  a,
116
- N({
117
- max: o,
118
- value: Math.min(s, o),
119
- sectionTitle: `${Math.min(s, o) / o * 100}% loaded`
116
+ w({
117
+ max: s,
118
+ value: Math.min(o, s),
119
+ sectionTitle: `${Math.min(o, s) / s * 100}% loaded`
120
120
  }),
121
- /* @__PURE__ */ e(f, { textStyle: "typography.body.lg", noGutter: !0, children: /* @__PURE__ */ e("ul", { className: I.root, children: v.map(({ timecode: t, ...l }) => /* @__PURE__ */ e(G, { ...l }, t)) }) })
121
+ /* @__PURE__ */ e(f, { noGutter: !0, children: /* @__PURE__ */ e("ul", { className: b.root, children: v.map(({ timecode: t, ...l }) => /* @__PURE__ */ e(G, { ...l }, t)) }) })
122
122
  ] })
123
123
  }
124
124
  ) });
@@ -7,7 +7,7 @@ import "../../../components/Skeleton/Skeleton.styles.js";
7
7
  import "../../../components/Container/Container.styles.js";
8
8
  import { IressContainer as p } from "../../../components/Container/Container.js";
9
9
  import "../../../components/Row/Row.styles.js";
10
- import { IressRow as a } from "../../../components/Row/Row.js";
10
+ import { IressRow as d } from "../../../components/Row/Row.js";
11
11
  import "../../../components/Col/Col.styles.js";
12
12
  import { IressCol as c } from "../../../components/Col/Col.js";
13
13
  import "../../../components/Inline/Inline.styles.js";
@@ -20,7 +20,7 @@ import { s as x } from "../../../factory-CsinCTPr.js";
20
20
  import { loading as F } from "../Loading.styles.js";
21
21
  import { c as M } from "../../../cx-DN21T1EH.js";
22
22
  import { propagateTestid as S } from "../../../helpers/utility/propagateTestid.js";
23
- const h = () => /* @__PURE__ */ t(c, { span: "4", children: /* @__PURE__ */ t(
23
+ const l = () => /* @__PURE__ */ t(c, { span: "4", children: /* @__PURE__ */ t(
24
24
  E,
25
25
  {
26
26
  stretch: !0,
@@ -28,26 +28,26 @@ const h = () => /* @__PURE__ */ t(c, { span: "4", children: /* @__PURE__ */ t(
28
28
  media: /* @__PURE__ */ t(e, { mode: "rect", height: "300px" }),
29
29
  children: /* @__PURE__ */ t(e, { textStyle: "typography.body.md", width: "50%" })
30
30
  }
31
- ) }), O = () => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(a, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ r(m, { gap: "md", children: [
31
+ ) }), O = () => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(d, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ r(m, { gap: "md", children: [
32
32
  /* @__PURE__ */ t(e, { textStyle: "typography.heading.2", width: "75%" }),
33
33
  /* @__PURE__ */ t(e, { mode: "rect", height: "200px" })
34
- ] }) }) }) }), P = () => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(a, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ r(m, { gap: "md", children: [
34
+ ] }) }) }) }), P = () => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(d, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ r(m, { gap: "md", children: [
35
35
  /* @__PURE__ */ t(e, { textStyle: "typography.heading.2", width: "75%" }),
36
36
  /* @__PURE__ */ t(e, { mode: "rect", height: "200px" }),
37
37
  /* @__PURE__ */ t(e, { textStyle: "typography.body.md", width: "100px" })
38
38
  ] }) }) }) }), R = () => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ r(m, { gap: "lg", children: [
39
- /* @__PURE__ */ r(a, { horizontalAlign: "between", verticalAlign: "middle", children: [
39
+ /* @__PURE__ */ r(d, { horizontalAlign: "between", verticalAlign: "middle", children: [
40
40
  /* @__PURE__ */ t(e, { textStyle: "typography.heading.1", width: "25%" }),
41
41
  /* @__PURE__ */ r(D, { gap: "lg", children: [
42
- /* @__PURE__ */ t(e, { textStyle: "typography.body.lg", width: "200px" }),
43
- /* @__PURE__ */ t(e, { textStyle: "typography.body.lg", width: "200px" })
42
+ /* @__PURE__ */ t(e, { textStyle: "typography.heading.4", width: "200px" }),
43
+ /* @__PURE__ */ t(e, { textStyle: "typography.heading.4", width: "200px" })
44
44
  ] })
45
45
  ] }),
46
46
  /* @__PURE__ */ t(z, {}),
47
- /* @__PURE__ */ r(a, { gutter: "lg", children: [
48
- /* @__PURE__ */ t(h, {}),
49
- /* @__PURE__ */ t(h, {}),
50
- /* @__PURE__ */ t(h, {})
47
+ /* @__PURE__ */ r(d, { gutter: "lg", children: [
48
+ /* @__PURE__ */ t(l, {}),
49
+ /* @__PURE__ */ t(l, {}),
50
+ /* @__PURE__ */ t(l, {})
51
51
  ] })
52
52
  ] }) }), I = {
53
53
  page: O,
@@ -56,56 +56,56 @@ const h = () => /* @__PURE__ */ t(c, { span: "4", children: /* @__PURE__ */ t(
56
56
  }, q = ({
57
57
  className: T,
58
58
  critical: s,
59
- error: d,
59
+ error: a,
60
60
  loaded: v,
61
- screenReaderText: b = "Loading...",
62
- template: o = "page",
61
+ screenReaderText: C = "Loading...",
62
+ template: i = "page",
63
63
  timeout: g = 500,
64
64
  ...n
65
65
  }) => {
66
- const [C, k] = u(!1), A = v !== !0 && C, [y, L] = u(!1), f = !!s, l = F({
67
- error: !!d,
66
+ const [b, k] = u(!1), A = v !== !0 && b, [y, L] = u(!1), f = !!s, h = F({
67
+ error: !!a,
68
68
  pattern: "page",
69
69
  showCritical: y,
70
70
  showIndicator: A && !f
71
71
  }), N = j(() => {
72
- if (typeof o == "string" && o in I) {
73
- const i = I[o];
74
- return /* @__PURE__ */ t(i, {});
72
+ if (typeof i == "string" && i in I) {
73
+ const o = I[i];
74
+ return /* @__PURE__ */ t(o, {});
75
75
  }
76
- return o;
77
- }, [o]);
76
+ return i;
77
+ }, [i]);
78
78
  return w(() => {
79
- const i = setTimeout(() => k(!0), g);
79
+ const o = setTimeout(() => k(!0), g);
80
80
  return () => {
81
- clearTimeout(i);
81
+ clearTimeout(o);
82
82
  };
83
83
  }, [g]), w(() => {
84
84
  if (!s)
85
85
  return;
86
- const i = setTimeout(() => L(!0), 200);
86
+ const o = setTimeout(() => L(!0), 200);
87
87
  return () => {
88
- clearTimeout(i);
88
+ clearTimeout(o);
89
89
  };
90
- }, [s]), /* @__PURE__ */ r(x.div, { className: M(T, l.root), ...n, children: [
91
- d,
92
- !d && !y && /* @__PURE__ */ t(
90
+ }, [s]), /* @__PURE__ */ r(x.div, { className: M(T, h.root), ...n, children: [
91
+ a,
92
+ !a && !y && /* @__PURE__ */ t(
93
93
  "div",
94
94
  {
95
- className: l.message,
95
+ className: h.message,
96
96
  "data-testid": S(n["data-testid"], "skeleton"),
97
97
  children: N
98
98
  }
99
99
  ),
100
- !d && f && /* @__PURE__ */ t(
100
+ !a && f && /* @__PURE__ */ t(
101
101
  "div",
102
102
  {
103
- className: l.critical,
103
+ className: h.critical,
104
104
  "data-testid": S(n["data-testid"], "critical"),
105
105
  children: s
106
106
  }
107
107
  ),
108
- /* @__PURE__ */ t(x.div, { srOnly: !0, children: b })
108
+ /* @__PURE__ */ t(x.div, { srOnly: !0, children: C })
109
109
  ] });
110
110
  };
111
111
  q.displayName = "PageLoading";