@phillips/seldon 1.137.1 → 1.139.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 (235) 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/index.d.ts +42 -41
  142. package/dist/index.js +171 -169
  143. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +1 -1
  144. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +27 -27
  145. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +24 -9
  146. package/dist/node_modules/@radix-ui/react-context/dist/index.js +50 -34
  147. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +45 -45
  148. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +1 -1
  149. package/dist/node_modules/@radix-ui/react-id/dist/index.js +10 -10
  150. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +239 -0
  151. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +30 -25
  152. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +13 -13
  153. package/dist/node_modules/@radix-ui/react-select/dist/index.js +364 -338
  154. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +41 -40
  155. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +2 -2
  156. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
  157. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +1 -1
  158. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.d.ts +75 -0
  159. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +131 -0
  160. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +78 -0
  161. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.test.d.ts +1 -0
  162. package/dist/patterns/FavoritesCollectionTile/index.d.ts +1 -0
  163. package/dist/patterns/UserManagement/UserManagement.js +13 -29
  164. package/dist/scss/_vars.scss +1 -0
  165. package/dist/scss/_vars.scss.js +1 -0
  166. package/dist/scss/componentStyles.scss +1 -0
  167. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +4 -5
  168. package/dist/scss/components/Drawer/_drawer.scss +4 -0
  169. package/dist/scss/components/Filter/_filter.scss +0 -4
  170. package/dist/scss/components/IconButton/_iconButton.scss +9 -5
  171. package/dist/scss/components/Tags/_tags.scss +9 -13
  172. package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +159 -0
  173. package/dist/scss/patterns/Social/_social.scss +6 -17
  174. package/dist/scss/site-furniture/Footer/_footer.scss +0 -5
  175. package/dist/site-furniture/Footer/Footer.js +5 -5
  176. package/package.json +2 -1
  177. package/dist/assets/formatted/AccountCircle.d.ts +0 -9
  178. package/dist/assets/formatted/AccountCircle.js +0 -40
  179. package/dist/assets/formatted/ArrowPrev.d.ts +0 -9
  180. package/dist/assets/formatted/ArrowPrev.js +0 -37
  181. package/dist/assets/formatted/CalendarAlt.d.ts +0 -9
  182. package/dist/assets/formatted/CalendarAlt.js +0 -44
  183. package/dist/assets/formatted/CarouselArrowNext.d.ts +0 -9
  184. package/dist/assets/formatted/CarouselArrowNext.js +0 -29
  185. package/dist/assets/formatted/CarouselArrowPrev.d.ts +0 -9
  186. package/dist/assets/formatted/CarouselArrowPrev.js +0 -29
  187. package/dist/assets/formatted/Checkmark.d.ts +0 -9
  188. package/dist/assets/formatted/Checkmark.js +0 -37
  189. package/dist/assets/formatted/ChevronNext.d.ts +0 -9
  190. package/dist/assets/formatted/Close.d.ts +0 -9
  191. package/dist/assets/formatted/Close.js +0 -46
  192. package/dist/assets/formatted/FavoriteOutline.d.ts +0 -9
  193. package/dist/assets/formatted/FavoriteOutline.js +0 -38
  194. package/dist/assets/formatted/IconFooterFacebook.d.ts +0 -9
  195. package/dist/assets/formatted/IconFooterFacebook.js +0 -35
  196. package/dist/assets/formatted/IconFooterInstagram.d.ts +0 -9
  197. package/dist/assets/formatted/IconFooterInstagram.js +0 -31
  198. package/dist/assets/formatted/IconFooterLinkedin.d.ts +0 -9
  199. package/dist/assets/formatted/IconFooterLinkedin.js +0 -35
  200. package/dist/assets/formatted/IconFooterRed.d.ts +0 -9
  201. package/dist/assets/formatted/IconFooterRed.js +0 -42
  202. package/dist/assets/formatted/IconFooterWechat.d.ts +0 -9
  203. package/dist/assets/formatted/IconFooterWechat.js +0 -37
  204. package/dist/assets/formatted/Minus.d.ts +0 -9
  205. package/dist/assets/formatted/Minus.js +0 -46
  206. package/dist/assets/formatted/Plus.d.ts +0 -9
  207. package/dist/assets/formatted/Plus.js +0 -46
  208. package/dist/assets/formatted/React.d.ts +0 -9
  209. package/dist/assets/formatted/React.js +0 -36
  210. package/dist/assets/formatted/Spotify.d.ts +0 -9
  211. package/dist/assets/formatted/Spotify.js +0 -35
  212. package/dist/assets/formatted/Wechat.d.ts +0 -9
  213. package/dist/assets/formatted/Wechat.js +0 -42
  214. package/dist/assets/formatted/Youtube.d.ts +0 -9
  215. package/dist/assets/formatted/Youtube.js +0 -36
  216. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  217. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  218. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.js +0 -68
  219. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  220. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  221. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  222. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  223. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  224. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.js +0 -35
  225. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +0 -47
  226. package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  227. package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  228. package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  229. package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  230. package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -62
  231. package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  232. package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  233. package/dist/node_modules/@radix-ui/react-select/node_modules/tslib/tslib.es6.js +0 -27
  234. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-context/dist/index.js +0 -53
  235. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
