@phillips/seldon 1.137.0 → 1.138.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 (190) hide show
  1. package/dist/assets/formatted/Account.d.ts +9 -0
  2. package/dist/assets/formatted/Account.js +36 -0
  3. package/dist/assets/formatted/AccountActive.d.ts +9 -0
  4. package/dist/assets/formatted/AccountActive.js +37 -0
  5. package/dist/assets/formatted/Add.d.ts +9 -0
  6. package/dist/assets/formatted/Add.js +29 -0
  7. package/dist/assets/formatted/AppleAppStoreBadge.d.ts +1 -1
  8. package/dist/assets/formatted/AppleAppStoreBadge.js +8 -8
  9. package/dist/assets/formatted/ArrowDown.d.ts +9 -0
  10. package/dist/assets/formatted/ArrowDown.js +29 -0
  11. package/dist/assets/formatted/ArrowLeft.d.ts +9 -0
  12. package/dist/assets/formatted/ArrowLeft.js +29 -0
  13. package/dist/assets/formatted/ArrowRight.d.ts +9 -0
  14. package/dist/assets/formatted/ArrowRight.js +29 -0
  15. package/dist/assets/formatted/ArrowUp.d.ts +9 -0
  16. package/dist/assets/formatted/ArrowUp.js +29 -0
  17. package/dist/assets/formatted/Bag.d.ts +9 -0
  18. package/dist/assets/formatted/Bag.js +37 -0
  19. package/dist/assets/formatted/Calendar.d.ts +1 -1
  20. package/dist/assets/formatted/Calendar.js +24 -16
  21. package/dist/assets/formatted/ChevronDown.d.ts +1 -1
  22. package/dist/assets/formatted/ChevronDown.js +9 -9
  23. package/dist/assets/formatted/ChevronLeft.d.ts +9 -0
  24. package/dist/assets/formatted/{ChevronNext.js → ChevronLeft.js} +6 -6
  25. package/dist/assets/formatted/ChevronRight.d.ts +1 -1
  26. package/dist/assets/formatted/ChevronRight.js +12 -12
  27. package/dist/assets/formatted/ChevronUp.d.ts +9 -0
  28. package/dist/assets/formatted/ChevronUp.js +37 -0
  29. package/dist/assets/formatted/Close (x).d.ts +9 -0
  30. package/dist/assets/formatted/CloseX.d.ts +9 -0
  31. package/dist/assets/formatted/CloseX.js +29 -0
  32. package/dist/assets/formatted/ConditionReport.d.ts +9 -0
  33. package/dist/assets/formatted/ConditionReport.js +37 -0
  34. package/dist/assets/formatted/Delete.d.ts +9 -0
  35. package/dist/assets/formatted/Delete.js +38 -0
  36. package/dist/assets/formatted/Download.d.ts +9 -0
  37. package/dist/assets/formatted/Download.js +30 -0
  38. package/dist/assets/formatted/Edit.d.ts +9 -0
  39. package/dist/assets/formatted/Edit.js +38 -0
  40. package/dist/assets/formatted/Email.d.ts +9 -0
  41. package/dist/assets/formatted/Email.js +37 -0
  42. package/dist/assets/formatted/Error.d.ts +9 -0
  43. package/dist/assets/formatted/Error.js +38 -0
  44. package/dist/assets/formatted/ExternalLink.d.ts +9 -0
  45. package/dist/assets/formatted/ExternalLink.js +30 -0
  46. package/dist/assets/formatted/Facebook.d.ts +9 -0
  47. package/dist/assets/formatted/Facebook.js +35 -0
  48. package/dist/assets/formatted/Favorite.d.ts +1 -1
  49. package/dist/assets/formatted/Favorite.js +18 -21
  50. package/dist/assets/formatted/FavoriteActive.d.ts +9 -0
  51. package/dist/assets/formatted/FavoriteActive.js +44 -0
  52. package/dist/assets/formatted/Filters.d.ts +9 -0
  53. package/dist/assets/formatted/Filters.js +37 -0
  54. package/dist/assets/formatted/Fullscreen.d.ts +9 -0
  55. package/dist/assets/formatted/Fullscreen.js +37 -0
  56. package/dist/assets/formatted/FullscreenExit.d.ts +9 -0
  57. package/dist/assets/formatted/FullscreenExit.js +29 -0
  58. package/dist/assets/formatted/Gavel.d.ts +9 -0
  59. package/dist/assets/formatted/Gavel.js +37 -0
  60. package/dist/assets/formatted/GavelActive.d.ts +9 -0
  61. package/dist/assets/formatted/GavelActive.js +37 -0
  62. package/dist/assets/formatted/Grid.d.ts +9 -0
  63. package/dist/assets/formatted/Grid.js +29 -0
  64. package/dist/assets/formatted/Hide.d.ts +9 -0
  65. package/dist/assets/formatted/Hide.js +44 -0
  66. package/dist/assets/formatted/Home.d.ts +9 -0
  67. package/dist/assets/formatted/Home.js +36 -0
  68. package/dist/assets/formatted/HomeActive.d.ts +9 -0
  69. package/dist/assets/formatted/HomeActive.js +39 -0
  70. package/dist/assets/formatted/Icon.d.ts +9 -0
  71. package/dist/assets/formatted/Icon.js +35 -0
  72. package/dist/assets/formatted/IconGreenCircle.d.ts +1 -1
  73. package/dist/assets/formatted/IconRedCircle.d.ts +1 -1
  74. package/dist/assets/formatted/Instagram.d.ts +1 -1
  75. package/dist/assets/formatted/Instagram.js +23 -38
  76. package/dist/assets/formatted/LinkedIn.d.ts +9 -0
  77. package/dist/assets/formatted/LinkedIn.js +35 -0
  78. package/dist/assets/formatted/List.d.ts +9 -0
  79. package/dist/assets/formatted/List.js +38 -0
  80. package/dist/assets/formatted/Lock.d.ts +1 -1
  81. package/dist/assets/formatted/Lock.js +13 -19
  82. package/dist/assets/formatted/MagnificentSeven.d.ts +1 -1
  83. package/dist/assets/formatted/Menu.d.ts +1 -1
  84. package/dist/assets/formatted/Mute.d.ts +9 -0
  85. package/dist/assets/formatted/Mute.js +51 -0
  86. package/dist/assets/formatted/Pause.d.ts +9 -0
  87. package/dist/assets/formatted/Pause.js +35 -0
  88. package/dist/assets/formatted/PhillipsAppIcon.d.ts +1 -1
  89. package/dist/assets/formatted/PhillipsLogo.d.ts +1 -1
  90. package/dist/assets/formatted/Play.d.ts +9 -0
  91. package/dist/assets/formatted/Play.js +35 -0
  92. package/dist/assets/formatted/Red.d.ts +9 -0
  93. package/dist/assets/formatted/Red.js +44 -0
  94. package/dist/assets/formatted/Refresh.d.ts +9 -0
  95. package/dist/assets/formatted/Refresh.js +35 -0
  96. package/dist/assets/formatted/Search.d.ts +1 -1
  97. package/dist/assets/formatted/Search.js +6 -6
  98. package/dist/assets/formatted/Sell.d.ts +9 -0
  99. package/dist/assets/formatted/Sell.js +38 -0
  100. package/dist/assets/formatted/SellActive.d.ts +9 -0
  101. package/dist/assets/formatted/SellActive.js +39 -0
  102. package/dist/assets/formatted/Share.d.ts +1 -1
  103. package/dist/assets/formatted/Share.js +15 -27
  104. package/dist/assets/formatted/Subtract.d.ts +9 -0
  105. package/dist/assets/formatted/Subtract.js +29 -0
  106. package/dist/assets/formatted/Success.d.ts +9 -0
  107. package/dist/assets/formatted/Success.js +29 -0
  108. package/dist/assets/formatted/Tooltip.d.ts +9 -0
  109. package/dist/assets/formatted/Tooltip.js +38 -0
  110. package/dist/assets/formatted/TwitterX.d.ts +9 -0
  111. package/dist/assets/formatted/TwitterX.js +35 -0
  112. package/dist/assets/formatted/Upload.d.ts +9 -0
  113. package/dist/assets/formatted/Upload.js +30 -0
  114. package/dist/assets/formatted/View.d.ts +9 -0
  115. package/dist/assets/formatted/View.js +37 -0
  116. package/dist/assets/formatted/VolumeMaximum.d.ts +9 -0
  117. package/dist/assets/formatted/VolumeMaximum.js +37 -0
  118. package/dist/assets/formatted/VolumeMid.d.ts +9 -0
  119. package/dist/assets/formatted/VolumeMid.js +44 -0
  120. package/dist/assets/formatted/VolumeMinimum.d.ts +9 -0
  121. package/dist/assets/formatted/VolumeMinimum.js +37 -0
  122. package/dist/assets/formatted/WeChat.d.ts +9 -0
  123. package/dist/assets/formatted/WeChat.js +35 -0
  124. package/dist/assets/formatted/index.d.ts +49 -20
  125. package/dist/assets/formatted/index.js +128 -70
  126. package/dist/components/Accordion/AccordionItem.js +36 -36
  127. package/dist/components/Breadcrumb/Breadcrumb.js +10 -10
  128. package/dist/components/Breadcrumb/BreadcrumbItem.js +21 -21
  129. package/dist/components/Carousel/CarouselArrows.js +11 -11
  130. package/dist/components/ContentPeek/ContentPeek.js +25 -25
  131. package/dist/components/Divider/Divider.js +17 -8
  132. package/dist/components/Drawer/Drawer.js +6 -6
  133. package/dist/components/Dropdown/Dropdown.js +8 -6
  134. package/dist/components/Filter/Filter.js +16 -16
  135. package/dist/components/Filter/FilterHeader.js +11 -11
  136. package/dist/components/Icon/Icon.d.ts +3 -2
  137. package/dist/components/Icon/Icon.js +9 -9
  138. package/dist/components/Modal/Modal.js +13 -13
  139. package/dist/components/Search/SearchButton.js +1 -1
  140. package/dist/components/Tags/Tags.js +29 -29
  141. package/dist/patterns/UserManagement/UserManagement.js +13 -29
  142. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +4 -5
  143. package/dist/scss/components/Drawer/_drawer.scss +4 -0
  144. package/dist/scss/components/Filter/_filter.scss +0 -4
  145. package/dist/scss/components/IconButton/_iconButton.scss +9 -5
  146. package/dist/scss/components/Tags/_tags.scss +9 -13
  147. package/dist/scss/patterns/ObjectTile/_objectTile.scss +0 -3
  148. package/dist/scss/patterns/Social/_social.scss +6 -17
  149. package/dist/scss/site-furniture/Footer/_footer.scss +0 -5
  150. package/dist/site-furniture/Footer/Footer.js +5 -5
  151. package/package.json +1 -1
  152. package/dist/assets/formatted/AccountCircle.d.ts +0 -9
  153. package/dist/assets/formatted/AccountCircle.js +0 -40
  154. package/dist/assets/formatted/ArrowPrev.d.ts +0 -9
  155. package/dist/assets/formatted/ArrowPrev.js +0 -37
  156. package/dist/assets/formatted/CalendarAlt.d.ts +0 -9
  157. package/dist/assets/formatted/CalendarAlt.js +0 -44
  158. package/dist/assets/formatted/CarouselArrowNext.d.ts +0 -9
  159. package/dist/assets/formatted/CarouselArrowNext.js +0 -29
  160. package/dist/assets/formatted/CarouselArrowPrev.d.ts +0 -9
  161. package/dist/assets/formatted/CarouselArrowPrev.js +0 -29
  162. package/dist/assets/formatted/Checkmark.d.ts +0 -9
  163. package/dist/assets/formatted/Checkmark.js +0 -37
  164. package/dist/assets/formatted/ChevronNext.d.ts +0 -9
  165. package/dist/assets/formatted/Close.d.ts +0 -9
  166. package/dist/assets/formatted/Close.js +0 -46
  167. package/dist/assets/formatted/FavoriteOutline.d.ts +0 -9
  168. package/dist/assets/formatted/FavoriteOutline.js +0 -38
  169. package/dist/assets/formatted/IconFooterFacebook.d.ts +0 -9
  170. package/dist/assets/formatted/IconFooterFacebook.js +0 -35
  171. package/dist/assets/formatted/IconFooterInstagram.d.ts +0 -9
  172. package/dist/assets/formatted/IconFooterInstagram.js +0 -31
  173. package/dist/assets/formatted/IconFooterLinkedin.d.ts +0 -9
  174. package/dist/assets/formatted/IconFooterLinkedin.js +0 -35
  175. package/dist/assets/formatted/IconFooterRed.d.ts +0 -9
  176. package/dist/assets/formatted/IconFooterRed.js +0 -42
  177. package/dist/assets/formatted/IconFooterWechat.d.ts +0 -9
  178. package/dist/assets/formatted/IconFooterWechat.js +0 -37
  179. package/dist/assets/formatted/Minus.d.ts +0 -9
  180. package/dist/assets/formatted/Minus.js +0 -46
  181. package/dist/assets/formatted/Plus.d.ts +0 -9
  182. package/dist/assets/formatted/Plus.js +0 -46
  183. package/dist/assets/formatted/React.d.ts +0 -9
  184. package/dist/assets/formatted/React.js +0 -36
  185. package/dist/assets/formatted/Spotify.d.ts +0 -9
  186. package/dist/assets/formatted/Spotify.js +0 -35
  187. package/dist/assets/formatted/Wechat.d.ts +0 -9
  188. package/dist/assets/formatted/Wechat.js +0 -42
  189. package/dist/assets/formatted/Youtube.d.ts +0 -9
  190. package/dist/assets/formatted/Youtube.js +0 -36
