@phillips/seldon 1.132.1 → 1.133.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/dist/assets/formatted/AccountCircle.d.ts +9 -0
  2. package/dist/assets/formatted/AccountCircle.js +40 -0
  3. package/dist/assets/formatted/AppleAppStoreBadge.d.ts +9 -0
  4. package/dist/assets/formatted/AppleAppStoreBadge.js +52 -0
  5. package/dist/assets/formatted/ArrowPrev.d.ts +9 -0
  6. package/dist/assets/formatted/ArrowPrev.js +37 -0
  7. package/dist/assets/formatted/Calendar.d.ts +9 -0
  8. package/dist/assets/formatted/Calendar.js +29 -0
  9. package/dist/assets/formatted/CalendarAlt.d.ts +9 -0
  10. package/dist/assets/formatted/CalendarAlt.js +44 -0
  11. package/dist/assets/formatted/CarouselArrowNext.d.ts +9 -0
  12. package/dist/assets/formatted/CarouselArrowNext.js +29 -0
  13. package/dist/assets/formatted/CarouselArrowPrev.d.ts +9 -0
  14. package/dist/assets/formatted/CarouselArrowPrev.js +29 -0
  15. package/dist/assets/formatted/Checkmark.d.ts +9 -0
  16. package/dist/assets/formatted/Checkmark.js +37 -0
  17. package/dist/assets/formatted/ChevronDown.d.ts +9 -0
  18. package/dist/assets/formatted/ChevronDown.js +37 -0
  19. package/dist/assets/formatted/ChevronNext.d.ts +9 -0
  20. package/dist/assets/formatted/ChevronNext.js +37 -0
  21. package/dist/assets/formatted/ChevronRight.d.ts +9 -0
  22. package/dist/assets/formatted/ChevronRight.js +37 -0
  23. package/dist/assets/formatted/Close.d.ts +9 -0
  24. package/dist/assets/formatted/Close.js +46 -0
  25. package/dist/assets/formatted/Favorite.d.ts +9 -0
  26. package/dist/assets/formatted/Favorite.js +38 -0
  27. package/dist/assets/formatted/FavoriteOutline.d.ts +9 -0
  28. package/dist/assets/formatted/FavoriteOutline.js +38 -0
  29. package/dist/assets/formatted/IconFooterFacebook.d.ts +9 -0
  30. package/dist/assets/formatted/IconFooterFacebook.js +35 -0
  31. package/dist/assets/formatted/IconFooterInstagram.d.ts +9 -0
  32. package/dist/assets/formatted/IconFooterInstagram.js +31 -0
  33. package/dist/assets/formatted/IconFooterLinkedin.d.ts +9 -0
  34. package/dist/assets/formatted/IconFooterLinkedin.js +35 -0
  35. package/dist/assets/formatted/IconFooterRed.d.ts +9 -0
  36. package/dist/assets/formatted/IconFooterRed.js +42 -0
  37. package/dist/assets/formatted/IconFooterWechat.d.ts +9 -0
  38. package/dist/assets/formatted/IconFooterWechat.js +37 -0
  39. package/dist/assets/formatted/IconGreenCircle.d.ts +9 -0
  40. package/dist/assets/formatted/IconGreenCircle.js +29 -0
  41. package/dist/assets/formatted/IconRedCircle.d.ts +9 -0
  42. package/dist/assets/formatted/IconRedCircle.js +29 -0
  43. package/dist/assets/formatted/Instagram.d.ts +9 -0
  44. package/dist/assets/formatted/Instagram.js +62 -0
  45. package/dist/assets/formatted/Lock.d.ts +9 -0
  46. package/dist/assets/formatted/Lock.js +44 -0
  47. package/dist/assets/formatted/MagnificentSeven.d.ts +9 -0
  48. package/dist/assets/formatted/MagnificentSeven.js +36 -0
  49. package/dist/assets/formatted/Menu.d.ts +9 -0
  50. package/dist/assets/formatted/Menu.js +29 -0
  51. package/dist/assets/formatted/Minus.d.ts +9 -0
  52. package/dist/assets/formatted/Minus.js +46 -0
  53. package/dist/assets/formatted/PhillipsAppIcon.d.ts +9 -0
  54. package/dist/assets/formatted/PhillipsAppIcon.js +37 -0
  55. package/dist/assets/formatted/PhillipsLogo.d.ts +9 -0
  56. package/dist/assets/formatted/PhillipsLogo.js +38 -0
  57. package/dist/assets/formatted/Plus.d.ts +9 -0
  58. package/dist/assets/formatted/Plus.js +46 -0
  59. package/dist/assets/formatted/React.d.ts +9 -0
  60. package/dist/assets/formatted/React.js +36 -0
  61. package/dist/assets/formatted/Search.d.ts +9 -0
  62. package/dist/assets/formatted/Search.js +37 -0
  63. package/dist/assets/formatted/Share.d.ts +9 -0
  64. package/dist/assets/formatted/Share.js +42 -0
  65. package/dist/assets/formatted/Spotify.d.ts +9 -0
  66. package/dist/assets/formatted/Spotify.js +35 -0
  67. package/dist/assets/formatted/Wechat.d.ts +9 -0
  68. package/dist/assets/formatted/Wechat.js +42 -0
  69. package/dist/assets/formatted/Youtube.d.ts +9 -0
  70. package/dist/assets/formatted/Youtube.js +36 -0
  71. package/dist/assets/formatted/index.d.ts +35 -0
  72. package/dist/assets/formatted/index.js +72 -0
  73. package/dist/components/Accordion/AccordionItem.js +78 -71
  74. package/dist/components/Breadcrumb/Breadcrumb.js +14 -14
  75. package/dist/components/Breadcrumb/BreadcrumbItem.js +15 -15
  76. package/dist/components/Carousel/CarouselArrows.d.ts +1 -1
  77. package/dist/components/Carousel/CarouselArrows.js +13 -14
  78. package/dist/components/ContentPeek/ContentPeek.js +42 -43
  79. package/dist/components/Drawer/Drawer.js +18 -18
  80. package/dist/components/Dropdown/Dropdown.js +23 -17
  81. package/dist/components/Filter/Filter.js +20 -20
  82. package/dist/components/Filter/FilterHeader.js +15 -15
  83. package/dist/components/Icon/Icon.d.ts +29 -0
  84. package/dist/components/Icon/Icon.js +21 -0
  85. package/dist/components/Icon/Icon.stories.d.ts +49 -0
  86. package/dist/components/Icon/Icon.test.d.ts +1 -0
  87. package/dist/components/Icon/index.d.ts +1 -0
  88. package/dist/components/Modal/Modal.js +10 -10
  89. package/dist/components/Pagination/Pagination.js +33 -33
  90. package/dist/components/Search/SearchButton.js +14 -15
  91. package/dist/components/SeldonImage/SeldonImage.js +62 -72
  92. package/dist/components/SeldonImage/utils.d.ts +6 -0
  93. package/dist/components/SeldonImage/utils.js +14 -0
  94. package/dist/components/SeldonImage/utils.test.d.ts +1 -0
  95. package/dist/components/Select/Select.js +23 -23
  96. package/dist/components/Tags/Tags.js +25 -26
  97. package/dist/components/TextArea/TextArea.js +9 -9
  98. package/dist/design/icons/IconGrid.d.ts +2 -0
  99. package/dist/index.d.ts +1 -1
  100. package/dist/index.js +185 -246
  101. package/dist/patterns/BidSnapshot/BidMessage.js +15 -17
  102. package/dist/patterns/UserManagement/UserManagement.js +37 -21
  103. package/dist/scss/_vars.scss.js +438 -0
  104. package/dist/scss/components/Icon/_icon.stories.scss +32 -0
  105. package/dist/scss/components/IconButton/_iconButton.scss +3 -4
  106. package/dist/scss/components/Pagination/_pagination.scss +2 -2
  107. package/dist/scss/patterns/UserManagement/_userManagement.scss +0 -3
  108. package/dist/site-furniture/Footer/Footer.js +5 -5
  109. package/dist/site-furniture/Header/Header.js +18 -18
  110. package/dist/utils/scssUtils.d.ts +2 -0
  111. package/dist/utils/scssUtils.js +12 -0
  112. package/dist/utils/scssUtils.test.d.ts +1 -0
  113. package/package.json +7 -2
  114. package/dist/assets/CarouselArrowNext.svg.js +0 -5
  115. package/dist/assets/CarouselArrowPrev.svg.js +0 -5
  116. package/dist/assets/PhillipsLogo.svg.js +0 -5
  117. package/dist/assets/account_circle.svg.js +0 -5
  118. package/dist/assets/arrowPrev.svg.js +0 -5
  119. package/dist/assets/calendar.svg.js +0 -5
  120. package/dist/assets/calendarAlt.svg.js +0 -5
  121. package/dist/assets/checkmark.svg.js +0 -5
  122. package/dist/assets/chevronDown.svg.js +0 -5
  123. package/dist/assets/chevronNext.svg.js +0 -5
  124. package/dist/assets/chevronRight.svg.js +0 -5
  125. package/dist/assets/close.svg.js +0 -5
  126. package/dist/assets/favorite.svg.js +0 -5
  127. package/dist/assets/favoriteOutline.svg.js +0 -5
  128. package/dist/assets/icon-footer-facebook.svg.js +0 -5
  129. package/dist/assets/icon-footer-instagram.svg.js +0 -5
  130. package/dist/assets/icon-footer-linkedin.svg.js +0 -5
  131. package/dist/assets/icon-footer-red.svg.js +0 -5
  132. package/dist/assets/icon-footer-wechat.svg.js +0 -5
  133. package/dist/assets/icon-green-circle.svg.js +0 -5
  134. package/dist/assets/icon-red-circle.svg.js +0 -5
  135. package/dist/assets/icons.d.ts +0 -32
  136. package/dist/assets/instagram.svg.js +0 -5
  137. package/dist/assets/lock.svg.js +0 -5
  138. package/dist/assets/menu.svg.js +0 -5
  139. package/dist/assets/minus.svg.js +0 -5
  140. package/dist/assets/plus.svg.js +0 -5
  141. package/dist/assets/react.svg.js +0 -5
  142. package/dist/assets/search.svg.js +0 -5
  143. package/dist/assets/share.svg.js +0 -5
  144. package/dist/assets/spotify.svg.js +0 -5
  145. package/dist/assets/wechat.svg.js +0 -5
  146. package/dist/assets/youtube.svg.js +0 -5
