@phillips/seldon 1.248.0 → 1.250.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 (117) hide show
  1. package/dist/assets/formatted/Account.js +15 -11
  2. package/dist/assets/formatted/AccountActive.js +17 -13
  3. package/dist/assets/formatted/Add.js +18 -14
  4. package/dist/assets/formatted/AdminCheck.js +19 -15
  5. package/dist/assets/formatted/AdminChevronLeft.js +17 -13
  6. package/dist/assets/formatted/AdminChevronRight.js +19 -15
  7. package/dist/assets/formatted/AdminChevronUp.js +18 -14
  8. package/dist/assets/formatted/AdminClose.js +20 -16
  9. package/dist/assets/formatted/AdminFullscreen.js +19 -21
  10. package/dist/assets/formatted/AdminFullscreenExit.js +19 -15
  11. package/dist/assets/formatted/AdminGavel.js +22 -18
  12. package/dist/assets/formatted/AdminHome.js +19 -15
  13. package/dist/assets/formatted/AdminLiveOnline.js +20 -16
  14. package/dist/assets/formatted/AdminPencil.js +18 -14
  15. package/dist/assets/formatted/AdminPerson.js +16 -12
  16. package/dist/assets/formatted/AdminPlay.js +19 -15
  17. package/dist/assets/formatted/AdminSearch.js +20 -16
  18. package/dist/assets/formatted/AdminTelephone.js +17 -13
  19. package/dist/assets/formatted/AppleAppStoreBadge.js +19 -15
  20. package/dist/assets/formatted/ArrowDown.js +16 -12
  21. package/dist/assets/formatted/ArrowLeft.js +16 -12
  22. package/dist/assets/formatted/ArrowRight.js +17 -13
  23. package/dist/assets/formatted/ArrowUp.js +18 -14
  24. package/dist/assets/formatted/Bag.js +18 -14
  25. package/dist/assets/formatted/Calendar.js +17 -13
  26. package/dist/assets/formatted/ChevronDown.js +17 -13
  27. package/dist/assets/formatted/ChevronLeft.js +17 -13
  28. package/dist/assets/formatted/ChevronRight.js +19 -15
  29. package/dist/assets/formatted/ChevronUp.js +17 -13
  30. package/dist/assets/formatted/Clock.js +18 -14
  31. package/dist/assets/formatted/CloseX.js +14 -10
  32. package/dist/assets/formatted/ConditionReport.js +19 -15
  33. package/dist/assets/formatted/Delete.js +20 -16
  34. package/dist/assets/formatted/Download.js +18 -14
  35. package/dist/assets/formatted/Edit.js +20 -16
  36. package/dist/assets/formatted/Email.js +19 -15
  37. package/dist/assets/formatted/Error.js +20 -16
  38. package/dist/assets/formatted/ExternalLink.js +16 -12
  39. package/dist/assets/formatted/Facebook.js +18 -14
  40. package/dist/assets/formatted/Favorite.js +17 -13
  41. package/dist/assets/formatted/FavoriteActive.js +17 -15
  42. package/dist/assets/formatted/Filters.js +19 -15
  43. package/dist/assets/formatted/Fullscreen.js +17 -13
  44. package/dist/assets/formatted/FullscreenExit.js +17 -13
  45. package/dist/assets/formatted/Gavel.js +19 -15
  46. package/dist/assets/formatted/GavelActive.js +18 -14
  47. package/dist/assets/formatted/Grid.js +16 -12
  48. package/dist/assets/formatted/Hide.js +20 -16
  49. package/dist/assets/formatted/Home.js +17 -13
  50. package/dist/assets/formatted/HomeActive.js +17 -13
  51. package/dist/assets/formatted/Icon.js +19 -15
  52. package/dist/assets/formatted/IconBlueCircle.js +18 -14
  53. package/dist/assets/formatted/IconGreenCircle.js +17 -13
  54. package/dist/assets/formatted/IconOrangeCircle.js +18 -14
  55. package/dist/assets/formatted/IconRedCircle.js +17 -13
  56. package/dist/assets/formatted/ImageUnavailable.js +23 -112
  57. package/dist/assets/formatted/Instagram.js +20 -16
  58. package/dist/assets/formatted/LinkedIn.js +19 -15
  59. package/dist/assets/formatted/List.js +20 -16
  60. package/dist/assets/formatted/LiveNow.js +17 -17
  61. package/dist/assets/formatted/Lock.js +19 -15
  62. package/dist/assets/formatted/MagnificentSeven.js +21 -17
  63. package/dist/assets/formatted/Menu.js +17 -13
  64. package/dist/assets/formatted/Mute.js +22 -18
  65. package/dist/assets/formatted/Pause.js +16 -12
  66. package/dist/assets/formatted/PhillipsAppIcon.js +21 -17
  67. package/dist/assets/formatted/PhillipsLogo.js +17 -13
  68. package/dist/assets/formatted/Play.js +18 -14
  69. package/dist/assets/formatted/Red.js +13 -9
  70. package/dist/assets/formatted/Refresh.js +17 -13
  71. package/dist/assets/formatted/Search.js +19 -14
  72. package/dist/assets/formatted/Sell.js +19 -15
  73. package/dist/assets/formatted/SellActive.js +19 -15
  74. package/dist/assets/formatted/Share.js +15 -11
  75. package/dist/assets/formatted/Subtract.js +19 -15
  76. package/dist/assets/formatted/Success.js +16 -12
  77. package/dist/assets/formatted/Tooltip.js +21 -17
  78. package/dist/assets/formatted/TwitterX.js +19 -15
  79. package/dist/assets/formatted/Upload.js +16 -12
  80. package/dist/assets/formatted/View.js +15 -11
  81. package/dist/assets/formatted/VolumeMaximum.js +17 -13
  82. package/dist/assets/formatted/VolumeMid.js +21 -17
  83. package/dist/assets/formatted/VolumeMinimum.js +19 -15
  84. package/dist/assets/formatted/WeChat.js +19 -15
  85. package/dist/assets/pictograms/formatted/Chat.js +22 -18
  86. package/dist/assets/pictograms/formatted/CreditCard.js +20 -16
  87. package/dist/assets/pictograms/formatted/Form.js +19 -15
  88. package/dist/assets/pictograms/formatted/Live.js +17 -13
  89. package/dist/assets/pictograms/formatted/MobilePhone.js +18 -14
  90. package/dist/assets/pictograms/formatted/Notification.js +21 -17
  91. package/dist/assets/pictograms/formatted/Phone.js +25 -21
  92. package/dist/assets/pictograms/formatted/Photos.js +21 -17
  93. package/dist/assets/pictograms/formatted/Search.js +18 -14
  94. package/dist/assets/pictograms/formatted/Shipping.js +17 -13
  95. package/dist/assets/pictograms/formatted/Sign.js +16 -12
  96. package/dist/assets/pictograms/formatted/Submit.js +21 -17
  97. package/dist/assets/pictograms/formatted/Timer.js +21 -17
  98. package/dist/assets/pictograms/formatted/Verification.js +22 -18
  99. package/dist/components/AddToCalendar/AddToCalendar.js +5 -5
  100. package/dist/components/Carousel/Carousel.js +74 -74
  101. package/dist/components/Carousel/CarouselArrows.js +25 -23
  102. package/dist/components/Carousel/CarouselDot.js +1 -1
  103. package/dist/components/Carousel/CarouselDots.js +27 -25
  104. package/dist/components/Carousel/CarouselItem.js +16 -16
  105. package/dist/components/ComboBox/ComboBox.js +48 -44
  106. package/dist/components/ComboBox/ComboBox.stories.d.ts +10 -0
  107. package/dist/components/Dropdown/Dropdown.js +3 -3
  108. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +13 -14
  109. package/dist/components/IconButton/IconButton.js +16 -15
  110. package/dist/components/SeldonImage/SeldonImage.stories.d.ts +5 -0
  111. package/dist/components/Toast/Toast.stories.d.ts +8 -0
  112. package/dist/components/Video/Video.d.ts +4 -0
  113. package/dist/components/Video/Video.js +12 -11
  114. package/dist/scss/components/Countdown/_countdown.scss +1 -1
  115. package/dist/scss/components/ExitGateCard/_exitGateCard.scss +0 -5
  116. package/dist/scss/pages/_page.scss +4 -4
  117. package/package.json +10 -5
