@phillips/seldon 1.249.0 → 1.251.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 (137) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index9.js +2 -2
  3. package/dist/assets/formatted/Account.js +15 -11
  4. package/dist/assets/formatted/AccountActive.js +17 -13
  5. package/dist/assets/formatted/Add.js +18 -14
  6. package/dist/assets/formatted/AdminCheck.js +19 -15
  7. package/dist/assets/formatted/AdminChevronLeft.js +17 -13
  8. package/dist/assets/formatted/AdminChevronRight.js +19 -15
  9. package/dist/assets/formatted/AdminChevronUp.js +18 -14
  10. package/dist/assets/formatted/AdminClose.js +20 -16
  11. package/dist/assets/formatted/AdminFullscreen.js +19 -21
  12. package/dist/assets/formatted/AdminFullscreenExit.js +19 -15
  13. package/dist/assets/formatted/AdminGavel.js +22 -18
  14. package/dist/assets/formatted/AdminHome.js +19 -15
  15. package/dist/assets/formatted/AdminLiveOnline.js +20 -16
  16. package/dist/assets/formatted/AdminPencil.js +18 -14
  17. package/dist/assets/formatted/AdminPerson.js +16 -12
  18. package/dist/assets/formatted/AdminPlay.js +19 -15
  19. package/dist/assets/formatted/AdminSearch.js +20 -16
  20. package/dist/assets/formatted/AdminTelephone.js +17 -13
  21. package/dist/assets/formatted/AppleAppStoreBadge.js +19 -15
  22. package/dist/assets/formatted/ArrowDown.js +16 -12
  23. package/dist/assets/formatted/ArrowLeft.js +16 -12
  24. package/dist/assets/formatted/ArrowRight.js +17 -13
  25. package/dist/assets/formatted/ArrowUp.js +18 -14
  26. package/dist/assets/formatted/Bag.js +18 -14
  27. package/dist/assets/formatted/Calendar.js +17 -13
  28. package/dist/assets/formatted/ChevronDown.js +17 -13
  29. package/dist/assets/formatted/ChevronLeft.js +17 -13
  30. package/dist/assets/formatted/ChevronRight.js +19 -15
  31. package/dist/assets/formatted/ChevronUp.js +17 -13
  32. package/dist/assets/formatted/Clock.js +18 -14
  33. package/dist/assets/formatted/CloseX.js +14 -10
  34. package/dist/assets/formatted/ConditionReport.js +19 -15
  35. package/dist/assets/formatted/Delete.js +20 -16
  36. package/dist/assets/formatted/Download.js +18 -14
  37. package/dist/assets/formatted/Edit.js +20 -16
  38. package/dist/assets/formatted/Email.js +19 -15
  39. package/dist/assets/formatted/Error.js +20 -16
  40. package/dist/assets/formatted/ExternalLink.js +16 -12
  41. package/dist/assets/formatted/Facebook.js +18 -14
  42. package/dist/assets/formatted/Favorite.js +17 -13
  43. package/dist/assets/formatted/FavoriteActive.js +17 -15
  44. package/dist/assets/formatted/Filters.js +19 -15
  45. package/dist/assets/formatted/Fullscreen.js +17 -13
  46. package/dist/assets/formatted/FullscreenExit.js +17 -13
  47. package/dist/assets/formatted/Gavel.js +19 -15
  48. package/dist/assets/formatted/GavelActive.js +18 -14
  49. package/dist/assets/formatted/Grid.js +16 -12
  50. package/dist/assets/formatted/Hide.js +20 -16
  51. package/dist/assets/formatted/Home.js +17 -13
  52. package/dist/assets/formatted/HomeActive.js +17 -13
  53. package/dist/assets/formatted/Icon.js +19 -15
  54. package/dist/assets/formatted/IconBlueCircle.js +18 -14
  55. package/dist/assets/formatted/IconGreenCircle.js +17 -13
  56. package/dist/assets/formatted/IconOrangeCircle.js +18 -14
  57. package/dist/assets/formatted/IconRedCircle.js +17 -13
  58. package/dist/assets/formatted/ImageUnavailable.js +23 -112
  59. package/dist/assets/formatted/Instagram.js +20 -16
  60. package/dist/assets/formatted/LinkedIn.js +19 -15
  61. package/dist/assets/formatted/List.js +20 -16
  62. package/dist/assets/formatted/LiveNow.js +17 -17
  63. package/dist/assets/formatted/Lock.js +19 -15
  64. package/dist/assets/formatted/MagnificentSeven.js +21 -17
  65. package/dist/assets/formatted/Menu.js +17 -13
  66. package/dist/assets/formatted/Mute.js +22 -18
  67. package/dist/assets/formatted/Pause.js +16 -12
  68. package/dist/assets/formatted/PhillipsAppIcon.js +21 -17
  69. package/dist/assets/formatted/PhillipsLogo.js +17 -13
  70. package/dist/assets/formatted/Play.js +18 -14
  71. package/dist/assets/formatted/Red.js +13 -9
  72. package/dist/assets/formatted/Refresh.js +17 -13
  73. package/dist/assets/formatted/Search.js +19 -14
  74. package/dist/assets/formatted/Sell.js +19 -15
  75. package/dist/assets/formatted/SellActive.js +19 -15
  76. package/dist/assets/formatted/Share.js +15 -11
  77. package/dist/assets/formatted/Subtract.js +19 -15
  78. package/dist/assets/formatted/Success.js +16 -12
  79. package/dist/assets/formatted/Tooltip.js +21 -17
  80. package/dist/assets/formatted/TwitterX.js +19 -15
  81. package/dist/assets/formatted/Upload.js +16 -12
  82. package/dist/assets/formatted/View.js +15 -11
  83. package/dist/assets/formatted/VolumeMaximum.js +17 -13
  84. package/dist/assets/formatted/VolumeMid.js +21 -17
  85. package/dist/assets/formatted/VolumeMinimum.js +19 -15
  86. package/dist/assets/formatted/WeChat.js +19 -15
  87. package/dist/assets/pictograms/formatted/Chat.js +22 -18
  88. package/dist/assets/pictograms/formatted/CreditCard.js +20 -16
  89. package/dist/assets/pictograms/formatted/Form.js +19 -15
  90. package/dist/assets/pictograms/formatted/Live.js +17 -13
  91. package/dist/assets/pictograms/formatted/MobilePhone.js +18 -14
  92. package/dist/assets/pictograms/formatted/Notification.js +21 -17
  93. package/dist/assets/pictograms/formatted/Phone.js +25 -21
  94. package/dist/assets/pictograms/formatted/Photos.js +21 -17
  95. package/dist/assets/pictograms/formatted/Search.js +18 -14
  96. package/dist/assets/pictograms/formatted/Shipping.js +17 -13
  97. package/dist/assets/pictograms/formatted/Sign.js +16 -12
  98. package/dist/assets/pictograms/formatted/Submit.js +21 -17
  99. package/dist/assets/pictograms/formatted/Timer.js +21 -17
  100. package/dist/assets/pictograms/formatted/Verification.js +22 -18
  101. package/dist/components/AddToCalendar/AddToCalendar.js +5 -5
  102. package/dist/components/Card/Card.d.ts +41 -0
  103. package/dist/components/Card/Card.js +80 -0
  104. package/dist/components/Card/Card.stories.d.ts +63 -0
  105. package/dist/components/Card/Card.test.d.ts +1 -0
  106. package/dist/components/Card/index.d.ts +2 -0
  107. package/dist/components/Card/types.d.ts +4 -0
  108. package/dist/components/Card/types.js +4 -0
  109. package/dist/components/Carousel/Carousel.js +74 -74
  110. package/dist/components/Carousel/CarouselArrows.js +25 -23
  111. package/dist/components/Carousel/CarouselDot.js +1 -1
  112. package/dist/components/Carousel/CarouselDots.js +27 -25
  113. package/dist/components/Carousel/CarouselItem.js +16 -16
  114. package/dist/components/ComboBox/ComboBox.js +48 -44
  115. package/dist/components/ComboBox/ComboBox.stories.d.ts +10 -0
  116. package/dist/components/Dropdown/Dropdown.js +3 -3
  117. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +13 -14
  118. package/dist/components/IconButton/IconButton.js +16 -15
  119. package/dist/components/Input/utils.js +3 -2
  120. package/dist/components/SeldonImage/SeldonImage.stories.d.ts +5 -0
  121. package/dist/components/Toast/Toast.stories.d.ts +8 -0
  122. package/dist/components/Video/Video.d.ts +4 -0
  123. package/dist/components/Video/Video.js +12 -11
  124. package/dist/index.d.ts +1 -0
  125. package/dist/index.js +240 -236
  126. package/dist/node_modules/ics/dist/index.js +1 -1
  127. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  128. package/dist/patterns/SaleCard/SaleCard.d.ts +3 -3
  129. package/dist/patterns/SaleCard/SaleCard.js +41 -42
  130. package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
  131. package/dist/scss/componentStyles.scss +1 -0
  132. package/dist/scss/components/Card/_card.scss +113 -0
  133. package/dist/scss/components/Countdown/_countdown.scss +1 -1
  134. package/dist/scss/components/SeldonImage/_seldonImage.scss +16 -4
  135. package/dist/scss/pages/_page.scss +4 -4
  136. package/dist/scss/patterns/SaleCard/_saleCard.scss +3 -66
  137. package/package.json +10 -5
