@thewhatmatters/wmds 0.4.45 → 0.4.47

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 (183) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/components/atoms/Table/Table.d.ts +16 -2
  3. package/dist/components/atoms/Table/Table.d.ts.map +1 -1
  4. package/dist/components/atoms/Table/Table.js +10 -8
  5. package/dist/components/atoms/Table/tableStyles.d.ts +11 -0
  6. package/dist/components/atoms/Table/tableStyles.d.ts.map +1 -1
  7. package/dist/components/atoms/Table/tableStyles.js +2 -2
  8. package/dist/components/organisms/Carousel/Carousel.d.ts +3 -0
  9. package/dist/components/organisms/Carousel/Carousel.d.ts.map +1 -1
  10. package/dist/components/organisms/Carousel/Carousel.js +208 -198
  11. package/dist/components/organisms/Carousel/carouselStyles.d.ts +2 -0
  12. package/dist/components/organisms/Carousel/carouselStyles.d.ts.map +1 -1
  13. package/dist/components/organisms/Carousel/carouselStyles.js +3 -3
  14. package/dist/styles.css +1 -1
  15. package/docs/components.md +1 -1
  16. package/docs/exports.json +1 -1
  17. package/docs/patterns/components-accordion--flush.tsx +1 -1
  18. package/docs/patterns/components-appshell--portal-dashboard-pattern.tsx +1 -1
  19. package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
  20. package/docs/patterns/components-badge--outline-tags.tsx +1 -1
  21. package/docs/patterns/components-badge--status-pill.tsx +1 -1
  22. package/docs/patterns/components-badge--with-avatar.tsx +1 -1
  23. package/docs/patterns/components-band--page-in-bands.tsx +1 -1
  24. package/docs/patterns/components-breadcrumb--editorial.tsx +1 -1
  25. package/docs/patterns/components-breadcrumb--long-path.tsx +1 -1
  26. package/docs/patterns/components-breadcrumb--path.tsx +1 -1
  27. package/docs/patterns/components-breadcrumb--router-links.tsx +1 -1
  28. package/docs/patterns/components-button-button--copy-button.tsx +1 -1
  29. package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
  30. package/docs/patterns/components-button-button--external-link.tsx +1 -1
  31. package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
  32. package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
  33. package/docs/patterns/components-button-button--link-render.tsx +1 -1
  34. package/docs/patterns/components-button-button--multi-state-badge.tsx +1 -1
  35. package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
  36. package/docs/patterns/components-button-button--primary-action.tsx +1 -1
  37. package/docs/patterns/components-button-button--row-hug.tsx +1 -1
  38. package/docs/patterns/components-button-button--row-layout.tsx +1 -1
  39. package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
  40. package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
  41. package/docs/patterns/components-button-button--with-count.tsx +1 -1
  42. package/docs/patterns/components-button-button--with-icon.tsx +1 -1
  43. package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
  44. package/docs/patterns/components-calembed--pattern-skip-above.tsx +1 -1
  45. package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
  46. package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
  47. package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
  48. package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
  49. package/docs/patterns/components-card-card--terminal-frame.tsx +1 -1
  50. package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
  51. package/docs/patterns/components-carousel--image-carousel.tsx +1 -1
  52. package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
  53. package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
  54. package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
  55. package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
  56. package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
  57. package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
  58. package/docs/patterns/components-chart--revenue-by-line.tsx +1 -1
  59. package/docs/patterns/components-chart--segmented-ring-pattern.tsx +1 -1
  60. package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
  61. package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +1 -1
  62. package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +1 -1
  63. package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
  64. package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
  65. package/docs/patterns/components-checkbox-checkbox--with-count.tsx +1 -1
  66. package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
  67. package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
  68. package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +1 -1
  69. package/docs/patterns/components-copyfield--clipboard-blocked.tsx +1 -1
  70. package/docs/patterns/components-copyfield--copied.tsx +1 -1
  71. package/docs/patterns/components-copyfield--copy-key.tsx +1 -1
  72. package/docs/patterns/components-copyfield--on-navy.tsx +1 -1
  73. package/docs/patterns/components-descriptionlist--details.tsx +1 -1
  74. package/docs/patterns/components-descriptionlist--post-metadata.tsx +1 -1
  75. package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
  76. package/docs/patterns/components-dialog--alert-dialog-typed-confirmation.tsx +1 -1
  77. package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
  78. package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
  79. package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
  80. package/docs/patterns/components-displaycontrols--theme-switch.tsx +1 -1
  81. package/docs/patterns/components-errorsummary--contact-form.tsx +1 -1
  82. package/docs/patterns/components-field--horizontal-input.tsx +1 -1
  83. package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
  84. package/docs/patterns/components-field--multi-control.tsx +1 -1
  85. package/docs/patterns/components-filterpanel--panel.tsx +1 -1
  86. package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +1 -1
  87. package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
  88. package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +1 -1
  89. package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
  90. package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
  91. package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
  92. package/docs/patterns/components-herointro--two-line-intro.tsx +1 -1
  93. package/docs/patterns/components-herointro--with-actions.tsx +1 -1
  94. package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +1 -1
  95. package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
  96. package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +1 -1
  97. package/docs/patterns/components-indexlist--post-index.tsx +1 -1
  98. package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
  99. package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
  100. package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
  101. package/docs/patterns/components-intakeform--short-form-pattern.tsx +1 -1
  102. package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
  103. package/docs/patterns/components-kbd--command-row.tsx +1 -1
  104. package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
  105. package/docs/patterns/components-kbd--shortcut.tsx +1 -1
  106. package/docs/patterns/components-linktile--resource-tile.tsx +1 -1
  107. package/docs/patterns/components-linktile--router-link.tsx +1 -1
  108. package/docs/patterns/components-logview--detail-pane.tsx +1 -1
  109. package/docs/patterns/components-logview--log-viewer.tsx +1 -1
  110. package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
  111. package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
  112. package/docs/patterns/components-navlist--app-sidebar.tsx +1 -1
  113. package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
  114. package/docs/patterns/components-notice--account-not-connected.tsx +1 -1
  115. package/docs/patterns/components-notice--holiday-closure.tsx +1 -1
  116. package/docs/patterns/components-notice--private-buyout.tsx +1 -1
  117. package/docs/patterns/components-notice--sync-failed.tsx +1 -1
  118. package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
  119. package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
  120. package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
  121. package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
  122. package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
  123. package/docs/patterns/components-progress--upload-pattern.tsx +1 -1
  124. package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
  125. package/docs/patterns/components-prose--article-body.tsx +1 -1
  126. package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
  127. package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
  128. package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
  129. package/docs/patterns/components-sectioncaption--column-caption.tsx +1 -1
  130. package/docs/patterns/components-sectioncaption--with-action.tsx +1 -1
  131. package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
  132. package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
  133. package/docs/patterns/components-sheet--side-sheet-header-actions.tsx +1 -1
  134. package/docs/patterns/components-sheet--side-sheet-url-deep-link.tsx +1 -1
  135. package/docs/patterns/components-sheet--side-sheet.tsx +1 -1
  136. package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
  137. package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
  138. package/docs/patterns/components-sitenav--compact.tsx +1 -1
  139. package/docs/patterns/components-sitenav--marketing-header.tsx +1 -1
  140. package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
  141. package/docs/patterns/components-stat--hero-stat.tsx +1 -1
  142. package/docs/patterns/components-stat--insights-row.tsx +1 -1
  143. package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
  144. package/docs/patterns/components-switch--default.tsx +1 -1
  145. package/docs/patterns/components-switch--settings-row.tsx +1 -1
  146. package/docs/patterns/components-tab--settings-pages.tsx +1 -1
  147. package/docs/patterns/components-table--approvals-with-sheet.tsx +1 -1
  148. package/docs/patterns/components-table--approvals.tsx +1 -1
  149. package/docs/patterns/components-table--basic.tsx +1 -1
  150. package/docs/patterns/components-taskrows--action-details.tsx +1 -1
  151. package/docs/patterns/components-taskrows--capsules.tsx +1 -1
  152. package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
  153. package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
  154. package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
  155. package/docs/patterns/components-taskrows--needs-you-table.tsx +1 -1
  156. package/docs/patterns/components-taskrows--status-list.tsx +1 -1
  157. package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
  158. package/docs/patterns/components-textarea--save-status.tsx +1 -1
  159. package/docs/patterns/components-textlink--external-destination.tsx +1 -1
  160. package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
  161. package/docs/patterns/components-textlink--quiet-title.tsx +1 -1
  162. package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
  163. package/docs/patterns/components-textsequence--default.tsx +1 -1
  164. package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
  165. package/docs/patterns/components-textsequence--shapes.tsx +1 -1
  166. package/docs/patterns/components-tilegrid--masonry.tsx +1 -1
  167. package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
  168. package/docs/patterns/components-tooltip--controlled.tsx +1 -1
  169. package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
  170. package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
  171. package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
  172. package/docs/patterns/components-tooltip--placement.tsx +1 -1
  173. package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
  174. package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
  175. package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
  176. package/docs/patterns/guides-filter-panel--filtered-grid.tsx +1 -1
  177. package/docs/patterns/guides-filter-panel--filtered-index.tsx +1 -1
  178. package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
  179. package/docs/patterns/guides-post-page--post-page.tsx +1 -1
  180. package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
  181. package/docs/patterns/guides-resource-detail--detail.tsx +1 -1
  182. package/docs/patterns/index.json +1 -1
  183. package/package.json +1 -1