@@ -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
  {
@@ -1,50 +1,50 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { createContext as R, forwardRef as K, useState as f, useEffect as m, useCallback as u } from "react";
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { createContext as K, forwardRef as L, useState as u, useEffect as d, useCallback as p } from "react";
3
3
  import { getCommonProps as W } from "../../utils/index.js";
4
4
  import j from "../../_virtual/index.js";
5
5
  import B from "../../node_modules/embla-carousel-class-names/esm/embla-carousel-class-names.esm.js";
6
6
  import G from "../../node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js";
7
- import { WheelGesturesPlugin as L } from "../../node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js";
8
- const q = R(null), z = K(
7
+ import { WheelGesturesPlugin as q } from "../../node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js";
8
+ const z = K(null), F = L(
9
9
  ({
10
- element: d,
11
- loop: p = !1,
12
- startIndex: w = 0,
13
- onSlideChange: o,
14
- className: x,
15
- children: N,
16
- columnGap: v,
17
- useWheelGestures: C = !1,
18
- disableDrag: n = !1,
19
- disableNavigationDrag: b = null,
20
- inViewThreshold: h = 0.99,
21
- ...i
22
- }, g) => {
23
- const k = d || "div", { className: P, ...D } = W(i, "Carousel");
24
- let l = {};
25
- switch (b) {
10
+ element: w,
11
+ loop: x = !1,
12
+ startIndex: v = 0,
13
+ onSlideChange: r,
14
+ className: N,
15
+ children: C,
16
+ columnGap: b,
17
+ useWheelGestures: h = !1,
18
+ disableDrag: i = !1,
19
+ disableNavigationDrag: g = null,
20
+ inViewThreshold: k = 0.99,
21
+ ...c
22
+ }, P) => {
23
+ const t = w || "div", f = t === "ul" || t === "ol", { className: D, ...S } = W(c, "Carousel");
24
+ let o = {};
25
+ switch (g) {
26
26
  case "mobile":
27
- l = { breakpoints: { "(max-width: 960px)": { watchDrag: !1 } } };
27
+ o = { breakpoints: { "(max-width: 960px)": { watchDrag: !1 } } };
28
28
  break;
29
29
  case "desktop":
30
- l = { breakpoints: { "(min-width: 961px)": { watchDrag: !1 } } };
30
+ o = { breakpoints: { "(min-width: 961px)": { watchDrag: !1 } } };
31
31
  break;
32
32
  case "all":
33
- l = { watchDrag: !1 };
33
+ o = { watchDrag: !1 };
34
34
  break;
35
35
  default:
36
- l = {};
36
+ o = {};
37
37
  }
38
- const [S, I] = f(!1), [E, y] = f(!1), [V, e] = G(
38
+ const [E, I] = u(!1), [y, V] = u(!1), [A, e] = G(
39
39
  {
40
- loop: p,
41
- startIndex: w,
42
- inViewThreshold: h,
43
- ...l
40
+ loop: x,
41
+ startIndex: v,
42
+ inViewThreshold: k,
43
+ ...o
44
44
  },
45
45
  [
46
- ...C ? [
47
- L({
46
+ ...h ? [
47
+ q({
48
48
  forceWheelAxis: "x"
49
49
  })
50
50
  ] : [],
@@ -53,72 +53,72 @@ const q = R(null), z = K(
53
53
  })
54
54
  ]
55
55
  );
56
- m(() => {
57
- n ? e?.reInit({
56
+ d(() => {
57
+ i ? e?.reInit({
58
58
  watchDrag: () => !1
59
59
  }) : e?.reInit({
60
60
  watchDrag: () => !0
61
61
  });
62
- }, [n, e]);
63
- const A = u(
64
- (r) => {
65
- if (r.key === "ArrowLeft") {
66
- r.preventDefault(), e?.scrollPrev();
67
- const s = e?.slideNodes().filter((a) => a === document.activeElement)[0]?.previousElementSibling;
68
- s && s?.focus();
69
- } else if (r.key === "ArrowRight") {
70
- r.preventDefault(), e?.scrollNext();
71
- const s = e?.slideNodes().filter((a) => a === document.activeElement)[0]?.nextElementSibling;
72
- s && s?.focus();
62
+ }, [i, e]);
63
+ const R = p(
64
+ (s) => {
65
+ if (s.key === "ArrowLeft") {
66
+ s.preventDefault(), e?.scrollPrev();
67
+ const l = e?.slideNodes().filter((n) => n === document.activeElement)[0]?.previousElementSibling;
68
+ l && l?.focus();
69
+ } else if (s.key === "ArrowRight") {
70
+ s.preventDefault(), e?.scrollNext();
71
+ const l = e?.slideNodes().filter((n) => n === document.activeElement)[0]?.nextElementSibling;
72
+ l && l?.focus();
73
73
  }
74
74
  },
75
75
  [e]
76
- ), t = u(
77
- (r) => {
78
- if (!r) return;
79
- I(r?.canScrollPrev()), y(r?.canScrollNext());
80
- const s = r.slidesInView()?.[0];
81
- s !== void 0 && o?.(s);
76
+ ), a = p(
77
+ (s) => {
78
+ if (!s) return;
79
+ I(s?.canScrollPrev()), V(s?.canScrollNext());
80
+ const l = s.slidesInView()?.[0];
81
+ l !== void 0 && r?.(l);
82
82
  },
83
- [o]
83
+ [r]
84
84
  );
85
- return m(() => {
85
+ return d(() => {
86
86
  if (e)
87
- return e.on("slidesInView", t), () => {
88
- e.off("slidesInView", t);
87
+ return e.on("slidesInView", a), () => {
88
+ e.off("slidesInView", a);
89
89
  };
90
- }, [e, t]), /* @__PURE__ */ c(
91
- q.Provider,
90
+ }, [e, a]), /* @__PURE__ */ m(
91
+ z.Provider,
92
92
  {
93
93
  value: {
94
- carouselRef: V,
94
+ carouselRef: A,
95
95
  api: e,
96
96
  scrollPrev: () => e?.scrollPrev(),
97
97
  scrollNext: () => e?.scrollNext(),
98
- canScrollPrev: S,
99
- canScrollNext: E,
100
- columnGap: v,
101
- onSlideChange: o
98
+ canScrollPrev: E,
99
+ canScrollNext: y,
100
+ columnGap: b,
101
+ onSlideChange: r
102
102
  },
103
- children: /* @__PURE__ */ c(
104
- k,
103
+ children: /* @__PURE__ */ m(
104
+ t,
105
105
  {
106
- ref: g,
107
- onKeyDownCapture: A,
108
- className: j(P, x),
109
- role: "region",
110
- "aria-roledescription": "carousel",
111
- ...i,
112
- ...D,
113
- children: N
106
+ ref: P,
107
+ onKeyDownCapture: R,
108
+ className: j(D, N),
109
+ role: f ? void 0 : "region",
110
+ "aria-roledescription": f ? void 0 : "carousel",
111
+ ...c,
112
+ ...S,
113
+ children: C
114
114
  }
115
115
  )
116
116
  }
117
117
  );
118
118
  }
119
119
  );
120
- z.displayName = "Carousel";
120
+ F.displayName = "Carousel";
121
121
  export {
122
- q as CarouselContext,
123
- z as default
122
+ z as CarouselContext,
123
+ F as default
124
124
  };
@@ -1,46 +1,47 @@
1
- import { jsxs as b, jsx as r } from "react/jsx-runtime";
2
- import n from "../../_virtual/index.js";
3
- import { forwardRef as p, useCallback as l } from "react";
4
- import { getCommonProps as u } from "../../utils/index.js";
1
+ import { jsxs as h, jsx as r } from "react/jsx-runtime";
2
+ import l from "../../_virtual/index.js";
3
+ import { forwardRef as u, useCallback as t } from "react";
4
+ import { getCommonProps as p } from "../../utils/index.js";
5
5
  import { useCarousel as f } from "./utils.js";
6
6
  import a from "../Icon/Icon.js";
7
- const C = p(
8
- ({ className: c, areArrowsAlwaysVisible: i, ...t }, d) => {
9
- const { className: s, ...m } = u(t, "CarouselArrows"), { api: e } = f(), w = l(() => {
7
+ const x = u(
8
+ ({ className: c, areArrowsAlwaysVisible: o, ...n }, d) => {
9
+ const { className: s, ...m } = p(n, "CarouselArrows"), { api: e } = f(), b = t(() => {
10
10
  if (e)
11
11
  if (e?.slidesInView().length <= 1)
12
12
  e.scrollPrev(!0);
13
13
  else {
14
- const o = e?.slidesInView();
15
- e?.scrollTo(Math.max(0, o[0] - (o.length ?? 1)));
14
+ const i = e?.slidesInView();
15
+ e?.scrollTo(Math.max(0, i[0] - (i.length ?? 1)));
16
16
  }
17
- }, [e]), h = l(() => {
17
+ }, [e]), v = t(() => {
18
18
  if (e)
19
19
  if (e?.slidesInView().length <= 1)
20
20
  e?.scrollNext(!0);
21
21
  else {
22
- const v = (e?.slidesInView()).slice(-1)[0] + 1;
23
- e?.scrollTo(v);
22
+ const w = (e?.slidesInView()).slice(-1)[0] + 1;
23
+ e?.scrollTo(w);
24
24
  }
25
25
  }, [e]);
26
- return /* @__PURE__ */ b(
26
+ return /* @__PURE__ */ h(
27
27
  "div",
28
28
  {
29
29
  ref: d,
30
30
  "aria-roledescription": "carousel-arrow-navigation",
31
- className: n(`${s}`, c),
32
- ...t,
31
+ className: l(`${s}`, c),
32
+ ...n,
33
33
  ...m,
34
34
  children: [
35
35
  /* @__PURE__ */ r(
36
36
  "button",
37
37
  {
38
38
  "data-testid": "prev-arrow",
39
- className: n(`${s}-prev-btn`, {
40
- [`${s}-prev-btn--always-visible`]: i,
39
+ "aria-label": "Previous slide",
40
+ className: l(`${s}-prev-btn`, {
41
+ [`${s}-prev-btn--always-visible`]: o,
41
42
  [`${s}-prev-btn--disabled`]: !e?.canScrollPrev()
42
43
  }),
43
- onClick: w,
44
+ onClick: b,
44
45
  children: /* @__PURE__ */ r("div", { className: `${s}-prev-btn__icon`, children: /* @__PURE__ */ r(a, { icon: "ChevronLeft", height: "2rem" }) })
45
46
  }
46
47
  ),
@@ -48,11 +49,12 @@ const C = p(
48
49
  "button",
49
50
  {
50
51
  "data-testid": "next-arrow",
51
- className: n(`${s}-next-btn`, {
52
- [`${s}-next-btn--always-visible`]: i,
52
+ "aria-label": "Next slide",
53
+ className: l(`${s}-next-btn`, {
54
+ [`${s}-next-btn--always-visible`]: o,
53
55
  [`${s}-next-btn--disabled`]: !e?.canScrollNext()
54
56
  }),
55
- onClick: h,
57
+ onClick: v,
56
58
  children: /* @__PURE__ */ r("div", { className: `${s}-next-btn__icon`, children: /* @__PURE__ */ r(a, { icon: "ChevronRight", height: "2rem" }) })
57
59
  }
58
60
  )
@@ -61,7 +63,7 @@ const C = p(
61
63
  );
62
64
  }
63
65
  );
64
- C.displayName = "CarouselArrows";
66
+ x.displayName = "CarouselArrows";
65
67
  export {
66
- C as default
68
+ x as default
67
69
  };
@@ -21,7 +21,7 @@ const N = ({
21
21
  "button",
22
22
  {
23
23
  ref: p,
24
- role: "button",
24
+ type: "button",
25
25
  onClick: m,
26
26
  className: r(`${o}__container`),
27
27
  ...l,