@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.js
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
require('./chunks/chunk-JNMCYWGY.js');
|
|
4
4
|
var zod = require('zod');
|
|
5
5
|
|
|
6
|
+
var breadcrumbItemSchema = zod.z.object({
|
|
7
|
+
label: zod.z.any().describe("Display text or element (ReactNode)"),
|
|
8
|
+
href: zod.z.string().optional().describe("Link URL"),
|
|
9
|
+
onClick: zod.z.any().optional().describe("Click handler () => void")
|
|
10
|
+
});
|
|
11
|
+
var breadcrumbPropsSchema = zod.z.object({
|
|
12
|
+
items: zod.z.array(breadcrumbItemSchema).describe("Breadcrumb items array (required)"),
|
|
13
|
+
separator: zod.z.any().optional().describe("Custom separator (ReactNode). Default: chevron"),
|
|
14
|
+
maxItems: zod.z.number().optional().describe('Max visible items (collapses middle with "...")'),
|
|
15
|
+
className: zod.z.string().optional().describe("Style override")
|
|
16
|
+
}).describe("Breadcrumb navigation. Shows current location path.");
|
|
6
17
|
var buttonPropsSchema = zod.z.object({
|
|
7
18
|
semantic: zod.z.enum(["primary", "secondary", "normal", "danger"]).default("primary").describe(
|
|
8
19
|
"Color theme (primary=main, secondary=sub, normal=neutral, danger=danger)"
|
|
@@ -50,6 +61,10 @@ var textInputPropsSchema = zod.z.object({
|
|
|
50
61
|
className: zod.z.string().optional().describe("Style override")
|
|
51
62
|
}).describe("Text input field. Supports label, description, prefix/suffix icons, clearable, character counter.");
|
|
52
63
|
var textAreaPropsSchema = zod.z.object({
|
|
64
|
+
label: zod.z.string().optional().describe("Label text above the textarea"),
|
|
65
|
+
description: zod.z.string().optional().describe("Helper/error description below the textarea"),
|
|
66
|
+
size: zod.z.enum(["lg", "md"]).optional().describe("Font size variant (lg: 16px, md: 14px)"),
|
|
67
|
+
resize: zod.z.enum(["default", "auto", "none"]).optional().describe("Resize mode (default: manual, auto: auto-grow, none: fixed)"),
|
|
53
68
|
error: zod.z.boolean().optional().describe("Error state (auto aria-invalid)"),
|
|
54
69
|
showCount: zod.z.boolean().optional().describe("Show character count (requires maxLength)"),
|
|
55
70
|
maxLength: zod.z.number().optional().describe("Maximum character count"),
|
|
@@ -67,7 +82,7 @@ var textAreaPropsSchema = zod.z.object({
|
|
|
67
82
|
onBlur: zod.z.any().optional().describe("Blur callback"),
|
|
68
83
|
onFocus: zod.z.any().optional().describe("Focus callback"),
|
|
69
84
|
className: zod.z.string().optional().describe("Style override")
|
|
70
|
-
}).describe("Multi-line text input
|
|
85
|
+
}).describe("Multi-line text input with label, description, character counter, and resize modes.");
|
|
71
86
|
var selectPropsSchema = zod.z.object({
|
|
72
87
|
value: zod.z.string().optional().describe("Selected value"),
|
|
73
88
|
placeholder: zod.z.string().optional().describe("Placeholder"),
|
|
@@ -86,6 +101,55 @@ var selectItemPropsSchema = zod.z.object({
|
|
|
86
101
|
disabled: zod.z.boolean().optional().describe("Disabled"),
|
|
87
102
|
className: zod.z.string().optional().describe("Style override")
|
|
88
103
|
}).describe("Individual option within Select.");
|
|
104
|
+
var dropdownMenuItemSchema = zod.z.object({
|
|
105
|
+
label: zod.z.any().describe("Menu item text (ReactNode)"),
|
|
106
|
+
value: zod.z.string().optional().describe("Item identifier"),
|
|
107
|
+
icon: zod.z.any().optional().describe("Left icon (ReactNode)"),
|
|
108
|
+
onClick: zod.z.any().optional().describe("Click handler () => void"),
|
|
109
|
+
disabled: zod.z.boolean().optional().describe("Disabled"),
|
|
110
|
+
danger: zod.z.boolean().optional().describe("Danger/destructive style"),
|
|
111
|
+
separator: zod.z.boolean().optional().describe("If true, renders as separator line")
|
|
112
|
+
});
|
|
113
|
+
var dropdownMenuPropsSchema = zod.z.object({
|
|
114
|
+
children: zod.z.any().describe("Trigger element (ReactNode, required)"),
|
|
115
|
+
items: zod.z.array(dropdownMenuItemSchema).describe("Menu items array (required)"),
|
|
116
|
+
align: zod.z.enum(["start", "center", "end"]).default("start").describe("Alignment"),
|
|
117
|
+
side: zod.z.enum(["top", "right", "bottom", "left"]).default("bottom").describe("Position"),
|
|
118
|
+
className: zod.z.string().optional().describe("Trigger wrapper style"),
|
|
119
|
+
contentClassName: zod.z.string().optional().describe("Content panel style")
|
|
120
|
+
}).describe("Dropdown menu. Based on Radix DropdownMenu. Action menu for context/more menus.");
|
|
121
|
+
var toggleGroupItemSchema = zod.z.object({
|
|
122
|
+
value: zod.z.string().describe("Item value"),
|
|
123
|
+
label: zod.z.any().describe("Display label (ReactNode)"),
|
|
124
|
+
icon: zod.z.any().optional().describe("Icon (ReactNode)"),
|
|
125
|
+
disabled: zod.z.boolean().optional().describe("Disabled")
|
|
126
|
+
});
|
|
127
|
+
var toggleGroupPropsSchema = zod.z.object({
|
|
128
|
+
type: zod.z.enum(["single", "multiple"]).default("single").describe("Selection mode"),
|
|
129
|
+
items: zod.z.array(toggleGroupItemSchema).describe("Toggle items array (required)"),
|
|
130
|
+
value: zod.z.any().optional().describe("Controlled value (string | string[])"),
|
|
131
|
+
defaultValue: zod.z.any().optional().describe("Default value"),
|
|
132
|
+
onValueChange: zod.z.any().optional().describe("Value change callback"),
|
|
133
|
+
variant: zod.z.enum(["default", "outline"]).default("default").describe("Style variant"),
|
|
134
|
+
size: zod.z.enum(["sm", "md", "lg"]).default("md").describe("Size"),
|
|
135
|
+
disabled: zod.z.boolean().optional().describe("Disable all items"),
|
|
136
|
+
className: zod.z.string().optional().describe("Style override")
|
|
137
|
+
}).describe("Toggle group / Segment control. Based on Radix ToggleGroup.");
|
|
138
|
+
var sliderPropsSchema = zod.z.object({
|
|
139
|
+
value: zod.z.array(zod.z.number()).optional().describe("Controlled value (number[]). Use [50] for single, [20, 80] for range"),
|
|
140
|
+
defaultValue: zod.z.array(zod.z.number()).optional().describe("Default value"),
|
|
141
|
+
min: zod.z.number().default(0).describe("Minimum"),
|
|
142
|
+
max: zod.z.number().default(100).describe("Maximum"),
|
|
143
|
+
step: zod.z.number().default(1).describe("Step increment"),
|
|
144
|
+
size: zod.z.enum(["sm", "md", "lg"]).default("md").describe("Track height / thumb size"),
|
|
145
|
+
showValue: zod.z.boolean().default(false).describe("Show current value text"),
|
|
146
|
+
formatValue: zod.z.any().optional().describe("Value format function (value: number) => string"),
|
|
147
|
+
label: zod.z.string().optional().describe("Label text"),
|
|
148
|
+
disabled: zod.z.boolean().optional().describe("Disabled"),
|
|
149
|
+
onValueChange: zod.z.any().optional().describe("Value change callback (value: number[]) => void"),
|
|
150
|
+
onValueCommit: zod.z.any().optional().describe("Committed value callback (on pointer up)"),
|
|
151
|
+
className: zod.z.string().optional().describe("Style override")
|
|
152
|
+
}).describe("Slider / Range input. Based on Radix Slider. Supports single and range mode.");
|
|
89
153
|
var checkBoxPropsSchema = zod.z.object({
|
|
90
154
|
size: zod.z.enum(["sm", "md"]).default("md").describe("Size"),
|
|
91
155
|
shape: zod.z.enum(["square", "round"]).default("square").describe("Shape"),
|
|
@@ -144,6 +208,37 @@ var chipPropsSchema = zod.z.object({
|
|
|
144
208
|
onClick: zod.z.any().optional().describe("Click event handler"),
|
|
145
209
|
className: zod.z.string().optional().describe("Style override")
|
|
146
210
|
}).describe("Chip/tag/badge. Close button displayed via onClose prop.");
|
|
211
|
+
var badgePropsSchema = zod.z.object({
|
|
212
|
+
count: zod.z.number().optional().describe("Badge count number"),
|
|
213
|
+
max: zod.z.number().default(99).describe('Max count (shows "99+" when exceeded)'),
|
|
214
|
+
dot: zod.z.boolean().default(false).describe("Show as dot instead of count"),
|
|
215
|
+
showZero: zod.z.boolean().default(false).describe("Show badge when count is 0"),
|
|
216
|
+
variant: zod.z.enum(["danger", "primary", "secondary", "info", "success", "warning"]).default("danger").describe("Color variant"),
|
|
217
|
+
size: zod.z.enum(["sm", "md", "lg"]).default("md").describe("Size"),
|
|
218
|
+
offset: zod.z.tuple([zod.z.number(), zod.z.number()]).optional().describe("Position offset [x, y] in px"),
|
|
219
|
+
children: zod.z.any().optional().describe("Anchor element to attach badge to (ReactNode)"),
|
|
220
|
+
className: zod.z.string().optional().describe("Style override")
|
|
221
|
+
}).describe("Badge indicator. Dot or count display. Wraps children when provided.");
|
|
222
|
+
var progressPropsSchema = zod.z.object({
|
|
223
|
+
value: zod.z.number().default(0).describe("Current progress value"),
|
|
224
|
+
max: zod.z.number().default(100).describe("Maximum value"),
|
|
225
|
+
variant: zod.z.enum(["primary", "success", "warning", "danger", "info"]).default("primary").describe("Color variant"),
|
|
226
|
+
size: zod.z.enum(["sm", "md", "lg"]).default("md").describe("Bar height"),
|
|
227
|
+
showValue: zod.z.boolean().default(false).describe("Show percentage text"),
|
|
228
|
+
indeterminate: zod.z.boolean().default(false).describe("Indeterminate loading animation"),
|
|
229
|
+
label: zod.z.string().optional().describe("Label text above the bar"),
|
|
230
|
+
className: zod.z.string().optional().describe("Style override")
|
|
231
|
+
}).describe("Progress bar. Linear progress indicator with percentage display.");
|
|
232
|
+
var alertPropsSchema = zod.z.object({
|
|
233
|
+
variant: zod.z.enum(["info", "success", "warning", "danger"]).default("info").describe("Alert type / color"),
|
|
234
|
+
title: zod.z.string().optional().describe("Alert title (bold)"),
|
|
235
|
+
children: zod.z.any().optional().describe("Alert description (ReactNode)"),
|
|
236
|
+
icon: zod.z.any().optional().describe("Custom icon (ReactNode). Auto icon by variant if omitted"),
|
|
237
|
+
closable: zod.z.boolean().default(false).describe("Show close button"),
|
|
238
|
+
onClose: zod.z.any().optional().describe("Close callback () => void"),
|
|
239
|
+
action: zod.z.any().optional().describe("Action area (ReactNode, e.g. Button)"),
|
|
240
|
+
className: zod.z.string().optional().describe("Style override")
|
|
241
|
+
}).describe("Alert / Banner. Inline notification with icon, title, description.");
|
|
147
242
|
var spinnerPropsSchema = zod.z.object({
|
|
148
243
|
size: zod.z.number().default(20).describe("Size in px"),
|
|
149
244
|
color: zod.z.string().optional().describe("Color (CSS color value, default currentColor)"),
|
|
@@ -151,6 +246,18 @@ var spinnerPropsSchema = zod.z.object({
|
|
|
151
246
|
style: zod.z.any().optional().describe("Inline style (CSSProperties)"),
|
|
152
247
|
className: zod.z.string().optional().describe("Color override etc.")
|
|
153
248
|
}).describe('Loading indicator. SVG-based. Built-in role="status".');
|
|
249
|
+
var stepItemSchema = zod.z.object({
|
|
250
|
+
label: zod.z.string().describe("Step title"),
|
|
251
|
+
description: zod.z.string().optional().describe("Step description")
|
|
252
|
+
});
|
|
253
|
+
var stepperPropsSchema = zod.z.object({
|
|
254
|
+
steps: zod.z.array(stepItemSchema).describe("Step items array (required)"),
|
|
255
|
+
current: zod.z.number().default(0).describe("Current step index (0-based)"),
|
|
256
|
+
status: zod.z.enum(["process", "error"]).default("process").describe("Current step status"),
|
|
257
|
+
orientation: zod.z.enum(["horizontal", "vertical"]).default("horizontal").describe("Layout direction"),
|
|
258
|
+
size: zod.z.enum(["sm", "md"]).default("md").describe("Size"),
|
|
259
|
+
className: zod.z.string().optional().describe("Style override")
|
|
260
|
+
}).describe("Stepper. Step-by-step progress indicator.");
|
|
154
261
|
var skeletonPropsSchema = zod.z.object({
|
|
155
262
|
as: zod.z.enum(["div", "span"]).default("div").describe("Rendered tag"),
|
|
156
263
|
circle: zod.z.boolean().default(false).describe("Circle skeleton (rounded-full)"),
|
|
@@ -385,18 +492,33 @@ var ellipsisPropsSchema = zod.z.object({
|
|
|
385
492
|
onShowMoreLessClick: zod.z.any().optional().describe("Show more/less click callback () => void"),
|
|
386
493
|
className: zod.z.string().optional().describe("Style override")
|
|
387
494
|
}).describe("Text ellipsis. Built-in show more/less toggle.");
|
|
495
|
+
var emptyStatePropsSchema = zod.z.object({
|
|
496
|
+
icon: zod.z.any().optional().describe("Custom icon (ReactNode). Default inbox icon"),
|
|
497
|
+
title: zod.z.string().optional().describe("Title text"),
|
|
498
|
+
description: zod.z.string().optional().describe("Description text"),
|
|
499
|
+
action: zod.z.any().optional().describe("Action area (ReactNode, e.g. Button)"),
|
|
500
|
+
size: zod.z.enum(["sm", "md", "lg"]).default("md").describe("Overall size"),
|
|
501
|
+
children: zod.z.any().optional().describe("Additional content (ReactNode)"),
|
|
502
|
+
className: zod.z.string().optional().describe("Style override")
|
|
503
|
+
}).describe("Empty state placeholder. Shown when data is empty or unavailable.");
|
|
388
504
|
var numberInputPropsSchema = zod.z.object({
|
|
505
|
+
variant: zod.z.enum(["basic", "bind"]).default("basic").describe("Variant: basic (right chevron arrows) or bind (left/right +/- buttons)"),
|
|
389
506
|
value: zod.z.union([zod.z.number(), zod.z.string()]).optional().describe("Current value"),
|
|
390
|
-
size: zod.z.enum(["
|
|
507
|
+
size: zod.z.enum(["lg", "xl"]).default("lg").describe("Size"),
|
|
391
508
|
error: zod.z.boolean().optional().describe("Error state"),
|
|
392
509
|
min: zod.z.number().optional().describe("Minimum value"),
|
|
393
|
-
max: zod.z.number().optional().describe(
|
|
510
|
+
max: zod.z.number().optional().describe('Maximum value. When set, "Max {value}" is displayed in the header. Clicking it fills the input with the max value'),
|
|
394
511
|
step: zod.z.number().default(1).describe("Step increment"),
|
|
395
512
|
digit: zod.z.number().default(0).describe("Decimal places"),
|
|
396
|
-
|
|
513
|
+
label: zod.z.string().optional().describe("Label text displayed above input"),
|
|
514
|
+
description: zod.z.string().optional().describe("Description text displayed below input"),
|
|
515
|
+
showMax: zod.z.boolean().optional().describe('Show "Max {value}" in header (defaults to true when max is set)'),
|
|
516
|
+
hideButtons: zod.z.boolean().default(false).describe(
|
|
517
|
+
"Hide built-in buttons. Use with numberInputBind for external button event binding"
|
|
518
|
+
),
|
|
397
519
|
disabled: zod.z.boolean().optional().describe("Disabled"),
|
|
398
|
-
readOnly: zod.z.boolean().optional().describe("Read-only (includes hiding
|
|
399
|
-
placeholder: zod.z.string().optional().describe(
|
|
520
|
+
readOnly: zod.z.boolean().optional().describe("Read-only (includes hiding buttons)"),
|
|
521
|
+
placeholder: zod.z.string().optional().describe('Placeholder (default: "0")'),
|
|
400
522
|
name: zod.z.string().optional().describe("Form field name"),
|
|
401
523
|
id: zod.z.string().optional().describe("Element ID"),
|
|
402
524
|
autoFocus: zod.z.boolean().optional().describe("Auto focus"),
|
|
@@ -405,7 +527,7 @@ var numberInputPropsSchema = zod.z.object({
|
|
|
405
527
|
onFocus: zod.z.any().optional().describe("Focus callback"),
|
|
406
528
|
className: zod.z.string().optional().describe("Style override")
|
|
407
529
|
}).describe(
|
|
408
|
-
"Number input
|
|
530
|
+
"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."
|
|
409
531
|
);
|
|
410
532
|
var priceInputPropsSchema = zod.z.object({
|
|
411
533
|
size: zod.z.enum(["md", "lg", "xl"]).default("md").describe("Size"),
|
|
@@ -620,9 +742,48 @@ var toasterPropsSchema = zod.z.object({
|
|
|
620
742
|
}).describe(
|
|
621
743
|
"Toaster config. Place once at app root. Display notifications via toast(). Based on sonner."
|
|
622
744
|
);
|
|
745
|
+
var tagInputPropsSchema = zod.z.object({
|
|
746
|
+
value: zod.z.array(zod.z.string()).optional().describe("Controlled tags array"),
|
|
747
|
+
defaultValue: zod.z.array(zod.z.string()).optional().describe("Default tags"),
|
|
748
|
+
onChange: zod.z.any().optional().describe("Tags change callback (tags: string[]) => void"),
|
|
749
|
+
placeholder: zod.z.string().default("\uD0DC\uADF8 \uC785\uB825 \uD6C4 Enter").describe("Input placeholder"),
|
|
750
|
+
max: zod.z.number().optional().describe("Maximum number of tags"),
|
|
751
|
+
disabled: zod.z.boolean().optional().describe("Disabled"),
|
|
752
|
+
allowDuplicates: zod.z.boolean().default(false).describe("Allow duplicate tags"),
|
|
753
|
+
label: zod.z.string().optional().describe("Label text"),
|
|
754
|
+
description: zod.z.string().optional().describe("Helper text below input"),
|
|
755
|
+
size: zod.z.enum(["sm", "md", "lg"]).default("md").describe("Size"),
|
|
756
|
+
className: zod.z.string().optional().describe("Style override")
|
|
757
|
+
}).describe("Tag input. Enter key to add, Backspace to delete last tag.");
|
|
758
|
+
var nxImagePropsSchema = zod.z.object({
|
|
759
|
+
src: zod.z.string().optional().describe("Image source URL"),
|
|
760
|
+
alt: zod.z.string().optional().describe("Alt text"),
|
|
761
|
+
fallback: zod.z.any().optional().describe("Custom fallback element (ReactNode)"),
|
|
762
|
+
fallbackSrc: zod.z.string().optional().describe("Fallback image URL on error"),
|
|
763
|
+
aspectRatio: zod.z.string().optional().describe('CSS aspect-ratio (e.g. "16/9", "1/1")'),
|
|
764
|
+
objectFit: zod.z.enum(["cover", "contain", "fill", "none"]).default("cover").describe("Object-fit mode"),
|
|
765
|
+
lazy: zod.z.boolean().default(true).describe('Enable lazy loading (loading="lazy")'),
|
|
766
|
+
wrapperClassName: zod.z.string().optional().describe("Wrapper div style"),
|
|
767
|
+
className: zod.z.string().optional().describe("Image element style")
|
|
768
|
+
}).describe("Enhanced image. Lazy loading, fallback, aspect-ratio support.");
|
|
769
|
+
var datePickerPropsSchema = zod.z.object({
|
|
770
|
+
value: zod.z.any().optional().describe("Controlled date value (Date)"),
|
|
771
|
+
defaultValue: zod.z.any().optional().describe("Default date (Date)"),
|
|
772
|
+
onChange: zod.z.any().optional().describe("Date change callback (date: Date | undefined) => void"),
|
|
773
|
+
placeholder: zod.z.string().default("\uB0A0\uC9DC \uC120\uD0DD").describe("Placeholder text"),
|
|
774
|
+
disabled: zod.z.boolean().default(false).describe("Disabled"),
|
|
775
|
+
minDate: zod.z.any().optional().describe("Minimum selectable date (Date)"),
|
|
776
|
+
maxDate: zod.z.any().optional().describe("Maximum selectable date (Date)"),
|
|
777
|
+
locale: zod.z.enum(["ko", "en"]).default("ko").describe("Calendar locale"),
|
|
778
|
+
formatStr: zod.z.string().default("yyyy-MM-dd").describe("Date format string (date-fns format)"),
|
|
779
|
+
className: zod.z.string().optional().describe("Style override")
|
|
780
|
+
}).describe("DatePicker. Calendar popup for date selection. Based on react-day-picker.");
|
|
623
781
|
|
|
624
782
|
exports.accordionPropsSchema = accordionPropsSchema;
|
|
783
|
+
exports.alertPropsSchema = alertPropsSchema;
|
|
625
784
|
exports.avatarPropsSchema = avatarPropsSchema;
|
|
785
|
+
exports.badgePropsSchema = badgePropsSchema;
|
|
786
|
+
exports.breadcrumbPropsSchema = breadcrumbPropsSchema;
|
|
626
787
|
exports.buttonPropsSchema = buttonPropsSchema;
|
|
627
788
|
exports.carouselButtonPropsSchema = carouselButtonPropsSchema;
|
|
628
789
|
exports.carouselDotsPropsSchema = carouselDotsPropsSchema;
|
|
@@ -634,6 +795,7 @@ exports.clientOnlyPropsSchema = clientOnlyPropsSchema;
|
|
|
634
795
|
exports.countdownPropsSchema = countdownPropsSchema;
|
|
635
796
|
exports.counterPropsSchema = counterPropsSchema;
|
|
636
797
|
exports.dataListPropsSchema = dataListPropsSchema;
|
|
798
|
+
exports.datePickerPropsSchema = datePickerPropsSchema;
|
|
637
799
|
exports.dividerPropsSchema = dividerPropsSchema;
|
|
638
800
|
exports.drawerClosePropsSchema = drawerClosePropsSchema;
|
|
639
801
|
exports.drawerContentPropsSchema = drawerContentPropsSchema;
|
|
@@ -641,32 +803,40 @@ exports.drawerDescriptionPropsSchema = drawerDescriptionPropsSchema;
|
|
|
641
803
|
exports.drawerPropsSchema = drawerPropsSchema;
|
|
642
804
|
exports.drawerTitlePropsSchema = drawerTitlePropsSchema;
|
|
643
805
|
exports.drawerTriggerPropsSchema = drawerTriggerPropsSchema;
|
|
806
|
+
exports.dropdownMenuPropsSchema = dropdownMenuPropsSchema;
|
|
644
807
|
exports.ellipsisPropsSchema = ellipsisPropsSchema;
|
|
808
|
+
exports.emptyStatePropsSchema = emptyStatePropsSchema;
|
|
645
809
|
exports.errorBoundaryPropsSchema = errorBoundaryPropsSchema;
|
|
646
810
|
exports.infiniteScrollPropsSchema = infiniteScrollPropsSchema;
|
|
647
811
|
exports.marqueePropsSchema = marqueePropsSchema;
|
|
648
812
|
exports.modalCallSchema = modalCallSchema;
|
|
649
813
|
exports.modalTemplatePropsSchema = modalTemplatePropsSchema;
|
|
650
814
|
exports.numberInputPropsSchema = numberInputPropsSchema;
|
|
815
|
+
exports.nxImagePropsSchema = nxImagePropsSchema;
|
|
651
816
|
exports.paginationPropsSchema = paginationPropsSchema;
|
|
652
817
|
exports.popoverPropsSchema = popoverPropsSchema;
|
|
653
818
|
exports.priceInputPropsSchema = priceInputPropsSchema;
|
|
819
|
+
exports.progressPropsSchema = progressPropsSchema;
|
|
654
820
|
exports.radioGroupPropsSchema = radioGroupPropsSchema;
|
|
655
821
|
exports.radioItemPropsSchema = radioItemPropsSchema;
|
|
656
822
|
exports.selectItemPropsSchema = selectItemPropsSchema;
|
|
657
823
|
exports.selectPropsSchema = selectPropsSchema;
|
|
658
824
|
exports.skeletonPropsSchema = skeletonPropsSchema;
|
|
825
|
+
exports.sliderPropsSchema = sliderPropsSchema;
|
|
659
826
|
exports.spinnerPropsSchema = spinnerPropsSchema;
|
|
827
|
+
exports.stepperPropsSchema = stepperPropsSchema;
|
|
660
828
|
exports.switchPropsSchema = switchPropsSchema;
|
|
661
829
|
exports.tabPropsSchema = tabPropsSchema;
|
|
662
830
|
exports.tablePropsSchema = tablePropsSchema;
|
|
663
831
|
exports.tableRowPropsSchema = tableRowPropsSchema;
|
|
832
|
+
exports.tagInputPropsSchema = tagInputPropsSchema;
|
|
664
833
|
exports.tdColumnPropsSchema = tdColumnPropsSchema;
|
|
665
834
|
exports.textAreaPropsSchema = textAreaPropsSchema;
|
|
666
835
|
exports.textInputPropsSchema = textInputPropsSchema;
|
|
667
836
|
exports.themeProviderPropsSchema = themeProviderPropsSchema;
|
|
668
837
|
exports.toastOptionsSchema = toastOptionsSchema;
|
|
669
838
|
exports.toasterPropsSchema = toasterPropsSchema;
|
|
839
|
+
exports.toggleGroupPropsSchema = toggleGroupPropsSchema;
|
|
670
840
|
exports.tooltipPropsSchema = tooltipPropsSchema;
|
|
671
841
|
exports.virtualGridPropsSchema = virtualGridPropsSchema;
|
|
672
842
|
exports.virtualListPropsSchema = virtualListPropsSchema;
|
package/dist/schemas.mjs
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import './chunks/chunk-CVYXRSXT.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
+
var breadcrumbItemSchema = z.object({
|
|
5
|
+
label: z.any().describe("Display text or element (ReactNode)"),
|
|
6
|
+
href: z.string().optional().describe("Link URL"),
|
|
7
|
+
onClick: z.any().optional().describe("Click handler () => void")
|
|
8
|
+
});
|
|
9
|
+
var breadcrumbPropsSchema = z.object({
|
|
10
|
+
items: z.array(breadcrumbItemSchema).describe("Breadcrumb items array (required)"),
|
|
11
|
+
separator: z.any().optional().describe("Custom separator (ReactNode). Default: chevron"),
|
|
12
|
+
maxItems: z.number().optional().describe('Max visible items (collapses middle with "...")'),
|
|
13
|
+
className: z.string().optional().describe("Style override")
|
|
14
|
+
}).describe("Breadcrumb navigation. Shows current location path.");
|
|
4
15
|
var buttonPropsSchema = z.object({
|
|
5
16
|
semantic: z.enum(["primary", "secondary", "normal", "danger"]).default("primary").describe(
|
|
6
17
|
"Color theme (primary=main, secondary=sub, normal=neutral, danger=danger)"
|
|
@@ -48,6 +59,10 @@ var textInputPropsSchema = z.object({
|
|
|
48
59
|
className: z.string().optional().describe("Style override")
|
|
49
60
|
}).describe("Text input field. Supports label, description, prefix/suffix icons, clearable, character counter.");
|
|
50
61
|
var textAreaPropsSchema = z.object({
|
|
62
|
+
label: z.string().optional().describe("Label text above the textarea"),
|
|
63
|
+
description: z.string().optional().describe("Helper/error description below the textarea"),
|
|
64
|
+
size: z.enum(["lg", "md"]).optional().describe("Font size variant (lg: 16px, md: 14px)"),
|
|
65
|
+
resize: z.enum(["default", "auto", "none"]).optional().describe("Resize mode (default: manual, auto: auto-grow, none: fixed)"),
|
|
51
66
|
error: z.boolean().optional().describe("Error state (auto aria-invalid)"),
|
|
52
67
|
showCount: z.boolean().optional().describe("Show character count (requires maxLength)"),
|
|
53
68
|
maxLength: z.number().optional().describe("Maximum character count"),
|
|
@@ -65,7 +80,7 @@ var textAreaPropsSchema = z.object({
|
|
|
65
80
|
onBlur: z.any().optional().describe("Blur callback"),
|
|
66
81
|
onFocus: z.any().optional().describe("Focus callback"),
|
|
67
82
|
className: z.string().optional().describe("Style override")
|
|
68
|
-
}).describe("Multi-line text input
|
|
83
|
+
}).describe("Multi-line text input with label, description, character counter, and resize modes.");
|
|
69
84
|
var selectPropsSchema = z.object({
|
|
70
85
|
value: z.string().optional().describe("Selected value"),
|
|
71
86
|
placeholder: z.string().optional().describe("Placeholder"),
|
|
@@ -84,6 +99,55 @@ var selectItemPropsSchema = z.object({
|
|
|
84
99
|
disabled: z.boolean().optional().describe("Disabled"),
|
|
85
100
|
className: z.string().optional().describe("Style override")
|
|
86
101
|
}).describe("Individual option within Select.");
|
|
102
|
+
var dropdownMenuItemSchema = z.object({
|
|
103
|
+
label: z.any().describe("Menu item text (ReactNode)"),
|
|
104
|
+
value: z.string().optional().describe("Item identifier"),
|
|
105
|
+
icon: z.any().optional().describe("Left icon (ReactNode)"),
|
|
106
|
+
onClick: z.any().optional().describe("Click handler () => void"),
|
|
107
|
+
disabled: z.boolean().optional().describe("Disabled"),
|
|
108
|
+
danger: z.boolean().optional().describe("Danger/destructive style"),
|
|
109
|
+
separator: z.boolean().optional().describe("If true, renders as separator line")
|
|
110
|
+
});
|
|
111
|
+
var dropdownMenuPropsSchema = z.object({
|
|
112
|
+
children: z.any().describe("Trigger element (ReactNode, required)"),
|
|
113
|
+
items: z.array(dropdownMenuItemSchema).describe("Menu items array (required)"),
|
|
114
|
+
align: z.enum(["start", "center", "end"]).default("start").describe("Alignment"),
|
|
115
|
+
side: z.enum(["top", "right", "bottom", "left"]).default("bottom").describe("Position"),
|
|
116
|
+
className: z.string().optional().describe("Trigger wrapper style"),
|
|
117
|
+
contentClassName: z.string().optional().describe("Content panel style")
|
|
118
|
+
}).describe("Dropdown menu. Based on Radix DropdownMenu. Action menu for context/more menus.");
|
|
119
|
+
var toggleGroupItemSchema = z.object({
|
|
120
|
+
value: z.string().describe("Item value"),
|
|
121
|
+
label: z.any().describe("Display label (ReactNode)"),
|
|
122
|
+
icon: z.any().optional().describe("Icon (ReactNode)"),
|
|
123
|
+
disabled: z.boolean().optional().describe("Disabled")
|
|
124
|
+
});
|
|
125
|
+
var toggleGroupPropsSchema = z.object({
|
|
126
|
+
type: z.enum(["single", "multiple"]).default("single").describe("Selection mode"),
|
|
127
|
+
items: z.array(toggleGroupItemSchema).describe("Toggle items array (required)"),
|
|
128
|
+
value: z.any().optional().describe("Controlled value (string | string[])"),
|
|
129
|
+
defaultValue: z.any().optional().describe("Default value"),
|
|
130
|
+
onValueChange: z.any().optional().describe("Value change callback"),
|
|
131
|
+
variant: z.enum(["default", "outline"]).default("default").describe("Style variant"),
|
|
132
|
+
size: z.enum(["sm", "md", "lg"]).default("md").describe("Size"),
|
|
133
|
+
disabled: z.boolean().optional().describe("Disable all items"),
|
|
134
|
+
className: z.string().optional().describe("Style override")
|
|
135
|
+
}).describe("Toggle group / Segment control. Based on Radix ToggleGroup.");
|
|
136
|
+
var sliderPropsSchema = z.object({
|
|
137
|
+
value: z.array(z.number()).optional().describe("Controlled value (number[]). Use [50] for single, [20, 80] for range"),
|
|
138
|
+
defaultValue: z.array(z.number()).optional().describe("Default value"),
|
|
139
|
+
min: z.number().default(0).describe("Minimum"),
|
|
140
|
+
max: z.number().default(100).describe("Maximum"),
|
|
141
|
+
step: z.number().default(1).describe("Step increment"),
|
|
142
|
+
size: z.enum(["sm", "md", "lg"]).default("md").describe("Track height / thumb size"),
|
|
143
|
+
showValue: z.boolean().default(false).describe("Show current value text"),
|
|
144
|
+
formatValue: z.any().optional().describe("Value format function (value: number) => string"),
|
|
145
|
+
label: z.string().optional().describe("Label text"),
|
|
146
|
+
disabled: z.boolean().optional().describe("Disabled"),
|
|
147
|
+
onValueChange: z.any().optional().describe("Value change callback (value: number[]) => void"),
|
|
148
|
+
onValueCommit: z.any().optional().describe("Committed value callback (on pointer up)"),
|
|
149
|
+
className: z.string().optional().describe("Style override")
|
|
150
|
+
}).describe("Slider / Range input. Based on Radix Slider. Supports single and range mode.");
|
|
87
151
|
var checkBoxPropsSchema = z.object({
|
|
88
152
|
size: z.enum(["sm", "md"]).default("md").describe("Size"),
|
|
89
153
|
shape: z.enum(["square", "round"]).default("square").describe("Shape"),
|
|
@@ -142,6 +206,37 @@ var chipPropsSchema = z.object({
|
|
|
142
206
|
onClick: z.any().optional().describe("Click event handler"),
|
|
143
207
|
className: z.string().optional().describe("Style override")
|
|
144
208
|
}).describe("Chip/tag/badge. Close button displayed via onClose prop.");
|
|
209
|
+
var badgePropsSchema = z.object({
|
|
210
|
+
count: z.number().optional().describe("Badge count number"),
|
|
211
|
+
max: z.number().default(99).describe('Max count (shows "99+" when exceeded)'),
|
|
212
|
+
dot: z.boolean().default(false).describe("Show as dot instead of count"),
|
|
213
|
+
showZero: z.boolean().default(false).describe("Show badge when count is 0"),
|
|
214
|
+
variant: z.enum(["danger", "primary", "secondary", "info", "success", "warning"]).default("danger").describe("Color variant"),
|
|
215
|
+
size: z.enum(["sm", "md", "lg"]).default("md").describe("Size"),
|
|
216
|
+
offset: z.tuple([z.number(), z.number()]).optional().describe("Position offset [x, y] in px"),
|
|
217
|
+
children: z.any().optional().describe("Anchor element to attach badge to (ReactNode)"),
|
|
218
|
+
className: z.string().optional().describe("Style override")
|
|
219
|
+
}).describe("Badge indicator. Dot or count display. Wraps children when provided.");
|
|
220
|
+
var progressPropsSchema = z.object({
|
|
221
|
+
value: z.number().default(0).describe("Current progress value"),
|
|
222
|
+
max: z.number().default(100).describe("Maximum value"),
|
|
223
|
+
variant: z.enum(["primary", "success", "warning", "danger", "info"]).default("primary").describe("Color variant"),
|
|
224
|
+
size: z.enum(["sm", "md", "lg"]).default("md").describe("Bar height"),
|
|
225
|
+
showValue: z.boolean().default(false).describe("Show percentage text"),
|
|
226
|
+
indeterminate: z.boolean().default(false).describe("Indeterminate loading animation"),
|
|
227
|
+
label: z.string().optional().describe("Label text above the bar"),
|
|
228
|
+
className: z.string().optional().describe("Style override")
|
|
229
|
+
}).describe("Progress bar. Linear progress indicator with percentage display.");
|
|
230
|
+
var alertPropsSchema = z.object({
|
|
231
|
+
variant: z.enum(["info", "success", "warning", "danger"]).default("info").describe("Alert type / color"),
|
|
232
|
+
title: z.string().optional().describe("Alert title (bold)"),
|
|
233
|
+
children: z.any().optional().describe("Alert description (ReactNode)"),
|
|
234
|
+
icon: z.any().optional().describe("Custom icon (ReactNode). Auto icon by variant if omitted"),
|
|
235
|
+
closable: z.boolean().default(false).describe("Show close button"),
|
|
236
|
+
onClose: z.any().optional().describe("Close callback () => void"),
|
|
237
|
+
action: z.any().optional().describe("Action area (ReactNode, e.g. Button)"),
|
|
238
|
+
className: z.string().optional().describe("Style override")
|
|
239
|
+
}).describe("Alert / Banner. Inline notification with icon, title, description.");
|
|
145
240
|
var spinnerPropsSchema = z.object({
|
|
146
241
|
size: z.number().default(20).describe("Size in px"),
|
|
147
242
|
color: z.string().optional().describe("Color (CSS color value, default currentColor)"),
|
|
@@ -149,6 +244,18 @@ var spinnerPropsSchema = z.object({
|
|
|
149
244
|
style: z.any().optional().describe("Inline style (CSSProperties)"),
|
|
150
245
|
className: z.string().optional().describe("Color override etc.")
|
|
151
246
|
}).describe('Loading indicator. SVG-based. Built-in role="status".');
|
|
247
|
+
var stepItemSchema = z.object({
|
|
248
|
+
label: z.string().describe("Step title"),
|
|
249
|
+
description: z.string().optional().describe("Step description")
|
|
250
|
+
});
|
|
251
|
+
var stepperPropsSchema = z.object({
|
|
252
|
+
steps: z.array(stepItemSchema).describe("Step items array (required)"),
|
|
253
|
+
current: z.number().default(0).describe("Current step index (0-based)"),
|
|
254
|
+
status: z.enum(["process", "error"]).default("process").describe("Current step status"),
|
|
255
|
+
orientation: z.enum(["horizontal", "vertical"]).default("horizontal").describe("Layout direction"),
|
|
256
|
+
size: z.enum(["sm", "md"]).default("md").describe("Size"),
|
|
257
|
+
className: z.string().optional().describe("Style override")
|
|
258
|
+
}).describe("Stepper. Step-by-step progress indicator.");
|
|
152
259
|
var skeletonPropsSchema = z.object({
|
|
153
260
|
as: z.enum(["div", "span"]).default("div").describe("Rendered tag"),
|
|
154
261
|
circle: z.boolean().default(false).describe("Circle skeleton (rounded-full)"),
|
|
@@ -383,18 +490,33 @@ var ellipsisPropsSchema = z.object({
|
|
|
383
490
|
onShowMoreLessClick: z.any().optional().describe("Show more/less click callback () => void"),
|
|
384
491
|
className: z.string().optional().describe("Style override")
|
|
385
492
|
}).describe("Text ellipsis. Built-in show more/less toggle.");
|
|
493
|
+
var emptyStatePropsSchema = z.object({
|
|
494
|
+
icon: z.any().optional().describe("Custom icon (ReactNode). Default inbox icon"),
|
|
495
|
+
title: z.string().optional().describe("Title text"),
|
|
496
|
+
description: z.string().optional().describe("Description text"),
|
|
497
|
+
action: z.any().optional().describe("Action area (ReactNode, e.g. Button)"),
|
|
498
|
+
size: z.enum(["sm", "md", "lg"]).default("md").describe("Overall size"),
|
|
499
|
+
children: z.any().optional().describe("Additional content (ReactNode)"),
|
|
500
|
+
className: z.string().optional().describe("Style override")
|
|
501
|
+
}).describe("Empty state placeholder. Shown when data is empty or unavailable.");
|
|
386
502
|
var numberInputPropsSchema = z.object({
|
|
503
|
+
variant: z.enum(["basic", "bind"]).default("basic").describe("Variant: basic (right chevron arrows) or bind (left/right +/- buttons)"),
|
|
387
504
|
value: z.union([z.number(), z.string()]).optional().describe("Current value"),
|
|
388
|
-
size: z.enum(["
|
|
505
|
+
size: z.enum(["lg", "xl"]).default("lg").describe("Size"),
|
|
389
506
|
error: z.boolean().optional().describe("Error state"),
|
|
390
507
|
min: z.number().optional().describe("Minimum value"),
|
|
391
|
-
max: z.number().optional().describe(
|
|
508
|
+
max: z.number().optional().describe('Maximum value. When set, "Max {value}" is displayed in the header. Clicking it fills the input with the max value'),
|
|
392
509
|
step: z.number().default(1).describe("Step increment"),
|
|
393
510
|
digit: z.number().default(0).describe("Decimal places"),
|
|
394
|
-
|
|
511
|
+
label: z.string().optional().describe("Label text displayed above input"),
|
|
512
|
+
description: z.string().optional().describe("Description text displayed below input"),
|
|
513
|
+
showMax: z.boolean().optional().describe('Show "Max {value}" in header (defaults to true when max is set)'),
|
|
514
|
+
hideButtons: z.boolean().default(false).describe(
|
|
515
|
+
"Hide built-in buttons. Use with numberInputBind for external button event binding"
|
|
516
|
+
),
|
|
395
517
|
disabled: z.boolean().optional().describe("Disabled"),
|
|
396
|
-
readOnly: z.boolean().optional().describe("Read-only (includes hiding
|
|
397
|
-
placeholder: z.string().optional().describe(
|
|
518
|
+
readOnly: z.boolean().optional().describe("Read-only (includes hiding buttons)"),
|
|
519
|
+
placeholder: z.string().optional().describe('Placeholder (default: "0")'),
|
|
398
520
|
name: z.string().optional().describe("Form field name"),
|
|
399
521
|
id: z.string().optional().describe("Element ID"),
|
|
400
522
|
autoFocus: z.boolean().optional().describe("Auto focus"),
|
|
@@ -403,7 +525,7 @@ var numberInputPropsSchema = z.object({
|
|
|
403
525
|
onFocus: z.any().optional().describe("Focus callback"),
|
|
404
526
|
className: z.string().optional().describe("Style override")
|
|
405
527
|
}).describe(
|
|
406
|
-
"Number input
|
|
528
|
+
"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."
|
|
407
529
|
);
|
|
408
530
|
var priceInputPropsSchema = z.object({
|
|
409
531
|
size: z.enum(["md", "lg", "xl"]).default("md").describe("Size"),
|
|
@@ -618,5 +740,41 @@ var toasterPropsSchema = z.object({
|
|
|
618
740
|
}).describe(
|
|
619
741
|
"Toaster config. Place once at app root. Display notifications via toast(). Based on sonner."
|
|
620
742
|
);
|
|
743
|
+
var tagInputPropsSchema = z.object({
|
|
744
|
+
value: z.array(z.string()).optional().describe("Controlled tags array"),
|
|
745
|
+
defaultValue: z.array(z.string()).optional().describe("Default tags"),
|
|
746
|
+
onChange: z.any().optional().describe("Tags change callback (tags: string[]) => void"),
|
|
747
|
+
placeholder: z.string().default("\uD0DC\uADF8 \uC785\uB825 \uD6C4 Enter").describe("Input placeholder"),
|
|
748
|
+
max: z.number().optional().describe("Maximum number of tags"),
|
|
749
|
+
disabled: z.boolean().optional().describe("Disabled"),
|
|
750
|
+
allowDuplicates: z.boolean().default(false).describe("Allow duplicate tags"),
|
|
751
|
+
label: z.string().optional().describe("Label text"),
|
|
752
|
+
description: z.string().optional().describe("Helper text below input"),
|
|
753
|
+
size: z.enum(["sm", "md", "lg"]).default("md").describe("Size"),
|
|
754
|
+
className: z.string().optional().describe("Style override")
|
|
755
|
+
}).describe("Tag input. Enter key to add, Backspace to delete last tag.");
|
|
756
|
+
var nxImagePropsSchema = z.object({
|
|
757
|
+
src: z.string().optional().describe("Image source URL"),
|
|
758
|
+
alt: z.string().optional().describe("Alt text"),
|
|
759
|
+
fallback: z.any().optional().describe("Custom fallback element (ReactNode)"),
|
|
760
|
+
fallbackSrc: z.string().optional().describe("Fallback image URL on error"),
|
|
761
|
+
aspectRatio: z.string().optional().describe('CSS aspect-ratio (e.g. "16/9", "1/1")'),
|
|
762
|
+
objectFit: z.enum(["cover", "contain", "fill", "none"]).default("cover").describe("Object-fit mode"),
|
|
763
|
+
lazy: z.boolean().default(true).describe('Enable lazy loading (loading="lazy")'),
|
|
764
|
+
wrapperClassName: z.string().optional().describe("Wrapper div style"),
|
|
765
|
+
className: z.string().optional().describe("Image element style")
|
|
766
|
+
}).describe("Enhanced image. Lazy loading, fallback, aspect-ratio support.");
|
|
767
|
+
var datePickerPropsSchema = z.object({
|
|
768
|
+
value: z.any().optional().describe("Controlled date value (Date)"),
|
|
769
|
+
defaultValue: z.any().optional().describe("Default date (Date)"),
|
|
770
|
+
onChange: z.any().optional().describe("Date change callback (date: Date | undefined) => void"),
|
|
771
|
+
placeholder: z.string().default("\uB0A0\uC9DC \uC120\uD0DD").describe("Placeholder text"),
|
|
772
|
+
disabled: z.boolean().default(false).describe("Disabled"),
|
|
773
|
+
minDate: z.any().optional().describe("Minimum selectable date (Date)"),
|
|
774
|
+
maxDate: z.any().optional().describe("Maximum selectable date (Date)"),
|
|
775
|
+
locale: z.enum(["ko", "en"]).default("ko").describe("Calendar locale"),
|
|
776
|
+
formatStr: z.string().default("yyyy-MM-dd").describe("Date format string (date-fns format)"),
|
|
777
|
+
className: z.string().optional().describe("Style override")
|
|
778
|
+
}).describe("DatePicker. Calendar popup for date selection. Based on react-day-picker.");
|
|
621
779
|
|
|
622
|
-
export { accordionPropsSchema, avatarPropsSchema, buttonPropsSchema, carouselButtonPropsSchema, carouselDotsPropsSchema, carouselPropsSchema, carouselSlidePropsSchema, checkBoxPropsSchema, chipPropsSchema, clientOnlyPropsSchema, countdownPropsSchema, counterPropsSchema, dataListPropsSchema, dividerPropsSchema, drawerClosePropsSchema, drawerContentPropsSchema, drawerDescriptionPropsSchema, drawerPropsSchema, drawerTitlePropsSchema, drawerTriggerPropsSchema, ellipsisPropsSchema, errorBoundaryPropsSchema, infiniteScrollPropsSchema, marqueePropsSchema, modalCallSchema, modalTemplatePropsSchema, numberInputPropsSchema, paginationPropsSchema, popoverPropsSchema, priceInputPropsSchema, radioGroupPropsSchema, radioItemPropsSchema, selectItemPropsSchema, selectPropsSchema, skeletonPropsSchema, spinnerPropsSchema, switchPropsSchema, tabPropsSchema, tablePropsSchema, tableRowPropsSchema, tdColumnPropsSchema, textAreaPropsSchema, textInputPropsSchema, themeProviderPropsSchema, toastOptionsSchema, toasterPropsSchema, tooltipPropsSchema, virtualGridPropsSchema, virtualListPropsSchema };
|
|
780
|
+
export { accordionPropsSchema, alertPropsSchema, avatarPropsSchema, badgePropsSchema, breadcrumbPropsSchema, buttonPropsSchema, carouselButtonPropsSchema, carouselDotsPropsSchema, carouselPropsSchema, carouselSlidePropsSchema, checkBoxPropsSchema, chipPropsSchema, clientOnlyPropsSchema, countdownPropsSchema, counterPropsSchema, dataListPropsSchema, datePickerPropsSchema, dividerPropsSchema, drawerClosePropsSchema, drawerContentPropsSchema, drawerDescriptionPropsSchema, drawerPropsSchema, drawerTitlePropsSchema, drawerTriggerPropsSchema, dropdownMenuPropsSchema, ellipsisPropsSchema, emptyStatePropsSchema, errorBoundaryPropsSchema, infiniteScrollPropsSchema, marqueePropsSchema, modalCallSchema, modalTemplatePropsSchema, numberInputPropsSchema, nxImagePropsSchema, paginationPropsSchema, popoverPropsSchema, priceInputPropsSchema, progressPropsSchema, radioGroupPropsSchema, radioItemPropsSchema, selectItemPropsSchema, selectPropsSchema, skeletonPropsSchema, sliderPropsSchema, spinnerPropsSchema, stepperPropsSchema, switchPropsSchema, tabPropsSchema, tablePropsSchema, tableRowPropsSchema, tagInputPropsSchema, tdColumnPropsSchema, textAreaPropsSchema, textInputPropsSchema, themeProviderPropsSchema, toastOptionsSchema, toasterPropsSchema, toggleGroupPropsSchema, tooltipPropsSchema, virtualGridPropsSchema, virtualListPropsSchema };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const sliderVariants: (props?: ({
|
|
7
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface SliderProps extends Omit<React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>, 'value' | 'defaultValue' | 'onValueChange'>, VariantProps<typeof sliderVariants> {
|
|
10
|
+
value?: number[];
|
|
11
|
+
defaultValue?: number[];
|
|
12
|
+
onValueChange?: (value: number[]) => void;
|
|
13
|
+
onValueCommit?: (value: number[]) => void;
|
|
14
|
+
showValue?: boolean;
|
|
15
|
+
formatValue?: (value: number) => string;
|
|
16
|
+
label?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
|
|
20
|
+
export { Slider, type SliderProps, sliderVariants };
|
package/dist/slider.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const sliderVariants: (props?: ({
|
|
7
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface SliderProps extends Omit<React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>, 'value' | 'defaultValue' | 'onValueChange'>, VariantProps<typeof sliderVariants> {
|
|
10
|
+
value?: number[];
|
|
11
|
+
defaultValue?: number[];
|
|
12
|
+
onValueChange?: (value: number[]) => void;
|
|
13
|
+
onValueCommit?: (value: number[]) => void;
|
|
14
|
+
showValue?: boolean;
|
|
15
|
+
formatValue?: (value: number) => string;
|
|
16
|
+
label?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
|
|
20
|
+
export { Slider, type SliderProps, sliderVariants };
|
package/dist/slider.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkDICN6GKE_js = require('./chunks/chunk-DICN6GKE.js');
|
|
4
|
+
require('./chunks/chunk-CZC76ZD5.js');
|
|
5
|
+
require('./chunks/chunk-JNMCYWGY.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "Slider", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkDICN6GKE_js.Slider; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "sliderVariants", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkDICN6GKE_js.sliderVariants; }
|
|
16
|
+
});
|
package/dist/slider.mjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const stepperVariants: (props?: ({
|
|
6
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
7
|
+
size?: "md" | "sm" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface StepItem {
|
|
10
|
+
label: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
}
|
|
13
|
+
interface StepperProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof stepperVariants> {
|
|
14
|
+
steps: StepItem[];
|
|
15
|
+
current?: number;
|
|
16
|
+
status?: 'process' | 'error';
|
|
17
|
+
}
|
|
18
|
+
declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
|
|
20
|
+
export { type StepItem, Stepper, type StepperProps, stepperVariants };
|