@sprawlify/react 0.0.6 → 0.0.8
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/dist/chunk-BYnRvbsk.cjs +53 -0
- package/dist/{collapsible-DYgHs1_i.mjs → collapsible-Nbt3Sequ.mjs} +7 -4
- package/dist/{collapsible-D_cXuaRy.cjs → collapsible-aFKYmVbP.cjs} +13 -9
- package/dist/collection-DGEUORi5.cjs +230 -0
- package/dist/collection-DQWWySNV.mjs +187 -0
- package/dist/components/accordion/index.cjs +21 -24
- package/dist/components/accordion/index.d.cts +11 -9
- package/dist/components/accordion/index.d.mts +11 -9
- package/dist/components/accordion/index.mjs +10 -14
- package/dist/components/angle-slider/index.cjs +14 -9
- package/dist/components/angle-slider/index.d.cts +13 -11
- package/dist/components/angle-slider/index.d.mts +13 -11
- package/dist/components/angle-slider/index.mjs +8 -4
- package/dist/components/avatar/index.cjs +14 -9
- package/dist/components/avatar/index.d.cts +8 -6
- package/dist/components/avatar/index.d.mts +8 -6
- package/dist/components/avatar/index.mjs +8 -4
- package/dist/components/bottom-sheet/index.cjs +216 -0
- package/dist/components/bottom-sheet/index.d.cts +80 -0
- package/dist/components/bottom-sheet/index.d.mts +81 -0
- package/dist/components/bottom-sheet/index.mjs +192 -0
- package/dist/components/carousel/index.cjs +265 -0
- package/dist/components/carousel/index.d.cts +95 -0
- package/dist/components/carousel/index.d.mts +95 -0
- package/dist/components/carousel/index.mjs +243 -0
- package/dist/components/checkbox/index.cjs +311 -0
- package/dist/components/checkbox/index.d.cts +115 -0
- package/dist/components/checkbox/index.d.mts +115 -0
- package/dist/components/checkbox/index.mjs +291 -0
- package/dist/components/client-only/index.cjs +14 -0
- package/dist/components/client-only/index.d.cts +8 -0
- package/dist/components/client-only/index.d.mts +8 -0
- package/dist/components/client-only/index.mjs +13 -0
- package/dist/components/clipboard/index.cjs +186 -0
- package/dist/components/clipboard/index.d.cts +71 -0
- package/dist/components/clipboard/index.d.mts +71 -0
- package/dist/components/clipboard/index.mjs +163 -0
- package/dist/components/collapsible/index.cjs +8 -3
- package/dist/components/collapsible/index.d.cts +10 -8
- package/dist/components/collapsible/index.d.mts +10 -8
- package/dist/components/collapsible/index.mjs +7 -3
- package/dist/components/collection/index.cjs +11 -0
- package/dist/components/collection/index.d.cts +2 -0
- package/dist/components/collection/index.d.mts +2 -0
- package/dist/components/collection/index.mjs +5 -0
- package/dist/components/color-picker/index.cjs +617 -0
- package/dist/components/color-picker/index.d.cts +181 -0
- package/dist/components/color-picker/index.d.mts +182 -0
- package/dist/components/color-picker/index.mjs +573 -0
- package/dist/components/combobox/index.cjs +420 -0
- package/dist/components/combobox/index.d.cts +132 -0
- package/dist/components/combobox/index.d.mts +133 -0
- package/dist/components/combobox/index.mjs +390 -0
- package/dist/components/date-picker/index.cjs +567 -0
- package/dist/components/date-picker/index.d.cts +164 -0
- package/dist/components/date-picker/index.d.mts +165 -0
- package/dist/components/date-picker/index.mjs +526 -0
- package/dist/components/dialog/index.cjs +211 -0
- package/dist/components/dialog/index.d.cts +80 -0
- package/dist/components/dialog/index.d.mts +81 -0
- package/dist/components/dialog/index.mjs +187 -0
- package/dist/components/download-trigger/index.cjs +43 -0
- package/dist/components/download-trigger/index.d.cts +16 -0
- package/dist/components/download-trigger/index.d.mts +16 -0
- package/dist/components/download-trigger/index.mjs +42 -0
- package/dist/components/editable/index.cjs +246 -0
- package/dist/components/editable/index.d.cts +79 -0
- package/dist/components/editable/index.d.mts +79 -0
- package/dist/components/editable/index.mjs +221 -0
- package/dist/components/field/index.cjs +29 -0
- package/dist/components/field/index.d.cts +116 -0
- package/dist/components/field/index.d.mts +116 -0
- package/dist/components/field/index.mjs +11 -0
- package/dist/components/fieldset/index.cjs +25 -0
- package/dist/components/fieldset/index.d.cts +73 -0
- package/dist/components/fieldset/index.d.mts +73 -0
- package/dist/components/fieldset/index.mjs +11 -0
- package/dist/components/file-upload/index.cjs +351 -0
- package/dist/components/file-upload/index.d.cts +102 -0
- package/dist/components/file-upload/index.d.mts +102 -0
- package/dist/components/file-upload/index.mjs +322 -0
- package/dist/components/floating-panel/index.cjs +287 -0
- package/dist/components/floating-panel/index.d.cts +100 -0
- package/dist/components/floating-panel/index.d.mts +101 -0
- package/dist/components/floating-panel/index.mjs +259 -0
- package/dist/components/focus-trap/index.cjs +36 -0
- package/dist/components/focus-trap/index.d.cts +14 -0
- package/dist/components/focus-trap/index.d.mts +14 -0
- package/dist/components/focus-trap/index.mjs +35 -0
- package/dist/components/format/index.cjs +57 -0
- package/dist/components/format/index.d.cts +36 -0
- package/dist/components/format/index.d.mts +36 -0
- package/dist/components/format/index.mjs +49 -0
- package/dist/components/frame/index.cjs +90 -0
- package/dist/components/frame/index.d.cts +13 -0
- package/dist/components/frame/index.d.mts +13 -0
- package/dist/components/frame/index.mjs +89 -0
- package/dist/components/highlight/index.cjs +32 -0
- package/dist/components/highlight/index.d.cts +14 -0
- package/dist/components/highlight/index.d.mts +14 -0
- package/dist/components/highlight/index.mjs +30 -0
- package/dist/components/portal/index.cjs +33 -0
- package/dist/components/portal/index.d.cts +11 -0
- package/dist/components/portal/index.d.mts +11 -0
- package/dist/components/portal/index.mjs +32 -0
- package/dist/components/presence/index.cjs +11 -0
- package/dist/components/presence/index.d.cts +2 -0
- package/dist/components/presence/index.d.mts +4 -0
- package/dist/components/presence/index.mjs +7 -0
- package/dist/components/select/index.cjs +423 -0
- package/dist/components/select/index.d.cts +132 -0
- package/dist/components/select/index.d.mts +133 -0
- package/dist/components/select/index.mjs +387 -0
- package/dist/compose-refs-BEptPEkE.mjs +16 -0
- package/dist/compose-refs-C5QNDywq.cjs +22 -0
- package/dist/{factory-DN0EdT7u.mjs → core-Ba4IEjhK.mjs} +4 -154
- package/dist/{factory-CfqPG186.cjs → core-DCWyxy9D.cjs} +2 -251
- package/dist/{create-context-DCEySQ7J.cjs → create-context-CQ4U0lLj.cjs} +1 -1
- package/dist/environment-CvilmfQt.cjs +58 -0
- package/dist/environment-Ded7DkGr.mjs +46 -0
- package/dist/factory-Bi8oEg8i.mjs +49 -0
- package/dist/factory-C-EBNsCW.d.mts +15 -0
- package/dist/factory-C166evrS.cjs +61 -0
- package/dist/factory-C4cfTHs7.d.cts +15 -0
- package/dist/field-B-6qoKdn.mjs +324 -0
- package/dist/field-C-57Gj2E.cjs +406 -0
- package/dist/fieldset-B-MkM2Ms.cjs +239 -0
- package/dist/fieldset-gaVneDYh.mjs +186 -0
- package/dist/index-BJvW7OpY.d.mts +25 -0
- package/dist/index-BhGgEHWc.d.cts +34 -0
- package/dist/index-ByIsf4E7.d.mts +74 -0
- package/dist/index-Cp1i1zbg.d.mts +34 -0
- package/dist/index-CumJbg8V.d.cts +74 -0
- package/dist/index.cjs +17 -12
- package/dist/index.d.cts +7 -5
- package/dist/index.d.mts +7 -5
- package/dist/index.mjs +7 -3
- package/dist/locale-BcnWD1Hf.cjs +78 -0
- package/dist/locale-Coin-d7R.mjs +54 -0
- package/dist/normalize-props-skGwa8Dk.d.cts +13 -0
- package/dist/presence-Bc6Bxe5i.mjs +72 -0
- package/dist/presence-CPov8wyU.cjs +103 -0
- package/dist/providers-BNAArubQ.cjs +0 -0
- package/dist/providers-Dm2P3F2_.mjs +1 -0
- package/dist/render-strategy-BywM_IvB.cjs +30 -0
- package/dist/render-strategy-FiPgAp1U.mjs +13 -0
- package/dist/types-B4tvWlDb.d.cts +6 -0
- package/dist/types-BmBABPZb.d.mts +6 -0
- package/dist/use-event-4J5QFFqK.mjs +19 -0
- package/dist/use-event-CLH8zHoJ.cjs +25 -0
- package/dist/use-fieldset-context-CCQLmNLL.cjs +23 -0
- package/dist/use-fieldset-context-LwveT1OS.mjs +12 -0
- package/dist/use-safe-layout-effect-C2GgvNT3.cjs +13 -0
- package/dist/use-safe-layout-effect-CLjnuJFb.mjs +7 -0
- package/dist/utils/index.cjs +3 -3
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +232 -2
- package/dist/factory-BZBSaT-0.d.cts +0 -29
- package/dist/factory-DaVMAttY.d.mts +0 -41
- /package/dist/{chunk-CYMnug_4.mjs → chunk-BXPHTOwk.mjs} +0 -0
- /package/dist/{create-context-DGYD_HQt.mjs → create-context-CCXzjEv8.mjs} +0 -0
- /package/dist/{create-split-props-BFscidWy.mjs → create-split-props-CBL0m-GX.mjs} +0 -0
- /package/dist/{create-split-props-CSaOnJRj.cjs → create-split-props-Dp4TWOyM.cjs} +0 -0
- /package/dist/{index-OOf7QNG5.d.mts → index-CureNJdc.d.mts} +0 -0
- /package/dist/{index-DiYk6N_L.d.cts → index-dbTyAXLy.d.cts} +0 -0
- /package/dist/{render-strategy--1FNKx5x.d.mts → render-strategy-C8IyLw0O.d.mts} +0 -0
- /package/dist/{render-strategy-RT-KvAqO.d.cts → render-strategy-rA4C5NUX.d.cts} +0 -0
- /package/dist/{utils-Cb5K29pi.cjs → utils-B_Ojepvp.cjs} +0 -0
- /package/dist/{utils-nfWHwVIS.mjs → utils-C-m3mZWI.mjs} +0 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
const require_chunk = require('../../chunk-BYnRvbsk.cjs');
|
|
2
|
+
const require_core = require('../../core-DCWyxy9D.cjs');
|
|
3
|
+
const require_create_context = require('../../create-context-CQ4U0lLj.cjs');
|
|
4
|
+
const require_environment = require('../../environment-CvilmfQt.cjs');
|
|
5
|
+
const require_locale = require('../../locale-BcnWD1Hf.cjs');
|
|
6
|
+
require('../../providers-BNAArubQ.cjs');
|
|
7
|
+
const require_factory = require('../../factory-C166evrS.cjs');
|
|
8
|
+
const require_create_split_props = require('../../create-split-props-Dp4TWOyM.cjs');
|
|
9
|
+
let react = require("react");
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
let __sprawlify_primitives_machines_carousel = require("@sprawlify/primitives/machines/carousel");
|
|
12
|
+
__sprawlify_primitives_machines_carousel = require_chunk.__toESM(__sprawlify_primitives_machines_carousel);
|
|
13
|
+
let __sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
14
|
+
|
|
15
|
+
//#region src/components/carousel/carousel-anatomy.ts
|
|
16
|
+
const carouselAnatomy = __sprawlify_primitives_machines_carousel.anatomy.extendWith("progressText", "autoplayIndicator");
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/carousel/use-carousel-context.ts
|
|
20
|
+
const [CarouselProvider, useCarouselContext] = require_create_context.createContext({
|
|
21
|
+
name: "CarouselContext",
|
|
22
|
+
hookName: "useCarouselContext",
|
|
23
|
+
providerName: "<CarouselProvider />"
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/carousel/carousel-autoplay-indicator.tsx
|
|
28
|
+
const parts$1 = carouselAnatomy.build();
|
|
29
|
+
const CarouselAutoplayIndicator = (0, react.forwardRef)((props, ref) => {
|
|
30
|
+
const { children, fallback, ...restProps } = props;
|
|
31
|
+
const carousel = useCarouselContext();
|
|
32
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.span, {
|
|
33
|
+
ref,
|
|
34
|
+
...parts$1.autoplayIndicator.attrs,
|
|
35
|
+
...restProps,
|
|
36
|
+
children: carousel.isPlaying ? children : fallback
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
CarouselAutoplayIndicator.displayName = "CarouselAutoplayIndicator";
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/carousel/carousel-progress-text.tsx
|
|
43
|
+
const parts = carouselAnatomy.build();
|
|
44
|
+
const CarouselProgressText = (0, react.forwardRef)((props, ref) => {
|
|
45
|
+
const carousel = useCarouselContext();
|
|
46
|
+
const progressText = (0, react.useMemo)(() => {
|
|
47
|
+
return `${carousel.page + 1} / ${carousel.pageSnapPoints.length}`;
|
|
48
|
+
}, [carousel.page, carousel.pageSnapPoints.length]);
|
|
49
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.span, {
|
|
50
|
+
ref,
|
|
51
|
+
...parts.progressText.attrs,
|
|
52
|
+
...props,
|
|
53
|
+
children: props.children || progressText
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
CarouselProgressText.displayName = "CarouselProgressText";
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/carousel/carousel-autoplay-trigger.tsx
|
|
60
|
+
const CarouselAutoplayTrigger = (0, react.forwardRef)((props, ref) => {
|
|
61
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useCarouselContext().getAutoplayTriggerProps(), props);
|
|
62
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
63
|
+
...mergedProps,
|
|
64
|
+
ref
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
CarouselAutoplayTrigger.displayName = "CarouselAutoplayTrigger";
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/components/carousel/carousel-context.tsx
|
|
71
|
+
const CarouselContext = (props) => props.children(useCarouselContext());
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/carousel/carousel-control.tsx
|
|
75
|
+
const CarouselControl = (0, react.forwardRef)((props, ref) => {
|
|
76
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useCarouselContext().getControlProps(), props);
|
|
77
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
78
|
+
...mergedProps,
|
|
79
|
+
...props,
|
|
80
|
+
ref
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
CarouselControl.displayName = "CarouselControl";
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/carousel/carousel-indicator.tsx
|
|
87
|
+
const splitIndicatorProps = require_create_split_props.createSplitProps();
|
|
88
|
+
const CarouselIndicator = (0, react.forwardRef)((props, ref) => {
|
|
89
|
+
const [indicatorProps, localProps] = splitIndicatorProps(props, ["readOnly", "index"]);
|
|
90
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useCarouselContext().getIndicatorProps(indicatorProps), localProps);
|
|
91
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
92
|
+
...mergedProps,
|
|
93
|
+
ref
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
CarouselIndicator.displayName = "CarouselIndicator";
|
|
97
|
+
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/carousel/carousel-indicator-group.tsx
|
|
100
|
+
const CarouselIndicatorGroup = (0, react.forwardRef)((props, ref) => {
|
|
101
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useCarouselContext().getIndicatorGroupProps(), props);
|
|
102
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
103
|
+
...mergedProps,
|
|
104
|
+
ref
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
CarouselIndicatorGroup.displayName = "CarouselIndicatorGroup";
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/components/carousel/carousel-item.tsx
|
|
111
|
+
const splitItemProps = require_create_split_props.createSplitProps();
|
|
112
|
+
const CarouselItem = (0, react.forwardRef)((props, ref) => {
|
|
113
|
+
const [itemProps, localProps] = splitItemProps(props, ["index", "snapAlign"]);
|
|
114
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useCarouselContext().getItemProps(itemProps), localProps);
|
|
115
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
116
|
+
...mergedProps,
|
|
117
|
+
ref
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
CarouselItem.displayName = "CarouselItem";
|
|
121
|
+
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/components/carousel/carousel-item-group.tsx
|
|
124
|
+
const CarouselItemGroup = (0, react.forwardRef)((props, ref) => {
|
|
125
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useCarouselContext().getItemGroupProps(), props);
|
|
126
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
127
|
+
...mergedProps,
|
|
128
|
+
ref
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
CarouselItemGroup.displayName = "CarouselItemGroup";
|
|
132
|
+
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/components/carousel/carousel-next-trigger.tsx
|
|
135
|
+
const CarouselNextTrigger = (0, react.forwardRef)((props, ref) => {
|
|
136
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useCarouselContext().getNextTriggerProps(), props);
|
|
137
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
138
|
+
...mergedProps,
|
|
139
|
+
ref
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
CarouselNextTrigger.displayName = "CarouselNextTrigger";
|
|
143
|
+
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/components/carousel/carousel-prev-trigger.tsx
|
|
146
|
+
const CarouselPrevTrigger = (0, react.forwardRef)((props, ref) => {
|
|
147
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useCarouselContext().getPrevTriggerProps(), props);
|
|
148
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
149
|
+
...mergedProps,
|
|
150
|
+
ref
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
CarouselPrevTrigger.displayName = "CarouselPrevTrigger";
|
|
154
|
+
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/components/carousel/use-carousel.ts
|
|
157
|
+
const useCarousel = (props) => {
|
|
158
|
+
const id = (0, react.useId)();
|
|
159
|
+
const { getRootNode } = require_environment.useEnvironmentContext();
|
|
160
|
+
const { dir } = require_locale.useLocaleContext();
|
|
161
|
+
const machineProps = {
|
|
162
|
+
id,
|
|
163
|
+
dir,
|
|
164
|
+
getRootNode,
|
|
165
|
+
...props
|
|
166
|
+
};
|
|
167
|
+
const service = require_core.useMachine(__sprawlify_primitives_machines_carousel.machine, machineProps);
|
|
168
|
+
return __sprawlify_primitives_machines_carousel.connect(service, require_core.normalizeProps);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/components/carousel/carousel-root.tsx
|
|
173
|
+
const splitRootProps = require_create_split_props.createSplitProps();
|
|
174
|
+
const CarouselRoot = (0, react.forwardRef)((props, ref) => {
|
|
175
|
+
const [useCarouselProps, localProps] = splitRootProps(props, [
|
|
176
|
+
"allowMouseDrag",
|
|
177
|
+
"autoplay",
|
|
178
|
+
"autoSize",
|
|
179
|
+
"defaultPage",
|
|
180
|
+
"id",
|
|
181
|
+
"ids",
|
|
182
|
+
"inViewThreshold",
|
|
183
|
+
"loop",
|
|
184
|
+
"onAutoplayStatusChange",
|
|
185
|
+
"onDragStatusChange",
|
|
186
|
+
"onPageChange",
|
|
187
|
+
"orientation",
|
|
188
|
+
"padding",
|
|
189
|
+
"page",
|
|
190
|
+
"slideCount",
|
|
191
|
+
"slidesPerMove",
|
|
192
|
+
"slidesPerPage",
|
|
193
|
+
"snapType",
|
|
194
|
+
"spacing",
|
|
195
|
+
"translations"
|
|
196
|
+
]);
|
|
197
|
+
const carousel = useCarousel(useCarouselProps);
|
|
198
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(carousel.getRootProps(), localProps);
|
|
199
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CarouselProvider, {
|
|
200
|
+
value: carousel,
|
|
201
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
202
|
+
...mergedProps,
|
|
203
|
+
ref
|
|
204
|
+
})
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
CarouselRoot.displayName = "CarouselRoot";
|
|
208
|
+
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/components/carousel/carousel-root-provider.tsx
|
|
211
|
+
const splitRootProviderProps = require_create_split_props.createSplitProps();
|
|
212
|
+
const CarouselRootProvider = (0, react.forwardRef)((props, ref) => {
|
|
213
|
+
const [{ value: carousel }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
214
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(carousel.getRootProps(), localProps);
|
|
215
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CarouselProvider, {
|
|
216
|
+
value: carousel,
|
|
217
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
218
|
+
...mergedProps,
|
|
219
|
+
ref
|
|
220
|
+
})
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
CarouselRootProvider.displayName = "CarouselRootProvider";
|
|
224
|
+
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region src/components/carousel/carousel.ts
|
|
227
|
+
var carousel_exports = /* @__PURE__ */ require_chunk.__export({
|
|
228
|
+
AutoplayIndicator: () => CarouselAutoplayIndicator,
|
|
229
|
+
AutoplayTrigger: () => CarouselAutoplayTrigger,
|
|
230
|
+
Context: () => CarouselContext,
|
|
231
|
+
Control: () => CarouselControl,
|
|
232
|
+
Indicator: () => CarouselIndicator,
|
|
233
|
+
IndicatorGroup: () => CarouselIndicatorGroup,
|
|
234
|
+
Item: () => CarouselItem,
|
|
235
|
+
ItemGroup: () => CarouselItemGroup,
|
|
236
|
+
NextTrigger: () => CarouselNextTrigger,
|
|
237
|
+
PrevTrigger: () => CarouselPrevTrigger,
|
|
238
|
+
ProgressText: () => CarouselProgressText,
|
|
239
|
+
Root: () => CarouselRoot,
|
|
240
|
+
RootProvider: () => CarouselRootProvider
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
//#endregion
|
|
244
|
+
Object.defineProperty(exports, 'Carousel', {
|
|
245
|
+
enumerable: true,
|
|
246
|
+
get: function () {
|
|
247
|
+
return carousel_exports;
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
exports.CarouselAutoplayIndicator = CarouselAutoplayIndicator;
|
|
251
|
+
exports.CarouselAutoplayTrigger = CarouselAutoplayTrigger;
|
|
252
|
+
exports.CarouselContext = CarouselContext;
|
|
253
|
+
exports.CarouselControl = CarouselControl;
|
|
254
|
+
exports.CarouselIndicator = CarouselIndicator;
|
|
255
|
+
exports.CarouselIndicatorGroup = CarouselIndicatorGroup;
|
|
256
|
+
exports.CarouselItem = CarouselItem;
|
|
257
|
+
exports.CarouselItemGroup = CarouselItemGroup;
|
|
258
|
+
exports.CarouselNextTrigger = CarouselNextTrigger;
|
|
259
|
+
exports.CarouselPrevTrigger = CarouselPrevTrigger;
|
|
260
|
+
exports.CarouselProgressText = CarouselProgressText;
|
|
261
|
+
exports.CarouselRoot = CarouselRoot;
|
|
262
|
+
exports.CarouselRootProvider = CarouselRootProvider;
|
|
263
|
+
exports.carouselAnatomy = carouselAnatomy;
|
|
264
|
+
exports.useCarousel = useCarousel;
|
|
265
|
+
exports.useCarouselContext = useCarouselContext;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { t as PropTypes } from "../../normalize-props-skGwa8Dk.cjs";
|
|
2
|
+
import { r as Optional } from "../../types-B4tvWlDb.cjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-C4cfTHs7.cjs";
|
|
4
|
+
import * as react328 from "react";
|
|
5
|
+
import { ReactNode } from "react";
|
|
6
|
+
import * as carousel from "@sprawlify/primitives/machines/carousel";
|
|
7
|
+
import { AutoplayStatusDetails, AutoplayStatusDetails as CarouselAutoplayStatusDetails, DragStatusDetails, DragStatusDetails as CarouselDragStatusDetails, IndicatorProps, ItemProps, PageChangeDetails, PageChangeDetails as CarouselPageChangeDetails } from "@sprawlify/primitives/machines/carousel";
|
|
8
|
+
import * as _sprawlify_primitives_anatomy7 from "@sprawlify/primitives/anatomy";
|
|
9
|
+
|
|
10
|
+
//#region src/components/carousel/carousel-autoplay-indicator.d.ts
|
|
11
|
+
interface CarouselAutoplayIndicatorBaseProps extends PolymorphicProps {
|
|
12
|
+
fallback?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
interface CarouselAutoplayIndicatorProps extends HTMLProps<"span">, CarouselAutoplayIndicatorBaseProps {}
|
|
15
|
+
declare const CarouselAutoplayIndicator: react328.ForwardRefExoticComponent<CarouselAutoplayIndicatorProps & react328.RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/carousel/carousel-progress-text.d.ts
|
|
18
|
+
interface CarouselProgressTextBaseProps extends PolymorphicProps {}
|
|
19
|
+
interface CarouselProgressTextProps extends HTMLProps<"span">, CarouselProgressTextBaseProps {}
|
|
20
|
+
declare const CarouselProgressText: react328.ForwardRefExoticComponent<CarouselProgressTextProps & react328.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/carousel/carousel-autoplay-trigger.d.ts
|
|
23
|
+
interface CarouselAutoplayTriggerBaseProps extends PolymorphicProps {}
|
|
24
|
+
interface CarouselAutoplayTriggerProps extends HTMLProps<"button">, CarouselAutoplayTriggerBaseProps {}
|
|
25
|
+
declare const CarouselAutoplayTrigger: react328.ForwardRefExoticComponent<CarouselAutoplayTriggerProps & react328.RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/carousel/use-carousel.d.ts
|
|
28
|
+
interface UseCarouselProps extends Optional<Omit<carousel.Props, "dir" | "getRootNode">, "id"> {}
|
|
29
|
+
interface UseCarouselReturn extends carousel.Api<PropTypes> {}
|
|
30
|
+
declare const useCarousel: (props: UseCarouselProps) => UseCarouselReturn;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/carousel/use-carousel-context.d.ts
|
|
33
|
+
interface UseCarouselContext extends UseCarouselReturn {}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/components/carousel/carousel-context.d.ts
|
|
36
|
+
interface CarouselContextProps {
|
|
37
|
+
children: (context: UseCarouselContext) => ReactNode;
|
|
38
|
+
}
|
|
39
|
+
declare const CarouselContext: (props: CarouselContextProps) => ReactNode;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/carousel/carousel-control.d.ts
|
|
42
|
+
interface CarouselControlBaseProps extends PolymorphicProps {}
|
|
43
|
+
interface CarouselControlProps extends HTMLProps<"div">, CarouselControlBaseProps {}
|
|
44
|
+
declare const CarouselControl: react328.ForwardRefExoticComponent<CarouselControlProps & react328.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/carousel/carousel-indicator.d.ts
|
|
47
|
+
interface CarouselIndicatorBaseProps extends IndicatorProps, PolymorphicProps {}
|
|
48
|
+
interface CarouselIndicatorProps extends HTMLProps<"button">, CarouselIndicatorBaseProps {}
|
|
49
|
+
declare const CarouselIndicator: react328.ForwardRefExoticComponent<CarouselIndicatorProps & react328.RefAttributes<HTMLButtonElement>>;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/carousel/carousel-indicator-group.d.ts
|
|
52
|
+
interface CarouselIndicatorGroupBaseProps extends PolymorphicProps {}
|
|
53
|
+
interface CarouselIndicatorGroupProps extends HTMLProps<"div">, CarouselIndicatorGroupBaseProps {}
|
|
54
|
+
declare const CarouselIndicatorGroup: react328.ForwardRefExoticComponent<CarouselIndicatorGroupProps & react328.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/carousel/carousel-item.d.ts
|
|
57
|
+
interface CarouselItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
58
|
+
interface CarouselItemProps extends HTMLProps<"div">, CarouselItemBaseProps {}
|
|
59
|
+
declare const CarouselItem: react328.ForwardRefExoticComponent<CarouselItemProps & react328.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/carousel/carousel-item-group.d.ts
|
|
62
|
+
interface CarouselItemGroupBaseProps extends PolymorphicProps {}
|
|
63
|
+
interface CarouselItemGroupProps extends HTMLProps<"div">, CarouselItemGroupBaseProps {}
|
|
64
|
+
declare const CarouselItemGroup: react328.ForwardRefExoticComponent<CarouselItemGroupProps & react328.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/carousel/carousel-next-trigger.d.ts
|
|
67
|
+
interface CarouselNextTriggerBaseProps extends PolymorphicProps {}
|
|
68
|
+
interface CarouselNextTriggerProps extends HTMLProps<"button">, CarouselNextTriggerBaseProps {}
|
|
69
|
+
declare const CarouselNextTrigger: react328.ForwardRefExoticComponent<CarouselNextTriggerProps & react328.RefAttributes<HTMLButtonElement>>;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/carousel/carousel-prev-trigger.d.ts
|
|
72
|
+
interface CarouselPrevTriggerBaseProps extends PolymorphicProps {}
|
|
73
|
+
interface CarouselPrevTriggerProps extends HTMLProps<"button">, CarouselPrevTriggerBaseProps {}
|
|
74
|
+
declare const CarouselPrevTrigger: react328.ForwardRefExoticComponent<CarouselPrevTriggerProps & react328.RefAttributes<HTMLButtonElement>>;
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/carousel/carousel-root.d.ts
|
|
77
|
+
interface CarouselRootBaseProps extends UseCarouselProps, PolymorphicProps {}
|
|
78
|
+
interface CarouselRootProps extends HTMLProps<"div">, CarouselRootBaseProps {}
|
|
79
|
+
declare const CarouselRoot: react328.ForwardRefExoticComponent<CarouselRootProps & react328.RefAttributes<HTMLDivElement>>;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/carousel/carousel-root-provider.d.ts
|
|
82
|
+
interface RootProviderProps {
|
|
83
|
+
value: UseCarouselReturn;
|
|
84
|
+
}
|
|
85
|
+
interface CarouselRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
86
|
+
interface CarouselRootProviderProps extends HTMLProps<"div">, CarouselRootProviderBaseProps {}
|
|
87
|
+
declare const CarouselRootProvider: react328.ForwardRefExoticComponent<CarouselRootProviderProps & react328.RefAttributes<HTMLDivElement>>;
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/components/carousel/carousel-anatomy.d.ts
|
|
90
|
+
declare const carouselAnatomy: _sprawlify_primitives_anatomy7.AnatomyInstance<"item" | "root" | "itemGroup" | "control" | "prevTrigger" | "nextTrigger" | "indicator" | "indicatorGroup" | "autoplayTrigger" | "progressText" | "autoplayIndicator">;
|
|
91
|
+
declare namespace carousel_d_exports {
|
|
92
|
+
export { CarouselAutoplayIndicator as AutoplayIndicator, CarouselAutoplayIndicatorBaseProps as AutoplayIndicatorBaseProps, CarouselAutoplayIndicatorProps as AutoplayIndicatorProps, AutoplayStatusDetails, CarouselAutoplayTrigger as AutoplayTrigger, CarouselAutoplayTriggerBaseProps as AutoplayTriggerBaseProps, CarouselAutoplayTriggerProps as AutoplayTriggerProps, CarouselContext as Context, CarouselContextProps as ContextProps, CarouselControl as Control, CarouselControlBaseProps as ControlBaseProps, CarouselControlProps as ControlProps, DragStatusDetails, CarouselIndicator as Indicator, CarouselIndicatorBaseProps as IndicatorBaseProps, CarouselIndicatorGroup as IndicatorGroup, CarouselIndicatorGroupBaseProps as IndicatorGroupBaseProps, CarouselIndicatorGroupProps as IndicatorGroupProps, CarouselIndicatorProps as IndicatorProps, CarouselItem as Item, CarouselItemBaseProps as ItemBaseProps, CarouselItemGroup as ItemGroup, CarouselItemGroupBaseProps as ItemGroupBaseProps, CarouselItemGroupProps as ItemGroupProps, CarouselItemProps as ItemProps, CarouselNextTrigger as NextTrigger, CarouselNextTriggerBaseProps as NextTriggerBaseProps, CarouselNextTriggerProps as NextTriggerProps, PageChangeDetails, CarouselPrevTrigger as PrevTrigger, CarouselPrevTriggerBaseProps as PrevTriggerBaseProps, CarouselPrevTriggerProps as PrevTriggerProps, CarouselProgressText as ProgressText, CarouselProgressTextBaseProps as ProgressTextBaseProps, CarouselProgressTextProps as ProgressTextProps, CarouselRoot as Root, CarouselRootBaseProps as RootBaseProps, CarouselRootProps as RootProps, CarouselRootProvider as RootProvider, CarouselRootProviderBaseProps as RootProviderBaseProps, CarouselRootProviderProps as RootProviderProps };
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { carousel_d_exports as Carousel, CarouselAutoplayIndicator, type CarouselAutoplayIndicatorBaseProps, type CarouselAutoplayIndicatorProps, type CarouselAutoplayStatusDetails, CarouselAutoplayTrigger, type CarouselAutoplayTriggerBaseProps, type CarouselAutoplayTriggerProps, CarouselContext, type CarouselContextProps, CarouselControl, type CarouselControlBaseProps, type CarouselControlProps, type CarouselDragStatusDetails, CarouselIndicator, type CarouselIndicatorBaseProps, CarouselIndicatorGroup, type CarouselIndicatorGroupBaseProps, type CarouselIndicatorGroupProps, type CarouselIndicatorProps, CarouselItem, type CarouselItemBaseProps, CarouselItemGroup, type CarouselItemGroupBaseProps, type CarouselItemGroupProps, type CarouselItemProps, CarouselNextTrigger, type CarouselNextTriggerBaseProps, type CarouselNextTriggerProps, type CarouselPageChangeDetails, CarouselPrevTrigger, type CarouselPrevTriggerBaseProps, type CarouselPrevTriggerProps, CarouselProgressText, type CarouselProgressTextBaseProps, type CarouselProgressTextProps, CarouselRoot, type CarouselRootBaseProps, type CarouselRootProps, CarouselRootProvider, type CarouselRootProviderBaseProps, type CarouselRootProviderProps, type UseCarouselContext, type UseCarouselProps, type UseCarouselReturn, carouselAnatomy, useCarousel, useCarouselContext };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { r as PropTypes } from "../../index-BJvW7OpY.mjs";
|
|
2
|
+
import { r as Optional } from "../../types-BmBABPZb.mjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-C-EBNsCW.mjs";
|
|
4
|
+
import * as react46 from "react";
|
|
5
|
+
import { ReactNode } from "react";
|
|
6
|
+
import * as carousel from "@sprawlify/primitives/machines/carousel";
|
|
7
|
+
import { AutoplayStatusDetails, AutoplayStatusDetails as CarouselAutoplayStatusDetails, DragStatusDetails, DragStatusDetails as CarouselDragStatusDetails, IndicatorProps, ItemProps, PageChangeDetails, PageChangeDetails as CarouselPageChangeDetails } from "@sprawlify/primitives/machines/carousel";
|
|
8
|
+
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
9
|
+
|
|
10
|
+
//#region src/components/carousel/carousel-autoplay-indicator.d.ts
|
|
11
|
+
interface CarouselAutoplayIndicatorBaseProps extends PolymorphicProps {
|
|
12
|
+
fallback?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
interface CarouselAutoplayIndicatorProps extends HTMLProps<"span">, CarouselAutoplayIndicatorBaseProps {}
|
|
15
|
+
declare const CarouselAutoplayIndicator: react46.ForwardRefExoticComponent<CarouselAutoplayIndicatorProps & react46.RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/carousel/carousel-progress-text.d.ts
|
|
18
|
+
interface CarouselProgressTextBaseProps extends PolymorphicProps {}
|
|
19
|
+
interface CarouselProgressTextProps extends HTMLProps<"span">, CarouselProgressTextBaseProps {}
|
|
20
|
+
declare const CarouselProgressText: react46.ForwardRefExoticComponent<CarouselProgressTextProps & react46.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/carousel/carousel-autoplay-trigger.d.ts
|
|
23
|
+
interface CarouselAutoplayTriggerBaseProps extends PolymorphicProps {}
|
|
24
|
+
interface CarouselAutoplayTriggerProps extends HTMLProps<"button">, CarouselAutoplayTriggerBaseProps {}
|
|
25
|
+
declare const CarouselAutoplayTrigger: react46.ForwardRefExoticComponent<CarouselAutoplayTriggerProps & react46.RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/carousel/use-carousel.d.ts
|
|
28
|
+
interface UseCarouselProps extends Optional<Omit<carousel.Props, "dir" | "getRootNode">, "id"> {}
|
|
29
|
+
interface UseCarouselReturn extends carousel.Api<PropTypes> {}
|
|
30
|
+
declare const useCarousel: (props: UseCarouselProps) => UseCarouselReturn;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/carousel/use-carousel-context.d.ts
|
|
33
|
+
interface UseCarouselContext extends UseCarouselReturn {}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/components/carousel/carousel-context.d.ts
|
|
36
|
+
interface CarouselContextProps {
|
|
37
|
+
children: (context: UseCarouselContext) => ReactNode;
|
|
38
|
+
}
|
|
39
|
+
declare const CarouselContext: (props: CarouselContextProps) => ReactNode;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/carousel/carousel-control.d.ts
|
|
42
|
+
interface CarouselControlBaseProps extends PolymorphicProps {}
|
|
43
|
+
interface CarouselControlProps extends HTMLProps<"div">, CarouselControlBaseProps {}
|
|
44
|
+
declare const CarouselControl: react46.ForwardRefExoticComponent<CarouselControlProps & react46.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/carousel/carousel-indicator.d.ts
|
|
47
|
+
interface CarouselIndicatorBaseProps extends IndicatorProps, PolymorphicProps {}
|
|
48
|
+
interface CarouselIndicatorProps extends HTMLProps<"button">, CarouselIndicatorBaseProps {}
|
|
49
|
+
declare const CarouselIndicator: react46.ForwardRefExoticComponent<CarouselIndicatorProps & react46.RefAttributes<HTMLButtonElement>>;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/carousel/carousel-indicator-group.d.ts
|
|
52
|
+
interface CarouselIndicatorGroupBaseProps extends PolymorphicProps {}
|
|
53
|
+
interface CarouselIndicatorGroupProps extends HTMLProps<"div">, CarouselIndicatorGroupBaseProps {}
|
|
54
|
+
declare const CarouselIndicatorGroup: react46.ForwardRefExoticComponent<CarouselIndicatorGroupProps & react46.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/carousel/carousel-item.d.ts
|
|
57
|
+
interface CarouselItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
58
|
+
interface CarouselItemProps extends HTMLProps<"div">, CarouselItemBaseProps {}
|
|
59
|
+
declare const CarouselItem: react46.ForwardRefExoticComponent<CarouselItemProps & react46.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/carousel/carousel-item-group.d.ts
|
|
62
|
+
interface CarouselItemGroupBaseProps extends PolymorphicProps {}
|
|
63
|
+
interface CarouselItemGroupProps extends HTMLProps<"div">, CarouselItemGroupBaseProps {}
|
|
64
|
+
declare const CarouselItemGroup: react46.ForwardRefExoticComponent<CarouselItemGroupProps & react46.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/carousel/carousel-next-trigger.d.ts
|
|
67
|
+
interface CarouselNextTriggerBaseProps extends PolymorphicProps {}
|
|
68
|
+
interface CarouselNextTriggerProps extends HTMLProps<"button">, CarouselNextTriggerBaseProps {}
|
|
69
|
+
declare const CarouselNextTrigger: react46.ForwardRefExoticComponent<CarouselNextTriggerProps & react46.RefAttributes<HTMLButtonElement>>;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/carousel/carousel-prev-trigger.d.ts
|
|
72
|
+
interface CarouselPrevTriggerBaseProps extends PolymorphicProps {}
|
|
73
|
+
interface CarouselPrevTriggerProps extends HTMLProps<"button">, CarouselPrevTriggerBaseProps {}
|
|
74
|
+
declare const CarouselPrevTrigger: react46.ForwardRefExoticComponent<CarouselPrevTriggerProps & react46.RefAttributes<HTMLButtonElement>>;
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/carousel/carousel-root.d.ts
|
|
77
|
+
interface CarouselRootBaseProps extends UseCarouselProps, PolymorphicProps {}
|
|
78
|
+
interface CarouselRootProps extends HTMLProps<"div">, CarouselRootBaseProps {}
|
|
79
|
+
declare const CarouselRoot: react46.ForwardRefExoticComponent<CarouselRootProps & react46.RefAttributes<HTMLDivElement>>;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/carousel/carousel-root-provider.d.ts
|
|
82
|
+
interface RootProviderProps {
|
|
83
|
+
value: UseCarouselReturn;
|
|
84
|
+
}
|
|
85
|
+
interface CarouselRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
86
|
+
interface CarouselRootProviderProps extends HTMLProps<"div">, CarouselRootProviderBaseProps {}
|
|
87
|
+
declare const CarouselRootProvider: react46.ForwardRefExoticComponent<CarouselRootProviderProps & react46.RefAttributes<HTMLDivElement>>;
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/components/carousel/carousel-anatomy.d.ts
|
|
90
|
+
declare const carouselAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"item" | "root" | "itemGroup" | "control" | "prevTrigger" | "nextTrigger" | "indicator" | "indicatorGroup" | "autoplayTrigger" | "progressText" | "autoplayIndicator">;
|
|
91
|
+
declare namespace carousel_d_exports {
|
|
92
|
+
export { CarouselAutoplayIndicator as AutoplayIndicator, CarouselAutoplayIndicatorBaseProps as AutoplayIndicatorBaseProps, CarouselAutoplayIndicatorProps as AutoplayIndicatorProps, AutoplayStatusDetails, CarouselAutoplayTrigger as AutoplayTrigger, CarouselAutoplayTriggerBaseProps as AutoplayTriggerBaseProps, CarouselAutoplayTriggerProps as AutoplayTriggerProps, CarouselContext as Context, CarouselContextProps as ContextProps, CarouselControl as Control, CarouselControlBaseProps as ControlBaseProps, CarouselControlProps as ControlProps, DragStatusDetails, CarouselIndicator as Indicator, CarouselIndicatorBaseProps as IndicatorBaseProps, CarouselIndicatorGroup as IndicatorGroup, CarouselIndicatorGroupBaseProps as IndicatorGroupBaseProps, CarouselIndicatorGroupProps as IndicatorGroupProps, CarouselIndicatorProps as IndicatorProps, CarouselItem as Item, CarouselItemBaseProps as ItemBaseProps, CarouselItemGroup as ItemGroup, CarouselItemGroupBaseProps as ItemGroupBaseProps, CarouselItemGroupProps as ItemGroupProps, CarouselItemProps as ItemProps, CarouselNextTrigger as NextTrigger, CarouselNextTriggerBaseProps as NextTriggerBaseProps, CarouselNextTriggerProps as NextTriggerProps, PageChangeDetails, CarouselPrevTrigger as PrevTrigger, CarouselPrevTriggerBaseProps as PrevTriggerBaseProps, CarouselPrevTriggerProps as PrevTriggerProps, CarouselProgressText as ProgressText, CarouselProgressTextBaseProps as ProgressTextBaseProps, CarouselProgressTextProps as ProgressTextProps, CarouselRoot as Root, CarouselRootBaseProps as RootBaseProps, CarouselRootProps as RootProps, CarouselRootProvider as RootProvider, CarouselRootProviderBaseProps as RootProviderBaseProps, CarouselRootProviderProps as RootProviderProps };
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { carousel_d_exports as Carousel, CarouselAutoplayIndicator, type CarouselAutoplayIndicatorBaseProps, type CarouselAutoplayIndicatorProps, type CarouselAutoplayStatusDetails, CarouselAutoplayTrigger, type CarouselAutoplayTriggerBaseProps, type CarouselAutoplayTriggerProps, CarouselContext, type CarouselContextProps, CarouselControl, type CarouselControlBaseProps, type CarouselControlProps, type CarouselDragStatusDetails, CarouselIndicator, type CarouselIndicatorBaseProps, CarouselIndicatorGroup, type CarouselIndicatorGroupBaseProps, type CarouselIndicatorGroupProps, type CarouselIndicatorProps, CarouselItem, type CarouselItemBaseProps, CarouselItemGroup, type CarouselItemGroupBaseProps, type CarouselItemGroupProps, type CarouselItemProps, CarouselNextTrigger, type CarouselNextTriggerBaseProps, type CarouselNextTriggerProps, type CarouselPageChangeDetails, CarouselPrevTrigger, type CarouselPrevTriggerBaseProps, type CarouselPrevTriggerProps, CarouselProgressText, type CarouselProgressTextBaseProps, type CarouselProgressTextProps, CarouselRoot, type CarouselRootBaseProps, type CarouselRootProps, CarouselRootProvider, type CarouselRootProviderBaseProps, type CarouselRootProviderProps, type UseCarouselContext, type UseCarouselProps, type UseCarouselReturn, carouselAnatomy, useCarousel, useCarouselContext };
|