@iress-oss/ids-components 6.0.0-alpha.20 → 6.0.0-alpha.21

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 (70) hide show
  1. package/dist/{Button-BTkololu.js → Button-BwZzMODc.js} +8 -9
  2. package/dist/{Provider-B87u_maF.js → Provider-Dw49edAo.js} +21 -31
  3. package/dist/components/Alert/Alert.js +34 -34
  4. package/dist/components/Button/Button.js +1 -1
  5. package/dist/components/Button/CloseButton/CloseButton.js +12 -11
  6. package/dist/components/Button/index.js +1 -1
  7. package/dist/components/Field/components/FieldFooter.js +10 -9
  8. package/dist/components/Field/components/FieldHint.js +3 -2
  9. package/dist/components/Filter/Filter.js +2 -1
  10. package/dist/components/Filter/components/FilterResetButton.js +1 -1
  11. package/dist/components/Filter/components/FilterSearch.d.ts +1 -1
  12. package/dist/components/Icon/Icon.constants.d.ts +7 -0
  13. package/dist/components/Icon/Icon.constants.js +10 -0
  14. package/dist/components/Icon/Icon.d.ts +34 -16
  15. package/dist/components/Icon/Icon.js +68 -30
  16. package/dist/components/Icon/Icon.styles.d.ts +23 -0
  17. package/dist/components/Icon/Icon.styles.js +38 -4
  18. package/dist/components/Icon/IconProvider.d.ts +100 -0
  19. package/dist/components/Icon/IconProvider.js +66 -0
  20. package/dist/components/Icon/components/FontLoader.d.ts +31 -0
  21. package/dist/components/Icon/components/FontLoader.js +29 -0
  22. package/dist/components/Icon/helpers/getMaterialSymbolsList.d.ts +12 -0
  23. package/dist/components/Icon/helpers/getMaterialSymbolsList.js +12 -0
  24. package/dist/components/Icon/helpers/iconMapping.d.ts +78 -0
  25. package/dist/components/Icon/helpers/iconMapping.js +75 -0
  26. package/dist/components/Icon/hooks/useDynamicFontSubsetting.d.ts +45 -0
  27. package/dist/components/Icon/hooks/useDynamicFontSubsetting.js +78 -0
  28. package/dist/components/Icon/index.d.ts +2 -0
  29. package/dist/components/Icon/index.js +6 -2
  30. package/dist/components/Input/Input.js +1 -1
  31. package/dist/components/Input/Input.styles.js +12 -1
  32. package/dist/components/Link/Link.js +39 -40
  33. package/dist/components/Modal/Modal.js +1 -1
  34. package/dist/components/Panel/Panel.styles.js +1 -1
  35. package/dist/components/Placeholder/Placeholder.d.ts +5 -1
  36. package/dist/components/Placeholder/Placeholder.js +48 -28
  37. package/dist/components/Placeholder/Placeholder.styles.js +10 -9
  38. package/dist/components/Progress/Progress.js +1 -1
  39. package/dist/components/Provider/Provider.d.ts +9 -5
  40. package/dist/components/Provider/Provider.js +5 -2
  41. package/dist/components/Provider/index.js +1 -1
  42. package/dist/components/RichSelect/RichSelect.styles.js +1 -1
  43. package/dist/components/RichSelect/SelectCreate/SelectCreate.js +1 -0
  44. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
  45. package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.d.ts +1 -1
  46. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +11 -10
  47. package/dist/components/RichSelect/SelectTags/SelectTags.js +3 -2
  48. package/dist/components/RichSelect/SelectTags/SelectTags.styles.d.ts +1 -1
  49. package/dist/components/SkipLink/SkipLink.js +1 -1
  50. package/dist/components/Slideout/components/SlideoutInner.js +1 -1
  51. package/dist/components/Slideout/hooks/usePushElement.js +1 -1
  52. package/dist/components/Spinner/Spinner.js +5 -4
  53. package/dist/components/TabSet/TabSet.styles.js +3 -1
  54. package/dist/components/Table/Table.styles.js +7 -3
  55. package/dist/components/Table/components/TableSortButton.js +24 -15
  56. package/dist/components/Tag/Tag.js +1 -1
  57. package/dist/components/Toaster/components/Toast/Toast.js +30 -30
  58. package/dist/components/Toaster/components/Toast/Toast.styles.d.ts +1 -1
  59. package/dist/components/Toaster/components/Toast/Toast.styles.js +0 -4
  60. package/dist/{index-0AvnPY9d.js → index-Bir9MtY7.js} +0 -4
  61. package/dist/index.d-CZvOUeIl.js +3808 -0
  62. package/dist/main.js +257 -253
  63. package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
  64. package/dist/patterns/Shadow/Shadow.d.ts +0 -4
  65. package/dist/patterns/Shadow/Shadow.js +407 -459
  66. package/dist/style.css +1 -1
  67. package/dist/styled-system/recipes/table.d.ts +1 -1
  68. package/dist/styled-system/tokens/tokens.d.ts +1 -1
  69. package/dist/types.d.ts +4 -0
  70. package/package.json +5 -4