@@ -1,12 +1,12 @@
1
1
  import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
2
  import { getCommonProps as d, noOp as p } from "../../utils/index.js";
3
- import e from "../../node_modules/classnames/index.js";
3
+ import a from "../../node_modules/classnames/index.js";
4
4
  import { Root as f, Portal as C, Overlay as h, Content as u, Title as N, Description as v, Close as w } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
5
5
  import y from "../IconButton/IconButton.js";
6
6
  import { ButtonVariants as _ } from "../Button/types.js";
7
7
  import x from "../Icon/Icon.js";
8
8
  const B = ({ className: i, isOpen: l = !1, onClose: o = p, children: n, ...t }) => {
9
- const { className: a, ...m } = d(t, "Drawer");
9
+ const { className: e, ...m } = d(t, "Drawer");
10
10
  return /* @__PURE__ */ r(
11
11
  f,
12
12
  {
@@ -19,22 +19,22 @@ const B = ({ className: i, isOpen: l = !1, onClose: o = p, children: n, ...t })
19
19
  h,
20
20
  {
21
21
  onClick: o,
22
- className: e(`${a}__overlay`),
22
+ className: a(`${e}__overlay`),
23
23
  "data-testid": "drawer-overlay"
24
24
  }
25
25
  ),
26
- /* @__PURE__ */ s(u, { className: e(a, i), id: t.id, ...m, children: [
26
+ /* @__PURE__ */ s(u, { className: a(e, i), id: t.id, ...m, children: [
27
27
  /* @__PURE__ */ r(N, {}),
28
28
  /* @__PURE__ */ r(v, {}),
29
29
  /* @__PURE__ */ r(w, { asChild: !0, children: /* @__PURE__ */ r(
30
30
  y,
31
31
  {
32
32
  onClick: o,
33
- className: e(`${a}__close`),
33
+ className: a(`${e}__close`),
34
34
  "aria-label": "Close",
35
35
  "data-testid": "drawer-close",
36
36
  variant: _.tertiary,
37
- children: /* @__PURE__ */ r(x, { icon: "Close" })
37
+ children: /* @__PURE__ */ r(x, { icon: "CloseX", color: "currentColor" })
38
38
  }
39
39
  ) }),
40
40
  n
@@ -5,9 +5,9 @@ import i from "../../node_modules/classnames/index.js";
5
5
  import { Root as $, Trigger as v, Value as I, Icon as b, Portal as x, Content as R, ScrollUpButton as S, Viewport as O, ScrollDownButton as P, Item as V, ItemText as j } from "../../node_modules/@radix-ui/react-select/dist/index.js";
6
6
  import c from "../Icon/Icon.js";
7
7
  const y = d.forwardRef(
8
- ({ options: n, value: a, onValueChange: l, label: s, className: _, id: m, disabled: h, ...f }, u) => {
9
- const { className: o, ...w } = D({ id: m }, "Dropdown"), [N, g] = C(!1);
10
- return /* @__PURE__ */ e("div", { className: i(o, _), id: m, ...w, ...f, children: /* @__PURE__ */ t(
8
+ ({ options: n, value: a, onValueChange: l, label: s, className: h, id: m, disabled: _, ...f }, w) => {
9
+ const { className: o, ...u } = D({ id: m }, "Dropdown"), [N, g] = C(!1);
10
+ return /* @__PURE__ */ e("div", { className: i(o, h), id: m, ...u, ...f, children: /* @__PURE__ */ t(
11
11
  $,
12
12
  {
13
13
  value: a,
@@ -21,15 +21,17 @@ const y = d.forwardRef(
21
21
  {
22
22
  className: `${o}__trigger`,
23
23
  "aria-label": s,
24
- ref: u,
25
- disabled: h,
24
+ ref: w,
25
+ disabled: _,
26
26
  children: [
27
27
  /* @__PURE__ */ e(I, { placeholder: a }),
28
28
  /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
29
29
  c,
30
30
  {
31
31
  icon: "ChevronDown",
32
- className: i({ [`${o}__trigger-icon-expanded`]: N })
32
+ className: i({ [`${o}__trigger-icon-expanded`]: N }),
33
+ height: "1rem",
34
+ width: "1rem"
33
35
  }
34
36
  ) })
35
37
  ]
@@ -1,10 +1,10 @@
1
1
  import { jsxs as t, jsx as d } from "react/jsx-runtime";
2
2
  import { forwardRef as H, useState as P, Children as j, isValidElement as c, cloneElement as f } from "react";
3
- import { getCommonProps as B, findChildrenOfType as I, findChildrenExcludingTypes as T, px as b } from "../../utils/index.js";
4
- import k from "../../node_modules/classnames/index.js";
3
+ import { getCommonProps as B, findChildrenOfType as I, findChildrenExcludingTypes as R, px as T } from "../../utils/index.js";
4
+ import b from "../../node_modules/classnames/index.js";
5
5
  import p from "./FilterHeader.js";
6
- import O from "../Button/Button.js";
7
- import { ButtonVariants as R } from "../Button/types.js";
6
+ import k from "../Button/Button.js";
7
+ import { ButtonVariants as O } from "../Button/types.js";
8
8
  import S from "../Icon/Icon.js";
9
9
  const q = H(
10
10
  ({
@@ -13,40 +13,40 @@ const q = H(
13
13
  name: a,
14
14
  viewAllLimit: n = 10,
15
15
  isViewingAll: r = !1,
16
- isHidden: N = !1,
16
+ isHidden: u = !1,
17
17
  setViewAllFilter: l,
18
- viewAllLabel: u = "View All",
18
+ viewAllLabel: N = "View All",
19
19
  ...i
20
20
  }, _) => {
21
- const [x, y] = P(!1), { className: e, ...v } = B(i, "Filter"), s = j.toArray(C), F = { isViewingAll: r, setViewAllFilter: l, setIsClosing: y }, m = I(s, p)?.[0], $ = c(m) ? f(m, F) : null, g = T(s, [p])?.map(
21
+ const [y, g] = P(!1), { className: e, ...v } = B(i, "Filter"), s = j.toArray(C), x = { isViewingAll: r, setViewAllFilter: l, setIsClosing: g }, m = I(s, p)?.[0], F = c(m) ? f(m, x) : null, $ = R(s, [p])?.map(
22
22
  (o, E) => c(o) ? f(o, { hidden: !r && E + 1 > n }) : o
23
23
  );
24
24
  return /* @__PURE__ */ t(
25
25
  "div",
26
26
  {
27
27
  ...v,
28
- className: k(e, h, {
29
- [`${b}-filter--hidden`]: N,
30
- "is-closing": x
28
+ className: b(e, h, {
29
+ [`${T}-filter--hidden`]: u,
30
+ "is-closing": y
31
31
  }),
32
32
  ...i,
33
33
  ref: _,
34
34
  children: [
35
35
  /* @__PURE__ */ t("fieldset", { name: a, className: `${e}__fieldset`, children: [
36
- $,
37
- /* @__PURE__ */ d("div", { className: `${e}__filters`, children: g })
36
+ F,
37
+ /* @__PURE__ */ d("div", { className: `${e}__filters`, children: $ })
38
38
  ] }),
39
39
  s.length > n && !r ? /* @__PURE__ */ t(
40
- O,
40
+ k,
41
41
  {
42
42
  className: `${e}__view-all`,
43
- variant: R.tertiary,
43
+ variant: O.tertiary,
44
44
  onClick: () => {
45
45
  l?.(a);
46
46
  },
47
47
  children: [
48
- u,
49
- /* @__PURE__ */ d(S, { icon: "ChevronNext", className: `${e}__chevron` })
48
+ N,
49
+ /* @__PURE__ */ d(S, { icon: "ChevronRight", className: `${e}__chevron` })
50
50
  ]
51
51
  }
52
52
  ) : null
@@ -1,30 +1,30 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- import { getCommonProps as h } from "../../utils/index.js";
4
- import u from "../../node_modules/classnames/index.js";
3
+ import { getCommonProps as u } from "../../utils/index.js";
4
+ import h from "../../node_modules/classnames/index.js";
5
5
  import { TextVariants as N } from "../Text/types.js";
6
6
  import x from "../Text/Text.js";
7
- import _ from "../Button/Button.js";
8
- import { ButtonVariants as v } from "../Button/types.js";
9
- import C from "../Icon/Icon.js";
7
+ import v from "../Button/Button.js";
8
+ import { ButtonVariants as C } from "../Button/types.js";
9
+ import _ from "../Icon/Icon.js";
10
10
  const g = p(
11
- ({ className: m, heading: s, isViewingAll: l = !1, setViewAllFilter: n, setIsClosing: a, ...o }, i) => {
12
- const { className: e, ...c } = h(o, "FilterHeader"), d = () => {
11
+ ({ className: m, heading: i, isViewingAll: l = !1, setViewAllFilter: n, setIsClosing: a, ...o }, s) => {
12
+ const { className: e, ...c } = u(o, "FilterHeader"), f = () => {
13
13
  a?.(!0), setTimeout(() => {
14
14
  n?.(null), a?.(!1);
15
15
  }, 300);
16
16
  };
17
- return /* @__PURE__ */ t("div", { ...c, className: u(e, m), ...o, ref: i, children: [
17
+ return /* @__PURE__ */ t("div", { ...c, className: h(e, m), ...o, ref: s, children: [
18
18
  /* @__PURE__ */ r(
19
19
  x,
20
20
  {
21
21
  variant: N.heading4,
22
22
  className: `${e}__heading`,
23
- element: (f) => /* @__PURE__ */ r("legend", { ...f, children: s })
23
+ element: (d) => /* @__PURE__ */ r("legend", { ...d, children: i })
24
24
  }
25
25
  ),
26
- l ? /* @__PURE__ */ t(_, { variant: v.tertiary, onClick: d, className: `${e}__back`, children: [
27
- /* @__PURE__ */ r(C, { icon: "ChevronNext", className: `${e}__chevron` }),
26
+ l ? /* @__PURE__ */ t(v, { variant: C.tertiary, onClick: f, className: `${e}__back`, children: [
27
+ /* @__PURE__ */ r(_, { icon: "ChevronLeft" }),
28
28
  "Back to all"
29
29
  ] }) : null
30
30
  ] });
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import * as iconComponents from '../../assets/formatted';
2
3
  export type IconName = keyof typeof iconComponents;
3
4
  export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -10,7 +11,7 @@ export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
10
11
  */
11
12
  width?: number | string | null;
12
13
  /**
13
- * Color of the icon. Only accepts valid seldon color tokens. Defaults to $pure-black
14
+ * Color of the icon. Can be set to "currentColor" if you want to control the color through css. Otherwise, it only accepts valid seldon color tokens. Defaults to $pure-black
14
15
  */
15
16
  color?: string;
16
17
  /**
@@ -25,5 +26,5 @@ export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
25
26
  *
26
27
  * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-icon--overview)
27
28
  */
28
- declare const Icon: import('react').ForwardRefExoticComponent<IconProps & import('react').RefAttributes<HTMLDivElement>>;
29
+ declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLDivElement>>;
29
30
  export default Icon;
@@ -1,18 +1,18 @@
1
- import { jsx as n } from "react/jsx-runtime";
1
+ import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
3
  import d from "../../node_modules/classnames/index.js";
4
4
  import { getCommonProps as u, px as x } from "../../utils/index.js";
5
- import { getScssVar as N } from "../../utils/scssUtils.js";
6
- import * as C from "../../assets/formatted/index.js";
5
+ import { getScssVar as C } from "../../utils/scssUtils.js";
6
+ import * as N from "../../assets/formatted/index.js";
7
7
  const I = i(
8
- ({ className: a, height: o, width: r, color: c, icon: m, ...e }, p) => {
9
- const { className: t, ...l } = u(e, `Icon-${m}`), s = C[m], f = {
10
- color: N(c ?? "", "$pure-black"),
11
- ...o ? { height: o } : {},
12
- ...r ? { width: r } : {},
8
+ ({ className: e, height: r, width: m, color: o, icon: s, ...t }, c) => {
9
+ const { className: p, ...l } = u(t, `Icon-${s}`), n = N[s], f = {
10
+ color: o === "currentColor" ? o : C(o ?? "", "$pure-black"),
11
+ ...r ? { height: r } : {},
12
+ ...m ? { width: m } : {},
13
13
  ...l
14
14
  };
15
- return s ? /* @__PURE__ */ n("div", { className: d(`${x}-icon`, t, a), ref: p, children: /* @__PURE__ */ n(s, { ...f }) }) : null;
15
+ return n ? /* @__PURE__ */ a("div", { className: d(`${x}-icon`, p, e), ref: c, children: /* @__PURE__ */ a(n, { ...f }) }) : null;
16
16
  }
17
17
  );
18
18
  I.displayName = "Icon";
@@ -1,8 +1,8 @@
1
- import { jsxs as u, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as u, jsx as l } from "react/jsx-runtime";
2
2
  import t from "../../node_modules/classnames/index.js";
3
- import { getCommonProps as y, noOp as C } from "../../utils/index.js";
3
+ import { getCommonProps as C, noOp as y } from "../../utils/index.js";
4
4
  import h from "../Icon/Icon.js";
5
- import l from "../../node_modules/react-modal/lib/index.js";
5
+ import s from "../../node_modules/react-modal/lib/index.js";
6
6
  import b from "../IconButton/IconButton.js";
7
7
  import { ButtonVariants as v } from "../Button/types.js";
8
8
  const g = ({
@@ -10,21 +10,21 @@ const g = ({
10
10
  className: n,
11
11
  overlayClassName: i,
12
12
  isOpen: o = !1,
13
- onClose: a = C,
13
+ onClose: r = y,
14
14
  appElementSelector: d = "main",
15
15
  style: c,
16
- ...r
16
+ ...a
17
17
  }) => {
18
18
  if (!o)
19
19
  return null;
20
- const { className: e, "data-testid": f, ...p } = y(r, "Modal");
21
- return l.setAppElement(d), /* @__PURE__ */ u(
22
- l,
20
+ const { className: e, "data-testid": f, ...p } = C(a, "Modal");
21
+ return s.setAppElement(d), /* @__PURE__ */ u(
22
+ s,
23
23
  {
24
24
  ...p,
25
- ...r,
25
+ ...a,
26
26
  isOpen: o,
27
- onRequestClose: a,
27
+ onRequestClose: r,
28
28
  className: t(e, n),
29
29
  overlayClassName: t(`${e}__overlay`, i),
30
30
  ariaHideApp: o,
@@ -33,15 +33,15 @@ const g = ({
33
33
  onAfterOpen: () => document.body.style.overflow = "hidden",
34
34
  onAfterClose: () => document.body.style.overflow = "unset",
35
35
  children: [
36
- /* @__PURE__ */ s(
36
+ /* @__PURE__ */ l(
37
37
  b,
38
38
  {
39
39
  id: "modal-button",
40
- onClick: a,
40
+ onClick: r,
41
41
  "aria-label": "Close Modal",
42
42
  className: t(`${e}__close`),
43
43
  variant: v.tertiary,
44
- children: /* @__PURE__ */ s(h, { icon: "Close", height: 32, width: 32 })
44
+ children: /* @__PURE__ */ l(h, { icon: "CloseX", height: 32, width: 32, color: "currentColor" })
45
45
  }
46
46
  ),
47
47
  m
@@ -20,7 +20,7 @@ const f = ({
20
20
  onClick: (i) => {
21
21
  b?.(), u(!1), i.stopPropagation();
22
22
  },
23
- children: /* @__PURE__ */ n(e, { icon: "Close", "data-testid": `${o}-form-icon`, className: `${t}__button__icon` })
23
+ children: /* @__PURE__ */ n(e, { icon: "CloseX", "data-testid": `${o}-form-icon`, className: `${t}__button__icon` })
24
24
  }
25
25
  ) : null : /* @__PURE__ */ n(
26
26
  "button",
@@ -1,47 +1,47 @@
1
- import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
- import N, { forwardRef as y } from "react";
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import N, { forwardRef as C } from "react";
3
3
  import d from "../../node_modules/classnames/index.js";
4
- import { getCommonProps as b, px as r } from "../../utils/index.js";
4
+ import { getCommonProps as y, px as t } from "../../utils/index.js";
5
5
  import $ from "../Button/Button.js";
6
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(
7
+ import u from "../Icon/Icon.js";
8
+ const j = ({ id: i, className: a, onRemove: e, label: o, removeText: s = "Remove" }) => /* @__PURE__ */ n(
9
9
  $,
10
10
  {
11
- className: d(`${r}-tag`, `${r}-button`, a),
12
- "aria-label": `${e} ${s}`,
13
- onClick: () => i(s),
11
+ className: d(`${t}-tag`, `${t}-button`, a),
12
+ "aria-label": `${s} ${o}`,
13
+ onClick: () => e(o),
14
14
  variant: g.tertiary,
15
15
  children: [
16
- /* @__PURE__ */ t("div", { className: `${r}-tag__label`, children: s }),
17
- /* @__PURE__ */ t("div", { className: `${r}-tag__button`, "data-testid": `${o}-item-close-button`, children: /* @__PURE__ */ t(p, { icon: "Close", height: 24, width: 24 }) })
16
+ /* @__PURE__ */ r("div", { className: `${t}-tag__label`, children: o }),
17
+ /* @__PURE__ */ r("div", { className: `${t}-tag__button`, "data-testid": `${i}-item-close-button`, children: /* @__PURE__ */ r(u, { icon: "CloseX", height: 8, width: 8, color: "currentColor", className: `${t}-tag__icon` }) })
18
18
  ]
19
19
  }
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(
20
+ ), _ = C(
21
+ ({ className: i, children: a, clearAllLabel: e = "Clear All", onClear: o, ...s }, f) => {
22
+ const l = "tags-list", { className: p, ...h } = y(s, "TagsList"), { id: m } = s;
23
+ return /* @__PURE__ */ n(
24
24
  "ul",
25
25
  {
26
- className: d(`${r}-${l}`, h, o),
27
- ...u,
28
- ...e,
26
+ className: d(`${t}-${l}`, p, i),
27
+ ...h,
28
+ ...s,
29
29
  tabIndex: 0,
30
- "data-testid": `${l}-${n}`,
30
+ "data-testid": `${l}-${m}`,
31
31
  ref: f,
32
32
  children: [
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(
33
+ Array.isArray(a) ? N.Children.map(a, (c) => /* @__PURE__ */ r("li", { children: c }, c.props.id)) : a,
34
+ Array.isArray(a) && a.length > 0 && /* @__PURE__ */ r("li", { children: /* @__PURE__ */ n(
35
35
  $,
36
36
  {
37
- onClick: s,
38
- "data-testid": `${n}-clear-all-button`,
39
- className: `${r}-${l}--clear`,
40
- "aria-label": i,
37
+ onClick: o,
38
+ "data-testid": `${m}-clear-all-button`,
39
+ className: `${t}-${l}--clear`,
40
+ "aria-label": e,
41
41
  variant: g.tertiary,
42
42
  children: [
43
- /* @__PURE__ */ t(p, { icon: "ArrowPrev", height: 24, width: 24 }),
44
- /* @__PURE__ */ t("div", { className: `${r}-label`, children: i })
43
+ /* @__PURE__ */ r(u, { icon: "ArrowLeft", color: "currentColor", height: 24, width: 24 }),
44
+ /* @__PURE__ */ r("div", { className: `${t}-label`, children: e })
45
45
  ]
46
46
  }
47
47
  ) })
@@ -50,8 +50,8 @@ const R = ({ id: o, className: a, onRemove: i, label: s, removeText: e = "Remove
50
50
  );
51
51
  }
52
52
  );
53
- v.displayName = "Tags";
53
+ _.displayName = "Tags";
54
54
  export {
55
- R as Tag,
56
- v as default
55
+ j as Tag,
56
+ _ as default
57
57
  };
@@ -1,16 +1,16 @@
1
- import { jsx as o, Fragment as L, jsxs as r } from "react/jsx-runtime";
2
- import { forwardRef as x } from "react";
3
- import { getCommonProps as A, noOp as w } from "../../utils/index.js";
1
+ import { jsx as o, Fragment as x, jsxs as r } from "react/jsx-runtime";
2
+ import { forwardRef as A } from "react";
3
+ import { getCommonProps as w, noOp as C } from "../../utils/index.js";
4
4
  import $ from "../../node_modules/classnames/index.js";
5
5
  import { AuthState as e } from "./types.js";
6
6
  import { TextVariants as m } from "../../components/Text/types.js";
7
- import i from "../../components/Text/Text.js";
8
- import s from "../../components/Icon/Icon.js";
9
- const b = x(
7
+ import s from "../../components/Text/Text.js";
8
+ import i from "../../components/Icon/Icon.js";
9
+ const b = A(
10
10
  ({
11
11
  accountDetailsLinkComponent: l = "a",
12
12
  className: d,
13
- onLogin: g = w,
13
+ onLogin: g = C,
14
14
  authState: t = e.LoggedOut,
15
15
  loginLabel: h = "Login",
16
16
  accountLabel: u = "Account",
@@ -18,29 +18,13 @@ const b = x(
18
18
  disabled: a = !1,
19
19
  ...c
20
20
  }, p) => {
21
- const { className: n, ...N } = A(c, "UserManagement"), _ = t === e.LoggedIn, C = t !== e.Loading;
22
- return /* @__PURE__ */ o("div", { ...N, className: $(n, d), ...c, ref: p, children: C && /* @__PURE__ */ o(L, { children: _ ? /* @__PURE__ */ r(l, { className: `${n}__login`, href: f, disabled: a, children: [
23
- /* @__PURE__ */ o(
24
- s,
25
- {
26
- icon: "AccountCircle",
27
- className: `${n}__account-icon`,
28
- height: "1.5rem",
29
- width: "1.5rem"
30
- }
31
- ),
32
- /* @__PURE__ */ o(i, { variant: m.body3, children: u })
21
+ const { className: n, ...N } = w(c, "UserManagement"), _ = t === e.LoggedIn, L = t !== e.Loading;
22
+ return /* @__PURE__ */ o("div", { ...N, className: $(n, d), ...c, ref: p, children: L && /* @__PURE__ */ o(x, { children: _ ? /* @__PURE__ */ r(l, { className: `${n}__login`, href: f, disabled: a, children: [
23
+ /* @__PURE__ */ o(i, { icon: "Account", className: `${n}__account-icon`, height: "1rem", width: "1rem" }),
24
+ /* @__PURE__ */ o(s, { variant: m.body3, children: u })
33
25
  ] }) : /* @__PURE__ */ r("button", { className: `${n}__login`, onClick: g, disabled: a, children: [
34
- /* @__PURE__ */ o(
35
- s,
36
- {
37
- icon: "AccountCircle",
38
- className: `${n}__account-icon`,
39
- height: "1.5rem",
40
- width: "1.5rem"
41
- }
42
- ),
43
- /* @__PURE__ */ o(i, { variant: m.body3, children: h })
26
+ /* @__PURE__ */ o(i, { icon: "Account", className: `${n}__account-icon`, height: "1rem", width: "1rem" }),
27
+ /* @__PURE__ */ o(s, { variant: m.body3, children: h })
44
28
  ] }) }) });
45
29
  }
46
30
  );
@@ -37,11 +37,6 @@
37
37
  }
38
38
  }
39
39
 
40
- &__chevron {
41
- height: 1rem;
42
- width: 1rem;
43
- }
44
-
45
40
  ol {
46
41
  display: flex;
47
42
  flex-direction: row;
@@ -57,6 +52,10 @@
57
52
  overflow: hidden;
58
53
  text-overflow: ellipsis;
59
54
  }
55
+
56
+ .#{$px}-icon-chevron-right {
57
+ flex-shrink: 0;
58
+ }
60
59
  }
61
60
 
62
61
  &--current {
@@ -18,6 +18,10 @@
18
18
  outline: none;
19
19
  }
20
20
 
21
+ .#{$px}-icon-close-x:hover {
22
+ color: $white;
23
+ }
24
+
21
25
  @media (max-width: $breakpoint-sm) {
22
26
  max-width: 100%;
23
27
  }
@@ -41,10 +41,6 @@ $chevron-scale: 0.8;
41
41
 
42
42
  margin-top: $spacing-sm;
43
43
  }
44
-
45
- &__chevron {
46
- transform: rotateY(180deg) scale($chevron-scale);
47
- }
48
44
  }
49
45
 
50
46
  &__chevron {
@@ -11,6 +11,10 @@
11
11
  & svg {
12
12
  height: $button-label-line-height;
13
13
  width: $button-label-line-height;
14
+
15
+ &:hover {
16
+ color: $white;
17
+ }
14
18
  }
15
19
 
16
20
  &:focus-visible {
@@ -30,7 +34,7 @@
30
34
  color: $pure-black;
31
35
 
32
36
  & svg {
33
- fill: $pure-black;
37
+ color: $pure-black;
34
38
  height: calc($button-label-line-height * 1.5); // design-cheats-for-button-large
35
39
  margin-inline-end: unset;
36
40
  width: calc($button-label-line-height * 1.5); // design-cheats-for-button-large
@@ -42,10 +46,10 @@
42
46
 
43
47
  &:hover {
44
48
  svg {
45
- fill: $pure-white;
49
+ color: $pure-white;
46
50
 
47
51
  path {
48
- fill: $pure-white;
52
+ color: $pure-white;
49
53
  }
50
54
  }
51
55
  }
@@ -55,10 +59,10 @@
55
59
  border-color: transparent;
56
60
 
57
61
  svg {
58
- fill: $keyline-gray;
62
+ color: $keyline-gray;
59
63
 
60
64
  path {
61
- fill: $keyline-gray;
65
+ color: $keyline-gray;
62
66
  }
63
67
  }
64
68
  }
@@ -18,6 +18,14 @@
18
18
  gap: $spacing-micro;
19
19
  padding: $spacing-micro $spacing-xsm $spacing-micro $spacing-sm;
20
20
 
21
+ &__icon {
22
+ svg {
23
+ color: $button-hover;
24
+ height: 1rem;
25
+ width: 1rem;
26
+ }
27
+ }
28
+
21
29
  &__label {
22
30
  color: $button-hover;
23
31
  font-size: $body-size3;
@@ -29,23 +37,11 @@
29
37
  }
30
38
  }
31
39
 
32
- svg {
33
- fill: $button-hover;
34
-
35
- path {
36
- fill: $button-hover;
37
- }
38
- }
39
-
40
40
  &:hover {
41
41
  color: $pure-black;
42
42
 
43
43
  svg {
44
- fill: $pure-black;
45
-
46
- path {
47
- fill: $pure-black;
48
- }
44
+ color: $pure-black;
49
45
  }
50
46
  }
51
47
  }
@@ -14,9 +14,6 @@
14
14
  &__badge {
15
15
  color: $widget-red;
16
16
  display: block; // Ensures the badge can be sized correctly
17
- }
18
-
19
- &__badge:empty {
20
17
  min-height: 1rem;
21
18
  }
22
19
 
@@ -1,6 +1,8 @@
1
1
  @use '../../allPartials' as *;
2
2
 
3
- $social_icon_height: 1.75rem;
3
+ $icon_width: 1.75rem;
4
+ $icon_gap: 2rem;
5
+ $num_icons: 5;
4
6
 
5
7
  .#{$px}-social {
6
8
  align-items: center;
@@ -56,29 +58,16 @@ $social_icon_height: 1.75rem;
56
58
  align-items: center;
57
59
  border-top: 1px solid #eae8e4;
58
60
  display: flex;
59
- gap: 0 1.75rem;
60
- justify-content: center;
61
+ gap: 0 $icon_gap;
62
+ justify-content: flex-start;
61
63
  list-style: none;
62
64
  margin: $spacing-md 0 0;
65
+ max-width: calc($num_icons * $icon_width + ($num_icons - 1) * $icon_gap);
63
66
  padding: $spacing-sm 0 0;
64
67
  width: 100%;
65
68
 
66
- @include media($size-md) {
67
- gap: 0 2rem;
68
- justify-content: flex-start;
69
- margin: $spacing-md 0 $spacing-md;
70
- padding: $spacing-sm 0 0;
71
- width: 100%;
72
- }
73
-
74
69
  li {
75
70
  cursor: pointer;
76
- height: $social_icon_height;
77
-
78
- svg {
79
- height: $social_icon_height;
80
- width: $social_icon_height;
81
- }
82
71
  }
83
72
  }
84
73