@nexus-cross/design-system 1.0.6-beta.2 → 1.0.6
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/DESIGN.md +185 -0
- package/cursor-rules/nexus-ui-api.mdc +223 -7
- package/cursor-rules/nexus-ui-components.mdc +44 -17
- package/dist/alert.d.mts +17 -0
- package/dist/alert.d.ts +17 -0
- package/dist/alert.js +16 -0
- package/dist/alert.mjs +3 -0
- package/dist/badge.d.mts +18 -0
- package/dist/badge.d.ts +18 -0
- package/dist/badge.js +16 -0
- package/dist/badge.mjs +3 -0
- package/dist/breadcrumb.d.mts +15 -0
- package/dist/breadcrumb.d.ts +15 -0
- package/dist/breadcrumb.js +12 -0
- package/dist/breadcrumb.mjs +3 -0
- package/dist/chunks/chunk-2N2EPBO4.js +120 -0
- package/dist/chunks/{chunk-AFSEYJZT.js → chunk-2T7RUYEK.js} +175 -50
- package/dist/chunks/chunk-2UPGFY6E.mjs +76 -0
- package/dist/chunks/chunk-3ZWN66YH.js +53 -0
- package/dist/chunks/chunk-5PQ3UCKF.js +99 -0
- package/dist/chunks/chunk-6BWOKTVQ.mjs +87 -0
- package/dist/chunks/chunk-6DBRL6NA.mjs +81 -0
- package/dist/chunks/chunk-B5O6W3Z4.mjs +73 -0
- package/dist/chunks/chunk-BJM3NDT2.mjs +368 -0
- package/dist/chunks/chunk-C2DSAJTL.js +109 -0
- package/dist/chunks/chunk-CUTMLBC3.mjs +86 -0
- package/dist/chunks/chunk-CV4GMFWP.js +174 -0
- package/dist/chunks/chunk-DICN6GKE.js +99 -0
- package/dist/chunks/chunk-DYPPVXQF.js +143 -0
- package/dist/chunks/chunk-EJY7IVSK.mjs +31 -0
- package/dist/chunks/chunk-FUIBYZZ4.mjs +98 -0
- package/dist/chunks/{chunk-HNLI646G.mjs → chunk-GN6X27QI.mjs} +9 -2
- package/dist/chunks/chunk-H2G5FMRN.mjs +75 -0
- package/dist/chunks/chunk-H2V7RHYV.mjs +120 -0
- package/dist/chunks/chunk-MMCA33FW.mjs +85 -0
- package/dist/chunks/chunk-NZHK76R3.js +109 -0
- package/dist/chunks/chunk-P73MEU7N.mjs +150 -0
- package/dist/chunks/chunk-PDJTSQOC.js +59 -0
- package/dist/chunks/chunk-PXBZEAZQ.mjs +5 -0
- package/dist/chunks/chunk-QRNHFOLG.js +7 -0
- package/dist/chunks/chunk-S2GMEC43.js +109 -0
- package/dist/chunks/{chunk-VGO4Z2WH.js → chunk-SUIT4XKB.js} +8 -1
- package/dist/chunks/chunk-X3CTJ7TD.js +108 -0
- package/dist/chunks/chunk-XGIJZ3NZ.js +160 -0
- package/dist/chunks/chunk-YO5MSDPX.mjs +36 -0
- package/dist/chunks/chunk-ZI4LN2B2.js +96 -0
- package/dist/chunks/chunk-ZU4AWAFT.mjs +137 -0
- package/dist/date-picker.d.mts +17 -0
- package/dist/date-picker.d.ts +17 -0
- package/dist/date-picker.js +12 -0
- package/dist/date-picker.mjs +3 -0
- package/dist/dropdown-menu.d.mts +30 -0
- package/dist/dropdown-menu.d.ts +30 -0
- package/dist/dropdown-menu.js +32 -0
- package/dist/dropdown-menu.mjs +3 -0
- package/dist/empty-state.d.mts +16 -0
- package/dist/empty-state.d.ts +16 -0
- package/dist/empty-state.js +16 -0
- package/dist/empty-state.mjs +3 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +269 -157
- package/dist/index.mjs +30 -18
- package/dist/modal/index.js +12 -12
- package/dist/modal/index.mjs +3 -3
- package/dist/number-input.d.mts +5 -6
- package/dist/number-input.d.ts +5 -6
- package/dist/number-input.js +4 -4
- package/dist/number-input.mjs +1 -1
- package/dist/nx-image.d.mts +13 -0
- package/dist/nx-image.d.ts +13 -0
- package/dist/nx-image.js +12 -0
- package/dist/nx-image.mjs +3 -0
- package/dist/progress.d.mts +18 -0
- package/dist/progress.d.ts +18 -0
- package/dist/progress.js +16 -0
- package/dist/progress.mjs +3 -0
- package/dist/schemas/_all.json +840 -13
- package/dist/schemas/alert.json +49 -0
- package/dist/schemas/badge.json +76 -0
- package/dist/schemas/breadcrumb.json +47 -0
- package/dist/schemas/datePicker.json +56 -0
- package/dist/schemas/dropdownMenu.json +83 -0
- package/dist/schemas/emptyState.json +44 -0
- package/dist/schemas/numberInput.json +27 -8
- package/dist/schemas/nxImage.json +56 -0
- package/dist/schemas/progress.json +63 -0
- package/dist/schemas/slider.json +78 -0
- package/dist/schemas/stepper.json +73 -0
- package/dist/schemas/tagInput.json +70 -0
- package/dist/schemas/textArea.json +26 -1
- package/dist/schemas/toggleGroup.json +88 -0
- package/dist/schemas.d.mts +628 -144
- package/dist/schemas.d.ts +628 -144
- package/dist/schemas.js +177 -7
- package/dist/schemas.mjs +166 -8
- package/dist/slider.d.mts +20 -0
- package/dist/slider.d.ts +20 -0
- package/dist/slider.js +16 -0
- package/dist/slider.mjs +3 -0
- package/dist/stepper.d.mts +20 -0
- package/dist/stepper.d.ts +20 -0
- package/dist/stepper.js +16 -0
- package/dist/stepper.mjs +3 -0
- package/dist/styles/layer.js +2 -2
- package/dist/styles/layer.mjs +1 -1
- package/dist/styles.css +1615 -185
- package/dist/styles.js +2 -2
- package/dist/styles.layered.css +1615 -185
- package/dist/styles.mjs +1 -1
- package/dist/table.d.mts +40 -25
- package/dist/table.d.ts +40 -25
- package/dist/table.js +7 -7
- package/dist/table.mjs +1 -1
- package/dist/tag-input.d.mts +21 -0
- package/dist/tag-input.d.ts +21 -0
- package/dist/tag-input.js +16 -0
- package/dist/tag-input.mjs +3 -0
- package/dist/text-area.d.mts +5 -1
- package/dist/text-area.d.ts +5 -1
- package/dist/text-area.js +3 -3
- package/dist/text-area.mjs +1 -1
- package/dist/toggle-group.d.mts +36 -0
- package/dist/toggle-group.d.ts +36 -0
- package/dist/toggle-group.js +16 -0
- package/dist/toggle-group.mjs +3 -0
- package/package.json +69 -3
- package/scripts/setup-cursor-rules.cjs +15 -1
- package/dist/chunks/chunk-26BUGBOY.mjs +0 -57
- package/dist/chunks/chunk-CLGH2RTS.js +0 -7
- package/dist/chunks/chunk-ECVAVQUY.mjs +0 -243
- package/dist/chunks/chunk-UPCWJWXR.mjs +0 -5
- package/dist/chunks/chunk-WR55D4ZS.js +0 -80
- package/dist/chunks/{chunk-3VFBPFZF.mjs → chunk-CWMLTXOH.mjs} +2 -2
- package/dist/chunks/{chunk-U53UA76K.js → chunk-HFBTS42N.js} +2 -2
package/dist/schemas/_all.json
CHANGED
|
@@ -103,6 +103,55 @@
|
|
|
103
103
|
},
|
|
104
104
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
105
105
|
},
|
|
106
|
+
"alert": {
|
|
107
|
+
"$ref": "#/definitions/alertPropsSchema",
|
|
108
|
+
"definitions": {
|
|
109
|
+
"alertPropsSchema": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"variant": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"enum": [
|
|
115
|
+
"info",
|
|
116
|
+
"success",
|
|
117
|
+
"warning",
|
|
118
|
+
"danger"
|
|
119
|
+
],
|
|
120
|
+
"default": "info",
|
|
121
|
+
"description": "Alert type / color"
|
|
122
|
+
},
|
|
123
|
+
"title": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "Alert title (bold)"
|
|
126
|
+
},
|
|
127
|
+
"children": {
|
|
128
|
+
"description": "Alert description (ReactNode)"
|
|
129
|
+
},
|
|
130
|
+
"icon": {
|
|
131
|
+
"description": "Custom icon (ReactNode). Auto icon by variant if omitted"
|
|
132
|
+
},
|
|
133
|
+
"closable": {
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"default": false,
|
|
136
|
+
"description": "Show close button"
|
|
137
|
+
},
|
|
138
|
+
"onClose": {
|
|
139
|
+
"description": "Close callback () => void"
|
|
140
|
+
},
|
|
141
|
+
"action": {
|
|
142
|
+
"description": "Action area (ReactNode, e.g. Button)"
|
|
143
|
+
},
|
|
144
|
+
"className": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"description": "Style override"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"additionalProperties": false,
|
|
150
|
+
"description": "Alert / Banner. Inline notification with icon, title, description."
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
154
|
+
},
|
|
106
155
|
"avatar": {
|
|
107
156
|
"$ref": "#/definitions/avatarPropsSchema",
|
|
108
157
|
"definitions": {
|
|
@@ -158,6 +207,129 @@
|
|
|
158
207
|
},
|
|
159
208
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
160
209
|
},
|
|
210
|
+
"badge": {
|
|
211
|
+
"$ref": "#/definitions/badgePropsSchema",
|
|
212
|
+
"definitions": {
|
|
213
|
+
"badgePropsSchema": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"properties": {
|
|
216
|
+
"count": {
|
|
217
|
+
"type": "number",
|
|
218
|
+
"description": "Badge count number"
|
|
219
|
+
},
|
|
220
|
+
"max": {
|
|
221
|
+
"type": "number",
|
|
222
|
+
"default": 99,
|
|
223
|
+
"description": "Max count (shows \"99+\" when exceeded)"
|
|
224
|
+
},
|
|
225
|
+
"dot": {
|
|
226
|
+
"type": "boolean",
|
|
227
|
+
"default": false,
|
|
228
|
+
"description": "Show as dot instead of count"
|
|
229
|
+
},
|
|
230
|
+
"showZero": {
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"default": false,
|
|
233
|
+
"description": "Show badge when count is 0"
|
|
234
|
+
},
|
|
235
|
+
"variant": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"enum": [
|
|
238
|
+
"danger",
|
|
239
|
+
"primary",
|
|
240
|
+
"secondary",
|
|
241
|
+
"info",
|
|
242
|
+
"success",
|
|
243
|
+
"warning"
|
|
244
|
+
],
|
|
245
|
+
"default": "danger",
|
|
246
|
+
"description": "Color variant"
|
|
247
|
+
},
|
|
248
|
+
"size": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"enum": [
|
|
251
|
+
"sm",
|
|
252
|
+
"md",
|
|
253
|
+
"lg"
|
|
254
|
+
],
|
|
255
|
+
"default": "md",
|
|
256
|
+
"description": "Size"
|
|
257
|
+
},
|
|
258
|
+
"offset": {
|
|
259
|
+
"type": "array",
|
|
260
|
+
"minItems": 2,
|
|
261
|
+
"maxItems": 2,
|
|
262
|
+
"items": [
|
|
263
|
+
{
|
|
264
|
+
"type": "number"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "number"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"description": "Position offset [x, y] in px"
|
|
271
|
+
},
|
|
272
|
+
"children": {
|
|
273
|
+
"description": "Anchor element to attach badge to (ReactNode)"
|
|
274
|
+
},
|
|
275
|
+
"className": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"description": "Style override"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"additionalProperties": false,
|
|
281
|
+
"description": "Badge indicator. Dot or count display. Wraps children when provided."
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
285
|
+
},
|
|
286
|
+
"breadcrumb": {
|
|
287
|
+
"$ref": "#/definitions/breadcrumbPropsSchema",
|
|
288
|
+
"definitions": {
|
|
289
|
+
"breadcrumbPropsSchema": {
|
|
290
|
+
"type": "object",
|
|
291
|
+
"properties": {
|
|
292
|
+
"items": {
|
|
293
|
+
"type": "array",
|
|
294
|
+
"items": {
|
|
295
|
+
"type": "object",
|
|
296
|
+
"properties": {
|
|
297
|
+
"label": {
|
|
298
|
+
"description": "Display text or element (ReactNode)"
|
|
299
|
+
},
|
|
300
|
+
"href": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"description": "Link URL"
|
|
303
|
+
},
|
|
304
|
+
"onClick": {
|
|
305
|
+
"description": "Click handler () => void"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"additionalProperties": false
|
|
309
|
+
},
|
|
310
|
+
"description": "Breadcrumb items array (required)"
|
|
311
|
+
},
|
|
312
|
+
"separator": {
|
|
313
|
+
"description": "Custom separator (ReactNode). Default: chevron"
|
|
314
|
+
},
|
|
315
|
+
"maxItems": {
|
|
316
|
+
"type": "number",
|
|
317
|
+
"description": "Max visible items (collapses middle with \"...\")"
|
|
318
|
+
},
|
|
319
|
+
"className": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"description": "Style override"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"required": [
|
|
325
|
+
"items"
|
|
326
|
+
],
|
|
327
|
+
"additionalProperties": false,
|
|
328
|
+
"description": "Breadcrumb navigation. Shows current location path."
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
332
|
+
},
|
|
161
333
|
"button": {
|
|
162
334
|
"$ref": "#/definitions/buttonPropsSchema",
|
|
163
335
|
"definitions": {
|
|
@@ -659,6 +831,62 @@
|
|
|
659
831
|
},
|
|
660
832
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
661
833
|
},
|
|
834
|
+
"datePicker": {
|
|
835
|
+
"$ref": "#/definitions/datePickerPropsSchema",
|
|
836
|
+
"definitions": {
|
|
837
|
+
"datePickerPropsSchema": {
|
|
838
|
+
"type": "object",
|
|
839
|
+
"properties": {
|
|
840
|
+
"value": {
|
|
841
|
+
"description": "Controlled date value (Date)"
|
|
842
|
+
},
|
|
843
|
+
"defaultValue": {
|
|
844
|
+
"description": "Default date (Date)"
|
|
845
|
+
},
|
|
846
|
+
"onChange": {
|
|
847
|
+
"description": "Date change callback (date: Date | undefined) => void"
|
|
848
|
+
},
|
|
849
|
+
"placeholder": {
|
|
850
|
+
"type": "string",
|
|
851
|
+
"default": "날짜 선택",
|
|
852
|
+
"description": "Placeholder text"
|
|
853
|
+
},
|
|
854
|
+
"disabled": {
|
|
855
|
+
"type": "boolean",
|
|
856
|
+
"default": false,
|
|
857
|
+
"description": "Disabled"
|
|
858
|
+
},
|
|
859
|
+
"minDate": {
|
|
860
|
+
"description": "Minimum selectable date (Date)"
|
|
861
|
+
},
|
|
862
|
+
"maxDate": {
|
|
863
|
+
"description": "Maximum selectable date (Date)"
|
|
864
|
+
},
|
|
865
|
+
"locale": {
|
|
866
|
+
"type": "string",
|
|
867
|
+
"enum": [
|
|
868
|
+
"ko",
|
|
869
|
+
"en"
|
|
870
|
+
],
|
|
871
|
+
"default": "ko",
|
|
872
|
+
"description": "Calendar locale"
|
|
873
|
+
},
|
|
874
|
+
"formatStr": {
|
|
875
|
+
"type": "string",
|
|
876
|
+
"default": "yyyy-MM-dd",
|
|
877
|
+
"description": "Date format string (date-fns format)"
|
|
878
|
+
},
|
|
879
|
+
"className": {
|
|
880
|
+
"type": "string",
|
|
881
|
+
"description": "Style override"
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"additionalProperties": false,
|
|
885
|
+
"description": "DatePicker. Calendar popup for date selection. Based on react-day-picker."
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
889
|
+
},
|
|
662
890
|
"divider": {
|
|
663
891
|
"$ref": "#/definitions/dividerPropsSchema",
|
|
664
892
|
"definitions": {
|
|
@@ -886,6 +1114,89 @@
|
|
|
886
1114
|
},
|
|
887
1115
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
888
1116
|
},
|
|
1117
|
+
"dropdownMenu": {
|
|
1118
|
+
"$ref": "#/definitions/dropdownMenuPropsSchema",
|
|
1119
|
+
"definitions": {
|
|
1120
|
+
"dropdownMenuPropsSchema": {
|
|
1121
|
+
"type": "object",
|
|
1122
|
+
"properties": {
|
|
1123
|
+
"children": {
|
|
1124
|
+
"description": "Trigger element (ReactNode, required)"
|
|
1125
|
+
},
|
|
1126
|
+
"items": {
|
|
1127
|
+
"type": "array",
|
|
1128
|
+
"items": {
|
|
1129
|
+
"type": "object",
|
|
1130
|
+
"properties": {
|
|
1131
|
+
"label": {
|
|
1132
|
+
"description": "Menu item text (ReactNode)"
|
|
1133
|
+
},
|
|
1134
|
+
"value": {
|
|
1135
|
+
"type": "string",
|
|
1136
|
+
"description": "Item identifier"
|
|
1137
|
+
},
|
|
1138
|
+
"icon": {
|
|
1139
|
+
"description": "Left icon (ReactNode)"
|
|
1140
|
+
},
|
|
1141
|
+
"onClick": {
|
|
1142
|
+
"description": "Click handler () => void"
|
|
1143
|
+
},
|
|
1144
|
+
"disabled": {
|
|
1145
|
+
"type": "boolean",
|
|
1146
|
+
"description": "Disabled"
|
|
1147
|
+
},
|
|
1148
|
+
"danger": {
|
|
1149
|
+
"type": "boolean",
|
|
1150
|
+
"description": "Danger/destructive style"
|
|
1151
|
+
},
|
|
1152
|
+
"separator": {
|
|
1153
|
+
"type": "boolean",
|
|
1154
|
+
"description": "If true, renders as separator line"
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
"additionalProperties": false
|
|
1158
|
+
},
|
|
1159
|
+
"description": "Menu items array (required)"
|
|
1160
|
+
},
|
|
1161
|
+
"align": {
|
|
1162
|
+
"type": "string",
|
|
1163
|
+
"enum": [
|
|
1164
|
+
"start",
|
|
1165
|
+
"center",
|
|
1166
|
+
"end"
|
|
1167
|
+
],
|
|
1168
|
+
"default": "start",
|
|
1169
|
+
"description": "Alignment"
|
|
1170
|
+
},
|
|
1171
|
+
"side": {
|
|
1172
|
+
"type": "string",
|
|
1173
|
+
"enum": [
|
|
1174
|
+
"top",
|
|
1175
|
+
"right",
|
|
1176
|
+
"bottom",
|
|
1177
|
+
"left"
|
|
1178
|
+
],
|
|
1179
|
+
"default": "bottom",
|
|
1180
|
+
"description": "Position"
|
|
1181
|
+
},
|
|
1182
|
+
"className": {
|
|
1183
|
+
"type": "string",
|
|
1184
|
+
"description": "Trigger wrapper style"
|
|
1185
|
+
},
|
|
1186
|
+
"contentClassName": {
|
|
1187
|
+
"type": "string",
|
|
1188
|
+
"description": "Content panel style"
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
"required": [
|
|
1192
|
+
"items"
|
|
1193
|
+
],
|
|
1194
|
+
"additionalProperties": false,
|
|
1195
|
+
"description": "Dropdown menu. Based on Radix DropdownMenu. Action menu for context/more menus."
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1199
|
+
},
|
|
889
1200
|
"ellipsis": {
|
|
890
1201
|
"$ref": "#/definitions/ellipsisPropsSchema",
|
|
891
1202
|
"definitions": {
|
|
@@ -935,6 +1246,50 @@
|
|
|
935
1246
|
},
|
|
936
1247
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
937
1248
|
},
|
|
1249
|
+
"emptyState": {
|
|
1250
|
+
"$ref": "#/definitions/emptyStatePropsSchema",
|
|
1251
|
+
"definitions": {
|
|
1252
|
+
"emptyStatePropsSchema": {
|
|
1253
|
+
"type": "object",
|
|
1254
|
+
"properties": {
|
|
1255
|
+
"icon": {
|
|
1256
|
+
"description": "Custom icon (ReactNode). Default inbox icon"
|
|
1257
|
+
},
|
|
1258
|
+
"title": {
|
|
1259
|
+
"type": "string",
|
|
1260
|
+
"description": "Title text"
|
|
1261
|
+
},
|
|
1262
|
+
"description": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"description": "Description text"
|
|
1265
|
+
},
|
|
1266
|
+
"action": {
|
|
1267
|
+
"description": "Action area (ReactNode, e.g. Button)"
|
|
1268
|
+
},
|
|
1269
|
+
"size": {
|
|
1270
|
+
"type": "string",
|
|
1271
|
+
"enum": [
|
|
1272
|
+
"sm",
|
|
1273
|
+
"md",
|
|
1274
|
+
"lg"
|
|
1275
|
+
],
|
|
1276
|
+
"default": "md",
|
|
1277
|
+
"description": "Overall size"
|
|
1278
|
+
},
|
|
1279
|
+
"children": {
|
|
1280
|
+
"description": "Additional content (ReactNode)"
|
|
1281
|
+
},
|
|
1282
|
+
"className": {
|
|
1283
|
+
"type": "string",
|
|
1284
|
+
"description": "Style override"
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
"additionalProperties": false,
|
|
1288
|
+
"description": "Empty state placeholder. Shown when data is empty or unavailable."
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1292
|
+
},
|
|
938
1293
|
"errorBoundary": {
|
|
939
1294
|
"$ref": "#/definitions/errorBoundaryPropsSchema",
|
|
940
1295
|
"definitions": {
|
|
@@ -1302,22 +1657,29 @@
|
|
|
1302
1657
|
"numberInputPropsSchema": {
|
|
1303
1658
|
"type": "object",
|
|
1304
1659
|
"properties": {
|
|
1305
|
-
"
|
|
1306
|
-
"type":
|
|
1307
|
-
|
|
1308
|
-
"
|
|
1660
|
+
"variant": {
|
|
1661
|
+
"type": "string",
|
|
1662
|
+
"enum": [
|
|
1663
|
+
"basic",
|
|
1664
|
+
"bind"
|
|
1665
|
+
],
|
|
1666
|
+
"default": "basic",
|
|
1667
|
+
"description": "Variant: basic (right chevron arrows) or bind (left/right +/- buttons)"
|
|
1668
|
+
},
|
|
1669
|
+
"value": {
|
|
1670
|
+
"type": [
|
|
1671
|
+
"number",
|
|
1672
|
+
"string"
|
|
1309
1673
|
],
|
|
1310
1674
|
"description": "Current value"
|
|
1311
1675
|
},
|
|
1312
1676
|
"size": {
|
|
1313
1677
|
"type": "string",
|
|
1314
1678
|
"enum": [
|
|
1315
|
-
"sm",
|
|
1316
|
-
"md",
|
|
1317
1679
|
"lg",
|
|
1318
1680
|
"xl"
|
|
1319
1681
|
],
|
|
1320
|
-
"default": "
|
|
1682
|
+
"default": "lg",
|
|
1321
1683
|
"description": "Size"
|
|
1322
1684
|
},
|
|
1323
1685
|
"error": {
|
|
@@ -1330,7 +1692,7 @@
|
|
|
1330
1692
|
},
|
|
1331
1693
|
"max": {
|
|
1332
1694
|
"type": "number",
|
|
1333
|
-
"description": "Maximum value"
|
|
1695
|
+
"description": "Maximum value. When set, \"Max {value}\" is displayed in the header. Clicking it fills the input with the max value"
|
|
1334
1696
|
},
|
|
1335
1697
|
"step": {
|
|
1336
1698
|
"type": "number",
|
|
@@ -1342,10 +1704,22 @@
|
|
|
1342
1704
|
"default": 0,
|
|
1343
1705
|
"description": "Decimal places"
|
|
1344
1706
|
},
|
|
1707
|
+
"label": {
|
|
1708
|
+
"type": "string",
|
|
1709
|
+
"description": "Label text displayed above input"
|
|
1710
|
+
},
|
|
1711
|
+
"description": {
|
|
1712
|
+
"type": "string",
|
|
1713
|
+
"description": "Description text displayed below input"
|
|
1714
|
+
},
|
|
1715
|
+
"showMax": {
|
|
1716
|
+
"type": "boolean",
|
|
1717
|
+
"description": "Show \"Max {value}\" in header (defaults to true when max is set)"
|
|
1718
|
+
},
|
|
1345
1719
|
"hideButtons": {
|
|
1346
1720
|
"type": "boolean",
|
|
1347
1721
|
"default": false,
|
|
1348
|
-
"description": "Hide
|
|
1722
|
+
"description": "Hide built-in buttons. Use with numberInputBind for external button event binding"
|
|
1349
1723
|
},
|
|
1350
1724
|
"disabled": {
|
|
1351
1725
|
"type": "boolean",
|
|
@@ -1353,11 +1727,11 @@
|
|
|
1353
1727
|
},
|
|
1354
1728
|
"readOnly": {
|
|
1355
1729
|
"type": "boolean",
|
|
1356
|
-
"description": "Read-only (includes hiding
|
|
1730
|
+
"description": "Read-only (includes hiding buttons)"
|
|
1357
1731
|
},
|
|
1358
1732
|
"placeholder": {
|
|
1359
1733
|
"type": "string",
|
|
1360
|
-
"description": "Placeholder"
|
|
1734
|
+
"description": "Placeholder (default: \"0\")"
|
|
1361
1735
|
},
|
|
1362
1736
|
"name": {
|
|
1363
1737
|
"type": "string",
|
|
@@ -1386,7 +1760,63 @@
|
|
|
1386
1760
|
}
|
|
1387
1761
|
},
|
|
1388
1762
|
"additionalProperties": false,
|
|
1389
|
-
"description": "Number input
|
|
1763
|
+
"description": "Number input with two variants: basic (chevron arrows) and bind (+/- buttons). Supports label, description, max display (click to fill), accelerated increment on long press. numberInputBind(ref, direction) binds acceleration to external buttons."
|
|
1764
|
+
}
|
|
1765
|
+
},
|
|
1766
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1767
|
+
},
|
|
1768
|
+
"nxImage": {
|
|
1769
|
+
"$ref": "#/definitions/nxImagePropsSchema",
|
|
1770
|
+
"definitions": {
|
|
1771
|
+
"nxImagePropsSchema": {
|
|
1772
|
+
"type": "object",
|
|
1773
|
+
"properties": {
|
|
1774
|
+
"src": {
|
|
1775
|
+
"type": "string",
|
|
1776
|
+
"description": "Image source URL"
|
|
1777
|
+
},
|
|
1778
|
+
"alt": {
|
|
1779
|
+
"type": "string",
|
|
1780
|
+
"description": "Alt text"
|
|
1781
|
+
},
|
|
1782
|
+
"fallback": {
|
|
1783
|
+
"description": "Custom fallback element (ReactNode)"
|
|
1784
|
+
},
|
|
1785
|
+
"fallbackSrc": {
|
|
1786
|
+
"type": "string",
|
|
1787
|
+
"description": "Fallback image URL on error"
|
|
1788
|
+
},
|
|
1789
|
+
"aspectRatio": {
|
|
1790
|
+
"type": "string",
|
|
1791
|
+
"description": "CSS aspect-ratio (e.g. \"16/9\", \"1/1\")"
|
|
1792
|
+
},
|
|
1793
|
+
"objectFit": {
|
|
1794
|
+
"type": "string",
|
|
1795
|
+
"enum": [
|
|
1796
|
+
"cover",
|
|
1797
|
+
"contain",
|
|
1798
|
+
"fill",
|
|
1799
|
+
"none"
|
|
1800
|
+
],
|
|
1801
|
+
"default": "cover",
|
|
1802
|
+
"description": "Object-fit mode"
|
|
1803
|
+
},
|
|
1804
|
+
"lazy": {
|
|
1805
|
+
"type": "boolean",
|
|
1806
|
+
"default": true,
|
|
1807
|
+
"description": "Enable lazy loading (loading=\"lazy\")"
|
|
1808
|
+
},
|
|
1809
|
+
"wrapperClassName": {
|
|
1810
|
+
"type": "string",
|
|
1811
|
+
"description": "Wrapper div style"
|
|
1812
|
+
},
|
|
1813
|
+
"className": {
|
|
1814
|
+
"type": "string",
|
|
1815
|
+
"description": "Image element style"
|
|
1816
|
+
}
|
|
1817
|
+
},
|
|
1818
|
+
"additionalProperties": false,
|
|
1819
|
+
"description": "Enhanced image. Lazy loading, fallback, aspect-ratio support."
|
|
1390
1820
|
}
|
|
1391
1821
|
},
|
|
1392
1822
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -1612,6 +2042,69 @@
|
|
|
1612
2042
|
},
|
|
1613
2043
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1614
2044
|
},
|
|
2045
|
+
"progress": {
|
|
2046
|
+
"$ref": "#/definitions/progressPropsSchema",
|
|
2047
|
+
"definitions": {
|
|
2048
|
+
"progressPropsSchema": {
|
|
2049
|
+
"type": "object",
|
|
2050
|
+
"properties": {
|
|
2051
|
+
"value": {
|
|
2052
|
+
"type": "number",
|
|
2053
|
+
"default": 0,
|
|
2054
|
+
"description": "Current progress value"
|
|
2055
|
+
},
|
|
2056
|
+
"max": {
|
|
2057
|
+
"type": "number",
|
|
2058
|
+
"default": 100,
|
|
2059
|
+
"description": "Maximum value"
|
|
2060
|
+
},
|
|
2061
|
+
"variant": {
|
|
2062
|
+
"type": "string",
|
|
2063
|
+
"enum": [
|
|
2064
|
+
"primary",
|
|
2065
|
+
"success",
|
|
2066
|
+
"warning",
|
|
2067
|
+
"danger",
|
|
2068
|
+
"info"
|
|
2069
|
+
],
|
|
2070
|
+
"default": "primary",
|
|
2071
|
+
"description": "Color variant"
|
|
2072
|
+
},
|
|
2073
|
+
"size": {
|
|
2074
|
+
"type": "string",
|
|
2075
|
+
"enum": [
|
|
2076
|
+
"sm",
|
|
2077
|
+
"md",
|
|
2078
|
+
"lg"
|
|
2079
|
+
],
|
|
2080
|
+
"default": "md",
|
|
2081
|
+
"description": "Bar height"
|
|
2082
|
+
},
|
|
2083
|
+
"showValue": {
|
|
2084
|
+
"type": "boolean",
|
|
2085
|
+
"default": false,
|
|
2086
|
+
"description": "Show percentage text"
|
|
2087
|
+
},
|
|
2088
|
+
"indeterminate": {
|
|
2089
|
+
"type": "boolean",
|
|
2090
|
+
"default": false,
|
|
2091
|
+
"description": "Indeterminate loading animation"
|
|
2092
|
+
},
|
|
2093
|
+
"label": {
|
|
2094
|
+
"type": "string",
|
|
2095
|
+
"description": "Label text above the bar"
|
|
2096
|
+
},
|
|
2097
|
+
"className": {
|
|
2098
|
+
"type": "string",
|
|
2099
|
+
"description": "Style override"
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2102
|
+
"additionalProperties": false,
|
|
2103
|
+
"description": "Progress bar. Linear progress indicator with percentage display."
|
|
2104
|
+
}
|
|
2105
|
+
},
|
|
2106
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2107
|
+
},
|
|
1615
2108
|
"radioGroup": {
|
|
1616
2109
|
"$ref": "#/definitions/radioGroupPropsSchema",
|
|
1617
2110
|
"definitions": {
|
|
@@ -1866,6 +2359,84 @@
|
|
|
1866
2359
|
},
|
|
1867
2360
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1868
2361
|
},
|
|
2362
|
+
"slider": {
|
|
2363
|
+
"$ref": "#/definitions/sliderPropsSchema",
|
|
2364
|
+
"definitions": {
|
|
2365
|
+
"sliderPropsSchema": {
|
|
2366
|
+
"type": "object",
|
|
2367
|
+
"properties": {
|
|
2368
|
+
"value": {
|
|
2369
|
+
"type": "array",
|
|
2370
|
+
"items": {
|
|
2371
|
+
"type": "number"
|
|
2372
|
+
},
|
|
2373
|
+
"description": "Controlled value (number[]). Use [50] for single, [20, 80] for range"
|
|
2374
|
+
},
|
|
2375
|
+
"defaultValue": {
|
|
2376
|
+
"type": "array",
|
|
2377
|
+
"items": {
|
|
2378
|
+
"type": "number"
|
|
2379
|
+
},
|
|
2380
|
+
"description": "Default value"
|
|
2381
|
+
},
|
|
2382
|
+
"min": {
|
|
2383
|
+
"type": "number",
|
|
2384
|
+
"default": 0,
|
|
2385
|
+
"description": "Minimum"
|
|
2386
|
+
},
|
|
2387
|
+
"max": {
|
|
2388
|
+
"type": "number",
|
|
2389
|
+
"default": 100,
|
|
2390
|
+
"description": "Maximum"
|
|
2391
|
+
},
|
|
2392
|
+
"step": {
|
|
2393
|
+
"type": "number",
|
|
2394
|
+
"default": 1,
|
|
2395
|
+
"description": "Step increment"
|
|
2396
|
+
},
|
|
2397
|
+
"size": {
|
|
2398
|
+
"type": "string",
|
|
2399
|
+
"enum": [
|
|
2400
|
+
"sm",
|
|
2401
|
+
"md",
|
|
2402
|
+
"lg"
|
|
2403
|
+
],
|
|
2404
|
+
"default": "md",
|
|
2405
|
+
"description": "Track height / thumb size"
|
|
2406
|
+
},
|
|
2407
|
+
"showValue": {
|
|
2408
|
+
"type": "boolean",
|
|
2409
|
+
"default": false,
|
|
2410
|
+
"description": "Show current value text"
|
|
2411
|
+
},
|
|
2412
|
+
"formatValue": {
|
|
2413
|
+
"description": "Value format function (value: number) => string"
|
|
2414
|
+
},
|
|
2415
|
+
"label": {
|
|
2416
|
+
"type": "string",
|
|
2417
|
+
"description": "Label text"
|
|
2418
|
+
},
|
|
2419
|
+
"disabled": {
|
|
2420
|
+
"type": "boolean",
|
|
2421
|
+
"description": "Disabled"
|
|
2422
|
+
},
|
|
2423
|
+
"onValueChange": {
|
|
2424
|
+
"description": "Value change callback (value: number[]) => void"
|
|
2425
|
+
},
|
|
2426
|
+
"onValueCommit": {
|
|
2427
|
+
"description": "Committed value callback (on pointer up)"
|
|
2428
|
+
},
|
|
2429
|
+
"className": {
|
|
2430
|
+
"type": "string",
|
|
2431
|
+
"description": "Style override"
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
"additionalProperties": false,
|
|
2435
|
+
"description": "Slider / Range input. Based on Radix Slider. Supports single and range mode."
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2439
|
+
},
|
|
1869
2440
|
"spinner": {
|
|
1870
2441
|
"$ref": "#/definitions/spinnerPropsSchema",
|
|
1871
2442
|
"definitions": {
|
|
@@ -1900,6 +2471,79 @@
|
|
|
1900
2471
|
},
|
|
1901
2472
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1902
2473
|
},
|
|
2474
|
+
"stepper": {
|
|
2475
|
+
"$ref": "#/definitions/stepperPropsSchema",
|
|
2476
|
+
"definitions": {
|
|
2477
|
+
"stepperPropsSchema": {
|
|
2478
|
+
"type": "object",
|
|
2479
|
+
"properties": {
|
|
2480
|
+
"steps": {
|
|
2481
|
+
"type": "array",
|
|
2482
|
+
"items": {
|
|
2483
|
+
"type": "object",
|
|
2484
|
+
"properties": {
|
|
2485
|
+
"label": {
|
|
2486
|
+
"type": "string",
|
|
2487
|
+
"description": "Step title"
|
|
2488
|
+
},
|
|
2489
|
+
"description": {
|
|
2490
|
+
"type": "string",
|
|
2491
|
+
"description": "Step description"
|
|
2492
|
+
}
|
|
2493
|
+
},
|
|
2494
|
+
"required": [
|
|
2495
|
+
"label"
|
|
2496
|
+
],
|
|
2497
|
+
"additionalProperties": false
|
|
2498
|
+
},
|
|
2499
|
+
"description": "Step items array (required)"
|
|
2500
|
+
},
|
|
2501
|
+
"current": {
|
|
2502
|
+
"type": "number",
|
|
2503
|
+
"default": 0,
|
|
2504
|
+
"description": "Current step index (0-based)"
|
|
2505
|
+
},
|
|
2506
|
+
"status": {
|
|
2507
|
+
"type": "string",
|
|
2508
|
+
"enum": [
|
|
2509
|
+
"process",
|
|
2510
|
+
"error"
|
|
2511
|
+
],
|
|
2512
|
+
"default": "process",
|
|
2513
|
+
"description": "Current step status"
|
|
2514
|
+
},
|
|
2515
|
+
"orientation": {
|
|
2516
|
+
"type": "string",
|
|
2517
|
+
"enum": [
|
|
2518
|
+
"horizontal",
|
|
2519
|
+
"vertical"
|
|
2520
|
+
],
|
|
2521
|
+
"default": "horizontal",
|
|
2522
|
+
"description": "Layout direction"
|
|
2523
|
+
},
|
|
2524
|
+
"size": {
|
|
2525
|
+
"type": "string",
|
|
2526
|
+
"enum": [
|
|
2527
|
+
"sm",
|
|
2528
|
+
"md"
|
|
2529
|
+
],
|
|
2530
|
+
"default": "md",
|
|
2531
|
+
"description": "Size"
|
|
2532
|
+
},
|
|
2533
|
+
"className": {
|
|
2534
|
+
"type": "string",
|
|
2535
|
+
"description": "Style override"
|
|
2536
|
+
}
|
|
2537
|
+
},
|
|
2538
|
+
"required": [
|
|
2539
|
+
"steps"
|
|
2540
|
+
],
|
|
2541
|
+
"additionalProperties": false,
|
|
2542
|
+
"description": "Stepper. Step-by-step progress indicator."
|
|
2543
|
+
}
|
|
2544
|
+
},
|
|
2545
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2546
|
+
},
|
|
1903
2547
|
"switch": {
|
|
1904
2548
|
"$ref": "#/definitions/switchPropsSchema",
|
|
1905
2549
|
"definitions": {
|
|
@@ -2255,12 +2899,107 @@
|
|
|
2255
2899
|
},
|
|
2256
2900
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2257
2901
|
},
|
|
2902
|
+
"tagInput": {
|
|
2903
|
+
"$ref": "#/definitions/tagInputPropsSchema",
|
|
2904
|
+
"definitions": {
|
|
2905
|
+
"tagInputPropsSchema": {
|
|
2906
|
+
"type": "object",
|
|
2907
|
+
"properties": {
|
|
2908
|
+
"value": {
|
|
2909
|
+
"type": "array",
|
|
2910
|
+
"items": {
|
|
2911
|
+
"type": "string"
|
|
2912
|
+
},
|
|
2913
|
+
"description": "Controlled tags array"
|
|
2914
|
+
},
|
|
2915
|
+
"defaultValue": {
|
|
2916
|
+
"type": "array",
|
|
2917
|
+
"items": {
|
|
2918
|
+
"type": "string"
|
|
2919
|
+
},
|
|
2920
|
+
"description": "Default tags"
|
|
2921
|
+
},
|
|
2922
|
+
"onChange": {
|
|
2923
|
+
"description": "Tags change callback (tags: string[]) => void"
|
|
2924
|
+
},
|
|
2925
|
+
"placeholder": {
|
|
2926
|
+
"type": "string",
|
|
2927
|
+
"default": "태그 입력 후 Enter",
|
|
2928
|
+
"description": "Input placeholder"
|
|
2929
|
+
},
|
|
2930
|
+
"max": {
|
|
2931
|
+
"type": "number",
|
|
2932
|
+
"description": "Maximum number of tags"
|
|
2933
|
+
},
|
|
2934
|
+
"disabled": {
|
|
2935
|
+
"type": "boolean",
|
|
2936
|
+
"description": "Disabled"
|
|
2937
|
+
},
|
|
2938
|
+
"allowDuplicates": {
|
|
2939
|
+
"type": "boolean",
|
|
2940
|
+
"default": false,
|
|
2941
|
+
"description": "Allow duplicate tags"
|
|
2942
|
+
},
|
|
2943
|
+
"label": {
|
|
2944
|
+
"type": "string",
|
|
2945
|
+
"description": "Label text"
|
|
2946
|
+
},
|
|
2947
|
+
"description": {
|
|
2948
|
+
"type": "string",
|
|
2949
|
+
"description": "Helper text below input"
|
|
2950
|
+
},
|
|
2951
|
+
"size": {
|
|
2952
|
+
"type": "string",
|
|
2953
|
+
"enum": [
|
|
2954
|
+
"sm",
|
|
2955
|
+
"md",
|
|
2956
|
+
"lg"
|
|
2957
|
+
],
|
|
2958
|
+
"default": "md",
|
|
2959
|
+
"description": "Size"
|
|
2960
|
+
},
|
|
2961
|
+
"className": {
|
|
2962
|
+
"type": "string",
|
|
2963
|
+
"description": "Style override"
|
|
2964
|
+
}
|
|
2965
|
+
},
|
|
2966
|
+
"additionalProperties": false,
|
|
2967
|
+
"description": "Tag input. Enter key to add, Backspace to delete last tag."
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2971
|
+
},
|
|
2258
2972
|
"textArea": {
|
|
2259
2973
|
"$ref": "#/definitions/textAreaPropsSchema",
|
|
2260
2974
|
"definitions": {
|
|
2261
2975
|
"textAreaPropsSchema": {
|
|
2262
2976
|
"type": "object",
|
|
2263
2977
|
"properties": {
|
|
2978
|
+
"label": {
|
|
2979
|
+
"type": "string",
|
|
2980
|
+
"description": "Label text above the textarea"
|
|
2981
|
+
},
|
|
2982
|
+
"description": {
|
|
2983
|
+
"type": "string",
|
|
2984
|
+
"description": "Helper/error description below the textarea"
|
|
2985
|
+
},
|
|
2986
|
+
"size": {
|
|
2987
|
+
"type": "string",
|
|
2988
|
+
"enum": [
|
|
2989
|
+
"lg",
|
|
2990
|
+
"md"
|
|
2991
|
+
],
|
|
2992
|
+
"description": "Font size variant (lg: 16px, md: 14px)"
|
|
2993
|
+
},
|
|
2994
|
+
"resize": {
|
|
2995
|
+
"type": "string",
|
|
2996
|
+
"enum": [
|
|
2997
|
+
"default",
|
|
2998
|
+
"auto",
|
|
2999
|
+
"none"
|
|
3000
|
+
],
|
|
3001
|
+
"description": "Resize mode (default: manual, auto: auto-grow, none: fixed)"
|
|
3002
|
+
},
|
|
2264
3003
|
"error": {
|
|
2265
3004
|
"type": "boolean",
|
|
2266
3005
|
"description": "Error state (auto aria-invalid)"
|
|
@@ -2327,7 +3066,7 @@
|
|
|
2327
3066
|
}
|
|
2328
3067
|
},
|
|
2329
3068
|
"additionalProperties": false,
|
|
2330
|
-
"description": "Multi-line text input
|
|
3069
|
+
"description": "Multi-line text input with label, description, character counter, and resize modes."
|
|
2331
3070
|
}
|
|
2332
3071
|
},
|
|
2333
3072
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -2661,6 +3400,94 @@
|
|
|
2661
3400
|
},
|
|
2662
3401
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2663
3402
|
},
|
|
3403
|
+
"toggleGroup": {
|
|
3404
|
+
"$ref": "#/definitions/toggleGroupPropsSchema",
|
|
3405
|
+
"definitions": {
|
|
3406
|
+
"toggleGroupPropsSchema": {
|
|
3407
|
+
"type": "object",
|
|
3408
|
+
"properties": {
|
|
3409
|
+
"type": {
|
|
3410
|
+
"type": "string",
|
|
3411
|
+
"enum": [
|
|
3412
|
+
"single",
|
|
3413
|
+
"multiple"
|
|
3414
|
+
],
|
|
3415
|
+
"default": "single",
|
|
3416
|
+
"description": "Selection mode"
|
|
3417
|
+
},
|
|
3418
|
+
"items": {
|
|
3419
|
+
"type": "array",
|
|
3420
|
+
"items": {
|
|
3421
|
+
"type": "object",
|
|
3422
|
+
"properties": {
|
|
3423
|
+
"value": {
|
|
3424
|
+
"type": "string",
|
|
3425
|
+
"description": "Item value"
|
|
3426
|
+
},
|
|
3427
|
+
"label": {
|
|
3428
|
+
"description": "Display label (ReactNode)"
|
|
3429
|
+
},
|
|
3430
|
+
"icon": {
|
|
3431
|
+
"description": "Icon (ReactNode)"
|
|
3432
|
+
},
|
|
3433
|
+
"disabled": {
|
|
3434
|
+
"type": "boolean",
|
|
3435
|
+
"description": "Disabled"
|
|
3436
|
+
}
|
|
3437
|
+
},
|
|
3438
|
+
"required": [
|
|
3439
|
+
"value"
|
|
3440
|
+
],
|
|
3441
|
+
"additionalProperties": false
|
|
3442
|
+
},
|
|
3443
|
+
"description": "Toggle items array (required)"
|
|
3444
|
+
},
|
|
3445
|
+
"value": {
|
|
3446
|
+
"description": "Controlled value (string | string[])"
|
|
3447
|
+
},
|
|
3448
|
+
"defaultValue": {
|
|
3449
|
+
"description": "Default value"
|
|
3450
|
+
},
|
|
3451
|
+
"onValueChange": {
|
|
3452
|
+
"description": "Value change callback"
|
|
3453
|
+
},
|
|
3454
|
+
"variant": {
|
|
3455
|
+
"type": "string",
|
|
3456
|
+
"enum": [
|
|
3457
|
+
"default",
|
|
3458
|
+
"outline"
|
|
3459
|
+
],
|
|
3460
|
+
"default": "default",
|
|
3461
|
+
"description": "Style variant"
|
|
3462
|
+
},
|
|
3463
|
+
"size": {
|
|
3464
|
+
"type": "string",
|
|
3465
|
+
"enum": [
|
|
3466
|
+
"sm",
|
|
3467
|
+
"md",
|
|
3468
|
+
"lg"
|
|
3469
|
+
],
|
|
3470
|
+
"default": "md",
|
|
3471
|
+
"description": "Size"
|
|
3472
|
+
},
|
|
3473
|
+
"disabled": {
|
|
3474
|
+
"type": "boolean",
|
|
3475
|
+
"description": "Disable all items"
|
|
3476
|
+
},
|
|
3477
|
+
"className": {
|
|
3478
|
+
"type": "string",
|
|
3479
|
+
"description": "Style override"
|
|
3480
|
+
}
|
|
3481
|
+
},
|
|
3482
|
+
"required": [
|
|
3483
|
+
"items"
|
|
3484
|
+
],
|
|
3485
|
+
"additionalProperties": false,
|
|
3486
|
+
"description": "Toggle group / Segment control. Based on Radix ToggleGroup."
|
|
3487
|
+
}
|
|
3488
|
+
},
|
|
3489
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3490
|
+
},
|
|
2664
3491
|
"tooltip": {
|
|
2665
3492
|
"$ref": "#/definitions/tooltipPropsSchema",
|
|
2666
3493
|
"definitions": {
|