@godxjp/ui 6.12.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/app/index.d.ts +2 -2
- package/dist/{app.prop-IobwLwaM.d.ts → app.prop-DnIXFzLi.d.ts} +9 -9
- package/dist/aspect-ratio-DGoYrOry.d.ts +6 -0
- package/dist/avatar-D9MdXzfF.d.ts +8 -0
- package/dist/{checkbox-9w-eF8sM.d.ts → checkbox-ChRsR7Nk.d.ts} +2 -2
- package/dist/{chunk-3UGU5TYP.js → chunk-25RYBC5T.js} +2 -2
- package/dist/{chunk-CQBADMFG.js → chunk-26CPAKUP.js} +3 -2
- package/dist/{chunk-ZTYEH3UW.js → chunk-3TS3G4U3.js} +3 -3
- package/dist/{chunk-ZS6DTAM2.js → chunk-4MMIMZMK.js} +1 -1
- package/dist/{chunk-T2S3IGZG.js → chunk-4R7RQDXI.js} +23 -21
- package/dist/{chunk-Y7AV7QJO.js → chunk-6QXQQAOQ.js} +5 -5
- package/dist/{chunk-JJCGMCTL.js → chunk-A22MCA3X.js} +6 -6
- package/dist/{chunk-TW4IRRAX.js → chunk-A7PKMT7Y.js} +8 -49
- package/dist/chunk-AINW5WYN.js +57 -0
- package/dist/chunk-B3WX53JQ.js +40 -0
- package/dist/{chunk-BM5LIDCS.js → chunk-C5H655GK.js} +223 -67
- package/dist/{chunk-ZLK5SPT6.js → chunk-EOTOCNT7.js} +1 -1
- package/dist/chunk-FRU44GA2.js +18 -0
- package/dist/chunk-FYM3MJSK.js +59 -0
- package/dist/{chunk-EE3B3TEQ.js → chunk-G2WYOCDL.js} +5 -5
- package/dist/chunk-HKD6ERY7.js +1 -0
- package/dist/{chunk-V6UWJKZF.js → chunk-HTEL5DQI.js} +1 -1
- package/dist/{chunk-ICM6XBST.js → chunk-IBK5D2Q6.js} +2 -1
- package/dist/{chunk-IK7I3ABN.js → chunk-IOGU3ZWF.js} +2 -2
- package/dist/{chunk-HJEBRCXL.js → chunk-M4PZNAMV.js} +1 -0
- package/dist/{chunk-2QG3OVAD.js → chunk-N43OKOFT.js} +7 -5
- package/dist/{chunk-YVBZ37ZE.js → chunk-NG23LVTM.js} +5 -5
- package/dist/{chunk-E76QIYSY.js → chunk-O24Z3ULJ.js} +4 -4
- package/dist/{chunk-GXHZAJUA.js → chunk-O2OUNXV4.js} +10 -10
- package/dist/{chunk-L6J44O74.js → chunk-OJZ6C2HM.js} +2 -2
- package/dist/{chunk-2HLWHQJA.js → chunk-P4HFJQID.js} +5 -4
- package/dist/chunk-R2W2FX5Q.js +48 -0
- package/dist/{chunk-AZS7553U.js → chunk-RGIYKJPW.js} +6 -6
- package/dist/{chunk-GH7E5N6F.js → chunk-RGPF3HU6.js} +3 -3
- package/dist/chunk-SEG2YBXF.js +29 -0
- package/dist/{chunk-JBEIL3VD.js → chunk-SKIRU7GC.js} +2 -2
- package/dist/chunk-TILFZBTE.js +50 -0
- package/dist/{chunk-6UFKWOEW.js → chunk-TMDGV4CN.js} +15 -11
- package/dist/chunk-UIYEAUWA.js +78 -0
- package/dist/{chunk-XG7XDYIM.js → chunk-V3N266PT.js} +48 -2
- package/dist/{chunk-I3272Y2C.js → chunk-WN52SCGE.js} +4 -4
- package/dist/{chunk-T4UT3B3K.js → chunk-WTVLZVBA.js} +153 -188
- package/dist/{chunk-SWGQX3AP.js → chunk-XDUZ7JJL.js} +2 -2
- package/dist/chunk-XMBCNMJI.js +61 -0
- package/dist/{chunk-RVY4F7LK.js → chunk-XZM2GNAY.js} +7 -7
- package/dist/{chunk-K27I23OA.js → chunk-Z6HNY2PL.js} +9 -9
- package/dist/components/admin/index.d.ts +24 -22
- package/dist/components/admin/index.js +33 -32
- package/dist/components/data-display/badge.d.ts +15 -4
- package/dist/components/data-display/badge.js +4 -2
- package/dist/components/data-display/card.d.ts +3 -3
- package/dist/components/data-display/card.js +1 -1
- package/dist/components/data-display/index.d.ts +14 -26
- package/dist/components/data-display/index.js +28 -37
- package/dist/components/data-display/table.js +2 -2
- package/dist/components/data-entry/autocomplete.d.ts +5 -5
- package/dist/components/data-entry/autocomplete.js +5 -5
- package/dist/components/data-entry/calendar.d.ts +5 -5
- package/dist/components/data-entry/calendar.js +3 -3
- package/dist/components/data-entry/cascader.d.ts +6 -6
- package/dist/components/data-entry/cascader.js +7 -7
- package/dist/components/data-entry/checkbox.d.ts +6 -6
- package/dist/components/data-entry/checkbox.js +2 -2
- package/dist/components/data-entry/color-picker.d.ts +6 -6
- package/dist/components/data-entry/color-picker.js +2 -2
- package/dist/components/data-entry/command.d.ts +11 -11
- package/dist/components/data-entry/command.js +2 -2
- package/dist/components/data-entry/date-picker.d.ts +6 -6
- package/dist/components/data-entry/date-picker.js +4 -4
- package/dist/components/data-entry/date-range-picker.d.ts +6 -6
- package/dist/components/data-entry/date-range-picker.js +4 -4
- package/dist/components/data-entry/index.d.ts +13 -19
- package/dist/components/data-entry/index.js +27 -145
- package/dist/components/data-entry/radio.d.ts +5 -5
- package/dist/components/data-entry/radio.js +2 -2
- package/dist/components/data-entry/select.d.ts +5 -5
- package/dist/components/data-entry/select.js +5 -5
- package/dist/components/data-entry/slider.d.ts +5 -5
- package/dist/components/data-entry/switch.d.ts +5 -5
- package/dist/components/data-entry/switch.js +1 -1
- package/dist/components/data-entry/textarea.js +2 -2
- package/dist/components/data-entry/time-picker.d.ts +6 -6
- package/dist/components/data-entry/time-picker.js +2 -2
- package/dist/components/data-entry/transfer.d.ts +7 -7
- package/dist/components/data-entry/transfer.js +5 -5
- package/dist/components/data-entry/tree-select.d.ts +6 -6
- package/dist/components/data-entry/tree-select.js +7 -7
- package/dist/components/data-entry/upload.d.ts +7 -7
- package/dist/components/data-entry/upload.js +5 -5
- package/dist/components/feedback/alert.d.ts +7 -5
- package/dist/components/feedback/alert.js +3 -3
- package/dist/components/feedback/dialog.d.ts +9 -6
- package/dist/components/feedback/dialog.js +2 -2
- package/dist/components/feedback/index.d.ts +7 -6
- package/dist/components/feedback/index.js +9 -7
- package/dist/components/general/button.d.ts +4 -4
- package/dist/components/general/button.js +1 -1
- package/dist/components/general/index.d.ts +3 -3
- package/dist/components/general/index.js +1 -1
- package/dist/components/layout/index.d.ts +19 -45
- package/dist/components/layout/index.js +4 -5
- package/dist/components/navigation/index.d.ts +13 -14
- package/dist/components/navigation/index.js +9 -10
- package/dist/components/navigation/pagination.d.ts +5 -5
- package/dist/components/navigation/pagination.js +6 -6
- package/dist/components/navigation/steps.d.ts +6 -6
- package/dist/components/navigation/steps.js +2 -2
- package/dist/components/navigation/tabs.d.ts +14 -2
- package/dist/components/navigation/tabs.js +1 -1
- package/dist/components/query/index.d.ts +12 -7
- package/dist/components/query/index.js +4 -4
- package/dist/components/ui/index.d.ts +21 -14
- package/dist/components/ui/index.js +32 -29
- package/dist/{data-display.prop-i0iaSwMV.d.ts → data-display.prop-Cf2p9QC4.d.ts} +18 -17
- package/dist/{data-entry.prop-Cjidhei7.d.ts → data-entry.prop-CDkOajPj.d.ts} +34 -40
- package/dist/{data-table-Bg7fPpXy.d.ts → data-table-B_q7j992.d.ts} +10 -33
- package/dist/{data.prop-BmLaGLb7.d.ts → data.prop-DMYMNl6L.d.ts} +2 -2
- package/dist/{feedback.prop-BnBpUzNK.d.ts → feedback.prop-BR5JOpPl.d.ts} +8 -5
- package/dist/filter-bar-DvVXm_d1.d.ts +14 -0
- package/dist/form/index.d.ts +3 -3
- package/dist/{form.prop-BHgpuFFm.d.ts → form.prop-Bc6r6JJW.d.ts} +1 -1
- package/dist/{general.prop-D7brMPNL.d.ts → general.prop-DoHDCRmL.d.ts} +2 -2
- package/dist/index.d.ts +27 -25
- package/dist/index.js +46 -32
- package/dist/inline-DqfYlGKj.d.ts +18 -0
- package/dist/{interaction.prop-Cdn7wOtq.d.ts → interaction.prop-DSFizzP6.d.ts} +8 -6
- package/dist/{layout.prop-MwHm4-Zl.d.ts → layout.prop-Baq9muDN.d.ts} +27 -13
- package/dist/layout.prop-CXvl2rVR.d.ts +16 -0
- package/dist/{navigation.prop-Ck5_gSfs.d.ts → navigation.prop-8DgElO0c.d.ts} +17 -14
- package/dist/{navigation.prop-Hu7s7MJa.d.ts → navigation.prop-BKlxd-j7.d.ts} +2 -5
- package/dist/props/components/index.d.ts +14 -14
- package/dist/props/index.d.ts +14 -14
- package/dist/props/index.js +2 -2
- package/dist/props/registry.d.ts +254 -64
- package/dist/props/registry.js +1 -1
- package/dist/props/vocabulary/index.d.ts +5 -5
- package/dist/{query.prop-hIPrk2zI.d.ts → query.prop-DuODxsiU.d.ts} +12 -8
- package/dist/{search-input-mAZy3Den.d.ts → search-input-cezAxpgb.d.ts} +7 -2
- package/dist/{shared.prop-BNRJc9K0.d.ts → shared.prop-BsNSXeqD.d.ts} +9 -3
- package/dist/skeleton-uWAjSacg.d.ts +22 -0
- package/dist/styles/alert-layout.css +38 -18
- package/dist/styles/badge-layout.css +4 -4
- package/dist/styles/card-layout.css +24 -24
- package/dist/styles/control.css +68 -0
- package/dist/styles/data-display-layout.css +23 -81
- package/dist/styles/density.css +10 -10
- package/dist/styles/dialog-layout.css +4 -4
- package/dist/styles/index.css +6 -9
- package/dist/styles/layout.css +114 -85
- package/dist/styles/table-layout.css +3 -3
- package/dist/theme/example.service.css +0 -5
- package/dist/toggle-group-BulJgKh3.d.ts +26 -0
- package/dist/tokens/base.css +7 -7
- package/dist/tokens/components/badge.css +7 -0
- package/dist/tokens/{primitives → components}/card.css +11 -12
- package/dist/tokens/{primitives → components}/control.css +10 -0
- package/dist/tokens/components/feedback.css +17 -0
- package/dist/tokens/{primitives → components}/table.css +2 -2
- package/dist/tokens/foundation.css +7 -22
- package/dist/use-toast-Dsw3yE2S.d.ts +19 -0
- package/package.json +13 -7
- package/scripts/ui-audit.mjs +22 -0
- package/dist/chunk-BPSKQUL2.js +0 -68
- package/dist/chunk-M64MVRLS.js +0 -92
- package/dist/chunk-PIIRNAXA.js +0 -26
- package/dist/chunk-S66TJXJU.js +0 -33
- package/dist/chunk-WXW43RK5.js +0 -24
- package/dist/components/navigation/tabs-items.d.ts +0 -12
- package/dist/components/navigation/tabs-items.js +0 -3
- package/dist/filter-bar-BpUvE_yO.d.ts +0 -10
- package/dist/inline-CV3A46np.d.ts +0 -10
- package/dist/layout.prop-4TCNvyQZ.d.ts +0 -20
- package/dist/tokens/primitives/badge.css +0 -13
- package/dist/tokens/primitives/feedback.css +0 -17
- package/dist/use-toast-Dol5bdY3.d.ts +0 -34
- /package/dist/{chunk-LDSLS6HE.js → chunk-2H65B4JA.js} +0 -0
- /package/dist/tokens/{primitives → components}/navigation.css +0 -0
- /package/dist/tokens/{primitives → semantic}/layout.css +0 -0
|
@@ -21,6 +21,11 @@ var VOCABULARY_REGISTRY = {
|
|
|
21
21
|
category: "shared",
|
|
22
22
|
description: "Dialog/Sheet/Popover open state"
|
|
23
23
|
},
|
|
24
|
+
DefaultOpenProp: {
|
|
25
|
+
file: "vocabulary/shared.prop.ts",
|
|
26
|
+
category: "shared",
|
|
27
|
+
description: "Dialog/Sheet/Popover initial uncontrolled open state"
|
|
28
|
+
},
|
|
24
29
|
OnOpenChangeProp: {
|
|
25
30
|
file: "vocabulary/shared.prop.ts",
|
|
26
31
|
category: "shared",
|
|
@@ -71,7 +76,21 @@ var VOCABULARY_REGISTRY = {
|
|
|
71
76
|
category: "shared",
|
|
72
77
|
description: "Form field name"
|
|
73
78
|
},
|
|
74
|
-
ValueProp: {
|
|
79
|
+
ValueProp: {
|
|
80
|
+
file: "vocabulary/shared.prop.ts",
|
|
81
|
+
category: "shared",
|
|
82
|
+
description: "Abstract controlled value"
|
|
83
|
+
},
|
|
84
|
+
DefaultValueProp: {
|
|
85
|
+
file: "vocabulary/shared.prop.ts",
|
|
86
|
+
category: "shared",
|
|
87
|
+
description: "Abstract uncontrolled initial value"
|
|
88
|
+
},
|
|
89
|
+
OnValueChangeProp: {
|
|
90
|
+
file: "vocabulary/shared.prop.ts",
|
|
91
|
+
category: "shared",
|
|
92
|
+
description: "Abstract value change handler"
|
|
93
|
+
},
|
|
75
94
|
OnChangeProp: {
|
|
76
95
|
file: "vocabulary/shared.prop.ts",
|
|
77
96
|
category: "shared",
|
|
@@ -149,20 +168,20 @@ var VOCABULARY_REGISTRY = {
|
|
|
149
168
|
category: "layout",
|
|
150
169
|
description: "Page padding / control scale"
|
|
151
170
|
},
|
|
152
|
-
|
|
171
|
+
DensityProp: {
|
|
153
172
|
file: "vocabulary/layout.prop.ts",
|
|
154
173
|
category: "layout",
|
|
155
|
-
description: "
|
|
174
|
+
description: "Canonical page/subtree density"
|
|
156
175
|
},
|
|
157
|
-
|
|
176
|
+
PageContainerVariantProp: {
|
|
158
177
|
file: "vocabulary/layout.prop.ts",
|
|
159
178
|
category: "layout",
|
|
160
|
-
description: "
|
|
179
|
+
description: "Page shell layout \u2014 default, narrow, flush, ghost"
|
|
161
180
|
},
|
|
162
|
-
|
|
181
|
+
GapProp: {
|
|
163
182
|
file: "vocabulary/layout.prop.ts",
|
|
164
183
|
category: "layout",
|
|
165
|
-
description: "
|
|
184
|
+
description: "Shared gap scale; components may document subsets"
|
|
166
185
|
},
|
|
167
186
|
TableDensityProp: {
|
|
168
187
|
file: "vocabulary/layout.prop.ts",
|
|
@@ -178,17 +197,22 @@ var VOCABULARY_REGISTRY = {
|
|
|
178
197
|
ButtonSizeProp: {
|
|
179
198
|
file: "vocabulary/interaction.prop.ts",
|
|
180
199
|
category: "interaction",
|
|
181
|
-
description: "Button size preset"
|
|
200
|
+
description: "Button size preset; includes documented icon-only subset"
|
|
201
|
+
},
|
|
202
|
+
SizeProp: {
|
|
203
|
+
file: "vocabulary/interaction.prop.ts",
|
|
204
|
+
category: "interaction",
|
|
205
|
+
description: "Shared size names xs | sm | md | lg"
|
|
182
206
|
},
|
|
183
207
|
ConfirmVariantProp: {
|
|
184
208
|
file: "vocabulary/interaction.prop.ts",
|
|
185
209
|
category: "interaction",
|
|
186
210
|
description: "Dialog confirm emphasis"
|
|
187
211
|
},
|
|
188
|
-
|
|
212
|
+
ToneProp: {
|
|
189
213
|
file: "vocabulary/interaction.prop.ts",
|
|
190
214
|
category: "interaction",
|
|
191
|
-
description: "
|
|
215
|
+
description: "Semantic status/color intent"
|
|
192
216
|
},
|
|
193
217
|
AlertVariantProp: {
|
|
194
218
|
file: "vocabulary/interaction.prop.ts",
|
|
@@ -221,10 +245,25 @@ var VOCABULARY_REGISTRY = {
|
|
|
221
245
|
category: "navigation",
|
|
222
246
|
description: "Breadcrumb trail array"
|
|
223
247
|
},
|
|
224
|
-
|
|
225
|
-
file: "
|
|
226
|
-
category: "
|
|
227
|
-
description: "
|
|
248
|
+
ZodSchemaProp: {
|
|
249
|
+
file: "components/form.prop.ts",
|
|
250
|
+
category: "form",
|
|
251
|
+
description: "Zod 4 schema passed to form helpers"
|
|
252
|
+
},
|
|
253
|
+
UseZodFormOptionsProp: {
|
|
254
|
+
file: "components/form.prop.ts",
|
|
255
|
+
category: "form",
|
|
256
|
+
description: "react-hook-form options accepted by useZodForm"
|
|
257
|
+
},
|
|
258
|
+
UseZodFormReturnProp: {
|
|
259
|
+
file: "components/form.prop.ts",
|
|
260
|
+
category: "form",
|
|
261
|
+
description: "react-hook-form return object from useZodForm"
|
|
262
|
+
},
|
|
263
|
+
FieldErrorMessageProp: {
|
|
264
|
+
file: "components/form.prop.ts",
|
|
265
|
+
category: "form",
|
|
266
|
+
description: "Mapped field error message displayed through FormField"
|
|
228
267
|
},
|
|
229
268
|
// data.prop.ts
|
|
230
269
|
GetRowIdProp: {
|
|
@@ -279,21 +318,41 @@ var VOCABULARY_REGISTRY = {
|
|
|
279
318
|
}
|
|
280
319
|
};
|
|
281
320
|
var COMPONENT_PROP_REGISTRY = {
|
|
321
|
+
AppProviderProp: { group: "app", file: "components/app.prop.ts", vocabulary: ["ChildrenProp"] },
|
|
322
|
+
LocalePickerProp: { group: "app", file: "components/app.prop.ts", vocabulary: ["ValueProp", "OnValueChangeProp", "DisabledProp", "IdProp", "ClassNameProp"] },
|
|
323
|
+
TimezonePickerProp: { group: "app", file: "components/app.prop.ts", vocabulary: ["ValueProp", "OnValueChangeProp", "DisabledProp", "IdProp", "ClassNameProp"] },
|
|
324
|
+
TimeFormatPickerProp: { group: "app", file: "components/app.prop.ts", vocabulary: ["ValueProp", "OnValueChangeProp", "DisabledProp", "IdProp", "ClassNameProp"] },
|
|
325
|
+
DateFormatPickerProp: { group: "app", file: "components/app.prop.ts", vocabulary: ["ValueProp", "OnValueChangeProp", "DisabledProp", "IdProp", "ClassNameProp"] },
|
|
282
326
|
PageContainerProp: {
|
|
283
327
|
group: "layout",
|
|
284
328
|
file: "components/layout.prop.ts",
|
|
285
329
|
vocabulary: [
|
|
286
|
-
"
|
|
330
|
+
"TitleProp",
|
|
287
331
|
"SubtitleProp",
|
|
288
332
|
"ExtraProp",
|
|
289
333
|
"FooterProp",
|
|
290
334
|
"BreadcrumbProp",
|
|
291
|
-
"
|
|
335
|
+
"DensityProp",
|
|
292
336
|
"PageContainerVariantProp"
|
|
293
337
|
]
|
|
294
338
|
},
|
|
295
|
-
StackProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["
|
|
296
|
-
InlineProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["
|
|
339
|
+
StackProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["GapProp"] },
|
|
340
|
+
InlineProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["GapProp"] },
|
|
341
|
+
FlexDirectionProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
342
|
+
FlexAlignProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
343
|
+
FlexJustifyProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
344
|
+
FlexProp: {
|
|
345
|
+
group: "layout",
|
|
346
|
+
file: "components/layout.prop.ts",
|
|
347
|
+
vocabulary: [
|
|
348
|
+
{ field: "direction", local: true, reason: "Flex-specific axis control." },
|
|
349
|
+
"GapProp",
|
|
350
|
+
{ field: "align", local: true, reason: "Flex-specific align-items keyword subset." },
|
|
351
|
+
{ field: "justify", local: true, reason: "Flex-specific justify-content keyword subset." },
|
|
352
|
+
{ field: "wrap", local: true, reason: "Flex-specific boolean shorthand for flex-wrap." }
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
ResponsiveGridColumnsProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
297
356
|
PageInsetProp: {
|
|
298
357
|
group: "layout",
|
|
299
358
|
file: "components/layout.prop.ts",
|
|
@@ -304,17 +363,17 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
304
363
|
file: "components/layout.prop.ts",
|
|
305
364
|
vocabulary: ["ChildrenProp"]
|
|
306
365
|
},
|
|
307
|
-
SidebarProductProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
308
|
-
SidebarItemProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
309
|
-
SidebarSectionProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
310
|
-
SidebarProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
311
|
-
TopbarProductProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
312
|
-
TopbarProjectProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
313
|
-
TopbarProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: [] },
|
|
366
|
+
SidebarProductProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["LabelProp"] },
|
|
367
|
+
SidebarItemProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["IdProp", "LabelProp", "DisabledProp", "ChildrenProp"] },
|
|
368
|
+
SidebarSectionProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["LabelProp"] },
|
|
369
|
+
SidebarProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["IdProp", "OnValueChangeProp", "ChildrenProp"] },
|
|
370
|
+
TopbarProductProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["LabelProp"] },
|
|
371
|
+
TopbarProjectProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["LabelProp"] },
|
|
372
|
+
TopbarProp: { group: "layout", file: "components/layout.prop.ts", vocabulary: ["ChildrenProp", "OnOpenChangeProp", "OnValueChangeProp"] },
|
|
314
373
|
PageHeaderProp: {
|
|
315
374
|
group: "layout",
|
|
316
375
|
file: "components/layout.prop.ts",
|
|
317
|
-
vocabulary: ["
|
|
376
|
+
vocabulary: ["TitleProp", "SubtitleProp", "ExtraProp", "BreadcrumbProp"],
|
|
318
377
|
deprecated: true
|
|
319
378
|
},
|
|
320
379
|
ButtonProp: {
|
|
@@ -322,7 +381,7 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
322
381
|
file: "components/general.prop.ts",
|
|
323
382
|
vocabulary: [
|
|
324
383
|
"ButtonVariantProp",
|
|
325
|
-
"
|
|
384
|
+
"SizeProp",
|
|
326
385
|
"AsChildProp",
|
|
327
386
|
"DisabledProp",
|
|
328
387
|
"OnClickProp"
|
|
@@ -356,36 +415,48 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
356
415
|
CheckboxGroupProp: {
|
|
357
416
|
group: "data-entry",
|
|
358
417
|
file: "components/data-entry.prop.ts",
|
|
359
|
-
vocabulary: ["DisabledProp"]
|
|
418
|
+
vocabulary: ["ValueProp", "DefaultValueProp", "OnValueChangeProp", "DisabledProp"]
|
|
360
419
|
},
|
|
361
|
-
ChoiceOptionProp: { group: "data-entry", file: "components/data-entry.prop.ts", vocabulary: [] },
|
|
420
|
+
ChoiceOptionProp: { group: "data-entry", file: "components/data-entry.prop.ts", vocabulary: ["LabelProp", "ValueProp", "DisabledProp", "DescriptionProp"] },
|
|
362
421
|
RadioProp: {
|
|
363
422
|
group: "data-entry",
|
|
364
423
|
file: "components/data-entry.prop.ts",
|
|
365
|
-
vocabulary: ["DisabledProp"]
|
|
424
|
+
vocabulary: ["ValueProp", "DefaultValueProp", "OnValueChangeProp", "DisabledProp"]
|
|
366
425
|
},
|
|
367
426
|
RadioGroupProp: {
|
|
368
427
|
group: "data-entry",
|
|
369
428
|
file: "components/data-entry.prop.ts",
|
|
370
|
-
vocabulary: ["DisabledProp"]
|
|
429
|
+
vocabulary: ["SizeProp", "DisabledProp"]
|
|
371
430
|
},
|
|
372
431
|
SwitchProp: {
|
|
373
432
|
group: "data-entry",
|
|
374
433
|
file: "components/data-entry.prop.ts",
|
|
375
434
|
vocabulary: ["DisabledProp"]
|
|
376
435
|
},
|
|
377
|
-
|
|
436
|
+
FieldProp: {
|
|
378
437
|
group: "data-entry",
|
|
379
438
|
file: "components/data-entry.prop.ts",
|
|
380
|
-
vocabulary: [
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
439
|
+
vocabulary: ["IdProp", "LabelProp", "DescriptionProp", "ClassNameProp", "ChildrenProp"]
|
|
440
|
+
},
|
|
441
|
+
ChoiceFieldProp: {
|
|
442
|
+
group: "data-entry",
|
|
443
|
+
file: "components/data-entry.prop.ts",
|
|
444
|
+
vocabulary: ["IdProp", "LabelProp", "ClassNameProp"]
|
|
445
|
+
},
|
|
446
|
+
CountryOptionProp: {
|
|
447
|
+
group: "data-entry",
|
|
448
|
+
file: "components/data-entry.prop.ts",
|
|
449
|
+
vocabulary: ["LabelProp", "ValueProp"]
|
|
450
|
+
},
|
|
451
|
+
CountryOptionLabelProp: {
|
|
452
|
+
group: "data-entry",
|
|
453
|
+
file: "components/data-entry.prop.ts",
|
|
454
|
+
vocabulary: ["ClassNameProp"]
|
|
455
|
+
},
|
|
456
|
+
CountrySelectProp: {
|
|
457
|
+
group: "data-entry",
|
|
458
|
+
file: "components/data-entry.prop.ts",
|
|
459
|
+
vocabulary: ["IdProp", "NameProp", "DefaultValueProp", "RequiredProp", "PlaceholderProp"]
|
|
389
460
|
},
|
|
390
461
|
SliderProp: {
|
|
391
462
|
group: "data-entry",
|
|
@@ -396,22 +467,22 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
396
467
|
DatePickerProp: {
|
|
397
468
|
group: "data-entry",
|
|
398
469
|
file: "components/data-entry.prop.ts",
|
|
399
|
-
vocabulary: ["PlaceholderProp", "DisabledProp", "IdProp"]
|
|
470
|
+
vocabulary: ["ValueProp", "OnValueChangeProp", "PlaceholderProp", "DisabledProp", "IdProp"]
|
|
400
471
|
},
|
|
401
472
|
DateRangePickerProp: {
|
|
402
473
|
group: "data-entry",
|
|
403
474
|
file: "components/data-entry.prop.ts",
|
|
404
|
-
vocabulary: ["PlaceholderProp", "DisabledProp", "IdProp"]
|
|
475
|
+
vocabulary: ["ValueProp", "OnValueChangeProp", "PlaceholderProp", "DisabledProp", "IdProp"]
|
|
405
476
|
},
|
|
406
477
|
TimePickerProp: {
|
|
407
478
|
group: "data-entry",
|
|
408
479
|
file: "components/data-entry.prop.ts",
|
|
409
|
-
vocabulary: ["DisabledProp"]
|
|
480
|
+
vocabulary: ["ValueProp", "DefaultValueProp", "OnValueChangeProp", "DisabledProp"]
|
|
410
481
|
},
|
|
411
482
|
ColorPickerProp: {
|
|
412
483
|
group: "data-entry",
|
|
413
484
|
file: "components/data-entry.prop.ts",
|
|
414
|
-
vocabulary: ["DisabledProp", "IdProp"]
|
|
485
|
+
vocabulary: ["ValueProp", "OnValueChangeProp", "DisabledProp", "IdProp"]
|
|
415
486
|
},
|
|
416
487
|
AutocompleteProp: {
|
|
417
488
|
group: "data-entry",
|
|
@@ -419,6 +490,7 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
419
490
|
vocabulary: [
|
|
420
491
|
"PlaceholderProp",
|
|
421
492
|
"ValueProp",
|
|
493
|
+
"OnValueChangeProp",
|
|
422
494
|
"DisabledProp",
|
|
423
495
|
"IdProp",
|
|
424
496
|
"EmptyMessageProp",
|
|
@@ -426,11 +498,17 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
426
498
|
],
|
|
427
499
|
note: "Deprecated \u2014 a thin wrapper over SearchSelect (static options)."
|
|
428
500
|
},
|
|
501
|
+
AutocompleteOptionProp: {
|
|
502
|
+
group: "data-entry",
|
|
503
|
+
file: "components/data-entry.prop.ts",
|
|
504
|
+
vocabulary: ["ValueProp", "LabelProp"]
|
|
505
|
+
},
|
|
429
506
|
SearchSelectProp: {
|
|
430
507
|
group: "data-entry",
|
|
431
508
|
file: "components/data-entry.prop.ts",
|
|
432
509
|
vocabulary: [
|
|
433
510
|
"ValueProp",
|
|
511
|
+
"OnValueChangeProp",
|
|
434
512
|
"PlaceholderProp",
|
|
435
513
|
"EmptyMessageProp",
|
|
436
514
|
"DisabledProp",
|
|
@@ -445,6 +523,7 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
445
523
|
file: "components/data-entry.prop.ts",
|
|
446
524
|
vocabulary: [
|
|
447
525
|
"ValueProp",
|
|
526
|
+
"OnValueChangeProp",
|
|
448
527
|
"PlaceholderProp",
|
|
449
528
|
"EmptyMessageProp",
|
|
450
529
|
"DisabledProp",
|
|
@@ -457,7 +536,7 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
457
536
|
SearchSelectOptionProp: {
|
|
458
537
|
group: "data-entry",
|
|
459
538
|
file: "components/data-entry.prop.ts",
|
|
460
|
-
vocabulary: []
|
|
539
|
+
vocabulary: ["ValueProp", "LabelProp", "DisabledProp"]
|
|
461
540
|
},
|
|
462
541
|
SearchSelectLoadParamsProp: {
|
|
463
542
|
group: "data-entry",
|
|
@@ -472,7 +551,7 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
472
551
|
UploadProp: {
|
|
473
552
|
group: "data-entry",
|
|
474
553
|
file: "components/data-entry.prop.ts",
|
|
475
|
-
vocabulary: ["DisabledProp", "ClassNameProp"]
|
|
554
|
+
vocabulary: ["ValueProp", "DefaultValueProp", "OnValueChangeProp", "DisabledProp", "ClassNameProp"]
|
|
476
555
|
},
|
|
477
556
|
UploadFileItemProp: {
|
|
478
557
|
group: "data-entry",
|
|
@@ -480,21 +559,25 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
480
559
|
vocabulary: []
|
|
481
560
|
},
|
|
482
561
|
UploadVariantProp: { group: "data-entry", file: "components/data-entry.prop.ts", vocabulary: [] },
|
|
483
|
-
TreeOptionProp: {
|
|
562
|
+
TreeOptionProp: {
|
|
563
|
+
group: "data-entry",
|
|
564
|
+
file: "components/data-entry.prop.ts",
|
|
565
|
+
vocabulary: ["ValueProp", "LabelProp", "DisabledProp", "ChildrenProp"]
|
|
566
|
+
},
|
|
484
567
|
TreeFieldNamesProp: {
|
|
485
568
|
group: "data-entry",
|
|
486
569
|
file: "components/data-entry.prop.ts",
|
|
487
|
-
vocabulary: []
|
|
570
|
+
vocabulary: ["LabelProp", "ValueProp", "ChildrenProp"]
|
|
488
571
|
},
|
|
489
572
|
CascaderProp: {
|
|
490
573
|
group: "data-entry",
|
|
491
574
|
file: "components/data-entry.prop.ts",
|
|
492
|
-
vocabulary: ["PlaceholderProp", "DisabledProp", "ClassNameProp", "IdProp"]
|
|
575
|
+
vocabulary: ["ValueProp", "DefaultValueProp", "OnValueChangeProp", "PlaceholderProp", "DisabledProp", "ClassNameProp", "IdProp"]
|
|
493
576
|
},
|
|
494
577
|
TreeSelectProp: {
|
|
495
578
|
group: "data-entry",
|
|
496
579
|
file: "components/data-entry.prop.ts",
|
|
497
|
-
vocabulary: ["PlaceholderProp", "DisabledProp", "ClassNameProp", "IdProp"]
|
|
580
|
+
vocabulary: ["ValueProp", "DefaultValueProp", "OnValueChangeProp", "PlaceholderProp", "DisabledProp", "ClassNameProp", "IdProp"]
|
|
498
581
|
},
|
|
499
582
|
ShowCheckedStrategyProp: {
|
|
500
583
|
group: "data-entry",
|
|
@@ -506,28 +589,36 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
506
589
|
file: "components/data-entry.prop.ts",
|
|
507
590
|
vocabulary: ["DisabledProp", "ClassNameProp"]
|
|
508
591
|
},
|
|
509
|
-
TransferItemProp: {
|
|
592
|
+
TransferItemProp: {
|
|
593
|
+
group: "data-entry",
|
|
594
|
+
file: "components/data-entry.prop.ts",
|
|
595
|
+
vocabulary: ["TitleProp", "DescriptionProp", "DisabledProp"]
|
|
596
|
+
},
|
|
510
597
|
EmptyStateProp: {
|
|
511
598
|
group: "data-display",
|
|
512
599
|
file: "components/data-display.prop.ts",
|
|
513
600
|
vocabulary: ["IconProp", "TitleProp", "DescriptionProp", "ActionProp"]
|
|
514
601
|
},
|
|
515
|
-
|
|
602
|
+
DescriptionsProp: {
|
|
516
603
|
group: "data-display",
|
|
517
604
|
file: "components/data-display.prop.ts",
|
|
518
|
-
vocabulary: []
|
|
605
|
+
vocabulary: ["ClassNameProp"]
|
|
519
606
|
},
|
|
520
|
-
|
|
607
|
+
DescriptionsItemProp: {
|
|
521
608
|
group: "data-display",
|
|
522
609
|
file: "components/data-display.prop.ts",
|
|
523
|
-
vocabulary: ["
|
|
610
|
+
vocabulary: ["LabelProp", "ValueProp"]
|
|
611
|
+
},
|
|
612
|
+
BadgeProp: {
|
|
613
|
+
group: "data-display",
|
|
614
|
+
file: "components/data-display.prop.ts",
|
|
615
|
+
vocabulary: ["ToneProp", "ChildrenProp", "ClassNameProp"]
|
|
524
616
|
},
|
|
525
617
|
DataTableProp: {
|
|
526
618
|
group: "data-display",
|
|
527
619
|
file: "components/data-display.prop.ts",
|
|
528
|
-
vocabulary: ["ColumnDefProp", "
|
|
620
|
+
vocabulary: ["ColumnDefProp", "DensityProp", "SortStateProp", "SelectedIdsProp"]
|
|
529
621
|
},
|
|
530
|
-
BadgeProp: { group: "data-display", file: "components/data-display.prop.ts", vocabulary: [] },
|
|
531
622
|
DialogConfirmProp: {
|
|
532
623
|
group: "feedback",
|
|
533
624
|
file: "components/feedback.prop.ts",
|
|
@@ -539,17 +630,57 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
539
630
|
"ConfirmLabelProp",
|
|
540
631
|
"CancelLabelProp",
|
|
541
632
|
"ConfirmVariantProp",
|
|
633
|
+
"OnValueChangeProp",
|
|
634
|
+
"PendingProp"
|
|
635
|
+
]
|
|
636
|
+
},
|
|
637
|
+
AlertDialogProp: {
|
|
638
|
+
group: "feedback",
|
|
639
|
+
file: "components/feedback.prop.ts",
|
|
640
|
+
vocabulary: [
|
|
641
|
+
"OpenProp",
|
|
642
|
+
"OnOpenChangeProp",
|
|
643
|
+
"TitleProp",
|
|
644
|
+
"DescriptionProp",
|
|
645
|
+
"ConfirmLabelProp",
|
|
646
|
+
"CancelLabelProp",
|
|
647
|
+
"ConfirmVariantProp",
|
|
648
|
+
{ field: "confirmPhrase", local: true, reason: "Destructive-dialog type-to-confirm friction phrase." },
|
|
542
649
|
"HandlerProp",
|
|
650
|
+
{ field: "keepOpenOnConfirm", local: true, reason: "AlertDialog-specific async completion behavior." },
|
|
543
651
|
"PendingProp"
|
|
544
652
|
]
|
|
545
653
|
},
|
|
546
654
|
DataStateProp: { group: "query", file: "components/query.prop.ts", vocabulary: ["HandlerProp"] },
|
|
655
|
+
AlertMutationFeedbackProp: {
|
|
656
|
+
group: "query",
|
|
657
|
+
file: "components/query.prop.ts",
|
|
658
|
+
vocabulary: [
|
|
659
|
+
{ field: "mutation", local: true, reason: "TanStack mutation lifecycle object consumed by this helper." },
|
|
660
|
+
"HandlerProp",
|
|
661
|
+
{ field: "showRetry", local: true, reason: "Query helper retry affordance toggle." },
|
|
662
|
+
{ field: "pending", local: true, reason: "Inline pending ReactNode slot, not boolean PendingProp state." },
|
|
663
|
+
"ClassNameProp"
|
|
664
|
+
]
|
|
665
|
+
},
|
|
547
666
|
MutationFeedbackProp: {
|
|
548
667
|
group: "query",
|
|
549
668
|
file: "components/query.prop.ts",
|
|
550
|
-
vocabulary: ["
|
|
669
|
+
vocabulary: ["OnValueChangeProp"]
|
|
670
|
+
},
|
|
671
|
+
ButtonRefetchProp: {
|
|
672
|
+
group: "query",
|
|
673
|
+
file: "components/query.prop.ts",
|
|
674
|
+
vocabulary: [
|
|
675
|
+
{ field: "query", local: true, reason: "TanStack query refetch handle consumed by this helper." },
|
|
676
|
+
"LabelProp"
|
|
677
|
+
]
|
|
678
|
+
},
|
|
679
|
+
QueryRefetchButtonProp: {
|
|
680
|
+
group: "query",
|
|
681
|
+
file: "components/query.prop.ts",
|
|
682
|
+
vocabulary: ["LabelProp", "ClassNameProp"]
|
|
551
683
|
},
|
|
552
|
-
QueryRefetchButtonProp: { group: "query", file: "components/query.prop.ts", vocabulary: [] },
|
|
553
684
|
InfiniteQueryStateProp: {
|
|
554
685
|
group: "query",
|
|
555
686
|
file: "components/query.prop.ts",
|
|
@@ -564,7 +695,7 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
564
695
|
AlertProp: {
|
|
565
696
|
group: "feedback",
|
|
566
697
|
file: "components/feedback.prop.ts",
|
|
567
|
-
vocabulary: ["AlertVariantProp", "IconProp", "
|
|
698
|
+
vocabulary: ["AlertVariantProp", "ToneProp", "IconProp", "OnValueChangeProp", "ClassNameProp", "ChildrenProp"]
|
|
568
699
|
},
|
|
569
700
|
AlertTitleProp: {
|
|
570
701
|
group: "feedback",
|
|
@@ -597,6 +728,16 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
597
728
|
file: "components/navigation.prop.ts",
|
|
598
729
|
vocabulary: ["LabelProp", "ChildrenProp"]
|
|
599
730
|
},
|
|
731
|
+
ToolbarProp: {
|
|
732
|
+
group: "navigation",
|
|
733
|
+
file: "components/navigation.prop.ts",
|
|
734
|
+
vocabulary: ["OnClearFiltersProp", "HasActiveFiltersProp", "ClassNameProp", "ChildrenProp"]
|
|
735
|
+
},
|
|
736
|
+
ToolbarGroupProp: {
|
|
737
|
+
group: "navigation",
|
|
738
|
+
file: "components/navigation.prop.ts",
|
|
739
|
+
vocabulary: ["LabelProp", "ClassNameProp", "ChildrenProp"]
|
|
740
|
+
},
|
|
600
741
|
PaginationProp: {
|
|
601
742
|
group: "navigation",
|
|
602
743
|
file: "components/navigation.prop.ts",
|
|
@@ -605,21 +746,36 @@ var COMPONENT_PROP_REGISTRY = {
|
|
|
605
746
|
StepsProp: {
|
|
606
747
|
group: "navigation",
|
|
607
748
|
file: "components/navigation.prop.ts",
|
|
608
|
-
vocabulary: ["ClassNameProp"]
|
|
749
|
+
vocabulary: ["SizeProp", "OnValueChangeProp", "ClassNameProp"]
|
|
609
750
|
},
|
|
610
|
-
StepItemProp: { group: "navigation", file: "components/navigation.prop.ts", vocabulary: [] },
|
|
751
|
+
StepItemProp: { group: "navigation", file: "components/navigation.prop.ts", vocabulary: ["TitleProp", "DescriptionProp", "IconProp", "DisabledProp"] },
|
|
611
752
|
StepStatusProp: { group: "navigation", file: "components/navigation.prop.ts", vocabulary: [] },
|
|
612
|
-
|
|
753
|
+
TabsProp: {
|
|
613
754
|
group: "navigation",
|
|
614
755
|
file: "components/navigation.prop.ts",
|
|
615
|
-
vocabulary: ["ClassNameProp"]
|
|
756
|
+
vocabulary: ["ValueProp", "DefaultValueProp", "OnValueChangeProp", "ClassNameProp"]
|
|
616
757
|
},
|
|
617
|
-
TabItemProp: { group: "navigation", file: "components/navigation.prop.ts", vocabulary: [] },
|
|
758
|
+
TabItemProp: { group: "navigation", file: "components/navigation.prop.ts", vocabulary: ["ValueProp", "LabelProp", "ChildrenProp", "DisabledProp"] },
|
|
618
759
|
FormRootProp: {
|
|
619
760
|
group: "form",
|
|
620
761
|
file: "components/form.prop.ts",
|
|
621
762
|
vocabulary: ["UseZodFormReturnProp", "ZodSchemaProp"]
|
|
622
763
|
},
|
|
764
|
+
ZodSchemaProp: {
|
|
765
|
+
group: "form",
|
|
766
|
+
file: "components/form.prop.ts",
|
|
767
|
+
vocabulary: ["ZodSchemaProp"]
|
|
768
|
+
},
|
|
769
|
+
UseZodFormReturnProp: {
|
|
770
|
+
group: "form",
|
|
771
|
+
file: "components/form.prop.ts",
|
|
772
|
+
vocabulary: ["UseZodFormReturnProp"]
|
|
773
|
+
},
|
|
774
|
+
FieldErrorMessageProp: {
|
|
775
|
+
group: "form",
|
|
776
|
+
file: "components/form.prop.ts",
|
|
777
|
+
vocabulary: ["FieldErrorMessageProp"]
|
|
778
|
+
},
|
|
623
779
|
FormFieldControlProp: {
|
|
624
780
|
group: "form",
|
|
625
781
|
file: "components/form.prop.ts",
|
|
@@ -635,7 +791,7 @@ var PROP_ALIASES_FORBIDDEN = {
|
|
|
635
791
|
description: "Use SubtitleProp (pages) or DescriptionProp (dialogs/empty states)",
|
|
636
792
|
actions: "Use ExtraProp (page header) or ActionsProp (toolbars)",
|
|
637
793
|
density: "Disambiguate: PageDensityProp vs TableDensityProp",
|
|
638
|
-
gap: "
|
|
794
|
+
gap: "Use GapProp; document any component-specific subset with a registry reason",
|
|
639
795
|
onClear: "Use OnClearFiltersProp",
|
|
640
796
|
pending: "Use PendingProp",
|
|
641
797
|
loading: "Use PendingProp or DataStateProp (query group)"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cn } from './chunk-U7N2A7A3.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var AspectRatio = React.forwardRef(({ className, ratio = 16 / 9, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7
|
+
AspectRatioPrimitive.Root,
|
|
8
|
+
{
|
|
9
|
+
ref,
|
|
10
|
+
"data-slot": "aspect-ratio",
|
|
11
|
+
ratio,
|
|
12
|
+
className: cn("ui-aspect-ratio", className),
|
|
13
|
+
...props
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
AspectRatio.displayName = AspectRatioPrimitive.Root.displayName;
|
|
17
|
+
|
|
18
|
+
export { AspectRatio };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { cn } from './chunk-U7N2A7A3.js';
|
|
2
|
+
import * as React2 from 'react';
|
|
3
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
7
|
+
|
|
8
|
+
var toggleVariants = cva("ui-toggle", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "ui-toggle-default",
|
|
12
|
+
outline: "ui-toggle-outline"
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
sm: "ui-toggle-sm",
|
|
16
|
+
default: "ui-toggle-default-size",
|
|
17
|
+
lg: "ui-toggle-lg"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "default",
|
|
22
|
+
size: "default"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
var Toggle = React2.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
26
|
+
TogglePrimitive.Root,
|
|
27
|
+
{
|
|
28
|
+
ref,
|
|
29
|
+
"data-slot": "toggle",
|
|
30
|
+
className: cn(toggleVariants({ variant, size }), className),
|
|
31
|
+
...props
|
|
32
|
+
}
|
|
33
|
+
));
|
|
34
|
+
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
35
|
+
var ToggleGroup = React2.forwardRef(({ className, variant = "default", size = "default", children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
36
|
+
ToggleGroupPrimitive.Root,
|
|
37
|
+
{
|
|
38
|
+
ref,
|
|
39
|
+
"data-slot": "toggle-group",
|
|
40
|
+
"data-variant": variant,
|
|
41
|
+
"data-size": size,
|
|
42
|
+
className: cn("ui-toggle-group", className),
|
|
43
|
+
...props,
|
|
44
|
+
children
|
|
45
|
+
}
|
|
46
|
+
));
|
|
47
|
+
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
48
|
+
var ToggleGroupItem = React2.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49
|
+
ToggleGroupPrimitive.Item,
|
|
50
|
+
{
|
|
51
|
+
ref,
|
|
52
|
+
"data-slot": "toggle-group-item",
|
|
53
|
+
className: cn(toggleVariants({ variant, size }), className),
|
|
54
|
+
...props
|
|
55
|
+
}
|
|
56
|
+
));
|
|
57
|
+
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
58
|
+
|
|
59
|
+
export { Toggle, ToggleGroup, ToggleGroupItem, toggleVariants };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SearchSelect } from './chunk-
|
|
2
|
-
import { controlTriggerClass } from './chunk-
|
|
1
|
+
import { SearchSelect } from './chunk-6QXQQAOQ.js';
|
|
2
|
+
import { controlTriggerClass } from './chunk-IBK5D2Q6.js';
|
|
3
3
|
import { cn } from './chunk-U7N2A7A3.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
@@ -144,7 +144,7 @@ function DataSelect({
|
|
|
144
144
|
loadOptions,
|
|
145
145
|
showSearch,
|
|
146
146
|
value = "",
|
|
147
|
-
|
|
147
|
+
onValueChange,
|
|
148
148
|
renderOption,
|
|
149
149
|
selectedLabel,
|
|
150
150
|
placeholder,
|
|
@@ -165,7 +165,7 @@ function DataSelect({
|
|
|
165
165
|
SearchSelect,
|
|
166
166
|
{
|
|
167
167
|
value,
|
|
168
|
-
|
|
168
|
+
onValueChange,
|
|
169
169
|
options,
|
|
170
170
|
loadOptions,
|
|
171
171
|
renderOption,
|
|
@@ -200,7 +200,7 @@ function DataSelect({
|
|
|
200
200
|
{
|
|
201
201
|
"data-slot": "select",
|
|
202
202
|
value: value || void 0,
|
|
203
|
-
onValueChange: (next) =>
|
|
203
|
+
onValueChange: (next) => onValueChange?.(
|
|
204
204
|
next,
|
|
205
205
|
options.find((option) => option.value === next)
|
|
206
206
|
),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|