jsswift 1.0.45 → 1.0.46

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.
Files changed (67) hide show
  1. package/dist/documentions/AI.md +85 -0
  2. package/dist/documentions/README.md +2 -0
  3. package/dist/documentions/ai-development.md +3 -1
  4. package/dist/documentions/components/alert.md +29 -493
  5. package/dist/documentions/components/app-shell.md +37 -524
  6. package/dist/documentions/components/avatar.md +47 -575
  7. package/dist/documentions/components/badge.md +27 -461
  8. package/dist/documentions/components/banner.md +35 -535
  9. package/dist/documentions/components/breadcrumbs.md +35 -518
  10. package/dist/documentions/components/btn.md +3 -21
  11. package/dist/documentions/components/card-body.md +11 -328
  12. package/dist/documentions/components/card-footer.md +15 -367
  13. package/dist/documentions/components/card-header.md +15 -367
  14. package/dist/documentions/components/card.md +3 -19
  15. package/dist/documentions/components/checkbox.md +25 -456
  16. package/dist/documentions/components/chip.md +16 -393
  17. package/dist/documentions/components/col.md +57 -612
  18. package/dist/documentions/components/container.md +40 -535
  19. package/dist/documentions/components/context-menu.md +60 -696
  20. package/dist/documentions/components/date.md +56 -673
  21. package/dist/documentions/components/dialog.md +5 -21
  22. package/dist/documentions/components/drawer.md +48 -616
  23. package/dist/documentions/components/empty-state.md +28 -477
  24. package/dist/documentions/components/footer.md +42 -586
  25. package/dist/documentions/components/form-field.md +40 -568
  26. package/dist/documentions/components/form.md +7 -321
  27. package/dist/documentions/components/grid-col.md +42 -542
  28. package/dist/documentions/components/grid.md +40 -542
  29. package/dist/documentions/components/header.md +38 -547
  30. package/dist/documentions/components/icon.md +17 -370
  31. package/dist/documentions/components/input.md +4 -22
  32. package/dist/documentions/components/item.md +37 -533
  33. package/dist/documentions/components/kpi.md +34 -519
  34. package/dist/documentions/components/layout.md +81 -811
  35. package/dist/documentions/components/list.md +19 -405
  36. package/dist/documentions/components/loading-bar.md +58 -679
  37. package/dist/documentions/components/menu.md +62 -710
  38. package/dist/documentions/components/notify.md +34 -525
  39. package/dist/documentions/components/page.md +35 -526
  40. package/dist/documentions/components/pagination.md +3 -20
  41. package/dist/documentions/components/parallax.md +50 -633
  42. package/dist/documentions/components/popover.md +55 -661
  43. package/dist/documentions/components/progress.md +39 -554
  44. package/dist/documentions/components/radio.md +27 -470
  45. package/dist/documentions/components/rating.md +41 -574
  46. package/dist/documentions/components/route-tab.md +30 -491
  47. package/dist/documentions/components/row.md +35 -507
  48. package/dist/documentions/components/search.md +62 -723
  49. package/dist/documentions/components/select.md +3 -22
  50. package/dist/documentions/components/separator.md +7 -321
  51. package/dist/documentions/components/slider.md +49 -631
  52. package/dist/documentions/components/spacer.md +6 -314
  53. package/dist/documentions/components/spinner.md +25 -440
  54. package/dist/documentions/components/stat.md +32 -505
  55. package/dist/documentions/components/tab-panel.md +40 -563
  56. package/dist/documentions/components/table.md +3 -22
  57. package/dist/documentions/components/tabs.md +36 -538
  58. package/dist/documentions/components/time.md +29 -491
  59. package/dist/documentions/components/toggle.md +31 -498
  60. package/dist/documentions/components/toolbar.md +52 -640
  61. package/dist/documentions/components/tooltip.md +35 -535
  62. package/dist/documentions/knowledge-map.json +19 -1
  63. package/dist/documentions/ui/common-props.md +301 -0
  64. package/dist/jsswift.js +10543 -14102
  65. package/dist/jsswift.min.js +3 -3
  66. package/dist/min-jsswift.js +3 -3
  67. package/package.json +3 -2