@@ -1,100 +1,90 @@
1
- import { jsxs as v, jsx as f } from "react/jsx-runtime";
2
- import { memo as P, forwardRef as x, useRef as C, useState as S, useCallback as j, useEffect as k } from "react";
3
- import u from "../../node_modules/classnames/index.js";
1
+ import { jsxs as w, jsx as t } from "react/jsx-runtime";
2
+ import { memo as x, forwardRef as C, useRef as P, useState as S, useCallback as j, useEffect as k } from "react";
3
+ import d from "../../node_modules/classnames/index.js";
4
4
  import { getCommonProps as R } from "../../utils/index.js";
5
- import V from "../../assets/PhillipsLogo.svg.js";
6
- function B({
7
- img: c,
8
- src: t,
9
- srcSet: a,
10
- sizes: m
11
- }) {
12
- return new Promise((n) => {
13
- let e = c;
14
- e || (e = document.createElement("img")), e.onerror = () => n(!1), e.onload = () => n(!0), a && (e.srcset = a), m && (e.sizes = m), e.src = t, e.complete && n(!0);
15
- });
16
- }
17
- const H = typeof window > "u", M = P(
18
- x(
5
+ import V from "../Icon/Icon.js";
6
+ import { isImageValid as B } from "./utils.js";
7
+ const H = typeof window > "u", M = x(
8
+ C(
19
9
  ({
20
- className: c,
21
- aspectRatio: t = "none",
22
- objectFit: a = "none",
23
- hasBlurBackground: m = !1,
24
- imageClassName: p,
25
- imageStyle: n,
26
- src: e,
27
- alt: $,
28
- srcSet: r,
29
- sizes: i,
30
- loading: y,
31
- fetchPriority: N,
32
- errorText: w = "Error loading image",
33
- ...E
10
+ className: I,
11
+ aspectRatio: s = "none",
12
+ objectFit: g = "none",
13
+ hasBlurBackground: b = !1,
14
+ imageClassName: h,
15
+ imageStyle: y,
16
+ src: o,
17
+ alt: c,
18
+ srcSet: a,
19
+ sizes: r,
20
+ loading: N,
21
+ fetchPriority: E,
22
+ errorText: v = "Error loading image",
23
+ ...f
34
24
  }, L) => {
35
- const { className: o, ...I } = R(E, "SeldonImage"), b = C(null), [l, d] = S(() => {
25
+ const { className: e, ...u } = R(f, "SeldonImage"), p = P(null), [n, i] = S(() => {
36
26
  if (H)
37
27
  return "loading";
38
- const s = document.getElementById(e);
39
- if (s instanceof HTMLImageElement && !s.classList.contains(`${o}-img--hidden`))
28
+ const l = document.getElementById(o);
29
+ if (l instanceof HTMLImageElement && !l.classList.contains(`${e}-img--hidden`))
40
30
  return "loaded";
41
- const g = document.createElement("img");
42
- return r && (g.srcset = r), i && (g.sizes = i), g.src = e, g.complete ? "loaded" : "loading";
43
- }), h = j(async () => {
44
- const s = await B({
45
- img: b.current,
46
- src: e,
47
- srcSet: r,
48
- sizes: i
31
+ const m = document.createElement("img");
32
+ return a && (m.srcset = a), r && (m.sizes = r), m.src = o, m.complete ? "loaded" : "loading";
33
+ }), $ = j(async () => {
34
+ const l = await B({
35
+ img: p.current,
36
+ src: o,
37
+ srcSet: a,
38
+ sizes: r
49
39
  });
50
- d(s ? "loaded" : "error");
51
- }, [e, r, i]);
40
+ i(l ? "loaded" : "error");
41
+ }, [o, a, r]);
52
42
  return k(() => {
53
- h();
54
- }, [h]), /* @__PURE__ */ v(
43
+ $();
44
+ }, [$]), /* @__PURE__ */ w(
55
45
  "div",
56
46
  {
57
47
  ref: L,
58
- className: u(o, c, {
59
- [`${o}--aspect-ratio-${t.replace("/", "-")}`]: t !== "none"
48
+ className: d(e, I, {
49
+ [`${e}--aspect-ratio-${s.replace("/", "-")}`]: s !== "none"
60
50
  }),
61
51
  role: "img",
62
- "aria-label": $,
63
- ...E,
64
- ...I,
52
+ "aria-label": c,
53
+ ...f,
54
+ ...u,
65
55
  children: [
66
- m && /* @__PURE__ */ f(
56
+ b && /* @__PURE__ */ t(
67
57
  "div",
68
58
  {
69
- className: u(`${o}-blur`, {
70
- [`${o}-blur--hidden`]: l === "loading" || l === "error"
59
+ className: d(`${e}-blur`, {
60
+ [`${e}-blur--hidden`]: n === "loading" || n === "error"
71
61
  }),
72
- style: { backgroundImage: `url(${e})` }
62
+ style: { backgroundImage: `url(${o})` }
73
63
  }
74
64
  ),
75
- l === "error" ? /* @__PURE__ */ f("div", { className: `${o}--error`, children: /* @__PURE__ */ f(V, { "aria-label": w }) }) : null,
76
- /* @__PURE__ */ f(
65
+ n === "error" ? /* @__PURE__ */ t("div", { className: `${e}--error`, children: /* @__PURE__ */ t(V, { icon: "PhillipsLogo", "aria-label": v, role: "img" }) }) : null,
66
+ /* @__PURE__ */ t(
77
67
  "img",
78
68
  {
79
- className: u(`${o}-img`, p, {
80
- [`${o}-img--hidden`]: l === "error",
81
- [`${o}-img--object-fit-${a}`]: a !== "none"
69
+ className: d(`${e}-img`, h, {
70
+ [`${e}-img--hidden`]: n === "error",
71
+ [`${e}-img--object-fit-${g}`]: g !== "none"
82
72
  }),
83
- id: e,
84
- style: n,
85
- src: e,
86
- srcSet: r,
87
- sizes: i,
88
- alt: $,
89
- "data-testid": `${I["data-testid"]}-img`,
90
- ref: b,
91
- loading: y,
92
- fetchpriority: N,
73
+ id: o,
74
+ style: y,
75
+ src: o,
76
+ srcSet: a,
77
+ sizes: r,
78
+ alt: c,
79
+ "data-testid": `${u["data-testid"]}-img`,
80
+ ref: p,
81
+ loading: N,
82
+ fetchpriority: E,
93
83
  onLoad: () => {
94
- d("loaded");
84
+ i("loaded");
95
85
  },
96
86
  onError: () => {
97
- d("error");
87
+ i("error");
98
88
  }
99
89
  }
100
90
  )
@@ -0,0 +1,6 @@
1
+ export declare function isImageValid({ img, src, srcSet, sizes, }: {
2
+ img: HTMLImageElement | null;
3
+ src: string;
4
+ srcSet?: string;
5
+ sizes?: string;
6
+ }): Promise<unknown>;
@@ -0,0 +1,14 @@
1
+ function c({
2
+ img: m,
3
+ src: n,
4
+ srcSet: t,
5
+ sizes: r
6
+ }) {
7
+ return new Promise((i) => {
8
+ let e = m;
9
+ e || (e = document.createElement("img")), e.onerror = () => i(!1), e.onload = () => i(!0), t && (e.srcset = t), r && (e.sizes = r), e.src = n, e.complete && i(!0);
10
+ });
11
+ }
12
+ export {
13
+ c as isImageValid
14
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,10 +1,10 @@
1
1
  import { jsxs as p, jsx as s } from "react/jsx-runtime";
2
- import * as k from "react";
3
- import n from "../../node_modules/classnames/index.js";
4
- import { px as e, useNormalizedInputProps as z } from "../../utils/index.js";
2
+ import * as z from "react";
3
+ import a from "../../node_modules/classnames/index.js";
4
+ import { px as e, useNormalizedInputProps as D } from "../../utils/index.js";
5
5
  import { SelectVariants as c } from "./types.js";
6
- import D from "../../assets/chevronDown.svg.js";
7
- const F = k.forwardRef(
6
+ import F from "../Icon/Icon.js";
7
+ const I = z.forwardRef(
8
8
  ({
9
9
  children: d,
10
10
  className: i,
@@ -16,8 +16,8 @@ const F = k.forwardRef(
16
16
  variant: _ = c.default,
17
17
  inline: f,
18
18
  invalid: b,
19
- invalidText: v,
20
- labelText: h,
19
+ invalidText: h,
20
+ labelText: v,
21
21
  onChange: w,
22
22
  onClick: V,
23
23
  readOnly: r,
@@ -27,25 +27,25 @@ const F = k.forwardRef(
27
27
  warnText: N,
28
28
  ...S
29
29
  }, j) => {
30
- const o = "select", a = z({
30
+ const o = "select", n = D({
31
31
  disabled: u,
32
32
  id: t,
33
33
  invalid: b,
34
- invalidText: v,
34
+ invalidText: h,
35
35
  readOnly: r,
36
36
  type: o,
37
37
  warn: y,
38
38
  warnText: N
39
- }), P = n(`${e}-${o}-input`, `${e}-input`, `${e}-input--${C}`, {
39
+ }), P = a(`${e}-${o}-input`, `${e}-input`, `${e}-input--${C}`, {
40
40
  [`${e}-input--inline`]: f,
41
41
  [`${e}-input--readonly`]: r,
42
- [`${e}-input--disabled`]: a.disabled,
43
- [`${e}-input--invalid`]: a.invalid,
44
- [`${e}-input--warn`]: a.warn,
42
+ [`${e}-input--disabled`]: n.disabled,
43
+ [`${e}-input--invalid`]: n.invalid,
44
+ [`${e}-input--warn`]: n.warn,
45
45
  [`${i}__wrapper`]: i
46
- }), R = n(i, `${e}-input__input`, {
46
+ }), R = a(i, `${e}-input__input`, {
47
47
  [`${e}-input__select--tertiary`]: _ === c.tertiary
48
- }), g = n(`${e}-select-container`, {
48
+ }), k = a(`${e}-select-container`, {
49
49
  [`${e}-select-container--show__icon`]: l
50
50
  });
51
51
  return /* @__PURE__ */ p("div", { className: P, children: [
@@ -54,18 +54,18 @@ const F = k.forwardRef(
54
54
  {
55
55
  "data-testid": `${t}-label`,
56
56
  htmlFor: t,
57
- className: n(`${e}-input__label`, { [`${e}-input__label--hidden`]: $ }),
58
- children: h
57
+ className: a(`${e}-input__label`, { [`${e}-input__label--hidden`]: $ }),
58
+ children: v
59
59
  }
60
60
  ),
61
- /* @__PURE__ */ p("div", { className: g, children: [
61
+ /* @__PURE__ */ p("div", { className: k, children: [
62
62
  /* @__PURE__ */ s(
63
63
  "select",
64
64
  {
65
65
  className: R,
66
66
  "data-testid": t,
67
67
  defaultValue: m,
68
- disabled: a.disabled,
68
+ disabled: n.disabled,
69
69
  id: t,
70
70
  onChange: w,
71
71
  ref: j,
@@ -74,13 +74,13 @@ const F = k.forwardRef(
74
74
  children: d
75
75
  }
76
76
  ),
77
- l ? /* @__PURE__ */ s(D, {}) : null
77
+ l ? /* @__PURE__ */ s(F, { icon: "ChevronDown" }) : null
78
78
  ] }),
79
- a.validation
79
+ n.validation
80
80
  ] });
81
81
  }
82
82
  );
83
- F.displayName = "Select";
83
+ I.displayName = "Select";
84
84
  export {
85
- F as default
85
+ I as default
86
86
  };
@@ -1,48 +1,47 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import v, { forwardRef as N } from "react";
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
+ import N, { forwardRef as y } from "react";
3
3
  import d from "../../node_modules/classnames/index.js";
4
- import { getCommonProps as y, px as r } from "../../utils/index.js";
4
+ import { getCommonProps as b, px as r } from "../../utils/index.js";
5
5
  import $ from "../Button/Button.js";
6
- import { ButtonVariants as p } from "../Button/types.js";
7
- import b from "../../assets/close.svg.js";
8
- import C from "../../assets/arrowPrev.svg.js";
9
- const w = ({ id: i, className: a, onRemove: o, label: s, removeText: e = "Remove" }) => /* @__PURE__ */ l(
6
+ import { ButtonVariants as g } from "../Button/types.js";
7
+ import p from "../Icon/Icon.js";
8
+ const R = ({ id: o, className: a, onRemove: i, label: s, removeText: e = "Remove" }) => /* @__PURE__ */ m(
10
9
  $,
11
10
  {
12
11
  className: d(`${r}-tag`, `${r}-button`, a),
13
12
  "aria-label": `${e} ${s}`,
14
- onClick: () => o(s),
15
- variant: p.tertiary,
13
+ onClick: () => i(s),
14
+ variant: g.tertiary,
16
15
  children: [
17
16
  /* @__PURE__ */ t("div", { className: `${r}-tag__label`, children: s }),
18
- /* @__PURE__ */ t("div", { className: `${r}-tag__button`, "data-testid": `${i}-item-close-button`, children: /* @__PURE__ */ t(b, {}) })
17
+ /* @__PURE__ */ t("div", { className: `${r}-tag__button`, "data-testid": `${o}-item-close-button`, children: /* @__PURE__ */ t(p, { icon: "Close", height: 24, width: 24 }) })
19
18
  ]
20
19
  }
21
- ), _ = N(
22
- ({ className: i, children: a, clearAllLabel: o = "Clear All", onClear: s, ...e }, f) => {
23
- const m = "tags-list", { className: g, ...u } = y(e, "TagsList"), { id: n } = e;
24
- return /* @__PURE__ */ l(
20
+ ), v = y(
21
+ ({ className: o, children: a, clearAllLabel: i = "Clear All", onClear: s, ...e }, f) => {
22
+ const l = "tags-list", { className: h, ...u } = b(e, "TagsList"), { id: n } = e;
23
+ return /* @__PURE__ */ m(
25
24
  "ul",
26
25
  {
27
- className: d(`${r}-${m}`, g, i),
26
+ className: d(`${r}-${l}`, h, o),
28
27
  ...u,
29
28
  ...e,
30
29
  tabIndex: 0,
31
- "data-testid": `${m}-${n}`,
30
+ "data-testid": `${l}-${n}`,
32
31
  ref: f,
33
32
  children: [
34
- Array.isArray(a) ? v.Children.map(a, (c) => /* @__PURE__ */ t("li", { children: c }, c.props.id)) : a,
35
- Array.isArray(a) && a.length > 0 && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l(
33
+ Array.isArray(a) ? N.Children.map(a, (c) => /* @__PURE__ */ t("li", { children: c }, c.props.id)) : a,
34
+ Array.isArray(a) && a.length > 0 && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ m(
36
35
  $,
37
36
  {
38
37
  onClick: s,
39
38
  "data-testid": `${n}-clear-all-button`,
40
- className: `${r}-${m}--clear`,
41
- "aria-label": o,
42
- variant: p.tertiary,
39
+ className: `${r}-${l}--clear`,
40
+ "aria-label": i,
41
+ variant: g.tertiary,
43
42
  children: [
44
- /* @__PURE__ */ t(C, {}),
45
- /* @__PURE__ */ t("div", { className: `${r}-label`, children: o })
43
+ /* @__PURE__ */ t(p, { icon: "ArrowPrev", height: 24, width: 24 }),
44
+ /* @__PURE__ */ t("div", { className: `${r}-label`, children: i })
46
45
  ]
47
46
  }
48
47
  ) })
@@ -51,8 +50,8 @@ const w = ({ id: i, className: a, onRemove: o, label: s, removeText: e = "Remove
51
50
  );
52
51
  }
53
52
  );
54
- _.displayName = "Tags";
53
+ v.displayName = "Tags";
55
54
  export {
56
- w as Tag,
57
- _ as default
55
+ R as Tag,
56
+ v as default
58
57
  };
@@ -2,9 +2,9 @@ import { jsxs as f, jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as $, useId as u } from "react";
3
3
  import l from "../../node_modules/classnames/index.js";
4
4
  import { px as r } from "../../utils/index.js";
5
- import N from "../../assets/menu.svg.js";
5
+ import N from "../Icon/Icon.js";
6
6
  const _ = $(
7
- ({ className: o, id: e, isSkeletonLoading: m, labelText: i, maxLength: n = 3e3, name: c, rows: d = 2, ...p }, x) => {
7
+ ({ className: m, id: e, isSkeletonLoading: o, labelText: n, maxLength: c = 3e3, name: i, rows: d = 2, ...p }, x) => {
8
8
  const s = `${r}-text-area`, a = u();
9
9
  return /* @__PURE__ */ f("div", { className: l(`${s}__wrapper`), children: [
10
10
  /* @__PURE__ */ t(
@@ -13,27 +13,27 @@ const _ = $(
13
13
  "data-testid": `text-area-${e ?? a}-label`,
14
14
  htmlFor: e ?? a,
15
15
  className: l(`${r}-input__label`, {
16
- [`${r}-skeleton`]: m
16
+ [`${r}-skeleton`]: o
17
17
  }),
18
- children: i
18
+ children: n
19
19
  }
20
20
  ),
21
21
  /* @__PURE__ */ t(
22
22
  "textarea",
23
23
  {
24
24
  ...p,
25
- className: l(s, o, {
26
- [`${r}-skeleton`]: m
25
+ className: l(s, m, {
26
+ [`${r}-skeleton`]: o
27
27
  }),
28
28
  id: e ?? a,
29
29
  rows: d,
30
- maxLength: n,
31
- name: c,
30
+ maxLength: c,
31
+ name: i,
32
32
  ref: x,
33
33
  "data-testid": `text-area-${e ?? a}-input`
34
34
  }
35
35
  ),
36
- /* @__PURE__ */ t("div", { className: `${s}-resizer__icon`, children: /* @__PURE__ */ t(N, {}) })
36
+ /* @__PURE__ */ t("div", { className: `${s}-resizer__icon`, children: /* @__PURE__ */ t(N, { icon: "Menu" }) })
37
37
  ] });
38
38
  }
39
39
  );
@@ -0,0 +1,2 @@
1
+ import { IconProps } from '../../components/Icon';
2
+ export declare const IconGrid: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from './utils';
2
- export * from './assets/icons';
3
2
  export { default as Page } from './pages/Page';
4
3
  export * from './utils/hooks';
5
4
  export * from './providers/SeldonProvider/utils';
@@ -66,4 +65,5 @@ export * from './components/Countdown/types';
66
65
  export * from './patterns/ObjectTile';
67
66
  export * from './patterns/BidSnapshot';
68
67
  export * from './components/Article';
68
+ export * from './components/Icon';
69
69
  export * from './components/TextArea';