@rockshin/tao-ui 0.0.40 → 0.0.42
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 +33 -7
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/component-manifest.json +1321 -10
- package/dist/components/affix/affix.css +11 -0
- package/dist/components/affix/affix.d.ts +21 -0
- package/dist/components/affix/affix.js +140 -0
- package/dist/components/app/app-modals.d.ts +2 -0
- package/dist/components/app/app-modals.js +266 -0
- package/dist/components/app/app-notices.d.ts +6 -0
- package/dist/components/app/app-notices.js +334 -0
- package/dist/components/app/app-types.d.ts +154 -0
- package/dist/components/app/app-types.js +0 -0
- package/dist/components/app/app.css +221 -0
- package/dist/components/app/app.d.ts +7 -0
- package/dist/components/app/app.js +69 -0
- package/dist/components/auto-complete/auto-complete.css +35 -0
- package/dist/components/auto-complete/auto-complete.d.ts +47 -0
- package/dist/components/auto-complete/auto-complete.js +106 -0
- package/dist/components/avatar/avatar.css +95 -0
- package/dist/components/avatar/avatar.d.ts +50 -0
- package/dist/components/avatar/avatar.js +159 -0
- package/dist/components/badge/badge.css +165 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.js +412 -0
- package/dist/components/border-beam/border-beam.css +35 -0
- package/dist/components/border-beam/border-beam.d.ts +27 -0
- package/dist/components/border-beam/border-beam.js +215 -0
- package/dist/components/button/button.css +7 -0
- package/dist/components/calendar/calendar.css +176 -0
- package/dist/components/calendar/calendar.d.ts +56 -0
- package/dist/components/calendar/calendar.js +175 -0
- package/dist/components/card/card-tabs.d.ts +43 -0
- package/dist/components/card/card-tabs.js +455 -0
- package/dist/components/card/card.css +401 -0
- package/dist/components/card/card.d.ts +74 -0
- package/dist/components/card/card.js +362 -0
- package/dist/components/carousel/carousel.css +231 -0
- package/dist/components/carousel/carousel.d.ts +35 -0
- package/dist/components/carousel/carousel.js +193 -0
- package/dist/components/cascader/cascader.css +123 -0
- package/dist/components/cascader/cascader.d.ts +58 -0
- package/dist/components/cascader/cascader.js +132 -0
- package/dist/components/checkbox/checkbox.css +7 -0
- package/dist/components/color-picker/color-picker-types.d.ts +78 -0
- package/dist/components/color-picker/color-picker-types.js +0 -0
- package/dist/components/color-picker/color-picker.css +299 -0
- package/dist/components/color-picker/color-picker.d.ts +5 -0
- package/dist/components/color-picker/color-picker.js +974 -0
- package/dist/components/color-picker/color.d.ts +35 -0
- package/dist/components/color-picker/color.js +65 -0
- package/dist/components/date-picker/calendar/calendar-grid.js +4 -11
- package/dist/components/date-picker/calendar/calendar-header.js +76 -69
- package/dist/components/date-picker/calendar/month-grid.js +20 -31
- package/dist/components/date-picker/calendar/time-panel.js +46 -41
- package/dist/components/date-picker/date-picker.css +4 -0
- package/dist/components/date-picker/date-picker.js +4 -4
- package/dist/components/date-picker/range-picker.js +14 -13
- package/dist/components/descriptions/descriptions.css +109 -0
- package/dist/components/descriptions/descriptions.d.ts +49 -0
- package/dist/components/descriptions/descriptions.js +189 -0
- package/dist/components/divider/divider.css +71 -0
- package/dist/components/divider/divider.d.ts +31 -0
- package/dist/components/divider/divider.js +83 -0
- package/dist/components/drawer/drawer.js +199 -184
- package/dist/components/empty/empty.css +35 -0
- package/dist/components/empty/empty.d.ts +25 -0
- package/dist/components/empty/empty.js +278 -0
- package/dist/components/float-button/float-button.css +146 -0
- package/dist/components/float-button/float-button.d.ts +67 -0
- package/dist/components/float-button/float-button.js +347 -0
- package/dist/components/form/form-item.d.ts +1 -1
- package/dist/components/form/form.js +3 -1
- package/dist/components/image/image-icons.d.ts +16 -0
- package/dist/components/image/image-icons.js +63 -0
- package/dist/components/image/image.css +253 -0
- package/dist/components/image/image.d.ts +75 -0
- package/dist/components/image/image.js +818 -0
- package/dist/components/input/input.css +8 -6
- package/dist/components/list/list-pagination.css +127 -0
- package/dist/components/list/list-pagination.d.ts +38 -0
- package/dist/components/list/list-pagination.js +321 -0
- package/dist/components/list/list.css +225 -0
- package/dist/components/list/list.d.ts +77 -0
- package/dist/components/list/list.js +660 -0
- package/dist/components/listy/listy.css +55 -0
- package/dist/components/listy/listy.d.ts +20 -0
- package/dist/components/listy/listy.js +158 -0
- package/dist/components/masonry/masonry.css +13 -0
- package/dist/components/masonry/masonry.d.ts +39 -0
- package/dist/components/masonry/masonry.js +287 -0
- package/dist/components/mentions/mentions.css +172 -0
- package/dist/components/mentions/mentions.d.ts +48 -0
- package/dist/components/mentions/mentions.js +115 -0
- package/dist/components/modal/modal.d.ts +30 -4
- package/dist/components/modal/modal.js +534 -241
- package/dist/components/pagination/pagination.css +10 -0
- package/dist/components/progress/progress.css +187 -0
- package/dist/components/progress/progress.d.ts +66 -0
- package/dist/components/progress/progress.js +567 -0
- package/dist/components/qr-code/qr-code.css +39 -0
- package/dist/components/qr-code/qr-code.d.ts +43 -0
- package/dist/components/qr-code/qr-code.js +286 -0
- package/dist/components/radio/radio.css +7 -0
- package/dist/components/rate/rate.css +97 -0
- package/dist/components/rate/rate.d.ts +17 -0
- package/dist/components/rate/rate.js +172 -0
- package/dist/components/result/result.css +69 -0
- package/dist/components/result/result.d.ts +33 -0
- package/dist/components/result/result.js +320 -0
- package/dist/components/segmented/segmented.css +134 -0
- package/dist/components/segmented/segmented.d.ts +40 -0
- package/dist/components/segmented/segmented.js +169 -0
- package/dist/components/select/mobile-select.d.ts +10 -4
- package/dist/components/select/mobile-select.js +166 -58
- package/dist/components/select/select-tags.js +178 -130
- package/dist/components/select/select-types.d.ts +51 -0
- package/dist/components/select/select.css +70 -10
- package/dist/components/select/select.js +30 -16
- package/dist/components/select/use-select-selection.js +44 -43
- package/dist/components/skeleton/skeleton.css +129 -0
- package/dist/components/skeleton/skeleton.d.ts +78 -0
- package/dist/components/skeleton/skeleton.js +457 -0
- package/dist/components/slider/slider.css +191 -0
- package/dist/components/slider/slider.d.ts +47 -0
- package/dist/components/slider/slider.js +310 -0
- package/dist/components/statistic/statistic.css +34 -0
- package/dist/components/statistic/statistic.d.ts +46 -0
- package/dist/components/statistic/statistic.js +491 -0
- package/dist/components/switch/switch-touch.css +20 -0
- package/dist/components/switch/switch.css +24 -13
- package/dist/components/switch/switch.js +8 -5
- package/dist/components/textarea/textarea.css +1 -1
- package/dist/components/time-picker/time-picker.css +205 -0
- package/dist/components/time-picker/time-picker.d.ts +63 -0
- package/dist/components/time-picker/time-picker.js +356 -0
- package/dist/components/timeline/timeline.css +259 -0
- package/dist/components/timeline/timeline.d.ts +50 -0
- package/dist/components/timeline/timeline.js +140 -0
- package/dist/components/tour/tour.css +151 -0
- package/dist/components/tour/tour.d.ts +45 -0
- package/dist/components/tour/tour.js +575 -0
- package/dist/components/transfer/transfer-list.d.ts +2 -0
- package/dist/components/transfer/transfer-list.js +513 -0
- package/dist/components/transfer/transfer-parts.d.ts +3 -0
- package/dist/components/transfer/transfer-parts.js +163 -0
- package/dist/components/transfer/transfer-types.d.ts +163 -0
- package/dist/components/transfer/transfer-types.js +0 -0
- package/dist/components/transfer/transfer.css +226 -0
- package/dist/components/transfer/transfer.d.ts +13 -0
- package/dist/components/transfer/transfer.js +204 -0
- package/dist/components/tree/tree.css +250 -0
- package/dist/components/tree/tree.d.ts +46 -0
- package/dist/components/tree/tree.js +389 -0
- package/dist/components/tree-select/select-engine.css +231 -0
- package/dist/components/tree-select/select-engine.d.ts +20 -0
- package/dist/components/tree-select/select-engine.js +46 -0
- package/dist/components/tree-select/tree-select.css +25 -0
- package/dist/components/tree-select/tree-select.d.ts +50 -0
- package/dist/components/tree-select/tree-select.js +131 -0
- package/dist/components/upload/upload-types.d.ts +135 -0
- package/dist/components/upload/upload-types.js +0 -0
- package/dist/components/upload/upload.css +177 -0
- package/dist/components/upload/upload.d.ts +12 -0
- package/dist/components/upload/upload.js +455 -0
- package/dist/components/watermark/watermark-context.d.ts +7 -0
- package/dist/components/watermark/watermark-context.js +20 -0
- package/dist/components/watermark/watermark.css +10 -0
- package/dist/components/watermark/watermark.d.ts +38 -0
- package/dist/components/watermark/watermark.js +436 -0
- package/dist/docs/component-docs.d.ts +35 -29
- package/dist/docs/component-docs.js +73 -1
- package/dist/docs/components/affix.doc.d.ts +14 -0
- package/dist/docs/components/affix.doc.js +22 -0
- package/dist/docs/components/app.doc.d.ts +18 -0
- package/dist/docs/components/app.doc.js +42 -0
- package/dist/docs/components/auto-complete.doc.d.ts +18 -0
- package/dist/docs/components/auto-complete.doc.js +49 -0
- package/dist/docs/components/avatar.doc.d.ts +17 -0
- package/dist/docs/components/avatar.doc.js +36 -0
- package/dist/docs/components/badge.doc.d.ts +17 -0
- package/dist/docs/components/badge.doc.js +34 -0
- package/dist/docs/components/border-beam.doc.d.ts +14 -0
- package/dist/docs/components/border-beam.doc.js +22 -0
- package/dist/docs/components/calendar.doc.d.ts +18 -0
- package/dist/docs/components/calendar.doc.js +45 -0
- package/dist/docs/components/card.doc.d.ts +17 -0
- package/dist/docs/components/card.doc.js +39 -0
- package/dist/docs/components/carousel.doc.d.ts +15 -0
- package/dist/docs/components/carousel.doc.js +26 -0
- package/dist/docs/components/cascader.doc.d.ts +18 -0
- package/dist/docs/components/cascader.doc.js +54 -0
- package/dist/docs/components/color-picker.doc.d.ts +18 -0
- package/dist/docs/components/color-picker.doc.js +46 -0
- package/dist/docs/components/descriptions.doc.d.ts +14 -0
- package/dist/docs/components/descriptions.doc.js +26 -0
- package/dist/docs/components/divider.doc.d.ts +17 -0
- package/dist/docs/components/divider.doc.js +34 -0
- package/dist/docs/components/empty.doc.d.ts +18 -0
- package/dist/docs/components/empty.doc.js +40 -0
- package/dist/docs/components/float-button.doc.d.ts +14 -0
- package/dist/docs/components/float-button.doc.js +23 -0
- package/dist/docs/components/form.doc.d.ts +1 -1
- package/dist/docs/components/image.doc.d.ts +15 -0
- package/dist/docs/components/image.doc.js +38 -0
- package/dist/docs/components/list.doc.d.ts +18 -0
- package/dist/docs/components/list.doc.js +43 -0
- package/dist/docs/components/listy.doc.d.ts +18 -0
- package/dist/docs/components/listy.doc.js +40 -0
- package/dist/docs/components/masonry.doc.d.ts +14 -0
- package/dist/docs/components/masonry.doc.js +22 -0
- package/dist/docs/components/mentions.doc.d.ts +18 -0
- package/dist/docs/components/mentions.doc.js +43 -0
- package/dist/docs/components/modal.doc.js +3 -0
- package/dist/docs/components/progress.doc.d.ts +18 -0
- package/dist/docs/components/progress.doc.js +41 -0
- package/dist/docs/components/qr-code.doc.d.ts +18 -0
- package/dist/docs/components/qr-code.doc.js +41 -0
- package/dist/docs/components/rate.doc.d.ts +18 -0
- package/dist/docs/components/rate.doc.js +38 -0
- package/dist/docs/components/result.doc.d.ts +18 -0
- package/dist/docs/components/result.doc.js +42 -0
- package/dist/docs/components/segmented.doc.d.ts +14 -0
- package/dist/docs/components/segmented.doc.js +24 -0
- package/dist/docs/components/skeleton.doc.d.ts +18 -0
- package/dist/docs/components/skeleton.doc.js +42 -0
- package/dist/docs/components/slider.doc.d.ts +18 -0
- package/dist/docs/components/slider.doc.js +41 -0
- package/dist/docs/components/statistic.doc.d.ts +14 -0
- package/dist/docs/components/statistic.doc.js +27 -0
- package/dist/docs/components/time-picker.doc.d.ts +18 -0
- package/dist/docs/components/time-picker.doc.js +45 -0
- package/dist/docs/components/timeline.doc.d.ts +14 -0
- package/dist/docs/components/timeline.doc.js +29 -0
- package/dist/docs/components/tooltip.doc.d.ts +2 -2
- package/dist/docs/components/tour.doc.d.ts +15 -0
- package/dist/docs/components/tour.doc.js +36 -0
- package/dist/docs/components/transfer.doc.d.ts +18 -0
- package/dist/docs/components/transfer.doc.js +48 -0
- package/dist/docs/components/tree-select.doc.d.ts +18 -0
- package/dist/docs/components/tree-select.doc.js +55 -0
- package/dist/docs/components/tree.doc.d.ts +18 -0
- package/dist/docs/components/tree.doc.js +46 -0
- package/dist/docs/components/upload.doc.d.ts +18 -0
- package/dist/docs/components/upload.doc.js +43 -0
- package/dist/docs/components/watermark.doc.d.ts +14 -0
- package/dist/docs/components/watermark.doc.js +22 -0
- package/dist/entries/affix.d.ts +3 -0
- package/dist/entries/affix.js +4 -0
- package/dist/entries/app.d.ts +3 -0
- package/dist/entries/app.js +4 -0
- package/dist/entries/auto-complete.d.ts +4 -0
- package/dist/entries/auto-complete.js +4 -0
- package/dist/entries/avatar.d.ts +3 -0
- package/dist/entries/avatar.js +4 -0
- package/dist/entries/badge.d.ts +3 -0
- package/dist/entries/badge.js +4 -0
- package/dist/entries/border-beam.d.ts +3 -0
- package/dist/entries/border-beam.js +4 -0
- package/dist/entries/calendar.d.ts +3 -0
- package/dist/entries/calendar.js +4 -0
- package/dist/entries/card.d.ts +3 -0
- package/dist/entries/card.js +4 -0
- package/dist/entries/carousel.d.ts +3 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/cascader.d.ts +4 -0
- package/dist/entries/cascader.js +4 -0
- package/dist/entries/color-picker.d.ts +5 -0
- package/dist/entries/color-picker.js +4 -0
- package/dist/entries/descriptions.d.ts +3 -0
- package/dist/entries/descriptions.js +4 -0
- package/dist/entries/divider.d.ts +3 -0
- package/dist/entries/divider.js +4 -0
- package/dist/entries/empty.d.ts +3 -0
- package/dist/entries/empty.js +4 -0
- package/dist/entries/float-button.d.ts +3 -0
- package/dist/entries/float-button.js +4 -0
- package/dist/entries/image.d.ts +3 -0
- package/dist/entries/image.js +4 -0
- package/dist/entries/list.d.ts +3 -0
- package/dist/entries/list.js +4 -0
- package/dist/entries/listy.d.ts +3 -0
- package/dist/entries/listy.js +4 -0
- package/dist/entries/masonry.d.ts +3 -0
- package/dist/entries/masonry.js +4 -0
- package/dist/entries/mentions.d.ts +4 -0
- package/dist/entries/mentions.js +4 -0
- package/dist/entries/progress.d.ts +3 -0
- package/dist/entries/progress.js +4 -0
- package/dist/entries/provider.d.ts +1 -1
- package/dist/entries/provider.js +1 -1
- package/dist/entries/qr-code.d.ts +4 -0
- package/dist/entries/qr-code.js +4 -0
- package/dist/entries/rate.d.ts +3 -0
- package/dist/entries/rate.js +4 -0
- package/dist/entries/result.d.ts +3 -0
- package/dist/entries/result.js +4 -0
- package/dist/entries/segmented.d.ts +3 -0
- package/dist/entries/segmented.js +4 -0
- package/dist/entries/skeleton.d.ts +3 -0
- package/dist/entries/skeleton.js +4 -0
- package/dist/entries/slider.d.ts +3 -0
- package/dist/entries/slider.js +4 -0
- package/dist/entries/statistic.d.ts +3 -0
- package/dist/entries/statistic.js +4 -0
- package/dist/entries/time-picker.d.ts +3 -0
- package/dist/entries/time-picker.js +4 -0
- package/dist/entries/timeline.d.ts +3 -0
- package/dist/entries/timeline.js +4 -0
- package/dist/entries/tour.d.ts +3 -0
- package/dist/entries/tour.js +4 -0
- package/dist/entries/transfer.d.ts +3 -0
- package/dist/entries/transfer.js +4 -0
- package/dist/entries/tree-select.d.ts +4 -0
- package/dist/entries/tree-select.js +4 -0
- package/dist/entries/tree.d.ts +3 -0
- package/dist/entries/tree.js +4 -0
- package/dist/entries/upload.d.ts +4 -0
- package/dist/entries/upload.js +4 -0
- package/dist/entries/util.d.ts +1 -0
- package/dist/entries/util.js +1 -0
- package/dist/entries/watermark.d.ts +3 -0
- package/dist/entries/watermark.js +4 -0
- package/dist/index.d.ts +48 -3
- package/dist/index.js +38 -2
- package/dist/provider/locale.d.ts +59 -0
- package/dist/provider/locale.js +136 -0
- package/dist/provider/tao-provider.d.ts +16 -1
- package/dist/provider/tao-provider.js +104 -87
- package/dist/theme/control.css +10 -0
- package/dist/theme/theme.css +1 -1
- package/dist/utils/breakpoint.d.ts +2 -2
- package/dist/utils/breakpoint.js +3 -1
- package/dist/utils/interop-default.d.ts +2 -0
- package/dist/utils/interop-default.js +4 -0
- package/dist/utils/types.d.ts +7 -0
- package/dist/utils/types.js +0 -0
- package/llms.txt +476 -8
- package/package.json +27 -6
package/component-manifest.json
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@rockshin/tao-ui",
|
|
4
|
-
"generatedAt": "2026-
|
|
4
|
+
"generatedAt": "2026-11-04T16:10:01.752Z",
|
|
5
5
|
"components": [
|
|
6
|
+
{
|
|
7
|
+
"name": "affix",
|
|
8
|
+
"displayName": "Affix",
|
|
9
|
+
"category": "Navigation",
|
|
10
|
+
"description": "Affixes content to a window or scroll container boundary.",
|
|
11
|
+
"exports": [
|
|
12
|
+
"Affix"
|
|
13
|
+
],
|
|
14
|
+
"source": "src/components/affix/affix.tsx",
|
|
15
|
+
"story": "stories/affix.stories.tsx",
|
|
16
|
+
"tests": [
|
|
17
|
+
"tests/affix/affix.test.tsx"
|
|
18
|
+
],
|
|
19
|
+
"semanticParts": [
|
|
20
|
+
"root",
|
|
21
|
+
"content"
|
|
22
|
+
],
|
|
23
|
+
"usage": {
|
|
24
|
+
"description": "Affixes content to a window or scroll container boundary."
|
|
25
|
+
}
|
|
26
|
+
},
|
|
6
27
|
{
|
|
7
28
|
"name": "alert",
|
|
8
29
|
"displayName": "Alert",
|
|
@@ -95,6 +116,184 @@
|
|
|
95
116
|
}
|
|
96
117
|
]
|
|
97
118
|
},
|
|
119
|
+
{
|
|
120
|
+
"name": "app",
|
|
121
|
+
"displayName": "App",
|
|
122
|
+
"category": "Config",
|
|
123
|
+
"description": "Scopes imperative messages, notifications and confirmation dialogs to the current React tree and TaoProvider theme.",
|
|
124
|
+
"exports": [
|
|
125
|
+
"App"
|
|
126
|
+
],
|
|
127
|
+
"source": "src/components/app/app.tsx",
|
|
128
|
+
"story": "stories/app.stories.tsx",
|
|
129
|
+
"tests": [
|
|
130
|
+
"tests/app/app.test.tsx"
|
|
131
|
+
],
|
|
132
|
+
"semanticParts": [
|
|
133
|
+
"root"
|
|
134
|
+
],
|
|
135
|
+
"keywords": [
|
|
136
|
+
"app",
|
|
137
|
+
"message",
|
|
138
|
+
"notification",
|
|
139
|
+
"modal",
|
|
140
|
+
"context"
|
|
141
|
+
],
|
|
142
|
+
"related": [
|
|
143
|
+
"TaoProvider",
|
|
144
|
+
"Modal",
|
|
145
|
+
"Sonner"
|
|
146
|
+
],
|
|
147
|
+
"usage": {
|
|
148
|
+
"description": "Place App below TaoProvider, then call App.useApp() from descendant components. Messages return callable close handles that can be awaited; confirmation dialogs return update, destroy and then.",
|
|
149
|
+
"bestPractices": [
|
|
150
|
+
"Create feedback in event handlers or effects.",
|
|
151
|
+
"Await modal confirmation when the next action depends on the user’s choice.",
|
|
152
|
+
"Keep an App instance mounted for the lifetime of its feedback."
|
|
153
|
+
],
|
|
154
|
+
"avoid": [
|
|
155
|
+
"Do not call App.useApp() above its App provider.",
|
|
156
|
+
"Do not use transient messages for information that must remain available."
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "auto-complete",
|
|
162
|
+
"displayName": "AutoComplete",
|
|
163
|
+
"category": "Data Entry",
|
|
164
|
+
"description": "Editable text input with searchable suggestions, keyboard completion and custom input support.",
|
|
165
|
+
"exports": [
|
|
166
|
+
"AutoComplete"
|
|
167
|
+
],
|
|
168
|
+
"source": "src/components/auto-complete/auto-complete.tsx",
|
|
169
|
+
"story": "stories/auto-complete.stories.tsx",
|
|
170
|
+
"tests": [
|
|
171
|
+
"tests/auto-complete/auto-complete.test.tsx"
|
|
172
|
+
],
|
|
173
|
+
"semanticParts": [
|
|
174
|
+
"root",
|
|
175
|
+
"prefix",
|
|
176
|
+
"input",
|
|
177
|
+
"placeholder",
|
|
178
|
+
"content",
|
|
179
|
+
"clear",
|
|
180
|
+
"popup.root",
|
|
181
|
+
"popup.list",
|
|
182
|
+
"popup.listItem"
|
|
183
|
+
],
|
|
184
|
+
"keywords": [
|
|
185
|
+
"autocomplete",
|
|
186
|
+
"suggestion",
|
|
187
|
+
"search",
|
|
188
|
+
"input"
|
|
189
|
+
],
|
|
190
|
+
"related": [
|
|
191
|
+
"Input",
|
|
192
|
+
"Select",
|
|
193
|
+
"Mentions"
|
|
194
|
+
],
|
|
195
|
+
"usage": {
|
|
196
|
+
"description": "Use AutoComplete when free-form input is valid and suggestions help users finish typing.",
|
|
197
|
+
"bestPractices": [
|
|
198
|
+
"Control value with onChange and fetch suggestions with onSearch.",
|
|
199
|
+
"Provide stable values and concise option labels.",
|
|
200
|
+
"Give custom input elements an accessible name."
|
|
201
|
+
],
|
|
202
|
+
"avoid": [
|
|
203
|
+
"Do not use onSearch as the only controlled-value update during composition.",
|
|
204
|
+
"Use Select when users must choose from a closed list."
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "avatar",
|
|
210
|
+
"displayName": "Avatar",
|
|
211
|
+
"category": "Data Display",
|
|
212
|
+
"description": "Represents people with images, icons or automatically fitted initials.",
|
|
213
|
+
"exports": [
|
|
214
|
+
"Avatar"
|
|
215
|
+
],
|
|
216
|
+
"source": "src/components/avatar/avatar.tsx",
|
|
217
|
+
"story": "stories/avatar.stories.tsx",
|
|
218
|
+
"tests": [
|
|
219
|
+
"tests/avatar/avatar.test.tsx"
|
|
220
|
+
],
|
|
221
|
+
"semanticParts": [
|
|
222
|
+
"root",
|
|
223
|
+
"image",
|
|
224
|
+
"icon",
|
|
225
|
+
"content"
|
|
226
|
+
],
|
|
227
|
+
"keywords": [
|
|
228
|
+
"profile",
|
|
229
|
+
"person",
|
|
230
|
+
"group"
|
|
231
|
+
],
|
|
232
|
+
"usage": {
|
|
233
|
+
"description": "Use Avatar for a person or account; group related people with Avatar.Group.",
|
|
234
|
+
"bestPractices": [
|
|
235
|
+
"Provide meaningful image alternative text.",
|
|
236
|
+
"Supply initials or an icon as an image fallback."
|
|
237
|
+
],
|
|
238
|
+
"avoid": [
|
|
239
|
+
"Do not rely on an image alone to identify an account."
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "badge",
|
|
245
|
+
"displayName": "Badge",
|
|
246
|
+
"category": "Data Display",
|
|
247
|
+
"description": "Adds notification counts, status indicators or a ribbon to content.",
|
|
248
|
+
"exports": [
|
|
249
|
+
"Badge"
|
|
250
|
+
],
|
|
251
|
+
"source": "src/components/badge/badge.tsx",
|
|
252
|
+
"story": "stories/badge.stories.tsx",
|
|
253
|
+
"tests": [
|
|
254
|
+
"tests/badge/badge.test.tsx"
|
|
255
|
+
],
|
|
256
|
+
"semanticParts": [
|
|
257
|
+
"root",
|
|
258
|
+
"indicator"
|
|
259
|
+
],
|
|
260
|
+
"keywords": [
|
|
261
|
+
"count",
|
|
262
|
+
"status",
|
|
263
|
+
"notification",
|
|
264
|
+
"ribbon"
|
|
265
|
+
],
|
|
266
|
+
"usage": {
|
|
267
|
+
"description": "Use Badge for compact counts or a status next to a label.",
|
|
268
|
+
"bestPractices": [
|
|
269
|
+
"Pair status colors with meaningful text."
|
|
270
|
+
],
|
|
271
|
+
"avoid": [
|
|
272
|
+
"Do not use a count badge for long descriptions."
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "border-beam",
|
|
278
|
+
"displayName": "BorderBeam",
|
|
279
|
+
"category": "General",
|
|
280
|
+
"description": "Animates a highlighted beam around the border of its child.",
|
|
281
|
+
"exports": [
|
|
282
|
+
"BorderBeam"
|
|
283
|
+
],
|
|
284
|
+
"source": "src/components/border-beam/border-beam.tsx",
|
|
285
|
+
"story": "stories/border-beam.stories.tsx",
|
|
286
|
+
"tests": [
|
|
287
|
+
"tests/border-beam/border-beam.test.tsx"
|
|
288
|
+
],
|
|
289
|
+
"semanticParts": [
|
|
290
|
+
"root",
|
|
291
|
+
"beam"
|
|
292
|
+
],
|
|
293
|
+
"usage": {
|
|
294
|
+
"description": "Animates a highlighted beam around the border of its child."
|
|
295
|
+
}
|
|
296
|
+
},
|
|
98
297
|
{
|
|
99
298
|
"name": "breadcrumb",
|
|
100
299
|
"displayName": "Breadcrumb",
|
|
@@ -210,6 +409,166 @@
|
|
|
210
409
|
}
|
|
211
410
|
]
|
|
212
411
|
},
|
|
412
|
+
{
|
|
413
|
+
"name": "calendar",
|
|
414
|
+
"displayName": "Calendar",
|
|
415
|
+
"category": "Data Display",
|
|
416
|
+
"description": "Browse a month or year and place events inside date cells.",
|
|
417
|
+
"exports": [
|
|
418
|
+
"Calendar"
|
|
419
|
+
],
|
|
420
|
+
"source": "src/components/calendar/calendar.tsx",
|
|
421
|
+
"story": "stories/calendar.stories.tsx",
|
|
422
|
+
"tests": [
|
|
423
|
+
"tests/calendar/calendar.test.tsx"
|
|
424
|
+
],
|
|
425
|
+
"semanticParts": [
|
|
426
|
+
"root",
|
|
427
|
+
"header",
|
|
428
|
+
"body",
|
|
429
|
+
"content",
|
|
430
|
+
"item",
|
|
431
|
+
"itemContent"
|
|
432
|
+
],
|
|
433
|
+
"keywords": [
|
|
434
|
+
"calendar",
|
|
435
|
+
"date",
|
|
436
|
+
"events",
|
|
437
|
+
"month",
|
|
438
|
+
"year"
|
|
439
|
+
],
|
|
440
|
+
"related": [
|
|
441
|
+
"DatePicker",
|
|
442
|
+
"TimePicker"
|
|
443
|
+
],
|
|
444
|
+
"usage": {
|
|
445
|
+
"description": "Use Calendar to browse schedules and select a day without opening a popup.",
|
|
446
|
+
"bestPractices": [
|
|
447
|
+
"Use validRange to bound the available dates.",
|
|
448
|
+
"Use cellRender for date-specific events.",
|
|
449
|
+
"Use fullscreen=false for compact embedded calendars."
|
|
450
|
+
],
|
|
451
|
+
"avoid": [
|
|
452
|
+
"Do not mutate the Day.js values passed to callbacks."
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "card",
|
|
458
|
+
"displayName": "Card",
|
|
459
|
+
"category": "Data Display",
|
|
460
|
+
"description": "Groups related content with an optional heading, cover, tabs and actions.",
|
|
461
|
+
"exports": [
|
|
462
|
+
"Card"
|
|
463
|
+
],
|
|
464
|
+
"source": "src/components/card/card.tsx",
|
|
465
|
+
"story": "stories/card.stories.tsx",
|
|
466
|
+
"tests": [
|
|
467
|
+
"tests/card/card.test.tsx"
|
|
468
|
+
],
|
|
469
|
+
"semanticParts": [
|
|
470
|
+
"root",
|
|
471
|
+
"header",
|
|
472
|
+
"body",
|
|
473
|
+
"extra",
|
|
474
|
+
"title",
|
|
475
|
+
"actions",
|
|
476
|
+
"cover"
|
|
477
|
+
],
|
|
478
|
+
"keywords": [
|
|
479
|
+
"container",
|
|
480
|
+
"content",
|
|
481
|
+
"metadata",
|
|
482
|
+
"panel"
|
|
483
|
+
],
|
|
484
|
+
"usage": {
|
|
485
|
+
"description": "Use Card for a distinct content item; Card.Meta organizes its identity and description.",
|
|
486
|
+
"bestPractices": [
|
|
487
|
+
"Keep titles short and actions specific."
|
|
488
|
+
],
|
|
489
|
+
"avoid": [
|
|
490
|
+
"Do not wrap every page section in nested cards."
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "carousel",
|
|
496
|
+
"displayName": "Carousel",
|
|
497
|
+
"category": "Data Display",
|
|
498
|
+
"description": "Swipeable slides with fade, directional dots, autoplay, arrows and imperative navigation.",
|
|
499
|
+
"exports": [
|
|
500
|
+
"Carousel"
|
|
501
|
+
],
|
|
502
|
+
"source": "src/components/carousel/carousel.tsx",
|
|
503
|
+
"story": "stories/carousel.stories.tsx",
|
|
504
|
+
"tests": [
|
|
505
|
+
"tests/carousel/carousel.test.tsx"
|
|
506
|
+
],
|
|
507
|
+
"semanticParts": [
|
|
508
|
+
"root",
|
|
509
|
+
"dots"
|
|
510
|
+
],
|
|
511
|
+
"usage": {
|
|
512
|
+
"description": "Swipeable slides with fade, directional dots, autoplay, arrows and imperative navigation.",
|
|
513
|
+
"bestPractices": [
|
|
514
|
+
"Provide meaningful labels and concise content.",
|
|
515
|
+
"Keep controlled state synchronized through the change callbacks."
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "cascader",
|
|
521
|
+
"displayName": "Cascader",
|
|
522
|
+
"category": "Data Entry",
|
|
523
|
+
"description": "Choose paths through hierarchical options with search, lazy loading, multiple selection and an inline panel.",
|
|
524
|
+
"exports": [
|
|
525
|
+
"Cascader",
|
|
526
|
+
"CascaderPanel"
|
|
527
|
+
],
|
|
528
|
+
"source": "src/components/cascader/cascader.tsx",
|
|
529
|
+
"story": "stories/cascader.stories.tsx",
|
|
530
|
+
"tests": [
|
|
531
|
+
"tests/cascader/cascader.test.tsx"
|
|
532
|
+
],
|
|
533
|
+
"semanticParts": [
|
|
534
|
+
"root",
|
|
535
|
+
"prefix",
|
|
536
|
+
"suffix",
|
|
537
|
+
"input",
|
|
538
|
+
"clear",
|
|
539
|
+
"placeholder",
|
|
540
|
+
"content",
|
|
541
|
+
"item",
|
|
542
|
+
"itemContent",
|
|
543
|
+
"itemRemove",
|
|
544
|
+
"popup.root",
|
|
545
|
+
"popup.list",
|
|
546
|
+
"popup.listItem"
|
|
547
|
+
],
|
|
548
|
+
"keywords": [
|
|
549
|
+
"cascade",
|
|
550
|
+
"select",
|
|
551
|
+
"path",
|
|
552
|
+
"hierarchy",
|
|
553
|
+
"location"
|
|
554
|
+
],
|
|
555
|
+
"related": [
|
|
556
|
+
"TreeSelect",
|
|
557
|
+
"Select"
|
|
558
|
+
],
|
|
559
|
+
"usage": {
|
|
560
|
+
"description": "Use Cascader when users select a complete path such as region, department or category.",
|
|
561
|
+
"bestPractices": [
|
|
562
|
+
"Use stable values at each level.",
|
|
563
|
+
"Enable changeOnSelect when parent paths are valid choices.",
|
|
564
|
+
"Use Cascader.Panel when the hierarchy should stay visible."
|
|
565
|
+
],
|
|
566
|
+
"avoid": [
|
|
567
|
+
"Do not combine lazy loadData with search over unloaded options.",
|
|
568
|
+
"Do not flatten paths before handling onChange."
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
},
|
|
213
572
|
{
|
|
214
573
|
"name": "checkbox",
|
|
215
574
|
"displayName": "Checkbox",
|
|
@@ -304,6 +663,51 @@
|
|
|
304
663
|
]
|
|
305
664
|
}
|
|
306
665
|
},
|
|
666
|
+
{
|
|
667
|
+
"name": "color-picker",
|
|
668
|
+
"displayName": "ColorPicker",
|
|
669
|
+
"category": "Data Entry",
|
|
670
|
+
"description": "Choose single or gradient colors with hex, RGB, HSB and alpha controls.",
|
|
671
|
+
"exports": [
|
|
672
|
+
"ColorPicker"
|
|
673
|
+
],
|
|
674
|
+
"source": "src/components/color-picker/color-picker.tsx",
|
|
675
|
+
"story": "stories/color-picker.stories.tsx",
|
|
676
|
+
"tests": [
|
|
677
|
+
"tests/color-picker/color-picker.test.tsx"
|
|
678
|
+
],
|
|
679
|
+
"semanticParts": [
|
|
680
|
+
"root",
|
|
681
|
+
"body",
|
|
682
|
+
"content",
|
|
683
|
+
"description",
|
|
684
|
+
"popup.root",
|
|
685
|
+
"popup.container"
|
|
686
|
+
],
|
|
687
|
+
"keywords": [
|
|
688
|
+
"color",
|
|
689
|
+
"palette",
|
|
690
|
+
"gradient",
|
|
691
|
+
"hex",
|
|
692
|
+
"rgb",
|
|
693
|
+
"hsb"
|
|
694
|
+
],
|
|
695
|
+
"related": [
|
|
696
|
+
"Popover",
|
|
697
|
+
"Input"
|
|
698
|
+
],
|
|
699
|
+
"usage": {
|
|
700
|
+
"description": "Keep the returned Color object when precision matters and call toCssString for use in CSS.",
|
|
701
|
+
"bestPractices": [
|
|
702
|
+
"Use presets for a constrained brand palette.",
|
|
703
|
+
"Use disabledAlpha when transparency is not supported.",
|
|
704
|
+
"Use onChangeComplete when a finished edit should be committed."
|
|
705
|
+
],
|
|
706
|
+
"avoid": [
|
|
707
|
+
"Do not discard the Color object during a drag if precision matters."
|
|
708
|
+
]
|
|
709
|
+
}
|
|
710
|
+
},
|
|
307
711
|
{
|
|
308
712
|
"name": "context-menu",
|
|
309
713
|
"displayName": "ContextMenu",
|
|
@@ -380,13 +784,71 @@
|
|
|
380
784
|
"Input"
|
|
381
785
|
],
|
|
382
786
|
"usage": {
|
|
383
|
-
"description": "Use DatePicker when free text date input would be error-prone or when users benefit from calendar context.",
|
|
787
|
+
"description": "Use DatePicker when free text date input would be error-prone or when users benefit from calendar context.",
|
|
788
|
+
"bestPractices": [
|
|
789
|
+
"Support keyboard entry for known dates.",
|
|
790
|
+
"Use presets for common relative choices when helpful."
|
|
791
|
+
],
|
|
792
|
+
"avoid": [
|
|
793
|
+
"Do not force calendar navigation for dates far in the past without typed input."
|
|
794
|
+
]
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "descriptions",
|
|
799
|
+
"displayName": "Descriptions",
|
|
800
|
+
"category": "Data Display",
|
|
801
|
+
"description": "Displays labeled record fields with responsive columns and flexible spans.",
|
|
802
|
+
"exports": [
|
|
803
|
+
"Descriptions"
|
|
804
|
+
],
|
|
805
|
+
"source": "src/components/descriptions/descriptions.tsx",
|
|
806
|
+
"story": "stories/descriptions.stories.tsx",
|
|
807
|
+
"tests": [
|
|
808
|
+
"tests/descriptions/descriptions.test.tsx"
|
|
809
|
+
],
|
|
810
|
+
"semanticParts": [
|
|
811
|
+
"root",
|
|
812
|
+
"header",
|
|
813
|
+
"title",
|
|
814
|
+
"extra",
|
|
815
|
+
"label",
|
|
816
|
+
"content"
|
|
817
|
+
],
|
|
818
|
+
"usage": {
|
|
819
|
+
"description": "Use Descriptions for read-only details; use Form for editable fields."
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"name": "divider",
|
|
824
|
+
"displayName": "Divider",
|
|
825
|
+
"category": "Layout",
|
|
826
|
+
"description": "Separates sections or inline actions with an optional title.",
|
|
827
|
+
"exports": [
|
|
828
|
+
"Divider"
|
|
829
|
+
],
|
|
830
|
+
"source": "src/components/divider/divider.tsx",
|
|
831
|
+
"story": "stories/divider.stories.tsx",
|
|
832
|
+
"tests": [
|
|
833
|
+
"tests/divider/divider.test.tsx"
|
|
834
|
+
],
|
|
835
|
+
"semanticParts": [
|
|
836
|
+
"root",
|
|
837
|
+
"rail",
|
|
838
|
+
"content"
|
|
839
|
+
],
|
|
840
|
+
"keywords": [
|
|
841
|
+
"separator",
|
|
842
|
+
"line",
|
|
843
|
+
"section"
|
|
844
|
+
],
|
|
845
|
+
"usage": {
|
|
846
|
+
"description": "Use a divider when spacing alone cannot explain a section boundary.",
|
|
384
847
|
"bestPractices": [
|
|
385
|
-
"
|
|
386
|
-
"Use presets for common relative choices when helpful."
|
|
848
|
+
"Use vertical dividers between short inline actions."
|
|
387
849
|
],
|
|
388
850
|
"avoid": [
|
|
389
|
-
"Do not
|
|
851
|
+
"Do not put titles inside vertical dividers."
|
|
390
852
|
]
|
|
391
853
|
}
|
|
392
854
|
},
|
|
@@ -478,6 +940,67 @@
|
|
|
478
940
|
]
|
|
479
941
|
}
|
|
480
942
|
},
|
|
943
|
+
{
|
|
944
|
+
"name": "empty",
|
|
945
|
+
"displayName": "Empty",
|
|
946
|
+
"category": "Data Display",
|
|
947
|
+
"description": "Shows a localized empty state with an illustration, description and optional action.",
|
|
948
|
+
"exports": [
|
|
949
|
+
"Empty"
|
|
950
|
+
],
|
|
951
|
+
"source": "src/components/empty/empty.tsx",
|
|
952
|
+
"story": "stories/empty.stories.tsx",
|
|
953
|
+
"tests": [
|
|
954
|
+
"tests/empty/empty.test.tsx"
|
|
955
|
+
],
|
|
956
|
+
"semanticParts": [
|
|
957
|
+
"root",
|
|
958
|
+
"image",
|
|
959
|
+
"description",
|
|
960
|
+
"footer"
|
|
961
|
+
],
|
|
962
|
+
"keywords": [
|
|
963
|
+
"empty",
|
|
964
|
+
"feedback",
|
|
965
|
+
"status"
|
|
966
|
+
],
|
|
967
|
+
"related": [
|
|
968
|
+
"Button",
|
|
969
|
+
"Result"
|
|
970
|
+
],
|
|
971
|
+
"usage": {
|
|
972
|
+
"description": "Shows a localized empty state with an illustration, description and optional action.",
|
|
973
|
+
"bestPractices": [
|
|
974
|
+
"Explain the current state and offer a useful next action.",
|
|
975
|
+
"Keep descriptions concise and localized."
|
|
976
|
+
],
|
|
977
|
+
"avoid": [
|
|
978
|
+
"Do not replace an actionable error with an unexplained empty state."
|
|
979
|
+
]
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"name": "float-button",
|
|
984
|
+
"displayName": "FloatButton",
|
|
985
|
+
"category": "General",
|
|
986
|
+
"description": "Provides floating actions, grouped controls and a scroll-to-top action.",
|
|
987
|
+
"exports": [
|
|
988
|
+
"FloatButton"
|
|
989
|
+
],
|
|
990
|
+
"source": "src/components/float-button/float-button.tsx",
|
|
991
|
+
"story": "stories/float-button.stories.tsx",
|
|
992
|
+
"tests": [
|
|
993
|
+
"tests/float-button/float-button.test.tsx"
|
|
994
|
+
],
|
|
995
|
+
"semanticParts": [
|
|
996
|
+
"root",
|
|
997
|
+
"icon",
|
|
998
|
+
"content"
|
|
999
|
+
],
|
|
1000
|
+
"usage": {
|
|
1001
|
+
"description": "Provides floating actions, grouped controls and a scroll-to-top action."
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
481
1004
|
{
|
|
482
1005
|
"name": "form",
|
|
483
1006
|
"displayName": "Form",
|
|
@@ -724,6 +1247,43 @@
|
|
|
724
1247
|
]
|
|
725
1248
|
}
|
|
726
1249
|
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "image",
|
|
1252
|
+
"displayName": "Image",
|
|
1253
|
+
"category": "Data Display",
|
|
1254
|
+
"description": "Images with keyboard-accessible preview, grouping, transforms, fallbacks and upload progress.",
|
|
1255
|
+
"exports": [
|
|
1256
|
+
"Image",
|
|
1257
|
+
"ImagePreviewGroup"
|
|
1258
|
+
],
|
|
1259
|
+
"source": "src/components/image/image.tsx",
|
|
1260
|
+
"story": "stories/image.stories.tsx",
|
|
1261
|
+
"tests": [
|
|
1262
|
+
"tests/image/image.test.tsx"
|
|
1263
|
+
],
|
|
1264
|
+
"semanticParts": [
|
|
1265
|
+
"root",
|
|
1266
|
+
"image",
|
|
1267
|
+
"cover",
|
|
1268
|
+
"popup.root",
|
|
1269
|
+
"popup.mask",
|
|
1270
|
+
"popup.body",
|
|
1271
|
+
"popup.footer",
|
|
1272
|
+
"popup.actions",
|
|
1273
|
+
"popup.close",
|
|
1274
|
+
"placeholder.progress.root",
|
|
1275
|
+
"placeholder.progress.content",
|
|
1276
|
+
"placeholder.progress.rail",
|
|
1277
|
+
"placeholder.progress.indicator"
|
|
1278
|
+
],
|
|
1279
|
+
"usage": {
|
|
1280
|
+
"description": "Images with keyboard-accessible preview, grouping, transforms, fallbacks and upload progress.",
|
|
1281
|
+
"bestPractices": [
|
|
1282
|
+
"Provide meaningful labels and concise content.",
|
|
1283
|
+
"Keep controlled state synchronized through the change callbacks."
|
|
1284
|
+
]
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
727
1287
|
{
|
|
728
1288
|
"name": "input",
|
|
729
1289
|
"displayName": "Input",
|
|
@@ -799,6 +1359,150 @@
|
|
|
799
1359
|
]
|
|
800
1360
|
}
|
|
801
1361
|
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "list",
|
|
1364
|
+
"displayName": "List",
|
|
1365
|
+
"category": "Data Display",
|
|
1366
|
+
"description": "Displays records with metadata, actions, loading, pagination and responsive columns.",
|
|
1367
|
+
"exports": [
|
|
1368
|
+
"List"
|
|
1369
|
+
],
|
|
1370
|
+
"source": "src/components/list/list.tsx",
|
|
1371
|
+
"story": "stories/list.stories.tsx",
|
|
1372
|
+
"tests": [
|
|
1373
|
+
"tests/list/list.test.tsx"
|
|
1374
|
+
],
|
|
1375
|
+
"semanticParts": [
|
|
1376
|
+
"root",
|
|
1377
|
+
"header",
|
|
1378
|
+
"items",
|
|
1379
|
+
"footer",
|
|
1380
|
+
"pagination",
|
|
1381
|
+
"empty"
|
|
1382
|
+
],
|
|
1383
|
+
"keywords": [
|
|
1384
|
+
"list",
|
|
1385
|
+
"records",
|
|
1386
|
+
"pagination"
|
|
1387
|
+
],
|
|
1388
|
+
"related": [
|
|
1389
|
+
"Card",
|
|
1390
|
+
"Listy",
|
|
1391
|
+
"Empty"
|
|
1392
|
+
],
|
|
1393
|
+
"usage": {
|
|
1394
|
+
"description": "Compose repeated content with List.Item and List.Item.Meta.",
|
|
1395
|
+
"bestPractices": [
|
|
1396
|
+
"Supply stable row keys for changing records.",
|
|
1397
|
+
"Use a responsive grid for cards and pagination for bounded pages."
|
|
1398
|
+
],
|
|
1399
|
+
"avoid": [
|
|
1400
|
+
"Use Listy with virtualization for very large scrollable lists."
|
|
1401
|
+
]
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"name": "listy",
|
|
1406
|
+
"displayName": "Listy",
|
|
1407
|
+
"category": "Data Display",
|
|
1408
|
+
"description": "Renders grouped or virtualized lists with precise item, group and position scrolling.",
|
|
1409
|
+
"exports": [
|
|
1410
|
+
"Listy"
|
|
1411
|
+
],
|
|
1412
|
+
"source": "src/components/listy/listy.tsx",
|
|
1413
|
+
"story": "stories/listy.stories.tsx",
|
|
1414
|
+
"tests": [
|
|
1415
|
+
"tests/listy/listy.test.tsx"
|
|
1416
|
+
],
|
|
1417
|
+
"semanticParts": [
|
|
1418
|
+
"root",
|
|
1419
|
+
"item",
|
|
1420
|
+
"groupHeader"
|
|
1421
|
+
],
|
|
1422
|
+
"keywords": [
|
|
1423
|
+
"list",
|
|
1424
|
+
"virtual",
|
|
1425
|
+
"group",
|
|
1426
|
+
"scroll"
|
|
1427
|
+
],
|
|
1428
|
+
"related": [
|
|
1429
|
+
"List",
|
|
1430
|
+
"Table"
|
|
1431
|
+
],
|
|
1432
|
+
"usage": {
|
|
1433
|
+
"description": "Render long lists and grouped records without mounting the entire data set.",
|
|
1434
|
+
"bestPractices": [
|
|
1435
|
+
"Provide stable rowKey values and a height when virtual is enabled.",
|
|
1436
|
+
"Use scrollTo with keys when records can change order."
|
|
1437
|
+
],
|
|
1438
|
+
"avoid": [
|
|
1439
|
+
"Do not enable virtual scrolling without a bounded height."
|
|
1440
|
+
]
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"name": "masonry",
|
|
1445
|
+
"displayName": "Masonry",
|
|
1446
|
+
"category": "Data Display",
|
|
1447
|
+
"description": "Arranges variable-height content in responsive balanced columns.",
|
|
1448
|
+
"exports": [
|
|
1449
|
+
"Masonry"
|
|
1450
|
+
],
|
|
1451
|
+
"source": "src/components/masonry/masonry.tsx",
|
|
1452
|
+
"story": "stories/masonry.stories.tsx",
|
|
1453
|
+
"tests": [
|
|
1454
|
+
"tests/masonry/masonry.test.tsx"
|
|
1455
|
+
],
|
|
1456
|
+
"semanticParts": [
|
|
1457
|
+
"root",
|
|
1458
|
+
"item"
|
|
1459
|
+
],
|
|
1460
|
+
"usage": {
|
|
1461
|
+
"description": "Arranges variable-height content in responsive balanced columns."
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"name": "mentions",
|
|
1466
|
+
"displayName": "Mentions",
|
|
1467
|
+
"category": "Data Entry",
|
|
1468
|
+
"description": "Insert mentions into multiline text using configurable prefixes, search suggestions and keyboard selection.",
|
|
1469
|
+
"exports": [
|
|
1470
|
+
"Mentions"
|
|
1471
|
+
],
|
|
1472
|
+
"source": "src/components/mentions/mentions.tsx",
|
|
1473
|
+
"story": "stories/mentions.stories.tsx",
|
|
1474
|
+
"tests": [
|
|
1475
|
+
"tests/mentions/mentions.test.tsx"
|
|
1476
|
+
],
|
|
1477
|
+
"semanticParts": [
|
|
1478
|
+
"root",
|
|
1479
|
+
"textarea",
|
|
1480
|
+
"popup",
|
|
1481
|
+
"suffix"
|
|
1482
|
+
],
|
|
1483
|
+
"keywords": [
|
|
1484
|
+
"mention",
|
|
1485
|
+
"textarea",
|
|
1486
|
+
"people",
|
|
1487
|
+
"tag"
|
|
1488
|
+
],
|
|
1489
|
+
"related": [
|
|
1490
|
+
"Textarea",
|
|
1491
|
+
"AutoComplete"
|
|
1492
|
+
],
|
|
1493
|
+
"usage": {
|
|
1494
|
+
"description": "Use Mentions for comments and messages that refer to people, topics or identifiers.",
|
|
1495
|
+
"bestPractices": [
|
|
1496
|
+
"Use onSearch to fetch suggestions and loading while they arrive.",
|
|
1497
|
+
"Use unique option values that are meaningful in the resulting text.",
|
|
1498
|
+
"Use Mentions.getMentions with the same prefix and split configuration."
|
|
1499
|
+
],
|
|
1500
|
+
"avoid": [
|
|
1501
|
+
"Keep prefix and split consistent when parsing stored text.",
|
|
1502
|
+
"Do not use labels as insertion values when identifiers differ."
|
|
1503
|
+
]
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
802
1506
|
{
|
|
803
1507
|
"name": "modal",
|
|
804
1508
|
"displayName": "Modal",
|
|
@@ -814,6 +1518,9 @@
|
|
|
814
1518
|
],
|
|
815
1519
|
"semanticParts": [
|
|
816
1520
|
"root",
|
|
1521
|
+
"container",
|
|
1522
|
+
"wrapper",
|
|
1523
|
+
"mask",
|
|
817
1524
|
"overlay",
|
|
818
1525
|
"header",
|
|
819
1526
|
"title",
|
|
@@ -1134,6 +1841,86 @@
|
|
|
1134
1841
|
}
|
|
1135
1842
|
]
|
|
1136
1843
|
},
|
|
1844
|
+
{
|
|
1845
|
+
"name": "progress",
|
|
1846
|
+
"displayName": "Progress",
|
|
1847
|
+
"category": "Feedback",
|
|
1848
|
+
"description": "Shows measured completion with line, circle, dashboard or stepped progress indicators.",
|
|
1849
|
+
"exports": [
|
|
1850
|
+
"Progress"
|
|
1851
|
+
],
|
|
1852
|
+
"source": "src/components/progress/progress.tsx",
|
|
1853
|
+
"story": "stories/progress.stories.tsx",
|
|
1854
|
+
"tests": [
|
|
1855
|
+
"tests/progress/progress.test.tsx"
|
|
1856
|
+
],
|
|
1857
|
+
"semanticParts": [
|
|
1858
|
+
"root",
|
|
1859
|
+
"body",
|
|
1860
|
+
"rail",
|
|
1861
|
+
"track",
|
|
1862
|
+
"indicator"
|
|
1863
|
+
],
|
|
1864
|
+
"keywords": [
|
|
1865
|
+
"progress",
|
|
1866
|
+
"feedback",
|
|
1867
|
+
"loading"
|
|
1868
|
+
],
|
|
1869
|
+
"related": [
|
|
1870
|
+
"Spinner",
|
|
1871
|
+
"Skeleton"
|
|
1872
|
+
],
|
|
1873
|
+
"usage": {
|
|
1874
|
+
"description": "Shows measured completion with line, circle, dashboard or stepped progress indicators.",
|
|
1875
|
+
"bestPractices": [
|
|
1876
|
+
"Choose a shape that matches the content and available space.",
|
|
1877
|
+
"Provide meaningful labels and real loading state."
|
|
1878
|
+
],
|
|
1879
|
+
"avoid": [
|
|
1880
|
+
"Do not show fabricated progress or leave loading states unresolved."
|
|
1881
|
+
]
|
|
1882
|
+
}
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"name": "qr-code",
|
|
1886
|
+
"displayName": "QRCode",
|
|
1887
|
+
"category": "Data Display",
|
|
1888
|
+
"description": "Encode a value as a canvas or SVG QR code with status and refresh controls.",
|
|
1889
|
+
"exports": [
|
|
1890
|
+
"QRCode"
|
|
1891
|
+
],
|
|
1892
|
+
"source": "src/components/qr-code/qr-code.tsx",
|
|
1893
|
+
"story": "stories/qr-code.stories.tsx",
|
|
1894
|
+
"tests": [
|
|
1895
|
+
"tests/qr-code/qr-code.test.tsx"
|
|
1896
|
+
],
|
|
1897
|
+
"semanticParts": [
|
|
1898
|
+
"root",
|
|
1899
|
+
"cover"
|
|
1900
|
+
],
|
|
1901
|
+
"keywords": [
|
|
1902
|
+
"qr",
|
|
1903
|
+
"code",
|
|
1904
|
+
"scan",
|
|
1905
|
+
"canvas",
|
|
1906
|
+
"svg"
|
|
1907
|
+
],
|
|
1908
|
+
"related": [
|
|
1909
|
+
"Image",
|
|
1910
|
+
"Spinner"
|
|
1911
|
+
],
|
|
1912
|
+
"usage": {
|
|
1913
|
+
"description": "Provide a stable value and choose canvas for bitmap download or SVG for resolution-independent output.",
|
|
1914
|
+
"bestPractices": [
|
|
1915
|
+
"Use a high-contrast foreground and background.",
|
|
1916
|
+
"Keep the quiet zone clear.",
|
|
1917
|
+
"Use onRefresh for expired tokens."
|
|
1918
|
+
],
|
|
1919
|
+
"avoid": [
|
|
1920
|
+
"Do not use a large center icon with low error correction."
|
|
1921
|
+
]
|
|
1922
|
+
}
|
|
1923
|
+
},
|
|
1137
1924
|
{
|
|
1138
1925
|
"name": "radio",
|
|
1139
1926
|
"displayName": "Radio",
|
|
@@ -1211,6 +1998,84 @@
|
|
|
1211
1998
|
]
|
|
1212
1999
|
}
|
|
1213
2000
|
},
|
|
2001
|
+
{
|
|
2002
|
+
"name": "rate",
|
|
2003
|
+
"displayName": "Rate",
|
|
2004
|
+
"category": "Data Entry",
|
|
2005
|
+
"description": "Collects or displays a rating with half steps, keyboard control and custom symbols.",
|
|
2006
|
+
"exports": [
|
|
2007
|
+
"Rate"
|
|
2008
|
+
],
|
|
2009
|
+
"source": "src/components/rate/rate.tsx",
|
|
2010
|
+
"story": "stories/rate.stories.tsx",
|
|
2011
|
+
"tests": [
|
|
2012
|
+
"tests/rate/rate.test.tsx"
|
|
2013
|
+
],
|
|
2014
|
+
"semanticParts": [
|
|
2015
|
+
"root",
|
|
2016
|
+
"item"
|
|
2017
|
+
],
|
|
2018
|
+
"keywords": [
|
|
2019
|
+
"rate",
|
|
2020
|
+
"rating",
|
|
2021
|
+
"stars"
|
|
2022
|
+
],
|
|
2023
|
+
"related": [
|
|
2024
|
+
"Slider",
|
|
2025
|
+
"Form"
|
|
2026
|
+
],
|
|
2027
|
+
"usage": {
|
|
2028
|
+
"description": "Collect or show a bounded rating.",
|
|
2029
|
+
"bestPractices": [
|
|
2030
|
+
"Label the rating with aria-label or aria-labelledby.",
|
|
2031
|
+
"Use readOnly for results and allowHalf only when precision is meaningful."
|
|
2032
|
+
],
|
|
2033
|
+
"avoid": [
|
|
2034
|
+
"Do not rely on color alone to explain a rating scale."
|
|
2035
|
+
]
|
|
2036
|
+
}
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
"name": "result",
|
|
2040
|
+
"displayName": "Result",
|
|
2041
|
+
"category": "Feedback",
|
|
2042
|
+
"description": "Communicates an operation result or error page with status, explanation and next actions.",
|
|
2043
|
+
"exports": [
|
|
2044
|
+
"Result"
|
|
2045
|
+
],
|
|
2046
|
+
"source": "src/components/result/result.tsx",
|
|
2047
|
+
"story": "stories/result.stories.tsx",
|
|
2048
|
+
"tests": [
|
|
2049
|
+
"tests/result/result.test.tsx"
|
|
2050
|
+
],
|
|
2051
|
+
"semanticParts": [
|
|
2052
|
+
"root",
|
|
2053
|
+
"title",
|
|
2054
|
+
"subTitle",
|
|
2055
|
+
"body",
|
|
2056
|
+
"extra",
|
|
2057
|
+
"icon"
|
|
2058
|
+
],
|
|
2059
|
+
"keywords": [
|
|
2060
|
+
"result",
|
|
2061
|
+
"feedback",
|
|
2062
|
+
"status"
|
|
2063
|
+
],
|
|
2064
|
+
"related": [
|
|
2065
|
+
"Button",
|
|
2066
|
+
"Empty"
|
|
2067
|
+
],
|
|
2068
|
+
"usage": {
|
|
2069
|
+
"description": "Communicates an operation result or error page with status, explanation and next actions.",
|
|
2070
|
+
"bestPractices": [
|
|
2071
|
+
"Explain the current state and offer a useful next action.",
|
|
2072
|
+
"Keep descriptions concise and localized."
|
|
2073
|
+
],
|
|
2074
|
+
"avoid": [
|
|
2075
|
+
"Do not replace an actionable error with an unexplained empty state."
|
|
2076
|
+
]
|
|
2077
|
+
}
|
|
2078
|
+
},
|
|
1214
2079
|
{
|
|
1215
2080
|
"name": "scroll-area",
|
|
1216
2081
|
"displayName": "ScrollArea",
|
|
@@ -1239,11 +2104,34 @@
|
|
|
1239
2104
|
"Table"
|
|
1240
2105
|
],
|
|
1241
2106
|
"usage": {
|
|
1242
|
-
"description": "Use ScrollArea when a fixed region needs overflow behavior without changing page scroll.",
|
|
1243
|
-
"bestPractices": [
|
|
1244
|
-
"Constrain height explicitly.",
|
|
1245
|
-
"Avoid hiding important actions below a small scroll region."
|
|
1246
|
-
]
|
|
2107
|
+
"description": "Use ScrollArea when a fixed region needs overflow behavior without changing page scroll.",
|
|
2108
|
+
"bestPractices": [
|
|
2109
|
+
"Constrain height explicitly.",
|
|
2110
|
+
"Avoid hiding important actions below a small scroll region."
|
|
2111
|
+
]
|
|
2112
|
+
}
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "segmented",
|
|
2116
|
+
"displayName": "Segmented",
|
|
2117
|
+
"category": "Data Entry",
|
|
2118
|
+
"description": "Selects one option from a compact accessible radio group.",
|
|
2119
|
+
"exports": [
|
|
2120
|
+
"Segmented"
|
|
2121
|
+
],
|
|
2122
|
+
"source": "src/components/segmented/segmented.tsx",
|
|
2123
|
+
"story": "stories/segmented.stories.tsx",
|
|
2124
|
+
"tests": [
|
|
2125
|
+
"tests/segmented/segmented.test.tsx"
|
|
2126
|
+
],
|
|
2127
|
+
"semanticParts": [
|
|
2128
|
+
"root",
|
|
2129
|
+
"item",
|
|
2130
|
+
"label",
|
|
2131
|
+
"icon"
|
|
2132
|
+
],
|
|
2133
|
+
"usage": {
|
|
2134
|
+
"description": "Use Segmented for a small set of related views or modes."
|
|
1247
2135
|
}
|
|
1248
2136
|
},
|
|
1249
2137
|
{
|
|
@@ -1301,6 +2189,87 @@
|
|
|
1301
2189
|
]
|
|
1302
2190
|
}
|
|
1303
2191
|
},
|
|
2192
|
+
{
|
|
2193
|
+
"name": "skeleton",
|
|
2194
|
+
"displayName": "Skeleton",
|
|
2195
|
+
"category": "Feedback",
|
|
2196
|
+
"description": "Displays theme-aware loading placeholders for content, avatars, controls and images.",
|
|
2197
|
+
"exports": [
|
|
2198
|
+
"Skeleton"
|
|
2199
|
+
],
|
|
2200
|
+
"source": "src/components/skeleton/skeleton.tsx",
|
|
2201
|
+
"story": "stories/skeleton.stories.tsx",
|
|
2202
|
+
"tests": [
|
|
2203
|
+
"tests/skeleton/skeleton.test.tsx"
|
|
2204
|
+
],
|
|
2205
|
+
"semanticParts": [
|
|
2206
|
+
"root",
|
|
2207
|
+
"header",
|
|
2208
|
+
"section",
|
|
2209
|
+
"avatar",
|
|
2210
|
+
"title",
|
|
2211
|
+
"paragraph"
|
|
2212
|
+
],
|
|
2213
|
+
"keywords": [
|
|
2214
|
+
"skeleton",
|
|
2215
|
+
"feedback",
|
|
2216
|
+
"loading"
|
|
2217
|
+
],
|
|
2218
|
+
"related": [
|
|
2219
|
+
"Spinner",
|
|
2220
|
+
"Progress"
|
|
2221
|
+
],
|
|
2222
|
+
"usage": {
|
|
2223
|
+
"description": "Displays theme-aware loading placeholders for content, avatars, controls and images.",
|
|
2224
|
+
"bestPractices": [
|
|
2225
|
+
"Choose a shape that matches the content and available space.",
|
|
2226
|
+
"Provide meaningful labels and real loading state."
|
|
2227
|
+
],
|
|
2228
|
+
"avoid": [
|
|
2229
|
+
"Do not show fabricated progress or leave loading states unresolved."
|
|
2230
|
+
]
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
"name": "slider",
|
|
2235
|
+
"displayName": "Slider",
|
|
2236
|
+
"category": "Data Entry",
|
|
2237
|
+
"description": "Selects a numeric value or editable range using pointer, touch and keyboard input.",
|
|
2238
|
+
"exports": [
|
|
2239
|
+
"Slider"
|
|
2240
|
+
],
|
|
2241
|
+
"source": "src/components/slider/slider.tsx",
|
|
2242
|
+
"story": "stories/slider.stories.tsx",
|
|
2243
|
+
"tests": [
|
|
2244
|
+
"tests/slider/slider.test.tsx"
|
|
2245
|
+
],
|
|
2246
|
+
"semanticParts": [
|
|
2247
|
+
"root",
|
|
2248
|
+
"rail",
|
|
2249
|
+
"tracks",
|
|
2250
|
+
"track",
|
|
2251
|
+
"handle"
|
|
2252
|
+
],
|
|
2253
|
+
"keywords": [
|
|
2254
|
+
"slider",
|
|
2255
|
+
"range",
|
|
2256
|
+
"number"
|
|
2257
|
+
],
|
|
2258
|
+
"related": [
|
|
2259
|
+
"InputNumber",
|
|
2260
|
+
"Rate"
|
|
2261
|
+
],
|
|
2262
|
+
"usage": {
|
|
2263
|
+
"description": "Adjust numeric values within explicit bounds.",
|
|
2264
|
+
"bestPractices": [
|
|
2265
|
+
"Label every handle and choose a meaningful step.",
|
|
2266
|
+
"Use onChangeComplete for expensive work after a drag finishes."
|
|
2267
|
+
],
|
|
2268
|
+
"avoid": [
|
|
2269
|
+
"Do not use a slider when users need to enter an exact unbounded number."
|
|
2270
|
+
]
|
|
2271
|
+
}
|
|
2272
|
+
},
|
|
1304
2273
|
{
|
|
1305
2274
|
"name": "sonner",
|
|
1306
2275
|
"displayName": "Sonner",
|
|
@@ -1474,6 +2443,32 @@
|
|
|
1474
2443
|
}
|
|
1475
2444
|
]
|
|
1476
2445
|
},
|
|
2446
|
+
{
|
|
2447
|
+
"name": "statistic",
|
|
2448
|
+
"displayName": "Statistic",
|
|
2449
|
+
"category": "Data Display",
|
|
2450
|
+
"description": "Formats metrics and live count-up or countdown timers.",
|
|
2451
|
+
"exports": [
|
|
2452
|
+
"Statistic"
|
|
2453
|
+
],
|
|
2454
|
+
"source": "src/components/statistic/statistic.tsx",
|
|
2455
|
+
"story": "stories/statistic.stories.tsx",
|
|
2456
|
+
"tests": [
|
|
2457
|
+
"tests/statistic/statistic.test.tsx"
|
|
2458
|
+
],
|
|
2459
|
+
"semanticParts": [
|
|
2460
|
+
"root",
|
|
2461
|
+
"header",
|
|
2462
|
+
"title",
|
|
2463
|
+
"content",
|
|
2464
|
+
"value",
|
|
2465
|
+
"prefix",
|
|
2466
|
+
"suffix"
|
|
2467
|
+
],
|
|
2468
|
+
"usage": {
|
|
2469
|
+
"description": "Use Statistic to emphasize a single metric with a clear title and unit."
|
|
2470
|
+
}
|
|
2471
|
+
},
|
|
1477
2472
|
{
|
|
1478
2473
|
"name": "steps",
|
|
1479
2474
|
"displayName": "Steps",
|
|
@@ -1796,6 +2791,78 @@
|
|
|
1796
2791
|
]
|
|
1797
2792
|
}
|
|
1798
2793
|
},
|
|
2794
|
+
{
|
|
2795
|
+
"name": "timeline",
|
|
2796
|
+
"displayName": "Timeline",
|
|
2797
|
+
"category": "Data Display",
|
|
2798
|
+
"description": "Shows ordered events with timestamps, indicators and alternate layouts.",
|
|
2799
|
+
"exports": [
|
|
2800
|
+
"Timeline"
|
|
2801
|
+
],
|
|
2802
|
+
"source": "src/components/timeline/timeline.tsx",
|
|
2803
|
+
"story": "stories/timeline.stories.tsx",
|
|
2804
|
+
"tests": [
|
|
2805
|
+
"tests/timeline/timeline.test.tsx"
|
|
2806
|
+
],
|
|
2807
|
+
"semanticParts": [
|
|
2808
|
+
"root",
|
|
2809
|
+
"item",
|
|
2810
|
+
"itemWrapper",
|
|
2811
|
+
"itemIcon",
|
|
2812
|
+
"itemSection",
|
|
2813
|
+
"itemHeader",
|
|
2814
|
+
"itemTitle",
|
|
2815
|
+
"itemContent",
|
|
2816
|
+
"itemRail"
|
|
2817
|
+
],
|
|
2818
|
+
"usage": {
|
|
2819
|
+
"description": "Use Timeline for chronological events and their current progress."
|
|
2820
|
+
}
|
|
2821
|
+
},
|
|
2822
|
+
{
|
|
2823
|
+
"name": "time-picker",
|
|
2824
|
+
"displayName": "TimePicker",
|
|
2825
|
+
"category": "Data Entry",
|
|
2826
|
+
"description": "Select or type a time, or a time range, with Day.js values and configurable precision.",
|
|
2827
|
+
"exports": [
|
|
2828
|
+
"TimePicker",
|
|
2829
|
+
"TimeRangePicker"
|
|
2830
|
+
],
|
|
2831
|
+
"source": "src/components/time-picker/time-picker.tsx",
|
|
2832
|
+
"story": "stories/time-picker.stories.tsx",
|
|
2833
|
+
"tests": [
|
|
2834
|
+
"tests/time-picker/time-picker.test.tsx"
|
|
2835
|
+
],
|
|
2836
|
+
"semanticParts": [
|
|
2837
|
+
"root",
|
|
2838
|
+
"prefix",
|
|
2839
|
+
"input",
|
|
2840
|
+
"suffix",
|
|
2841
|
+
"popup"
|
|
2842
|
+
],
|
|
2843
|
+
"keywords": [
|
|
2844
|
+
"time",
|
|
2845
|
+
"hours",
|
|
2846
|
+
"minutes",
|
|
2847
|
+
"range",
|
|
2848
|
+
"dayjs"
|
|
2849
|
+
],
|
|
2850
|
+
"related": [
|
|
2851
|
+
"DatePicker",
|
|
2852
|
+
"RangePicker"
|
|
2853
|
+
],
|
|
2854
|
+
"usage": {
|
|
2855
|
+
"description": "Use TimePicker when a form needs a time without a calendar date; use TimePicker.RangePicker for start and end times.",
|
|
2856
|
+
"bestPractices": [
|
|
2857
|
+
"Use format and step intervals that match the task.",
|
|
2858
|
+
"Express unavailable times with disabledTime.",
|
|
2859
|
+
"Keep controlled values synchronized in onChange."
|
|
2860
|
+
],
|
|
2861
|
+
"avoid": [
|
|
2862
|
+
"Do not treat a timezone-free time as a complete timestamp."
|
|
2863
|
+
]
|
|
2864
|
+
}
|
|
2865
|
+
},
|
|
1799
2866
|
{
|
|
1800
2867
|
"name": "tooltip",
|
|
1801
2868
|
"displayName": "Tooltip",
|
|
@@ -1870,6 +2937,250 @@
|
|
|
1870
2937
|
"description": "Custom content background color."
|
|
1871
2938
|
}
|
|
1872
2939
|
]
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
"name": "tour",
|
|
2943
|
+
"displayName": "Tour",
|
|
2944
|
+
"category": "Feedback",
|
|
2945
|
+
"description": "Guided steps anchored to page elements with a spotlight mask, custom content and accessible actions.",
|
|
2946
|
+
"exports": [
|
|
2947
|
+
"Tour"
|
|
2948
|
+
],
|
|
2949
|
+
"source": "src/components/tour/tour.tsx",
|
|
2950
|
+
"story": "stories/tour.stories.tsx",
|
|
2951
|
+
"tests": [
|
|
2952
|
+
"tests/tour/tour.test.tsx"
|
|
2953
|
+
],
|
|
2954
|
+
"semanticParts": [
|
|
2955
|
+
"root",
|
|
2956
|
+
"cover",
|
|
2957
|
+
"close",
|
|
2958
|
+
"mask",
|
|
2959
|
+
"section",
|
|
2960
|
+
"footer",
|
|
2961
|
+
"actions",
|
|
2962
|
+
"indicator",
|
|
2963
|
+
"indicators",
|
|
2964
|
+
"header",
|
|
2965
|
+
"title",
|
|
2966
|
+
"description"
|
|
2967
|
+
],
|
|
2968
|
+
"usage": {
|
|
2969
|
+
"description": "Guided steps anchored to page elements with a spotlight mask, custom content and accessible actions.",
|
|
2970
|
+
"bestPractices": [
|
|
2971
|
+
"Provide meaningful labels and concise content.",
|
|
2972
|
+
"Keep controlled state synchronized through the change callbacks."
|
|
2973
|
+
]
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
"name": "transfer",
|
|
2978
|
+
"displayName": "Transfer",
|
|
2979
|
+
"category": "Data Entry",
|
|
2980
|
+
"description": "Moves selected records between searchable, paginated source and target lists.",
|
|
2981
|
+
"exports": [
|
|
2982
|
+
"Transfer"
|
|
2983
|
+
],
|
|
2984
|
+
"source": "src/components/transfer/transfer.tsx",
|
|
2985
|
+
"story": "stories/transfer.stories.tsx",
|
|
2986
|
+
"tests": [
|
|
2987
|
+
"tests/transfer/transfer.test.tsx"
|
|
2988
|
+
],
|
|
2989
|
+
"semanticParts": [
|
|
2990
|
+
"root",
|
|
2991
|
+
"section",
|
|
2992
|
+
"header",
|
|
2993
|
+
"title",
|
|
2994
|
+
"body",
|
|
2995
|
+
"list",
|
|
2996
|
+
"item",
|
|
2997
|
+
"itemIcon",
|
|
2998
|
+
"itemContent",
|
|
2999
|
+
"footer",
|
|
3000
|
+
"actions"
|
|
3001
|
+
],
|
|
3002
|
+
"keywords": [
|
|
3003
|
+
"transfer",
|
|
3004
|
+
"selection",
|
|
3005
|
+
"dual-list"
|
|
3006
|
+
],
|
|
3007
|
+
"related": [
|
|
3008
|
+
"Checkbox",
|
|
3009
|
+
"List",
|
|
3010
|
+
"Table"
|
|
3011
|
+
],
|
|
3012
|
+
"usage": {
|
|
3013
|
+
"description": "Assign records by moving them between source and target lists.",
|
|
3014
|
+
"bestPractices": [
|
|
3015
|
+
"Keep targetKeys controlled and update them in onChange.",
|
|
3016
|
+
"Use stable keys and searchable labels for large data sets."
|
|
3017
|
+
],
|
|
3018
|
+
"avoid": [
|
|
3019
|
+
"Do not treat selectedKeys as assigned items; only targetKeys represents the target list."
|
|
3020
|
+
]
|
|
3021
|
+
}
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
"name": "tree",
|
|
3025
|
+
"displayName": "Tree",
|
|
3026
|
+
"category": "Data Display",
|
|
3027
|
+
"description": "Navigate, select and check hierarchical data with keyboard navigation, lazy loading and virtual scrolling.",
|
|
3028
|
+
"exports": [
|
|
3029
|
+
"Tree",
|
|
3030
|
+
"DirectoryTree"
|
|
3031
|
+
],
|
|
3032
|
+
"source": "src/components/tree/tree.tsx",
|
|
3033
|
+
"story": "stories/tree.stories.tsx",
|
|
3034
|
+
"tests": [
|
|
3035
|
+
"tests/tree/tree.test.tsx"
|
|
3036
|
+
],
|
|
3037
|
+
"semanticParts": [
|
|
3038
|
+
"root",
|
|
3039
|
+
"item",
|
|
3040
|
+
"itemIcon",
|
|
3041
|
+
"itemTitle",
|
|
3042
|
+
"itemSwitcher"
|
|
3043
|
+
],
|
|
3044
|
+
"keywords": [
|
|
3045
|
+
"tree",
|
|
3046
|
+
"hierarchy",
|
|
3047
|
+
"directory",
|
|
3048
|
+
"files",
|
|
3049
|
+
"selection"
|
|
3050
|
+
],
|
|
3051
|
+
"related": [
|
|
3052
|
+
"TreeSelect",
|
|
3053
|
+
"Cascader"
|
|
3054
|
+
],
|
|
3055
|
+
"usage": {
|
|
3056
|
+
"description": "Use Tree for hierarchical information. DirectoryTree adds file-explorer selection with Ctrl/Command and Shift modifiers.",
|
|
3057
|
+
"bestPractices": [
|
|
3058
|
+
"Give every node a unique stable key.",
|
|
3059
|
+
"Use controlled expandedKeys when asynchronously supplied data needs expansion.",
|
|
3060
|
+
"Supply an accessible name and use height for large virtual trees."
|
|
3061
|
+
],
|
|
3062
|
+
"avoid": [
|
|
3063
|
+
"Do not use defaultExpandAll to control data that arrives after mount.",
|
|
3064
|
+
"Do not assume parent and child checks are independent unless checkStrictly is enabled."
|
|
3065
|
+
]
|
|
3066
|
+
}
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
"name": "tree-select",
|
|
3070
|
+
"displayName": "TreeSelect",
|
|
3071
|
+
"category": "Data Entry",
|
|
3072
|
+
"description": "Select hierarchical values with search, checkable trees, lazy loading and virtual scrolling.",
|
|
3073
|
+
"exports": [
|
|
3074
|
+
"TreeSelect"
|
|
3075
|
+
],
|
|
3076
|
+
"source": "src/components/tree-select/tree-select.tsx",
|
|
3077
|
+
"story": "stories/tree-select.stories.tsx",
|
|
3078
|
+
"tests": [
|
|
3079
|
+
"tests/tree-select/tree-select.test.tsx"
|
|
3080
|
+
],
|
|
3081
|
+
"semanticParts": [
|
|
3082
|
+
"root",
|
|
3083
|
+
"prefix",
|
|
3084
|
+
"suffix",
|
|
3085
|
+
"input",
|
|
3086
|
+
"clear",
|
|
3087
|
+
"placeholder",
|
|
3088
|
+
"content",
|
|
3089
|
+
"item",
|
|
3090
|
+
"itemContent",
|
|
3091
|
+
"itemRemove",
|
|
3092
|
+
"popup.root",
|
|
3093
|
+
"popup.item",
|
|
3094
|
+
"popup.itemTitle",
|
|
3095
|
+
"popup.itemSwitcher"
|
|
3096
|
+
],
|
|
3097
|
+
"keywords": [
|
|
3098
|
+
"tree",
|
|
3099
|
+
"select",
|
|
3100
|
+
"hierarchy",
|
|
3101
|
+
"search",
|
|
3102
|
+
"checkbox"
|
|
3103
|
+
],
|
|
3104
|
+
"related": [
|
|
3105
|
+
"Tree",
|
|
3106
|
+
"Cascader",
|
|
3107
|
+
"Select"
|
|
3108
|
+
],
|
|
3109
|
+
"usage": {
|
|
3110
|
+
"description": "Use TreeSelect when a form value comes from a hierarchy and users need to search or check multiple nodes.",
|
|
3111
|
+
"bestPractices": [
|
|
3112
|
+
"Give every node a unique value.",
|
|
3113
|
+
"Use showSearch.treeNodeFilterProp to search meaningful labels.",
|
|
3114
|
+
"Use treeCheckStrictly for independent parent and child values."
|
|
3115
|
+
],
|
|
3116
|
+
"avoid": [
|
|
3117
|
+
"Do not use default expansion props to control asynchronously arriving data.",
|
|
3118
|
+
"Do not expect loadData to run while filtering."
|
|
3119
|
+
]
|
|
3120
|
+
}
|
|
3121
|
+
},
|
|
3122
|
+
{
|
|
3123
|
+
"name": "upload",
|
|
3124
|
+
"displayName": "Upload",
|
|
3125
|
+
"category": "Data Entry",
|
|
3126
|
+
"description": "Select, transform, upload and manage files with real request progress and cancellation.",
|
|
3127
|
+
"exports": [
|
|
3128
|
+
"Upload"
|
|
3129
|
+
],
|
|
3130
|
+
"source": "src/components/upload/upload.tsx",
|
|
3131
|
+
"story": "stories/upload.stories.tsx",
|
|
3132
|
+
"tests": [
|
|
3133
|
+
"tests/upload/upload.test.tsx"
|
|
3134
|
+
],
|
|
3135
|
+
"semanticParts": [
|
|
3136
|
+
"root",
|
|
3137
|
+
"list",
|
|
3138
|
+
"item",
|
|
3139
|
+
"trigger"
|
|
3140
|
+
],
|
|
3141
|
+
"keywords": [
|
|
3142
|
+
"upload",
|
|
3143
|
+
"file",
|
|
3144
|
+
"drop",
|
|
3145
|
+
"request",
|
|
3146
|
+
"progress"
|
|
3147
|
+
],
|
|
3148
|
+
"related": [
|
|
3149
|
+
"Button",
|
|
3150
|
+
"Progress"
|
|
3151
|
+
],
|
|
3152
|
+
"usage": {
|
|
3153
|
+
"description": "Provide an upload action or a customRequest transport, or return false from beforeUpload to manage files locally.",
|
|
3154
|
+
"bestPractices": [
|
|
3155
|
+
"Return Upload.LIST_IGNORE to keep rejected files out of the list.",
|
|
3156
|
+
"Use onChange to synchronize controlled fileList values.",
|
|
3157
|
+
"Return an abort handler from customRequest for cancellation."
|
|
3158
|
+
],
|
|
3159
|
+
"avoid": [
|
|
3160
|
+
"Do not mark a file successful until the server confirms it."
|
|
3161
|
+
]
|
|
3162
|
+
}
|
|
3163
|
+
},
|
|
3164
|
+
{
|
|
3165
|
+
"name": "watermark",
|
|
3166
|
+
"displayName": "Watermark",
|
|
3167
|
+
"category": "General",
|
|
3168
|
+
"description": "Repeats a text or image watermark over content and inherited dialog panels.",
|
|
3169
|
+
"exports": [
|
|
3170
|
+
"Watermark"
|
|
3171
|
+
],
|
|
3172
|
+
"source": "src/components/watermark/watermark.tsx",
|
|
3173
|
+
"story": "stories/watermark.stories.tsx",
|
|
3174
|
+
"tests": [
|
|
3175
|
+
"tests/watermark/watermark.test.tsx"
|
|
3176
|
+
],
|
|
3177
|
+
"semanticParts": [
|
|
3178
|
+
"root",
|
|
3179
|
+
"mark"
|
|
3180
|
+
],
|
|
3181
|
+
"usage": {
|
|
3182
|
+
"description": "Repeats a text or image watermark over content and inherited dialog panels."
|
|
3183
|
+
}
|
|
1873
3184
|
}
|
|
1874
3185
|
]
|
|
1875
3186
|
}
|