@@ -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
  };
package/dist/index.d.ts CHANGED
@@ -1,71 +1,72 @@
1
1
  export * from './utils';
2
2
  export { default as Page } from './pages/Page';
3
- export * from './utils/hooks';
4
3
  export * from './providers/SeldonProvider/utils';
4
+ export * from './utils/hooks';
5
5
  export * from './types/commonTypes';
6
6
  export { default as Button, type ButtonProps } from './components/Button/Button';
7
7
  export { ButtonVariants } from './components/Button/types';
8
8
  export { default as IconButton } from './components/IconButton/IconButton';
9
+ export * from './components/Accordion';
10
+ export { Breadcrumb, type BreadcrumbProps } from './components/Breadcrumb';
11
+ export * from './components/Carousel';
12
+ export * from './components/Collapsible';
13
+ export * from './components/ContentPeek';
14
+ export * from './components/Detail';
15
+ export { default as Drawer } from './components/Drawer/Drawer';
16
+ export * from './components/Dropdown';
9
17
  export { default as ErrorBoundary, type ErrorBoundaryProps } from './components/ErrorBoundary/ErrorBoundary';
10
- export { default as Footer, type FooterProps } from './site-furniture/Footer/Footer';
11
18
  export { default as Grid, type GridProps } from './components/Grid/Grid';
12
- export { default as Header, type HeaderProps } from './site-furniture/Header/Header';
13
- export { default as Navigation, type NavigationProps } from './components/Navigation/Navigation';
14
- export { default as NavigationItem, type NavigationItemProps, } from './components/Navigation/NavigationItem/NavigationItem';
15
- export { default as NavigationItemTrigger, type NavigationItemTriggerProps, } from './components/Navigation/NavigationItemTrigger/NavigationItemTrigger';
16
- export { default as NavigationList, type NavigationListProps, } from './components/Navigation/NavigationList/NavigationList';
17
- export { default as HeroBanner, type HeroBannerProps } from './patterns/HeroBanner/HeroBanner';
19
+ export { default as GridItem, type GridItemProps } from './components/GridItem/GridItem';
20
+ export { GridItemAlign } from './components/GridItem/types';
18
21
  export { default as Input, type InputProps } from './components/Input/Input';
19
22
  export { default as Link, type LinkProps } from './components/Link/Link';
20
23
  export { LinkVariants } from './components/Link/types';
21
24
  export { default as LinkBlock, type LinkBlockProps } from './components/LinkBlock/LinkBlock';
22
25
  export { default as LinkList, type LinkListProps } from './components/LinkList/LinkList';
26
+ export { default as Modal, type ModalProps } from './components/Modal/Modal';
27
+ export { default as Navigation, type NavigationProps } from './components/Navigation/Navigation';
28
+ export { default as NavigationItem, type NavigationItemProps, } from './components/Navigation/NavigationItem/NavigationItem';
29
+ export { default as NavigationItemTrigger, type NavigationItemTriggerProps, } from './components/Navigation/NavigationItemTrigger/NavigationItemTrigger';
30
+ export { default as NavigationList, type NavigationListProps, } from './components/Navigation/NavigationList/NavigationList';
31
+ export { default as PageContentWrapper } from './components/PageContentWrapper/PageContentWrapper';
32
+ export { default as Pagination, type PaginationOption, type PaginationOptionValue, type PaginationProps, } from './components/Pagination/Pagination';
33
+ export * from './components/PinchZoom';
23
34
  export { default as Row, type RowProps } from './components/Row/Row';
24
- export { default as GridItem, type GridItemProps } from './components/GridItem/GridItem';
25
- export { GridItemAlign } from './components/GridItem/types';
26
35
  export { default as Search, type SearchProps } from './components/Search/Search';
