@ark-ui/solid 4.2.1 → 4.4.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/chunk/2PEBPAD5.jsx +15 -0
- package/dist/chunk/{ZTGL23QZ.js → 4DPMLML4.js} +1 -1
- package/dist/chunk/{W7ARB4RD.jsx → 4ICFJW2D.jsx} +1 -1
- package/dist/chunk/{QPV7P3RM.jsx → 4TNW4LNT.jsx} +1 -1
- package/dist/chunk/{RAMP76RX.jsx → 57637BHV.jsx} +1 -1
- package/dist/chunk/{OYTB5QWY.js → 5JS7LFUQ.js} +11 -11
- package/dist/chunk/{52UPAMUX.jsx → 6EY2Z73Y.jsx} +1 -1
- package/dist/chunk/{X3GDAQGM.js → AK2LUFHG.js} +14 -3
- package/dist/chunk/{XOMMWT5J.jsx → AZBVL3C5.jsx} +2 -2
- package/dist/chunk/{DNNMKWRH.js → BNMRTYLU.js} +1 -1
- package/dist/chunk/DFMOPRAE.jsx +299 -0
- package/dist/chunk/{PIUV7KP7.js → DLHPAHCZ.js} +4 -2
- package/dist/chunk/{YQYOROY7.jsx → DV2ZLINV.jsx} +2 -2
- package/dist/chunk/{QZBKZO47.js → DYAAMWKJ.js} +2 -2
- package/dist/chunk/{KBVWLUJ7.jsx → EDCPFD3E.jsx} +10 -2
- package/dist/chunk/{2C6A32GV.js → ENHIBLQ6.js} +1 -1
- package/dist/chunk/FE2WXPJR.js +23 -0
- package/dist/chunk/{5WUHQS6Z.jsx → FNDB3E7F.jsx} +2 -2
- package/dist/chunk/{ERLD5LJI.jsx → FZ3HSYOZ.jsx} +2 -2
- package/dist/chunk/{HSUP2TTG.jsx → GTGJTQN4.jsx} +1 -1
- package/dist/chunk/{OMSDY5OI.jsx → HQFEUYOV.jsx} +1 -1
- package/dist/chunk/{AEONTAXJ.js → HWURSPSE.js} +2 -2
- package/dist/chunk/{4QFM6QV6.jsx → HXSFGTUH.jsx} +1 -1
- package/dist/chunk/{OBGOP5NZ.js → I5OAZLKD.js} +2 -2
- package/dist/chunk/{DROJC4BX.js → JSMOACQ5.js} +1 -1
- package/dist/chunk/{DY4JCG75.js → KKCBAUHZ.js} +1 -1
- package/dist/chunk/{QJASL3TD.js → KQLVMRLF.js} +1 -1
- package/dist/chunk/{B7JXC4RB.js → KUTJELYB.js} +1 -1
- package/dist/chunk/{WW54SYIV.js → L6HRKS4V.js} +1 -1
- package/dist/chunk/{E24BRDL3.jsx → LKZXE4D5.jsx} +1 -1
- package/dist/chunk/{47KR5N4Y.jsx → LMMNUVZG.jsx} +1 -1
- package/dist/chunk/{QK4E7K6M.js → LNX6MNBX.js} +1 -1
- package/dist/chunk/{SMWURVP2.jsx → LQVOH74V.jsx} +2 -2
- package/dist/chunk/{N7QLMQKV.js → ND6ULTIP.js} +3 -3
- package/dist/chunk/{VN3OG575.js → PAR3AJGR.js} +2 -2
- package/dist/chunk/{B2OPFF7J.js → PBJ7MGGS.js} +53 -8
- package/dist/chunk/{3DRWVGGU.jsx → PQ3UNZE4.jsx} +1 -1
- package/dist/chunk/{35W72PCD.jsx → PSWXIR5X.jsx} +2 -2
- package/dist/chunk/{QESOHNJZ.jsx → PZDCODVM.jsx} +3 -3
- package/dist/chunk/{VHCWCT42.jsx → PZEZKJF3.jsx} +1 -1
- package/dist/chunk/{M4DS7MOB.jsx → Q3STMYMV.jsx} +1 -1
- package/dist/chunk/{KWJ6UCDT.js → Q55I4ULB.js} +3 -3
- package/dist/chunk/{X7HQ6AMW.jsx → QX424BJV.jsx} +1 -1
- package/dist/chunk/{QYMDDEMZ.js → QXDC5XNT.js} +2 -2
- package/dist/chunk/{BCFU7H7W.js → R3KGHDYR.js} +1 -1
- package/dist/chunk/{6YHAMTNY.jsx → R5ZNIQWU.jsx} +1 -1
- package/dist/chunk/{RIBPOJCE.jsx → RSBH7AZU.jsx} +3 -3
- package/dist/chunk/{Q3GD7QM3.js → SPA64RV2.js} +1 -1
- package/dist/chunk/{276CD5ZR.jsx → T3B55CSO.jsx} +1 -2
- package/dist/chunk/{3RQAXTAW.jsx → T7DQP6DT.jsx} +1 -1
- package/dist/chunk/TRSBHTDC.js +214 -0
- package/dist/chunk/{YJ7NNN57.jsx → TY6NCPFG.jsx} +41 -4
- package/dist/chunk/{RKKIRTHU.jsx → U6PDXLCA.jsx} +2 -2
- package/dist/chunk/{QYFVBX63.js → UMKKXI44.js} +2 -2
- package/dist/chunk/{55M5FJ22.js → UW63M5GW.js} +1 -1
- package/dist/chunk/{2ZTI3KY5.jsx → UYIC346K.jsx} +2 -2
- package/dist/chunk/{H6DC7RQL.js → UZJR5LMS.js} +1 -1
- package/dist/chunk/{7HCCUF5N.jsx → VI2C2YY7.jsx} +1 -1
- package/dist/chunk/{F3S42GVW.js → VKM3Y5SS.js} +2 -2
- package/dist/chunk/{6N62F7GL.js → VO46CN3P.js} +2 -2
- package/dist/chunk/{NPI5WNO3.js → VQXL4BNM.js} +1 -1
- package/dist/chunk/{VFUEJBXC.js → WEGHFH3B.js} +1 -1
- package/dist/chunk/{TOA67336.js → WLTUCUPQ.js} +2 -2
- package/dist/chunk/{MHHYBEM2.js → WLUB7JYL.js} +1 -1
- package/dist/chunk/{BLPPWNTR.js → YBEQIVOS.js} +1 -1
- package/dist/chunk/{3CKNAJLS.jsx → YCYZZGN2.jsx} +18 -18
- package/dist/chunk/{LOR2W6S2.js → YEVD47QN.js} +2 -2
- package/dist/chunk/{VDEU2H3V.jsx → YJZDRWMW.jsx} +1 -1
- package/dist/chunk/{R2IA2NWU.js → YN36NFIE.js} +1 -1
- package/dist/chunk/{HHXZ2XZQ.jsx → YQ7OK72K.jsx} +1 -1
- package/dist/chunk/{IYVZTV3F.jsx → ZSWRRXUI.jsx} +34 -21
- package/dist/chunk/{WTIOAOZ4.jsx → ZX3QOLR2.jsx} +2 -2
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +2 -2
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +1 -1
- package/dist/components/carousel/index.d.ts +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +2 -2
- package/dist/components/clipboard/index.d.ts +1 -1
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +1 -1
- package/dist/components/collapsible/index.d.ts +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +1 -1
- package/dist/components/collection.d.ts +6 -3
- package/dist/components/collection.js +1 -1
- package/dist/components/collection.jsx +7 -3
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +2 -2
- package/dist/components/combobox/index.js +2 -2
- package/dist/components/combobox/index.jsx +3 -3
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +1 -1
- package/dist/components/editable/index.d.ts +1 -1
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +2 -2
- package/dist/components/field/index.d.ts +20 -3
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +3 -1
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +2 -2
- 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 +1 -1
- package/dist/components/index.d.ts +14 -6
- package/dist/components/index.js +38 -37
- package/dist/components/index.jsx +204 -197
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +1 -1
- package/dist/components/number-input/index.d.ts +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +2 -2
- package/dist/components/pin-input/index.d.ts +1 -1
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +2 -2
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +1 -1
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +1 -1
- package/dist/components/qr-code/index.d.ts +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +1 -1
- package/dist/components/radio-group/index.d.ts +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +1 -1
- package/dist/components/rating-group/index.d.ts +1 -1
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +2 -2
- package/dist/components/segment-group/index.d.ts +1 -1
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +1 -1
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/index.jsx +3 -3
- package/dist/components/signature-pad/index.d.ts +1 -1
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +2 -2
- package/dist/components/slider/index.d.ts +9 -3
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +3 -1
- package/dist/components/splitter/index.d.ts +1 -1
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +1 -1
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +2 -2
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +1 -1
- package/dist/components/tags-input/index.d.ts +1 -1
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +2 -2
- package/dist/components/timer/index.d.ts +13 -13
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toggle-group/index.d.ts +1 -1
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +1 -1
- package/dist/components/tree-view/index.d.ts +73 -59
- package/dist/components/tree-view/index.js +2 -1
- package/dist/components/tree-view/index.jsx +15 -11
- package/dist/index.d.ts +6 -5
- package/dist/index.js +38 -37
- package/dist/index.jsx +204 -197
- package/package.json +60 -59
- package/dist/chunk/DI6H2YIE.jsx +0 -279
- package/dist/chunk/EZ2HOZZM.js +0 -1
- package/dist/chunk/MVL2JW5G.js +0 -213
- package/dist/chunk/P5DFHJ7G.jsx +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { collapsible_exports } from './KQLVMRLF.js';
|
|
2
|
+
import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './L7OSYHVR.js';
|
|
3
|
+
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
|
+
import { ark } from './EPLBB4QN.js';
|
|
5
|
+
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
6
|
+
import { useEnvironmentContext } from './QODB3C3M.js';
|
|
7
|
+
import { createContext } from './I5UG2QUO.js';
|
|
8
|
+
import { __export } from './ESLJRKWD.js';
|
|
9
|
+
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
10
|
+
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
11
|
+
import { createMemo, createUniqueId } from 'solid-js';
|
|
12
|
+
import * as treeView from '@zag-js/tree-view';
|
|
13
|
+
export { anatomy } from '@zag-js/tree-view';
|
|
14
|
+
|
|
15
|
+
// src/components/tree-view/use-tree-view-context.ts
|
|
16
|
+
var [TreeViewProvider, useTreeViewContext] = createContext({
|
|
17
|
+
hookName: "useTreeViewContext",
|
|
18
|
+
providerName: "<TreeViewProvider />"
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// src/components/tree-view/use-tree-view-node-props-context.ts
|
|
22
|
+
var [TreeViewNodePropsProvider, useTreeViewNodePropsContext] = createContext({
|
|
23
|
+
hookName: "useTreeViewNodePropsContext",
|
|
24
|
+
providerName: "<TreeViewNodeProvider />"
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// src/components/tree-view/tree-view-branch.tsx
|
|
28
|
+
var TreeViewBranch = (props) => {
|
|
29
|
+
const treeView2 = useTreeViewContext();
|
|
30
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
31
|
+
const renderStrategyProps = useRenderStrategyContext();
|
|
32
|
+
const nodeState = createMemo(() => treeView2().getNodeState(nodeProps));
|
|
33
|
+
const branchContentProps = treeView2().getBranchContentProps(nodeProps);
|
|
34
|
+
const mergedProps = mergeProps(() => treeView2().getBranchProps(nodeProps), props);
|
|
35
|
+
return createComponent(collapsible_exports.Root, mergeProps$1({
|
|
36
|
+
get open() {
|
|
37
|
+
return nodeState().expanded;
|
|
38
|
+
},
|
|
39
|
+
get ids() {
|
|
40
|
+
return {
|
|
41
|
+
content: branchContentProps.id
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}, renderStrategyProps, mergedProps));
|
|
45
|
+
};
|
|
46
|
+
var splitVisibilityProps = createSplitProps();
|
|
47
|
+
var TreeViewBranchContent = (props) => {
|
|
48
|
+
const treeView2 = useTreeViewContext();
|
|
49
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
50
|
+
const branchContentProps = createMemo(() => {
|
|
51
|
+
const contentProps = treeView2().getBranchContentProps(nodeProps);
|
|
52
|
+
const [, ownProps] = splitVisibilityProps(contentProps, ["hidden", "data-state"]);
|
|
53
|
+
return ownProps;
|
|
54
|
+
});
|
|
55
|
+
const mergedProps = mergeProps(() => branchContentProps(), props);
|
|
56
|
+
return createComponent(collapsible_exports.Content, mergedProps);
|
|
57
|
+
};
|
|
58
|
+
var TreeViewBranchControl = (props) => {
|
|
59
|
+
const treeView2 = useTreeViewContext();
|
|
60
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
61
|
+
const mergedProps = mergeProps(() => treeView2().getBranchControlProps(nodeProps), props);
|
|
62
|
+
return createComponent(ark.div, mergedProps);
|
|
63
|
+
};
|
|
64
|
+
var TreeViewBranchIndentGuide = (props) => {
|
|
65
|
+
const treeView2 = useTreeViewContext();
|
|
66
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
67
|
+
const mergedProps = mergeProps(() => treeView2().getBranchIndentGuideProps(nodeProps), props);
|
|
68
|
+
return createComponent(ark.div, mergedProps);
|
|
69
|
+
};
|
|
70
|
+
var TreeViewBranchIndicator = (props) => {
|
|
71
|
+
const treeView2 = useTreeViewContext();
|
|
72
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
73
|
+
const mergedProps = mergeProps(() => treeView2().getBranchIndicatorProps(nodeProps), props);
|
|
74
|
+
return createComponent(ark.div, mergedProps);
|
|
75
|
+
};
|
|
76
|
+
var TreeViewBranchText = (props) => {
|
|
77
|
+
const treeView2 = useTreeViewContext();
|
|
78
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
79
|
+
const mergedProps = mergeProps(() => treeView2().getBranchTextProps(nodeProps), props);
|
|
80
|
+
return createComponent(ark.span, mergedProps);
|
|
81
|
+
};
|
|
82
|
+
var TreeViewBranchTrigger = (props) => {
|
|
83
|
+
const treeView2 = useTreeViewContext();
|
|
84
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
85
|
+
const mergedProps = mergeProps(() => treeView2().getBranchTriggerProps(nodeProps), props);
|
|
86
|
+
return createComponent(ark.div, mergedProps);
|
|
87
|
+
};
|
|
88
|
+
var TreeViewItem = (props) => {
|
|
89
|
+
const treeView2 = useTreeViewContext();
|
|
90
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
91
|
+
const mergedProps = mergeProps(() => treeView2().getItemProps(nodeProps), props);
|
|
92
|
+
return createComponent(ark.div, mergedProps);
|
|
93
|
+
};
|
|
94
|
+
var TreeViewItemIndicator = (props) => {
|
|
95
|
+
const treeView2 = useTreeViewContext();
|
|
96
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
97
|
+
const mergedProps = mergeProps(() => treeView2().getItemIndicatorProps(nodeProps), props);
|
|
98
|
+
return createComponent(ark.div, mergedProps);
|
|
99
|
+
};
|
|
100
|
+
var TreeViewItemText = (props) => {
|
|
101
|
+
const treeView2 = useTreeViewContext();
|
|
102
|
+
const nodeProps = useTreeViewNodePropsContext();
|
|
103
|
+
const mergedProps = mergeProps(() => treeView2().getItemTextProps(nodeProps), props);
|
|
104
|
+
return createComponent(ark.span, mergedProps);
|
|
105
|
+
};
|
|
106
|
+
var TreeViewLabel = (props) => {
|
|
107
|
+
const treeView2 = useTreeViewContext();
|
|
108
|
+
const mergedProps = mergeProps(() => treeView2().getLabelProps(), props);
|
|
109
|
+
return createComponent(ark.label, mergedProps);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
// src/components/tree-view/use-tree-view-node-context.ts
|
|
113
|
+
var [TreeViewNodeProvider, useTreeViewNodeContext] = createContext(
|
|
114
|
+
{
|
|
115
|
+
hookName: "useTreeViewNodeContext",
|
|
116
|
+
providerName: "<TreeViewNodeProvider />"
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
// src/components/tree-view/tree-view-node-context.ts
|
|
121
|
+
var TreeViewNodeContext = (props) => props.children(useTreeViewNodeContext());
|
|
122
|
+
function TreeViewNodeProvider2(props) {
|
|
123
|
+
const [nodeProps, localProps] = createSplitProps()(props, ["indexPath", "node"]);
|
|
124
|
+
return createComponent(TreeViewNodePropsProvider, {
|
|
125
|
+
value: nodeProps,
|
|
126
|
+
get children() {
|
|
127
|
+
return localProps.children;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
var useTreeView = (props) => {
|
|
132
|
+
const locale = useLocaleContext();
|
|
133
|
+
const environment = useEnvironmentContext();
|
|
134
|
+
const id = createUniqueId();
|
|
135
|
+
const context = createMemo(() => ({
|
|
136
|
+
id,
|
|
137
|
+
dir: locale().dir,
|
|
138
|
+
getRootNode: environment().getRootNode,
|
|
139
|
+
selectedValue: props.defaultSelectedValue,
|
|
140
|
+
expandedValue: props.defaultExpandedValue,
|
|
141
|
+
...props
|
|
142
|
+
}));
|
|
143
|
+
const [state, send] = useMachine(treeView.machine(context()), { context });
|
|
144
|
+
return createMemo(() => treeView.connect(state, send, normalizeProps));
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// src/components/tree-view/tree-view-root.tsx
|
|
148
|
+
var TreeViewRoot = (props) => {
|
|
149
|
+
const [renderStrategyProps, treeViewProps] = splitRenderStrategyProps(props);
|
|
150
|
+
const [useTreeViewProps, localProps] = createSplitProps()(treeViewProps, ["collection", "defaultExpandedValue", "defaultSelectedValue", "expandedValue", "expandOnClick", "focusedValue", "id", "ids", "onExpandedChange", "onFocusChange", "onSelectionChange", "selectedValue", "selectionMode", "typeahead"]);
|
|
151
|
+
const treeView2 = useTreeView(useTreeViewProps);
|
|
152
|
+
const mergedProps = mergeProps(() => treeView2().getRootProps(), localProps);
|
|
153
|
+
return createComponent(TreeViewProvider, {
|
|
154
|
+
value: treeView2,
|
|
155
|
+
get children() {
|
|
156
|
+
return createComponent(RenderStrategyProvider, {
|
|
157
|
+
value: renderStrategyProps,
|
|
158
|
+
get children() {
|
|
159
|
+
return createComponent(ark.div, mergedProps);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
var TreeViewRootProvider = (props) => {
|
|
166
|
+
const [renderStrategyProps, treeViewProps] = splitRenderStrategyProps(props);
|
|
167
|
+
const [{
|
|
168
|
+
value: treeView2
|
|
169
|
+
}, localProps] = createSplitProps()(treeViewProps, ["value"]);
|
|
170
|
+
const mergedProps = mergeProps(() => treeView2().getRootProps(), localProps);
|
|
171
|
+
return createComponent(TreeViewProvider, {
|
|
172
|
+
value: treeView2,
|
|
173
|
+
get children() {
|
|
174
|
+
return createComponent(RenderStrategyProvider, {
|
|
175
|
+
value: renderStrategyProps,
|
|
176
|
+
get children() {
|
|
177
|
+
return createComponent(ark.div, mergedProps);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
var TreeViewTree = (props) => {
|
|
184
|
+
const treeView2 = useTreeViewContext();
|
|
185
|
+
const mergedProps = mergeProps(() => treeView2().getTreeProps(), props);
|
|
186
|
+
return createComponent(ark.div, mergedProps);
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
// src/components/tree-view/tree-view.ts
|
|
190
|
+
var tree_view_exports = {};
|
|
191
|
+
__export(tree_view_exports, {
|
|
192
|
+
Branch: () => TreeViewBranch,
|
|
193
|
+
BranchContent: () => TreeViewBranchContent,
|
|
194
|
+
BranchControl: () => TreeViewBranchControl,
|
|
195
|
+
BranchIndentGuide: () => TreeViewBranchIndentGuide,
|
|
196
|
+
BranchIndicator: () => TreeViewBranchIndicator,
|
|
197
|
+
BranchText: () => TreeViewBranchText,
|
|
198
|
+
BranchTrigger: () => TreeViewBranchTrigger,
|
|
199
|
+
Context: () => TreeViewContext,
|
|
200
|
+
Item: () => TreeViewItem,
|
|
201
|
+
ItemIndicator: () => TreeViewItemIndicator,
|
|
202
|
+
ItemText: () => TreeViewItemText,
|
|
203
|
+
Label: () => TreeViewLabel,
|
|
204
|
+
NodeContext: () => TreeViewNodeContext,
|
|
205
|
+
NodeProvider: () => TreeViewNodeProvider2,
|
|
206
|
+
Root: () => TreeViewRoot,
|
|
207
|
+
RootProvider: () => TreeViewRootProvider,
|
|
208
|
+
Tree: () => TreeViewTree
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
// src/components/tree-view/tree-view-context.tsx
|
|
212
|
+
var TreeViewContext = (props) => props.children(useTreeViewContext());
|
|
213
|
+
|
|
214
|
+
export { TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndentGuide, TreeViewBranchIndicator, TreeViewBranchText, TreeViewBranchTrigger, TreeViewItem, TreeViewItemIndicator, TreeViewItemText, TreeViewLabel, TreeViewNodeContext, TreeViewNodeProvider2 as TreeViewNodeProvider, TreeViewRoot, TreeViewRootProvider, TreeViewTree, tree_view_exports, useTreeView };
|
|
@@ -82,7 +82,8 @@ var fieldAnatomy = createAnatomy("field").parts(
|
|
|
82
82
|
"input",
|
|
83
83
|
"label",
|
|
84
84
|
"select",
|
|
85
|
-
"textarea"
|
|
85
|
+
"textarea",
|
|
86
|
+
"requiredIndicator"
|
|
86
87
|
);
|
|
87
88
|
var parts = fieldAnatomy.build();
|
|
88
89
|
|
|
@@ -166,6 +167,10 @@ var useField = (props) => {
|
|
|
166
167
|
...parts.errorText.attrs,
|
|
167
168
|
"aria-live": "polite"
|
|
168
169
|
});
|
|
170
|
+
const getRequiredIndicatorProps = () => ({
|
|
171
|
+
"aria-hidden": true,
|
|
172
|
+
...parts.requiredIndicator.attrs
|
|
173
|
+
});
|
|
169
174
|
return createMemo(() => ({
|
|
170
175
|
ariaDescribedby: labelIds.join(" "),
|
|
171
176
|
ids: {
|
|
@@ -187,7 +192,8 @@ var useField = (props) => {
|
|
|
187
192
|
getTextareaProps,
|
|
188
193
|
getSelectProps,
|
|
189
194
|
getHelperTextProps,
|
|
190
|
-
getErrorTextProps
|
|
195
|
+
getErrorTextProps,
|
|
196
|
+
getRequiredIndicatorProps
|
|
191
197
|
}));
|
|
192
198
|
};
|
|
193
199
|
|
|
@@ -227,11 +233,40 @@ var FieldSelect = (props) => {
|
|
|
227
233
|
};
|
|
228
234
|
|
|
229
235
|
// src/components/field/field-textarea.tsx
|
|
236
|
+
import { autoresizeTextarea } from "@zag-js/auto-resize";
|
|
230
237
|
import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
238
|
+
import { createEffect as createEffect2 } from "solid-js";
|
|
231
239
|
var FieldTextarea = (props) => {
|
|
232
240
|
const field = useFieldContext();
|
|
233
|
-
|
|
234
|
-
|
|
241
|
+
let textareaRef;
|
|
242
|
+
const { autoresize, ...textareaProps } = props;
|
|
243
|
+
const mergedProps = mergeProps9(
|
|
244
|
+
() => field?.().getTextareaProps(),
|
|
245
|
+
() => ({ style: { resize: autoresize ? "none" : void 0 } }),
|
|
246
|
+
textareaProps
|
|
247
|
+
);
|
|
248
|
+
createEffect2(() => {
|
|
249
|
+
if (!autoresize) return;
|
|
250
|
+
const cleanup = autoresizeTextarea(textareaRef);
|
|
251
|
+
return cleanup;
|
|
252
|
+
});
|
|
253
|
+
return <ark.textarea
|
|
254
|
+
{...mergedProps}
|
|
255
|
+
ref={(el) => {
|
|
256
|
+
textareaRef = el;
|
|
257
|
+
}}
|
|
258
|
+
/>;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
// src/components/field/field-required-indicator.tsx
|
|
262
|
+
import { mergeProps as mergeProps10 } from "@zag-js/solid";
|
|
263
|
+
import { Show as Show2 } from "solid-js";
|
|
264
|
+
var FieldRequiredIndicator = (props) => {
|
|
265
|
+
const field = useFieldContext();
|
|
266
|
+
const mergedProps = mergeProps10(() => field().getRequiredIndicatorProps(), props);
|
|
267
|
+
return <Show2 when={field().required} fallback={props.fallback}>
|
|
268
|
+
<ark.span {...mergedProps}>{props.children ?? "*"}</ark.span>
|
|
269
|
+
</Show2>;
|
|
235
270
|
};
|
|
236
271
|
|
|
237
272
|
// src/components/field/field.ts
|
|
@@ -242,6 +277,7 @@ __export(field_exports, {
|
|
|
242
277
|
HelperText: () => FieldHelperText,
|
|
243
278
|
Input: () => FieldInput,
|
|
244
279
|
Label: () => FieldLabel,
|
|
280
|
+
RequiredIndicator: () => FieldRequiredIndicator,
|
|
245
281
|
Root: () => FieldRoot,
|
|
246
282
|
RootProvider: () => FieldRootProvider,
|
|
247
283
|
Select: () => FieldSelect,
|
|
@@ -260,5 +296,6 @@ export {
|
|
|
260
296
|
FieldRootProvider,
|
|
261
297
|
FieldSelect,
|
|
262
298
|
FieldTextarea,
|
|
299
|
+
FieldRequiredIndicator,
|
|
263
300
|
field_exports
|
|
264
301
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./TY6NCPFG.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -85,7 +85,7 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
|
85
85
|
import * as signaturePad from "@zag-js/signature-pad";
|
|
86
86
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
87
87
|
import { createMemo, createUniqueId } from "solid-js";
|
|
88
|
-
var useSignaturePad = (props) => {
|
|
88
|
+
var useSignaturePad = (props = {}) => {
|
|
89
89
|
const locale = useLocaleContext();
|
|
90
90
|
const environment = useEnvironmentContext();
|
|
91
91
|
const id = createUniqueId();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { useFieldContext } from './PBJ7MGGS.js';
|
|
1
2
|
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './LCESUDZB.js';
|
|
2
|
-
import { useFieldContext } from './B2OPFF7J.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
5
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -194,7 +194,7 @@ var ColorPickerPositioner = (props) => {
|
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
|
-
var useColorPicker = (props) => {
|
|
197
|
+
var useColorPicker = (props = {}) => {
|
|
198
198
|
const locale = useLocaleContext();
|
|
199
199
|
const environment = useEnvironmentContext();
|
|
200
200
|
const field = useFieldContext();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./TY6NCPFG.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -61,7 +61,7 @@ import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
|
61
61
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
62
62
|
import * as zagSwitch from "@zag-js/switch";
|
|
63
63
|
import { createMemo, createUniqueId } from "solid-js";
|
|
64
|
-
var useSwitch = (props) => {
|
|
64
|
+
var useSwitch = (props = {}) => {
|
|
65
65
|
const locale = useLocaleContext();
|
|
66
66
|
const environment = useEnvironmentContext();
|
|
67
67
|
const id = createUniqueId();
|
|
@@ -33,7 +33,7 @@ var QrCodePattern = (props) => {
|
|
|
33
33
|
const mergedProps = mergeProps(() => qrCode2().getPatternProps(), props);
|
|
34
34
|
return createComponent(ark.path, mergedProps);
|
|
35
35
|
};
|
|
36
|
-
var useQrCode = (props) => {
|
|
36
|
+
var useQrCode = (props = {}) => {
|
|
37
37
|
const locale = useLocaleContext();
|
|
38
38
|
const environment = useEnvironmentContext();
|
|
39
39
|
const id = createUniqueId();
|
|
@@ -55,7 +55,7 @@ import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
|
55
55
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
56
56
|
import * as splitter from "@zag-js/splitter";
|
|
57
57
|
import { createMemo, createUniqueId } from "solid-js";
|
|
58
|
-
var useSplitter = (props) => {
|
|
58
|
+
var useSplitter = (props = {}) => {
|
|
59
59
|
const locale = useLocaleContext();
|
|
60
60
|
const environment = useEnvironmentContext();
|
|
61
61
|
const id = createUniqueId();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './PBJ7MGGS.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -54,7 +54,7 @@ var SignaturePadLabel = (props) => {
|
|
|
54
54
|
const mergedProps = mergeProps(() => signaturePad2().getLabelProps(), props);
|
|
55
55
|
return createComponent(ark.label, mergedProps);
|
|
56
56
|
};
|
|
57
|
-
var useSignaturePad = (props) => {
|
|
57
|
+
var useSignaturePad = (props = {}) => {
|
|
58
58
|
const locale = useLocaleContext();
|
|
59
59
|
const environment = useEnvironmentContext();
|
|
60
60
|
const id = createUniqueId();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './PBJ7MGGS.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -109,7 +109,7 @@ var TagsInputLabel = (props) => {
|
|
|
109
109
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
110
110
|
return createComponent(ark.label, mergedProps);
|
|
111
111
|
};
|
|
112
|
-
var useTagsInput = (props) => {
|
|
112
|
+
var useTagsInput = (props = {}) => {
|
|
113
113
|
const locale = useLocaleContext();
|
|
114
114
|
const environment = useEnvironmentContext();
|
|
115
115
|
const id = createUniqueId();
|
|
@@ -126,7 +126,7 @@ var DatePickerRangeText = (props) => {
|
|
|
126
126
|
}
|
|
127
127
|
}));
|
|
128
128
|
};
|
|
129
|
-
var useDatePicker = (props) => {
|
|
129
|
+
var useDatePicker = (props = {}) => {
|
|
130
130
|
const locale = useLocaleContext();
|
|
131
131
|
const environment = useEnvironmentContext();
|
|
132
132
|
const id = createUniqueId();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useControllableState } from './BSPFGETO.js';
|
|
2
|
-
import { useFieldContext } from './
|
|
2
|
+
import { useFieldContext } from './PBJ7MGGS.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
5
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -123,7 +123,7 @@ var CheckboxLabel = (props) => {
|
|
|
123
123
|
const mergedProps = mergeProps(() => checkbox2().getLabelProps(), props);
|
|
124
124
|
return createComponent(ark.span, mergedProps);
|
|
125
125
|
};
|
|
126
|
-
var useCheckbox = (ownProps) => {
|
|
126
|
+
var useCheckbox = (ownProps = {}) => {
|
|
127
127
|
const checkboxGroup = useCheckboxGroupContext();
|
|
128
128
|
const props = createMemo(() => {
|
|
129
129
|
return mergeProps(ownProps, checkboxGroup?.().getItemProps({ value: ownProps.value }) ?? {});
|
|
@@ -55,7 +55,7 @@ var ClipboardLabel = (props) => {
|
|
|
55
55
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
56
56
|
return createComponent(ark.label, mergedProps);
|
|
57
57
|
};
|
|
58
|
-
var useClipboard = (props) => {
|
|
58
|
+
var useClipboard = (props = {}) => {
|
|
59
59
|
const environment = useEnvironmentContext();
|
|
60
60
|
const id = createUniqueId();
|
|
61
61
|
const context = createMemo(() => ({
|
|
@@ -30,32 +30,32 @@ var TimerActionTrigger = (props) => {
|
|
|
30
30
|
return <ark.button {...mergedProps} />;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
// src/components/timer/timer-
|
|
34
|
-
var TimerContext = (props) => props.children(useTimerContext());
|
|
35
|
-
|
|
36
|
-
// src/components/timer/timer-item.tsx
|
|
33
|
+
// src/components/timer/timer-area.tsx
|
|
37
34
|
import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
38
|
-
var
|
|
39
|
-
const [itemProps, localProps] = createSplitProps()(props, ["type"]);
|
|
35
|
+
var TimerArea = (props) => {
|
|
40
36
|
const timer2 = useTimerContext();
|
|
41
|
-
const mergedProps = mergeProps2(() => timer2().
|
|
42
|
-
return <ark.div {...mergedProps}
|
|
37
|
+
const mergedProps = mergeProps2(() => timer2().getAreaProps(), props);
|
|
38
|
+
return <ark.div {...mergedProps} />;
|
|
43
39
|
};
|
|
44
40
|
|
|
45
|
-
// src/components/timer/timer-
|
|
41
|
+
// src/components/timer/timer-context.tsx
|
|
42
|
+
var TimerContext = (props) => props.children(useTimerContext());
|
|
43
|
+
|
|
44
|
+
// src/components/timer/timer-control.tsx
|
|
46
45
|
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
47
|
-
var
|
|
46
|
+
var TimerControl = (props) => {
|
|
48
47
|
const timer2 = useTimerContext();
|
|
49
|
-
const mergedProps = mergeProps3(() => timer2().
|
|
48
|
+
const mergedProps = mergeProps3(() => timer2().getControlProps(), props);
|
|
50
49
|
return <ark.div {...mergedProps} />;
|
|
51
50
|
};
|
|
52
51
|
|
|
53
|
-
// src/components/timer/timer-
|
|
52
|
+
// src/components/timer/timer-item.tsx
|
|
54
53
|
import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
55
|
-
var
|
|
54
|
+
var TimerItem = (props) => {
|
|
55
|
+
const [itemProps, localProps] = createSplitProps()(props, ["type"]);
|
|
56
56
|
const timer2 = useTimerContext();
|
|
57
|
-
const mergedProps = mergeProps4(() => timer2().
|
|
58
|
-
return <ark.div {...mergedProps}
|
|
57
|
+
const mergedProps = mergeProps4(() => timer2().getItemProps(itemProps), localProps);
|
|
58
|
+
return <ark.div {...mergedProps}>{timer2().formattedTime[itemProps.type]}</ark.div>;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
// src/components/timer/timer-root.tsx
|
|
@@ -65,7 +65,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
65
65
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
66
66
|
import * as timer from "@zag-js/timer";
|
|
67
67
|
import { createMemo, createUniqueId } from "solid-js";
|
|
68
|
-
var useTimer = (props) => {
|
|
68
|
+
var useTimer = (props = {}) => {
|
|
69
69
|
const env = useEnvironmentContext();
|
|
70
70
|
const id = createUniqueId();
|
|
71
71
|
const context = createMemo(() => ({
|
|
@@ -134,10 +134,10 @@ __export(timer_exports, {
|
|
|
134
134
|
export {
|
|
135
135
|
useTimerContext,
|
|
136
136
|
TimerActionTrigger,
|
|
137
|
-
TimerContext,
|
|
138
|
-
TimerItem,
|
|
139
137
|
TimerArea,
|
|
138
|
+
TimerContext,
|
|
140
139
|
TimerControl,
|
|
140
|
+
TimerItem,
|
|
141
141
|
useTimer,
|
|
142
142
|
TimerRoot,
|
|
143
143
|
TimerRootProvider,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { useFieldContext } from './PBJ7MGGS.js';
|
|
1
2
|
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './LCESUDZB.js';
|
|
2
|
-
import { useFieldContext } from './B2OPFF7J.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
5
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -194,7 +194,7 @@ var useCombobox = (props) => {
|
|
|
194
194
|
// src/components/combobox/combobox-root.tsx
|
|
195
195
|
var ComboboxRoot = (props) => {
|
|
196
196
|
const [presenceProps, comboboxProps] = splitPresenceProps(props);
|
|
197
|
-
const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ["allowCustomValue", "autoFocus", "closeOnSelect", "collection", "composite", "defaultOpen", "defaultValue", "disabled", "disableLayer", "form", "
|
|
197
|
+
const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ["allowCustomValue", "autoFocus", "closeOnSelect", "collection", "composite", "defaultOpen", "defaultValue", "disabled", "disableLayer", "form", "highlightedValue", "id", "ids", "inputBehavior", "inputValue", "invalid", "loopFocus", "multiple", "name", "onFocusOutside", "onHighlightChange", "onInputValueChange", "onInteractOutside", "onOpenChange", "onOpenChange", "onPointerDownOutside", "onValueChange", "open", "openOnChange", "openOnClick", "openOnKeyPress", "placeholder", "positioning", "readOnly", "required", "scrollToIndexFn", "selectionBehavior", "translations", "value"]);
|
|
198
198
|
const api = useCombobox(useComboboxProps);
|
|
199
199
|
const apiPresence = usePresence(mergeProps(presenceProps, () => ({
|
|
200
200
|
present: api().open
|
|
@@ -75,7 +75,7 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
|
75
75
|
import * as progress from "@zag-js/progress";
|
|
76
76
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
77
77
|
import { createMemo, createUniqueId } from "solid-js";
|
|
78
|
-
var useProgress = (props) => {
|
|
78
|
+
var useProgress = (props = {}) => {
|
|
79
79
|
const locale = useLocaleContext();
|
|
80
80
|
const environment = useEnvironmentContext();
|
|
81
81
|
const id = createUniqueId();
|
|
@@ -85,7 +85,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
85
85
|
import * as hoverCard from "@zag-js/hover-card";
|
|
86
86
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
87
87
|
import { createMemo, createUniqueId } from "solid-js";
|
|
88
|
-
var useHoverCard = (props) => {
|
|
88
|
+
var useHoverCard = (props = {}) => {
|
|
89
89
|
const locale = useLocaleContext();
|
|
90
90
|
const environment = useEnvironmentContext();
|
|
91
91
|
const id = createUniqueId();
|