@@ -2,15 +2,16 @@ import { jsxs as p, jsx as a } from "react/jsx-runtime";
2
2
  import { GlobalCSSClass as e } from "../../enums.js";
3
3
  import { IressIcon as N } from "../Icon/Icon.js";
4
4
  import "../Icon/Icon.styles.js";
5
+ import "../Icon/IconProvider.js";
5
6
  import { chatty as d, spinner as f } from "./Spinner.styles.js";
6
- import { c as n } from "../../cx-DN21T1EH.js";
7
+ import { c as t } from "../../cx-DN21T1EH.js";
7
8
  const S = (r) => {
8
9
  if (r.variant === "chatty") {
9
10
  const { className: c, screenreaderText: i, ...l } = r, s = d();
10
11
  return /* @__PURE__ */ p(
11
12
  "span",
12
13
  {
13
- className: n(c, s.root, e.Spinner),
14
+ className: t(c, s.root, e.Spinner),
14
15
  "aria-label": i,
15
16
  role: "status",
16
17
  ...l,
@@ -22,12 +23,12 @@ const S = (r) => {
22
23
  }
23
24
  );
24
25
  }
25
- const { className: t, spin: o = "half", ...m } = r;
26
+ const { className: n, spin: o = "half", ...m } = r;
26
27
  return /* @__PURE__ */ a(
27
28
  N,
28
29
  {
29
30
  ...m,
30
- className: n(t, f(), e.Spinner),
31
+ className: t(n, f(), e.Spinner),
31
32
  name: "spinner-third",
32
33
  spin: o
33
34
  }
@@ -41,11 +41,13 @@ const e = t({
41
41
  position: "relative"
42
42
  },
43
43
  panel: {
44
- pt: "md",
45
44
  textStyle: "typography.body.md",
46
45
  _focusVisible: {
47
46
  layerStyle: "elevation.focus",
48
47
  outline: "[none]"
48
+ },
49
+ "& > :not([hidden])": {
50
+ pt: "sm"
49
51
  }
50
52
  },
51
53
  activeIndicator: {
@@ -27,6 +27,10 @@ const r = {
27
27
  "sortIcon",
28
28
  "table__sortIcon"
29
29
  ],
30
+ [
31
+ "sortIconActive",
32
+ "table__sortIconActive"
33
+ ],
30
34
  [
31
35
  "activator",
32
36
  "table__activator"
@@ -35,7 +39,7 @@ const r = {
35
39
  "rowGroupHeader",
36
40
  "table__rowGroupHeader"
37
41
  ]
38
- ], m = /* @__PURE__ */ d.map(([t, e]) => [t, p(e, r, c(b, t))]), u = s((t = {}) => Object.fromEntries(m.map(([e, o]) => [e, o.recipeFn(t)]))), a = [
42
+ ], m = /* @__PURE__ */ d.map(([t, e]) => [t, p(e, r, c(b, t))]), _ = s((t = {}) => Object.fromEntries(m.map(([e, o]) => [e, o.recipeFn(t)]))), a = [
39
43
  "alternate",
40
44
  "compact",
41
45
  "hover",
@@ -43,7 +47,7 @@ const r = {
43
47
  "sortButtonNoWrap",
44
48
  "tableBodyOpen",
45
49
  "hiddenCaption"
46
- ], _ = (t) => ({ ...r, ...l(t) }), g = /* @__PURE__ */ Object.assign(u, {
50
+ ], u = (t) => ({ ...r, ...l(t) }), g = /* @__PURE__ */ Object.assign(_, {
47
51
  __recipe__: !1,
48
52
  __name__: "table",
49
53
  raw: (t) => t,
@@ -75,7 +79,7 @@ const r = {
75
79
  splitVariantProps(t) {
76
80
  return i(t, a);
77
81
  },
78
- getVariantProps: _
82
+ getVariantProps: u
79
83
  }), V = n({
80
84
  base: {
81
85
  textAlign: "start"
@@ -1,29 +1,38 @@
1
- import { jsxs as c, jsx as m } from "react/jsx-runtime";
2
- import { IressIcon as l } from "../../Icon/Icon.js";
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
+ import { IressIcon as t } from "../../Icon/Icon.js";
3
3
  import "../../Icon/Icon.styles.js";
4
+ import "../../Icon/IconProvider.js";
4
5
  import { table as p } from "../Table.styles.js";
5
6
  const i = ({
6
- children: r,
7
- label: s = "sortable",
8
- noWrap: e = !0,
9
- sort: t,
10
- toggleSorting: n
7
+ children: s,
8
+ label: n = "sortable",
9
+ noWrap: a = !0,
10
+ sort: e,
11
+ toggleSorting: c
11
12
  }) => {
12
- const a = t?.desc ? "sort-down" : "sort-up", o = p({ sortButtonNoWrap: e });
13
- return /* @__PURE__ */ c(
13
+ const d = e?.desc ? "arrow_drop_down" : "arrow_drop_up", o = p({ sortButtonNoWrap: a });
14
+ return /* @__PURE__ */ m(
14
15
  "button",
15
16
  {
16
17
  type: "button",
17
18
  className: o.sortHeader,
18
- onClick: n,
19
+ onClick: c,
19
20
  children: [
20
- r,
21
- /* @__PURE__ */ m(
22
- l,
21
+ s,
22
+ /* @__PURE__ */ r(
23
+ t,
23
24
  {
24
- name: t ? a : "sort",
25
+ name: "sort",
25
26
  className: o.sortIcon,
26
- screenreaderText: s
27
+ screenreaderText: n
28
+ }
29
+ ),
30
+ e && /* @__PURE__ */ r(
31
+ t,
32
+ {
33
+ name: d,
34
+ className: o.sortIconActive,
35
+ screenreaderText: e.desc ? "(sorted descending)" : "(sorted ascending)"
27
36
  }
28
37
  )
29
38
  ]
@@ -1,7 +1,7 @@
1
1
  import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
2
  import { useRef as B, useMemo as D } from "react";
3
3
  import { propagateTestid as P } from "../../helpers/utility/propagateTestid.js";
4
- import "../../Button-BTkololu.js";
4
+ import "../../Button-BwZzMODc.js";
5
5
  import { IressCloseButton as j } from "../Button/CloseButton/CloseButton.js";
6
6
  import { tag as l } from "./Tag.styles.js";
7
7
  import { c as w } from "../../css-DNdLYQld.js";
@@ -1,16 +1,17 @@
1
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
2
  import { forwardRef as I, createElement as b } from "react";
3
3
  import { propagateTestid as c } from "../../../../helpers/utility/propagateTestid.js";
4
- import { I as v } from "../../../../Button-BTkololu.js";
4
+ import { I as v } from "../../../../Button-BwZzMODc.js";
5
5
  import { IressCloseButton as C } from "../../../Button/CloseButton/CloseButton.js";
6
6
  import "../../../Inline/Inline.styles.js";
7
- import { IressInline as m } from "../../../Inline/Inline.js";
7
+ import { IressInline as n } from "../../../Inline/Inline.js";
8
8
  import { IressText as T } from "../../../Text/Text.js";
9
9
  import { c as l } from "../../../../cx-DN21T1EH.js";
10
10
  import { toast as k } from "./Toast.styles.js";
11
11
  import { s as B } from "../../../../factory-CsinCTPr.js";
12
12
  import { IressIcon as S } from "../../../Icon/Icon.js";
13
13
  import "../../../Icon/Icon.styles.js";
14
+ import "../../../Icon/IconProvider.js";
14
15
  import { GlobalCSSClass as j } from "../../../../enums.js";
15
16
  const w = {
16
17
  error: "colour.system.danger.text",
@@ -20,71 +21,70 @@ const w = {
20
21
  error: "ban",
21
22
  success: "check",
22
23
  info: "info-square"
23
- }, W = I(
24
+ }, _ = I(
24
25
  ({
25
26
  actions: i,
26
- heading: t,
27
- status: o,
27
+ heading: s,
28
+ status: r,
28
29
  children: p,
29
30
  content: d,
30
31
  dismissible: f = !0,
31
32
  onClose: h,
32
- "data-testid": r,
33
+ "data-testid": t,
33
34
  className: u,
34
35
  ...x
35
36
  }, y) => {
36
- const s = k({ status: o }), g = !!i?.length;
37
+ const o = k({ status: r }), g = !!i?.length;
37
38
  return /* @__PURE__ */ e(
38
39
  B.div,
39
40
  {
40
41
  ...x,
41
- "data-testid": r,
42
- className: l(u, s.root, j.Toast),
42
+ "data-testid": t,
43
+ className: l(u, o.root, j.Toast),
43
44
  tabIndex: -1,
44
45
  ref: y,
45
- children: /* @__PURE__ */ e("div", { className: s.panel, children: /* @__PURE__ */ n(m, { gap: "sm", verticalAlign: "top", noWrap: !0, children: [
46
+ children: /* @__PURE__ */ e("div", { className: o.panel, children: /* @__PURE__ */ m(n, { gap: "sm", verticalAlign: "top", noWrap: !0, children: [
46
47
  /* @__PURE__ */ e(
47
48
  S,
48
49
  {
49
- name: A[o],
50
- screenreaderText: `${o}: `,
51
- textStyle: "typography.heading.2",
52
- fixedWidth: !0,
53
- color: w[o]
50
+ name: A[r],
51
+ screenreaderText: `${r}: `,
52
+ textStyle: "typography.heading.4",
53
+ color: w[r]
54
54
  }
55
55
  ),
56
- /* @__PURE__ */ n(
56
+ /* @__PURE__ */ m(
57
57
  "div",
58
58
  {
59
- className: s.wrapper,
60
- "data-testid": c(r, "content"),
59
+ className: o.wrapper,
60
+ "data-testid": c(t, "content"),
61
61
  children: [
62
- t && /* @__PURE__ */ e(
62
+ s && /* @__PURE__ */ e(
63
63
  T,
64
64
  {
65
- className: s.heading,
66
- "data-testid": c(r, "heading"),
67
- children: typeof t == "string" ? /* @__PURE__ */ e("h2", { children: t }) : t
65
+ className: o.heading,
66
+ "data-testid": c(t, "heading"),
67
+ children: typeof s == "string" ? /* @__PURE__ */ e("h2", { children: s }) : s
68
68
  }
69
69
  ),
70
70
  f && /* @__PURE__ */ e(
71
71
  C,
72
72
  {
73
73
  "data-testid": c(
74
- r,
74
+ t,
75
75
  "close-button__button"
76
76
  ),
77
- className: s.closeButton,
77
+ className: o.closeButton,
78
78
  onClick: (a) => h?.(a),
79
79
  screenreaderText: "Dismiss"
80
80
  }
81
81
  ),
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(
82
+ /* @__PURE__ */ e("div", { className: o.content, children: d ?? p }),
83
+ g && /* @__PURE__ */ e(n, { gap: "sm", mt: "spacing.1", children: i?.map((a, N) => /* @__PURE__ */ b(
84
84
  v,
85
85
  {
86
86
  ...a,
87
- className: l(a.className, s.action),
87
+ className: l(a.className, o.action),
88
88
  key: N
89
89
  }
90
90
  )) })
@@ -96,7 +96,7 @@ const w = {
96
96
  );
97
97
  }
98
98
  );
99
- W.displayName = "Toast";
99
+ _.displayName = "Toast";
100
100
  export {
101
- W as Toast
101
+ _ as Toast
102
102
  };
@@ -1,4 +1,4 @@
1
- export declare const toast: import('../../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "heading" | "icon" | "wrapper" | "action" | "root" | "closeButton" | "panel", {
1
+ export declare const toast: import('../../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "heading" | "wrapper" | "action" | "root" | "closeButton" | "panel", {
2
2
  status: {
3
3
  error: {
4
4
  panel: {
@@ -5,7 +5,6 @@ const r = o({
5
5
  "action",
6
6
  "panel",
7
7
  "wrapper",
8
- "icon",
9
8
  "heading",
10
9
  "content",
11
10
  "closeButton"
@@ -33,9 +32,6 @@ const r = o({
33
32
  lineHeight: "1.5",
34
33
  paddingRight: "spacing.6"
35
34
  },
36
- icon: {
37
- lineHeight: "normal"
38
- },
39
35
  heading: {
40
36
  display: "inline-block",
41
37
  marginBottom: "spacing.1",
@@ -11,10 +11,6 @@ const s = {
11
11
  value: "1px solid var(--iress-colour-neutral-70, #6D7278)",
12
12
  variable: "var(--borders-input)"
13
13
  },
14
- "borders.placeholder": {
15
- value: "1.5px solid var(--iress-colour-neutral-30, #E2E6EA)",
16
- variable: "var(--borders-placeholder)"
17
- },
18
14
  "borders.hover": {
19
15
  value: "1px solid var(--iress-colour-primary-fill, #003271)",
20
16
  variable: "var(--borders-hover)"