36
+ export * from './components/SeldonImage';
27
37
  export { default as Select, type SelectProps } from './components/Select/Select';
28
38
  export { SelectVariants } from './components/Select/types';
29
39
  export { default as SplitPanel, type SplitPanelProps } from './components/SplitPanel/SplitPanel';
30
- export { default as Subscribe, type SubscribeProps } from './patterns/Subscribe/Subscribe';
31
- export { SubscriptionState } from './patterns/Subscribe/types';
32
- export { default as Social, type SocialProps } from './patterns/Social/Social';
33
- export { default as ViewingsList, type ViewingsListProps } from './patterns/ViewingsList/ViewingsList';
34
- export { default as Modal, type ModalProps } from './components/Modal/Modal';
35
- export { default as Drawer } from './components/Drawer/Drawer';
36
- export { default as Pagination, type PaginationProps, type PaginationOption, type PaginationOptionValue, } from './components/Pagination/Pagination';
37
- export { default as TagsList, Tag, type TagsListProps, type TagProps } from './components/Tags/Tags';
38
- export { default as StatefulViewingsList, type StatefulViewingsListProps, } from './patterns/ViewingsList/StatefulViewingsList';
40
+ export * from './components/Tabs';
41
+ export { Tag, default as TagsList, type TagProps, type TagsListProps } from './components/Tags/Tags';
39
42
  export * from './components/Text';
40
43
  export * from './components/TextSymbol';
41
- export * from './components/Accordion';
42
- export { default as UserManagement, type UserManagementProps } from './patterns/UserManagement/UserManagement';
43
- export { AuthState } from './patterns/UserManagement/types';
44
- export * from './types/commonTypes';
45
- export { Breadcrumb, type BreadcrumbProps } from './components/Breadcrumb';
46
- export * from './components/Dropdown';
47
44
  export { default as Video, type VideoProps } from './components/Video/Video';
48
- export * from './patterns/LanguageSelector';
49
- export * from './components/ContentPeek';
50
- export * from './components/Collapsible';
51
- export * from './providers/SeldonProvider/SeldonProvider';
52
- export { default as PageContentWrapper } from './components/PageContentWrapper/PageContentWrapper';
53
- export * from './components/Carousel';
54
- export * from './components/Detail';
55
45
  export * from './patterns/DetailList';
56
- export * from './components/PinchZoom';
57
- export * from './components/Tabs';
58
- export * from './components/SeldonImage';
46
+ export * from './patterns/FavoritesCollectionTile';
47
+ export { default as HeroBanner, type HeroBannerProps } from './patterns/HeroBanner/HeroBanner';
48
+ export * from './patterns/LanguageSelector';
59
49
  export * from './patterns/SaleHeaderBanner';
60
- export * from './utils/hooks';
61
- export * from './patterns/FilterMenu';
62
- export * from './components/Filter';
50
+ export { default as Social, type SocialProps } from './patterns/Social/Social';
51
+ export { default as Subscribe, type SubscribeProps } from './patterns/Subscribe/Subscribe';
52
+ export { SubscriptionState } from './patterns/Subscribe/types';
53
+ export { AuthState } from './patterns/UserManagement/types';
54
+ export { default as UserManagement, type UserManagementProps } from './patterns/UserManagement/UserManagement';
55
+ export { default as StatefulViewingsList, type StatefulViewingsListProps, } from './patterns/ViewingsList/StatefulViewingsList';
56
+ export { default as ViewingsList, type ViewingsListProps } from './patterns/ViewingsList/ViewingsList';
57
+ export * from './providers/SeldonProvider/SeldonProvider';
58
+ export { default as Footer, type FooterProps } from './site-furniture/Footer/Footer';
59
+ export { default as Header, type HeaderProps } from './site-furniture/Header/Header';
60
+ export * from './types/commonTypes';
61
+ export * from './components/Article';
63
62
  export * from './components/Countdown';
64
63
  export * from './components/Countdown/types';
65
- export * from './patterns/ObjectTile';
66
- export * from './patterns/BidSnapshot';
67
- export * from './components/Article';
68
64
  export * from './components/Divider';
69
65
  export * from './components/FavoritingTileButton';
66
+ export * from './components/Filter';
70
67
  export * from './components/Icon';
71
68
  export * from './components/TextArea';
69
+ export * from './patterns/BidSnapshot';
70
+ export * from './patterns/FilterMenu';
71
+ export * from './patterns/ObjectTile';
72
+ export * from './utils/hooks';