@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.
- package/CHANGELOG.md +22 -0
- package/dist/components/atoms/Table/Table.d.ts +16 -2
- package/dist/components/atoms/Table/Table.d.ts.map +1 -1
- package/dist/components/atoms/Table/Table.js +10 -8
- package/dist/components/atoms/Table/tableStyles.d.ts +11 -0
- package/dist/components/atoms/Table/tableStyles.d.ts.map +1 -1
- package/dist/components/atoms/Table/tableStyles.js +2 -2
- package/dist/components/organisms/Carousel/Carousel.d.ts +3 -0
- package/dist/components/organisms/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/organisms/Carousel/Carousel.js +208 -198
- package/dist/components/organisms/Carousel/carouselStyles.d.ts +2 -0
- package/dist/components/organisms/Carousel/carouselStyles.d.ts.map +1 -1
- package/dist/components/organisms/Carousel/carouselStyles.js +3 -3
- package/dist/styles.css +1 -1
- package/docs/components.md +1 -1
- package/docs/exports.json +1 -1
- package/docs/patterns/components-accordion--flush.tsx +1 -1
- package/docs/patterns/components-appshell--portal-dashboard-pattern.tsx +1 -1
- package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
- package/docs/patterns/components-badge--outline-tags.tsx +1 -1
- package/docs/patterns/components-badge--status-pill.tsx +1 -1
- package/docs/patterns/components-badge--with-avatar.tsx +1 -1
- package/docs/patterns/components-band--page-in-bands.tsx +1 -1
- package/docs/patterns/components-breadcrumb--editorial.tsx +1 -1
- package/docs/patterns/components-breadcrumb--long-path.tsx +1 -1
- package/docs/patterns/components-breadcrumb--path.tsx +1 -1
- package/docs/patterns/components-breadcrumb--router-links.tsx +1 -1
- package/docs/patterns/components-button-button--copy-button.tsx +1 -1
- package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
- package/docs/patterns/components-button-button--external-link.tsx +1 -1
- package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
- package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
- package/docs/patterns/components-button-button--link-render.tsx +1 -1
- package/docs/patterns/components-button-button--multi-state-badge.tsx +1 -1
- package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
- package/docs/patterns/components-button-button--primary-action.tsx +1 -1
- package/docs/patterns/components-button-button--row-hug.tsx +1 -1
- package/docs/patterns/components-button-button--row-layout.tsx +1 -1
- package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
- package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
- package/docs/patterns/components-button-button--with-count.tsx +1 -1
- package/docs/patterns/components-button-button--with-icon.tsx +1 -1
- package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
- package/docs/patterns/components-calembed--pattern-skip-above.tsx +1 -1
- package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
- package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
- package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
- package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
- package/docs/patterns/components-card-card--terminal-frame.tsx +1 -1
- package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
- package/docs/patterns/components-carousel--image-carousel.tsx +1 -1
- package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
- package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
- package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
- package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
- package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
- package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
- package/docs/patterns/components-chart--revenue-by-line.tsx +1 -1
- package/docs/patterns/components-chart--segmented-ring-pattern.tsx +1 -1
- package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
- package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +1 -1
- package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +1 -1
- package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--with-count.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
- package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
- package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +1 -1
- package/docs/patterns/components-copyfield--clipboard-blocked.tsx +1 -1
- package/docs/patterns/components-copyfield--copied.tsx +1 -1
- package/docs/patterns/components-copyfield--copy-key.tsx +1 -1
- package/docs/patterns/components-copyfield--on-navy.tsx +1 -1
- package/docs/patterns/components-descriptionlist--details.tsx +1 -1
- package/docs/patterns/components-descriptionlist--post-metadata.tsx +1 -1
- package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
- package/docs/patterns/components-dialog--alert-dialog-typed-confirmation.tsx +1 -1
- package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
- package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
- package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
- package/docs/patterns/components-displaycontrols--theme-switch.tsx +1 -1
- package/docs/patterns/components-errorsummary--contact-form.tsx +1 -1
- package/docs/patterns/components-field--horizontal-input.tsx +1 -1
- package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
- package/docs/patterns/components-field--multi-control.tsx +1 -1
- package/docs/patterns/components-filterpanel--panel.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
- package/docs/patterns/components-herointro--two-line-intro.tsx +1 -1
- package/docs/patterns/components-herointro--with-actions.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +1 -1
- package/docs/patterns/components-indexlist--post-index.tsx +1 -1
- package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
- package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
- package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
- package/docs/patterns/components-intakeform--short-form-pattern.tsx +1 -1
- package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
- package/docs/patterns/components-kbd--command-row.tsx +1 -1
- package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
- package/docs/patterns/components-kbd--shortcut.tsx +1 -1
- package/docs/patterns/components-linktile--resource-tile.tsx +1 -1
- package/docs/patterns/components-linktile--router-link.tsx +1 -1
- package/docs/patterns/components-logview--detail-pane.tsx +1 -1
- package/docs/patterns/components-logview--log-viewer.tsx +1 -1
- package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
- package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
- package/docs/patterns/components-navlist--app-sidebar.tsx +1 -1
- package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
- package/docs/patterns/components-notice--account-not-connected.tsx +1 -1
- package/docs/patterns/components-notice--holiday-closure.tsx +1 -1
- package/docs/patterns/components-notice--private-buyout.tsx +1 -1
- package/docs/patterns/components-notice--sync-failed.tsx +1 -1
- package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
- package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
- package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
- package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
- package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
- package/docs/patterns/components-progress--upload-pattern.tsx +1 -1
- package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
- package/docs/patterns/components-prose--article-body.tsx +1 -1
- package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
- package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
- package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
- package/docs/patterns/components-sectioncaption--column-caption.tsx +1 -1
- package/docs/patterns/components-sectioncaption--with-action.tsx +1 -1
- package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
- package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet-header-actions.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet-url-deep-link.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet.tsx +1 -1
- package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
- package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
- package/docs/patterns/components-sitenav--compact.tsx +1 -1
- package/docs/patterns/components-sitenav--marketing-header.tsx +1 -1
- package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
- package/docs/patterns/components-stat--hero-stat.tsx +1 -1
- package/docs/patterns/components-stat--insights-row.tsx +1 -1
- package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
- package/docs/patterns/components-switch--default.tsx +1 -1
- package/docs/patterns/components-switch--settings-row.tsx +1 -1
- package/docs/patterns/components-tab--settings-pages.tsx +1 -1
- package/docs/patterns/components-table--approvals-with-sheet.tsx +1 -1
- package/docs/patterns/components-table--approvals.tsx +1 -1
- package/docs/patterns/components-table--basic.tsx +1 -1
- package/docs/patterns/components-taskrows--action-details.tsx +1 -1
- package/docs/patterns/components-taskrows--capsules.tsx +1 -1
- package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
- package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
- package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
- package/docs/patterns/components-taskrows--needs-you-table.tsx +1 -1
- package/docs/patterns/components-taskrows--status-list.tsx +1 -1
- package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
- package/docs/patterns/components-textarea--save-status.tsx +1 -1
- package/docs/patterns/components-textlink--external-destination.tsx +1 -1
- package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
- package/docs/patterns/components-textlink--quiet-title.tsx +1 -1
- package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
- package/docs/patterns/components-textsequence--default.tsx +1 -1
- package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
- package/docs/patterns/components-textsequence--shapes.tsx +1 -1
- package/docs/patterns/components-tilegrid--masonry.tsx +1 -1
- package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
- package/docs/patterns/components-tooltip--controlled.tsx +1 -1
- package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
- package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
- package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
- package/docs/patterns/components-tooltip--placement.tsx +1 -1
- package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
- package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
- package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
- package/docs/patterns/guides-filter-panel--filtered-grid.tsx +1 -1
- package/docs/patterns/guides-filter-panel--filtered-index.tsx +1 -1
- package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
- package/docs/patterns/guides-post-page--post-page.tsx +1 -1
- package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
- package/docs/patterns/guides-resource-detail--detail.tsx +1 -1
- package/docs/patterns/index.json +1 -1
- 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
|
|
7
|
-
import { Children as
|
|
8
|
-
import { Pause as
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { animate as
|
|
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
|
|
12
|
+
var x = p(null), Me = {
|
|
13
13
|
item: (e, t) => `${e} of ${t}`,
|
|
14
14
|
counter: (e, t) => `${e} of ${t}`
|
|
15
|
-
},
|
|
16
|
-
function
|
|
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
|
|
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 ??
|
|
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
|
|
36
|
+
function Le(e, t, n) {
|
|
37
37
|
n ? e.style.removeProperty(t) : e.style.setProperty(t, "0px");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
let E =
|
|
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
|
-
}),
|
|
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 =
|
|
50
|
+
}), B = g(null), it = g({
|
|
51
51
|
position: 0,
|
|
52
52
|
time: 0,
|
|
53
53
|
reset: void 0
|
|
54
|
-
}),
|
|
54
|
+
}), at = b(0), ot = Ae(at, {
|
|
55
55
|
stiffness: 170,
|
|
56
56
|
damping: 26,
|
|
57
57
|
mass: 1
|
|
58
58
|
});
|
|
59
|
-
|
|
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 =
|
|
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 } =
|
|
66
|
-
e.style.setProperty("--carousel-progress", String(l(i, n))),
|
|
67
|
-
let e = r(
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
}, []), G =
|
|
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 =
|
|
72
|
+
t && (t.scrollLeft = A.current.direction * e, W());
|
|
73
73
|
}, [W]);
|
|
74
|
-
|
|
75
|
-
let t = i(e, 0,
|
|
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
|
-
|
|
83
|
+
j.current?.stop(), j.current = null, M.current = null;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
85
|
+
function ct() {
|
|
86
|
+
j.current = null, M.current = null, K(!1);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
|
|
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,
|
|
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
|
-
|
|
97
|
+
M.current = r, K(!0), j.current = Ee(V, r, {
|
|
98
98
|
...t("medium"),
|
|
99
|
-
onComplete:
|
|
99
|
+
onComplete: ct
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
h(() => {
|
|
103
|
+
et.current = Ve, tt.current = J;
|
|
104
104
|
});
|
|
105
|
-
function
|
|
106
|
-
let { max: t, points: n } =
|
|
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(
|
|
108
|
+
J(p ? r(V.get()) : V.get(), !1);
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
let a = V.get(), s =
|
|
111
|
+
let a = V.get(), s = p ? r(a) : i(a, 0, t);
|
|
112
112
|
if (e === 0 && s === a) {
|
|
113
|
-
|
|
113
|
+
ct();
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
|
-
K(!0),
|
|
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:
|
|
122
|
-
onComplete:
|
|
121
|
+
modifyTarget: p ? r : void 0,
|
|
122
|
+
onComplete: ct
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
let Y =
|
|
126
|
-
let e = D.current, t = O.current, n =
|
|
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 (
|
|
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
|
-
|
|
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
|
|
144
|
-
|
|
145
|
-
let
|
|
146
|
-
|
|
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
|
-
|
|
148
|
+
xe,
|
|
149
149
|
H,
|
|
150
150
|
W
|
|
151
151
|
]);
|
|
152
|
-
|
|
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
|
-
|
|
159
|
-
|
|
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,
|
|
165
|
-
|
|
164
|
+
}, [Y, x]), h(() => () => {
|
|
165
|
+
j.current?.stop(), window.clearTimeout(Xe.current);
|
|
166
166
|
}, []);
|
|
167
|
-
let
|
|
168
|
-
|
|
167
|
+
let dt = L > 0 && !E && !R && I === !0;
|
|
168
|
+
h(() => {
|
|
169
169
|
let e = D.current, t = O.current;
|
|
170
|
-
if (!
|
|
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 ||
|
|
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 } =
|
|
182
|
-
Math.abs(U() - a) > 2 && (a = U()), a += i *
|
|
183
|
-
let { loopWidth: n } =
|
|
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
|
-
|
|
193
|
-
|
|
192
|
+
dt,
|
|
193
|
+
L,
|
|
194
194
|
w,
|
|
195
195
|
U,
|
|
196
196
|
G
|
|
197
197
|
]);
|
|
198
|
-
function
|
|
198
|
+
function ft() {
|
|
199
199
|
if (!D.current || E) return;
|
|
200
|
-
let e = performance.now(), t = U(), n =
|
|
201
|
-
r > 0 && r < 200 && Math.abs(t - n.position) < 400 &&
|
|
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
|
|
204
|
-
|
|
205
|
-
let { loopWidth: e } =
|
|
206
|
-
if (w && e > 0 &&
|
|
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
|
|
215
|
+
function mt(e) {
|
|
216
216
|
e.pointerType === "mouse" && (z.current.hover = !0);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
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
|
|
223
|
+
function gt() {
|
|
224
224
|
z.current.focus = !0;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function _t(e) {
|
|
227
227
|
e.currentTarget.contains(e.relatedTarget) || (z.current.focus = !1);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
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 = "",
|
|
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
|
|
235
|
+
function yt() {
|
|
236
236
|
let e = B.current;
|
|
237
237
|
e && delete e.dataset.shown;
|
|
238
238
|
}
|
|
239
|
-
|
|
240
|
-
if (
|
|
241
|
-
let { offsets: e, max: t } =
|
|
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 =
|
|
244
|
-
|
|
245
|
-
let r = e[i(Math.round(
|
|
246
|
-
|
|
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
|
-
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
S,
|
|
249
|
+
I,
|
|
250
|
+
p
|
|
251
251
|
]);
|
|
252
|
-
function
|
|
253
|
-
if (e.pointerType !== "mouse" || e.button !== 0 ||
|
|
254
|
-
let t =
|
|
255
|
-
q(), V.jump(U()),
|
|
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
|
|
264
|
-
let t =
|
|
263
|
+
function xt(e) {
|
|
264
|
+
let t = N.current;
|
|
265
265
|
if (!(!t || t.pointerId !== e.pointerId)) {
|
|
266
266
|
if (e.buttons === 0) {
|
|
267
|
-
|
|
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,
|
|
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 -
|
|
274
|
+
V.set(t.startPosition - A.current.direction * (e.clientX - t.startX));
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
let t =
|
|
277
|
+
function St(e) {
|
|
278
|
+
let t = N.current;
|
|
279
279
|
if (!t || t.pointerId !== e.pointerId) return;
|
|
280
|
-
if (
|
|
281
|
-
t.interrupted &&
|
|
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,
|
|
286
|
-
|
|
287
|
-
}, 0),
|
|
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
|
|
290
|
-
|
|
289
|
+
function Ct(e) {
|
|
290
|
+
F.current && (F.current = !1, e.preventDefault(), e.stopPropagation());
|
|
291
291
|
}
|
|
292
|
-
function
|
|
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 } =
|
|
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
|
|
313
|
-
let t =
|
|
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 -
|
|
318
|
-
q(), V.jump(U()), K(!0),
|
|
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(
|
|
327
|
+
J(p ? o(i, d) : d);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
let t =
|
|
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 } =
|
|
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
|
|
336
|
-
let t =
|
|
335
|
+
function Dt(e) {
|
|
336
|
+
let t = P.current;
|
|
337
337
|
if (!t || t.pointerId !== e.pointerId) return;
|
|
338
|
-
|
|
338
|
+
P.current = null;
|
|
339
339
|
let n = e.currentTarget;
|
|
340
|
-
n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), delete n.dataset.scrubbing,
|
|
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 =
|
|
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
|
-
},
|
|
348
|
-
|
|
349
|
-
let
|
|
350
|
-
return /* @__PURE__ */
|
|
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(
|
|
353
|
-
style:
|
|
352
|
+
className: e(ge, T != null && "relative", We),
|
|
353
|
+
style: Ot,
|
|
354
354
|
"data-carousel": "",
|
|
355
|
-
"data-autoplay":
|
|
356
|
-
onPointerEnter:
|
|
357
|
-
onPointerLeave:
|
|
358
|
-
onFocus:
|
|
359
|
-
onBlur:
|
|
355
|
+
"data-autoplay": L > 0 ? "" : void 0,
|
|
356
|
+
onPointerEnter: mt,
|
|
357
|
+
onPointerLeave: ht,
|
|
358
|
+
onFocus: gt,
|
|
359
|
+
onBlur: _t,
|
|
360
360
|
children: [
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
-
className:
|
|
363
|
-
children: /* @__PURE__ */
|
|
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":
|
|
368
|
-
tabIndex:
|
|
367
|
+
"aria-labelledby": le,
|
|
368
|
+
tabIndex: I === !1 ? void 0 : 0,
|
|
369
369
|
"data-carousel-viewport": "",
|
|
370
|
-
"data-overflowing":
|
|
371
|
-
className: e(
|
|
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:
|
|
374
|
-
onKeyDown:
|
|
375
|
-
onPointerDown:
|
|
373
|
+
onScroll: pt,
|
|
374
|
+
onKeyDown: wt,
|
|
375
|
+
onPointerDown: bt,
|
|
376
376
|
onPointerMove: (e) => {
|
|
377
|
-
|
|
377
|
+
xt(e), T != null && vt(e);
|
|
378
378
|
},
|
|
379
|
-
onPointerLeave: T == null ? void 0 :
|
|
380
|
-
onPointerUp:
|
|
381
|
-
onPointerCancel:
|
|
382
|
-
onClickCapture:
|
|
379
|
+
onPointerLeave: T == null ? void 0 : yt,
|
|
380
|
+
onPointerUp: St,
|
|
381
|
+
onPointerCancel: St,
|
|
382
|
+
onClickCapture: Ct,
|
|
383
383
|
onDragStart: (e) => e.preventDefault(),
|
|
384
|
-
onWheel:
|
|
385
|
-
onTouchStart:
|
|
386
|
-
children: /* @__PURE__ */
|
|
387
|
-
className:
|
|
388
|
-
children: /* @__PURE__ */
|
|
389
|
-
ref:
|
|
390
|
-
className:
|
|
391
|
-
style: { x:
|
|
392
|
-
children: [Z.map((e, t) => /* @__PURE__ */
|
|
393
|
-
label:
|
|
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
|
-
},
|
|
396
|
-
label:
|
|
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__ */
|
|
405
|
-
className: Q ? ne[$] : "contents",
|
|
406
|
-
children: [$ === "none" ? null : /* @__PURE__ */
|
|
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":
|
|
410
|
-
className: e(
|
|
411
|
-
onPointerDown:
|
|
412
|
-
onPointerMove:
|
|
413
|
-
onPointerUp:
|
|
414
|
-
onPointerCancel:
|
|
415
|
-
children: /* @__PURE__ */
|
|
416
|
-
ref:
|
|
417
|
-
className:
|
|
418
|
-
children: /* @__PURE__ */
|
|
419
|
-
ref:
|
|
420
|
-
className:
|
|
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__ */
|
|
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":
|
|
428
|
-
icon:
|
|
429
|
-
onClick: () =>
|
|
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__ */
|
|
443
|
+
T == null ? null : /* @__PURE__ */ v("div", {
|
|
434
444
|
ref: B,
|
|
435
445
|
"aria-hidden": "true",
|
|
436
|
-
className:
|
|
446
|
+
className: ie,
|
|
437
447
|
"data-carousel-cursor": "",
|
|
438
448
|
children: T
|
|
439
449
|
}),
|
|
440
|
-
|
|
450
|
+
Mt ? /* @__PURE__ */ v("p", {
|
|
441
451
|
"aria-live": "polite",
|
|
442
452
|
"aria-atomic": "true",
|
|
443
453
|
"data-carousel-counter": "",
|
|
444
|
-
"data-overflowing":
|
|
445
|
-
className:
|
|
446
|
-
children:
|
|
454
|
+
"data-overflowing": jt,
|
|
455
|
+
className: re,
|
|
456
|
+
children: At
|
|
447
457
|
}) : null
|
|
448
458
|
]
|
|
449
459
|
});
|
|
450
460
|
}
|
|
451
|
-
var
|
|
452
|
-
function
|
|
453
|
-
let r =
|
|
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__ */
|
|
467
|
+
return /* @__PURE__ */ v(x.Provider, {
|
|
458
468
|
value: r,
|
|
459
469
|
children: n
|
|
460
470
|
});
|
|
461
471
|
}
|
|
462
|
-
function
|
|
463
|
-
let r =
|
|
464
|
-
return /* @__PURE__ */
|
|
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(
|
|
481
|
+
className: e(le, n),
|
|
472
482
|
children: t
|
|
473
483
|
});
|
|
474
484
|
}
|
|
475
|
-
var
|
|
485
|
+
var S = Object.assign(Re, { Item: Ve });
|
|
476
486
|
//#endregion
|
|
477
|
-
export {
|
|
487
|
+
export { S as Carousel, f as carouselBreakpoints, ae as carouselDefaultItemWidth, pe as carouselProgressPlacements };
|