@@ -1,39 +1,43 @@
1
- import { jsxs as n, jsx as l } from "react/jsx-runtime";
2
- import { memo as s, forwardRef as f } from "react";
3
- import { kebabCase as m } from "../../../node_modules/change-case/dist/index.js";
4
- const w = s(
5
- f((i, d) => {
6
- const { color: e, height: r, width: a, title: t, titleId: h } = i, o = h || m(t || "");
7
- return /* @__PURE__ */ n(
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { memo as m, forwardRef as n } from "react";
3
+ import { kebabCase as f } from "../../../node_modules/change-case/dist/index.js";
4
+ const u = m(
5
+ n((e, i) => {
6
+ const { color: o, height: r, width: s, title: l, titleId: d } = e, a = d || f(l || ""), h = !!(l || e["aria-label"]) ? e : {
7
+ ...e,
8
+ "aria-hidden": !0,
9
+ role: "presentation"
10
+ };
11
+ return /* @__PURE__ */ c(
8
12
  "svg",
9
13
  {
10
14
  xmlns: "http://www.w3.org/2000/svg",
11
15
  fill: "none",
12
16
  viewBox: "0 0 64 64",
13
17
  height: r,
14
- width: a,
18
+ width: s,
15
19
  role: "img",
16
- ref: d,
17
- "aria-labelledby": o,
18
- ...i,
20
+ ref: i,
21
+ "aria-labelledby": a,
22
+ ...h,
19
23
  children: [
20
- t ? /* @__PURE__ */ l("title", { id: o, children: t }) : null,
21
- /* @__PURE__ */ l("path", { fill: e, d: "M40.667 20.333a2.667 2.667 0 1 0 0-5.333 2.667 2.667 0 0 0 0 5.333" }),
22
- /* @__PURE__ */ l(
24
+ l ? /* @__PURE__ */ t("title", { id: a, children: l }) : null,
25
+ /* @__PURE__ */ t("path", { fill: o, d: "M40.667 20.333a2.667 2.667 0 1 0 0-5.333 2.667 2.667 0 0 0 0 5.333" }),
26
+ /* @__PURE__ */ t(
23
27
  "path",
24
28
  {
25
- fill: e,
29
+ fill: o,
26
30
  fillRule: "evenodd",
27
31
  d: "M54 4H4v50h50zm-3 3H7v22.572l11.084-14.483L31.486 35.19l10.373-12.047L51 37.77zM7 51V34.508l10.916-14.263 11.682 17.523a2.167 2.167 0 0 0 3.445.212l8.431-9.791L51 43.43V51z",
28
32
  clipRule: "evenodd"
29
33
  }
30
34
  ),
31
- /* @__PURE__ */ l("path", { fill: e, d: "M55.5 13.5v3H57V57H14.5v-1.5h-3V60H60V13.5z" })
35
+ /* @__PURE__ */ t("path", { fill: o, d: "M55.5 13.5v3H57V57H14.5v-1.5h-3V60H60V13.5z" })
32
36
  ]
33
37
  }
34
38
  );
35
39
  })
36
40
  );
37
41
  export {
38
- w as default
42
+ u as default
39
43
  };
@@ -1,34 +1,38 @@
1
- import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { memo as n, forwardRef as c } from "react";
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
+ import { memo as h, forwardRef as n } from "react";
3
3
  import { kebabCase as f } from "../../../node_modules/change-case/dist/index.js";
4
- const g = n(
5
- c((t, r) => {
6
- const { color: i, height: d, width: s, title: l, titleId: a } = t, o = a || f(l || "");
4
+ const g = h(
5
+ n((e, r) => {
6
+ const { color: o, height: s, width: i, title: l, titleId: d } = e, a = d || f(l || ""), c = !!(l || e["aria-label"]) ? e : {
7
+ ...e,
8
+ "aria-hidden": !0,
9
+ role: "presentation"
10
+ };
7
11
  return /* @__PURE__ */ m(
8
12
  "svg",
9
13
  {
10
14
  xmlns: "http://www.w3.org/2000/svg",
11
15
  fill: "none",
12
16
  viewBox: "0 0 64 64",
13
- height: d,
14
- width: s,
17
+ height: s,
18
+ width: i,
15
19
  role: "img",
16
20
  ref: r,
17
- "aria-labelledby": o,
18
- ...t,
21
+ "aria-labelledby": a,
22
+ ...c,
19
23
  children: [
20
- l ? /* @__PURE__ */ e("title", { id: o, children: l }) : null,
21
- /* @__PURE__ */ e(
24
+ l ? /* @__PURE__ */ t("title", { id: a, children: l }) : null,
25
+ /* @__PURE__ */ t(
22
26
  "path",
23
27
  {
24
- fill: i,
28
+ fill: o,
25
29
  d: "M16.02 30.85a10.485 10.485 0 0 1 4.988-17.679l-.57-2.448a13 13 0 0 0-6.03 3.258 13 13 0 0 0-.153 18.658z"
26
30
  }
27
31
  ),
28
- /* @__PURE__ */ e(
32
+ /* @__PURE__ */ t(
29
33
  "path",
30
34
  {
31
- fill: i,
35
+ fill: o,
32
36
  fillRule: "evenodd",
33
37
  d: "M23 41c9.941 0 18-8.059 18-18S32.941 5 23 5 5 13.059 5 23s8.059 18 18 18m0-3c8.284 0 15-6.716 15-15S31.284 8 23 8 8 14.716 8 23s6.716 15 15 15M36.397 38.427s.568-.493 1.098-1.023 1.024-1.098 1.024-1.098l5.344 5.344 1.65-1.65L58.24 52.728l-5.657 5.657-12.728-12.728 1.885-1.886zm9.116 5.816-1.415 1.414 8.486 8.485 1.414-1.414z",
34
38
  clipRule: "evenodd"
@@ -1,27 +1,31 @@
1
- import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
- import { memo as n, forwardRef as s } from "react";
3
- import { kebabCase as v } from "../../../node_modules/change-case/dist/index.js";
4
- const w = n(
5
- s((e, o) => {
6
- const { color: h, height: r, width: d, title: l, titleId: a } = e, t = a || v(l || "");
1
+ import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
+ import { memo as c, forwardRef as n } from "react";
3
+ import { kebabCase as p } from "../../../node_modules/change-case/dist/index.js";
4
+ const g = c(
5
+ n((e, o) => {
6
+ const { color: i, height: h, width: r, title: l, titleId: s } = e, t = s || p(l || ""), d = !!(l || e["aria-label"]) ? e : {
7
+ ...e,
8
+ "aria-hidden": !0,
9
+ role: "presentation"
10
+ };
7
11
  return /* @__PURE__ */ m(
8
12
  "svg",
9
13
  {
10
14
  xmlns: "http://www.w3.org/2000/svg",
11
15
  fill: "none",
12
16
  viewBox: "0 0 64 64",
13
- height: r,
14
- width: d,
17
+ height: h,
18
+ width: r,
15
19
  role: "img",
16
20
  ref: o,
17
21
  "aria-labelledby": t,
18
- ...e,
22
+ ...d,
19
23
  children: [
20
- l ? /* @__PURE__ */ i("title", { id: t, children: l }) : null,
21
- /* @__PURE__ */ i(
24
+ l ? /* @__PURE__ */ a("title", { id: t, children: l }) : null,
25
+ /* @__PURE__ */ a(
22
26
  "path",
23
27
  {
24
- fill: h,
28
+ fill: i,
25
29
  fillRule: "evenodd",
26
30
  d: "M6 11h38v13h12.097l3.776 12.578a3 3 0 0 1 .127.863V46H49.981q.02.248.019.5a6.5 6.5 0 1 1-12.981-.5H21.98q.02.248.019.5A6.5 6.5 0 1 1 9.019 46H4v-6h2zm4.022 32a6.5 6.5 0 0 1 5.478-3 6.5 6.5 0 0 1 5.478 3h17.044A6.52 6.52 0 0 1 41 40.498V14H9v29zM57 43h-8.022A6.5 6.5 0 0 0 44 40.019V27h4.5v10.5H57zm-5.5-8.5V27h2.403l2.597 7.5zM23 20H11v3h12zm-6 6h-6v3h6zm26.5 24a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7M19 46.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0",
27
31
  clipRule: "evenodd"
@@ -33,5 +37,5 @@ const w = n(
33
37
  })
34
38
  );
35
39
  export {
36
- w as default
40
+ g as default
37
41
  };
@@ -1,27 +1,31 @@
1
- import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
- import { memo as s, forwardRef as c } from "react";
1
+ import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
+ import { memo as n, forwardRef as h } from "react";
3
3
  import { kebabCase as f } from "../../../node_modules/change-case/dist/index.js";
4
- const g = s(
5
- c((e, o) => {
6
- const { color: r, height: a, width: d, title: l, titleId: n } = e, t = n || f(l || "");
4
+ const u = n(
5
+ h((e, o) => {
6
+ const { color: i, height: r, width: s, title: l, titleId: d } = e, t = d || f(l || ""), c = !!(l || e["aria-label"]) ? e : {
7
+ ...e,
8
+ "aria-hidden": !0,
9
+ role: "presentation"
10
+ };
7
11
  return /* @__PURE__ */ m(
8
12
  "svg",
9
13
  {
10
14
  xmlns: "http://www.w3.org/2000/svg",
11
15
  fill: "none",
12
16
  viewBox: "0 0 64 64",
13
- height: a,
14
- width: d,
17
+ height: r,
18
+ width: s,
15
19
  role: "img",
16
20
  ref: o,
17
21
  "aria-labelledby": t,
18
- ...e,
22
+ ...c,
19
23
  children: [
20
- l ? /* @__PURE__ */ i("title", { id: t, children: l }) : null,
21
- /* @__PURE__ */ i(
24
+ l ? /* @__PURE__ */ a("title", { id: t, children: l }) : null,
25
+ /* @__PURE__ */ a(
22
26
  "path",
23
27
  {
24
- fill: r,
28
+ fill: i,
25
29
  fillRule: "evenodd",
26
30
  d: "m53.668 23.516 4.067-4.067a3.333 3.333 0 0 0 0-4.714l-9.428-9.428a3.333 3.333 0 0 0-4.714 0l-4.067 4.067a.5.5 0 0 0-.212.004L26.862 12.32a.5.5 0 0 0-.341.282L7.54 54.8a.5.5 0 0 0 .66.66l42.239-18.94a.5.5 0 0 0 .282-.342l2.943-12.452a.5.5 0 0 0 .004-.211M46.185 7.428l9.429 9.428c.13.13.13.341 0 .472l-3.772 3.77-9.9-9.899 3.772-3.77c.13-.131.341-.131.471 0m1.9 26.86-31.288 14.03 14.898-14.897-2.122-2.121-14.855 14.855L28.75 14.957l9.897-2.339 11.775 11.776z",
27
31
  clipRule: "evenodd"
@@ -33,5 +37,5 @@ const g = s(
33
37
  })
34
38
  );
35
39
  export {
36
- g as default
40
+ u as default
37
41
  };
@@ -1,28 +1,32 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { memo as a, forwardRef as f } from "react";
3
- import { kebabCase as c } from "../../../node_modules/change-case/dist/index.js";
4
- const u = a(
5
- f((t, r) => {
6
- const { color: i, height: d, width: m, title: l, titleId: n } = t, o = n || c(l || "");
7
- return /* @__PURE__ */ s(
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
+ import { memo as n, forwardRef as h } from "react";
3
+ import { kebabCase as f } from "../../../node_modules/change-case/dist/index.js";
4
+ const v = n(
5
+ h((e, a) => {
6
+ const { color: o, height: r, width: s, title: l, titleId: d } = e, i = d || f(l || ""), c = !!(l || e["aria-label"]) ? e : {
7
+ ...e,
8
+ "aria-hidden": !0,
9
+ role: "presentation"
10
+ };
11
+ return /* @__PURE__ */ m(
8
12
  "svg",
9
13
  {
10
14
  xmlns: "http://www.w3.org/2000/svg",
11
15
  fill: "none",
12
16
  viewBox: "0 0 64 64",
13
- height: d,
14
- width: m,
17
+ height: r,
18
+ width: s,
15
19
  role: "img",
16
- ref: r,
17
- "aria-labelledby": o,
18
- ...t,
20
+ ref: a,
21
+ "aria-labelledby": i,
22
+ ...c,
19
23
  children: [
20
- l ? /* @__PURE__ */ e("title", { id: o, children: l }) : null,
21
- /* @__PURE__ */ e("path", { fill: i, d: "m40.07 23 2.122 2.121-7.07 7.071L33 30.072z" }),
22
- /* @__PURE__ */ e(
24
+ l ? /* @__PURE__ */ t("title", { id: i, children: l }) : null,
25
+ /* @__PURE__ */ t("path", { fill: o, d: "m40.07 23 2.122 2.121-7.07 7.071L33 30.072z" }),
26
+ /* @__PURE__ */ t(
23
27
  "path",
24
28
  {
25
- fill: i,
29
+ fill: o,
26
30
  fillRule: "evenodd",
27
31
  d: "M2.824 29.078 56.93 7.096l-8.964 52.662-11.069-11.99L27.5 57.792V38.051zM30.5 40.837v9.37l4.358-4.649zM11.176 28.922l18.184 6.613c.325.118.617.313.852.567l15.821 17.14 7.036-41.339z",
28
32
  clipRule: "evenodd"
@@ -34,5 +38,5 @@ const u = a(
34
38
  })
35
39
  );
36
40
  export {
37
- u as default
41
+ v as default
38
42
  };
@@ -1,39 +1,43 @@
1
- import { jsxs as m, jsx as l } from "react/jsx-runtime";
2
- import { memo as n, forwardRef as a } from "react";
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { memo as m, forwardRef as n } from "react";
3
3
  import { kebabCase as f } from "../../../node_modules/change-case/dist/index.js";
4
- const w = n(
5
- a((i, r) => {
6
- const { color: e, height: d, width: h, title: t, titleId: s } = i, o = s || f(t || "");
7
- return /* @__PURE__ */ m(
4
+ const u = m(
5
+ n((e, a) => {
6
+ const { color: o, height: r, width: s, title: l, titleId: d } = e, i = d || f(l || ""), h = !!(l || e["aria-label"]) ? e : {
7
+ ...e,
8
+ "aria-hidden": !0,
9
+ role: "presentation"
10
+ };
11
+ return /* @__PURE__ */ c(
8
12
  "svg",
9
13
  {
10
14
  xmlns: "http://www.w3.org/2000/svg",
11
15
  fill: "none",
12
16
  viewBox: "0 0 64 64",
13
- height: d,
14
- width: h,
17
+ height: r,
18
+ width: s,
15
19
  role: "img",
16
- ref: r,
17
- "aria-labelledby": o,
18
- ...i,
20
+ ref: a,
21
+ "aria-labelledby": i,
22
+ ...h,
19
23
  children: [
20
- t ? /* @__PURE__ */ l("title", { id: o, children: t }) : null,
21
- /* @__PURE__ */ l("path", { fill: e, d: "M33.5 23h-3v9H29v6h6v-1.5h13v-3H35V32h-1.5z" }),
22
- /* @__PURE__ */ l(
24
+ l ? /* @__PURE__ */ t("title", { id: i, children: l }) : null,
25
+ /* @__PURE__ */ t("path", { fill: o, d: "M33.5 23h-3v9H29v6h6v-1.5h13v-3H35V32h-1.5z" }),
26
+ /* @__PURE__ */ t(
23
27
  "path",
24
28
  {
25
- fill: e,
29
+ fill: o,
26
30
  fillRule: "evenodd",
27
31
  d: "M57 35c0 13.807-11.193 25-25 25S7 48.807 7 35s11.193-25 25-25 25 11.193 25 25m-3 0c0 12.15-9.85 22-22 22s-22-9.85-22-22 9.85-22 22-22 22 9.85 22 22",
28
32
  clipRule: "evenodd"
29
33
  }
30
34
  ),
31
- /* @__PURE__ */ l("path", { fill: e, d: "M25 4h14v3h-5.5v1.667h-3V7H25zM16.364 13.121 14.243 11 10 15.243l2.121 2.121z" })
35
+ /* @__PURE__ */ t("path", { fill: o, d: "M25 4h14v3h-5.5v1.667h-3V7H25zM16.364 13.121 14.243 11 10 15.243l2.121 2.121z" })
32
36
  ]
33
37
  }
34
38
  );
35
39
  })
36
40
  );
37
41
  export {
38
- w as default
42
+ u as default
39
43
  };
@@ -1,29 +1,33 @@
1
- import { jsxs as a, jsx as l } from "react/jsx-runtime";
2
- import { memo as f, forwardRef as v } from "react";
3
- import { kebabCase as m } from "../../../node_modules/change-case/dist/index.js";
4
- const u = f(
5
- v((t, d) => {
6
- const { color: e, height: r, width: h, title: i, titleId: n } = t, o = n || m(i || "");
7
- return /* @__PURE__ */ a(
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { memo as n, forwardRef as m } from "react";
3
+ import { kebabCase as f } from "../../../node_modules/change-case/dist/index.js";
4
+ const w = n(
5
+ m((e, a) => {
6
+ const { color: o, height: d, width: r, title: l, titleId: h } = e, i = h || f(l || ""), s = !!(l || e["aria-label"]) ? e : {
7
+ ...e,
8
+ "aria-hidden": !0,
9
+ role: "presentation"
10
+ };
11
+ return /* @__PURE__ */ c(
8
12
  "svg",
9
13
  {
10
14
  xmlns: "http://www.w3.org/2000/svg",
11
15
  fill: "none",
12
16
  viewBox: "0 0 64 64",
13
- height: r,
14
- width: h,
17
+ height: d,
18
+ width: r,
15
19
  role: "img",
16
- ref: d,
17
- "aria-labelledby": o,
18
- ...t,
20
+ ref: a,
21
+ "aria-labelledby": i,
22
+ ...s,
19
23
  children: [
20
- i ? /* @__PURE__ */ l("title", { id: o, children: i }) : null,
21
- /* @__PURE__ */ l("path", { fill: e, fillRule: "evenodd", d: "M10 29V17h12v12zm3-9h6v6h-6z", clipRule: "evenodd" }),
22
- /* @__PURE__ */ l("path", { fill: e, d: "M26 18h19v3H26zM26 24h19v3H26zM55.121 37.5 46 46.621 40.879 41.5 43 39.379l3 3 7-7z" }),
23
- /* @__PURE__ */ l(
24
+ l ? /* @__PURE__ */ t("title", { id: i, children: l }) : null,
25
+ /* @__PURE__ */ t("path", { fill: o, fillRule: "evenodd", d: "M10 29V17h12v12zm3-9h6v6h-6z", clipRule: "evenodd" }),
26
+ /* @__PURE__ */ t("path", { fill: o, d: "M26 18h19v3H26zM26 24h19v3H26zM55.121 37.5 46 46.621 40.879 41.5 43 39.379l3 3 7-7z" }),
27
+ /* @__PURE__ */ t(
24
28
  "path",
25
29
  {
26
- fill: e,
30
+ fill: o,
27
31
  fillRule: "evenodd",
28
32
  d: "M4 43h32.166c.952 5.675 5.888 10 11.834 10 6.627 0 12-5.373 12-12 0-4.843-2.869-9.016-7-10.912V11H4zm46-13.834V14H7v20h31.252c2.178-3.028 5.733-5 9.748-5q1.023.001 2 .166M36.683 37H7v3h29.041a12 12 0 0 1 .642-3M48 50a9 9 0 1 0 0-18 9 9 0 0 0 0 18",
29
33
  clipRule: "evenodd"
@@ -35,5 +39,5 @@ const u = f(
35
39
  })
36
40
  );
37
41
  export {
38
- u as default
42
+ w as default
39
43
  };
@@ -10,9 +10,9 @@ import P from "../Link/Link.js";
10
10
  import { generateGoogleCalendarLink as $, generateOutlookOnlineLink as w, generateYahooCalendarLink as R, generateCalendarFile as S } from "./calendarLinks.js";
11
11
  import j from "../IconButton/IconButton.js";
12
12
  const G = b(
13
- ({ className: r, event: o, label: s = "Add to calendar", linkElement: d = P, ...n }, c) => {
14
- const { className: l, ...m } = g(n, "AddToCalendar"), [t, f] = h(!1), k = (e, i) => {
15
- e === "file" ? S(o) : e === "link" && i && window.open(i, "_blank");
13
+ ({ className: s, event: o, label: n = "Add to calendar", linkElement: d = P, ...t }, c) => {
14
+ const { className: l, ...m } = g(t, "AddToCalendar"), [i, f] = h(!1), k = (e, r) => {
15
+ e === "file" ? S(o) : e === "link" && r && window.open(r, "_blank");
16
16
  }, p = [
17
17
  { label: "iCalendar", action: "file" },
18
18
  { label: "Google Calendar", action: "link", link: $(o) },
@@ -20,8 +20,8 @@ const G = b(
20
20
  { label: "Outlook Online", action: "link", link: w(o) },
21
21
  { label: "Yahoo Calendar", action: "link", link: R(o) }
22
22
  ];
23
- return /* @__PURE__ */ a("div", { ...m, className: u(l, r), ...n, ref: c, children: /* @__PURE__ */ C(O, { open: t, onOpenChange: f, children: [
24
- /* @__PURE__ */ a(I, { asChild: !0, children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(L, { icon: t ? "CloseX" : "Calendar", title: s }) }) }),
23
+ return /* @__PURE__ */ a("div", { ...m, className: u(l, s), ...t, ref: c, children: /* @__PURE__ */ C(O, { open: i, onOpenChange: f, children: [
24
+ /* @__PURE__ */ a(I, { asChild: !0, children: /* @__PURE__ */ a(j, { "aria-label": n, children: /* @__PURE__ */ a(L, { icon: i ? "CloseX" : "Calendar", title: n }) }) }),
25
25
  /* @__PURE__ */ a(T, { children: /* @__PURE__ */ a(
26
26
  x,
27
27
  {
@@ -0,0 +1,41 @@
1
+ import { ComponentProps, ElementType } from 'react';
2
+ import { Link } from '../Link';
3
+ import { SeldonImage } from '../SeldonImage';
4
+ import { Video } from '../Video';
5
+ import { Text } from '../Text';
6
+ import { CardVariants } from './types';
7
+ export interface CardRootProps extends ComponentProps<'div'> {
8
+ /**
9
+ * Root element for the card shell. Defaults to `div`.
10
+ */
11
+ element?: ElementType;
12
+ /**
13
+ * Layout variant for the card.
14
+ */
15
+ variant?: CardVariants;
16
+ }
17
+ export type CardProps = CardRootProps;
18
+ export type CardImageProps = Omit<ComponentProps<typeof SeldonImage>, 'className'>;
19
+ export type CardVideoProps = ComponentProps<typeof Video>;
20
+ export type CardContentProps = ComponentProps<'div'>;
21
+ export type CardEyebrowProps = Omit<ComponentProps<typeof Text>, 'variant'>;
22
+ export type CardTitleProps = Omit<ComponentProps<typeof Text>, 'variant'>;
23
+ export type CardDescriptionProps = Omit<ComponentProps<typeof Text>, 'variant'>;
24
+ export type CardBadgeProps = Omit<ComponentProps<typeof Text>, 'variant'>;
25
+ export type CardMetaProps = ComponentProps<'div'>;
26
+ export type CardMetaItemProps = Omit<ComponentProps<typeof Text>, 'variant'>;
27
+ export type CardCtaProps = ComponentProps<typeof Link>;
28
+ declare const Card: import('react').ForwardRefExoticComponent<Omit<CardRootProps, "ref"> & import('react').RefAttributes<HTMLElement>> & {
29
+ Root: import('react').ForwardRefExoticComponent<Omit<CardRootProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
30
+ Image: import('react').ForwardRefExoticComponent<Omit<CardImageProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
31
+ Video: import('react').ForwardRefExoticComponent<Omit<Omit<import('../Video').VideoProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
32
+ Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
33
+ Eyebrow: import('react').ForwardRefExoticComponent<Omit<CardEyebrowProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
34
+ Title: import('react').ForwardRefExoticComponent<Omit<CardTitleProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
35
+ Description: import('react').ForwardRefExoticComponent<Omit<CardDescriptionProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
36
+ Badge: import('react').ForwardRefExoticComponent<Omit<CardBadgeProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
37
+ Meta: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
38
+ MetaItem: import('react').ForwardRefExoticComponent<Omit<CardMetaItemProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
39
+ Cta: import('react').ForwardRefExoticComponent<Omit<Omit<import('../Link').LinkProps, "ref"> & import('react').RefAttributes<HTMLAnchorElement>, "ref"> & import('react').RefAttributes<HTMLAnchorElement>>;
40
+ };
41
+ export default Card;
@@ -0,0 +1,80 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import m from "../../_virtual/index.js";
3
+ import { forwardRef as s } from "react";
4
+ import { getCommonProps as w, px as o } from "../../utils/index.js";
5
+ import { LinkVariants as x } from "../Link/types.js";
6
+ import T from "../Link/Link.js";
7
+ import R from "../SeldonImage/SeldonImage.js";
8
+ import k from "../Video/Video.js";
9
+ import { TextVariants as i } from "../Text/types.js";
10
+ import l from "../Text/Text.js";
11
+ import { CardVariants as u } from "./types.js";
12
+ const c = s(
13
+ ({ element: e = "div", className: r, id: a, variant: d = u.default, ...n }, S) => {
14
+ const { className: C, ...V } = w({ id: a, ...n }, "Card"), M = m(C, r, {
15
+ [`${C}--${d}`]: d
16
+ });
17
+ return /* @__PURE__ */ t(e, { className: M, id: a, ref: S, ...V, ...n });
18
+ }
19
+ ), p = s(({ aspectRatio: e = "16/9", ...r }, a) => /* @__PURE__ */ t(R, { ...r, aspectRatio: e, className: `${o}-card__image`, ref: a })), N = s(({ aspectRatio: e = 16 / 9, className: r, ...a }, d) => /* @__PURE__ */ t(k, { ...a, ref: d, aspectRatio: e, className: m(`${o}-card__video`, r) })), _ = s(({ className: e, ...r }, a) => /* @__PURE__ */ t("div", { ...r, className: m(`${o}-card__details`, e), ref: a })), y = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(
20
+ l,
21
+ {
22
+ ...r,
23
+ className: m(`${o}-card__eyebrow`, e),
24
+ ref: a,
25
+ variant: i.labelSmall
26
+ }
27
+ )), f = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(
28
+ l,
29
+ {
30
+ ...r,
31
+ className: m(`${o}-card__title`, e),
32
+ ref: a,
33
+ variant: i.headingSmall
34
+ }
35
+ )), g = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(
36
+ l,
37
+ {
38
+ ...r,
39
+ className: m(`${o}-card__description`, e),
40
+ ref: a,
41
+ variant: i.bodySmall
42
+ }
43
+ )), $ = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(l, { ...r, className: m(`${o}-card__badge`, e), ref: a, variant: i.badgeSmall })), b = s(({ className: e, ...r }, a) => /* @__PURE__ */ t("div", { ...r, className: m(`${o}-card__meta`, e), ref: a })), v = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(
44
+ l,
45
+ {
46
+ ...r,
47
+ className: m(`${o}-card__meta-item`, e),
48
+ ref: a,
49
+ variant: i.labelSmall
50
+ }
51
+ )), I = s(
52
+ ({ className: e, variant: r = x.linkSmall, ...a }, d) => /* @__PURE__ */ t(T, { ...a, ref: d, className: m(`${o}-card__cta`, e), variant: r })
53
+ );
54
+ c.displayName = "Card.Root";
55
+ p.displayName = "Card.Image";
56
+ N.displayName = "Card.Video";
57
+ _.displayName = "Card.Content";
58
+ y.displayName = "Card.Eyebrow";
59
+ f.displayName = "Card.Title";
60
+ g.displayName = "Card.Description";
61
+ $.displayName = "Card.Badge";
62
+ b.displayName = "Card.Meta";
63
+ v.displayName = "Card.MetaItem";
64
+ I.displayName = "Card.Cta";
65
+ const F = Object.assign(c, {
66
+ Root: c,
67
+ Image: p,
68
+ Video: N,
69
+ Content: _,
70
+ Eyebrow: y,
71
+ Title: f,
72
+ Description: g,
73
+ Badge: $,
74
+ Meta: b,
75
+ MetaItem: v,
76
+ Cta: I
77
+ });
78
+ export {
79
+ F as default
80
+ };
@@ -0,0 +1,63 @@
1
+ import { CardRootProps } from './Card';
2
+ import { CardVariants } from './types';
3
+ declare const meta: {
4
+ title: string;
5
+ component: import('react').ForwardRefExoticComponent<Omit<CardRootProps, "ref"> & import('react').RefAttributes<HTMLElement>> & {
6
+ Root: import('react').ForwardRefExoticComponent<Omit<CardRootProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
7
+ Image: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardImageProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
8
+ Video: import('react').ForwardRefExoticComponent<Omit<Omit<import('../Video').VideoProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
9
+ Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
10
+ Eyebrow: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardEyebrowProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
11
+ Title: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardTitleProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
12
+ Description: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardDescriptionProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
13
+ Badge: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardBadgeProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
14
+ Meta: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
15
+ MetaItem: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardMetaItemProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
16
+ Cta: import('react').ForwardRefExoticComponent<Omit<Omit<import('../Link').LinkProps, "ref"> & import('react').RefAttributes<HTMLAnchorElement>, "ref"> & import('react').RefAttributes<HTMLAnchorElement>>;
17
+ };
18
+ };
19
+ export default meta;
20
+ export declare const Playground: {
21
+ (props: CardRootProps): import("react/jsx-runtime").JSX.Element;
22
+ args: {
23
+ id: string;
24
+ };
25
+ argTypes: {
26
+ element: {
27
+ control: boolean;
28
+ };
29
+ variant: {
30
+ options: CardVariants[];
31
+ control: {
32
+ type: string;
33
+ };
34
+ };
35
+ };
36
+ };
37
+ export declare const ArticleCard: {
38
+ (props: CardRootProps): import("react/jsx-runtime").JSX.Element;
39
+ args: {
40
+ id: string;
41
+ };
42
+ };
43
+ export declare const ArticleCardWithCta: {
44
+ (props: CardRootProps): import("react/jsx-runtime").JSX.Element;
45
+ storyName: string;
46
+ args: {
47
+ id: string;
48
+ };
49
+ };
50
+ export declare const MediaCard: {
51
+ (props: CardRootProps): import("react/jsx-runtime").JSX.Element;
52
+ args: {
53
+ id: string;
54
+ variant: CardVariants;
55
+ };
56
+ };
57
+ export declare const CardWithImagePlaceholder: {
58
+ (props: CardRootProps): import("react/jsx-runtime").JSX.Element;
59
+ storyName: string;
60
+ args: {
61
+ id: string;
62
+ };
63
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default as Card, type CardBadgeProps, type CardContentProps, type CardCtaProps, type CardDescriptionProps, type CardEyebrowProps, type CardImageProps, type CardMetaItemProps, type CardMetaProps, type CardProps, type CardRootProps, type CardTitleProps, type CardVideoProps, } from './Card';
2
+ export { CardVariants } from './types';
@@ -0,0 +1,4 @@
1
+ export declare enum CardVariants {
2
+ default = "default",
3
+ stacked = "stacked"
4
+ }
@@ -0,0 +1,4 @@
1
+ var t = /* @__PURE__ */ ((e) => (e.default = "default", e.stacked = "stacked", e))(t || {});
2
+ export {
3
+ t as CardVariants
4
+ };