@sprawlify/react 0.0.9 → 0.0.11
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/{collapsible-vqmKK3px.mjs → collapsible-pBuZr56X.mjs} +7 -7
- package/dist/{collection-BYYMj_V8.mjs → collection-ZQpeUlrg.mjs} +2 -2
- package/dist/components/accordion/index.d.cts +11 -11
- package/dist/components/accordion/index.d.mts +11 -11
- package/dist/components/accordion/index.mjs +10 -10
- package/dist/components/angle-slider/index.d.cts +13 -13
- package/dist/components/angle-slider/index.d.mts +13 -13
- package/dist/components/angle-slider/index.mjs +8 -8
- package/dist/components/avatar/index.d.cts +8 -8
- package/dist/components/avatar/index.d.mts +8 -8
- package/dist/components/avatar/index.mjs +8 -8
- package/dist/components/bottom-sheet/index.d.cts +15 -15
- package/dist/components/bottom-sheet/index.d.mts +16 -16
- package/dist/components/bottom-sheet/index.mjs +12 -12
- package/dist/components/carousel/index.d.cts +18 -18
- package/dist/components/carousel/index.d.mts +18 -18
- package/dist/components/carousel/index.mjs +8 -8
- package/dist/components/checkbox/index.d.cts +14 -14
- package/dist/components/checkbox/index.d.mts +14 -14
- package/dist/components/checkbox/index.mjs +13 -13
- package/dist/components/clipboard/index.d.cts +12 -12
- package/dist/components/clipboard/index.d.mts +12 -12
- package/dist/components/clipboard/index.mjs +6 -6
- package/dist/components/collapsible/index.d.cts +10 -10
- package/dist/components/collapsible/index.d.mts +10 -10
- package/dist/components/collapsible/index.mjs +7 -7
- package/dist/components/collection/index.d.cts +1 -1
- package/dist/components/collection/index.d.mts +1 -1
- package/dist/components/collection/index.mjs +3 -3
- package/dist/components/color-picker/index.d.cts +35 -35
- package/dist/components/color-picker/index.d.mts +36 -36
- package/dist/components/color-picker/index.mjs +14 -14
- package/dist/components/combobox/index.d.cts +22 -22
- package/dist/components/combobox/index.d.mts +23 -23
- package/dist/components/combobox/index.mjs +15 -15
- package/dist/components/date-picker/index.d.cts +32 -32
- package/dist/components/date-picker/index.d.mts +33 -33
- package/dist/components/date-picker/index.mjs +11 -11
- package/dist/components/dialog/index.d.cts +15 -15
- package/dist/components/dialog/index.d.mts +16 -16
- package/dist/components/dialog/index.mjs +11 -11
- package/dist/components/download-trigger/index.d.cts +4 -4
- package/dist/components/download-trigger/index.d.mts +4 -4
- package/dist/components/download-trigger/index.mjs +5 -5
- package/dist/components/editable/index.d.cts +13 -13
- package/dist/components/editable/index.d.mts +13 -13
- package/dist/components/editable/index.mjs +11 -11
- package/dist/components/field/index.d.cts +14 -14
- package/dist/components/field/index.d.mts +14 -14
- package/dist/components/field/index.mjs +9 -9
- package/dist/components/fieldset/index.d.cts +10 -10
- package/dist/components/fieldset/index.d.mts +8 -8
- package/dist/components/fieldset/index.mjs +9 -9
- package/dist/components/file-upload/index.d.cts +18 -18
- package/dist/components/file-upload/index.d.mts +18 -18
- package/dist/components/file-upload/index.mjs +11 -11
- package/dist/components/floating-panel/index.d.cts +19 -19
- package/dist/components/floating-panel/index.d.mts +20 -20
- package/dist/components/floating-panel/index.mjs +11 -11
- package/dist/components/focus-trap/index.d.cts +4 -4
- package/dist/components/focus-trap/index.d.mts +4 -4
- package/dist/components/focus-trap/index.mjs +4 -4
- package/dist/components/format/index.d.cts +4 -4
- package/dist/components/format/index.d.mts +4 -4
- package/dist/components/format/index.mjs +3 -3
- package/dist/components/frame/index.d.cts +3 -3
- package/dist/components/frame/index.d.mts +3 -3
- package/dist/components/frame/index.mjs +6 -6
- package/dist/components/highlight/index.d.cts +3 -3
- package/dist/components/highlight/index.d.mts +3 -3
- package/dist/components/highlight/index.mjs +1 -1
- package/dist/components/hover-card/index.d.cts +13 -13
- package/dist/components/hover-card/index.d.mts +14 -14
- package/dist/components/hover-card/index.mjs +10 -10
- package/dist/components/image-cropper/index.d.cts +11 -11
- package/dist/components/image-cropper/index.d.mts +11 -11
- package/dist/components/image-cropper/index.mjs +8 -8
- package/dist/components/json-tree-view/index.d.cts +5 -5
- package/dist/components/json-tree-view/index.d.mts +9 -9
- package/dist/components/json-tree-view/index.mjs +13 -13
- package/dist/components/listbox/index.d.cts +17 -17
- package/dist/components/listbox/index.d.mts +17 -17
- package/dist/components/listbox/index.mjs +10 -10
- package/dist/components/marquee/index.d.cts +10 -10
- package/dist/components/marquee/index.d.mts +10 -10
- package/dist/components/marquee/index.mjs +8 -8
- package/dist/components/menu/index.d.cts +25 -25
- package/dist/components/menu/index.d.mts +28 -28
- package/dist/components/menu/index.mjs +11 -11
- package/dist/components/navigation-menu/index.d.cts +17 -17
- package/dist/components/navigation-menu/index.d.mts +17 -17
- package/dist/components/navigation-menu/index.mjs +13 -13
- package/dist/components/number-input/index.d.cts +13 -13
- package/dist/components/number-input/index.d.mts +13 -13
- package/dist/components/number-input/index.mjs +11 -11
- package/dist/components/pagination/index.d.cts +12 -12
- package/dist/components/pagination/index.d.mts +12 -12
- package/dist/components/pagination/index.mjs +8 -8
- package/dist/components/password-input/index.d.cts +11 -11
- package/dist/components/password-input/index.d.mts +11 -11
- package/dist/components/password-input/index.mjs +11 -11
- package/dist/components/pin-input/index.d.cts +10 -10
- package/dist/components/pin-input/index.d.mts +10 -10
- package/dist/components/pin-input/index.mjs +11 -11
- package/dist/components/popover/index.d.cts +18 -18
- package/dist/components/popover/index.d.mts +19 -19
- package/dist/components/popover/index.mjs +10 -10
- package/dist/components/portal/index.d.cts +2 -2
- package/dist/components/portal/index.d.mts +2 -2
- package/dist/components/portal/index.mjs +5 -5
- package/dist/components/presence/index.d.cts +1 -1
- package/dist/components/presence/index.d.mts +3 -3
- package/dist/components/presence/index.mjs +5 -5
- package/dist/components/progress/index.cjs +222 -0
- package/dist/components/progress/index.d.cts +79 -0
- package/dist/components/progress/index.d.mts +79 -0
- package/dist/components/progress/index.mjs +197 -0
- package/dist/components/qr-code/index.cjs +166 -0
- package/dist/components/qr-code/index.d.cts +59 -0
- package/dist/components/qr-code/index.d.mts +59 -0
- package/dist/components/qr-code/index.mjs +145 -0
- package/dist/components/radio-group/index.cjs +240 -0
- package/dist/components/radio-group/index.d.cts +78 -0
- package/dist/components/radio-group/index.d.mts +78 -0
- package/dist/components/radio-group/index.mjs +215 -0
- package/dist/components/rating-group/index.cjs +202 -0
- package/dist/components/rating-group/index.d.cts +68 -0
- package/dist/components/rating-group/index.d.mts +68 -0
- package/dist/components/rating-group/index.mjs +179 -0
- package/dist/components/scroll-area/index.cjs +180 -0
- package/dist/components/scroll-area/index.d.cts +68 -0
- package/dist/components/scroll-area/index.d.mts +68 -0
- package/dist/components/scroll-area/index.mjs +158 -0
- package/dist/components/segment-group/index.cjs +233 -0
- package/dist/components/segment-group/index.d.cts +82 -0
- package/dist/components/segment-group/index.d.mts +82 -0
- package/dist/components/segment-group/index.mjs +213 -0
- package/dist/components/select/index.d.cts +21 -21
- package/dist/components/select/index.d.mts +22 -22
- package/dist/components/select/index.mjs +15 -15
- package/dist/components/signature-pad/index.cjs +213 -0
- package/dist/components/signature-pad/index.d.cts +69 -0
- package/dist/components/signature-pad/index.d.mts +69 -0
- package/dist/components/signature-pad/index.mjs +190 -0
- package/dist/components/slider/index.cjs +278 -0
- package/dist/components/slider/index.d.cts +89 -0
- package/dist/components/slider/index.d.mts +89 -0
- package/dist/components/slider/index.mjs +251 -0
- package/dist/components/splitter/index.cjs +177 -0
- package/dist/components/splitter/index.d.cts +54 -0
- package/dist/components/splitter/index.d.mts +54 -0
- package/dist/components/splitter/index.mjs +151 -0
- package/dist/components/steps/index.cjs +289 -0
- package/dist/components/steps/index.d.cts +104 -0
- package/dist/components/steps/index.d.mts +104 -0
- package/dist/components/steps/index.mjs +260 -0
- package/dist/components/switch/index.cjs +180 -0
- package/dist/components/switch/index.d.cts +59 -0
- package/dist/components/switch/index.d.mts +59 -0
- package/dist/components/switch/index.mjs +159 -0
- package/dist/components/tabs/index.cjs +191 -0
- package/dist/components/tabs/index.d.cts +60 -0
- package/dist/components/tabs/index.d.mts +60 -0
- package/dist/components/tabs/index.mjs +170 -0
- package/dist/components/tags-input/index.cjs +318 -0
- package/dist/components/tags-input/index.d.cts +98 -0
- package/dist/components/tags-input/index.d.mts +98 -0
- package/dist/components/tags-input/index.mjs +289 -0
- package/dist/components/timer/index.cjs +179 -0
- package/dist/components/timer/index.d.cts +64 -0
- package/dist/components/timer/index.d.mts +64 -0
- package/dist/components/timer/index.mjs +157 -0
- package/dist/components/toast/index.cjs +165 -0
- package/dist/components/toast/index.d.cts +60 -0
- package/dist/components/toast/index.d.mts +60 -0
- package/dist/components/toast/index.mjs +144 -0
- package/dist/components/toggle/index.cjs +93 -0
- package/dist/components/toggle/index.d.cts +40 -0
- package/dist/components/toggle/index.d.mts +40 -0
- package/dist/components/toggle/index.mjs +80 -0
- package/dist/components/toggle-group/index.cjs +127 -0
- package/dist/components/toggle-group/index.d.cts +44 -0
- package/dist/components/toggle-group/index.d.mts +44 -0
- package/dist/components/toggle-group/index.mjs +109 -0
- package/dist/components/tooltip/index.cjs +165 -0
- package/dist/components/tooltip/index.d.cts +70 -0
- package/dist/components/tooltip/index.d.mts +71 -0
- package/dist/components/tooltip/index.mjs +143 -0
- package/dist/components/tour/index.cjs +274 -0
- package/dist/components/tour/index.d.cts +108 -0
- package/dist/components/tour/index.d.mts +109 -0
- package/dist/components/tour/index.mjs +250 -0
- package/dist/components/tree-view/index.d.cts +2 -2
- package/dist/components/tree-view/index.d.mts +5 -5
- package/dist/components/tree-view/index.mjs +11 -11
- package/dist/{environment-Cc02I6aF.mjs → environment-tlwGXNO0.mjs} +1 -1
- package/dist/{factory-7ydMApfi.mjs → factory-cfMsSoBo.mjs} +1 -1
- package/dist/{field-BXY6su53.mjs → field-gOd2zfjb.mjs} +9 -9
- package/dist/{fieldset-BeHm9oxe.mjs → fieldset-BEq6qoMh.mjs} +8 -8
- package/dist/{index-Cquz7y70.d.cts → index-BCPLfgXO.d.cts} +3 -3
- package/dist/{index-wlpTZGhs.d.mts → index-BFMTj3aZ.d.mts} +25 -25
- package/dist/{index-aYGfRRLA.d.cts → index-BTuBtHhO.d.cts} +7 -7
- package/dist/{index-DTzLUoop.d.cts → index-CceDvJme.d.cts} +25 -25
- package/dist/{index-BcXWsxRa.d.mts → index-Z3NG9Uo-.d.mts} +3 -3
- package/dist/{index-Bkxp7VrU.d.mts → index-zgzvveQM.d.mts} +7 -7
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +7 -7
- package/dist/{locale-D4LX0eEq.mjs → locale-BmYiujeK.mjs} +1 -1
- package/dist/{portal-BOhFScBS.mjs → portal-KVRub3AL.mjs} +1 -1
- package/dist/{presence-C9BcvdTf.mjs → presence-CxbyNsuo.mjs} +6 -6
- package/dist/{render-strategy-BgIBKraZ.mjs → render-strategy-BakagjKt.mjs} +2 -2
- package/dist/{tree-view-CzJvwlYQ.mjs → tree-view-D3_iO1Yt.mjs} +9 -9
- package/dist/{use-fieldset-context-6GRSrrlt.mjs → use-fieldset-context-BhJsLpTP.mjs} +1 -1
- 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 +192 -2
- /package/dist/{chunk-BU8PiJgx.mjs → chunk-Bw6_Qrqn.mjs} +0 -0
- /package/dist/{compose-refs-Cl5LpASY.mjs → compose-refs-DSWOgxGb.mjs} +0 -0
- /package/dist/{core-79NSyZp-.mjs → core-CAwCcfBy.mjs} +0 -0
- /package/dist/{create-context-DbhrVE2B.mjs → create-context-B-_JrOL2.mjs} +0 -0
- /package/dist/{create-split-props-BJdRM9I_.mjs → create-split-props-BjYU0VXX.mjs} +0 -0
- /package/dist/{factory-DaVlp4Ba.d.mts → factory-Fen9bAK7.d.mts} +0 -0
- /package/dist/{factory-fcFI3pbG.d.cts → factory-dXEes8-E.d.cts} +0 -0
- /package/dist/{index-DPoOdvOg.d.mts → index-BHMQ8oZ_.d.mts} +0 -0
- /package/dist/{index-BLd57Y0z.d.mts → index-BVPDbcQQ.d.mts} +0 -0
- /package/dist/{index-CReeoTjv.d.cts → index-D5x5-_6p.d.cts} +0 -0
- /package/dist/{index-BoLg0FWF.d.mts → index-DFbafCkW.d.mts} +0 -0
- /package/dist/{index-r8rv70-L.d.cts → index-Kf5h4wwZ.d.cts} +0 -0
- /package/dist/{normalize-props-Dw0EepzR.d.cts → normalize-props-Ddn7AQaE.d.cts} +0 -0
- /package/dist/{providers-CoJceYkV.mjs → providers-DPvEY1gv.mjs} +0 -0
- /package/dist/{render-strategy-M8NkD01w.d.cts → render-strategy-B_O9rJFa.d.cts} +0 -0
- /package/dist/{render-strategy-CRwPcG33.d.mts → render-strategy-DHJmxfwl.d.mts} +0 -0
- /package/dist/{types-CrwpJrFp.d.mts → types-0lfB8uM7.d.cts} +0 -0
- /package/dist/{types-DcUAwTQC.d.cts → types-C61WyxPn.d.mts} +0 -0
- /package/dist/{use-event-B4e6iJDK.mjs → use-event-CjjVkASI.mjs} +0 -0
- /package/dist/{use-safe-layout-effect-DPn_9-dD.mjs → use-safe-layout-effect-B6ZrTy_c.mjs} +0 -0
- /package/dist/{utils-BQJFlkDE.mjs → utils-BFOdioBT.mjs} +0 -0
|
@@ -0,0 +1,274 @@
|
|
|
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_compose_refs = require('../../compose-refs-C5QNDywq.cjs');
|
|
8
|
+
const require_factory = require('../../factory-C166evrS.cjs');
|
|
9
|
+
const require_create_split_props = require('../../create-split-props-Dp4TWOyM.cjs');
|
|
10
|
+
const require_render_strategy = require('../../render-strategy-BywM_IvB.cjs');
|
|
11
|
+
const require_presence = require('../../presence-CPov8wyU.cjs');
|
|
12
|
+
require('../../use-event-CLH8zHoJ.cjs');
|
|
13
|
+
let react = require("react");
|
|
14
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
|
+
let __sprawlify_primitives_machines_tour = require("@sprawlify/primitives/machines/tour");
|
|
16
|
+
__sprawlify_primitives_machines_tour = require_chunk.__toESM(__sprawlify_primitives_machines_tour);
|
|
17
|
+
let __sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
18
|
+
|
|
19
|
+
//#region src/components/tour/use-tour-context.ts
|
|
20
|
+
const [TourProvider, useTourContext] = require_create_context.createContext({
|
|
21
|
+
name: "TourContext",
|
|
22
|
+
hookName: "useTourContext",
|
|
23
|
+
providerName: "<TourProvider />"
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/tour/tour-action-trigger.tsx
|
|
28
|
+
const splitActionTriggerProps = require_create_split_props.createSplitProps();
|
|
29
|
+
const TourActionTrigger = (0, react.forwardRef)((props, ref) => {
|
|
30
|
+
const [actionTriggerProps, localProps] = splitActionTriggerProps(props, ["action"]);
|
|
31
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useTourContext().getActionTriggerProps(actionTriggerProps), localProps);
|
|
32
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
33
|
+
...mergedProps,
|
|
34
|
+
ref,
|
|
35
|
+
children: mergedProps.children || actionTriggerProps.action.label
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
TourActionTrigger.displayName = "TourActionTrigger";
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/tour/tour-actions.tsx
|
|
42
|
+
const TourActions = (props) => props.children(useTourContext().step?.actions ?? []);
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/components/tour/tour-arrow.tsx
|
|
46
|
+
const TourArrow = (0, react.forwardRef)((props, ref) => {
|
|
47
|
+
const tour = useTourContext();
|
|
48
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(tour.getArrowProps(), props);
|
|
49
|
+
return tour.step?.arrow ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
50
|
+
...mergedProps,
|
|
51
|
+
ref
|
|
52
|
+
}) : null;
|
|
53
|
+
});
|
|
54
|
+
TourArrow.displayName = "TourArrow";
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/tour/tour-arrow-tip.tsx
|
|
58
|
+
const TourArrowTip = (0, react.forwardRef)((props, ref) => {
|
|
59
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useTourContext().getArrowTipProps(), props);
|
|
60
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
61
|
+
...mergedProps,
|
|
62
|
+
ref
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
TourArrowTip.displayName = "TourArrowTip";
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/components/tour/tour-backdrop.tsx
|
|
69
|
+
const TourBackdrop = (0, react.forwardRef)((props, ref) => {
|
|
70
|
+
const tour = useTourContext();
|
|
71
|
+
const presence = require_presence.usePresence({
|
|
72
|
+
...require_render_strategy.useRenderStrategyPropsContext(),
|
|
73
|
+
present: tour.open
|
|
74
|
+
});
|
|
75
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(tour.getBackdropProps(), presence.getPresenceProps(), props);
|
|
76
|
+
if (presence.unmounted) return null;
|
|
77
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
78
|
+
...mergedProps,
|
|
79
|
+
ref: require_compose_refs.composeRefs(presence.ref, ref),
|
|
80
|
+
hidden: !tour.step?.backdrop
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
TourBackdrop.displayName = "TourBackdrop";
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/tour/tour-close-trigger.tsx
|
|
87
|
+
const TourCloseTrigger = (0, react.forwardRef)((props, ref) => {
|
|
88
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useTourContext().getCloseTriggerProps(), props);
|
|
89
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
90
|
+
...mergedProps,
|
|
91
|
+
ref
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
TourCloseTrigger.displayName = "TourCloseTrigger";
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/tour/tour-content.tsx
|
|
98
|
+
const TourContent = (0, react.forwardRef)((props, ref) => {
|
|
99
|
+
const tour = useTourContext();
|
|
100
|
+
const presence = require_presence.usePresenceContext();
|
|
101
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(tour.getContentProps(), presence.getPresenceProps(), props);
|
|
102
|
+
if (presence.unmounted) return null;
|
|
103
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
104
|
+
...mergedProps,
|
|
105
|
+
ref: require_compose_refs.composeRefs(presence.ref, ref)
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
TourContent.displayName = "TourContent";
|
|
109
|
+
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/components/tour/tour-context.tsx
|
|
112
|
+
const TourContext = (props) => props.children(useTourContext());
|
|
113
|
+
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/tour/tour-anatomy.ts
|
|
116
|
+
const tourAnatomy = __sprawlify_primitives_machines_tour.anatomy.extendWith("control");
|
|
117
|
+
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/components/tour/tour-control.tsx
|
|
120
|
+
const TourControl = (0, react.forwardRef)((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
121
|
+
...tourAnatomy.build().control.attrs,
|
|
122
|
+
...props,
|
|
123
|
+
ref
|
|
124
|
+
}));
|
|
125
|
+
TourControl.displayName = "TourControl";
|
|
126
|
+
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/components/tour/tour-description.tsx
|
|
129
|
+
const TourDescription = (0, react.forwardRef)((props, ref) => {
|
|
130
|
+
const tour = useTourContext();
|
|
131
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(tour.getDescriptionProps(), props);
|
|
132
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
133
|
+
...mergedProps,
|
|
134
|
+
ref,
|
|
135
|
+
children: mergedProps.children || tour.step?.description
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
TourDescription.displayName = "TourDescription";
|
|
139
|
+
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/components/tour/tour-positioner.tsx
|
|
142
|
+
const TourPositioner = (0, react.forwardRef)((props, ref) => {
|
|
143
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(useTourContext().getPositionerProps(), props);
|
|
144
|
+
if (require_presence.usePresenceContext().unmounted) return null;
|
|
145
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
146
|
+
...mergedProps,
|
|
147
|
+
ref
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
TourPositioner.displayName = "TourPositioner";
|
|
151
|
+
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/components/tour/tour-progress-text.tsx
|
|
154
|
+
const TourProgressText = (0, react.forwardRef)((props, ref) => {
|
|
155
|
+
const tour = useTourContext();
|
|
156
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(tour.getProgressTextProps(), props);
|
|
157
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
158
|
+
...mergedProps,
|
|
159
|
+
ref,
|
|
160
|
+
children: mergedProps.children || tour.getProgressText()
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
TourProgressText.displayName = "TourProgressText";
|
|
164
|
+
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/components/tour/tour-root.tsx
|
|
167
|
+
const TourRoot = (props) => {
|
|
168
|
+
const [presenceProps, { children, tour }] = require_presence.splitPresenceProps(props);
|
|
169
|
+
const [renderStrategyProps] = require_render_strategy.splitRenderStrategyProps(presenceProps);
|
|
170
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TourProvider, {
|
|
171
|
+
value: tour,
|
|
172
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_render_strategy.RenderStrategyPropsProvider, {
|
|
173
|
+
value: renderStrategyProps,
|
|
174
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_presence.PresenceProvider, {
|
|
175
|
+
value: require_presence.usePresence((0, __sprawlify_primitives_core.mergeProps)({ present: tour.open }, presenceProps)),
|
|
176
|
+
children
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/components/tour/tour-spotlight.tsx
|
|
184
|
+
const TourSpotlight = (0, react.forwardRef)((props, ref) => {
|
|
185
|
+
const tour = useTourContext();
|
|
186
|
+
const presence = require_presence.usePresence({
|
|
187
|
+
...require_render_strategy.useRenderStrategyPropsContext(),
|
|
188
|
+
present: tour.open
|
|
189
|
+
});
|
|
190
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(tour.getSpotlightProps(), presence.getPresenceProps(), props);
|
|
191
|
+
const hidden = !tour.open || !tour.step?.target?.();
|
|
192
|
+
if (presence.unmounted) return null;
|
|
193
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
194
|
+
...mergedProps,
|
|
195
|
+
ref: require_compose_refs.composeRefs(presence.ref, ref),
|
|
196
|
+
hidden
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
TourSpotlight.displayName = "TourSpotlight";
|
|
200
|
+
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/components/tour/tour-title.tsx
|
|
203
|
+
const TourTitle = (0, react.forwardRef)((props, ref) => {
|
|
204
|
+
const tour = useTourContext();
|
|
205
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(tour.getTitleProps(), props);
|
|
206
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.h2, {
|
|
207
|
+
...mergedProps,
|
|
208
|
+
ref,
|
|
209
|
+
children: mergedProps.children || tour.step?.title
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
TourTitle.displayName = "TourTitle";
|
|
213
|
+
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/components/tour/use-tour.ts
|
|
216
|
+
const useTour = (props) => {
|
|
217
|
+
const id = (0, react.useId)();
|
|
218
|
+
const { getRootNode } = require_environment.useEnvironmentContext();
|
|
219
|
+
const { dir } = require_locale.useLocaleContext();
|
|
220
|
+
const machineProps = {
|
|
221
|
+
id,
|
|
222
|
+
dir,
|
|
223
|
+
getRootNode,
|
|
224
|
+
...props
|
|
225
|
+
};
|
|
226
|
+
const service = require_core.useMachine(__sprawlify_primitives_machines_tour.machine, machineProps);
|
|
227
|
+
return __sprawlify_primitives_machines_tour.connect(service, require_core.normalizeProps);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/components/tour/tour.ts
|
|
232
|
+
var tour_exports = /* @__PURE__ */ require_chunk.__export({
|
|
233
|
+
ActionTrigger: () => TourActionTrigger,
|
|
234
|
+
Actions: () => TourActions,
|
|
235
|
+
Arrow: () => TourArrow,
|
|
236
|
+
ArrowTip: () => TourArrowTip,
|
|
237
|
+
Backdrop: () => TourBackdrop,
|
|
238
|
+
CloseTrigger: () => TourCloseTrigger,
|
|
239
|
+
Content: () => TourContent,
|
|
240
|
+
Context: () => TourContext,
|
|
241
|
+
Control: () => TourControl,
|
|
242
|
+
Description: () => TourDescription,
|
|
243
|
+
Positioner: () => TourPositioner,
|
|
244
|
+
ProgressText: () => TourProgressText,
|
|
245
|
+
Root: () => TourRoot,
|
|
246
|
+
Spotlight: () => TourSpotlight,
|
|
247
|
+
Title: () => TourTitle
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
//#endregion
|
|
251
|
+
Object.defineProperty(exports, 'Tour', {
|
|
252
|
+
enumerable: true,
|
|
253
|
+
get: function () {
|
|
254
|
+
return tour_exports;
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
exports.TourActionTrigger = TourActionTrigger;
|
|
258
|
+
exports.TourActions = TourActions;
|
|
259
|
+
exports.TourArrow = TourArrow;
|
|
260
|
+
exports.TourArrowTip = TourArrowTip;
|
|
261
|
+
exports.TourBackdrop = TourBackdrop;
|
|
262
|
+
exports.TourCloseTrigger = TourCloseTrigger;
|
|
263
|
+
exports.TourContent = TourContent;
|
|
264
|
+
exports.TourContext = TourContext;
|
|
265
|
+
exports.TourControl = TourControl;
|
|
266
|
+
exports.TourDescription = TourDescription;
|
|
267
|
+
exports.TourPositioner = TourPositioner;
|
|
268
|
+
exports.TourProgressText = TourProgressText;
|
|
269
|
+
exports.TourRoot = TourRoot;
|
|
270
|
+
exports.TourSpotlight = TourSpotlight;
|
|
271
|
+
exports.TourTitle = TourTitle;
|
|
272
|
+
exports.tourAnatomy = tourAnatomy;
|
|
273
|
+
exports.useTour = useTour;
|
|
274
|
+
exports.useTourContext = useTourContext;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { t as PropTypes } from "../../normalize-props-Ddn7AQaE.cjs";
|
|
2
|
+
import { r as Optional } from "../../types-0lfB8uM7.cjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-dXEes8-E.cjs";
|
|
4
|
+
import { c as UsePresenceProps } from "../../index-BTuBtHhO.cjs";
|
|
5
|
+
import * as react541 from "react";
|
|
6
|
+
import { ReactNode } from "react";
|
|
7
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
8
|
+
import * as _sprawlify_primitives_anatomy9 from "@sprawlify/primitives/anatomy";
|
|
9
|
+
import * as tour from "@sprawlify/primitives/machines/tour";
|
|
10
|
+
import { FocusOutsideEvent, FocusOutsideEvent as TourFocusOutsideEvent, InteractOutsideEvent, InteractOutsideEvent as TourInteractOutsideEvent, Point, PointerDownOutsideEvent, PointerDownOutsideEvent as TourPointerDownOutsideEvent, ProgressTextDetails, StatusChangeDetails, StepAction, StepAction as StepAction$1, StepActionMap, StepActionTriggerProps, StepActionTriggerProps as StepActionTriggerProps$1, StepBaseDetails, StepChangeDetails, StepDetails, StepDetails as TourStepDetails, StepEffectArgs, StepPlacement, StepStatus, StepType } from "@sprawlify/primitives/machines/tour";
|
|
11
|
+
import { WaitForOptions as WaitOptions } from "@zag-js/dom-query";
|
|
12
|
+
|
|
13
|
+
//#region src/components/tour/tour-action-trigger.d.ts
|
|
14
|
+
interface TourActionTriggerBaseProps extends PolymorphicProps, StepActionTriggerProps {}
|
|
15
|
+
interface TourActionTriggerProps extends HTMLProps<"button">, TourActionTriggerBaseProps {}
|
|
16
|
+
declare const TourActionTrigger: react541.ForwardRefExoticComponent<TourActionTriggerProps & react541.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/tour/tour-actions.d.ts
|
|
19
|
+
interface TourActionsProps {
|
|
20
|
+
children: (actions: StepAction[]) => ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare const TourActions: (props: TourActionsProps) => ReactNode;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/tour/tour-arrow.d.ts
|
|
25
|
+
interface TourArrowBaseProps extends PolymorphicProps {}
|
|
26
|
+
interface TourArrowProps extends HTMLProps<"div">, TourArrowBaseProps {}
|
|
27
|
+
declare const TourArrow: react541.ForwardRefExoticComponent<TourArrowProps & react541.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/tour/tour-arrow-tip.d.ts
|
|
30
|
+
interface TourArrowTipBaseProps extends PolymorphicProps {}
|
|
31
|
+
interface TourArrowTipProps extends HTMLProps<"div">, TourArrowTipBaseProps {}
|
|
32
|
+
declare const TourArrowTip: react541.ForwardRefExoticComponent<TourArrowTipProps & react541.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/tour/tour-backdrop.d.ts
|
|
35
|
+
interface TourBackdropBaseProps extends PolymorphicProps {}
|
|
36
|
+
interface TourBackdropProps extends HTMLProps<"div">, TourBackdropBaseProps {}
|
|
37
|
+
declare const TourBackdrop: react541.ForwardRefExoticComponent<TourBackdropProps & react541.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/tour/tour-close-trigger.d.ts
|
|
40
|
+
interface TourCloseTriggerBaseProps extends PolymorphicProps {}
|
|
41
|
+
interface TourCloseTriggerProps extends HTMLProps<"button">, TourCloseTriggerBaseProps {}
|
|
42
|
+
declare const TourCloseTrigger: react541.ForwardRefExoticComponent<TourCloseTriggerProps & react541.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/tour/tour-content.d.ts
|
|
45
|
+
interface TourContentBaseProps extends PolymorphicProps {}
|
|
46
|
+
interface TourContentProps extends HTMLProps<"div">, TourContentBaseProps {}
|
|
47
|
+
declare const TourContent: react541.ForwardRefExoticComponent<TourContentProps & react541.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/tour/use-tour-context.d.ts
|
|
50
|
+
interface UseTourContext extends tour.Api<PropTypes> {}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/components/tour/tour-context.d.ts
|
|
53
|
+
interface TourContextProps {
|
|
54
|
+
children: (context: UseTourContext) => ReactNode;
|
|
55
|
+
}
|
|
56
|
+
declare const TourContext: (props: TourContextProps) => ReactNode;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/tour/tour-control.d.ts
|
|
59
|
+
interface TourControlBaseProps extends PolymorphicProps {}
|
|
60
|
+
interface TourControlProps extends HTMLProps<"div">, TourControlBaseProps {}
|
|
61
|
+
declare const TourControl: react541.ForwardRefExoticComponent<TourControlProps & react541.RefAttributes<HTMLDivElement>>;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/tour/tour-description.d.ts
|
|
64
|
+
interface TourDescriptionBaseProps extends PolymorphicProps {}
|
|
65
|
+
interface TourDescriptionProps extends HTMLProps<"div">, TourDescriptionBaseProps {}
|
|
66
|
+
declare const TourDescription: react541.ForwardRefExoticComponent<TourDescriptionProps & react541.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/components/tour/tour-positioner.d.ts
|
|
69
|
+
interface TourPositionerBaseProps extends PolymorphicProps {}
|
|
70
|
+
interface TourPositionerProps extends HTMLProps<"div">, TourPositionerBaseProps {}
|
|
71
|
+
declare const TourPositioner: react541.ForwardRefExoticComponent<TourPositionerProps & react541.RefAttributes<HTMLDivElement>>;
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/tour/tour-progress-text.d.ts
|
|
74
|
+
interface TourProgressTextBaseProps extends PolymorphicProps {}
|
|
75
|
+
interface TourProgressTextProps extends HTMLProps<"div">, TourProgressTextBaseProps {}
|
|
76
|
+
declare const TourProgressText: react541.ForwardRefExoticComponent<TourProgressTextProps & react541.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/tour/use-tour.d.ts
|
|
79
|
+
interface UseTourProps extends Optional<Omit<tour.Props, "dir" | "getRootNode">, "id"> {}
|
|
80
|
+
interface UseTourReturn extends tour.Api<PropTypes> {}
|
|
81
|
+
declare const useTour: (props?: UseTourProps) => UseTourReturn;
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/components/tour/tour-root.d.ts
|
|
84
|
+
interface TourRootBaseProps extends UsePresenceProps {
|
|
85
|
+
tour: UseTourReturn;
|
|
86
|
+
}
|
|
87
|
+
interface TourRootProps extends TourRootBaseProps {
|
|
88
|
+
children?: ReactNode | undefined;
|
|
89
|
+
}
|
|
90
|
+
declare const TourRoot: (props: TourRootProps) => react_jsx_runtime12.JSX.Element;
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/tour/tour-spotlight.d.ts
|
|
93
|
+
interface TourSpotlightBaseProps extends PolymorphicProps {}
|
|
94
|
+
interface TourSpotlightProps extends HTMLProps<"div">, TourSpotlightBaseProps {}
|
|
95
|
+
declare const TourSpotlight: react541.ForwardRefExoticComponent<TourSpotlightProps & react541.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/tour/tour-title.d.ts
|
|
98
|
+
interface TourTitleBaseProps extends PolymorphicProps {}
|
|
99
|
+
interface TourTitleProps extends HTMLProps<"h2">, TourTitleBaseProps {}
|
|
100
|
+
declare const TourTitle: react541.ForwardRefExoticComponent<TourTitleProps & react541.RefAttributes<HTMLHeadingElement>>;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/components/tour/tour-anatomy.d.ts
|
|
103
|
+
declare const tourAnatomy: _sprawlify_primitives_anatomy9.AnatomyInstance<"title" | "content" | "arrow" | "control" | "positioner" | "progressText" | "description" | "actionTrigger" | "closeTrigger" | "arrowTip" | "backdrop" | "spotlight">;
|
|
104
|
+
declare namespace tour_d_exports {
|
|
105
|
+
export { TourActionTrigger as ActionTrigger, TourActionTriggerBaseProps as ActionTriggerBaseProps, TourActionTriggerProps as ActionTriggerProps, TourActions as Actions, TourActionsProps as ActionsProps, TourArrow as Arrow, TourArrowBaseProps as ArrowBaseProps, TourArrowProps as ArrowProps, TourArrowTip as ArrowTip, TourArrowTipBaseProps as ArrowTipBaseProps, TourArrowTipProps as ArrowTipProps, TourBackdrop as Backdrop, TourBackdropBaseProps as BackdropBaseProps, TourBackdropProps as BackdropProps, TourCloseTrigger as CloseTrigger, TourCloseTriggerBaseProps as CloseTriggerBaseProps, TourCloseTriggerProps as CloseTriggerProps, TourContent as Content, TourContentBaseProps as ContentBaseProps, TourContentProps as ContentProps, TourContext as Context, TourContextProps as ContextProps, TourControl as Control, TourControlBaseProps as ControlBaseProps, TourControlProps as ControlProps, TourDescription as Description, TourDescriptionBaseProps as DescriptionBaseProps, TourDescriptionProps as DescriptionProps, FocusOutsideEvent, InteractOutsideEvent, Point, PointerDownOutsideEvent, TourPositioner as Positioner, TourPositionerBaseProps as PositionerBaseProps, TourPositionerProps as PositionerProps, TourProgressText as ProgressText, TourProgressTextBaseProps as ProgressTextBaseProps, ProgressTextDetails, TourProgressTextProps as ProgressTextProps, TourRoot as Root, TourRootBaseProps as RootBaseProps, TourRootProps as RootProps, TourSpotlight as Spotlight, TourSpotlightBaseProps as SpotlightBaseProps, TourSpotlightProps as SpotlightProps, StatusChangeDetails, StepAction$1 as StepAction, StepActionMap, StepActionTriggerProps$1 as StepActionTriggerProps, StepBaseDetails, StepChangeDetails, StepDetails, StepEffectArgs, StepPlacement, StepStatus, StepType, TourTitle as Title, TourTitleBaseProps as TitleBaseProps, TourTitleProps as TitleProps, WaitOptions };
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
export { tour_d_exports as Tour, TourActionTrigger, type TourActionTriggerBaseProps, type TourActionTriggerProps, TourActions, type TourActionsProps, TourArrow, type TourArrowBaseProps, type TourArrowProps, TourArrowTip, type TourArrowTipBaseProps, type TourArrowTipProps, TourBackdrop, type TourBackdropBaseProps, type TourBackdropProps, TourCloseTrigger, type TourCloseTriggerBaseProps, type TourCloseTriggerProps, TourContent, type TourContentBaseProps, type TourContentProps, TourContext, type TourContextProps, TourControl, type TourControlBaseProps, type TourControlProps, TourDescription, type TourDescriptionBaseProps, type TourDescriptionProps, type TourFocusOutsideEvent, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, TourPositioner, type TourPositionerBaseProps, type TourPositionerProps, TourProgressText, type TourProgressTextBaseProps, type TourProgressTextProps, TourRoot, type TourRootBaseProps, type TourRootProps, TourSpotlight, type TourSpotlightBaseProps, type TourSpotlightProps, type TourStepDetails, TourTitle, type TourTitleBaseProps, type TourTitleProps, type UseTourContext, type UseTourProps, type UseTourReturn, tourAnatomy, useTour, useTourContext };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { r as PropTypes } from "../../index-BVPDbcQQ.mjs";
|
|
2
|
+
import { r as Optional } from "../../types-C61WyxPn.mjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-Fen9bAK7.mjs";
|
|
4
|
+
import "../../render-strategy-DHJmxfwl.mjs";
|
|
5
|
+
import { c as UsePresenceProps } from "../../index-zgzvveQM.mjs";
|
|
6
|
+
import * as react919 from "react";
|
|
7
|
+
import { ReactNode } from "react";
|
|
8
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
9
|
+
import * as _sprawlify_primitives_anatomy13 from "@sprawlify/primitives/anatomy";
|
|
10
|
+
import * as tour from "@sprawlify/primitives/machines/tour";
|
|
11
|
+
import { FocusOutsideEvent, FocusOutsideEvent as TourFocusOutsideEvent, InteractOutsideEvent, InteractOutsideEvent as TourInteractOutsideEvent, Point, PointerDownOutsideEvent, PointerDownOutsideEvent as TourPointerDownOutsideEvent, ProgressTextDetails, StatusChangeDetails, StepAction, StepAction as StepAction$1, StepActionMap, StepActionTriggerProps, StepActionTriggerProps as StepActionTriggerProps$1, StepBaseDetails, StepChangeDetails, StepDetails, StepDetails as TourStepDetails, StepEffectArgs, StepPlacement, StepStatus, StepType } from "@sprawlify/primitives/machines/tour";
|
|
12
|
+
import { WaitForOptions as WaitOptions } from "@zag-js/dom-query";
|
|
13
|
+
|
|
14
|
+
//#region src/components/tour/tour-action-trigger.d.ts
|
|
15
|
+
interface TourActionTriggerBaseProps extends PolymorphicProps, StepActionTriggerProps {}
|
|
16
|
+
interface TourActionTriggerProps extends HTMLProps<"button">, TourActionTriggerBaseProps {}
|
|
17
|
+
declare const TourActionTrigger: react919.ForwardRefExoticComponent<TourActionTriggerProps & react919.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/tour/tour-actions.d.ts
|
|
20
|
+
interface TourActionsProps {
|
|
21
|
+
children: (actions: StepAction[]) => ReactNode;
|
|
22
|
+
}
|
|
23
|
+
declare const TourActions: (props: TourActionsProps) => ReactNode;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/tour/tour-arrow.d.ts
|
|
26
|
+
interface TourArrowBaseProps extends PolymorphicProps {}
|
|
27
|
+
interface TourArrowProps extends HTMLProps<"div">, TourArrowBaseProps {}
|
|
28
|
+
declare const TourArrow: react919.ForwardRefExoticComponent<TourArrowProps & react919.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/tour/tour-arrow-tip.d.ts
|
|
31
|
+
interface TourArrowTipBaseProps extends PolymorphicProps {}
|
|
32
|
+
interface TourArrowTipProps extends HTMLProps<"div">, TourArrowTipBaseProps {}
|
|
33
|
+
declare const TourArrowTip: react919.ForwardRefExoticComponent<TourArrowTipProps & react919.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/components/tour/tour-backdrop.d.ts
|
|
36
|
+
interface TourBackdropBaseProps extends PolymorphicProps {}
|
|
37
|
+
interface TourBackdropProps extends HTMLProps<"div">, TourBackdropBaseProps {}
|
|
38
|
+
declare const TourBackdrop: react919.ForwardRefExoticComponent<TourBackdropProps & react919.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/tour/tour-close-trigger.d.ts
|
|
41
|
+
interface TourCloseTriggerBaseProps extends PolymorphicProps {}
|
|
42
|
+
interface TourCloseTriggerProps extends HTMLProps<"button">, TourCloseTriggerBaseProps {}
|
|
43
|
+
declare const TourCloseTrigger: react919.ForwardRefExoticComponent<TourCloseTriggerProps & react919.RefAttributes<HTMLButtonElement>>;
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/components/tour/tour-content.d.ts
|
|
46
|
+
interface TourContentBaseProps extends PolymorphicProps {}
|
|
47
|
+
interface TourContentProps extends HTMLProps<"div">, TourContentBaseProps {}
|
|
48
|
+
declare const TourContent: react919.ForwardRefExoticComponent<TourContentProps & react919.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/tour/use-tour-context.d.ts
|
|
51
|
+
interface UseTourContext extends tour.Api<PropTypes> {}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/tour/tour-context.d.ts
|
|
54
|
+
interface TourContextProps {
|
|
55
|
+
children: (context: UseTourContext) => ReactNode;
|
|
56
|
+
}
|
|
57
|
+
declare const TourContext: (props: TourContextProps) => ReactNode;
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/tour/tour-control.d.ts
|
|
60
|
+
interface TourControlBaseProps extends PolymorphicProps {}
|
|
61
|
+
interface TourControlProps extends HTMLProps<"div">, TourControlBaseProps {}
|
|
62
|
+
declare const TourControl: react919.ForwardRefExoticComponent<TourControlProps & react919.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/tour/tour-description.d.ts
|
|
65
|
+
interface TourDescriptionBaseProps extends PolymorphicProps {}
|
|
66
|
+
interface TourDescriptionProps extends HTMLProps<"div">, TourDescriptionBaseProps {}
|
|
67
|
+
declare const TourDescription: react919.ForwardRefExoticComponent<TourDescriptionProps & react919.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/components/tour/tour-positioner.d.ts
|
|
70
|
+
interface TourPositionerBaseProps extends PolymorphicProps {}
|
|
71
|
+
interface TourPositionerProps extends HTMLProps<"div">, TourPositionerBaseProps {}
|
|
72
|
+
declare const TourPositioner: react919.ForwardRefExoticComponent<TourPositionerProps & react919.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/tour/tour-progress-text.d.ts
|
|
75
|
+
interface TourProgressTextBaseProps extends PolymorphicProps {}
|
|
76
|
+
interface TourProgressTextProps extends HTMLProps<"div">, TourProgressTextBaseProps {}
|
|
77
|
+
declare const TourProgressText: react919.ForwardRefExoticComponent<TourProgressTextProps & react919.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/components/tour/use-tour.d.ts
|
|
80
|
+
interface UseTourProps extends Optional<Omit<tour.Props, "dir" | "getRootNode">, "id"> {}
|
|
81
|
+
interface UseTourReturn extends tour.Api<PropTypes> {}
|
|
82
|
+
declare const useTour: (props?: UseTourProps) => UseTourReturn;
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/tour/tour-root.d.ts
|
|
85
|
+
interface TourRootBaseProps extends UsePresenceProps {
|
|
86
|
+
tour: UseTourReturn;
|
|
87
|
+
}
|
|
88
|
+
interface TourRootProps extends TourRootBaseProps {
|
|
89
|
+
children?: ReactNode | undefined;
|
|
90
|
+
}
|
|
91
|
+
declare const TourRoot: (props: TourRootProps) => react_jsx_runtime21.JSX.Element;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/tour/tour-spotlight.d.ts
|
|
94
|
+
interface TourSpotlightBaseProps extends PolymorphicProps {}
|
|
95
|
+
interface TourSpotlightProps extends HTMLProps<"div">, TourSpotlightBaseProps {}
|
|
96
|
+
declare const TourSpotlight: react919.ForwardRefExoticComponent<TourSpotlightProps & react919.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/components/tour/tour-title.d.ts
|
|
99
|
+
interface TourTitleBaseProps extends PolymorphicProps {}
|
|
100
|
+
interface TourTitleProps extends HTMLProps<"h2">, TourTitleBaseProps {}
|
|
101
|
+
declare const TourTitle: react919.ForwardRefExoticComponent<TourTitleProps & react919.RefAttributes<HTMLHeadingElement>>;
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/components/tour/tour-anatomy.d.ts
|
|
104
|
+
declare const tourAnatomy: _sprawlify_primitives_anatomy13.AnatomyInstance<"title" | "content" | "arrow" | "control" | "positioner" | "progressText" | "description" | "actionTrigger" | "closeTrigger" | "arrowTip" | "backdrop" | "spotlight">;
|
|
105
|
+
declare namespace tour_d_exports {
|
|
106
|
+
export { TourActionTrigger as ActionTrigger, TourActionTriggerBaseProps as ActionTriggerBaseProps, TourActionTriggerProps as ActionTriggerProps, TourActions as Actions, TourActionsProps as ActionsProps, TourArrow as Arrow, TourArrowBaseProps as ArrowBaseProps, TourArrowProps as ArrowProps, TourArrowTip as ArrowTip, TourArrowTipBaseProps as ArrowTipBaseProps, TourArrowTipProps as ArrowTipProps, TourBackdrop as Backdrop, TourBackdropBaseProps as BackdropBaseProps, TourBackdropProps as BackdropProps, TourCloseTrigger as CloseTrigger, TourCloseTriggerBaseProps as CloseTriggerBaseProps, TourCloseTriggerProps as CloseTriggerProps, TourContent as Content, TourContentBaseProps as ContentBaseProps, TourContentProps as ContentProps, TourContext as Context, TourContextProps as ContextProps, TourControl as Control, TourControlBaseProps as ControlBaseProps, TourControlProps as ControlProps, TourDescription as Description, TourDescriptionBaseProps as DescriptionBaseProps, TourDescriptionProps as DescriptionProps, FocusOutsideEvent, InteractOutsideEvent, Point, PointerDownOutsideEvent, TourPositioner as Positioner, TourPositionerBaseProps as PositionerBaseProps, TourPositionerProps as PositionerProps, TourProgressText as ProgressText, TourProgressTextBaseProps as ProgressTextBaseProps, ProgressTextDetails, TourProgressTextProps as ProgressTextProps, TourRoot as Root, TourRootBaseProps as RootBaseProps, TourRootProps as RootProps, TourSpotlight as Spotlight, TourSpotlightBaseProps as SpotlightBaseProps, TourSpotlightProps as SpotlightProps, StatusChangeDetails, StepAction$1 as StepAction, StepActionMap, StepActionTriggerProps$1 as StepActionTriggerProps, StepBaseDetails, StepChangeDetails, StepDetails, StepEffectArgs, StepPlacement, StepStatus, StepType, TourTitle as Title, TourTitleBaseProps as TitleBaseProps, TourTitleProps as TitleProps, WaitOptions };
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { tour_d_exports as Tour, TourActionTrigger, type TourActionTriggerBaseProps, type TourActionTriggerProps, TourActions, type TourActionsProps, TourArrow, type TourArrowBaseProps, type TourArrowProps, TourArrowTip, type TourArrowTipBaseProps, type TourArrowTipProps, TourBackdrop, type TourBackdropBaseProps, type TourBackdropProps, TourCloseTrigger, type TourCloseTriggerBaseProps, type TourCloseTriggerProps, TourContent, type TourContentBaseProps, type TourContentProps, TourContext, type TourContextProps, TourControl, type TourControlBaseProps, type TourControlProps, TourDescription, type TourDescriptionBaseProps, type TourDescriptionProps, type TourFocusOutsideEvent, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, TourPositioner, type TourPositionerBaseProps, type TourPositionerProps, TourProgressText, type TourProgressTextBaseProps, type TourProgressTextProps, TourRoot, type TourRootBaseProps, type TourRootProps, TourSpotlight, type TourSpotlightBaseProps, type TourSpotlightProps, type TourStepDetails, TourTitle, type TourTitleBaseProps, type TourTitleProps, type UseTourContext, type UseTourProps, type UseTourReturn, tourAnatomy, useTour, useTourContext };
|