@rockshin/tao-ui 0.0.13 → 0.0.15
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/component-manifest.json +645 -147
- package/dist/components/button/button.css +18 -18
- package/dist/components/button/button.js +1 -0
- package/dist/components/select/mobile-select.css +29 -0
- package/dist/components/select/mobile-select.d.ts +8 -4
- package/dist/components/select/mobile-select.js +41 -36
- package/dist/components/select/select.css +85 -12
- package/dist/components/select/select.d.ts +38 -8
- package/dist/components/select/select.js +437 -129
- package/dist/components/sonner/index.d.ts +1 -0
- package/dist/components/sonner/index.js +1 -0
- package/dist/components/sonner/sonner.css +118 -0
- package/dist/components/sonner/sonner.d.ts +57 -0
- package/dist/components/sonner/sonner.js +249 -0
- package/dist/docs/component-docs.js +2 -0
- package/dist/docs/components/sonner.doc.d.ts +18 -0
- package/dist/docs/components/sonner.doc.js +47 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/theme/theme.css +1 -1
- package/llms.txt +14 -1
- package/package.json +1 -1
package/component-manifest.json
CHANGED
|
@@ -1,27 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@rockshin/tao-ui",
|
|
4
|
-
"generatedAt": "2026-07-
|
|
4
|
+
"generatedAt": "2026-07-12T10:40:10.749Z",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"name": "breadcrumb",
|
|
8
8
|
"displayName": "Breadcrumb",
|
|
9
9
|
"category": "Navigation",
|
|
10
10
|
"description": "Renders the user location in a hierarchy of pages or views.",
|
|
11
|
-
"exports": [
|
|
11
|
+
"exports": [
|
|
12
|
+
"Breadcrumb"
|
|
13
|
+
],
|
|
12
14
|
"source": "src/components/breadcrumb/breadcrumb.tsx",
|
|
13
15
|
"story": "stories/breadcrumb.stories.tsx",
|
|
14
|
-
"tests": [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
16
|
+
"tests": [
|
|
17
|
+
"tests/breadcrumb/breadcrumb.test.tsx"
|
|
18
|
+
],
|
|
19
|
+
"semanticParts": [
|
|
20
|
+
"root",
|
|
21
|
+
"list",
|
|
22
|
+
"item",
|
|
23
|
+
"link",
|
|
24
|
+
"separator"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"navigation",
|
|
28
|
+
"path",
|
|
29
|
+
"hierarchy"
|
|
30
|
+
],
|
|
31
|
+
"related": [
|
|
32
|
+
"Tabs",
|
|
33
|
+
"Dropdown"
|
|
34
|
+
],
|
|
18
35
|
"usage": {
|
|
19
36
|
"description": "Use Breadcrumb near the top of a page when users need to understand or move through nested context.",
|
|
20
37
|
"bestPractices": [
|
|
21
38
|
"Keep labels short and recognizable.",
|
|
22
39
|
"Use links for ancestors and plain text for the current item."
|
|
23
40
|
],
|
|
24
|
-
"avoid": [
|
|
41
|
+
"avoid": [
|
|
42
|
+
"Do not use Breadcrumb as primary navigation."
|
|
43
|
+
]
|
|
25
44
|
},
|
|
26
45
|
"props": [
|
|
27
46
|
{
|
|
@@ -41,13 +60,27 @@
|
|
|
41
60
|
"displayName": "Button",
|
|
42
61
|
"category": "General",
|
|
43
62
|
"description": "Triggers an immediate action such as submitting, saving, or opening a surface.",
|
|
44
|
-
"exports": [
|
|
63
|
+
"exports": [
|
|
64
|
+
"Button"
|
|
65
|
+
],
|
|
45
66
|
"source": "src/components/button/button.tsx",
|
|
46
67
|
"story": "stories/button.stories.tsx",
|
|
47
|
-
"tests": [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
68
|
+
"tests": [
|
|
69
|
+
"tests/button/button.test.tsx"
|
|
70
|
+
],
|
|
71
|
+
"semanticParts": [
|
|
72
|
+
"root"
|
|
73
|
+
],
|
|
74
|
+
"keywords": [
|
|
75
|
+
"button",
|
|
76
|
+
"action",
|
|
77
|
+
"submit",
|
|
78
|
+
"loading"
|
|
79
|
+
],
|
|
80
|
+
"related": [
|
|
81
|
+
"FormActions",
|
|
82
|
+
"Modal"
|
|
83
|
+
],
|
|
51
84
|
"usage": {
|
|
52
85
|
"description": "Use Button for explicit actions. It inherits size, disabled, and variant defaults from TaoProvider.",
|
|
53
86
|
"bestPractices": [
|
|
@@ -88,13 +121,32 @@
|
|
|
88
121
|
"displayName": "Checkbox",
|
|
89
122
|
"category": "Data Entry",
|
|
90
123
|
"description": "Selects one or more independent boolean options.",
|
|
91
|
-
"exports": [
|
|
124
|
+
"exports": [
|
|
125
|
+
"Checkbox",
|
|
126
|
+
"CheckboxGroup"
|
|
127
|
+
],
|
|
92
128
|
"source": "src/components/checkbox/checkbox.tsx",
|
|
93
129
|
"story": "stories/checkbox.stories.tsx",
|
|
94
|
-
"tests": [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
130
|
+
"tests": [
|
|
131
|
+
"tests/checkbox/checkbox.test.tsx"
|
|
132
|
+
],
|
|
133
|
+
"semanticParts": [
|
|
134
|
+
"root",
|
|
135
|
+
"input",
|
|
136
|
+
"box",
|
|
137
|
+
"label",
|
|
138
|
+
"group",
|
|
139
|
+
"option"
|
|
140
|
+
],
|
|
141
|
+
"keywords": [
|
|
142
|
+
"checkbox",
|
|
143
|
+
"boolean",
|
|
144
|
+
"multi select"
|
|
145
|
+
],
|
|
146
|
+
"related": [
|
|
147
|
+
"Radio",
|
|
148
|
+
"Switch"
|
|
149
|
+
],
|
|
98
150
|
"usage": {
|
|
99
151
|
"description": "Use Checkbox for independent choices, or CheckboxGroup when users can select multiple options from a set.",
|
|
100
152
|
"bestPractices": [
|
|
@@ -128,13 +180,28 @@
|
|
|
128
180
|
"displayName": "Collapsible",
|
|
129
181
|
"category": "Data Display",
|
|
130
182
|
"description": "Shows and hides a region of content while keeping disclosure state accessible.",
|
|
131
|
-
"exports": [
|
|
183
|
+
"exports": [
|
|
184
|
+
"Collapsible"
|
|
185
|
+
],
|
|
132
186
|
"source": "src/components/collapsible/collapsible.tsx",
|
|
133
187
|
"story": "stories/collapsible.stories.tsx",
|
|
134
|
-
"tests": [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"
|
|
188
|
+
"tests": [
|
|
189
|
+
"tests/collapsible/collapsible.test.tsx"
|
|
190
|
+
],
|
|
191
|
+
"semanticParts": [
|
|
192
|
+
"root",
|
|
193
|
+
"trigger",
|
|
194
|
+
"content"
|
|
195
|
+
],
|
|
196
|
+
"keywords": [
|
|
197
|
+
"accordion",
|
|
198
|
+
"disclosure",
|
|
199
|
+
"expand"
|
|
200
|
+
],
|
|
201
|
+
"related": [
|
|
202
|
+
"Drawer",
|
|
203
|
+
"Tabs"
|
|
204
|
+
],
|
|
138
205
|
"usage": {
|
|
139
206
|
"description": "Use Collapsible to hide secondary details while preserving a lightweight page layout.",
|
|
140
207
|
"bestPractices": [
|
|
@@ -151,20 +218,38 @@
|
|
|
151
218
|
"displayName": "ContextMenu",
|
|
152
219
|
"category": "Navigation",
|
|
153
220
|
"description": "Displays contextual actions from a right click or long press interaction.",
|
|
154
|
-
"exports": [
|
|
221
|
+
"exports": [
|
|
222
|
+
"ContextMenu"
|
|
223
|
+
],
|
|
155
224
|
"source": "src/components/context-menu/context-menu.tsx",
|
|
156
225
|
"story": "stories/context-menu.stories.tsx",
|
|
157
|
-
"tests": [
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"
|
|
226
|
+
"tests": [
|
|
227
|
+
"tests/context-menu/context-menu.test.tsx"
|
|
228
|
+
],
|
|
229
|
+
"semanticParts": [
|
|
230
|
+
"root",
|
|
231
|
+
"trigger",
|
|
232
|
+
"content",
|
|
233
|
+
"item",
|
|
234
|
+
"separator"
|
|
235
|
+
],
|
|
236
|
+
"keywords": [
|
|
237
|
+
"menu",
|
|
238
|
+
"right click",
|
|
239
|
+
"actions"
|
|
240
|
+
],
|
|
241
|
+
"related": [
|
|
242
|
+
"Dropdown"
|
|
243
|
+
],
|
|
161
244
|
"usage": {
|
|
162
245
|
"description": "Use ContextMenu for secondary actions attached to an object or region.",
|
|
163
246
|
"bestPractices": [
|
|
164
247
|
"Keep items short and action-oriented.",
|
|
165
248
|
"Provide another reachable path for critical actions."
|
|
166
249
|
],
|
|
167
|
-
"avoid": [
|
|
250
|
+
"avoid": [
|
|
251
|
+
"Do not put primary workflows only inside a context menu."
|
|
252
|
+
]
|
|
168
253
|
}
|
|
169
254
|
},
|
|
170
255
|
{
|
|
@@ -172,16 +257,32 @@
|
|
|
172
257
|
"displayName": "DatePicker",
|
|
173
258
|
"category": "Data Entry",
|
|
174
259
|
"description": "Lets users enter or choose a single date, with optional time selection.",
|
|
175
|
-
"exports": [
|
|
260
|
+
"exports": [
|
|
261
|
+
"DatePicker"
|
|
262
|
+
],
|
|
176
263
|
"source": "src/components/date-picker/date-picker.tsx",
|
|
177
264
|
"story": "stories/date-picker.stories.tsx",
|
|
178
265
|
"tests": [
|
|
179
266
|
"tests/date-picker/date-picker.test.tsx",
|
|
180
267
|
"tests/date-picker/use-calendar.test.ts"
|
|
181
268
|
],
|
|
182
|
-
"semanticParts": [
|
|
183
|
-
|
|
184
|
-
|
|
269
|
+
"semanticParts": [
|
|
270
|
+
"root",
|
|
271
|
+
"input",
|
|
272
|
+
"popup",
|
|
273
|
+
"calendar",
|
|
274
|
+
"cell",
|
|
275
|
+
"footer"
|
|
276
|
+
],
|
|
277
|
+
"keywords": [
|
|
278
|
+
"date",
|
|
279
|
+
"calendar",
|
|
280
|
+
"time"
|
|
281
|
+
],
|
|
282
|
+
"related": [
|
|
283
|
+
"RangePicker",
|
|
284
|
+
"Input"
|
|
285
|
+
],
|
|
185
286
|
"usage": {
|
|
186
287
|
"description": "Use DatePicker when free text date input would be error-prone or when users benefit from calendar context.",
|
|
187
288
|
"bestPractices": [
|
|
@@ -198,10 +299,14 @@
|
|
|
198
299
|
"displayName": "Drawer",
|
|
199
300
|
"category": "Feedback",
|
|
200
301
|
"description": "Opens a side panel for related tasks without leaving the current page.",
|
|
201
|
-
"exports": [
|
|
302
|
+
"exports": [
|
|
303
|
+
"Drawer"
|
|
304
|
+
],
|
|
202
305
|
"source": "src/components/drawer/drawer.tsx",
|
|
203
306
|
"story": "stories/drawer.stories.tsx",
|
|
204
|
-
"tests": [
|
|
307
|
+
"tests": [
|
|
308
|
+
"tests/drawer/drawer.test.tsx"
|
|
309
|
+
],
|
|
205
310
|
"semanticParts": [
|
|
206
311
|
"root",
|
|
207
312
|
"overlay",
|
|
@@ -211,15 +316,23 @@
|
|
|
211
316
|
"footer",
|
|
212
317
|
"close"
|
|
213
318
|
],
|
|
214
|
-
"keywords": [
|
|
215
|
-
|
|
319
|
+
"keywords": [
|
|
320
|
+
"panel",
|
|
321
|
+
"overlay",
|
|
322
|
+
"side sheet"
|
|
323
|
+
],
|
|
324
|
+
"related": [
|
|
325
|
+
"Modal"
|
|
326
|
+
],
|
|
216
327
|
"usage": {
|
|
217
328
|
"description": "Use Drawer for inspection, editing, or supporting workflows that should stay connected to the current page.",
|
|
218
329
|
"bestPractices": [
|
|
219
330
|
"Use a clear title and predictable close affordance.",
|
|
220
331
|
"Keep destructive confirmations in a dedicated confirmation step."
|
|
221
332
|
],
|
|
222
|
-
"avoid": [
|
|
333
|
+
"avoid": [
|
|
334
|
+
"Do not stack multiple drawers for a single workflow."
|
|
335
|
+
]
|
|
223
336
|
}
|
|
224
337
|
},
|
|
225
338
|
{
|
|
@@ -227,10 +340,14 @@
|
|
|
227
340
|
"displayName": "Dropdown",
|
|
228
341
|
"category": "Navigation",
|
|
229
342
|
"description": "Opens a menu of actions or navigation choices from a trigger.",
|
|
230
|
-
"exports": [
|
|
343
|
+
"exports": [
|
|
344
|
+
"Dropdown"
|
|
345
|
+
],
|
|
231
346
|
"source": "src/components/dropdown/dropdown.tsx",
|
|
232
347
|
"story": "stories/dropdown.stories.tsx",
|
|
233
|
-
"tests": [
|
|
348
|
+
"tests": [
|
|
349
|
+
"tests/dropdown/dropdown.test.tsx"
|
|
350
|
+
],
|
|
234
351
|
"semanticParts": [
|
|
235
352
|
"root",
|
|
236
353
|
"trigger",
|
|
@@ -239,8 +356,15 @@
|
|
|
239
356
|
"group",
|
|
240
357
|
"divider"
|
|
241
358
|
],
|
|
242
|
-
"keywords": [
|
|
243
|
-
|
|
359
|
+
"keywords": [
|
|
360
|
+
"menu",
|
|
361
|
+
"actions",
|
|
362
|
+
"more"
|
|
363
|
+
],
|
|
364
|
+
"related": [
|
|
365
|
+
"ContextMenu",
|
|
366
|
+
"Select"
|
|
367
|
+
],
|
|
244
368
|
"usage": {
|
|
245
369
|
"description": "Use Dropdown for compact action sets that do not need to stay visible.",
|
|
246
370
|
"bestPractices": [
|
|
@@ -257,13 +381,27 @@
|
|
|
257
381
|
"displayName": "FormActions",
|
|
258
382
|
"category": "Data Entry",
|
|
259
383
|
"description": "Lays out submit, cancel, and secondary actions for forms.",
|
|
260
|
-
"exports": [
|
|
384
|
+
"exports": [
|
|
385
|
+
"FormActions"
|
|
386
|
+
],
|
|
261
387
|
"source": "src/components/form-actions/form-actions.tsx",
|
|
262
388
|
"story": "stories/form.stories.tsx",
|
|
263
|
-
"tests": [
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
"
|
|
389
|
+
"tests": [
|
|
390
|
+
"tests/form-actions/form-actions.test.tsx"
|
|
391
|
+
],
|
|
392
|
+
"semanticParts": [
|
|
393
|
+
"root"
|
|
394
|
+
],
|
|
395
|
+
"keywords": [
|
|
396
|
+
"form",
|
|
397
|
+
"actions",
|
|
398
|
+
"submit"
|
|
399
|
+
],
|
|
400
|
+
"related": [
|
|
401
|
+
"Button",
|
|
402
|
+
"FormField",
|
|
403
|
+
"FormSection"
|
|
404
|
+
],
|
|
267
405
|
"usage": {
|
|
268
406
|
"description": "Use FormActions at the end of a form or section to align the final actions consistently.",
|
|
269
407
|
"bestPractices": [
|
|
@@ -277,13 +415,31 @@
|
|
|
277
415
|
"displayName": "FormField",
|
|
278
416
|
"category": "Data Entry",
|
|
279
417
|
"description": "Associates labels, help text, validation state, and controls.",
|
|
280
|
-
"exports": [
|
|
418
|
+
"exports": [
|
|
419
|
+
"FormField"
|
|
420
|
+
],
|
|
281
421
|
"source": "src/components/form-field/form-field.tsx",
|
|
282
422
|
"story": "stories/form.stories.tsx",
|
|
283
|
-
"tests": [
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
"
|
|
423
|
+
"tests": [
|
|
424
|
+
"tests/form-field/form-field.test.tsx"
|
|
425
|
+
],
|
|
426
|
+
"semanticParts": [
|
|
427
|
+
"root",
|
|
428
|
+
"label",
|
|
429
|
+
"control",
|
|
430
|
+
"description",
|
|
431
|
+
"error"
|
|
432
|
+
],
|
|
433
|
+
"keywords": [
|
|
434
|
+
"form",
|
|
435
|
+
"label",
|
|
436
|
+
"validation"
|
|
437
|
+
],
|
|
438
|
+
"related": [
|
|
439
|
+
"Input",
|
|
440
|
+
"Select",
|
|
441
|
+
"FormSection"
|
|
442
|
+
],
|
|
287
443
|
"usage": {
|
|
288
444
|
"description": "Use FormField to provide accessible labeling and status text around a single control.",
|
|
289
445
|
"bestPractices": [
|
|
@@ -297,12 +453,23 @@
|
|
|
297
453
|
"displayName": "FormLayout",
|
|
298
454
|
"category": "Layout",
|
|
299
455
|
"description": "Arranges form content with consistent label and control alignment.",
|
|
300
|
-
"exports": [
|
|
456
|
+
"exports": [
|
|
457
|
+
"FormLayout"
|
|
458
|
+
],
|
|
301
459
|
"source": "src/layouts/form-layout/form-layout.tsx",
|
|
302
460
|
"story": "stories/form-layout.stories.tsx",
|
|
303
|
-
"tests": [
|
|
304
|
-
|
|
305
|
-
|
|
461
|
+
"tests": [
|
|
462
|
+
"tests/layouts/form-layout/form-layout.test.tsx"
|
|
463
|
+
],
|
|
464
|
+
"keywords": [
|
|
465
|
+
"form",
|
|
466
|
+
"layout",
|
|
467
|
+
"labels"
|
|
468
|
+
],
|
|
469
|
+
"related": [
|
|
470
|
+
"FormField",
|
|
471
|
+
"FormSection"
|
|
472
|
+
],
|
|
306
473
|
"usage": {
|
|
307
474
|
"description": "Use FormLayout to keep dense forms aligned and predictable.",
|
|
308
475
|
"bestPractices": [
|
|
@@ -316,13 +483,30 @@
|
|
|
316
483
|
"displayName": "FormSection",
|
|
317
484
|
"category": "Data Entry",
|
|
318
485
|
"description": "Groups related form fields with a title and optional description.",
|
|
319
|
-
"exports": [
|
|
486
|
+
"exports": [
|
|
487
|
+
"FormSection"
|
|
488
|
+
],
|
|
320
489
|
"source": "src/components/form-section/form-section.tsx",
|
|
321
490
|
"story": "stories/form.stories.tsx",
|
|
322
|
-
"tests": [
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
"
|
|
491
|
+
"tests": [
|
|
492
|
+
"tests/form-section/form-section.test.tsx"
|
|
493
|
+
],
|
|
494
|
+
"semanticParts": [
|
|
495
|
+
"root",
|
|
496
|
+
"header",
|
|
497
|
+
"title",
|
|
498
|
+
"description",
|
|
499
|
+
"content"
|
|
500
|
+
],
|
|
501
|
+
"keywords": [
|
|
502
|
+
"form",
|
|
503
|
+
"section",
|
|
504
|
+
"group"
|
|
505
|
+
],
|
|
506
|
+
"related": [
|
|
507
|
+
"FormField",
|
|
508
|
+
"FormLayout"
|
|
509
|
+
],
|
|
326
510
|
"usage": {
|
|
327
511
|
"description": "Use FormSection to break long forms into scannable groups.",
|
|
328
512
|
"bestPractices": [
|
|
@@ -336,7 +520,11 @@
|
|
|
336
520
|
"displayName": "HeadlessInputNumber",
|
|
337
521
|
"category": "Headless",
|
|
338
522
|
"description": "Headless numeric input primitives and hook for custom number entry experiences.",
|
|
339
|
-
"exports": [
|
|
523
|
+
"exports": [
|
|
524
|
+
"HeadlessInputNumber",
|
|
525
|
+
"NumberInput",
|
|
526
|
+
"useNumberInput"
|
|
527
|
+
],
|
|
340
528
|
"source": "src/number-input/number-input.tsx",
|
|
341
529
|
"story": "stories/headless-input-number.stories.tsx",
|
|
342
530
|
"tests": [
|
|
@@ -345,8 +533,15 @@
|
|
|
345
533
|
"tests/number-input/format.test.ts",
|
|
346
534
|
"tests/number-input/validate.test.ts"
|
|
347
535
|
],
|
|
348
|
-
"keywords": [
|
|
349
|
-
|
|
536
|
+
"keywords": [
|
|
537
|
+
"headless",
|
|
538
|
+
"number",
|
|
539
|
+
"formatting",
|
|
540
|
+
"validation"
|
|
541
|
+
],
|
|
542
|
+
"related": [
|
|
543
|
+
"InputNumber"
|
|
544
|
+
],
|
|
350
545
|
"usage": {
|
|
351
546
|
"description": "Use the headless API when tao-ui styling is not appropriate but number formatting behavior should stay consistent.",
|
|
352
547
|
"bestPractices": [
|
|
@@ -360,13 +555,30 @@
|
|
|
360
555
|
"displayName": "Input",
|
|
361
556
|
"category": "Data Entry",
|
|
362
557
|
"description": "Single-line text input for short freeform values.",
|
|
363
|
-
"exports": [
|
|
558
|
+
"exports": [
|
|
559
|
+
"Input"
|
|
560
|
+
],
|
|
364
561
|
"source": "src/components/input/input.tsx",
|
|
365
562
|
"story": "stories/input.stories.tsx",
|
|
366
|
-
"tests": [
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
"
|
|
563
|
+
"tests": [
|
|
564
|
+
"tests/input/input.test.tsx"
|
|
565
|
+
],
|
|
566
|
+
"semanticParts": [
|
|
567
|
+
"root",
|
|
568
|
+
"input",
|
|
569
|
+
"prefix",
|
|
570
|
+
"suffix",
|
|
571
|
+
"clear"
|
|
572
|
+
],
|
|
573
|
+
"keywords": [
|
|
574
|
+
"text field",
|
|
575
|
+
"input",
|
|
576
|
+
"search"
|
|
577
|
+
],
|
|
578
|
+
"related": [
|
|
579
|
+
"Textarea",
|
|
580
|
+
"FormField"
|
|
581
|
+
],
|
|
370
582
|
"usage": {
|
|
371
583
|
"description": "Use Input for short text values such as names, filters, search terms, and identifiers.",
|
|
372
584
|
"bestPractices": [
|
|
@@ -380,13 +592,30 @@
|
|
|
380
592
|
"displayName": "InputNumber",
|
|
381
593
|
"category": "Data Entry",
|
|
382
594
|
"description": "A styled numeric input built on tao-ui number formatting and validation behavior.",
|
|
383
|
-
"exports": [
|
|
595
|
+
"exports": [
|
|
596
|
+
"InputNumber"
|
|
597
|
+
],
|
|
384
598
|
"source": "src/components/input-number/input-number.tsx",
|
|
385
599
|
"story": "stories/input-number.stories.tsx",
|
|
386
|
-
"tests": [
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
"
|
|
600
|
+
"tests": [
|
|
601
|
+
"tests/input-number/input-number.test.tsx"
|
|
602
|
+
],
|
|
603
|
+
"semanticParts": [
|
|
604
|
+
"root",
|
|
605
|
+
"input",
|
|
606
|
+
"controls",
|
|
607
|
+
"increment",
|
|
608
|
+
"decrement"
|
|
609
|
+
],
|
|
610
|
+
"keywords": [
|
|
611
|
+
"number",
|
|
612
|
+
"numeric",
|
|
613
|
+
"stepper"
|
|
614
|
+
],
|
|
615
|
+
"related": [
|
|
616
|
+
"HeadlessInputNumber",
|
|
617
|
+
"Input"
|
|
618
|
+
],
|
|
390
619
|
"usage": {
|
|
391
620
|
"description": "Use InputNumber for numeric values that need min, max, step, precision, or formatted display.",
|
|
392
621
|
"bestPractices": [
|
|
@@ -403,10 +632,14 @@
|
|
|
403
632
|
"displayName": "Modal",
|
|
404
633
|
"category": "Feedback",
|
|
405
634
|
"description": "Displays a focused dialog for decisions, forms, and interruptive information.",
|
|
406
|
-
"exports": [
|
|
635
|
+
"exports": [
|
|
636
|
+
"Modal"
|
|
637
|
+
],
|
|
407
638
|
"source": "src/components/modal/modal.tsx",
|
|
408
639
|
"story": "stories/modal.stories.tsx",
|
|
409
|
-
"tests": [
|
|
640
|
+
"tests": [
|
|
641
|
+
"tests/modal/modal.test.tsx"
|
|
642
|
+
],
|
|
410
643
|
"semanticParts": [
|
|
411
644
|
"root",
|
|
412
645
|
"overlay",
|
|
@@ -416,15 +649,24 @@
|
|
|
416
649
|
"footer",
|
|
417
650
|
"close"
|
|
418
651
|
],
|
|
419
|
-
"keywords": [
|
|
420
|
-
|
|
652
|
+
"keywords": [
|
|
653
|
+
"dialog",
|
|
654
|
+
"confirm",
|
|
655
|
+
"overlay"
|
|
656
|
+
],
|
|
657
|
+
"related": [
|
|
658
|
+
"Drawer",
|
|
659
|
+
"Button"
|
|
660
|
+
],
|
|
421
661
|
"usage": {
|
|
422
662
|
"description": "Use Modal for focused tasks or decisions. Static helpers such as Modal.confirm mirror common confirmation flows.",
|
|
423
663
|
"bestPractices": [
|
|
424
664
|
"Prefer Modal.useModal inside React trees so dialogs inherit TaoProvider context.",
|
|
425
665
|
"Keep modal content short and task-oriented."
|
|
426
666
|
],
|
|
427
|
-
"avoid": [
|
|
667
|
+
"avoid": [
|
|
668
|
+
"Do not use nested modals for multi-step workflows."
|
|
669
|
+
]
|
|
428
670
|
}
|
|
429
671
|
},
|
|
430
672
|
{
|
|
@@ -432,13 +674,29 @@
|
|
|
432
674
|
"displayName": "Pagination",
|
|
433
675
|
"category": "Navigation",
|
|
434
676
|
"description": "Moves through paged data with current page and page-size controls.",
|
|
435
|
-
"exports": [
|
|
677
|
+
"exports": [
|
|
678
|
+
"Pagination"
|
|
679
|
+
],
|
|
436
680
|
"source": "src/components/pagination/pagination.tsx",
|
|
437
681
|
"story": "stories/pagination.stories.tsx",
|
|
438
|
-
"tests": [
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
"
|
|
682
|
+
"tests": [
|
|
683
|
+
"tests/pagination/pagination.test.tsx"
|
|
684
|
+
],
|
|
685
|
+
"semanticParts": [
|
|
686
|
+
"root",
|
|
687
|
+
"item",
|
|
688
|
+
"prev",
|
|
689
|
+
"next",
|
|
690
|
+
"sizeChanger"
|
|
691
|
+
],
|
|
692
|
+
"keywords": [
|
|
693
|
+
"pages",
|
|
694
|
+
"table",
|
|
695
|
+
"navigation"
|
|
696
|
+
],
|
|
697
|
+
"related": [
|
|
698
|
+
"Table"
|
|
699
|
+
],
|
|
442
700
|
"usage": {
|
|
443
701
|
"description": "Use Pagination when a collection is split into pages rather than infinitely loaded.",
|
|
444
702
|
"bestPractices": [
|
|
@@ -452,10 +710,15 @@
|
|
|
452
710
|
"displayName": "Radio",
|
|
453
711
|
"category": "Data Entry",
|
|
454
712
|
"description": "Selects exactly one option from a mutually exclusive set.",
|
|
455
|
-
"exports": [
|
|
713
|
+
"exports": [
|
|
714
|
+
"Radio",
|
|
715
|
+
"RadioGroup"
|
|
716
|
+
],
|
|
456
717
|
"source": "src/components/radio/radio.tsx",
|
|
457
718
|
"story": "stories/radio.stories.tsx",
|
|
458
|
-
"tests": [
|
|
719
|
+
"tests": [
|
|
720
|
+
"tests/radio/radio.test.tsx"
|
|
721
|
+
],
|
|
459
722
|
"semanticParts": [
|
|
460
723
|
"root",
|
|
461
724
|
"input",
|
|
@@ -464,8 +727,15 @@
|
|
|
464
727
|
"group",
|
|
465
728
|
"option"
|
|
466
729
|
],
|
|
467
|
-
"keywords": [
|
|
468
|
-
|
|
730
|
+
"keywords": [
|
|
731
|
+
"radio",
|
|
732
|
+
"single choice",
|
|
733
|
+
"selection"
|
|
734
|
+
],
|
|
735
|
+
"related": [
|
|
736
|
+
"Checkbox",
|
|
737
|
+
"SegmentedControl"
|
|
738
|
+
],
|
|
469
739
|
"usage": {
|
|
470
740
|
"description": "Use RadioGroup when every option is visible and only one can be selected.",
|
|
471
741
|
"bestPractices": [
|
|
@@ -482,16 +752,31 @@
|
|
|
482
752
|
"displayName": "RangePicker",
|
|
483
753
|
"category": "Data Entry",
|
|
484
754
|
"description": "Lets users select a start and end date as one range value.",
|
|
485
|
-
"exports": [
|
|
755
|
+
"exports": [
|
|
756
|
+
"RangePicker"
|
|
757
|
+
],
|
|
486
758
|
"source": "src/components/date-picker/range-picker.tsx",
|
|
487
759
|
"story": "stories/date-picker.stories.tsx",
|
|
488
760
|
"tests": [
|
|
489
761
|
"tests/date-picker/range-picker.test.tsx",
|
|
490
762
|
"tests/date-picker/use-calendar.test.ts"
|
|
491
763
|
],
|
|
492
|
-
"semanticParts": [
|
|
493
|
-
|
|
494
|
-
|
|
764
|
+
"semanticParts": [
|
|
765
|
+
"root",
|
|
766
|
+
"input",
|
|
767
|
+
"popup",
|
|
768
|
+
"calendar",
|
|
769
|
+
"cell",
|
|
770
|
+
"footer"
|
|
771
|
+
],
|
|
772
|
+
"keywords": [
|
|
773
|
+
"date range",
|
|
774
|
+
"calendar",
|
|
775
|
+
"time range"
|
|
776
|
+
],
|
|
777
|
+
"related": [
|
|
778
|
+
"DatePicker"
|
|
779
|
+
],
|
|
495
780
|
"usage": {
|
|
496
781
|
"description": "Use RangePicker for reporting windows, booking windows, and filters with start/end dates.",
|
|
497
782
|
"bestPractices": [
|
|
@@ -505,13 +790,28 @@
|
|
|
505
790
|
"displayName": "ScrollArea",
|
|
506
791
|
"category": "Data Display",
|
|
507
792
|
"description": "Provides a styled scroll container for overflow content.",
|
|
508
|
-
"exports": [
|
|
793
|
+
"exports": [
|
|
794
|
+
"ScrollArea"
|
|
795
|
+
],
|
|
509
796
|
"source": "src/components/scroll-area/scroll-area.tsx",
|
|
510
797
|
"story": "stories/scroll-area.stories.tsx",
|
|
511
|
-
"tests": [
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
"
|
|
798
|
+
"tests": [
|
|
799
|
+
"tests/scroll-area/scroll-area.test.tsx"
|
|
800
|
+
],
|
|
801
|
+
"semanticParts": [
|
|
802
|
+
"root",
|
|
803
|
+
"viewport",
|
|
804
|
+
"scrollbar",
|
|
805
|
+
"thumb"
|
|
806
|
+
],
|
|
807
|
+
"keywords": [
|
|
808
|
+
"scroll",
|
|
809
|
+
"overflow",
|
|
810
|
+
"viewport"
|
|
811
|
+
],
|
|
812
|
+
"related": [
|
|
813
|
+
"Table"
|
|
814
|
+
],
|
|
515
815
|
"usage": {
|
|
516
816
|
"description": "Use ScrollArea when a fixed region needs overflow behavior without changing page scroll.",
|
|
517
817
|
"bestPractices": [
|
|
@@ -525,20 +825,87 @@
|
|
|
525
825
|
"displayName": "Select",
|
|
526
826
|
"category": "Data Entry",
|
|
527
827
|
"description": "Chooses one value from a compact list of options.",
|
|
528
|
-
"exports": [
|
|
828
|
+
"exports": [
|
|
829
|
+
"Select",
|
|
830
|
+
"ChevronsUpDownIcon"
|
|
831
|
+
],
|
|
529
832
|
"source": "src/components/select/select.tsx",
|
|
530
833
|
"story": "stories/select.stories.tsx",
|
|
531
|
-
"tests": [
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
"
|
|
834
|
+
"tests": [
|
|
835
|
+
"tests/select/select.test.tsx"
|
|
836
|
+
],
|
|
837
|
+
"semanticParts": [
|
|
838
|
+
"root",
|
|
839
|
+
"trigger",
|
|
840
|
+
"value",
|
|
841
|
+
"content",
|
|
842
|
+
"item",
|
|
843
|
+
"empty"
|
|
844
|
+
],
|
|
845
|
+
"keywords": [
|
|
846
|
+
"select",
|
|
847
|
+
"combobox",
|
|
848
|
+
"options"
|
|
849
|
+
],
|
|
850
|
+
"related": [
|
|
851
|
+
"Dropdown",
|
|
852
|
+
"Radio"
|
|
853
|
+
],
|
|
535
854
|
"usage": {
|
|
536
855
|
"description": "Use Select when choices are known but too numerous or secondary to show as radios.",
|
|
537
856
|
"bestPractices": [
|
|
538
857
|
"Use RadioGroup when there are only a few important choices.",
|
|
539
858
|
"Keep option labels stable and easy to scan."
|
|
540
859
|
],
|
|
541
|
-
"avoid": [
|
|
860
|
+
"avoid": [
|
|
861
|
+
"Do not use Select for arbitrary text entry."
|
|
862
|
+
]
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "sonner",
|
|
867
|
+
"displayName": "Sonner",
|
|
868
|
+
"category": "Feedback",
|
|
869
|
+
"description": "Displays temporary toast notifications with optional actions and provider-aware theming.",
|
|
870
|
+
"exports": [
|
|
871
|
+
"Sonner",
|
|
872
|
+
"toast"
|
|
873
|
+
],
|
|
874
|
+
"source": "src/components/sonner/sonner.tsx",
|
|
875
|
+
"story": "stories/sonner.stories.tsx",
|
|
876
|
+
"tests": [
|
|
877
|
+
"tests/sonner/sonner.test.tsx"
|
|
878
|
+
],
|
|
879
|
+
"semanticParts": [
|
|
880
|
+
"viewport",
|
|
881
|
+
"toast",
|
|
882
|
+
"content",
|
|
883
|
+
"title",
|
|
884
|
+
"description",
|
|
885
|
+
"actions",
|
|
886
|
+
"action",
|
|
887
|
+
"cancel",
|
|
888
|
+
"close"
|
|
889
|
+
],
|
|
890
|
+
"keywords": [
|
|
891
|
+
"toast",
|
|
892
|
+
"notification",
|
|
893
|
+
"sonner"
|
|
894
|
+
],
|
|
895
|
+
"related": [
|
|
896
|
+
"Modal",
|
|
897
|
+
"Drawer",
|
|
898
|
+
"Button"
|
|
899
|
+
],
|
|
900
|
+
"usage": {
|
|
901
|
+
"description": "Mount one Sonner near app root, then call toast() imperatively from event handlers. Supports toast.loading(), toast.promise(), and toast.custom() for richer async and custom notification flows.",
|
|
902
|
+
"bestPractices": [
|
|
903
|
+
"Prefer short, status-oriented messages with one primary action at most.",
|
|
904
|
+
"Enable richColors when semantic status color should be visible."
|
|
905
|
+
],
|
|
906
|
+
"avoid": [
|
|
907
|
+
"Do not use toast notifications for blocking confirmations."
|
|
908
|
+
]
|
|
542
909
|
}
|
|
543
910
|
},
|
|
544
911
|
{
|
|
@@ -546,20 +913,34 @@
|
|
|
546
913
|
"displayName": "Spinner",
|
|
547
914
|
"category": "Feedback",
|
|
548
915
|
"description": "Indicates indeterminate loading activity.",
|
|
549
|
-
"exports": [
|
|
916
|
+
"exports": [
|
|
917
|
+
"Spinner"
|
|
918
|
+
],
|
|
550
919
|
"source": "src/components/spinner/spinner.tsx",
|
|
551
920
|
"story": "stories/spinner.stories.tsx",
|
|
552
|
-
"tests": [
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
"
|
|
921
|
+
"tests": [
|
|
922
|
+
"tests/spinner/spinner.test.tsx"
|
|
923
|
+
],
|
|
924
|
+
"semanticParts": [
|
|
925
|
+
"root"
|
|
926
|
+
],
|
|
927
|
+
"keywords": [
|
|
928
|
+
"loading",
|
|
929
|
+
"progress",
|
|
930
|
+
"busy"
|
|
931
|
+
],
|
|
932
|
+
"related": [
|
|
933
|
+
"Button"
|
|
934
|
+
],
|
|
556
935
|
"usage": {
|
|
557
936
|
"description": "Use Spinner for short indeterminate waits when progress cannot be measured.",
|
|
558
937
|
"bestPractices": [
|
|
559
938
|
"Prefer inline placement near the content that is loading.",
|
|
560
939
|
"Use aria labels for standalone spinners."
|
|
561
940
|
],
|
|
562
|
-
"avoid": [
|
|
941
|
+
"avoid": [
|
|
942
|
+
"Do not use Spinner for determinate progress."
|
|
943
|
+
]
|
|
563
944
|
}
|
|
564
945
|
},
|
|
565
946
|
{
|
|
@@ -567,13 +948,28 @@
|
|
|
567
948
|
"displayName": "Splitter",
|
|
568
949
|
"category": "Layout",
|
|
569
950
|
"description": "Creates resizable panes separated by draggable handles.",
|
|
570
|
-
"exports": [
|
|
951
|
+
"exports": [
|
|
952
|
+
"Splitter"
|
|
953
|
+
],
|
|
571
954
|
"source": "src/components/splitter/splitter.tsx",
|
|
572
955
|
"story": "stories/splitter.stories.tsx",
|
|
573
|
-
"tests": [
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
"
|
|
956
|
+
"tests": [
|
|
957
|
+
"tests/splitter/splitter.test.tsx"
|
|
958
|
+
],
|
|
959
|
+
"semanticParts": [
|
|
960
|
+
"root",
|
|
961
|
+
"panel",
|
|
962
|
+
"handle"
|
|
963
|
+
],
|
|
964
|
+
"keywords": [
|
|
965
|
+
"resizable",
|
|
966
|
+
"panes",
|
|
967
|
+
"layout"
|
|
968
|
+
],
|
|
969
|
+
"related": [
|
|
970
|
+
"Stack",
|
|
971
|
+
"FormLayout"
|
|
972
|
+
],
|
|
577
973
|
"usage": {
|
|
578
974
|
"description": "Use Splitter for work surfaces where users need to allocate space between adjacent panes.",
|
|
579
975
|
"bestPractices": [
|
|
@@ -587,12 +983,23 @@
|
|
|
587
983
|
"displayName": "Stack",
|
|
588
984
|
"category": "Layout",
|
|
589
985
|
"description": "Composes children in a flex row or column with consistent spacing.",
|
|
590
|
-
"exports": [
|
|
986
|
+
"exports": [
|
|
987
|
+
"Stack"
|
|
988
|
+
],
|
|
591
989
|
"source": "src/layouts/stack/stack.tsx",
|
|
592
990
|
"story": "stories/stack.stories.tsx",
|
|
593
|
-
"tests": [
|
|
594
|
-
|
|
595
|
-
|
|
991
|
+
"tests": [
|
|
992
|
+
"tests/layouts/stack/stack.test.tsx"
|
|
993
|
+
],
|
|
994
|
+
"keywords": [
|
|
995
|
+
"layout",
|
|
996
|
+
"flex",
|
|
997
|
+
"spacing"
|
|
998
|
+
],
|
|
999
|
+
"related": [
|
|
1000
|
+
"Splitter",
|
|
1001
|
+
"FormLayout"
|
|
1002
|
+
],
|
|
596
1003
|
"usage": {
|
|
597
1004
|
"description": "Use Stack for simple one-dimensional layout and spacing.",
|
|
598
1005
|
"bestPractices": [
|
|
@@ -606,13 +1013,27 @@
|
|
|
606
1013
|
"displayName": "Switch",
|
|
607
1014
|
"category": "Data Entry",
|
|
608
1015
|
"description": "Toggles a setting on or off with immediate effect.",
|
|
609
|
-
"exports": [
|
|
1016
|
+
"exports": [
|
|
1017
|
+
"Switch"
|
|
1018
|
+
],
|
|
610
1019
|
"source": "src/components/switch/switch.tsx",
|
|
611
1020
|
"story": "stories/switch.stories.tsx",
|
|
612
|
-
"tests": [
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
"
|
|
1021
|
+
"tests": [
|
|
1022
|
+
"tests/switch/switch.test.tsx"
|
|
1023
|
+
],
|
|
1024
|
+
"semanticParts": [
|
|
1025
|
+
"root",
|
|
1026
|
+
"thumb",
|
|
1027
|
+
"label"
|
|
1028
|
+
],
|
|
1029
|
+
"keywords": [
|
|
1030
|
+
"toggle",
|
|
1031
|
+
"setting",
|
|
1032
|
+
"boolean"
|
|
1033
|
+
],
|
|
1034
|
+
"related": [
|
|
1035
|
+
"Checkbox"
|
|
1036
|
+
],
|
|
616
1037
|
"usage": {
|
|
617
1038
|
"description": "Use Switch for settings that take effect immediately.",
|
|
618
1039
|
"bestPractices": [
|
|
@@ -626,10 +1047,14 @@
|
|
|
626
1047
|
"displayName": "Table",
|
|
627
1048
|
"category": "Data Display",
|
|
628
1049
|
"description": "Displays structured row and column data with selection, sorting, filtering, and pagination hooks.",
|
|
629
|
-
"exports": [
|
|
1050
|
+
"exports": [
|
|
1051
|
+
"Table"
|
|
1052
|
+
],
|
|
630
1053
|
"source": "src/components/table/table.tsx",
|
|
631
1054
|
"story": "stories/table.stories.tsx",
|
|
632
|
-
"tests": [
|
|
1055
|
+
"tests": [
|
|
1056
|
+
"tests/table/table.test.tsx"
|
|
1057
|
+
],
|
|
633
1058
|
"semanticParts": [
|
|
634
1059
|
"root",
|
|
635
1060
|
"table",
|
|
@@ -640,8 +1065,16 @@
|
|
|
640
1065
|
"cell",
|
|
641
1066
|
"pagination"
|
|
642
1067
|
],
|
|
643
|
-
"keywords": [
|
|
644
|
-
|
|
1068
|
+
"keywords": [
|
|
1069
|
+
"data grid",
|
|
1070
|
+
"rows",
|
|
1071
|
+
"columns",
|
|
1072
|
+
"sorting"
|
|
1073
|
+
],
|
|
1074
|
+
"related": [
|
|
1075
|
+
"Pagination",
|
|
1076
|
+
"ScrollArea"
|
|
1077
|
+
],
|
|
645
1078
|
"usage": {
|
|
646
1079
|
"description": "Use Table for dense, comparable records that benefit from aligned columns.",
|
|
647
1080
|
"bestPractices": [
|
|
@@ -659,20 +1092,37 @@
|
|
|
659
1092
|
"displayName": "Tabs",
|
|
660
1093
|
"category": "Navigation",
|
|
661
1094
|
"description": "Switches between peer panels within the same page context.",
|
|
662
|
-
"exports": [
|
|
1095
|
+
"exports": [
|
|
1096
|
+
"Tabs"
|
|
1097
|
+
],
|
|
663
1098
|
"source": "src/components/tabs/tabs.tsx",
|
|
664
1099
|
"story": "stories/tabs.stories.tsx",
|
|
665
|
-
"tests": [
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
"
|
|
1100
|
+
"tests": [
|
|
1101
|
+
"tests/tabs/tabs.test.tsx"
|
|
1102
|
+
],
|
|
1103
|
+
"semanticParts": [
|
|
1104
|
+
"root",
|
|
1105
|
+
"list",
|
|
1106
|
+
"tab",
|
|
1107
|
+
"panel"
|
|
1108
|
+
],
|
|
1109
|
+
"keywords": [
|
|
1110
|
+
"tabs",
|
|
1111
|
+
"sections",
|
|
1112
|
+
"navigation"
|
|
1113
|
+
],
|
|
1114
|
+
"related": [
|
|
1115
|
+
"Breadcrumb"
|
|
1116
|
+
],
|
|
669
1117
|
"usage": {
|
|
670
1118
|
"description": "Use Tabs to separate peer views without navigating away from the current task.",
|
|
671
1119
|
"bestPractices": [
|
|
672
1120
|
"Use short tab labels.",
|
|
673
1121
|
"Keep tab panels at comparable hierarchy."
|
|
674
1122
|
],
|
|
675
|
-
"avoid": [
|
|
1123
|
+
"avoid": [
|
|
1124
|
+
"Do not use Tabs for sequential steps."
|
|
1125
|
+
]
|
|
676
1126
|
}
|
|
677
1127
|
},
|
|
678
1128
|
{
|
|
@@ -680,20 +1130,39 @@
|
|
|
680
1130
|
"displayName": "Tag",
|
|
681
1131
|
"category": "Data Display",
|
|
682
1132
|
"description": "Displays compact labels, statuses, categories, or checkable chips.",
|
|
683
|
-
"exports": [
|
|
1133
|
+
"exports": [
|
|
1134
|
+
"Tag",
|
|
1135
|
+
"CheckableTag"
|
|
1136
|
+
],
|
|
684
1137
|
"source": "src/components/tag/tag.tsx",
|
|
685
1138
|
"story": "stories/tag.stories.tsx",
|
|
686
|
-
"tests": [
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
"
|
|
1139
|
+
"tests": [
|
|
1140
|
+
"tests/tag/tag.test.tsx"
|
|
1141
|
+
],
|
|
1142
|
+
"semanticParts": [
|
|
1143
|
+
"root",
|
|
1144
|
+
"icon",
|
|
1145
|
+
"close"
|
|
1146
|
+
],
|
|
1147
|
+
"keywords": [
|
|
1148
|
+
"badge",
|
|
1149
|
+
"chip",
|
|
1150
|
+
"status",
|
|
1151
|
+
"label"
|
|
1152
|
+
],
|
|
1153
|
+
"related": [
|
|
1154
|
+
"Checkbox",
|
|
1155
|
+
"Table"
|
|
1156
|
+
],
|
|
690
1157
|
"usage": {
|
|
691
1158
|
"description": "Use Tag for lightweight metadata or status markers. Use CheckableTag for compact filter choices.",
|
|
692
1159
|
"bestPractices": [
|
|
693
1160
|
"Use semantic colors consistently.",
|
|
694
1161
|
"Keep tag text short."
|
|
695
1162
|
],
|
|
696
|
-
"avoid": [
|
|
1163
|
+
"avoid": [
|
|
1164
|
+
"Do not encode critical state by color alone."
|
|
1165
|
+
]
|
|
697
1166
|
}
|
|
698
1167
|
},
|
|
699
1168
|
{
|
|
@@ -701,12 +1170,27 @@
|
|
|
701
1170
|
"displayName": "TaoProvider",
|
|
702
1171
|
"category": "Config",
|
|
703
1172
|
"description": "Provides global component defaults, portal scoping, and theme seed token overrides.",
|
|
704
|
-
"exports": [
|
|
1173
|
+
"exports": [
|
|
1174
|
+
"TaoProvider",
|
|
1175
|
+
"TaoPortalScope"
|
|
1176
|
+
],
|
|
705
1177
|
"source": "src/provider/tao-provider.tsx",
|
|
706
1178
|
"story": "stories/provider.stories.tsx",
|
|
707
|
-
"tests": [
|
|
708
|
-
|
|
709
|
-
|
|
1179
|
+
"tests": [
|
|
1180
|
+
"tests/provider/tao-provider.test.tsx"
|
|
1181
|
+
],
|
|
1182
|
+
"keywords": [
|
|
1183
|
+
"provider",
|
|
1184
|
+
"theme",
|
|
1185
|
+
"tokens",
|
|
1186
|
+
"size",
|
|
1187
|
+
"disabled"
|
|
1188
|
+
],
|
|
1189
|
+
"related": [
|
|
1190
|
+
"Button",
|
|
1191
|
+
"Input",
|
|
1192
|
+
"tokenVar"
|
|
1193
|
+
],
|
|
710
1194
|
"usage": {
|
|
711
1195
|
"description": "Wrap an app or subtree with TaoProvider to set size, disabled, variant, and theme defaults.",
|
|
712
1196
|
"bestPractices": [
|
|
@@ -745,13 +1229,27 @@
|
|
|
745
1229
|
"displayName": "Textarea",
|
|
746
1230
|
"category": "Data Entry",
|
|
747
1231
|
"description": "Multi-line text input with optional auto sizing.",
|
|
748
|
-
"exports": [
|
|
1232
|
+
"exports": [
|
|
1233
|
+
"Textarea"
|
|
1234
|
+
],
|
|
749
1235
|
"source": "src/components/textarea/textarea.tsx",
|
|
750
1236
|
"story": "stories/textarea.stories.tsx",
|
|
751
|
-
"tests": [
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
"
|
|
1237
|
+
"tests": [
|
|
1238
|
+
"tests/textarea/textarea.test.tsx"
|
|
1239
|
+
],
|
|
1240
|
+
"semanticParts": [
|
|
1241
|
+
"root",
|
|
1242
|
+
"textarea"
|
|
1243
|
+
],
|
|
1244
|
+
"keywords": [
|
|
1245
|
+
"textarea",
|
|
1246
|
+
"multiline",
|
|
1247
|
+
"input"
|
|
1248
|
+
],
|
|
1249
|
+
"related": [
|
|
1250
|
+
"Input",
|
|
1251
|
+
"FormField"
|
|
1252
|
+
],
|
|
755
1253
|
"usage": {
|
|
756
1254
|
"description": "Use Textarea for longer freeform content such as descriptions, notes, and comments.",
|
|
757
1255
|
"bestPractices": [
|