@@ -3,29 +3,29 @@ import { cn as e } from "../../../lib/cn.js";
3
3
  import { motionTransitionProp as t } from "../../../lib/motion.js";
4
4
  import { IconButton as n } from "../../atoms/IconButton/IconButton.js";
5
5
  import { carouselActiveIndex as r, carouselClamp as i, carouselMaxScroll as a, carouselNearestSnap as o, carouselOverflows as s, carouselOverscrollOffset as c, carouselProgress as l, carouselProgressAtPointer as u, carouselSnapPoints as ee, carouselStep as d, carouselThumbShare as te } from "./carouselMath.js";
6
- import { carouselBreakpoints as f, carouselControlsClasses as ne, carouselCounterClasses as p, carouselCursorClasses as m, carouselDefaultItemWidth as re, carouselExtentClasses as ie, carouselFrameClasses as ae, carouselItemClasses as oe, carouselProgressClasses as se, carouselProgressInControlsClasses as ce, carouselProgressPlacementClasses as le, carouselProgressPlacements as ue, carouselProgressThumbClasses as de, carouselProgressTrackClasses as fe, carouselRootClasses as pe, carouselTrackClasses as me, carouselViewportClasses as he } from "./carouselStyles.js";
7
- import { Children as ge, createContext as h, isValidElement as _e, useCallback as g, useContext as ve, useEffect as _, useLayoutEffect as ye, useMemo as be, useRef as v, useState as xe } from "react";
8
- import { Pause as Se, Play as Ce } from "lucide-react";
9
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
10
- import { animate as we, motion as Te, useMotionValue as x, useMotionValueEvent as Ee, useReducedMotionConfig as De, useSpring as Oe, useTransform as ke } from "motion/react";
6
+ import { carouselBreakpoints as f, carouselControlsClasses as ne, carouselCounterClasses as re, carouselCursorClasses as ie, carouselDefaultItemWidth as ae, carouselDriftControlOnFocusClasses as oe, carouselExtentClasses as se, carouselFrameClasses as ce, carouselItemClasses as le, carouselProgressClasses as ue, carouselProgressInControlsClasses as de, carouselProgressPlacementClasses as fe, carouselProgressPlacements as pe, carouselProgressThumbClasses as me, carouselProgressTrackClasses as he, carouselRootClasses as ge, carouselTrackClasses as _e, carouselViewportClasses as ve } from "./carouselStyles.js";
7
+ import { Children as ye, createContext as p, isValidElement as be, useCallback as m, useContext as xe, useEffect as h, useLayoutEffect as Se, useMemo as Ce, useRef as g, useState as _ } from "react";
8
+ import { Pause as we, Play as Te } from "lucide-react";
9
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
10
+ import { animate as Ee, motion as De, useMotionValue as b, useMotionValueEvent as Oe, useReducedMotionConfig as ke, useSpring as Ae, useTransform as je } from "motion/react";
11
11
  //#region src/components/organisms/Carousel/Carousel.tsx
