@kirana-ui/solid 0.1.0 → 0.2.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/dom/accordion.js +9 -6
- package/dom/agent.js +3 -0
- package/dom/autocomplete.js +2 -0
- package/dom/autosize.js +19 -0
- package/dom/avatar.js +3 -3
- package/dom/button.js +1 -1
- package/dom/calendar.js +145 -0
- package/dom/carousel.js +83 -0
- package/dom/checkbox.js +5 -4
- package/dom/collapsible.js +3 -3
- package/dom/combobox.js +289 -0
- package/dom/command.js +129 -0
- package/dom/context-menu.js +2 -0
- package/dom/date-field.js +90 -0
- package/dom/date-picker.js +103 -0
- package/dom/dialog.js +32 -1
- package/dom/drawer.js +2 -0
- package/dom/field.js +3 -3
- package/dom/fieldset.js +2 -2
- package/dom/form.js +1 -1
- package/dom/hover-popup.js +19 -4
- package/dom/index.js +26 -1
- package/dom/input.js +26 -0
- package/dom/label.js +18 -0
- package/dom/listbox.js +114 -0
- package/dom/menu.js +261 -0
- package/dom/menubar-context.js +3 -0
- package/dom/menubar.js +33 -0
- package/dom/message-scroller.js +56 -0
- package/dom/navigation-menu.js +147 -0
- package/dom/number-field.js +82 -0
- package/dom/otp.js +95 -0
- package/dom/pagination.js +74 -0
- package/dom/popover.js +22 -7
- package/dom/qr-code.js +48 -0
- package/dom/radio-group.js +6 -5
- package/dom/resizable.js +65 -0
- package/dom/runtime.js +59 -9
- package/dom/scroll-area.js +99 -0
- package/dom/select.js +91 -15
- package/dom/separator.js +1 -1
- package/dom/slider.js +11 -8
- package/dom/switch.js +5 -4
- package/dom/tabs.js +5 -5
- package/dom/testing.js +3 -0
- package/dom/toast.js +150 -0
- package/dom/toggle-group.js +37 -0
- package/dom/toggle.js +12 -4
- package/dom/toolbar-context.js +5 -0
- package/dom/toolbar.js +71 -0
- package/dom/value-bar.js +3 -3
- package/llms.txt +3202 -0
- package/package.json +236 -2
- package/server/accordion.js +9 -6
- package/server/agent.js +3 -0
- package/server/autocomplete.js +2 -0
- package/server/autosize.js +19 -0
- package/server/avatar.js +3 -3
- package/server/button.js +1 -1
- package/server/calendar.js +144 -0
- package/server/carousel.js +83 -0
- package/server/checkbox.js +5 -4
- package/server/collapsible.js +3 -3
- package/server/combobox.js +289 -0
- package/server/command.js +129 -0
- package/server/context-menu.js +2 -0
- package/server/date-field.js +90 -0
- package/server/date-picker.js +103 -0
- package/server/dialog.js +32 -1
- package/server/drawer.js +2 -0
- package/server/field.js +3 -3
- package/server/fieldset.js +2 -2
- package/server/form.js +1 -1
- package/server/hover-popup.js +19 -4
- package/server/index.js +26 -1
- package/server/input.js +26 -0
- package/server/label.js +18 -0
- package/server/listbox.js +114 -0
- package/server/menu.js +261 -0
- package/server/menubar-context.js +3 -0
- package/server/menubar.js +33 -0
- package/server/message-scroller.js +56 -0
- package/server/navigation-menu.js +147 -0
- package/server/number-field.js +81 -0
- package/server/otp.js +94 -0
- package/server/pagination.js +74 -0
- package/server/popover.js +22 -7
- package/server/qr-code.js +48 -0
- package/server/radio-group.js +6 -5
- package/server/resizable.js +65 -0
- package/server/runtime.js +58 -8
- package/server/scroll-area.js +99 -0
- package/server/select.js +91 -15
- package/server/separator.js +1 -1
- package/server/slider.js +11 -8
- package/server/switch.js +5 -4
- package/server/tabs.js +5 -5
- package/server/testing.js +3 -0
- package/server/toast.js +150 -0
- package/server/toggle-group.js +37 -0
- package/server/toggle.js +12 -4
- package/server/toolbar-context.js +5 -0
- package/server/toolbar.js +71 -0
- package/server/value-bar.js +3 -3
- package/skills/kirana-ui-primitives/SKILL.md +142 -0
- package/src/accordion.jsx +10 -7
- package/src/agent.js +3 -0
- package/src/autocomplete.jsx +2 -0
- package/src/autosize.jsx +8 -0
- package/src/avatar.jsx +3 -3
- package/src/button.jsx +1 -1
- package/src/calendar.jsx +108 -0
- package/src/carousel.jsx +51 -0
- package/src/checkbox.jsx +5 -3
- package/src/collapsible.jsx +3 -3
- package/src/combobox.jsx +187 -0
- package/src/command.jsx +81 -0
- package/src/context-menu.js +2 -0
- package/src/date-field.jsx +71 -0
- package/src/date-picker.jsx +72 -0
- package/src/dialog.jsx +27 -1
- package/src/drawer.js +2 -0
- package/src/field.jsx +3 -3
- package/src/fieldset.jsx +2 -2
- package/src/form.jsx +1 -1
- package/src/hover-popup.jsx +12 -4
- package/src/index.js +26 -1
- package/src/input.jsx +17 -0
- package/src/label.jsx +9 -0
- package/src/listbox.jsx +81 -0
- package/src/menu.jsx +164 -0
- package/src/menubar-context.js +3 -0
- package/src/menubar.jsx +21 -0
- package/src/message-scroller.jsx +27 -0
- package/src/navigation-menu.jsx +96 -0
- package/src/number-field.jsx +75 -0
- package/src/otp.jsx +73 -0
- package/src/pagination.jsx +60 -0
- package/src/popover.jsx +22 -4
- package/src/qr-code.jsx +25 -0
- package/src/radio-group.jsx +7 -5
- package/src/resizable.jsx +46 -0
- package/src/runtime.jsx +54 -9
- package/src/scroll-area.jsx +53 -0
- package/src/select.jsx +72 -14
- package/src/separator.jsx +1 -1
- package/src/slider.jsx +13 -8
- package/src/switch.jsx +5 -3
- package/src/tabs.jsx +6 -6
- package/src/testing.js +3 -0
- package/src/toast.jsx +86 -0
- package/src/toggle-group.jsx +32 -0
- package/src/toggle.jsx +9 -3
- package/src/toolbar-context.js +5 -0
- package/src/toolbar.jsx +43 -0
- package/src/value-bar.jsx +3 -3
- package/types/accordion.d.ts +21 -19
- package/types/agent.d.ts +1 -0
- package/types/alert-dialog.d.ts +1 -0
- package/types/autocomplete.d.ts +2 -0
- package/types/autosize.d.ts +11 -0
- package/types/avatar.d.ts +12 -5
- package/types/button.d.ts +4 -2
- package/types/calendar.d.ts +57 -0
- package/types/carousel.d.ts +34 -0
- package/types/checkbox.d.ts +10 -6
- package/types/collapsible.d.ts +11 -7
- package/types/combobox.d.ts +105 -0
- package/types/command.d.ts +55 -0
- package/types/context-menu.d.ts +2 -0
- package/types/date-field.d.ts +34 -0
- package/types/date-picker.d.ts +40 -0
- package/types/dialog.d.ts +52 -20
- package/types/direction.d.ts +1 -0
- package/types/drawer.d.ts +2 -0
- package/types/field.d.ts +19 -11
- package/types/fieldset.d.ts +8 -3
- package/types/form.d.ts +5 -2
- package/types/hover-card.d.ts +16 -7
- package/types/hover-popup.d.ts +23 -10
- package/types/index.d.ts +39 -2
- package/types/input.d.ts +13 -0
- package/types/label.d.ts +7 -0
- package/types/listbox.d.ts +36 -0
- package/types/menu.d.ts +105 -0
- package/types/menubar-context.d.ts +3 -0
- package/types/menubar.d.ts +12 -0
- package/types/message-scroller.d.ts +22 -0
- package/types/meter.d.ts +16 -7
- package/types/navigation-menu.d.ts +50 -0
- package/types/number-field.d.ts +22 -0
- package/types/otp.d.ts +39 -0
- package/types/pagination.d.ts +31 -0
- package/types/popover.d.ts +41 -13
- package/types/progress.d.ts +16 -7
- package/types/qr-code.d.ts +20 -0
- package/types/radio-group.d.ts +15 -16
- package/types/resizable.d.ts +29 -0
- package/types/runtime.d.ts +53 -11
- package/types/scroll-area.d.ts +28 -0
- package/types/select.d.ts +66 -33
- package/types/separator.d.ts +5 -3
- package/types/slider.d.ts +25 -13
- package/types/switch.d.ts +8 -4
- package/types/tabs.d.ts +20 -16
- package/types/testing.d.ts +1 -0
- package/types/toast.d.ts +57 -0
- package/types/toggle-group.d.ts +9 -0
- package/types/toggle.d.ts +6 -3
- package/types/toolbar-context.d.ts +6 -0
- package/types/toolbar.d.ts +28 -0
- package/types/tooltip.d.ts +16 -7
- package/types/value-bar.d.ts +21 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirana-ui/solid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Kirana UI Primitives for Solid",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Kirana authors",
|
|
@@ -15,6 +15,30 @@
|
|
|
15
15
|
"worker": "./server/index.js",
|
|
16
16
|
"default": "./dom/index.js"
|
|
17
17
|
},
|
|
18
|
+
"./runtime": {
|
|
19
|
+
"types": "./types/runtime.d.ts",
|
|
20
|
+
"solid": "./src/runtime.jsx",
|
|
21
|
+
"node": "./server/runtime.js",
|
|
22
|
+
"deno": "./server/runtime.js",
|
|
23
|
+
"worker": "./server/runtime.js",
|
|
24
|
+
"default": "./dom/runtime.js"
|
|
25
|
+
},
|
|
26
|
+
"./agent": {
|
|
27
|
+
"types": "./types/agent.d.ts",
|
|
28
|
+
"solid": "./src/agent.js",
|
|
29
|
+
"node": "./server/agent.js",
|
|
30
|
+
"deno": "./server/agent.js",
|
|
31
|
+
"worker": "./server/agent.js",
|
|
32
|
+
"default": "./dom/agent.js"
|
|
33
|
+
},
|
|
34
|
+
"./testing": {
|
|
35
|
+
"types": "./types/testing.d.ts",
|
|
36
|
+
"solid": "./src/testing.js",
|
|
37
|
+
"node": "./server/testing.js",
|
|
38
|
+
"deno": "./server/testing.js",
|
|
39
|
+
"worker": "./server/testing.js",
|
|
40
|
+
"default": "./dom/testing.js"
|
|
41
|
+
},
|
|
18
42
|
"./accordion": {
|
|
19
43
|
"types": "./types/accordion.d.ts",
|
|
20
44
|
"solid": "./src/accordion.jsx",
|
|
@@ -63,6 +87,22 @@
|
|
|
63
87
|
"worker": "./server/collapsible.js",
|
|
64
88
|
"default": "./dom/collapsible.js"
|
|
65
89
|
},
|
|
90
|
+
"./combobox": {
|
|
91
|
+
"types": "./types/combobox.d.ts",
|
|
92
|
+
"solid": "./src/combobox.jsx",
|
|
93
|
+
"node": "./server/combobox.js",
|
|
94
|
+
"deno": "./server/combobox.js",
|
|
95
|
+
"worker": "./server/combobox.js",
|
|
96
|
+
"default": "./dom/combobox.js"
|
|
97
|
+
},
|
|
98
|
+
"./context-menu": {
|
|
99
|
+
"types": "./types/context-menu.d.ts",
|
|
100
|
+
"solid": "./src/context-menu.js",
|
|
101
|
+
"node": "./server/context-menu.js",
|
|
102
|
+
"deno": "./server/context-menu.js",
|
|
103
|
+
"worker": "./server/context-menu.js",
|
|
104
|
+
"default": "./dom/context-menu.js"
|
|
105
|
+
},
|
|
66
106
|
"./dialog": {
|
|
67
107
|
"types": "./types/dialog.d.ts",
|
|
68
108
|
"solid": "./src/dialog.jsx",
|
|
@@ -119,6 +159,166 @@
|
|
|
119
159
|
"worker": "./server/meter.js",
|
|
120
160
|
"default": "./dom/meter.js"
|
|
121
161
|
},
|
|
162
|
+
"./listbox": {
|
|
163
|
+
"types": "./types/listbox.d.ts",
|
|
164
|
+
"solid": "./src/listbox.jsx",
|
|
165
|
+
"node": "./server/listbox.js",
|
|
166
|
+
"deno": "./server/listbox.js",
|
|
167
|
+
"worker": "./server/listbox.js",
|
|
168
|
+
"default": "./dom/listbox.js"
|
|
169
|
+
},
|
|
170
|
+
"./menu": {
|
|
171
|
+
"types": "./types/menu.d.ts",
|
|
172
|
+
"solid": "./src/menu.jsx",
|
|
173
|
+
"node": "./server/menu.js",
|
|
174
|
+
"deno": "./server/menu.js",
|
|
175
|
+
"worker": "./server/menu.js",
|
|
176
|
+
"default": "./dom/menu.js"
|
|
177
|
+
},
|
|
178
|
+
"./menubar": {
|
|
179
|
+
"types": "./types/menubar.d.ts",
|
|
180
|
+
"solid": "./src/menubar.jsx",
|
|
181
|
+
"node": "./server/menubar.js",
|
|
182
|
+
"deno": "./server/menubar.js",
|
|
183
|
+
"worker": "./server/menubar.js",
|
|
184
|
+
"default": "./dom/menubar.js"
|
|
185
|
+
},
|
|
186
|
+
"./navigation-menu": {
|
|
187
|
+
"types": "./types/navigation-menu.d.ts",
|
|
188
|
+
"solid": "./src/navigation-menu.jsx",
|
|
189
|
+
"node": "./server/navigation-menu.js",
|
|
190
|
+
"deno": "./server/navigation-menu.js",
|
|
191
|
+
"worker": "./server/navigation-menu.js",
|
|
192
|
+
"default": "./dom/navigation-menu.js"
|
|
193
|
+
},
|
|
194
|
+
"./otp": {
|
|
195
|
+
"types": "./types/otp.d.ts",
|
|
196
|
+
"solid": "./src/otp.jsx",
|
|
197
|
+
"node": "./server/otp.js",
|
|
198
|
+
"deno": "./server/otp.js",
|
|
199
|
+
"worker": "./server/otp.js",
|
|
200
|
+
"default": "./dom/otp.js"
|
|
201
|
+
},
|
|
202
|
+
"./date-field": {
|
|
203
|
+
"types": "./types/date-field.d.ts",
|
|
204
|
+
"solid": "./src/date-field.jsx",
|
|
205
|
+
"node": "./server/date-field.js",
|
|
206
|
+
"deno": "./server/date-field.js",
|
|
207
|
+
"worker": "./server/date-field.js",
|
|
208
|
+
"default": "./dom/date-field.js"
|
|
209
|
+
},
|
|
210
|
+
"./input": {
|
|
211
|
+
"types": "./types/input.d.ts",
|
|
212
|
+
"solid": "./src/input.jsx",
|
|
213
|
+
"node": "./server/input.js",
|
|
214
|
+
"deno": "./server/input.js",
|
|
215
|
+
"worker": "./server/input.js",
|
|
216
|
+
"default": "./dom/input.js"
|
|
217
|
+
},
|
|
218
|
+
"./label": {
|
|
219
|
+
"types": "./types/label.d.ts",
|
|
220
|
+
"solid": "./src/label.jsx",
|
|
221
|
+
"node": "./server/label.js",
|
|
222
|
+
"deno": "./server/label.js",
|
|
223
|
+
"worker": "./server/label.js",
|
|
224
|
+
"default": "./dom/label.js"
|
|
225
|
+
},
|
|
226
|
+
"./command": {
|
|
227
|
+
"types": "./types/command.d.ts",
|
|
228
|
+
"solid": "./src/command.jsx",
|
|
229
|
+
"node": "./server/command.js",
|
|
230
|
+
"deno": "./server/command.js",
|
|
231
|
+
"worker": "./server/command.js",
|
|
232
|
+
"default": "./dom/command.js"
|
|
233
|
+
},
|
|
234
|
+
"./number-field": {
|
|
235
|
+
"types": "./types/number-field.d.ts",
|
|
236
|
+
"solid": "./src/number-field.jsx",
|
|
237
|
+
"node": "./server/number-field.js",
|
|
238
|
+
"deno": "./server/number-field.js",
|
|
239
|
+
"worker": "./server/number-field.js",
|
|
240
|
+
"default": "./dom/number-field.js"
|
|
241
|
+
},
|
|
242
|
+
"./autocomplete": {
|
|
243
|
+
"types": "./types/autocomplete.d.ts",
|
|
244
|
+
"solid": "./src/autocomplete.jsx",
|
|
245
|
+
"node": "./server/autocomplete.js",
|
|
246
|
+
"deno": "./server/autocomplete.js",
|
|
247
|
+
"worker": "./server/autocomplete.js",
|
|
248
|
+
"default": "./dom/autocomplete.js"
|
|
249
|
+
},
|
|
250
|
+
"./pagination": {
|
|
251
|
+
"types": "./types/pagination.d.ts",
|
|
252
|
+
"solid": "./src/pagination.jsx",
|
|
253
|
+
"node": "./server/pagination.js",
|
|
254
|
+
"deno": "./server/pagination.js",
|
|
255
|
+
"worker": "./server/pagination.js",
|
|
256
|
+
"default": "./dom/pagination.js"
|
|
257
|
+
},
|
|
258
|
+
"./date-picker": {
|
|
259
|
+
"types": "./types/date-picker.d.ts",
|
|
260
|
+
"solid": "./src/date-picker.jsx",
|
|
261
|
+
"node": "./server/date-picker.js",
|
|
262
|
+
"deno": "./server/date-picker.js",
|
|
263
|
+
"worker": "./server/date-picker.js",
|
|
264
|
+
"default": "./dom/date-picker.js"
|
|
265
|
+
},
|
|
266
|
+
"./calendar": {
|
|
267
|
+
"types": "./types/calendar.d.ts",
|
|
268
|
+
"solid": "./src/calendar.jsx",
|
|
269
|
+
"node": "./server/calendar.js",
|
|
270
|
+
"deno": "./server/calendar.js",
|
|
271
|
+
"worker": "./server/calendar.js",
|
|
272
|
+
"default": "./dom/calendar.js"
|
|
273
|
+
},
|
|
274
|
+
"./drawer": {
|
|
275
|
+
"types": "./types/drawer.d.ts",
|
|
276
|
+
"solid": "./src/drawer.js",
|
|
277
|
+
"node": "./server/drawer.js",
|
|
278
|
+
"deno": "./server/drawer.js",
|
|
279
|
+
"worker": "./server/drawer.js",
|
|
280
|
+
"default": "./dom/drawer.js"
|
|
281
|
+
},
|
|
282
|
+
"./message-scroller": {
|
|
283
|
+
"types": "./types/message-scroller.d.ts",
|
|
284
|
+
"solid": "./src/message-scroller.jsx",
|
|
285
|
+
"node": "./server/message-scroller.js",
|
|
286
|
+
"deno": "./server/message-scroller.js",
|
|
287
|
+
"worker": "./server/message-scroller.js",
|
|
288
|
+
"default": "./dom/message-scroller.js"
|
|
289
|
+
},
|
|
290
|
+
"./qr-code": {
|
|
291
|
+
"types": "./types/qr-code.d.ts",
|
|
292
|
+
"solid": "./src/qr-code.jsx",
|
|
293
|
+
"node": "./server/qr-code.js",
|
|
294
|
+
"deno": "./server/qr-code.js",
|
|
295
|
+
"worker": "./server/qr-code.js",
|
|
296
|
+
"default": "./dom/qr-code.js"
|
|
297
|
+
},
|
|
298
|
+
"./autosize": {
|
|
299
|
+
"types": "./types/autosize.d.ts",
|
|
300
|
+
"solid": "./src/autosize.jsx",
|
|
301
|
+
"node": "./server/autosize.js",
|
|
302
|
+
"deno": "./server/autosize.js",
|
|
303
|
+
"worker": "./server/autosize.js",
|
|
304
|
+
"default": "./dom/autosize.js"
|
|
305
|
+
},
|
|
306
|
+
"./carousel": {
|
|
307
|
+
"types": "./types/carousel.d.ts",
|
|
308
|
+
"solid": "./src/carousel.jsx",
|
|
309
|
+
"node": "./server/carousel.js",
|
|
310
|
+
"deno": "./server/carousel.js",
|
|
311
|
+
"worker": "./server/carousel.js",
|
|
312
|
+
"default": "./dom/carousel.js"
|
|
313
|
+
},
|
|
314
|
+
"./toast": {
|
|
315
|
+
"types": "./types/toast.d.ts",
|
|
316
|
+
"solid": "./src/toast.jsx",
|
|
317
|
+
"node": "./server/toast.js",
|
|
318
|
+
"deno": "./server/toast.js",
|
|
319
|
+
"worker": "./server/toast.js",
|
|
320
|
+
"default": "./dom/toast.js"
|
|
321
|
+
},
|
|
122
322
|
"./popover": {
|
|
123
323
|
"types": "./types/popover.d.ts",
|
|
124
324
|
"solid": "./src/popover.jsx",
|
|
@@ -143,6 +343,22 @@
|
|
|
143
343
|
"worker": "./server/radio-group.js",
|
|
144
344
|
"default": "./dom/radio-group.js"
|
|
145
345
|
},
|
|
346
|
+
"./resizable": {
|
|
347
|
+
"types": "./types/resizable.d.ts",
|
|
348
|
+
"solid": "./src/resizable.jsx",
|
|
349
|
+
"node": "./server/resizable.js",
|
|
350
|
+
"deno": "./server/resizable.js",
|
|
351
|
+
"worker": "./server/resizable.js",
|
|
352
|
+
"default": "./dom/resizable.js"
|
|
353
|
+
},
|
|
354
|
+
"./scroll-area": {
|
|
355
|
+
"types": "./types/scroll-area.d.ts",
|
|
356
|
+
"solid": "./src/scroll-area.jsx",
|
|
357
|
+
"node": "./server/scroll-area.js",
|
|
358
|
+
"deno": "./server/scroll-area.js",
|
|
359
|
+
"worker": "./server/scroll-area.js",
|
|
360
|
+
"default": "./dom/scroll-area.js"
|
|
361
|
+
},
|
|
146
362
|
"./select": {
|
|
147
363
|
"types": "./types/select.d.ts",
|
|
148
364
|
"solid": "./src/select.jsx",
|
|
@@ -191,6 +407,22 @@
|
|
|
191
407
|
"worker": "./server/toggle.js",
|
|
192
408
|
"default": "./dom/toggle.js"
|
|
193
409
|
},
|
|
410
|
+
"./toggle-group": {
|
|
411
|
+
"types": "./types/toggle-group.d.ts",
|
|
412
|
+
"solid": "./src/toggle-group.jsx",
|
|
413
|
+
"node": "./server/toggle-group.js",
|
|
414
|
+
"deno": "./server/toggle-group.js",
|
|
415
|
+
"worker": "./server/toggle-group.js",
|
|
416
|
+
"default": "./dom/toggle-group.js"
|
|
417
|
+
},
|
|
418
|
+
"./toolbar": {
|
|
419
|
+
"types": "./types/toolbar.d.ts",
|
|
420
|
+
"solid": "./src/toolbar.jsx",
|
|
421
|
+
"node": "./server/toolbar.js",
|
|
422
|
+
"deno": "./server/toolbar.js",
|
|
423
|
+
"worker": "./server/toolbar.js",
|
|
424
|
+
"default": "./dom/toolbar.js"
|
|
425
|
+
},
|
|
194
426
|
"./tooltip": {
|
|
195
427
|
"types": "./types/tooltip.d.ts",
|
|
196
428
|
"solid": "./src/tooltip.jsx",
|
|
@@ -202,7 +434,7 @@
|
|
|
202
434
|
"./package.json": "./package.json"
|
|
203
435
|
},
|
|
204
436
|
"dependencies": {
|
|
205
|
-
"@kirana-ui/core": "0.
|
|
437
|
+
"@kirana-ui/core": "0.2.0"
|
|
206
438
|
},
|
|
207
439
|
"peerDependencies": {
|
|
208
440
|
"solid-js": "^1.9.0"
|
|
@@ -226,6 +458,8 @@
|
|
|
226
458
|
"types",
|
|
227
459
|
"README.md",
|
|
228
460
|
"REFERENCE.md",
|
|
461
|
+
"llms.txt",
|
|
462
|
+
"skills",
|
|
229
463
|
"LICENSE"
|
|
230
464
|
]
|
|
231
465
|
}
|
package/server/accordion.js
CHANGED
|
@@ -38,7 +38,7 @@ function Root(props) {
|
|
|
38
38
|
value: made,
|
|
39
39
|
get children() {
|
|
40
40
|
return _$createComponent(Part, _$mergeProps({
|
|
41
|
-
get
|
|
41
|
+
get of() {
|
|
42
42
|
return made.root;
|
|
43
43
|
},
|
|
44
44
|
tag: "div"
|
|
@@ -46,19 +46,22 @@ function Root(props) {
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
+
/** `value` tells this item from the others; an item that is given none makes its own. */
|
|
49
50
|
function Item(props) {
|
|
50
51
|
const [local, rest] = splitProps(props, ["value", "disabled"]);
|
|
51
52
|
const options = toSignal(() => ({
|
|
52
53
|
disabled: local.disabled
|
|
53
54
|
}));
|
|
55
|
+
const generated = createUniqueId();
|
|
54
56
|
// An item is its value for as long as it is in the page.
|
|
55
|
-
const
|
|
57
|
+
const value = untrack(() => local.value);
|
|
58
|
+
const item = useAccordion().item(value === undefined ? generated : value, () => defined(options.get()));
|
|
56
59
|
onMount(() => onCleanup(item.mount()));
|
|
57
60
|
return _$createComponent(ItemContext.Provider, {
|
|
58
61
|
value: item,
|
|
59
62
|
get children() {
|
|
60
63
|
return _$createComponent(Part, _$mergeProps({
|
|
61
|
-
get
|
|
64
|
+
get of() {
|
|
62
65
|
return item.root;
|
|
63
66
|
},
|
|
64
67
|
tag: "div"
|
|
@@ -67,13 +70,13 @@ function Item(props) {
|
|
|
67
70
|
});
|
|
68
71
|
}
|
|
69
72
|
const Header = props => _$createComponent(Part, _$mergeProps({
|
|
70
|
-
get
|
|
73
|
+
get of() {
|
|
71
74
|
return useItem().header;
|
|
72
75
|
},
|
|
73
76
|
tag: "h3"
|
|
74
77
|
}, props));
|
|
75
78
|
const Trigger = props => _$createComponent(Part, _$mergeProps({
|
|
76
|
-
get
|
|
79
|
+
get of() {
|
|
77
80
|
return useItem().trigger;
|
|
78
81
|
},
|
|
79
82
|
tag: "button"
|
|
@@ -89,7 +92,7 @@ function Panel(props) {
|
|
|
89
92
|
},
|
|
90
93
|
get children() {
|
|
91
94
|
return _$createComponent(Part, _$mergeProps({
|
|
92
|
-
get
|
|
95
|
+
get of() {
|
|
93
96
|
return item.panel;
|
|
94
97
|
},
|
|
95
98
|
tag: "div"
|
package/server/agent.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
2
|
+
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
3
|
+
import { createAutosize } from "@kirana-ui/core/autosize";
|
|
4
|
+
import { Part, controller } from "./runtime.js";
|
|
5
|
+
/** A `<textarea>` as tall as its text. It takes what a `<textarea>` takes. */
|
|
6
|
+
function Textarea(props) {
|
|
7
|
+
const made = controller(createAutosize, () => ({
|
|
8
|
+
value: props.value
|
|
9
|
+
}));
|
|
10
|
+
return _$createComponent(Part, _$mergeProps({
|
|
11
|
+
get of() {
|
|
12
|
+
return made.textarea;
|
|
13
|
+
},
|
|
14
|
+
tag: "textarea"
|
|
15
|
+
}, props));
|
|
16
|
+
}
|
|
17
|
+
export const Autosize = {
|
|
18
|
+
Textarea
|
|
19
|
+
};
|
package/server/avatar.js
CHANGED
|
@@ -15,7 +15,7 @@ function Root(props) {
|
|
|
15
15
|
value: made,
|
|
16
16
|
get children() {
|
|
17
17
|
return _$createComponent(Part, _$mergeProps({
|
|
18
|
-
get
|
|
18
|
+
get of() {
|
|
19
19
|
return made.root;
|
|
20
20
|
},
|
|
21
21
|
tag: "span"
|
|
@@ -35,7 +35,7 @@ function Image(props) {
|
|
|
35
35
|
},
|
|
36
36
|
get children() {
|
|
37
37
|
return _$createComponent(Part, _$mergeProps({
|
|
38
|
-
get
|
|
38
|
+
get of() {
|
|
39
39
|
return made.image;
|
|
40
40
|
},
|
|
41
41
|
tag: "img"
|
|
@@ -53,7 +53,7 @@ function Fallback(props) {
|
|
|
53
53
|
},
|
|
54
54
|
get children() {
|
|
55
55
|
return _$createComponent(Part, _$mergeProps({
|
|
56
|
-
get
|
|
56
|
+
get of() {
|
|
57
57
|
return made.fallback;
|
|
58
58
|
},
|
|
59
59
|
tag: "span"
|
package/server/button.js
CHANGED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
2
|
+
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
3
|
+
import { within } from "@kirana-ui/core";
|
|
4
|
+
import { createCalendar } from "@kirana-ui/core/calendar";
|
|
5
|
+
import { For, createContext, createUniqueId, splitProps, useContext } from "solid-js";
|
|
6
|
+
import { DirectionContext } from "./direction-context.js";
|
|
7
|
+
import { Part, controller, fromSignal } from "./runtime.js";
|
|
8
|
+
/**
|
|
9
|
+
* The calendar its parts are inside. Exported for a component that is made of one (a date picker
|
|
10
|
+
* provides its own to the calendar's parts).
|
|
11
|
+
*/
|
|
12
|
+
const Context = createContext();
|
|
13
|
+
/** For a component made of this one's parts: a date picker. */
|
|
14
|
+
export { Context as CalendarContext };
|
|
15
|
+
function useCalendar() {
|
|
16
|
+
const made = useContext(Context);
|
|
17
|
+
if (!made) throw new Error("A Calendar part must be inside <Calendar.Root>");
|
|
18
|
+
return made;
|
|
19
|
+
}
|
|
20
|
+
function Root(props) {
|
|
21
|
+
const [local, rest] = splitProps(props, ["value", "defaultValue", "onValueChange", "mode", "defaultFocusedValue", "onMonthChange", "locale", "calendarSystem", "min", "max", "isDateUnavailable", "disabled", "readOnly", "fixedWeeks", "id"]);
|
|
22
|
+
const generated = createUniqueId();
|
|
23
|
+
const direction = useContext(DirectionContext);
|
|
24
|
+
const made = controller(within(createCalendar, {
|
|
25
|
+
direction
|
|
26
|
+
}), () => ({
|
|
27
|
+
id: local.id ?? generated,
|
|
28
|
+
value: local.value,
|
|
29
|
+
defaultValue: local.defaultValue,
|
|
30
|
+
mode: local.mode,
|
|
31
|
+
defaultFocusedValue: local.defaultFocusedValue,
|
|
32
|
+
locale: local.locale,
|
|
33
|
+
calendarSystem: local.calendarSystem,
|
|
34
|
+
min: local.min,
|
|
35
|
+
max: local.max,
|
|
36
|
+
isDateUnavailable: local.isDateUnavailable,
|
|
37
|
+
disabled: local.disabled,
|
|
38
|
+
readOnly: local.readOnly,
|
|
39
|
+
fixedWeeks: local.fixedWeeks,
|
|
40
|
+
onValueChange: (value, details) => local.onValueChange?.(value, details),
|
|
41
|
+
onMonthChange: month => local.onMonthChange?.(month)
|
|
42
|
+
}));
|
|
43
|
+
return _$createComponent(Context.Provider, {
|
|
44
|
+
value: made,
|
|
45
|
+
get children() {
|
|
46
|
+
return _$createComponent(Part, _$mergeProps({
|
|
47
|
+
get of() {
|
|
48
|
+
return made.root;
|
|
49
|
+
},
|
|
50
|
+
tag: "div"
|
|
51
|
+
}, rest));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/** Names the month shown, unless it is given something else to say. */
|
|
56
|
+
function Heading(props) {
|
|
57
|
+
const made = useCalendar();
|
|
58
|
+
const title = fromSignal(made.title);
|
|
59
|
+
return _$createComponent(Part, _$mergeProps({
|
|
60
|
+
get of() {
|
|
61
|
+
return made.heading;
|
|
62
|
+
},
|
|
63
|
+
tag: "div"
|
|
64
|
+
}, props, {
|
|
65
|
+
get children() {
|
|
66
|
+
return props.children ?? title();
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
const Previous = props => _$createComponent(Part, _$mergeProps({
|
|
71
|
+
get of() {
|
|
72
|
+
return useCalendar().previous;
|
|
73
|
+
},
|
|
74
|
+
tag: "button"
|
|
75
|
+
}, props));
|
|
76
|
+
const Next = props => _$createComponent(Part, _$mergeProps({
|
|
77
|
+
get of() {
|
|
78
|
+
return useCalendar().next;
|
|
79
|
+
},
|
|
80
|
+
tag: "button"
|
|
81
|
+
}, props));
|
|
82
|
+
const Grid = props => _$createComponent(Part, _$mergeProps({
|
|
83
|
+
get of() {
|
|
84
|
+
return useCalendar().grid;
|
|
85
|
+
},
|
|
86
|
+
tag: "table"
|
|
87
|
+
}, props));
|
|
88
|
+
/** Draws its child once for each day of the week, in the locale's order. */
|
|
89
|
+
function Weekdays(props) {
|
|
90
|
+
const weekdays = fromSignal(useCalendar().weekdays);
|
|
91
|
+
return _$createComponent(For, {
|
|
92
|
+
get each() {
|
|
93
|
+
return weekdays();
|
|
94
|
+
},
|
|
95
|
+
children: weekday => props.children(weekday)
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/** Draws its child once for each week of the month shown. */
|
|
99
|
+
function Weeks(props) {
|
|
100
|
+
const weeks = fromSignal(useCalendar().weeks);
|
|
101
|
+
return _$createComponent(For, {
|
|
102
|
+
get each() {
|
|
103
|
+
return weeks();
|
|
104
|
+
},
|
|
105
|
+
children: week => props.children(week)
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function HeadCell(props) {
|
|
109
|
+
const [local, rest] = splitProps(props, ["weekday"]);
|
|
110
|
+
const part = useCalendar().headCell(local.weekday);
|
|
111
|
+
return _$createComponent(Part, _$mergeProps({
|
|
112
|
+
of: part,
|
|
113
|
+
tag: "th"
|
|
114
|
+
}, rest));
|
|
115
|
+
}
|
|
116
|
+
function Cell(props) {
|
|
117
|
+
const [local, rest] = splitProps(props, ["date"]);
|
|
118
|
+
// A cell is its day for as long as it is in the page.
|
|
119
|
+
const part = useCalendar().cell(local.date);
|
|
120
|
+
return _$createComponent(Part, _$mergeProps({
|
|
121
|
+
of: part,
|
|
122
|
+
tag: "td"
|
|
123
|
+
}, rest));
|
|
124
|
+
}
|
|
125
|
+
function Day(props) {
|
|
126
|
+
const [local, rest] = splitProps(props, ["date"]);
|
|
127
|
+
const part = useCalendar().day(local.date);
|
|
128
|
+
return _$createComponent(Part, _$mergeProps({
|
|
129
|
+
of: part,
|
|
130
|
+
tag: "button"
|
|
131
|
+
}, rest));
|
|
132
|
+
}
|
|
133
|
+
export const Calendar = {
|
|
134
|
+
Root,
|
|
135
|
+
Heading,
|
|
136
|
+
Previous,
|
|
137
|
+
Next,
|
|
138
|
+
Grid,
|
|
139
|
+
Weekdays,
|
|
140
|
+
HeadCell,
|
|
141
|
+
Weeks,
|
|
142
|
+
Cell,
|
|
143
|
+
Day
|
|
144
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
2
|
+
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
3
|
+
import { within } from "@kirana-ui/core";
|
|
4
|
+
import { createCarousel } from "@kirana-ui/core/carousel";
|
|
5
|
+
import { createContext, createUniqueId, splitProps, useContext } from "solid-js";
|
|
6
|
+
import { DirectionContext } from "./direction-context.js";
|
|
7
|
+
import { Part, controller } from "./runtime.js";
|
|
8
|
+
const Context = createContext();
|
|
9
|
+
function useCarousel() {
|
|
10
|
+
const made = useContext(Context);
|
|
11
|
+
if (!made) throw new Error("A Carousel part must be inside <Carousel.Root>");
|
|
12
|
+
return made;
|
|
13
|
+
}
|
|
14
|
+
function Root(props) {
|
|
15
|
+
const [local, rest] = splitProps(props, ["index", "defaultIndex", "onIndexChange", "orientation", "loop", "id"]);
|
|
16
|
+
const generated = createUniqueId();
|
|
17
|
+
const direction = useContext(DirectionContext);
|
|
18
|
+
const made = controller(within(createCarousel, {
|
|
19
|
+
direction
|
|
20
|
+
}), () => ({
|
|
21
|
+
id: local.id ?? generated,
|
|
22
|
+
index: local.index,
|
|
23
|
+
defaultIndex: local.defaultIndex,
|
|
24
|
+
orientation: local.orientation,
|
|
25
|
+
loop: local.loop,
|
|
26
|
+
onIndexChange: (index, details) => local.onIndexChange?.(index, details)
|
|
27
|
+
}));
|
|
28
|
+
return _$createComponent(Context.Provider, {
|
|
29
|
+
value: made,
|
|
30
|
+
get children() {
|
|
31
|
+
return _$createComponent(Part, _$mergeProps({
|
|
32
|
+
get of() {
|
|
33
|
+
return made.root;
|
|
34
|
+
},
|
|
35
|
+
tag: "div"
|
|
36
|
+
}, rest));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
const Viewport = props => _$createComponent(Part, _$mergeProps({
|
|
41
|
+
get of() {
|
|
42
|
+
return useCarousel().viewport;
|
|
43
|
+
},
|
|
44
|
+
tag: "div"
|
|
45
|
+
}, props));
|
|
46
|
+
function Item(props) {
|
|
47
|
+
const [local, rest] = splitProps(props, ["index"]);
|
|
48
|
+
// A slide is its place for as long as it is in the page.
|
|
49
|
+
const part = useCarousel().item(local.index);
|
|
50
|
+
return _$createComponent(Part, _$mergeProps({
|
|
51
|
+
of: part,
|
|
52
|
+
tag: "div"
|
|
53
|
+
}, rest));
|
|
54
|
+
}
|
|
55
|
+
const Previous = props => _$createComponent(Part, _$mergeProps({
|
|
56
|
+
get of() {
|
|
57
|
+
return useCarousel().previous;
|
|
58
|
+
},
|
|
59
|
+
tag: "button"
|
|
60
|
+
}, props));
|
|
61
|
+
const Next = props => _$createComponent(Part, _$mergeProps({
|
|
62
|
+
get of() {
|
|
63
|
+
return useCarousel().next;
|
|
64
|
+
},
|
|
65
|
+
tag: "button"
|
|
66
|
+
}, props));
|
|
67
|
+
function Indicator(props) {
|
|
68
|
+
const [local, rest] = splitProps(props, ["index"]);
|
|
69
|
+
// A button is its slide for as long as it is in the page.
|
|
70
|
+
const part = useCarousel().indicator(local.index);
|
|
71
|
+
return _$createComponent(Part, _$mergeProps({
|
|
72
|
+
of: part,
|
|
73
|
+
tag: "button"
|
|
74
|
+
}, rest));
|
|
75
|
+
}
|
|
76
|
+
export const Carousel = {
|
|
77
|
+
Root,
|
|
78
|
+
Viewport,
|
|
79
|
+
Item,
|
|
80
|
+
Previous,
|
|
81
|
+
Next,
|
|
82
|
+
Indicator
|
|
83
|
+
};
|
package/server/checkbox.js
CHANGED
|
@@ -13,7 +13,7 @@ function useCheckbox() {
|
|
|
13
13
|
return made;
|
|
14
14
|
}
|
|
15
15
|
function Root(props) {
|
|
16
|
-
const [local, rest] = splitProps(props, ["checked", "defaultChecked", "onCheckedChange", "indeterminate", "disabled", "readOnly", "required", "name", "value", "id", "children"]);
|
|
16
|
+
const [local, rest] = splitProps(props, ["checked", "defaultChecked", "onCheckedChange", "indeterminate", "disabled", "readOnly", "required", "name", "form", "value", "id", "children"]);
|
|
17
17
|
const generated = createUniqueId();
|
|
18
18
|
const field = useContext(FieldContext);
|
|
19
19
|
const made = controller(within(createCheckbox, {
|
|
@@ -27,6 +27,7 @@ function Root(props) {
|
|
|
27
27
|
readOnly: local.readOnly,
|
|
28
28
|
required: local.required,
|
|
29
29
|
name: local.name,
|
|
30
|
+
form: local.form,
|
|
30
31
|
value: local.value,
|
|
31
32
|
onCheckedChange: (checked, details) => local.onCheckedChange?.(checked, details)
|
|
32
33
|
}));
|
|
@@ -34,14 +35,14 @@ function Root(props) {
|
|
|
34
35
|
value: made,
|
|
35
36
|
get children() {
|
|
36
37
|
return _$createComponent(Part, _$mergeProps({
|
|
37
|
-
get
|
|
38
|
+
get of() {
|
|
38
39
|
return made.root;
|
|
39
40
|
},
|
|
40
41
|
tag: "span"
|
|
41
42
|
}, rest, {
|
|
42
43
|
get children() {
|
|
43
44
|
return [local.children, _$createComponent(Part, {
|
|
44
|
-
get
|
|
45
|
+
get of() {
|
|
45
46
|
return made.input;
|
|
46
47
|
},
|
|
47
48
|
tag: "input"
|
|
@@ -62,7 +63,7 @@ function Indicator(props) {
|
|
|
62
63
|
},
|
|
63
64
|
get children() {
|
|
64
65
|
return _$createComponent(Part, _$mergeProps({
|
|
65
|
-
get
|
|
66
|
+
get of() {
|
|
66
67
|
return made.indicator;
|
|
67
68
|
},
|
|
68
69
|
tag: "span"
|