@@ -1,546 +1,50 @@
1
1
  # Item
2
2
 
3
- Exact JSswift UI metadata contract. Use only the props, slots, events, and methods documented below.
3
+ Exact JSswift UI contract. Shared definitions listed in `commonProps` are in [common props](../ui/common-props.md); all component-specific props, slots, events, and methods are below.
4
4
 
5
5
  ```json
6
6
  {
7
7
  "signature": "_.Item(...children) | _.Item(props, ...children)",
8
8
  "props": {
9
- "size": {
10
- "type": "string|number",
11
- "description": "Size token, number, or CSS length for sizing.",
12
- "default": null,
13
- "values": [
14
- "number",
15
- "CSS units",
16
- "xxs",
17
- "xs",
18
- "sm",
19
- "md",
20
- "lg",
21
- "xl",
22
- "xxl",
23
- "xxxl"
24
- ],
25
- "category": "style"
26
- },
27
- "color": {
28
- "type": "string",
29
- "description": "Semantic color name used to style the component.",
30
- "default": null,
31
- "values": [
32
- "primary",
33
- "secondary",
34
- "success",
35
- "warning",
36
- "danger",
37
- "info",
38
- "light",
39
- "dark"
40
- ],
41
- "category": "style"
42
- },
43
- "outline": {
44
- "type": "boolean",
45
- "description": "Uses outlined visual style.",
46
- "default": false,
47
- "values": [
48
- "number",
49
- "CSS units",
50
- "xxs",
51
- "xs",
52
- "sm",
53
- "md",
54
- "lg",
55
- "xl",
56
- "xxl",
57
- "xxxl"
58
- ],
59
- "category": "style"
60
- },
61
- "clickable": {
62
- "type": "boolean",
63
- "description": "Enables pointer/hover styles and click handling on the component.",
64
- "default": false,
65
- "values": null,
66
- "category": "behavior"
67
- },
68
- "padding": {
69
- "type": "string|number",
70
- "description": "Padding applied to the component root element.",
71
- "default": null,
72
- "values": [
73
- "number",
74
- "CSS units",
75
- "xxs",
76
- "xs",
77
- "sm",
78
- "md",
79
- "lg",
80
- "xl",
81
- "xxl",
82
- "xxxl"
83
- ],
84
- "category": "layout"
85
- },
86
- "margin": {
87
- "type": "string|number",
88
- "description": "Margin applied to the component root element.",
89
- "default": null,
90
- "values": [
91
- "number",
92
- "CSS units",
93
- "xxs",
94
- "xs",
95
- "sm",
96
- "md",
97
- "lg",
98
- "xl",
99
- "xxl",
100
- "xxxl"
101
- ],
102
- "category": "layout"
103
- },
104
- "width": {
105
- "type": "string|number",
106
- "description": "Explicit width (number interpreted as px or CSS length).",
107
- "default": null,
108
- "values": [
109
- "number",
110
- "CSS units",
111
- "xxs",
112
- "xs",
113
- "sm",
114
- "md",
115
- "lg",
116
- "xl",
117
- "xxl",
118
- "xxxl"
119
- ],
120
- "category": "layout"
121
- },
122
- "minWidth": {
123
- "type": "string|number",
124
- "description": "Minimum width constraint (number interpreted as px or CSS length).",
125
- "default": null,
126
- "values": [
127
- "number",
128
- "CSS units",
129
- "xxs",
130
- "xs",
131
- "sm",
132
- "md",
133
- "lg",
134
- "xl",
135
- "xxl",
136
- "xxxl"
137
- ],
138
- "category": "layout"
139
- },
140
- "maxWidth": {
141
- "type": "string|number",
142
- "description": "Maximum width constraint (number interpreted as px or CSS length).",
143
- "default": null,
144
- "values": [
145
- "number",
146
- "CSS units",
147
- "xxs",
148
- "xs",
149
- "sm",
150
- "md",
151
- "lg",
152
- "xl",
153
- "xxl",
154
- "xxxl"
155
- ],
156
- "category": "layout"
157
- },
158
- "height": {
159
- "type": "string|number",
160
- "description": "Explicit height (number interpreted as px or CSS length).",
161
- "default": null,
162
- "values": [
163
- "number",
164
- "CSS units",
165
- "xxs",
166
- "xs",
167
- "sm",
168
- "md",
169
- "lg",
170
- "xl",
171
- "xxl",
172
- "xxxl"
173
- ],
174
- "category": "layout"
175
- },
176
- "minHeight": {
177
- "type": "string|number",
178
- "description": "Minimum height constraint (number interpreted as px or CSS length).",
179
- "default": null,
180
- "values": [
181
- "number",
182
- "CSS units",
183
- "xxs",
184
- "xs",
185
- "sm",
186
- "md",
187
- "lg",
188
- "xl",
189
- "xxl",
190
- "xxxl"
191
- ],
192
- "category": "layout"
193
- },
194
- "maxHeight": {
195
- "type": "string|number",
196
- "description": "Maximum height constraint (number interpreted as px or CSS length).",
197
- "default": null,
198
- "values": [
199
- "number",
200
- "CSS units",
201
- "xxs",
202
- "xs",
203
- "sm",
204
- "md",
205
- "lg",
206
- "xl",
207
- "xxl",
208
- "xxxl"
209
- ],
210
- "category": "layout"
211
- },
212
- "radius": {
213
- "type": "string|number",
214
- "description": "Border radius token or CSS length applied to the component.",
215
- "default": null,
216
- "values": [
217
- "number",
218
- "CSS units",
219
- "xxs",
220
- "xs",
221
- "sm",
222
- "md",
223
- "lg",
224
- "xl",
225
- "xxl",
226
- "xxxl"
227
- ],
228
- "category": "style"
229
- },
230
- "borderRadius": {
231
- "type": "string|number",
232
- "description": "Border radius token or CSS length applied to the component.",
233
- "default": null,
234
- "values": [
235
- "number",
236
- "CSS units",
237
- "xxs",
238
- "xs",
239
- "sm",
240
- "md",
241
- "lg",
242
- "xl",
243
- "xxl",
244
- "xxxl"
245
- ],
246
- "category": "style"
247
- },
248
- "shadow": {
249
- "type": "boolean|string",
250
- "description": "Shadow token or CSS box-shadow string applied to the component.",
251
- "default": null,
252
- "values": [
253
- "none",
254
- "xxs",
255
- "xs",
256
- "sm",
257
- "md",
258
- "lg",
259
- "xl",
260
- "xxl",
261
- "xxxl"
262
- ],
263
- "category": "style"
264
- },
265
- "mobile": {
266
- "type": "object",
267
- "description": "Responsive overrides applied at the base/mobile viewport.",
268
- "default": null,
269
- "values": null,
270
- "category": "layout"
271
- },
272
- "tablet": {
273
- "type": "object",
274
- "description": "Responsive overrides applied from the tablet breakpoint upward.",
275
- "default": null,
276
- "values": null,
277
- "category": "layout"
278
- },
279
- "pc": {
280
- "type": "object",
281
- "description": "Responsive overrides applied from the desktop breakpoint upward.",
282
- "default": null,
283
- "values": null,
284
- "category": "layout"
285
- },
286
- "class": {
287
- "type": "string",
288
- "description": "Additional CSS classes applied to the component root element.",
289
- "default": null,
290
- "values": null,
291
- "category": "style"
292
- },
293
- "style": {
294
- "type": "object",
295
- "description": "Inline styles applied to the component root element.",
296
- "default": null,
297
- "values": null,
298
- "category": "style"
299
- },
300
- "label": {
301
- "type": "String|Node|Function|Array",
302
- "description": "Label text or node for the component.",
303
- "default": null,
304
- "values": null,
305
- "category": "general"
306
- },
307
- "title": {
308
- "type": "String|Node|Function|Array",
309
- "description": "Title text or node.",
310
- "default": null,
311
- "values": null,
312
- "category": "general"
313
- },
314
- "subtitle": {
315
- "type": "String|Node|Function|Array",
316
- "description": "Subtitle text or node.",
317
- "default": null,
318
- "values": null,
319
- "category": "general"
320
- },
321
- "meta": {
322
- "type": "String|Node|Function|Array",
323
- "description": "Component configuration for \"meta\". When not handled internally, it is forwarded to the root element.",
324
- "default": null,
325
- "values": null,
326
- "category": "general"
327
- },
328
- "body": {
329
- "type": "String|Node|Function|Array",
330
- "description": "Component configuration for \"body\". When not handled internally, it is forwarded to the root element.",
331
- "default": null,
332
- "values": null,
333
- "category": "general"
334
- },
335
- "icon": {
336
- "type": "String|Node|Function|Array",
337
- "description": "Icon name or node rendered with the component.",
338
- "default": null,
339
- "values": [
340
- "#name_tabler",
341
- "name_material",
342
- "class"
343
- ],
344
- "category": "general"
345
- },
346
- "iconRight": {
347
- "type": "String|Node|Function|Array",
348
- "description": "Icon name or node rendered on the right side of the component.",
349
- "default": null,
350
- "values": [
351
- "#name_tabler",
352
- "name_material",
353
- "class"
354
- ],
355
- "category": "general"
356
- },
357
- "aside": {
358
- "type": "Node|Function|Array",
359
- "description": "Content or configuration for the aside/secondary region.",
360
- "default": null,
361
- "values": null,
362
- "category": "general"
363
- },
364
- "actions": {
365
- "type": "Node|Function|Array",
366
- "description": "Content rendered in the action area, typically in a footer or trailing region.",
367
- "default": null,
368
- "values": null,
369
- "category": "general"
370
- },
371
- "to": {
372
- "type": "string",
373
- "description": "Navigation target/route to open on click.",
374
- "default": null,
375
- "values": null,
376
- "category": "general"
377
- },
378
- "active": {
379
- "type": "boolean",
380
- "description": "Marks the item as active/selected and applies active styling/ARIA when relevant.",
381
- "default": null,
382
- "values": null,
383
- "category": "state"
384
- },
385
- "selected": {
386
- "type": "boolean",
387
- "description": "Component configuration for \"selected\". When not handled internally, it is forwarded to the root element.",
388
- "default": null,
389
- "values": null,
390
- "category": "general"
391
- },
392
- "disabled": {
393
- "type": "boolean",
394
- "description": "Disables interaction and applies disabled styling/ARIA.",
395
- "default": false,
396
- "values": null,
397
- "category": "state"
398
- },
399
- "state": {
400
- "type": "Alias of color",
401
- "description": "Component configuration for \"state\". When not handled internally, it is forwarded to the root element.",
402
- "default": null,
403
- "values": null,
404
- "category": "general"
405
- },
406
- "lightShadow": {
407
- "type": "boolean",
408
- "description": "Component configuration for \"lightShadow\". When not handled internally, it is forwarded to the root element.",
409
- "default": null,
410
- "values": null,
411
- "category": "general"
412
- },
413
- "border": {
414
- "type": "boolean",
415
- "description": "Component configuration for \"border\". When not handled internally, it is forwarded to the root element.",
416
- "default": null,
417
- "values": null,
418
- "category": "general"
419
- },
420
- "glossy": {
421
- "type": "boolean",
422
- "description": "Component configuration for \"glossy\". When not handled internally, it is forwarded to the root element.",
423
- "default": null,
424
- "values": null,
425
- "category": "general"
426
- },
427
- "glow": {
428
- "type": "boolean",
429
- "description": "Component configuration for \"glow\". When not handled internally, it is forwarded to the root element.",
430
- "default": null,
431
- "values": null,
432
- "category": "general"
433
- },
434
- "glass": {
435
- "type": "boolean",
436
- "description": "Component configuration for \"glass\". When not handled internally, it is forwarded to the root element.",
437
- "default": null,
438
- "values": null,
439
- "category": "general"
440
- },
441
- "gradient": {
442
- "type": "boolean|number",
443
- "description": "Component configuration for \"gradient\". When not handled internally, it is forwarded to the root element.",
444
- "default": null,
445
- "values": null,
446
- "category": "general"
447
- },
448
- "textGradient": {
449
- "type": "boolean",
450
- "description": "Component configuration for \"textGradient\". When not handled internally, it is forwarded to the root element.",
451
- "default": null,
452
- "values": null,
453
- "category": "general"
454
- },
455
- "divider": {
456
- "type": "boolean",
457
- "description": "Shows dividers between items or sections.",
458
- "default": null,
459
- "values": null,
460
- "category": "general"
461
- },
462
- "slots": {
463
- "type": "{ icon?, title?, subtitle?, meta?, body?, aside?, actions?, default? }",
464
- "description": "Named slots map for render overrides.",
465
- "default": null,
466
- "values": null,
467
- "category": "general"
468
- },
469
- "children": {
470
- "type": "Node|Array|Function",
471
- "description": "Default child content (nodes, arrays, or render function).",
472
- "default": null,
473
- "values": null,
474
- "category": "general"
475
- }
9
+ "shadow": {"type": "boolean|string", "description": "Shadow token or CSS box-shadow string applied to the component.", "default": null, "values": ["none", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "style"},
10
+ "label": {"type": "String|Node|Function|Array", "description": "Label text or node for the component.", "default": null, "values": null, "category": "general"},
11
+ "title": {"type": "String|Node|Function|Array", "description": "Title text or node.", "default": null, "values": null, "category": "general"},
12
+ "subtitle": {"type": "String|Node|Function|Array", "description": "Subtitle text or node.", "default": null, "values": null, "category": "general"},
13
+ "meta": {"type": "String|Node|Function|Array", "description": "Component configuration for \"meta\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
14
+ "body": {"type": "String|Node|Function|Array", "description": "Component configuration for \"body\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
15
+ "icon": {"type": "String|Node|Function|Array", "description": "Icon name or node rendered with the component.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "general"},
16
+ "iconRight": {"type": "String|Node|Function|Array", "description": "Icon name or node rendered on the right side of the component.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "general"},
17
+ "aside": {"type": "Node|Function|Array", "description": "Content or configuration for the aside/secondary region.", "default": null, "values": null, "category": "general"},
18
+ "actions": {"type": "Node|Function|Array", "description": "Content rendered in the action area, typically in a footer or trailing region.", "default": null, "values": null, "category": "general"},
19
+ "to": {"type": "string", "description": "Navigation target/route to open on click.", "default": null, "values": null, "category": "general"},
20
+ "active": {"type": "boolean", "description": "Marks the item as active/selected and applies active styling/ARIA when relevant.", "default": null, "values": null, "category": "state"},
21
+ "selected": {"type": "boolean", "description": "Component configuration for \"selected\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
22
+ "disabled": {"type": "boolean", "description": "Disables interaction and applies disabled styling/ARIA.", "default": false, "values": null, "category": "state"},
23
+ "state": {"type": "Alias of color", "description": "Component configuration for \"state\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
24
+ "lightShadow": {"type": "boolean", "description": "Component configuration for \"lightShadow\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
25
+ "border": {"type": "boolean", "description": "Component configuration for \"border\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
26
+ "glossy": {"type": "boolean", "description": "Component configuration for \"glossy\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
27
+ "glow": {"type": "boolean", "description": "Component configuration for \"glow\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
28
+ "glass": {"type": "boolean", "description": "Component configuration for \"glass\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
29
+ "gradient": {"type": "boolean|number", "description": "Component configuration for \"gradient\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
30
+ "textGradient": {"type": "boolean", "description": "Component configuration for \"textGradient\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
31
+ "divider": {"type": "boolean", "description": "Shows dividers between items or sections.", "default": null, "values": null, "category": "general"},
32
+ "slots": {"type": "{ icon?, title?, subtitle?, meta?, body?, aside?, actions?, default? }", "description": "Named slots map for render overrides.", "default": null, "values": null, "category": "general"},
33
+ "children": {"type": "Node|Array|Function", "description": "Default child content (nodes, arrays, or render function).", "default": null, "values": null, "category": "general"}
476
34
  },
477
35
  "slots": {
478
- "icon": {
479
- "type": "Leading visual/icon",
480
- "description": "Slot for icon content.",
481
- "default": null,
482
- "values": [
483
- "#name_tabler",
484
- "name_material",
485
- "class"
486
- ],
487
- "category": "slot"
488
- },
489
- "title": {
490
- "type": "Main title content",
491
- "description": "Slot for title content.",
492
- "default": null,
493
- "values": null,
494
- "category": "slot"
495
- },
496
- "subtitle": {
497
- "type": "Secondary text",
498
- "description": "Slot for subtitle content.",
499
- "default": null,
500
- "values": null,
501
- "category": "slot"
502
- },
503
- "meta": {
504
- "type": "Top meta content",
505
- "description": "Slot content for \"meta\". Accepts nodes, arrays, or render functions.",
506
- "default": null,
507
- "values": null,
508
- "category": "slot"
509
- },
510
- "body": {
511
- "type": "Body content",
512
- "description": "Slot content for \"body\". Accepts nodes, arrays, or render functions.",
513
- "default": null,
514
- "values": null,
515
- "category": "slot"
516
- },
517
- "aside": {
518
- "type": "Trailing content",
519
- "description": "Slot for aside/secondary content.",
520
- "default": null,
521
- "values": null,
522
- "category": "slot"
523
- },
524
- "actions": {
525
- "type": "Actions row",
526
- "description": "Slot for action buttons or links.",
527
- "default": null,
528
- "values": null,
529
- "category": "slot"
530
- },
531
- "default": {
532
- "type": "Fallback body content",
533
- "description": "Primary content for the component.",
534
- "default": null,
535
- "values": null,
536
- "category": "slot"
537
- },
538
- "iconRight": {
539
- "type": "Leading visual/icon",
540
- "description": "Slot for right-aligned icon content."
541
- }
36
+ "icon": {"type": "Leading visual/icon", "description": "Slot for icon content.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "slot"},
37
+ "title": {"type": "Main title content", "description": "Slot for title content.", "default": null, "values": null, "category": "slot"},
38
+ "subtitle": {"type": "Secondary text", "description": "Slot for subtitle content.", "default": null, "values": null, "category": "slot"},
39
+ "meta": {"type": "Top meta content", "description": "Slot content for \"meta\". Accepts nodes, arrays, or render functions.", "default": null, "values": null, "category": "slot"},
40
+ "body": {"type": "Body content", "description": "Slot content for \"body\". Accepts nodes, arrays, or render functions.", "default": null, "values": null, "category": "slot"},
41
+ "aside": {"type": "Trailing content", "description": "Slot for aside/secondary content.", "default": null, "values": null, "category": "slot"},
42
+ "actions": {"type": "Actions row", "description": "Slot for action buttons or links.", "default": null, "values": null, "category": "slot"},
43
+ "default": {"type": "Fallback body content", "description": "Primary content for the component.", "default": null, "values": null, "category": "slot"},
44
+ "iconRight": {"type": "Leading visual/icon", "description": "Slot for right-aligned icon content."}
542
45
  },
543
46
  "returns": "HTMLLIElement",
544
- "description": "Structured item for simple lists, feeds, task lists, and clickable rows."
47
+ "description": "Structured item for simple lists, feeds, task lists, and clickable rows.",
48
+ "commonProps": {"path": "ui/common-props.md", "keys": ["size", "color", "outline", "clickable", "padding", "margin", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "radius", "borderRadius", "mobile", "tablet", "pc", "class", "style"]}
545
49
  }
546
50
  ```