12
- var S = h(null), Ae = {
12
+ var x = p(null), Me = {
13
13
  item: (e, t) => `${e} of ${t}`,
14
14
  counter: (e, t) => `${e} of ${t}`
15
- }, je = 120, Me = 10;
16
- function Ne(e, t) {
15
+ }, Ne = 120, Pe = 10;
16
+ function Fe(e, t) {
17
17
  try {
18
18
  e.setPointerCapture(t);
19
19
  } catch {}
20
20
  }
21
- function Pe(e) {
21
+ function Ie(e) {
22
22
  if (typeof e == "number") return {
23
23
  base: e,
24
24
  sm: e,
25
25
  md: e,
26
26
  lg: e
27
27
  };
28
- let t = e.base ?? re.base, n = e.sm ?? t, r = e.md ?? n;
28
+ let t = e.base ?? ae.base, n = e.sm ?? t, r = e.md ?? n;
29
29
  return {
30
30
  base: t,
31
31
  sm: n,
@@ -33,46 +33,46 @@ function Pe(e) {
33
33
  lg: e.lg ?? r
34
34
  };
35
35
  }
36
- function Fe(e, t, n) {
36
+ function Le(e, t, n) {
37
37
  n ? e.style.removeProperty(t) : e.style.setProperty(t, "0px");
38
38
  }
39
- function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap: h = !0, bleed: ve = !1, fade: be = !0, progress: S = "center", counter: Ie = !1, onIndexChange: ze, activeIndex: C, labels: Be, autoplay: Ve = !1, loop: w = !1, cursor: T, children: He, className: Ue }) {
40
- let E = De() ?? !1, D = v(null), O = v(null), k = v(null), A = v(null), We = v(null), j = v({
39
+ function Re({ "aria-label": f, "aria-labelledby": le, itemWidth: pe = ae, snap: p = !0, bleed: xe = !1, fade: Ce = !0, progress: x = "center", counter: Re = !1, onIndexChange: Ve, activeIndex: S, labels: He, autoplay: C = !1, loop: w = !1, cursor: T, children: Ue, className: We }) {
40
+ let E = ke() ?? !1, D = g(null), O = g(null), Ge = g(null), k = g(null), Ke = g(null), A = g({
41
41
  max: 0,
42
42
  points: [0],
43
43
  offsets: [],
44
44
  direction: 1,
45
45
  loopWidth: 0
46
- }), M = v(null), N = v(null), P = v(null), F = v(null), I = v(!1), [L, Ge] = xe(null), [Ke, qe] = xe(0), Je = v(void 0), Ye = v(0), Xe = v(void 0), Ze = v(0), Qe = v(ze), $e = v(() => {}), R = Ve === !1 ? 0 : typeof Ve == "object" ? Ve.speed ?? Le : Le, [et, tt] = xe(!1), z = v({
46
+ }), j = g(null), M = g(null), N = g(null), P = g(null), F = g(!1), [I, qe] = _(null), [Je, Ye] = _(0), Xe = g(void 0), Ze = g(0), Qe = g(void 0), $e = g(0), et = g(Ve), tt = g(() => {}), L = C === !1 ? 0 : typeof C == "object" ? C.speed ?? ze : ze, [R, nt] = _(!1), rt = typeof C == "object" && C.pause === "on-focus", z = g({
47
47
  hover: !1,
48
48
  focus: !1,
49
49
  offscreen: !1
50
- }), B = v(null), nt = v({
50
+ }), B = g(null), it = g({
51
51
  position: 0,
52
52
  time: 0,
53
53
  reset: void 0
54
- }), rt = x(0), it = Oe(rt, {
54
+ }), at = b(0), ot = Ae(at, {
55
55
  stiffness: 170,
56
56
  damping: 26,
57
57
  mass: 1
58
58
  });
59
- Ee(it, "change", (e) => {
59
+ Oe(ot, "change", (e) => {
60
60
  D.current?.style.setProperty("--carousel-velocity", (Math.abs(e) < .001 ? 0 : e).toFixed(3));
61
61
  });
62
- let V = x(0), H = x(0), at = ke(H, (e) => -j.current.direction * c(e)), U = g(() => Math.abs(O.current?.scrollLeft ?? 0), []), W = g(() => {
62
+ let V = b(0), H = b(0), st = je(H, (e) => -A.current.direction * c(e)), U = m(() => Math.abs(O.current?.scrollLeft ?? 0), []), W = m(() => {
63
63
  let e = D.current, t = O.current;
64
64
  if (!e || !t) return;
65
- let { max: n } = j.current, i = Math.abs(t.scrollLeft);
66
- e.style.setProperty("--carousel-progress", String(l(i, n))), Fe(t, "--scroll-fade-s", i > 1), Fe(t, "--scroll-fade-e", i < n - 1), window.clearTimeout(Je.current), Je.current = window.setTimeout(() => {
67
- let e = r(j.current.offsets, Math.abs(t.scrollLeft), j.current.max);
68
- qe(e), e !== Ye.current && (Ye.current = e, Qe.current?.(e, Ze.current));
69
- }, je);
70
- }, []), G = g((e) => {
65
+ let { max: n } = A.current, i = Math.abs(t.scrollLeft);
66
+ e.style.setProperty("--carousel-progress", String(l(i, n))), Le(t, "--scroll-fade-s", i > 1), Le(t, "--scroll-fade-e", i < n - 1), window.clearTimeout(Xe.current), Xe.current = window.setTimeout(() => {
67
+ let e = r(A.current.offsets, Math.abs(t.scrollLeft), A.current.max);
68
+ Ye(e), e !== Ze.current && (Ze.current = e, et.current?.(e, $e.current));
69
+ }, Ne);
70
+ }, []), G = m((e) => {
71
71
  let t = O.current;
72
- t && (t.scrollLeft = j.current.direction * e, W());
72
+ t && (t.scrollLeft = A.current.direction * e, W());
73
73
  }, [W]);
74
- Ee(V, "change", (e) => {
75
- let t = i(e, 0, j.current.max);
74
+ Oe(V, "change", (e) => {
75
+ let t = i(e, 0, A.current.max);
76
76
  G(t), H.set(E ? 0 : e - t);
77
77
  });
78
78
  function K(e) {
@@ -80,52 +80,52 @@ function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap:
80
80
  t && (e ? t.dataset.moving = "" : delete t.dataset.moving);
81
81
  }
82
82
  function q() {
83
- M.current?.stop(), M.current = null, N.current = null;
83
+ j.current?.stop(), j.current = null, M.current = null;
84
84
  }
85
- function ot() {
86
- M.current = null, N.current = null, K(!1);
85
+ function ct() {
86
+ j.current = null, M.current = null, K(!1);
87
87
  }
88
- function st() {
89
- M.current != null && (q(), V.jump(U()), K(!1));
88
+ function lt() {
89
+ j.current != null && (q(), V.jump(U()), K(!1));
90
90
  }
91
91
  function J(e, n = !0) {
92
- let r = i(e, 0, j.current.max);
92
+ let r = i(e, 0, A.current.max);
93
93
  if (q(), V.jump(U()), E || !n) {
94
94
  K(!1), V.jump(r);
95
95
  return;
96
96
  }
97
- N.current = r, K(!0), M.current = we(V, r, {
97
+ M.current = r, K(!0), j.current = Ee(V, r, {
98
98
  ...t("medium"),
99
- onComplete: ot
99
+ onComplete: ct
100
100
  });
101
101
  }
102
- _(() => {
103
- Qe.current = ze, $e.current = J;
102
+ h(() => {
103
+ et.current = Ve, tt.current = J;
104
104
  });
105
- function ct(e) {
106
- let { max: t, points: n } = j.current, r = (e) => o(n, i(e, 0, t));
105
+ function ut(e) {
106
+ let { max: t, points: n } = A.current, r = (e) => o(n, i(e, 0, t));
107
107
  if (q(), E) {
108
- J(h ? r(V.get()) : V.get(), !1);
108
+ J(p ? r(V.get()) : V.get(), !1);
109
109
  return;
110
110
  }
111
- let a = V.get(), s = h ? r(a) : i(a, 0, t);
111
+ let a = V.get(), s = p ? r(a) : i(a, 0, t);
112
112
  if (e === 0 && s === a) {
113
- ot();
113
+ ct();
114
114
  return;
115
115
  }
116
- K(!0), M.current = we(V, s === a ? a + Math.sign(e) : s, {
116
+ K(!0), j.current = Ee(V, s === a ? a + Math.sign(e) : s, {
117
117
  type: "inertia",
118
118
  velocity: e,
119
119
  min: 0,
120
120
  max: t,
121
- modifyTarget: h ? r : void 0,
122
- onComplete: ot
121
+ modifyTarget: p ? r : void 0,
122
+ onComplete: ct
123
123
  });
124
124
  }
125
- let Y = g(() => {
126
- let e = D.current, t = O.current, n = k.current;
125
+ let Y = m(() => {
126
+ let e = D.current, t = O.current, n = Ge.current;
127
127
  if (!e || !t || !n || H.get() !== 0) return;
128
- if (ve) {
128
+ if (xe) {
129
129
  let t = e.getBoundingClientRect(), n = Math.max(0, Math.floor(t.left)), r = Math.max(0, Math.floor(document.documentElement.clientWidth - t.right));
130
130
  e.style.setProperty("--carousel-bleed-left", `${n}px`), e.style.setProperty("--carousel-bleed-right", `${r}px`);
131
131
  } else e.style.removeProperty("--carousel-bleed-left"), e.style.removeProperty("--carousel-bleed-right");
@@ -133,41 +133,41 @@ function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap:
133
133
  let t = e.getBoundingClientRect();
134
134
  return r === 1 ? t.left - d.left : d.right - t.right;
135
135
  }), ne = u == null || d == null ? 0 : r === 1 ? u.getBoundingClientRect().left - d.left : d.right - u.getBoundingClientRect().right;
136
- j.current = {
136
+ A.current = {
137
137
  max: c,
138
138
  direction: r,
139
139
  points: ee(f, c),
140
140
  offsets: f,
141
141
  loopWidth: ne
142
142
  };
143
- let p = A.current;
144
- p && e.style.setProperty("--carousel-thumb", String(te(i, o, p.clientWidth))), W();
145
- let m = s(i, o);
146
- Ge((e) => e === m ? e : m);
143
+ let re = k.current;
144
+ re && e.style.setProperty("--carousel-thumb", String(te(i, o, re.clientWidth))), W();
145
+ let ie = s(i, o);
146
+ qe((e) => e === ie ? e : ie);
147
147
  }, [
148
- ve,
148
+ xe,
149
149
  H,
150
150
  W
151
151
  ]);
152
- ye(() => {
152
+ Se(() => {
153
153
  if (Y(), window.addEventListener("resize", Y), typeof ResizeObserver > "u") return () => window.removeEventListener("resize", Y);
154
154
  let e = new ResizeObserver(Y);
155
155
  for (let t of [
156
156
  D.current,
157
157
  O.current,
158
- k.current,
159
- A.current
158
+ Ge.current,
159
+ k.current
160
160
  ]) t && e.observe(t);
161
161
  return () => {
162
162
  e.disconnect(), window.removeEventListener("resize", Y);
163
163
  };
164
- }, [Y, S]), _(() => () => {
165
- M.current?.stop(), window.clearTimeout(Je.current);
164
+ }, [Y, x]), h(() => () => {
165
+ j.current?.stop(), window.clearTimeout(Xe.current);
166
166
  }, []);
167
- let lt = R > 0 && !E && !et && L === !0;
168
- _(() => {
167
+ let dt = L > 0 && !E && !R && I === !0;
168
+ h(() => {
169
169
  let e = D.current, t = O.current;
170
- if (!lt || !e || !t) return;
170
+ if (!dt || !e || !t) return;
171
171
  let n = 0, r = performance.now(), i = 1, a = U(), o = typeof IntersectionObserver > "u" ? null : new IntersectionObserver(([e]) => {
172
172
  z.current.offscreen = !(e?.isIntersecting ?? !0);
173
173
  });
@@ -176,11 +176,11 @@ function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap:
176
176
  let t = Math.min(.05, (e - r) / 1e3);
177
177
  r = e;
178
178
  let { hover: o, focus: c, offscreen: l } = z.current;
179
- if (o || c || l || document.hidden || P.current != null || F.current != null || M.current != null) a = U();
179
+ if (o || c || l || document.hidden || N.current != null || P.current != null || j.current != null) a = U();
180
180
  else {
181
- let { max: e } = j.current;
182
- Math.abs(U() - a) > 2 && (a = U()), a += i * R * t;
183
- let { loopWidth: n } = j.current;
181
+ let { max: e } = A.current;
182
+ Math.abs(U() - a) > 2 && (a = U()), a += i * L * t;
183
+ let { loopWidth: n } = A.current;
184
184
  w && n > 0 ? a >= n && (a -= n) : a >= e ? (a = e, i = -1) : a <= 0 && (a = 0, i = 1), K(!0), G(a);
185
185
  }
186
186
  n = requestAnimationFrame(s);
@@ -189,21 +189,21 @@ function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap:
189
189
  cancelAnimationFrame(n), o?.disconnect(), K(!1);
190
190
  };
191
191
  }, [
192
- lt,
193
- R,
192
+ dt,
193
+ L,
194
194
  w,
195
195
  U,
196
196
  G
197
197
  ]);
198
- function ut() {
198
+ function ft() {
199
199
  if (!D.current || E) return;
200
- let e = performance.now(), t = U(), n = nt.current, r = e - n.time;
201
- r > 0 && r < 200 && Math.abs(t - n.position) < 400 && rt.set(i((t - n.position) / r / 1.5, -1, 1)), n.position = t, n.time = e, window.clearTimeout(n.reset), n.reset = window.setTimeout(() => rt.set(0), 120);
200
+ let e = performance.now(), t = U(), n = it.current, r = e - n.time;
201
+ r > 0 && r < 200 && Math.abs(t - n.position) < 400 && at.set(i((t - n.position) / r / 1.5, -1, 1)), n.position = t, n.time = e, window.clearTimeout(n.reset), n.reset = window.setTimeout(() => at.set(0), 120);
202
202
  }
203
- function dt() {
204
- ut();
205
- let { loopWidth: e } = j.current;
206
- if (w && e > 0 && P.current == null && F.current == null && M.current == null) {
203
+ function pt() {
204
+ ft();
205
+ let { loopWidth: e } = A.current;
206
+ if (w && e > 0 && N.current == null && P.current == null && j.current == null) {
207
207
  let t = U();
208
208
  if (t >= e) {
209
209
  G(t - e);
@@ -212,47 +212,47 @@ function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap:
212
212
  }
213
213
  W();
214
214
  }
215
- function ft(e) {
215
+ function mt(e) {
216
216
  e.pointerType === "mouse" && (z.current.hover = !0);
217
217
  }
218
- function pt() {
218
+ function ht() {
219
219
  z.current.hover = !1;
220
220
  let e = B.current;
221
221
  e && delete e.dataset.shown;
222
222
  }
223
- function mt() {
223
+ function gt() {
224
224
  z.current.focus = !0;
225
225
  }
226
- function ht(e) {
226
+ function _t(e) {
227
227
  e.currentTarget.contains(e.relatedTarget) || (z.current.focus = !1);
228
228
  }
229
- function gt(e) {
229
+ function vt(e) {
230
230
  let t = B.current, n = D.current;
231
231
  if (!t || !n || e.pointerType !== "mouse" || !window.matchMedia("(hover: hover) and (pointer: fine)").matches) return;
232
232
  let r = n.getBoundingClientRect();
233
- t.style.transform = `translate3d(${e.clientX - r.left}px, ${e.clientY - r.top}px, 0) translate(-50%, -50%)`, t.dataset.shown = "", P.current?.active ? t.dataset.dragging = "" : delete t.dataset.dragging;
233
+ t.style.transform = `translate3d(${e.clientX - r.left}px, ${e.clientY - r.top}px, 0) translate(-50%, -50%)`, t.dataset.shown = "", N.current?.active ? t.dataset.dragging = "" : delete t.dataset.dragging;
234
234
  }
235
- function _t() {
235
+ function yt() {
236
236
  let e = B.current;
237
237
  e && delete e.dataset.shown;
238
238
  }
239
- _(() => {
240
- if (C == null || L == null || C === Xe.current) return;
241
- let { offsets: e, max: t } = j.current;
239
+ h(() => {
240
+ if (S == null || I == null || S === Qe.current) return;
241
+ let { offsets: e, max: t } = A.current;
242
242
  if (e.length === 0) return;
243
- let n = Xe.current === void 0;
244
- Xe.current = C;
245
- let r = e[i(Math.round(C), 0, e.length - 1)];
246
- $e.current(h ? o(j.current.points, r) : i(r, 0, t), !n);
243
+ let n = Qe.current === void 0;
244
+ Qe.current = S;
245
+ let r = e[i(Math.round(S), 0, e.length - 1)];
246
+ tt.current(p ? o(A.current.points, r) : i(r, 0, t), !n);
247
247
  }, [
248
- C,
249
- L,
250
- h
248
+ S,
249
+ I,
250
+ p
251
251
  ]);
252
- function vt(e) {
253
- if (e.pointerType !== "mouse" || e.button !== 0 || j.current.max <= 0) return;
254
- let t = M.current != null;
255
- q(), V.jump(U()), P.current = {
252
+ function bt(e) {
253
+ if (e.pointerType !== "mouse" || e.button !== 0 || A.current.max <= 0) return;
254
+ let t = j.current != null;
255
+ q(), V.jump(U()), N.current = {
256
256
  pointerId: e.pointerId,
257
257
  startX: e.clientX,
258
258
  startPosition: U(),
@@ -260,38 +260,38 @@ function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap:
260
260
  interrupted: t
261
261
  };
262
262
  }
263
- function yt(e) {
264
- let t = P.current;
263
+ function xt(e) {
264
+ let t = N.current;
265
265
  if (!(!t || t.pointerId !== e.pointerId)) {
266
266
  if (e.buttons === 0) {
267
- bt(e);
267
+ St(e);
268
268
  return;
269
269
  }
270
270
  if (!t.active) {
271
271
  if (Math.abs(e.clientX - t.startX) < 4) return;
272
- t.active = !0, t.startX = e.clientX, Ne(e.currentTarget, e.pointerId), e.currentTarget.dataset.dragging = "", window.getSelection()?.removeAllRanges(), K(!0);
272
+ t.active = !0, t.startX = e.clientX, Fe(e.currentTarget, e.pointerId), e.currentTarget.dataset.dragging = "", window.getSelection()?.removeAllRanges(), K(!0);
273
273
  }
274
- V.set(t.startPosition - j.current.direction * (e.clientX - t.startX));
274
+ V.set(t.startPosition - A.current.direction * (e.clientX - t.startX));
275
275
  }
276
276
  }
277
- function bt(e) {
278
- let t = P.current;
277
+ function St(e) {
278
+ let t = N.current;
279
279
  if (!t || t.pointerId !== e.pointerId) return;
280
- if (P.current = null, !t.active) {
281
- t.interrupted && ct(0);
280
+ if (N.current = null, !t.active) {
281
+ t.interrupted && ut(0);
282
282
  return;
283
283
  }
284
284
  let n = e.currentTarget;
285
- n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), delete n.dataset.dragging, I.current = !0, window.setTimeout(() => {
286
- I.current = !1;
287
- }, 0), ct(e.type === "pointercancel" ? 0 : V.getVelocity());
285
+ n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), delete n.dataset.dragging, F.current = !0, window.setTimeout(() => {
286
+ F.current = !1;
287
+ }, 0), ut(e.type === "pointercancel" ? 0 : V.getVelocity());
288
288
  }
289
- function xt(e) {
290
- I.current && (I.current = !1, e.preventDefault(), e.stopPropagation());
289
+ function Ct(e) {
290
+ F.current && (F.current = !1, e.preventDefault(), e.stopPropagation());
291
291
  }
292
- function St(e) {
292
+ function wt(e) {
293
293
  if (e.target !== e.currentTarget || e.altKey || e.ctrlKey || e.metaKey) return;
294
- let { max: t, points: n, direction: r } = j.current, i = N.current ?? U(), a;
294
+ let { max: t, points: n, direction: r } = A.current, i = M.current ?? U(), a;
295
295
  switch (e.key) {
296
296
  case "ArrowRight":
297
297
  a = d(n, i, r);
@@ -309,13 +309,13 @@ function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap:
309
309
  }
310
310
  e.preventDefault(), J(a);
311
311
  }
312
- function Ct(e) {
313
- let t = A.current, n = We.current, { max: r, points: i, direction: a } = j.current;
312
+ function Tt(e) {
313
+ let t = k.current, n = Ke.current, { max: r, points: i, direction: a } = A.current;
314
314
  if (!t || !n || r <= 0 || e.button !== 0) return;
315
315
  e.preventDefault();
316
316
  let s = t.getBoundingClientRect(), c = n.getBoundingClientRect();
317
- if (e.clientX >= c.left - Me && e.clientX <= c.right + Me) {
318
- q(), V.jump(U()), K(!0), Ne(e.currentTarget, e.pointerId), e.currentTarget.dataset.scrubbing = "", F.current = {
317
+ if (e.clientX >= c.left - Pe && e.clientX <= c.right + Pe) {
318
+ q(), V.jump(U()), K(!0), Fe(e.currentTarget, e.pointerId), e.currentTarget.dataset.scrubbing = "", P.current = {
319
319
  pointerId: e.pointerId,
320
320
  startX: e.clientX,
321
321
  startProgress: l(U(), r),
@@ -324,76 +324,76 @@ function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap:
324
324
  return;
325
325
  }
326
326
  let ee = a === 1 ? e.clientX - s.left : s.right - e.clientX, d = u(ee, s.width, c.width) * r;
327
- J(h ? o(i, d) : d);
327
+ J(p ? o(i, d) : d);
328
328
  }
329
- function wt(e) {
330
- let t = F.current;
329
+ function Et(e) {
330
+ let t = P.current;
331
331
  if (!t || t.pointerId !== e.pointerId || t.travel <= 0) return;
332
- let { max: n, direction: r } = j.current, a = r * (e.clientX - t.startX) / t.travel;
332
+ let { max: n, direction: r } = A.current, a = r * (e.clientX - t.startX) / t.travel;
333
333
  V.set(i(t.startProgress + a, 0, 1) * n);
334
334
  }
335
- function Tt(e) {
336
- let t = F.current;
335
+ function Dt(e) {
336
+ let t = P.current;
337
337
  if (!t || t.pointerId !== e.pointerId) return;
338
- F.current = null;
338
+ P.current = null;
339
339
  let n = e.currentTarget;
340
- n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), delete n.dataset.scrubbing, h ? J(o(j.current.points, U())) : K(!1);
340
+ n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), delete n.dataset.scrubbing, p ? J(o(A.current.points, U())) : K(!1);
341
341
  }
342
- let X = Pe(ue), Et = {
342
+ let X = Ie(pe), Ot = {
343
343
  "--carousel-item": String(X.base),
344
344
  "--carousel-item-sm": String(X.sm),
345
345
  "--carousel-item-md": String(X.md),
346
346
  "--carousel-item-lg": String(X.lg)
347
- }, Dt = Be?.item ?? Ae.item, Z = ge.toArray(He);
348
- Ze.current = Z.length;
349
- let Ot = (Be?.counter ?? Ae.counter)(Math.min(Ke, Math.max(Z.length - 1, 0)) + 1, Z.length), kt = L == null ? void 0 : String(L), Q = R > 0 && !E && L === !0, $ = w ? "none" : S, At = Ie && !w;
350
- return /* @__PURE__ */ b("div", {
347
+ }, kt = He?.item ?? Me.item, Z = ye.toArray(Ue);
348
+ $e.current = Z.length;
349
+ let At = (He?.counter ?? Me.counter)(Math.min(Je, Math.max(Z.length - 1, 0)) + 1, Z.length), jt = I == null ? void 0 : String(I), Q = L > 0 && !E && I === !0, $ = w ? "none" : x, Mt = Re && !w;
350
+ return /* @__PURE__ */ y("div", {
351
351
  ref: D,
352
- className: e(pe, T != null && "relative", Ue),
353
- style: Et,
352
+ className: e(ge, T != null && "relative", We),
353
+ style: Ot,
354
354
  "data-carousel": "",
355
- "data-autoplay": R > 0 ? "" : void 0,
356
- onPointerEnter: ft,
357
- onPointerLeave: pt,
358
- onFocus: mt,
359
- onBlur: ht,
355
+ "data-autoplay": L > 0 ? "" : void 0,
356
+ onPointerEnter: mt,
357
+ onPointerLeave: ht,
358
+ onFocus: gt,
359
+ onBlur: _t,
360
360
  children: [
361
- /* @__PURE__ */ y("div", {
362
- className: ae,
363
- children: /* @__PURE__ */ y("div", {
361
+ /* @__PURE__ */ v("div", {
362
+ className: ce,
363
+ children: /* @__PURE__ */ v("div", {
364
364
  ref: O,
365
365
  role: "region",
366
366
  "aria-label": f,
367
- "aria-labelledby": oe,
368
- tabIndex: L === !1 ? void 0 : 0,
367
+ "aria-labelledby": le,
368
+ tabIndex: I === !1 ? void 0 : 0,
369
369
  "data-carousel-viewport": "",
370
- "data-overflowing": kt,
371
- className: e(he, h && "snap-x snap-mandatory data-[moving]:snap-none", be && "scroll-fade-x"),
370
+ "data-overflowing": jt,
371
+ className: e(ve, p && "snap-x snap-mandatory data-[moving]:snap-none", Ce && "scroll-fade-x"),
372
372
  style: { "--scroll-fade-s": "0px" },
373
- onScroll: dt,
374
- onKeyDown: St,
375
- onPointerDown: vt,
373
+ onScroll: pt,
374
+ onKeyDown: wt,
375
+ onPointerDown: bt,
376
376
  onPointerMove: (e) => {
377
- yt(e), T != null && gt(e);
377
+ xt(e), T != null && vt(e);
378
378
  },
379
- onPointerLeave: T == null ? void 0 : _t,
380
- onPointerUp: bt,
381
- onPointerCancel: bt,
382
- onClickCapture: xt,
379
+ onPointerLeave: T == null ? void 0 : yt,
380
+ onPointerUp: St,
381
+ onPointerCancel: St,
382
+ onClickCapture: Ct,
383
383
  onDragStart: (e) => e.preventDefault(),
384
- onWheel: st,
385
- onTouchStart: st,
386
- children: /* @__PURE__ */ y("div", {
387
- className: ie,
388
- children: /* @__PURE__ */ b(Te.div, {
389
- ref: k,
390
- className: me,
391
- style: { x: at },
392
- children: [Z.map((e, t) => /* @__PURE__ */ y(Re, {
393
- label: Dt(t + 1, Z.length),
384
+ onWheel: lt,
385
+ onTouchStart: lt,
386
+ children: /* @__PURE__ */ v("div", {
387
+ className: se,
388
+ children: /* @__PURE__ */ y(De.div, {
389
+ ref: Ge,
390
+ className: _e,
391
+ style: { x: st },
392
+ children: [Z.map((e, t) => /* @__PURE__ */ v(Be, {
393
+ label: kt(t + 1, Z.length),
394
394
  children: e
395
- }, _e(e) && e.key != null ? e.key : t)), w ? Z.map((e, t) => /* @__PURE__ */ y(Re, {
396
- label: Dt(t + 1, Z.length),
395
+ }, be(e) && e.key != null ? e.key : t)), w ? Z.map((e, t) => /* @__PURE__ */ v(Be, {
396
+ label: kt(t + 1, Z.length),
397
397
  clone: !0,
398
398
  children: e
399
399
  }, `loop-${t}`)) : null]
@@ -401,77 +401,87 @@ function Ie({ "aria-label": f, "aria-labelledby": oe, itemWidth: ue = re, snap:
401
401
  })
402
402
  })
403
403
  }),
404
- $ !== "none" || Q ? /* @__PURE__ */ b("div", {
405
- className: Q ? ne[$] : "contents",
406
- children: [$ === "none" ? null : /* @__PURE__ */ y("div", {
404
+ $ !== "none" || Q ? /* @__PURE__ */ y("div", {
405
+ className: Q && !(rt && $ === "none") ? ne[$] : "contents",
406
+ children: [$ === "none" ? null : /* @__PURE__ */ v("div", {
407
407
  "aria-hidden": "true",
408
408
  "data-carousel-progress": "",
409
- "data-overflowing": kt,
410
- className: e(se, Q ? ce[$] : le[$]),
411
- onPointerDown: Ct,
412
- onPointerMove: wt,
413
- onPointerUp: Tt,
414
- onPointerCancel: Tt,
415
- children: /* @__PURE__ */ y("div", {
416
- ref: A,
417
- className: fe,
418
- children: /* @__PURE__ */ y("div", {
419
- ref: We,
420
- className: de,
409
+ "data-overflowing": jt,
410
+ className: e(ue, Q ? de[$] : fe[$]),
411
+ onPointerDown: Tt,
412
+ onPointerMove: Et,
413
+ onPointerUp: Dt,
414
+ onPointerCancel: Dt,
415
+ children: /* @__PURE__ */ v("div", {
416
+ ref: k,
417
+ className: he,
418
+ children: /* @__PURE__ */ v("div", {
419
+ ref: Ke,
420
+ className: me,
421
421
  "data-carousel-progress-thumb": ""
422
422
  })
423
423
  })
424
- }), Q ? /* @__PURE__ */ y(n, {
424
+ }), Q ? rt ? /* @__PURE__ */ v("span", {
425
+ className: oe,
426
+ children: /* @__PURE__ */ v(n, {
427
+ role: "ghost",
428
+ size: "sm",
429
+ "aria-label": R ? "Play" : "Pause",
430
+ icon: v(R ? Te : we, { strokeWidth: 2 }),
431
+ onClick: () => nt((e) => !e),
432
+ "data-carousel-drift-control": ""
433
+ })
434
+ }) : /* @__PURE__ */ v(n, {
425
435
  role: "ghost",
426
436
  size: "sm",
427
- "aria-label": et ? "Play" : "Pause",
428
- icon: y(et ? Ce : Se, { strokeWidth: 2 }),
429
- onClick: () => tt((e) => !e),
437
+ "aria-label": R ? "Play" : "Pause",
438
+ icon: v(R ? Te : we, { strokeWidth: 2 }),
439
+ onClick: () => nt((e) => !e),
430
440
  "data-carousel-drift-control": ""
431
441
  }) : null]
432
442
  }) : null,
433
- T == null ? null : /* @__PURE__ */ y("div", {
443
+ T == null ? null : /* @__PURE__ */ v("div", {
434
444
  ref: B,
435
445
  "aria-hidden": "true",
436
- className: m,
446
+ className: ie,
437
447
  "data-carousel-cursor": "",
438
448
  children: T
439
449
  }),
440
- At ? /* @__PURE__ */ y("p", {
450
+ Mt ? /* @__PURE__ */ v("p", {
441
451
  "aria-live": "polite",
442
452
  "aria-atomic": "true",
443
453
  "data-carousel-counter": "",
444
- "data-overflowing": kt,
445
- className: p,
446
- children: Ot
454
+ "data-overflowing": jt,
455
+ className: re,
456
+ children: At
447
457
  }) : null
448
458
  ]
449
459
  });
450
460
  }
451
- var Le = 24;
452
- function Re({ label: e, clone: t = !1, children: n }) {
453
- let r = be(() => ({
461
+ var ze = 24;
462
+ function Be({ label: e, clone: t = !1, children: n }) {
463
+ let r = Ce(() => ({
454
464
  label: e,
455
465
  clone: t
456
466
  }), [e, t]);
457
- return /* @__PURE__ */ y(S.Provider, {
467
+ return /* @__PURE__ */ v(x.Provider, {
458
468
  value: r,
459
469
  children: n
460
470
  });
461
471
  }
462
- function ze({ children: t, className: n }) {
463
- let r = ve(S);
464
- return /* @__PURE__ */ y("div", {
472
+ function Ve({ children: t, className: n }) {
473
+ let r = xe(x);
474
+ return /* @__PURE__ */ v("div", {
465
475
  role: r?.clone ? void 0 : "group",
466
476
  "aria-label": r?.clone ? void 0 : r?.label,
467
477
  "aria-hidden": r?.clone ? !0 : void 0,
468
478
  inert: r?.clone ? !0 : void 0,
469
479
  "data-carousel-item": "",
470
480
  "data-carousel-clone": r?.clone ? "" : void 0,
471
- className: e(oe, n),
481
+ className: e(le, n),
472
482
  children: t
473
483
  });
474
484
  }
475
- var C = Object.assign(Ie, { Item: ze });
485
+ var S = Object.assign(Re, { Item: Ve });
476
486
  //#endregion
477
- export { C as Carousel, f as carouselBreakpoints, re as carouselDefaultItemWidth, ue as carouselProgressPlacements };
487
+ export { S as Carousel, f as carouselBreakpoints, ae as carouselDefaultItemWidth, pe as carouselProgressPlacements };