@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -117,80 +117,81 @@
|
|
|
117
117
|
"sideEffects": false,
|
|
118
118
|
"dependencies": {
|
|
119
119
|
"@internationalized/date": "3.5.6",
|
|
120
|
-
"@zag-js/accordion": "0.
|
|
121
|
-
"@zag-js/anatomy": "0.
|
|
122
|
-
"@zag-js/
|
|
123
|
-
"@zag-js/
|
|
124
|
-
"@zag-js/
|
|
125
|
-
"@zag-js/
|
|
126
|
-
"@zag-js/
|
|
127
|
-
"@zag-js/
|
|
128
|
-
"@zag-js/
|
|
129
|
-
"@zag-js/
|
|
130
|
-
"@zag-js/
|
|
131
|
-
"@zag-js/
|
|
132
|
-
"@zag-js/
|
|
133
|
-
"@zag-js/
|
|
134
|
-
"@zag-js/
|
|
135
|
-
"@zag-js/
|
|
136
|
-
"@zag-js/
|
|
137
|
-
"@zag-js/
|
|
138
|
-
"@zag-js/
|
|
139
|
-
"@zag-js/
|
|
140
|
-
"@zag-js/
|
|
141
|
-
"@zag-js/
|
|
142
|
-
"@zag-js/
|
|
143
|
-
"@zag-js/
|
|
144
|
-
"@zag-js/
|
|
145
|
-
"@zag-js/
|
|
146
|
-
"@zag-js/
|
|
147
|
-
"@zag-js/
|
|
148
|
-
"@zag-js/
|
|
149
|
-
"@zag-js/
|
|
150
|
-
"@zag-js/
|
|
151
|
-
"@zag-js/
|
|
152
|
-
"@zag-js/
|
|
153
|
-
"@zag-js/
|
|
154
|
-
"@zag-js/
|
|
155
|
-
"@zag-js/
|
|
156
|
-
"@zag-js/
|
|
157
|
-
"@zag-js/
|
|
158
|
-
"@zag-js/
|
|
159
|
-
"@zag-js/
|
|
160
|
-
"@zag-js/
|
|
161
|
-
"@zag-js/
|
|
162
|
-
"@zag-js/
|
|
163
|
-
"@zag-js/
|
|
164
|
-
"@zag-js/
|
|
120
|
+
"@zag-js/accordion": "0.77.0",
|
|
121
|
+
"@zag-js/anatomy": "0.77.0",
|
|
122
|
+
"@zag-js/auto-resize": "0.77.0",
|
|
123
|
+
"@zag-js/avatar": "0.77.0",
|
|
124
|
+
"@zag-js/carousel": "0.77.0",
|
|
125
|
+
"@zag-js/checkbox": "0.77.0",
|
|
126
|
+
"@zag-js/clipboard": "0.77.0",
|
|
127
|
+
"@zag-js/collapsible": "0.77.0",
|
|
128
|
+
"@zag-js/collection": "0.77.0",
|
|
129
|
+
"@zag-js/color-picker": "0.77.0",
|
|
130
|
+
"@zag-js/combobox": "0.77.0",
|
|
131
|
+
"@zag-js/date-picker": "0.77.0",
|
|
132
|
+
"@zag-js/dialog": "0.77.0",
|
|
133
|
+
"@zag-js/dom-query": "0.77.0",
|
|
134
|
+
"@zag-js/editable": "0.77.0",
|
|
135
|
+
"@zag-js/file-upload": "0.77.0",
|
|
136
|
+
"@zag-js/highlight-word": "0.77.0",
|
|
137
|
+
"@zag-js/hover-card": "0.77.0",
|
|
138
|
+
"@zag-js/file-utils": "0.77.0",
|
|
139
|
+
"@zag-js/i18n-utils": "0.77.0",
|
|
140
|
+
"@zag-js/menu": "0.77.0",
|
|
141
|
+
"@zag-js/number-input": "0.77.0",
|
|
142
|
+
"@zag-js/pagination": "0.77.0",
|
|
143
|
+
"@zag-js/pin-input": "0.77.0",
|
|
144
|
+
"@zag-js/popover": "0.77.0",
|
|
145
|
+
"@zag-js/presence": "0.77.0",
|
|
146
|
+
"@zag-js/progress": "0.77.0",
|
|
147
|
+
"@zag-js/qr-code": "0.77.0",
|
|
148
|
+
"@zag-js/radio-group": "0.77.0",
|
|
149
|
+
"@zag-js/rating-group": "0.77.0",
|
|
150
|
+
"@zag-js/select": "0.77.0",
|
|
151
|
+
"@zag-js/signature-pad": "0.77.0",
|
|
152
|
+
"@zag-js/slider": "0.77.0",
|
|
153
|
+
"@zag-js/solid": "0.77.0",
|
|
154
|
+
"@zag-js/splitter": "0.77.0",
|
|
155
|
+
"@zag-js/steps": "0.77.0",
|
|
156
|
+
"@zag-js/switch": "0.77.0",
|
|
157
|
+
"@zag-js/tabs": "0.77.0",
|
|
158
|
+
"@zag-js/tags-input": "0.77.0",
|
|
159
|
+
"@zag-js/timer": "0.77.0",
|
|
160
|
+
"@zag-js/time-picker": "0.77.0",
|
|
161
|
+
"@zag-js/toast": "0.77.0",
|
|
162
|
+
"@zag-js/toggle-group": "0.77.0",
|
|
163
|
+
"@zag-js/tooltip": "0.77.0",
|
|
164
|
+
"@zag-js/tree-view": "0.77.0",
|
|
165
|
+
"@zag-js/types": "0.77.0"
|
|
165
166
|
},
|
|
166
167
|
"devDependencies": {
|
|
167
|
-
"@biomejs/biome": "1.9.
|
|
168
|
+
"@biomejs/biome": "1.9.4",
|
|
168
169
|
"@release-it/keep-a-changelog": "5.0.0",
|
|
169
170
|
"@solidjs/testing-library": "0.8.10",
|
|
170
|
-
"@storybook/addon-a11y": "8.
|
|
171
|
-
"@storybook/addon-essentials": "8.
|
|
172
|
-
"@storybook/docs-tools": "8.
|
|
171
|
+
"@storybook/addon-a11y": "8.4.2",
|
|
172
|
+
"@storybook/addon-essentials": "8.4.2",
|
|
173
|
+
"@storybook/docs-tools": "8.4.2",
|
|
173
174
|
"@testing-library/dom": "10.4.0",
|
|
174
175
|
"@testing-library/jest-dom": "6.5.0",
|
|
175
176
|
"@testing-library/user-event": "14.5.2",
|
|
176
177
|
"@types/jsdom": "21.1.7",
|
|
177
|
-
"@zag-js/stringify-state": "0.
|
|
178
|
+
"@zag-js/stringify-state": "0.77.0",
|
|
178
179
|
"clean-package": "2.2.0",
|
|
179
180
|
"esbuild-plugin-solid": "0.6.0",
|
|
180
181
|
"globby": "14.0.2",
|
|
181
182
|
"jsdom": "25.0.1",
|
|
182
|
-
"lucide-solid": "0.
|
|
183
|
-
"release-it": "17.
|
|
183
|
+
"lucide-solid": "0.456.0",
|
|
184
|
+
"release-it": "17.10.0",
|
|
184
185
|
"resize-observer-polyfill": "1.5.1",
|
|
185
|
-
"solid-js": "1.9.
|
|
186
|
-
"storybook": "8.
|
|
186
|
+
"solid-js": "1.9.3",
|
|
187
|
+
"storybook": "8.4.2",
|
|
187
188
|
"storybook-solidjs": "1.0.0-beta.2",
|
|
188
|
-
"storybook-solidjs-vite": "1.0.0-beta.
|
|
189
|
-
"tsup": "8.3.
|
|
189
|
+
"storybook-solidjs-vite": "1.0.0-beta.3",
|
|
190
|
+
"tsup": "8.3.5",
|
|
190
191
|
"typescript": "5.6.3",
|
|
191
|
-
"vite": "5.4.
|
|
192
|
+
"vite": "5.4.10",
|
|
192
193
|
"vite-plugin-solid": "2.10.2",
|
|
193
|
-
"vitest": "2.1.
|
|
194
|
+
"vitest": "2.1.4"
|
|
194
195
|
},
|
|
195
196
|
"peerDependencies": {
|
|
196
197
|
"solid-js": ">=1.6.0"
|
package/dist/chunk/DI6H2YIE.jsx
DELETED
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createSplitProps
|
|
3
|
-
} from "./6WEDGJKQ.jsx";
|
|
4
|
-
import {
|
|
5
|
-
ark
|
|
6
|
-
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useLocaleContext
|
|
9
|
-
} from "./3QQZKR3F.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./5O4RWSWO.jsx";
|
|
13
|
-
import {
|
|
14
|
-
createContext
|
|
15
|
-
} from "./NMGUCD2L.jsx";
|
|
16
|
-
import {
|
|
17
|
-
__export
|
|
18
|
-
} from "./7IUG3E2V.jsx";
|
|
19
|
-
|
|
20
|
-
// src/components/tree-view/tree-view-branch.tsx
|
|
21
|
-
import { mergeProps } from "@zag-js/solid";
|
|
22
|
-
|
|
23
|
-
// src/components/tree-view/use-tree-view-branch-context.ts
|
|
24
|
-
var [TreeViewBranchProvider, useTreeViewBranchContext] = createContext({
|
|
25
|
-
hookName: "useTreeViewBranchContext",
|
|
26
|
-
providerName: "<TreeViewBranchProvider />"
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
// src/components/tree-view/use-tree-view-context.ts
|
|
30
|
-
var [TreeViewProvider, useTreeViewContext] = createContext({
|
|
31
|
-
hookName: "useTreeViewContext",
|
|
32
|
-
providerName: "<TreeViewProvider />"
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
// src/components/tree-view/use-tree-view-depth-context.ts
|
|
36
|
-
var [TreeViewDepthProvider, useTreeViewDepthContext] = createContext({
|
|
37
|
-
hookName: "useTreeViewDepthContext",
|
|
38
|
-
providerName: "<TreeViewDepthProvider />"
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
// src/components/tree-view/tree-view-branch.tsx
|
|
42
|
-
var TreeViewBranch = (props) => {
|
|
43
|
-
const [itemProps, localProps] = createSplitProps()(props, ["disabled", "value"]);
|
|
44
|
-
const api = useTreeViewContext();
|
|
45
|
-
const depth = useTreeViewDepthContext();
|
|
46
|
-
const branchProps = mergeProps(itemProps, { depth });
|
|
47
|
-
const mergedProps = mergeProps(() => api().getBranchProps(branchProps), localProps);
|
|
48
|
-
return <TreeViewDepthProvider value={depth + 1}>
|
|
49
|
-
<TreeViewBranchProvider value={branchProps}>
|
|
50
|
-
<ark.li {...mergedProps} />
|
|
51
|
-
</TreeViewBranchProvider>
|
|
52
|
-
</TreeViewDepthProvider>;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// src/components/tree-view/tree-view-branch-content.tsx
|
|
56
|
-
import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
57
|
-
var TreeViewBranchContent = (props) => {
|
|
58
|
-
const api = useTreeViewContext();
|
|
59
|
-
const branchProps = useTreeViewBranchContext();
|
|
60
|
-
const mergedProps = mergeProps2(() => api().getBranchContentProps(branchProps), props);
|
|
61
|
-
return <ark.ul {...mergedProps} />;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
// src/components/tree-view/tree-view-branch-control.tsx
|
|
65
|
-
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
66
|
-
var TreeViewBranchControl = (props) => {
|
|
67
|
-
const api = useTreeViewContext();
|
|
68
|
-
const branchProps = useTreeViewBranchContext();
|
|
69
|
-
const mergedProps = mergeProps3(() => api().getBranchControlProps(branchProps), props);
|
|
70
|
-
return <ark.div {...mergedProps} />;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
// src/components/tree-view/tree-view-branch-indicator.tsx
|
|
74
|
-
import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
75
|
-
var TreeViewBranchIndicator = (props) => {
|
|
76
|
-
const api = useTreeViewContext();
|
|
77
|
-
const branchProps = useTreeViewBranchContext();
|
|
78
|
-
const mergedProps = mergeProps4(() => api().getBranchIndicatorProps(branchProps), props);
|
|
79
|
-
return <ark.div {...mergedProps} />;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
// src/components/tree-view/tree-view-branch-text.tsx
|
|
83
|
-
import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
84
|
-
var TreeViewBranchText = (props) => {
|
|
85
|
-
const api = useTreeViewContext();
|
|
86
|
-
const branchProps = useTreeViewBranchContext();
|
|
87
|
-
const mergedProps = mergeProps5(() => api().getBranchTextProps(branchProps), props);
|
|
88
|
-
return <ark.span {...mergedProps} />;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
// src/components/tree-view/tree-view-branch-trigger.tsx
|
|
92
|
-
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
93
|
-
var TreeViewBranchTrigger = (props) => {
|
|
94
|
-
const api = useTreeViewContext();
|
|
95
|
-
const branchProps = useTreeViewBranchContext();
|
|
96
|
-
const mergedProps = mergeProps6(() => api().getBranchTriggerProps(branchProps), props);
|
|
97
|
-
return <ark.div {...mergedProps} />;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/components/tree-view/tree-view-context.tsx
|
|
101
|
-
var TreeViewContext = (props) => props.children(useTreeViewContext());
|
|
102
|
-
|
|
103
|
-
// src/components/tree-view/tree-view-item.tsx
|
|
104
|
-
import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
105
|
-
import { createMemo } from "solid-js";
|
|
106
|
-
|
|
107
|
-
// src/components/tree-view/use-tree-view-item-context.ts
|
|
108
|
-
var [TreeViewItemProvider, useTreeViewItemContext] = createContext(
|
|
109
|
-
{
|
|
110
|
-
hookName: "useTreeViewItemContext",
|
|
111
|
-
providerName: "<TreeViewItemProvider />"
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
// src/components/tree-view/use-tree-view-item-props-context.ts
|
|
116
|
-
var [TreeViewItemPropsProvider, useTreeViewItemPropsContext] = createContext({
|
|
117
|
-
hookName: "useTreeViewItemPropsContext",
|
|
118
|
-
providerName: "<TreeViewItemProvider />"
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
// src/components/tree-view/tree-view-item.tsx
|
|
122
|
-
var TreeViewItem = (props) => {
|
|
123
|
-
const [_itemProps, localProps] = createSplitProps()(props, [
|
|
124
|
-
"disabled",
|
|
125
|
-
"value"
|
|
126
|
-
]);
|
|
127
|
-
const api = useTreeViewContext();
|
|
128
|
-
const depth = useTreeViewDepthContext();
|
|
129
|
-
const itemProps = mergeProps7(_itemProps, { depth });
|
|
130
|
-
const itemState = createMemo(() => api().getItemState(itemProps));
|
|
131
|
-
const mergedProps = mergeProps7(() => api().getItemProps(itemProps), localProps);
|
|
132
|
-
return <TreeViewItemPropsProvider value={itemProps}>
|
|
133
|
-
<TreeViewItemProvider value={itemState}>
|
|
134
|
-
<ark.li {...mergedProps} />
|
|
135
|
-
</TreeViewItemProvider>
|
|
136
|
-
</TreeViewItemPropsProvider>;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
// src/components/tree-view/tree-view-item-context.tsx
|
|
140
|
-
var TreeViewItemContext = (props) => props.children(useTreeViewItemContext());
|
|
141
|
-
|
|
142
|
-
// src/components/tree-view/tree-view-item-indicator.tsx
|
|
143
|
-
import { mergeProps as mergeProps8 } from "@zag-js/solid";
|
|
144
|
-
var TreeViewItemIndicator = (props) => {
|
|
145
|
-
const api = useTreeViewContext();
|
|
146
|
-
const itemProps = useTreeViewItemPropsContext();
|
|
147
|
-
const mergedProps = mergeProps8(() => api().getItemIndicatorProps(itemProps), props);
|
|
148
|
-
return <ark.div {...mergedProps} />;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
// src/components/tree-view/tree-view-item-text.tsx
|
|
152
|
-
import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
153
|
-
var TreeViewItemText = (props) => {
|
|
154
|
-
const api = useTreeViewContext();
|
|
155
|
-
const itemProps = useTreeViewItemPropsContext();
|
|
156
|
-
const mergedProps = mergeProps9(() => api().getItemTextProps(itemProps), props);
|
|
157
|
-
return <ark.span {...mergedProps} />;
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
// src/components/tree-view/tree-view-label.tsx
|
|
161
|
-
import { mergeProps as mergeProps10 } from "@zag-js/solid";
|
|
162
|
-
var TreeViewLabel = (props) => {
|
|
163
|
-
const api = useTreeViewContext();
|
|
164
|
-
const mergedProps = mergeProps10(() => api().getLabelProps(), props);
|
|
165
|
-
return <ark.label {...mergedProps} />;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
// src/components/tree-view/tree-view-root.tsx
|
|
169
|
-
import { mergeProps as mergeProps11 } from "@zag-js/solid";
|
|
170
|
-
|
|
171
|
-
// src/components/tree-view/use-tree-view.ts
|
|
172
|
-
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
173
|
-
import * as treeView from "@zag-js/tree-view";
|
|
174
|
-
import { createMemo as createMemo2, createUniqueId } from "solid-js";
|
|
175
|
-
var useTreeView = (props) => {
|
|
176
|
-
const locale = useLocaleContext();
|
|
177
|
-
const environment = useEnvironmentContext();
|
|
178
|
-
const id = createUniqueId();
|
|
179
|
-
const context = createMemo2(() => ({
|
|
180
|
-
id,
|
|
181
|
-
dir: locale().dir,
|
|
182
|
-
getRootNode: environment().getRootNode,
|
|
183
|
-
selectedValue: props.defaultSelectedValue,
|
|
184
|
-
expandedValue: props.defaultExpandedValue,
|
|
185
|
-
...props
|
|
186
|
-
}));
|
|
187
|
-
const [state, send] = useMachine(treeView.machine(context()), { context });
|
|
188
|
-
return createMemo2(() => treeView.connect(state, send, normalizeProps));
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
// src/components/tree-view/tree-view-root.tsx
|
|
192
|
-
var TreeViewRoot = (props) => {
|
|
193
|
-
const [useTreeViewProps, localProps] = createSplitProps()(props, [
|
|
194
|
-
"defaultExpandedValue",
|
|
195
|
-
"defaultSelectedValue",
|
|
196
|
-
"expandedValue",
|
|
197
|
-
"expandOnClick",
|
|
198
|
-
"focusedValue",
|
|
199
|
-
"id",
|
|
200
|
-
"ids",
|
|
201
|
-
"onExpandedChange",
|
|
202
|
-
"onFocusChange",
|
|
203
|
-
"onSelectionChange",
|
|
204
|
-
"selectedValue",
|
|
205
|
-
"selectionMode",
|
|
206
|
-
"typeahead"
|
|
207
|
-
]);
|
|
208
|
-
const api = useTreeView(useTreeViewProps);
|
|
209
|
-
const mergedProps = mergeProps11(() => api().getRootProps(), localProps);
|
|
210
|
-
return <TreeViewProvider value={api}>
|
|
211
|
-
<ark.div {...mergedProps} />
|
|
212
|
-
</TreeViewProvider>;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
// src/components/tree-view/tree-view-root-provider.tsx
|
|
216
|
-
import { mergeProps as mergeProps12 } from "@zag-js/solid";
|
|
217
|
-
var TreeViewRootProvider = (props) => {
|
|
218
|
-
const [{ value: treeView2 }, localProps] = createSplitProps()(props, ["value"]);
|
|
219
|
-
const mergedProps = mergeProps12(() => treeView2().getRootProps(), localProps);
|
|
220
|
-
return <TreeViewProvider value={treeView2}>
|
|
221
|
-
<ark.div {...mergedProps} />
|
|
222
|
-
</TreeViewProvider>;
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
// src/components/tree-view/tree-view-tree.tsx
|
|
226
|
-
import { mergeProps as mergeProps13 } from "@zag-js/solid";
|
|
227
|
-
var TreeViewTree = (props) => {
|
|
228
|
-
const api = useTreeViewContext();
|
|
229
|
-
const mergedProps = mergeProps13(() => api().getTreeProps(), props);
|
|
230
|
-
return <TreeViewDepthProvider value={1}>
|
|
231
|
-
<ark.ul {...mergedProps} />
|
|
232
|
-
</TreeViewDepthProvider>;
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
// src/components/tree-view/tree-view.anatomy.ts
|
|
236
|
-
import { anatomy } from "@zag-js/tree-view";
|
|
237
|
-
|
|
238
|
-
// src/components/tree-view/tree-view.ts
|
|
239
|
-
var tree_view_exports = {};
|
|
240
|
-
__export(tree_view_exports, {
|
|
241
|
-
Branch: () => TreeViewBranch,
|
|
242
|
-
BranchContent: () => TreeViewBranchContent,
|
|
243
|
-
BranchControl: () => TreeViewBranchControl,
|
|
244
|
-
BranchIndicator: () => TreeViewBranchIndicator,
|
|
245
|
-
BranchText: () => TreeViewBranchText,
|
|
246
|
-
BranchTrigger: () => TreeViewBranchTrigger,
|
|
247
|
-
Context: () => TreeViewContext,
|
|
248
|
-
Item: () => TreeViewItem,
|
|
249
|
-
ItemContext: () => TreeViewItemContext,
|
|
250
|
-
ItemIndicator: () => TreeViewItemIndicator,
|
|
251
|
-
ItemText: () => TreeViewItemText,
|
|
252
|
-
Label: () => TreeViewLabel,
|
|
253
|
-
Root: () => TreeViewRoot,
|
|
254
|
-
RootProvider: () => TreeViewRootProvider,
|
|
255
|
-
Tree: () => TreeViewTree
|
|
256
|
-
});
|
|
257
|
-
|
|
258
|
-
export {
|
|
259
|
-
useTreeViewContext,
|
|
260
|
-
TreeViewBranch,
|
|
261
|
-
TreeViewBranchContent,
|
|
262
|
-
TreeViewBranchControl,
|
|
263
|
-
TreeViewBranchIndicator,
|
|
264
|
-
TreeViewBranchText,
|
|
265
|
-
TreeViewBranchTrigger,
|
|
266
|
-
TreeViewContext,
|
|
267
|
-
useTreeViewItemContext,
|
|
268
|
-
TreeViewItem,
|
|
269
|
-
TreeViewItemContext,
|
|
270
|
-
TreeViewItemIndicator,
|
|
271
|
-
TreeViewItemText,
|
|
272
|
-
TreeViewLabel,
|
|
273
|
-
useTreeView,
|
|
274
|
-
TreeViewRoot,
|
|
275
|
-
TreeViewRootProvider,
|
|
276
|
-
TreeViewTree,
|
|
277
|
-
anatomy,
|
|
278
|
-
tree_view_exports
|
|
279
|
-
};
|
package/dist/chunk/EZ2HOZZM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/chunk/MVL2JW5G.js
DELETED
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
4
|
-
import { useEnvironmentContext } from './QODB3C3M.js';
|
|
5
|
-
import { createContext } from './I5UG2QUO.js';
|
|
6
|
-
import { __export } from './ESLJRKWD.js';
|
|
7
|
-
import { createComponent } from 'solid-js/web';
|
|
8
|
-
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
9
|
-
import { createMemo, createUniqueId } from 'solid-js';
|
|
10
|
-
import * as treeView from '@zag-js/tree-view';
|
|
11
|
-
export { anatomy } from '@zag-js/tree-view';
|
|
12
|
-
|
|
13
|
-
// src/components/tree-view/use-tree-view-branch-context.ts
|
|
14
|
-
var [TreeViewBranchProvider, useTreeViewBranchContext] = createContext({
|
|
15
|
-
hookName: "useTreeViewBranchContext",
|
|
16
|
-
providerName: "<TreeViewBranchProvider />"
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
// src/components/tree-view/use-tree-view-context.ts
|
|
20
|
-
var [TreeViewProvider, useTreeViewContext] = createContext({
|
|
21
|
-
hookName: "useTreeViewContext",
|
|
22
|
-
providerName: "<TreeViewProvider />"
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
// src/components/tree-view/use-tree-view-depth-context.ts
|
|
26
|
-
var [TreeViewDepthProvider, useTreeViewDepthContext] = createContext({
|
|
27
|
-
hookName: "useTreeViewDepthContext",
|
|
28
|
-
providerName: "<TreeViewDepthProvider />"
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
// src/components/tree-view/tree-view-branch.tsx
|
|
32
|
-
var TreeViewBranch = (props) => {
|
|
33
|
-
const [itemProps, localProps] = createSplitProps()(props, ["disabled", "value"]);
|
|
34
|
-
const api = useTreeViewContext();
|
|
35
|
-
const depth = useTreeViewDepthContext();
|
|
36
|
-
const branchProps = mergeProps(itemProps, {
|
|
37
|
-
depth
|
|
38
|
-
});
|
|
39
|
-
const mergedProps = mergeProps(() => api().getBranchProps(branchProps), localProps);
|
|
40
|
-
return createComponent(TreeViewDepthProvider, {
|
|
41
|
-
value: depth + 1,
|
|
42
|
-
get children() {
|
|
43
|
-
return createComponent(TreeViewBranchProvider, {
|
|
44
|
-
value: branchProps,
|
|
45
|
-
get children() {
|
|
46
|
-
return createComponent(ark.li, mergedProps);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
var TreeViewBranchContent = (props) => {
|
|
53
|
-
const api = useTreeViewContext();
|
|
54
|
-
const branchProps = useTreeViewBranchContext();
|
|
55
|
-
const mergedProps = mergeProps(() => api().getBranchContentProps(branchProps), props);
|
|
56
|
-
return createComponent(ark.ul, mergedProps);
|
|
57
|
-
};
|
|
58
|
-
var TreeViewBranchControl = (props) => {
|
|
59
|
-
const api = useTreeViewContext();
|
|
60
|
-
const branchProps = useTreeViewBranchContext();
|
|
61
|
-
const mergedProps = mergeProps(() => api().getBranchControlProps(branchProps), props);
|
|
62
|
-
return createComponent(ark.div, mergedProps);
|
|
63
|
-
};
|
|
64
|
-
var TreeViewBranchIndicator = (props) => {
|
|
65
|
-
const api = useTreeViewContext();
|
|
66
|
-
const branchProps = useTreeViewBranchContext();
|
|
67
|
-
const mergedProps = mergeProps(() => api().getBranchIndicatorProps(branchProps), props);
|
|
68
|
-
return createComponent(ark.div, mergedProps);
|
|
69
|
-
};
|
|
70
|
-
var TreeViewBranchText = (props) => {
|
|
71
|
-
const api = useTreeViewContext();
|
|
72
|
-
const branchProps = useTreeViewBranchContext();
|
|
73
|
-
const mergedProps = mergeProps(() => api().getBranchTextProps(branchProps), props);
|
|
74
|
-
return createComponent(ark.span, mergedProps);
|
|
75
|
-
};
|
|
76
|
-
var TreeViewBranchTrigger = (props) => {
|
|
77
|
-
const api = useTreeViewContext();
|
|
78
|
-
const branchProps = useTreeViewBranchContext();
|
|
79
|
-
const mergedProps = mergeProps(() => api().getBranchTriggerProps(branchProps), props);
|
|
80
|
-
return createComponent(ark.div, mergedProps);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
// src/components/tree-view/tree-view-context.tsx
|
|
84
|
-
var TreeViewContext = (props) => props.children(useTreeViewContext());
|
|
85
|
-
|
|
86
|
-
// src/components/tree-view/use-tree-view-item-context.ts
|
|
87
|
-
var [TreeViewItemProvider, useTreeViewItemContext] = createContext(
|
|
88
|
-
{
|
|
89
|
-
hookName: "useTreeViewItemContext",
|
|
90
|
-
providerName: "<TreeViewItemProvider />"
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
|
|
94
|
-
// src/components/tree-view/use-tree-view-item-props-context.ts
|
|
95
|
-
var [TreeViewItemPropsProvider, useTreeViewItemPropsContext] = createContext({
|
|
96
|
-
hookName: "useTreeViewItemPropsContext",
|
|
97
|
-
providerName: "<TreeViewItemProvider />"
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
// src/components/tree-view/tree-view-item.tsx
|
|
101
|
-
var TreeViewItem = (props) => {
|
|
102
|
-
const [_itemProps, localProps] = createSplitProps()(props, ["disabled", "value"]);
|
|
103
|
-
const api = useTreeViewContext();
|
|
104
|
-
const depth = useTreeViewDepthContext();
|
|
105
|
-
const itemProps = mergeProps(_itemProps, {
|
|
106
|
-
depth
|
|
107
|
-
});
|
|
108
|
-
const itemState = createMemo(() => api().getItemState(itemProps));
|
|
109
|
-
const mergedProps = mergeProps(() => api().getItemProps(itemProps), localProps);
|
|
110
|
-
return createComponent(TreeViewItemPropsProvider, {
|
|
111
|
-
value: itemProps,
|
|
112
|
-
get children() {
|
|
113
|
-
return createComponent(TreeViewItemProvider, {
|
|
114
|
-
value: itemState,
|
|
115
|
-
get children() {
|
|
116
|
-
return createComponent(ark.li, mergedProps);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
// src/components/tree-view/tree-view-item-context.tsx
|
|
124
|
-
var TreeViewItemContext = (props) => props.children(useTreeViewItemContext());
|
|
125
|
-
var TreeViewItemIndicator = (props) => {
|
|
126
|
-
const api = useTreeViewContext();
|
|
127
|
-
const itemProps = useTreeViewItemPropsContext();
|
|
128
|
-
const mergedProps = mergeProps(() => api().getItemIndicatorProps(itemProps), props);
|
|
129
|
-
return createComponent(ark.div, mergedProps);
|
|
130
|
-
};
|
|
131
|
-
var TreeViewItemText = (props) => {
|
|
132
|
-
const api = useTreeViewContext();
|
|
133
|
-
const itemProps = useTreeViewItemPropsContext();
|
|
134
|
-
const mergedProps = mergeProps(() => api().getItemTextProps(itemProps), props);
|
|
135
|
-
return createComponent(ark.span, mergedProps);
|
|
136
|
-
};
|
|
137
|
-
var TreeViewLabel = (props) => {
|
|
138
|
-
const api = useTreeViewContext();
|
|
139
|
-
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
140
|
-
return createComponent(ark.label, mergedProps);
|
|
141
|
-
};
|
|
142
|
-
var useTreeView = (props) => {
|
|
143
|
-
const locale = useLocaleContext();
|
|
144
|
-
const environment = useEnvironmentContext();
|
|
145
|
-
const id = createUniqueId();
|
|
146
|
-
const context = createMemo(() => ({
|
|
147
|
-
id,
|
|
148
|
-
dir: locale().dir,
|
|
149
|
-
getRootNode: environment().getRootNode,
|
|
150
|
-
selectedValue: props.defaultSelectedValue,
|
|
151
|
-
expandedValue: props.defaultExpandedValue,
|
|
152
|
-
...props
|
|
153
|
-
}));
|
|
154
|
-
const [state, send] = useMachine(treeView.machine(context()), { context });
|
|
155
|
-
return createMemo(() => treeView.connect(state, send, normalizeProps));
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
// src/components/tree-view/tree-view-root.tsx
|
|
159
|
-
var TreeViewRoot = (props) => {
|
|
160
|
-
const [useTreeViewProps, localProps] = createSplitProps()(props, ["defaultExpandedValue", "defaultSelectedValue", "expandedValue", "expandOnClick", "focusedValue", "id", "ids", "onExpandedChange", "onFocusChange", "onSelectionChange", "selectedValue", "selectionMode", "typeahead"]);
|
|
161
|
-
const api = useTreeView(useTreeViewProps);
|
|
162
|
-
const mergedProps = mergeProps(() => api().getRootProps(), localProps);
|
|
163
|
-
return createComponent(TreeViewProvider, {
|
|
164
|
-
value: api,
|
|
165
|
-
get children() {
|
|
166
|
-
return createComponent(ark.div, mergedProps);
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
};
|
|
170
|
-
var TreeViewRootProvider = (props) => {
|
|
171
|
-
const [{
|
|
172
|
-
value: treeView2
|
|
173
|
-
}, localProps] = createSplitProps()(props, ["value"]);
|
|
174
|
-
const mergedProps = mergeProps(() => treeView2().getRootProps(), localProps);
|
|
175
|
-
return createComponent(TreeViewProvider, {
|
|
176
|
-
value: treeView2,
|
|
177
|
-
get children() {
|
|
178
|
-
return createComponent(ark.div, mergedProps);
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
};
|
|
182
|
-
var TreeViewTree = (props) => {
|
|
183
|
-
const api = useTreeViewContext();
|
|
184
|
-
const mergedProps = mergeProps(() => api().getTreeProps(), props);
|
|
185
|
-
return createComponent(TreeViewDepthProvider, {
|
|
186
|
-
value: 1,
|
|
187
|
-
get children() {
|
|
188
|
-
return createComponent(ark.ul, mergedProps);
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
// src/components/tree-view/tree-view.ts
|
|
194
|
-
var tree_view_exports = {};
|
|
195
|
-
__export(tree_view_exports, {
|
|
196
|
-
Branch: () => TreeViewBranch,
|
|
197
|
-
BranchContent: () => TreeViewBranchContent,
|
|
198
|
-
BranchControl: () => TreeViewBranchControl,
|
|
199
|
-
BranchIndicator: () => TreeViewBranchIndicator,
|
|
200
|
-
BranchText: () => TreeViewBranchText,
|
|
201
|
-
BranchTrigger: () => TreeViewBranchTrigger,
|
|
202
|
-
Context: () => TreeViewContext,
|
|
203
|
-
Item: () => TreeViewItem,
|
|
204
|
-
ItemContext: () => TreeViewItemContext,
|
|
205
|
-
ItemIndicator: () => TreeViewItemIndicator,
|
|
206
|
-
ItemText: () => TreeViewItemText,
|
|
207
|
-
Label: () => TreeViewLabel,
|
|
208
|
-
Root: () => TreeViewRoot,
|
|
209
|
-
RootProvider: () => TreeViewRootProvider,
|
|
210
|
-
Tree: () => TreeViewTree
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
export { TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndicator, TreeViewBranchText, TreeViewBranchTrigger, TreeViewContext, TreeViewItem, TreeViewItemContext, TreeViewItemIndicator, TreeViewItemText, TreeViewLabel, TreeViewRoot, TreeViewRootProvider, TreeViewTree, tree_view_exports, useTreeView, useTreeViewContext, useTreeViewItemContext };
|
package/dist/chunk/P5DFHJ7G.jsx
DELETED
|
File without changes
|