@ark-ui/solid 5.25.0 → 5.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{checkbox.anatomy-CuzDSmDj.d.ts → checkbox.anatomy-YlC7nNXs.d.ts} +1 -1
- package/dist/chunk/2R6SK2X3.js +1 -0
- package/dist/chunk/{CH3GLCFX.js → 32EVBYDL.js} +1 -1
- package/dist/chunk/{BSNUALOI.jsx → 3DVV7RSQ.jsx} +1 -1
- package/dist/chunk/{GXTZJORW.jsx → 4FGVJWA3.jsx} +1 -1
- package/dist/chunk/{GYZIX2L5.jsx → 4MVVOEQO.jsx} +1 -1
- package/dist/chunk/{23B5B3VX.jsx → 4WB67STQ.jsx} +1 -1
- package/dist/chunk/{4GP7G5GU.jsx → 5ERIBIYY.jsx} +1 -1
- package/dist/chunk/{JILQVPOB.jsx → 5STEWKY6.jsx} +1 -1
- package/dist/chunk/{RMND72NW.js → 5YW6MRNT.js} +1 -1
- package/dist/chunk/7FCJ264O.js +2 -2
- package/dist/chunk/{KYRUJHLK.js → 7JN4LQUU.js} +1 -1
- package/dist/chunk/{ZYGTO3AY.js → AMNLZAAM.js} +1 -1
- package/dist/chunk/{D4ONWUSA.jsx → AXR7KJPM.jsx} +1 -1
- package/dist/chunk/{MQ2S3D55.jsx → B52HQAYI.jsx} +2 -2
- package/dist/chunk/{3DSCTOOH.js → BTB7GNM5.js} +1 -1
- package/dist/chunk/{STPRTN7P.js → E7OCYTQK.js} +1 -1
- package/dist/chunk/{SLQO5NYP.jsx → ELOWJYIF.jsx} +1 -1
- package/dist/chunk/{VJY6HKZZ.jsx → EZY7GKXA.jsx} +1 -1
- package/dist/chunk/{LC5AV5KP.jsx → FCPJ3RNY.jsx} +1 -1
- package/dist/chunk/{LL2PRNHK.jsx → FLNIMVCM.jsx} +1 -1
- package/dist/chunk/{TM2GVE66.js → FSWHKOUJ.js} +1 -1
- package/dist/chunk/{3TIJNVWF.jsx → G5ZFI73B.jsx} +1 -1
- package/dist/chunk/GYSTTEHB.js +178 -0
- package/dist/chunk/{PKGJ2YMV.js → JDIMSSD7.js} +5 -1
- package/dist/chunk/{RRMUJHF3.js → JUN7WBUJ.js} +1 -1
- package/dist/chunk/{2Y27RT46.jsx → LUYWTVT2.jsx} +1 -1
- package/dist/chunk/{Y73674NQ.jsx → MTKWTKSJ.jsx} +2 -2
- package/dist/chunk/{KSGKEG2Q.js → O7E5IIY5.js} +10 -3
- package/dist/chunk/OQS7GY5L.jsx +231 -0
- package/dist/chunk/{OD2K6HNA.jsx → OX46DSZG.jsx} +22 -7
- package/dist/chunk/{W43ULPH7.js → PKE2IAZR.js} +1 -1
- package/dist/chunk/{MEW6C2CB.js → PPO5Y7EZ.js} +1 -1
- package/dist/chunk/{TSTI54MO.jsx → PVLPVADA.jsx} +1 -1
- package/dist/chunk/{QHUHQ7AB.jsx → QA6UN3SS.jsx} +1 -1
- package/dist/chunk/{2LPJGLTN.jsx → QFNXMCYK.jsx} +1 -0
- package/dist/chunk/{YDC3FJFI.jsx → QTCH6M6U.jsx} +1 -1
- package/dist/chunk/{RFNTSH5G.js → RDBBPPKH.js} +1 -1
- package/dist/chunk/{E6W66E2W.js → RQQ2HX5E.js} +1 -1
- package/dist/chunk/{56OOJF3B.js → SALTGWUI.js} +1 -1
- package/dist/chunk/{UEHKUIGJ.js → SAQ5ZJYG.js} +1 -1
- package/dist/chunk/{2VUM665L.jsx → SDGVKFY2.jsx} +2 -0
- package/dist/chunk/{CTWE2FJ6.jsx → SHJYZHXV.jsx} +1 -1
- package/dist/chunk/{YSJMQYTR.jsx → SKABWRW2.jsx} +1 -1
- package/dist/chunk/{V3Y4REDM.jsx → SNBGNSXC.jsx} +1 -1
- package/dist/chunk/{QJ2E7QNC.jsx → UQ24SGE2.jsx} +1 -1
- package/dist/chunk/{4QGNGFEY.jsx → UVYKW576.jsx} +2 -2
- package/dist/chunk/{5EZRD32D.jsx → VFKDKUO2.jsx} +1 -1
- package/dist/chunk/WMZBRARY.jsx +6 -0
- package/dist/chunk/{6UPLMXM2.js → XZGVIXTK.js} +1 -1
- package/dist/chunk/{RUQHUQAF.js → YWE3F6BH.js} +1 -1
- package/dist/chunk/{VA3VRJ56.jsx → ZHZ6OA3V.jsx} +5 -1
- package/dist/{color-picker.anatomy-CMDtAoEh.d.ts → color-picker.anatomy-Dxw1DJ2S.d.ts} +1 -1
- package/dist/{combobox.anatomy-DBsVyPqM.d.ts → combobox.anatomy-CW3VXK4N.d.ts} +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +2 -2
- package/dist/components/anatomy.d.ts +9 -8
- package/dist/components/anatomy.js +16 -15
- package/dist/components/anatomy.jsx +87 -83
- package/dist/components/bottom-sheet/index.d.ts +92 -0
- package/dist/components/bottom-sheet/index.js +2 -0
- package/dist/components/bottom-sheet/index.jsx +45 -0
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.jsx +3 -3
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +1 -1
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +4 -4
- package/dist/components/combobox/index.d.ts +6 -5
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +4 -4
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +2 -2
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +2 -2
- package/dist/components/editable/index.jsx +3 -3
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/field/index.jsx +2 -2
- package/dist/components/fieldset/index.d.ts +1 -1
- package/dist/components/file-upload/index.jsx +3 -3
- package/dist/components/floating-panel/index.d.ts +1 -1
- package/dist/components/floating-panel/index.js +1 -1
- package/dist/components/floating-panel/index.jsx +2 -2
- package/dist/components/format/index.d.ts +4 -0
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +2 -2
- package/dist/components/index.d.ts +18 -16
- package/dist/components/index.js +47 -45
- package/dist/components/index.jsx +414 -380
- package/dist/components/json-tree-view/index.d.ts +1 -1
- package/dist/components/json-tree-view/index.js +1 -1
- package/dist/components/json-tree-view/index.jsx +3 -3
- package/dist/components/listbox/index.d.ts +7 -6
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +2 -2
- package/dist/components/number-input/index.jsx +3 -3
- package/dist/components/pagination/index.d.ts +4 -3
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +1 -1
- package/dist/components/password-input/index.jsx +3 -3
- package/dist/components/pin-input/index.jsx +3 -3
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +2 -2
- package/dist/components/presence/index.d.ts +2 -2
- package/dist/components/presence/index.js +1 -1
- package/dist/components/presence/index.jsx +1 -1
- package/dist/components/rating-group/index.jsx +3 -3
- package/dist/components/select/index.d.ts +6 -5
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +4 -4
- package/dist/components/signature-pad/index.jsx +3 -3
- package/dist/components/switch/index.jsx +3 -3
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +2 -2
- package/dist/components/tags-input/index.jsx +3 -3
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +2 -2
- package/dist/components/tour/index.d.ts +2 -2
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +2 -2
- package/dist/components/tree-view/index.d.ts +16 -6
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +4 -2
- package/dist/{date-picker.anatomy-C7QaSOwg.d.ts → date-picker.anatomy-DLXcqHH9.d.ts} +1 -1
- package/dist/field.anatomy-BA_rbPae.d.ts +5 -0
- package/dist/{fieldset.anatomy-BHBXaVuM.d.ts → fieldset.anatomy-ByHwSFid.d.ts} +1 -1
- package/dist/index.d.ts +18 -16
- package/dist/index.js +47 -45
- package/dist/index.jsx +414 -380
- package/dist/{listbox.anatomy-CuSvGz29.d.ts → listbox.anatomy-ogRrsXMY.d.ts} +1 -1
- package/dist/{tour.anatomy-dhFVCgSh.d.ts → tour.anatomy-LyAf9UF9.d.ts} +1 -1
- package/dist/{tree-view-tree-Bsm9ZNuk.d.ts → tree-view-tree-BEAzL2YS.d.ts} +3 -2
- package/dist/{use-presence-CT1xpuuo.d.ts → use-presence-DZuLEWMI.d.ts} +1 -1
- package/package.json +73 -71
- package/dist/field.anatomy-BkeW0gbI.d.ts +0 -5
- package/dist/chunk/{HRWYG4MB.jsx → 5XTAFT5P.jsx} +0 -0
- package/dist/chunk/{4GQ4Q3XI.jsx → 7SG5GQHN.jsx} +3 -3
- /package/dist/chunk/{5WVPNAWS.js → W6MHACH4.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
|
|
3
|
-
declare const checkboxAnatomy: _zag_js_anatomy.AnatomyInstance<"label" | "
|
|
3
|
+
declare const checkboxAnatomy: _zag_js_anatomy.AnatomyInstance<"label" | "group" | "root" | "control" | "indicator">;
|
|
4
4
|
|
|
5
5
|
export { checkboxAnatomy as c };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy } from '@zag-js/bottom-sheet';
|
|
@@ -56,7 +56,7 @@ var usePagination = (props) => {
|
|
|
56
56
|
|
|
57
57
|
// src/components/pagination/pagination-root.tsx
|
|
58
58
|
var PaginationRoot = (props) => {
|
|
59
|
-
const [usePaginationProps, localProps] = createSplitProps()(props, ["count", "defaultPage", "defaultPageSize", "id", "ids", "onPageChange", "onPageSizeChange", "page", "pageSize", "siblingCount", "translations", "type"]);
|
|
59
|
+
const [usePaginationProps, localProps] = createSplitProps()(props, ["count", "defaultPage", "defaultPageSize", "getPageUrl", "id", "ids", "onPageChange", "onPageSizeChange", "page", "pageSize", "siblingCount", "translations", "type"]);
|
|
60
60
|
const api = usePagination(usePaginationProps);
|
|
61
61
|
const mergedProps = mergeProps(() => api().getRootProps(), localProps);
|
|
62
62
|
return createComponent(PaginationProvider, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './JDIMSSD7.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { useEnvironmentContext } from './QM3ROTYU.js';
|
package/dist/chunk/7FCJ264O.js
CHANGED
|
@@ -49,8 +49,8 @@ var useFieldset = (props) => {
|
|
|
49
49
|
const legendId = `fieldset::${id}::legend`;
|
|
50
50
|
const errorTextId = `fieldset::${id}::error-text`;
|
|
51
51
|
const helperTextId = `fieldset::${id}::helper-text`;
|
|
52
|
-
const [hasErrorText
|
|
53
|
-
const [hasHelperText
|
|
52
|
+
const [hasErrorText] = createSignal(false);
|
|
53
|
+
const [hasHelperText] = createSignal(false);
|
|
54
54
|
createEffect(() => {
|
|
55
55
|
return;
|
|
56
56
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { usePresence, PresenceProvider } from './
|
|
1
|
+
import { usePresence, PresenceProvider } from './JDIMSSD7.js';
|
|
2
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
3
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
|
|
4
4
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './JDIMSSD7.js';
|
|
2
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
3
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
|
|
4
4
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./ZHZ6OA3V.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useFieldContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./7SG5GQHN.jsx";
|
|
10
10
|
import {
|
|
11
11
|
composeRefs
|
|
12
12
|
} from "./PT2CJE3O.jsx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { usePresence, splitPresenceProps, PresenceProvider, usePresenceContext } from './
|
|
1
|
+
import { usePresence, splitPresenceProps, PresenceProvider, usePresenceContext } from './JDIMSSD7.js';
|
|
2
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
3
|
import { tourAnatomy } from './NYBIYPS4.js';
|
|
4
4
|
import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './QFAL6GWC.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './
|
|
1
|
+
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './JDIMSSD7.js';
|
|
2
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './JDIMSSD7.js';
|
|
2
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './JDIMSSD7.js';
|
|
2
|
+
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
|
+
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
|
|
4
|
+
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
+
import { ark } from './EPLBB4QN.js';
|
|
6
|
+
import { useEnvironmentContext } from './QM3ROTYU.js';
|
|
7
|
+
import { useLocaleContext } from './JOLWKIPW.js';
|
|
8
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
9
|
+
import { createContext } from './TROPIN4C.js';
|
|
10
|
+
import { __export } from './ESLJRKWD.js';
|
|
11
|
+
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
12
|
+
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
13
|
+
import { Show, createUniqueId, createMemo } from 'solid-js';
|
|
14
|
+
import * as bottomSheet from '@zag-js/bottom-sheet';
|
|
15
|
+
|
|
16
|
+
// src/components/bottom-sheet/use-bottom-sheet-context.ts
|
|
17
|
+
var [BottomSheetProvider, useBottomSheetContext] = createContext({
|
|
18
|
+
hookName: "useBottomSheetContext",
|
|
19
|
+
providerName: "<BottomSheetProvider />"
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// src/components/bottom-sheet/bottom-sheet-backdrop.tsx
|
|
23
|
+
var BottomSheetBackdrop = (props) => {
|
|
24
|
+
const bottomSheet2 = useBottomSheetContext();
|
|
25
|
+
const renderStrategyProps = useRenderStrategyContext();
|
|
26
|
+
const presence = usePresence(mergeProps(renderStrategyProps, () => ({
|
|
27
|
+
present: bottomSheet2().open
|
|
28
|
+
})));
|
|
29
|
+
const mergedProps = mergeProps(() => bottomSheet2().getBackdropProps(), () => presence().presenceProps, props);
|
|
30
|
+
return createComponent(Show, {
|
|
31
|
+
get when() {
|
|
32
|
+
return !presence().unmounted;
|
|
33
|
+
},
|
|
34
|
+
get children() {
|
|
35
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
36
|
+
ref(r$) {
|
|
37
|
+
var _ref$ = composeRefs(presence().ref, props.ref);
|
|
38
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var BottomSheetCloseTrigger = (props) => {
|
|
45
|
+
const context = useBottomSheetContext();
|
|
46
|
+
const mergedProps = mergeProps(() => context().getCloseTriggerProps(), props);
|
|
47
|
+
return createComponent(ark.button, mergedProps);
|
|
48
|
+
};
|
|
49
|
+
var BottomSheetContent = (props) => {
|
|
50
|
+
const [contentProps, localProps] = createSplitProps()(props, ["draggable"]);
|
|
51
|
+
const bottomSheet2 = useBottomSheetContext();
|
|
52
|
+
const presence = usePresenceContext();
|
|
53
|
+
const mergedProps = mergeProps(() => bottomSheet2().getContentProps({
|
|
54
|
+
draggable: true,
|
|
55
|
+
...contentProps
|
|
56
|
+
}), () => presence().presenceProps, localProps);
|
|
57
|
+
return createComponent(Show, {
|
|
58
|
+
get when() {
|
|
59
|
+
return !presence().unmounted;
|
|
60
|
+
},
|
|
61
|
+
get children() {
|
|
62
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
63
|
+
ref(r$) {
|
|
64
|
+
var _ref$ = composeRefs(presence().ref, localProps.ref);
|
|
65
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
66
|
+
}
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// src/components/bottom-sheet/bottom-sheet-context.tsx
|
|
73
|
+
var BottomSheetContext = (props) => props.children(useBottomSheetContext());
|
|
74
|
+
var BottomSheetGrabber = (props) => {
|
|
75
|
+
const bottomSheet2 = useBottomSheetContext();
|
|
76
|
+
const mergedProps = mergeProps(() => bottomSheet2().getGrabberProps(), props);
|
|
77
|
+
return createComponent(ark.div, mergedProps);
|
|
78
|
+
};
|
|
79
|
+
var BottomSheetGrabberIndicator = (props) => {
|
|
80
|
+
const bottomSheet2 = useBottomSheetContext();
|
|
81
|
+
const mergedProps = mergeProps(() => bottomSheet2().getGrabberIndicatorProps(), props);
|
|
82
|
+
return createComponent(ark.div, mergedProps);
|
|
83
|
+
};
|
|
84
|
+
var useBottomSheet = (props) => {
|
|
85
|
+
const locale = useLocaleContext();
|
|
86
|
+
const environment = useEnvironmentContext();
|
|
87
|
+
const id = createUniqueId();
|
|
88
|
+
const machineProps = createMemo(() => ({
|
|
89
|
+
id,
|
|
90
|
+
dir: locale().dir,
|
|
91
|
+
getRootNode: environment().getRootNode,
|
|
92
|
+
...runIfFn(props)
|
|
93
|
+
}));
|
|
94
|
+
const service = useMachine(bottomSheet.machine, machineProps);
|
|
95
|
+
return createMemo(() => bottomSheet.connect(service, normalizeProps));
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// src/components/bottom-sheet/bottom-sheet-root.tsx
|
|
99
|
+
var BottomSheetRoot = (props) => {
|
|
100
|
+
const [presenceProps, bottomSheetProps] = splitPresenceProps(props);
|
|
101
|
+
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
102
|
+
const [useBottomSheetProps, localProps] = createSplitProps()(bottomSheetProps, ["id", "ids", "open", "defaultOpen", "onOpenChange", "closeOnInteractOutside", "closeOnEscape", "snapPoints", "swipeVelocityThreshold", "closeThreshold", "preventDragOnScroll", "activeSnapPoint", "defaultActiveSnapPoint", "onActiveSnapPointChange", "modal", "trapFocus", "restoreFocus", "preventScroll", "initialFocusEl", "finalFocusEl", "role", "onInteractOutside", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onRequestDismiss"]);
|
|
103
|
+
const bottomSheet2 = useBottomSheet(useBottomSheetProps);
|
|
104
|
+
const presence = usePresence(mergeProps(presenceProps, () => ({
|
|
105
|
+
present: bottomSheet2().open
|
|
106
|
+
})));
|
|
107
|
+
return createComponent(BottomSheetProvider, {
|
|
108
|
+
value: bottomSheet2,
|
|
109
|
+
get children() {
|
|
110
|
+
return createComponent(RenderStrategyProvider, {
|
|
111
|
+
value: renderStrategyProps,
|
|
112
|
+
get children() {
|
|
113
|
+
return createComponent(PresenceProvider, {
|
|
114
|
+
value: presence,
|
|
115
|
+
get children() {
|
|
116
|
+
return localProps.children;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
var BottomSheetRootProvider = (props) => {
|
|
125
|
+
const [presenceProps, bottomSheetProps] = splitPresenceProps(props);
|
|
126
|
+
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
127
|
+
const presence = usePresence(mergeProps(() => ({
|
|
128
|
+
present: bottomSheetProps.value().open
|
|
129
|
+
}), presenceProps));
|
|
130
|
+
return createComponent(BottomSheetProvider, {
|
|
131
|
+
get value() {
|
|
132
|
+
return bottomSheetProps.value;
|
|
133
|
+
},
|
|
134
|
+
get children() {
|
|
135
|
+
return createComponent(RenderStrategyProvider, {
|
|
136
|
+
value: renderStrategyProps,
|
|
137
|
+
get children() {
|
|
138
|
+
return createComponent(PresenceProvider, {
|
|
139
|
+
value: presence,
|
|
140
|
+
get children() {
|
|
141
|
+
return bottomSheetProps.children;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
var BottomSheetTitle = (props) => {
|
|
150
|
+
const bottomSheet2 = useBottomSheetContext();
|
|
151
|
+
const mergedProps = mergeProps(() => bottomSheet2().getTitleProps(), props);
|
|
152
|
+
return createComponent(ark.h2, mergedProps);
|
|
153
|
+
};
|
|
154
|
+
var BottomSheetTrigger = (props) => {
|
|
155
|
+
const bottomSheet2 = useBottomSheetContext();
|
|
156
|
+
const presence = usePresenceContext();
|
|
157
|
+
const mergedProps = mergeProps(() => bottomSheet2().getTriggerProps(), () => ({
|
|
158
|
+
"aria-controls": presence().unmounted && null
|
|
159
|
+
}), props);
|
|
160
|
+
return createComponent(ark.button, mergedProps);
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
// src/components/bottom-sheet/bottom-sheet.ts
|
|
164
|
+
var bottom_sheet_exports = {};
|
|
165
|
+
__export(bottom_sheet_exports, {
|
|
166
|
+
Backdrop: () => BottomSheetBackdrop,
|
|
167
|
+
CloseTrigger: () => BottomSheetCloseTrigger,
|
|
168
|
+
Content: () => BottomSheetContent,
|
|
169
|
+
Context: () => BottomSheetContext,
|
|
170
|
+
Grabber: () => BottomSheetGrabber,
|
|
171
|
+
GrabberIndicator: () => BottomSheetGrabberIndicator,
|
|
172
|
+
Root: () => BottomSheetRoot,
|
|
173
|
+
RootProvider: () => BottomSheetRootProvider,
|
|
174
|
+
Title: () => BottomSheetTitle,
|
|
175
|
+
Trigger: () => BottomSheetTrigger
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
export { BottomSheetBackdrop, BottomSheetCloseTrigger, BottomSheetContent, BottomSheetContext, BottomSheetGrabber, BottomSheetGrabberIndicator, BottomSheetRoot, BottomSheetRootProvider, BottomSheetTitle, BottomSheetTrigger, bottom_sheet_exports, useBottomSheet, useBottomSheetContext };
|
|
@@ -27,10 +27,14 @@ var usePresence = (props) => {
|
|
|
27
27
|
const present = api().present;
|
|
28
28
|
if (present) setWasEverPresent(true);
|
|
29
29
|
});
|
|
30
|
+
const setNode = (node) => {
|
|
31
|
+
if (!node) return;
|
|
32
|
+
service.send({ type: "NODE.SET", node });
|
|
33
|
+
};
|
|
30
34
|
return createMemo(() => ({
|
|
31
35
|
unmounted: !api().present && !wasEverPresent() && renderStrategyProps.lazyMount || renderStrategyProps.unmountOnExit && !api().present && wasEverPresent(),
|
|
32
36
|
present: api().present,
|
|
33
|
-
ref:
|
|
37
|
+
ref: setNode,
|
|
34
38
|
presenceProps: {
|
|
35
39
|
hidden: !api().present,
|
|
36
40
|
"data-state": api().skip && localProps.skipAnimationOnMount ? void 0 : localProps.present ? "open" : "closed"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCollapsibleContext, collapsible_exports } from './
|
|
1
|
+
import { useCollapsibleContext, collapsible_exports } from './RQQ2HX5E.js';
|
|
2
2
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./ZHZ6OA3V.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useFieldContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./7SG5GQHN.jsx";
|
|
10
10
|
import {
|
|
11
11
|
composeRefs
|
|
12
12
|
} from "./PT2CJE3O.jsx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { collapsible_exports } from './
|
|
1
|
+
import { collapsible_exports } from './RQQ2HX5E.js';
|
|
2
2
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -134,6 +134,12 @@ var TreeViewNodeCheckboxIndicator = (props) => {
|
|
|
134
134
|
}
|
|
135
135
|
return props.fallback;
|
|
136
136
|
};
|
|
137
|
+
var TreeViewNodeRenameInput = (props) => {
|
|
138
|
+
const treeView2 = useTreeViewContext();
|
|
139
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
140
|
+
const mergedProps = mergeProps(() => treeView2().getNodeRenameInputProps(nodeProps), props);
|
|
141
|
+
return createComponent(ark.input, mergedProps);
|
|
142
|
+
};
|
|
137
143
|
|
|
138
144
|
// src/components/tree-view/tree-view-node-context.ts
|
|
139
145
|
var TreeViewNodeContext = (props) => props.children(useTreeViewNodeContext());
|
|
@@ -170,7 +176,7 @@ var useTreeView = (props) => {
|
|
|
170
176
|
// src/components/tree-view/tree-view-root.tsx
|
|
171
177
|
var TreeViewRoot = (props) => {
|
|
172
178
|
const [renderStrategyProps, treeViewProps] = splitRenderStrategyProps(props);
|
|
173
|
-
const [useTreeViewProps, localProps] = createSplitProps()(treeViewProps, ["checkedValue", "collection", "defaultCheckedValue", "defaultExpandedValue", "defaultFocusedValue", "defaultSelectedValue", "expandedValue", "expandOnClick", "focusedValue", "id", "ids", "loadChildren", "onCheckedChange", "onExpandedChange", "onFocusChange", "onLoadChildrenComplete", "onLoadChildrenError", "onSelectionChange", "selectedValue", "selectionMode", "typeahead"]);
|
|
179
|
+
const [useTreeViewProps, localProps] = createSplitProps()(treeViewProps, ["canRename", "checkedValue", "collection", "defaultCheckedValue", "defaultExpandedValue", "defaultFocusedValue", "defaultSelectedValue", "expandedValue", "expandOnClick", "focusedValue", "id", "ids", "loadChildren", "onBeforeRename", "onCheckedChange", "onExpandedChange", "onFocusChange", "onLoadChildrenComplete", "onLoadChildrenError", "onRenameComplete", "onRenameStart", "onSelectionChange", "selectedValue", "selectionMode", "typeahead"]);
|
|
174
180
|
const treeView2 = useTreeView(useTreeViewProps);
|
|
175
181
|
const mergedProps = mergeProps(() => treeView2().getRootProps(), localProps);
|
|
176
182
|
return createComponent(TreeViewProvider, {
|
|
@@ -228,9 +234,10 @@ __export(tree_view_exports, {
|
|
|
228
234
|
NodeCheckboxIndicator: () => TreeViewNodeCheckboxIndicator,
|
|
229
235
|
NodeContext: () => TreeViewNodeContext,
|
|
230
236
|
NodeProvider: () => TreeViewNodeProvider,
|
|
237
|
+
NodeRenameInput: () => TreeViewNodeRenameInput,
|
|
231
238
|
Root: () => TreeViewRoot,
|
|
232
239
|
RootProvider: () => TreeViewRootProvider,
|
|
233
240
|
Tree: () => TreeViewTree
|
|
234
241
|
});
|
|
235
242
|
|
|
236
|
-
export { TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndentGuide, TreeViewBranchIndicator, TreeViewBranchText, TreeViewBranchTrigger, TreeViewContext, TreeViewItem, TreeViewItemIndicator, TreeViewItemText, TreeViewLabel, TreeViewNodeCheckbox, TreeViewNodeCheckboxIndicator, TreeViewNodeContext, TreeViewNodeProvider, TreeViewRoot, TreeViewRootProvider, TreeViewTree, tree_view_exports, useTreeView, useTreeViewContext, useTreeViewNodeContext };
|
|
243
|
+
export { TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndentGuide, TreeViewBranchIndicator, TreeViewBranchText, TreeViewBranchTrigger, TreeViewContext, TreeViewItem, TreeViewItemIndicator, TreeViewItemText, TreeViewLabel, TreeViewNodeCheckbox, TreeViewNodeCheckboxIndicator, TreeViewNodeContext, TreeViewNodeProvider, TreeViewNodeRenameInput, TreeViewRoot, TreeViewRootProvider, TreeViewTree, tree_view_exports, useTreeView, useTreeViewContext, useTreeViewNodeContext };
|