@pinfold/react 0.0.0-stage → 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/README.md +58 -2
- package/accordion/lazy/package.json +6 -0
- package/accordion/package.json +6 -0
- package/dist/accordion/client.cjs +491 -0
- package/dist/accordion/client.d.cts +34 -0
- package/dist/accordion/client.d.ts +34 -0
- package/dist/accordion/client.js +490 -0
- package/dist/accordion/index.cjs +49 -0
- package/dist/accordion/index.d.cts +56 -0
- package/dist/accordion/index.d.ts +56 -0
- package/dist/accordion/index.js +14 -0
- package/dist/accordion/lazy.cjs +17 -0
- package/dist/accordion/lazy.d.cts +16 -0
- package/dist/accordion/lazy.d.ts +16 -0
- package/dist/accordion/lazy.js +16 -0
- package/dist/chunk-5ZMK623A.js +61 -0
- package/dist/chunk-BPPCPHHU.js +70 -0
- package/dist/chunk-DQWSDHRY.cjs +71 -0
- package/dist/chunk-Q232PTPW.js +115 -0
- package/dist/chunk-RJPT3NTP.cjs +62 -0
- package/dist/chunk-VPKVOJHA.cjs +116 -0
- package/dist/client.cjs +30 -0
- package/dist/client.d.cts +120 -0
- package/dist/client.d.ts +120 -0
- package/dist/client.js +29 -0
- package/dist/index.cjs +52 -0
- package/dist/index.d.cts +123 -0
- package/dist/index.d.ts +123 -0
- package/dist/index.js +10 -0
- package/dist/types-CkcgnWwL.d.cts +367 -0
- package/dist/types-CkcgnWwL.d.ts +367 -0
- package/dist/types-N0Yo4zGa.d.cts +374 -0
- package/dist/types-N0Yo4zGa.d.ts +374 -0
- package/dist/validate-EQHBH4NH.cjs +42 -0
- package/dist/validate-WKHQNNGD.js +41 -0
- package/llms-full.txt +140 -0
- package/llms.txt +26 -0
- package/package.json +92 -4
- package/registry/accordion.json +20 -0
- package/registry/registry.json +25 -0
- package/schema/accordion.json +903 -0
|
@@ -0,0 +1,903 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://pinfold.indranildev.in/schema/accordion.json",
|
|
4
|
+
"title": "AccordionConfig",
|
|
5
|
+
"description": "A vertically stacked set of headings that each reveal a section of content. Config in, accessible accordion out.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"items": {
|
|
9
|
+
"description": "The rows. The only required option.",
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"id": {
|
|
15
|
+
"description": "Stable key. Falls back to the array index.",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"title": {
|
|
19
|
+
"description": "The row heading. A node or `(state) => node`."
|
|
20
|
+
},
|
|
21
|
+
"content": {
|
|
22
|
+
"description": "The panel body."
|
|
23
|
+
},
|
|
24
|
+
"description": {
|
|
25
|
+
"description": "A secondary line under the title."
|
|
26
|
+
},
|
|
27
|
+
"icon": {
|
|
28
|
+
"description": "A leading visual: a node, or a string (an emoji, or an icon-font ligature with `classNames.icon`). Overrides the accordion-wide `icon`."
|
|
29
|
+
},
|
|
30
|
+
"badge": {
|
|
31
|
+
"description": "A trailing chip before the indicator."
|
|
32
|
+
},
|
|
33
|
+
"endIcon": {
|
|
34
|
+
"description": "A trailing visual just before the indicator. Overrides the accordion-wide `endIcon`."
|
|
35
|
+
},
|
|
36
|
+
"indicator": {
|
|
37
|
+
"description": "Overrides the accordion-wide indicator for this row.",
|
|
38
|
+
"anyOf": [
|
|
39
|
+
{
|
|
40
|
+
"enum": [
|
|
41
|
+
"chevron",
|
|
42
|
+
"plus",
|
|
43
|
+
"caret",
|
|
44
|
+
"arrow",
|
|
45
|
+
"none"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"disabled": {
|
|
52
|
+
"description": "Blocks toggling. The row stays focusable.",
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"defaultOpen": {
|
|
56
|
+
"description": "Open on first render (uncontrolled only).",
|
|
57
|
+
"type": "boolean"
|
|
58
|
+
},
|
|
59
|
+
"classNames": {
|
|
60
|
+
"description": "Per-row classes, by slot.",
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"root": {
|
|
64
|
+
"description": "The `root` slot.",
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"item": {
|
|
68
|
+
"description": "The `item` slot.",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"header": {
|
|
72
|
+
"description": "The `header` slot.",
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"trigger": {
|
|
76
|
+
"description": "The `trigger` slot.",
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"icon": {
|
|
80
|
+
"description": "The `icon` slot.",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"label": {
|
|
84
|
+
"description": "The `label` slot.",
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"title": {
|
|
88
|
+
"description": "The `title` slot.",
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"description": {
|
|
92
|
+
"description": "The `description` slot.",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"badge": {
|
|
96
|
+
"description": "The `badge` slot.",
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"endIcon": {
|
|
100
|
+
"description": "The `endIcon` slot.",
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"indicator": {
|
|
104
|
+
"description": "The `indicator` slot.",
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"panel": {
|
|
108
|
+
"description": "The `panel` slot.",
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"content": {
|
|
112
|
+
"description": "The `content` slot.",
|
|
113
|
+
"type": "string"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"additionalProperties": false
|
|
117
|
+
},
|
|
118
|
+
"styles": {
|
|
119
|
+
"description": "Per-row inline styles, by slot.",
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"root": {
|
|
123
|
+
"description": "The `root` slot.",
|
|
124
|
+
"type": "object"
|
|
125
|
+
},
|
|
126
|
+
"item": {
|
|
127
|
+
"description": "The `item` slot.",
|
|
128
|
+
"type": "object"
|
|
129
|
+
},
|
|
130
|
+
"header": {
|
|
131
|
+
"description": "The `header` slot.",
|
|
132
|
+
"type": "object"
|
|
133
|
+
},
|
|
134
|
+
"trigger": {
|
|
135
|
+
"description": "The `trigger` slot.",
|
|
136
|
+
"type": "object"
|
|
137
|
+
},
|
|
138
|
+
"icon": {
|
|
139
|
+
"description": "The `icon` slot.",
|
|
140
|
+
"type": "object"
|
|
141
|
+
},
|
|
142
|
+
"label": {
|
|
143
|
+
"description": "The `label` slot.",
|
|
144
|
+
"type": "object"
|
|
145
|
+
},
|
|
146
|
+
"title": {
|
|
147
|
+
"description": "The `title` slot.",
|
|
148
|
+
"type": "object"
|
|
149
|
+
},
|
|
150
|
+
"description": {
|
|
151
|
+
"description": "The `description` slot.",
|
|
152
|
+
"type": "object"
|
|
153
|
+
},
|
|
154
|
+
"badge": {
|
|
155
|
+
"description": "The `badge` slot.",
|
|
156
|
+
"type": "object"
|
|
157
|
+
},
|
|
158
|
+
"endIcon": {
|
|
159
|
+
"description": "The `endIcon` slot.",
|
|
160
|
+
"type": "object"
|
|
161
|
+
},
|
|
162
|
+
"indicator": {
|
|
163
|
+
"description": "The `indicator` slot.",
|
|
164
|
+
"type": "object"
|
|
165
|
+
},
|
|
166
|
+
"panel": {
|
|
167
|
+
"description": "The `panel` slot.",
|
|
168
|
+
"type": "object"
|
|
169
|
+
},
|
|
170
|
+
"content": {
|
|
171
|
+
"description": "The `content` slot.",
|
|
172
|
+
"type": "object"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"additionalProperties": false
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": [
|
|
179
|
+
"title"
|
|
180
|
+
],
|
|
181
|
+
"additionalProperties": true
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"fields": {
|
|
185
|
+
"description": "Map raw records onto rows: `{ id: 'slug', title: 'question', content: 'answer' }`.",
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"id": {
|
|
189
|
+
"description": "Source field for `id`.",
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
"title": {
|
|
193
|
+
"description": "Source field for `title`.",
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
"content": {
|
|
197
|
+
"description": "Source field for `content`.",
|
|
198
|
+
"type": "string"
|
|
199
|
+
},
|
|
200
|
+
"description": {
|
|
201
|
+
"description": "Source field for `description`.",
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"icon": {
|
|
205
|
+
"description": "Source field for `icon`.",
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
208
|
+
"endIcon": {
|
|
209
|
+
"description": "Source field for `endIcon`.",
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
"badge": {
|
|
213
|
+
"description": "Source field for `badge`.",
|
|
214
|
+
"type": "string"
|
|
215
|
+
},
|
|
216
|
+
"disabled": {
|
|
217
|
+
"description": "Source field for `disabled`.",
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
"defaultOpen": {
|
|
221
|
+
"description": "Source field for `defaultOpen`.",
|
|
222
|
+
"type": "string"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"additionalProperties": false
|
|
226
|
+
},
|
|
227
|
+
"mode": {
|
|
228
|
+
"description": "`single` closes the other rows when one opens.",
|
|
229
|
+
"default": "single",
|
|
230
|
+
"enum": [
|
|
231
|
+
"single",
|
|
232
|
+
"multiple"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"collapsible": {
|
|
236
|
+
"description": "Lets the user close the last open row. `false` keeps at least one row open, in either mode.",
|
|
237
|
+
"default": true,
|
|
238
|
+
"type": "boolean"
|
|
239
|
+
},
|
|
240
|
+
"value": {
|
|
241
|
+
"description": "Controlled open ids. Pair with `onValueChange`.",
|
|
242
|
+
"type": "array",
|
|
243
|
+
"items": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"defaultValue": {
|
|
248
|
+
"description": "Initially open ids (uncontrolled).",
|
|
249
|
+
"type": "array",
|
|
250
|
+
"items": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"disabled": {
|
|
255
|
+
"description": "Disables every row.",
|
|
256
|
+
"default": false,
|
|
257
|
+
"type": "boolean"
|
|
258
|
+
},
|
|
259
|
+
"disabledIds": {
|
|
260
|
+
"description": "Disables these rows by id.",
|
|
261
|
+
"type": "array",
|
|
262
|
+
"items": {
|
|
263
|
+
"type": "string"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"orientation": {
|
|
267
|
+
"description": "Arrow-key axis between headers.",
|
|
268
|
+
"default": "vertical",
|
|
269
|
+
"enum": [
|
|
270
|
+
"vertical",
|
|
271
|
+
"horizontal"
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"dir": {
|
|
275
|
+
"description": "Text direction. Defaults to the provider.",
|
|
276
|
+
"enum": [
|
|
277
|
+
"ltr",
|
|
278
|
+
"rtl"
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
"loop": {
|
|
282
|
+
"description": "Focus wraps around at the ends.",
|
|
283
|
+
"default": true,
|
|
284
|
+
"type": "boolean"
|
|
285
|
+
},
|
|
286
|
+
"id": {
|
|
287
|
+
"description": "Id prefix. Defaults to `useId()`, which is SSR-safe.",
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
"hiddenUntilFound": {
|
|
291
|
+
"description": "Closed panels use `hidden=\"until-found\"`, so the browser’s find-in-page opens them.",
|
|
292
|
+
"default": true,
|
|
293
|
+
"type": "boolean"
|
|
294
|
+
},
|
|
295
|
+
"mountPanels": {
|
|
296
|
+
"description": "When panel content is in the DOM. `always` keeps it searchable and indexable.",
|
|
297
|
+
"default": "always",
|
|
298
|
+
"enum": [
|
|
299
|
+
"always",
|
|
300
|
+
"open",
|
|
301
|
+
"first-open"
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
"unmountClosed": {
|
|
305
|
+
"description": "Deprecated alias of `mountPanels: \"open\"`.",
|
|
306
|
+
"deprecated": true,
|
|
307
|
+
"type": "boolean"
|
|
308
|
+
},
|
|
309
|
+
"syncWithHash": {
|
|
310
|
+
"description": "A `#id` in the URL opens that row and scrolls to it; opening a row updates the hash.",
|
|
311
|
+
"default": false,
|
|
312
|
+
"type": "boolean"
|
|
313
|
+
},
|
|
314
|
+
"lazy": {
|
|
315
|
+
"description": "When the code loads, for the `/lazy` entry. The accordion is light, so `auto` is eager.",
|
|
316
|
+
"default": "auto",
|
|
317
|
+
"enum": [
|
|
318
|
+
"auto",
|
|
319
|
+
"eager",
|
|
320
|
+
"visible",
|
|
321
|
+
"idle"
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
"variant": {
|
|
325
|
+
"description": "Visual style.",
|
|
326
|
+
"default": "solid",
|
|
327
|
+
"enum": [
|
|
328
|
+
"solid",
|
|
329
|
+
"outline",
|
|
330
|
+
"separated",
|
|
331
|
+
"filled",
|
|
332
|
+
"ghost"
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
"size": {
|
|
336
|
+
"description": "Size preset.",
|
|
337
|
+
"default": "md",
|
|
338
|
+
"enum": [
|
|
339
|
+
"sm",
|
|
340
|
+
"md",
|
|
341
|
+
"lg"
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
"tone": {
|
|
345
|
+
"description": "Accent colour role.",
|
|
346
|
+
"default": "primary",
|
|
347
|
+
"enum": [
|
|
348
|
+
"primary",
|
|
349
|
+
"neutral",
|
|
350
|
+
"success",
|
|
351
|
+
"warning",
|
|
352
|
+
"danger",
|
|
353
|
+
"info"
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
"radius": {
|
|
357
|
+
"description": "Corner radius of the container that holds the rows: a preset, or a length (`20` is px, `'1.25rem'` passes through). Default: the theme radius.",
|
|
358
|
+
"anyOf": [
|
|
359
|
+
{
|
|
360
|
+
"enum": [
|
|
361
|
+
"none",
|
|
362
|
+
"sm",
|
|
363
|
+
"md",
|
|
364
|
+
"lg",
|
|
365
|
+
"full"
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"type": [
|
|
370
|
+
"number",
|
|
371
|
+
"string"
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"itemRadius": {
|
|
377
|
+
"description": "Corner radius of each row, same values as `radius`. Default: `radius` for separated, filled and ghost rows; square rows inside a solid or outline card.",
|
|
378
|
+
"anyOf": [
|
|
379
|
+
{
|
|
380
|
+
"enum": [
|
|
381
|
+
"none",
|
|
382
|
+
"sm",
|
|
383
|
+
"md",
|
|
384
|
+
"lg",
|
|
385
|
+
"full"
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"type": [
|
|
390
|
+
"number",
|
|
391
|
+
"string"
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
"gap": {
|
|
397
|
+
"description": "Space between rows: a preset, or a length (`12` is px). Default: none for solid, outline and ghost; `'sm'` for separated and filled.",
|
|
398
|
+
"anyOf": [
|
|
399
|
+
{
|
|
400
|
+
"enum": [
|
|
401
|
+
"none",
|
|
402
|
+
"sm",
|
|
403
|
+
"md",
|
|
404
|
+
"lg"
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"type": [
|
|
409
|
+
"number",
|
|
410
|
+
"string"
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
"icon": {
|
|
416
|
+
"description": "Leading visual for every row: a node, or `(state) => node`. A row’s own `icon` wins."
|
|
417
|
+
},
|
|
418
|
+
"endIcon": {
|
|
419
|
+
"description": "Trailing visual for every row, just before the indicator. A row’s own `endIcon` wins."
|
|
420
|
+
},
|
|
421
|
+
"indicator": {
|
|
422
|
+
"description": "A built-in glyph, your own node, or `(state) => node`.",
|
|
423
|
+
"default": "chevron",
|
|
424
|
+
"anyOf": [
|
|
425
|
+
{
|
|
426
|
+
"enum": [
|
|
427
|
+
"chevron",
|
|
428
|
+
"plus",
|
|
429
|
+
"caret",
|
|
430
|
+
"arrow",
|
|
431
|
+
"none"
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
{}
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
"indicatorPosition": {
|
|
438
|
+
"description": "Which edge the indicator sits on.",
|
|
439
|
+
"default": "end",
|
|
440
|
+
"enum": [
|
|
441
|
+
"start",
|
|
442
|
+
"end"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
"animateIndicator": {
|
|
446
|
+
"description": "Rotate (or morph) the indicator when a row opens.",
|
|
447
|
+
"default": true,
|
|
448
|
+
"type": "boolean"
|
|
449
|
+
},
|
|
450
|
+
"headingLevel": {
|
|
451
|
+
"description": "Heading level around each trigger.",
|
|
452
|
+
"default": 3,
|
|
453
|
+
"enum": [
|
|
454
|
+
1,
|
|
455
|
+
2,
|
|
456
|
+
3,
|
|
457
|
+
4,
|
|
458
|
+
5,
|
|
459
|
+
6
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"animate": {
|
|
463
|
+
"description": "Animate open and close. `prefers-reduced-motion` always wins.",
|
|
464
|
+
"default": true,
|
|
465
|
+
"type": "boolean"
|
|
466
|
+
},
|
|
467
|
+
"dividers": {
|
|
468
|
+
"description": "Lines between rows (solid, outline and ghost).",
|
|
469
|
+
"default": true,
|
|
470
|
+
"type": "boolean"
|
|
471
|
+
},
|
|
472
|
+
"overflow": {
|
|
473
|
+
"description": "Text overflow per slot. Default: title wraps, description clamps to 2 lines.",
|
|
474
|
+
"type": "object",
|
|
475
|
+
"properties": {
|
|
476
|
+
"title": {
|
|
477
|
+
"description": "`'wrap'`, `'truncate'` (one line with an ellipsis) or `{ lines: n }` (clamp to n lines).",
|
|
478
|
+
"anyOf": [
|
|
479
|
+
{
|
|
480
|
+
"enum": [
|
|
481
|
+
"wrap",
|
|
482
|
+
"truncate"
|
|
483
|
+
]
|
|
484
|
+
},
|
|
485
|
+
{}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
"description": {
|
|
489
|
+
"description": "`'wrap'`, `'truncate'` (one line with an ellipsis) or `{ lines: n }` (clamp to n lines).",
|
|
490
|
+
"anyOf": [
|
|
491
|
+
{
|
|
492
|
+
"enum": [
|
|
493
|
+
"wrap",
|
|
494
|
+
"truncate"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
{}
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"additionalProperties": false
|
|
502
|
+
},
|
|
503
|
+
"dimensions": {
|
|
504
|
+
"description": "Explicit sizes. Numbers are px. Each key overrides the size preset.",
|
|
505
|
+
"type": "object",
|
|
506
|
+
"properties": {
|
|
507
|
+
"width": {
|
|
508
|
+
"description": "Default 100% of the parent.",
|
|
509
|
+
"type": [
|
|
510
|
+
"number",
|
|
511
|
+
"string"
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
"minWidth": {
|
|
515
|
+
"description": "Minimum width.",
|
|
516
|
+
"type": [
|
|
517
|
+
"number",
|
|
518
|
+
"string"
|
|
519
|
+
]
|
|
520
|
+
},
|
|
521
|
+
"maxWidth": {
|
|
522
|
+
"description": "Maximum width.",
|
|
523
|
+
"type": [
|
|
524
|
+
"number",
|
|
525
|
+
"string"
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
"height": {
|
|
529
|
+
"description": "Fixed height.",
|
|
530
|
+
"type": [
|
|
531
|
+
"number",
|
|
532
|
+
"string"
|
|
533
|
+
]
|
|
534
|
+
},
|
|
535
|
+
"maxHeight": {
|
|
536
|
+
"description": "Caps the root; rows scroll.",
|
|
537
|
+
"type": [
|
|
538
|
+
"number",
|
|
539
|
+
"string"
|
|
540
|
+
]
|
|
541
|
+
},
|
|
542
|
+
"gap": {
|
|
543
|
+
"description": "Space between rows. Overrides `gap`.",
|
|
544
|
+
"type": [
|
|
545
|
+
"number",
|
|
546
|
+
"string"
|
|
547
|
+
]
|
|
548
|
+
},
|
|
549
|
+
"paddingX": {
|
|
550
|
+
"description": "Trigger horizontal padding.",
|
|
551
|
+
"type": [
|
|
552
|
+
"number",
|
|
553
|
+
"string"
|
|
554
|
+
]
|
|
555
|
+
},
|
|
556
|
+
"paddingY": {
|
|
557
|
+
"description": "Trigger vertical padding.",
|
|
558
|
+
"type": [
|
|
559
|
+
"number",
|
|
560
|
+
"string"
|
|
561
|
+
]
|
|
562
|
+
},
|
|
563
|
+
"panelPaddingX": {
|
|
564
|
+
"description": "Panel horizontal padding.",
|
|
565
|
+
"type": [
|
|
566
|
+
"number",
|
|
567
|
+
"string"
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"panelPaddingY": {
|
|
571
|
+
"description": "Panel vertical padding.",
|
|
572
|
+
"type": [
|
|
573
|
+
"number",
|
|
574
|
+
"string"
|
|
575
|
+
]
|
|
576
|
+
},
|
|
577
|
+
"panelMaxHeight": {
|
|
578
|
+
"description": "Caps an open panel; it scrolls.",
|
|
579
|
+
"type": [
|
|
580
|
+
"number",
|
|
581
|
+
"string"
|
|
582
|
+
]
|
|
583
|
+
},
|
|
584
|
+
"fontSize": {
|
|
585
|
+
"description": "Base font size.",
|
|
586
|
+
"type": [
|
|
587
|
+
"number",
|
|
588
|
+
"string"
|
|
589
|
+
]
|
|
590
|
+
},
|
|
591
|
+
"titleSize": {
|
|
592
|
+
"description": "Title font size.",
|
|
593
|
+
"type": [
|
|
594
|
+
"number",
|
|
595
|
+
"string"
|
|
596
|
+
]
|
|
597
|
+
},
|
|
598
|
+
"descriptionSize": {
|
|
599
|
+
"description": "Description font size.",
|
|
600
|
+
"type": [
|
|
601
|
+
"number",
|
|
602
|
+
"string"
|
|
603
|
+
]
|
|
604
|
+
},
|
|
605
|
+
"iconSize": {
|
|
606
|
+
"description": "Icon box size.",
|
|
607
|
+
"type": [
|
|
608
|
+
"number",
|
|
609
|
+
"string"
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
"indicatorSize": {
|
|
613
|
+
"description": "Indicator size.",
|
|
614
|
+
"type": [
|
|
615
|
+
"number",
|
|
616
|
+
"string"
|
|
617
|
+
]
|
|
618
|
+
},
|
|
619
|
+
"borderWidth": {
|
|
620
|
+
"description": "Border width.",
|
|
621
|
+
"type": [
|
|
622
|
+
"number",
|
|
623
|
+
"string"
|
|
624
|
+
]
|
|
625
|
+
},
|
|
626
|
+
"radius": {
|
|
627
|
+
"description": "Container corner radius. Overrides `radius`.",
|
|
628
|
+
"type": [
|
|
629
|
+
"number",
|
|
630
|
+
"string"
|
|
631
|
+
]
|
|
632
|
+
},
|
|
633
|
+
"itemRadius": {
|
|
634
|
+
"description": "Row corner radius. Overrides `itemRadius`.",
|
|
635
|
+
"type": [
|
|
636
|
+
"number",
|
|
637
|
+
"string"
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
"duration": {
|
|
641
|
+
"description": "Transition duration, e.g. '320ms'.",
|
|
642
|
+
"type": [
|
|
643
|
+
"number",
|
|
644
|
+
"string"
|
|
645
|
+
]
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
"additionalProperties": false
|
|
649
|
+
},
|
|
650
|
+
"unstyled": {
|
|
651
|
+
"description": "Drops every Pinfold class; ARIA and `data-*` stay. For Tailwind or your own CSS.",
|
|
652
|
+
"default": false,
|
|
653
|
+
"type": "boolean"
|
|
654
|
+
},
|
|
655
|
+
"className": {
|
|
656
|
+
"description": "Class on the root.",
|
|
657
|
+
"type": "string"
|
|
658
|
+
},
|
|
659
|
+
"style": {
|
|
660
|
+
"description": "Inline style on the root.",
|
|
661
|
+
"type": "object"
|
|
662
|
+
},
|
|
663
|
+
"classNames": {
|
|
664
|
+
"description": "Classes per slot.",
|
|
665
|
+
"type": "object",
|
|
666
|
+
"properties": {
|
|
667
|
+
"root": {
|
|
668
|
+
"description": "The `root` slot.",
|
|
669
|
+
"type": "string"
|
|
670
|
+
},
|
|
671
|
+
"item": {
|
|
672
|
+
"description": "The `item` slot.",
|
|
673
|
+
"type": "string"
|
|
674
|
+
},
|
|
675
|
+
"header": {
|
|
676
|
+
"description": "The `header` slot.",
|
|
677
|
+
"type": "string"
|
|
678
|
+
},
|
|
679
|
+
"trigger": {
|
|
680
|
+
"description": "The `trigger` slot.",
|
|
681
|
+
"type": "string"
|
|
682
|
+
},
|
|
683
|
+
"icon": {
|
|
684
|
+
"description": "The `icon` slot.",
|
|
685
|
+
"type": "string"
|
|
686
|
+
},
|
|
687
|
+
"label": {
|
|
688
|
+
"description": "The `label` slot.",
|
|
689
|
+
"type": "string"
|
|
690
|
+
},
|
|
691
|
+
"title": {
|
|
692
|
+
"description": "The `title` slot.",
|
|
693
|
+
"type": "string"
|
|
694
|
+
},
|
|
695
|
+
"description": {
|
|
696
|
+
"description": "The `description` slot.",
|
|
697
|
+
"type": "string"
|
|
698
|
+
},
|
|
699
|
+
"badge": {
|
|
700
|
+
"description": "The `badge` slot.",
|
|
701
|
+
"type": "string"
|
|
702
|
+
},
|
|
703
|
+
"endIcon": {
|
|
704
|
+
"description": "The `endIcon` slot.",
|
|
705
|
+
"type": "string"
|
|
706
|
+
},
|
|
707
|
+
"indicator": {
|
|
708
|
+
"description": "The `indicator` slot.",
|
|
709
|
+
"type": "string"
|
|
710
|
+
},
|
|
711
|
+
"panel": {
|
|
712
|
+
"description": "The `panel` slot.",
|
|
713
|
+
"type": "string"
|
|
714
|
+
},
|
|
715
|
+
"content": {
|
|
716
|
+
"description": "The `content` slot.",
|
|
717
|
+
"type": "string"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"additionalProperties": false
|
|
721
|
+
},
|
|
722
|
+
"styles": {
|
|
723
|
+
"description": "Inline styles per slot.",
|
|
724
|
+
"type": "object",
|
|
725
|
+
"properties": {
|
|
726
|
+
"root": {
|
|
727
|
+
"description": "The `root` slot.",
|
|
728
|
+
"type": "object"
|
|
729
|
+
},
|
|
730
|
+
"item": {
|
|
731
|
+
"description": "The `item` slot.",
|
|
732
|
+
"type": "object"
|
|
733
|
+
},
|
|
734
|
+
"header": {
|
|
735
|
+
"description": "The `header` slot.",
|
|
736
|
+
"type": "object"
|
|
737
|
+
},
|
|
738
|
+
"trigger": {
|
|
739
|
+
"description": "The `trigger` slot.",
|
|
740
|
+
"type": "object"
|
|
741
|
+
},
|
|
742
|
+
"icon": {
|
|
743
|
+
"description": "The `icon` slot.",
|
|
744
|
+
"type": "object"
|
|
745
|
+
},
|
|
746
|
+
"label": {
|
|
747
|
+
"description": "The `label` slot.",
|
|
748
|
+
"type": "object"
|
|
749
|
+
},
|
|
750
|
+
"title": {
|
|
751
|
+
"description": "The `title` slot.",
|
|
752
|
+
"type": "object"
|
|
753
|
+
},
|
|
754
|
+
"description": {
|
|
755
|
+
"description": "The `description` slot.",
|
|
756
|
+
"type": "object"
|
|
757
|
+
},
|
|
758
|
+
"badge": {
|
|
759
|
+
"description": "The `badge` slot.",
|
|
760
|
+
"type": "object"
|
|
761
|
+
},
|
|
762
|
+
"endIcon": {
|
|
763
|
+
"description": "The `endIcon` slot.",
|
|
764
|
+
"type": "object"
|
|
765
|
+
},
|
|
766
|
+
"indicator": {
|
|
767
|
+
"description": "The `indicator` slot.",
|
|
768
|
+
"type": "object"
|
|
769
|
+
},
|
|
770
|
+
"panel": {
|
|
771
|
+
"description": "The `panel` slot.",
|
|
772
|
+
"type": "object"
|
|
773
|
+
},
|
|
774
|
+
"content": {
|
|
775
|
+
"description": "The `content` slot.",
|
|
776
|
+
"type": "object"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"additionalProperties": false
|
|
780
|
+
},
|
|
781
|
+
"slotProps": {
|
|
782
|
+
"description": "Any DOM props per slot. Handlers chain.",
|
|
783
|
+
"type": "object",
|
|
784
|
+
"properties": {
|
|
785
|
+
"root": {
|
|
786
|
+
"description": "The `root` slot.",
|
|
787
|
+
"type": "object"
|
|
788
|
+
},
|
|
789
|
+
"item": {
|
|
790
|
+
"description": "The `item` slot.",
|
|
791
|
+
"type": "object"
|
|
792
|
+
},
|
|
793
|
+
"header": {
|
|
794
|
+
"description": "The `header` slot.",
|
|
795
|
+
"type": "object"
|
|
796
|
+
},
|
|
797
|
+
"trigger": {
|
|
798
|
+
"description": "The `trigger` slot.",
|
|
799
|
+
"type": "object"
|
|
800
|
+
},
|
|
801
|
+
"icon": {
|
|
802
|
+
"description": "The `icon` slot.",
|
|
803
|
+
"type": "object"
|
|
804
|
+
},
|
|
805
|
+
"label": {
|
|
806
|
+
"description": "The `label` slot.",
|
|
807
|
+
"type": "object"
|
|
808
|
+
},
|
|
809
|
+
"title": {
|
|
810
|
+
"description": "The `title` slot.",
|
|
811
|
+
"type": "object"
|
|
812
|
+
},
|
|
813
|
+
"description": {
|
|
814
|
+
"description": "The `description` slot.",
|
|
815
|
+
"type": "object"
|
|
816
|
+
},
|
|
817
|
+
"badge": {
|
|
818
|
+
"description": "The `badge` slot.",
|
|
819
|
+
"type": "object"
|
|
820
|
+
},
|
|
821
|
+
"endIcon": {
|
|
822
|
+
"description": "The `endIcon` slot.",
|
|
823
|
+
"type": "object"
|
|
824
|
+
},
|
|
825
|
+
"indicator": {
|
|
826
|
+
"description": "The `indicator` slot.",
|
|
827
|
+
"type": "object"
|
|
828
|
+
},
|
|
829
|
+
"panel": {
|
|
830
|
+
"description": "The `panel` slot.",
|
|
831
|
+
"type": "object"
|
|
832
|
+
},
|
|
833
|
+
"content": {
|
|
834
|
+
"description": "The `content` slot.",
|
|
835
|
+
"type": "object"
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"additionalProperties": false
|
|
839
|
+
},
|
|
840
|
+
"render": {
|
|
841
|
+
"description": "Replace a slot element: `({ props, state, children }) => node`.",
|
|
842
|
+
"type": "object",
|
|
843
|
+
"properties": {
|
|
844
|
+
"root": {
|
|
845
|
+
"description": "The `root` slot."
|
|
846
|
+
},
|
|
847
|
+
"item": {
|
|
848
|
+
"description": "The `item` slot."
|
|
849
|
+
},
|
|
850
|
+
"header": {
|
|
851
|
+
"description": "The `header` slot."
|
|
852
|
+
},
|
|
853
|
+
"trigger": {
|
|
854
|
+
"description": "The `trigger` slot."
|
|
855
|
+
},
|
|
856
|
+
"icon": {
|
|
857
|
+
"description": "The `icon` slot."
|
|
858
|
+
},
|
|
859
|
+
"label": {
|
|
860
|
+
"description": "The `label` slot."
|
|
861
|
+
},
|
|
862
|
+
"title": {
|
|
863
|
+
"description": "The `title` slot."
|
|
864
|
+
},
|
|
865
|
+
"description": {
|
|
866
|
+
"description": "The `description` slot."
|
|
867
|
+
},
|
|
868
|
+
"badge": {
|
|
869
|
+
"description": "The `badge` slot."
|
|
870
|
+
},
|
|
871
|
+
"endIcon": {
|
|
872
|
+
"description": "The `endIcon` slot."
|
|
873
|
+
},
|
|
874
|
+
"indicator": {
|
|
875
|
+
"description": "The `indicator` slot."
|
|
876
|
+
},
|
|
877
|
+
"panel": {
|
|
878
|
+
"description": "The `panel` slot."
|
|
879
|
+
},
|
|
880
|
+
"content": {
|
|
881
|
+
"description": "The `content` slot."
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"additionalProperties": false
|
|
885
|
+
},
|
|
886
|
+
"renderItem": {
|
|
887
|
+
"description": "Replace a whole row: `({ state, props, header, panel }) => node`."
|
|
888
|
+
},
|
|
889
|
+
"onValueChange": {
|
|
890
|
+
"description": "`(ids, details)`. `details: { id, open, reason: 'click' | 'keyboard' | 'api' | 'find-in-page' | 'hash', event }`."
|
|
891
|
+
},
|
|
892
|
+
"onBeforeChange": {
|
|
893
|
+
"description": "`(details) => boolean | void`. Return `false` to block the change."
|
|
894
|
+
},
|
|
895
|
+
"onItemToggle": {
|
|
896
|
+
"description": "`(id, open)`, after `onValueChange`."
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"required": [
|
|
900
|
+
"items"
|
|
901
|
+
],
|
|
902
|
+
"additionalProperties": false
|
|
903
|
+
}
|