@nexus-cross/design-system 1.0.3 → 1.0.4
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/cursor-rules/nexus-ui-api.mdc +208 -0
- 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-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-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-H2G5FMRN.mjs +75 -0
- package/dist/chunks/chunk-H2V7RHYV.mjs +120 -0
- package/dist/chunks/chunk-KZ7S5VN2.js +7 -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-PI464222.mjs +5 -0
- package/dist/chunks/chunk-S2GMEC43.js +109 -0
- package/dist/chunks/chunk-X3CTJ7TD.js +108 -0
- package/dist/chunks/chunk-YO5MSDPX.mjs +36 -0
- package/dist/chunks/chunk-ZI4LN2B2.js +96 -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 +267 -155
- package/dist/index.mjs +28 -16
- package/dist/modal/index.js +12 -12
- package/dist/modal/index.mjs +3 -3
- 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 +787 -4
- 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/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/toggleGroup.json +88 -0
- package/dist/schemas.d.mts +603 -143
- package/dist/schemas.d.ts +603 -143
- package/dist/schemas.js +160 -0
- package/dist/schemas.mjs +149 -1
- 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 +1190 -69
- package/dist/styles.js +2 -2
- package/dist/styles.layered.css +1190 -69
- package/dist/styles.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/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 +67 -2
- package/dist/chunks/chunk-RLPPNY5F.js +0 -7
- package/dist/chunks/chunk-W7IPMNN2.mjs +0 -5
- 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)"
|
|
@@ -90,6 +101,55 @@ var selectItemPropsSchema = zod.z.object({
|
|
|
90
101
|
disabled: zod.z.boolean().optional().describe("Disabled"),
|
|
91
102
|
className: zod.z.string().optional().describe("Style override")
|
|
92
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.");
|
|
93
153
|
var checkBoxPropsSchema = zod.z.object({
|
|
94
154
|
size: zod.z.enum(["sm", "md"]).default("md").describe("Size"),
|
|
95
155
|
shape: zod.z.enum(["square", "round"]).default("square").describe("Shape"),
|
|
@@ -148,6 +208,37 @@ var chipPropsSchema = zod.z.object({
|
|
|
148
208
|
onClick: zod.z.any().optional().describe("Click event handler"),
|
|
149
209
|
className: zod.z.string().optional().describe("Style override")
|
|
150
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.");
|
|
151
242
|
var spinnerPropsSchema = zod.z.object({
|
|
152
243
|
size: zod.z.number().default(20).describe("Size in px"),
|
|
153
244
|
color: zod.z.string().optional().describe("Color (CSS color value, default currentColor)"),
|
|
@@ -155,6 +246,18 @@ var spinnerPropsSchema = zod.z.object({
|
|
|
155
246
|
style: zod.z.any().optional().describe("Inline style (CSSProperties)"),
|
|
156
247
|
className: zod.z.string().optional().describe("Color override etc.")
|
|
157
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.");
|
|
158
261
|
var skeletonPropsSchema = zod.z.object({
|
|
159
262
|
as: zod.z.enum(["div", "span"]).default("div").describe("Rendered tag"),
|
|
160
263
|
circle: zod.z.boolean().default(false).describe("Circle skeleton (rounded-full)"),
|
|
@@ -389,6 +492,15 @@ var ellipsisPropsSchema = zod.z.object({
|
|
|
389
492
|
onShowMoreLessClick: zod.z.any().optional().describe("Show more/less click callback () => void"),
|
|
390
493
|
className: zod.z.string().optional().describe("Style override")
|
|
391
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.");
|
|
392
504
|
var numberInputPropsSchema = zod.z.object({
|
|
393
505
|
value: zod.z.union([zod.z.number(), zod.z.string()]).optional().describe("Current value"),
|
|
394
506
|
size: zod.z.enum(["sm", "md", "lg", "xl"]).default("md").describe("Size"),
|
|
@@ -624,9 +736,48 @@ var toasterPropsSchema = zod.z.object({
|
|
|
624
736
|
}).describe(
|
|
625
737
|
"Toaster config. Place once at app root. Display notifications via toast(). Based on sonner."
|
|
626
738
|
);
|
|
739
|
+
var tagInputPropsSchema = zod.z.object({
|
|
740
|
+
value: zod.z.array(zod.z.string()).optional().describe("Controlled tags array"),
|
|
741
|
+
defaultValue: zod.z.array(zod.z.string()).optional().describe("Default tags"),
|
|
742
|
+
onChange: zod.z.any().optional().describe("Tags change callback (tags: string[]) => void"),
|
|
743
|
+
placeholder: zod.z.string().default("\uD0DC\uADF8 \uC785\uB825 \uD6C4 Enter").describe("Input placeholder"),
|
|
744
|
+
max: zod.z.number().optional().describe("Maximum number of tags"),
|
|
745
|
+
disabled: zod.z.boolean().optional().describe("Disabled"),
|
|
746
|
+
allowDuplicates: zod.z.boolean().default(false).describe("Allow duplicate tags"),
|
|
747
|
+
label: zod.z.string().optional().describe("Label text"),
|
|
748
|
+
description: zod.z.string().optional().describe("Helper text below input"),
|
|
749
|
+
size: zod.z.enum(["sm", "md", "lg"]).default("md").describe("Size"),
|
|
750
|
+
className: zod.z.string().optional().describe("Style override")
|
|
751
|
+
}).describe("Tag input. Enter key to add, Backspace to delete last tag.");
|
|
752
|
+
var nxImagePropsSchema = zod.z.object({
|
|
753
|
+
src: zod.z.string().optional().describe("Image source URL"),
|
|
754
|
+
alt: zod.z.string().optional().describe("Alt text"),
|
|
755
|
+
fallback: zod.z.any().optional().describe("Custom fallback element (ReactNode)"),
|
|
756
|
+
fallbackSrc: zod.z.string().optional().describe("Fallback image URL on error"),
|
|
757
|
+
aspectRatio: zod.z.string().optional().describe('CSS aspect-ratio (e.g. "16/9", "1/1")'),
|
|
758
|
+
objectFit: zod.z.enum(["cover", "contain", "fill", "none"]).default("cover").describe("Object-fit mode"),
|
|
759
|
+
lazy: zod.z.boolean().default(true).describe('Enable lazy loading (loading="lazy")'),
|
|
760
|
+
wrapperClassName: zod.z.string().optional().describe("Wrapper div style"),
|
|
761
|
+
className: zod.z.string().optional().describe("Image element style")
|
|
762
|
+
}).describe("Enhanced image. Lazy loading, fallback, aspect-ratio support.");
|
|
763
|
+
var datePickerPropsSchema = zod.z.object({
|
|
764
|
+
value: zod.z.any().optional().describe("Controlled date value (Date)"),
|
|
765
|
+
defaultValue: zod.z.any().optional().describe("Default date (Date)"),
|
|
766
|
+
onChange: zod.z.any().optional().describe("Date change callback (date: Date | undefined) => void"),
|
|
767
|
+
placeholder: zod.z.string().default("\uB0A0\uC9DC \uC120\uD0DD").describe("Placeholder text"),
|
|
768
|
+
disabled: zod.z.boolean().default(false).describe("Disabled"),
|
|
769
|
+
minDate: zod.z.any().optional().describe("Minimum selectable date (Date)"),
|
|
770
|
+
maxDate: zod.z.any().optional().describe("Maximum selectable date (Date)"),
|
|
771
|
+
locale: zod.z.enum(["ko", "en"]).default("ko").describe("Calendar locale"),
|
|
772
|
+
formatStr: zod.z.string().default("yyyy-MM-dd").describe("Date format string (date-fns format)"),
|
|
773
|
+
className: zod.z.string().optional().describe("Style override")
|
|
774
|
+
}).describe("DatePicker. Calendar popup for date selection. Based on react-day-picker.");
|
|
627
775
|
|
|
628
776
|
exports.accordionPropsSchema = accordionPropsSchema;
|
|
777
|
+
exports.alertPropsSchema = alertPropsSchema;
|
|
629
778
|
exports.avatarPropsSchema = avatarPropsSchema;
|
|
779
|
+
exports.badgePropsSchema = badgePropsSchema;
|
|
780
|
+
exports.breadcrumbPropsSchema = breadcrumbPropsSchema;
|
|
630
781
|
exports.buttonPropsSchema = buttonPropsSchema;
|
|
631
782
|
exports.carouselButtonPropsSchema = carouselButtonPropsSchema;
|
|
632
783
|
exports.carouselDotsPropsSchema = carouselDotsPropsSchema;
|
|
@@ -638,6 +789,7 @@ exports.clientOnlyPropsSchema = clientOnlyPropsSchema;
|
|
|
638
789
|
exports.countdownPropsSchema = countdownPropsSchema;
|
|
639
790
|
exports.counterPropsSchema = counterPropsSchema;
|
|
640
791
|
exports.dataListPropsSchema = dataListPropsSchema;
|
|
792
|
+
exports.datePickerPropsSchema = datePickerPropsSchema;
|
|
641
793
|
exports.dividerPropsSchema = dividerPropsSchema;
|
|
642
794
|
exports.drawerClosePropsSchema = drawerClosePropsSchema;
|
|
643
795
|
exports.drawerContentPropsSchema = drawerContentPropsSchema;
|
|
@@ -645,32 +797,40 @@ exports.drawerDescriptionPropsSchema = drawerDescriptionPropsSchema;
|
|
|
645
797
|
exports.drawerPropsSchema = drawerPropsSchema;
|
|
646
798
|
exports.drawerTitlePropsSchema = drawerTitlePropsSchema;
|
|
647
799
|
exports.drawerTriggerPropsSchema = drawerTriggerPropsSchema;
|
|
800
|
+
exports.dropdownMenuPropsSchema = dropdownMenuPropsSchema;
|
|
648
801
|
exports.ellipsisPropsSchema = ellipsisPropsSchema;
|
|
802
|
+
exports.emptyStatePropsSchema = emptyStatePropsSchema;
|
|
649
803
|
exports.errorBoundaryPropsSchema = errorBoundaryPropsSchema;
|
|
650
804
|
exports.infiniteScrollPropsSchema = infiniteScrollPropsSchema;
|
|
651
805
|
exports.marqueePropsSchema = marqueePropsSchema;
|
|
652
806
|
exports.modalCallSchema = modalCallSchema;
|
|
653
807
|
exports.modalTemplatePropsSchema = modalTemplatePropsSchema;
|
|
654
808
|
exports.numberInputPropsSchema = numberInputPropsSchema;
|
|
809
|
+
exports.nxImagePropsSchema = nxImagePropsSchema;
|
|
655
810
|
exports.paginationPropsSchema = paginationPropsSchema;
|
|
656
811
|
exports.popoverPropsSchema = popoverPropsSchema;
|
|
657
812
|
exports.priceInputPropsSchema = priceInputPropsSchema;
|
|
813
|
+
exports.progressPropsSchema = progressPropsSchema;
|
|
658
814
|
exports.radioGroupPropsSchema = radioGroupPropsSchema;
|
|
659
815
|
exports.radioItemPropsSchema = radioItemPropsSchema;
|
|
660
816
|
exports.selectItemPropsSchema = selectItemPropsSchema;
|
|
661
817
|
exports.selectPropsSchema = selectPropsSchema;
|
|
662
818
|
exports.skeletonPropsSchema = skeletonPropsSchema;
|
|
819
|
+
exports.sliderPropsSchema = sliderPropsSchema;
|
|
663
820
|
exports.spinnerPropsSchema = spinnerPropsSchema;
|
|
821
|
+
exports.stepperPropsSchema = stepperPropsSchema;
|
|
664
822
|
exports.switchPropsSchema = switchPropsSchema;
|
|
665
823
|
exports.tabPropsSchema = tabPropsSchema;
|
|
666
824
|
exports.tablePropsSchema = tablePropsSchema;
|
|
667
825
|
exports.tableRowPropsSchema = tableRowPropsSchema;
|
|
826
|
+
exports.tagInputPropsSchema = tagInputPropsSchema;
|
|
668
827
|
exports.tdColumnPropsSchema = tdColumnPropsSchema;
|
|
669
828
|
exports.textAreaPropsSchema = textAreaPropsSchema;
|
|
670
829
|
exports.textInputPropsSchema = textInputPropsSchema;
|
|
671
830
|
exports.themeProviderPropsSchema = themeProviderPropsSchema;
|
|
672
831
|
exports.toastOptionsSchema = toastOptionsSchema;
|
|
673
832
|
exports.toasterPropsSchema = toasterPropsSchema;
|
|
833
|
+
exports.toggleGroupPropsSchema = toggleGroupPropsSchema;
|
|
674
834
|
exports.tooltipPropsSchema = tooltipPropsSchema;
|
|
675
835
|
exports.virtualGridPropsSchema = virtualGridPropsSchema;
|
|
676
836
|
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)"
|
|
@@ -88,6 +99,55 @@ var selectItemPropsSchema = z.object({
|
|
|
88
99
|
disabled: z.boolean().optional().describe("Disabled"),
|
|
89
100
|
className: z.string().optional().describe("Style override")
|
|
90
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.");
|
|
91
151
|
var checkBoxPropsSchema = z.object({
|
|
92
152
|
size: z.enum(["sm", "md"]).default("md").describe("Size"),
|
|
93
153
|
shape: z.enum(["square", "round"]).default("square").describe("Shape"),
|
|
@@ -146,6 +206,37 @@ var chipPropsSchema = z.object({
|
|
|
146
206
|
onClick: z.any().optional().describe("Click event handler"),
|
|
147
207
|
className: z.string().optional().describe("Style override")
|
|
148
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.");
|
|
149
240
|
var spinnerPropsSchema = z.object({
|
|
150
241
|
size: z.number().default(20).describe("Size in px"),
|
|
151
242
|
color: z.string().optional().describe("Color (CSS color value, default currentColor)"),
|
|
@@ -153,6 +244,18 @@ var spinnerPropsSchema = z.object({
|
|
|
153
244
|
style: z.any().optional().describe("Inline style (CSSProperties)"),
|
|
154
245
|
className: z.string().optional().describe("Color override etc.")
|
|
155
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.");
|
|
156
259
|
var skeletonPropsSchema = z.object({
|
|
157
260
|
as: z.enum(["div", "span"]).default("div").describe("Rendered tag"),
|
|
158
261
|
circle: z.boolean().default(false).describe("Circle skeleton (rounded-full)"),
|
|
@@ -387,6 +490,15 @@ var ellipsisPropsSchema = z.object({
|
|
|
387
490
|
onShowMoreLessClick: z.any().optional().describe("Show more/less click callback () => void"),
|
|
388
491
|
className: z.string().optional().describe("Style override")
|
|
389
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.");
|
|
390
502
|
var numberInputPropsSchema = z.object({
|
|
391
503
|
value: z.union([z.number(), z.string()]).optional().describe("Current value"),
|
|
392
504
|
size: z.enum(["sm", "md", "lg", "xl"]).default("md").describe("Size"),
|
|
@@ -622,5 +734,41 @@ var toasterPropsSchema = z.object({
|
|
|
622
734
|
}).describe(
|
|
623
735
|
"Toaster config. Place once at app root. Display notifications via toast(). Based on sonner."
|
|
624
736
|
);
|
|
737
|
+
var tagInputPropsSchema = z.object({
|
|
738
|
+
value: z.array(z.string()).optional().describe("Controlled tags array"),
|
|
739
|
+
defaultValue: z.array(z.string()).optional().describe("Default tags"),
|
|
740
|
+
onChange: z.any().optional().describe("Tags change callback (tags: string[]) => void"),
|
|
741
|
+
placeholder: z.string().default("\uD0DC\uADF8 \uC785\uB825 \uD6C4 Enter").describe("Input placeholder"),
|
|
742
|
+
max: z.number().optional().describe("Maximum number of tags"),
|
|
743
|
+
disabled: z.boolean().optional().describe("Disabled"),
|
|
744
|
+
allowDuplicates: z.boolean().default(false).describe("Allow duplicate tags"),
|
|
745
|
+
label: z.string().optional().describe("Label text"),
|
|
746
|
+
description: z.string().optional().describe("Helper text below input"),
|
|
747
|
+
size: z.enum(["sm", "md", "lg"]).default("md").describe("Size"),
|
|
748
|
+
className: z.string().optional().describe("Style override")
|
|
749
|
+
}).describe("Tag input. Enter key to add, Backspace to delete last tag.");
|
|
750
|
+
var nxImagePropsSchema = z.object({
|
|
751
|
+
src: z.string().optional().describe("Image source URL"),
|
|
752
|
+
alt: z.string().optional().describe("Alt text"),
|
|
753
|
+
fallback: z.any().optional().describe("Custom fallback element (ReactNode)"),
|
|
754
|
+
fallbackSrc: z.string().optional().describe("Fallback image URL on error"),
|
|
755
|
+
aspectRatio: z.string().optional().describe('CSS aspect-ratio (e.g. "16/9", "1/1")'),
|
|
756
|
+
objectFit: z.enum(["cover", "contain", "fill", "none"]).default("cover").describe("Object-fit mode"),
|
|
757
|
+
lazy: z.boolean().default(true).describe('Enable lazy loading (loading="lazy")'),
|
|
758
|
+
wrapperClassName: z.string().optional().describe("Wrapper div style"),
|
|
759
|
+
className: z.string().optional().describe("Image element style")
|
|
760
|
+
}).describe("Enhanced image. Lazy loading, fallback, aspect-ratio support.");
|
|
761
|
+
var datePickerPropsSchema = z.object({
|
|
762
|
+
value: z.any().optional().describe("Controlled date value (Date)"),
|
|
763
|
+
defaultValue: z.any().optional().describe("Default date (Date)"),
|
|
764
|
+
onChange: z.any().optional().describe("Date change callback (date: Date | undefined) => void"),
|
|
765
|
+
placeholder: z.string().default("\uB0A0\uC9DC \uC120\uD0DD").describe("Placeholder text"),
|
|
766
|
+
disabled: z.boolean().default(false).describe("Disabled"),
|
|
767
|
+
minDate: z.any().optional().describe("Minimum selectable date (Date)"),
|
|
768
|
+
maxDate: z.any().optional().describe("Maximum selectable date (Date)"),
|
|
769
|
+
locale: z.enum(["ko", "en"]).default("ko").describe("Calendar locale"),
|
|
770
|
+
formatStr: z.string().default("yyyy-MM-dd").describe("Date format string (date-fns format)"),
|
|
771
|
+
className: z.string().optional().describe("Style override")
|
|
772
|
+
}).describe("DatePicker. Calendar popup for date selection. Based on react-day-picker.");
|
|
625
773
|
|
|
626
|
-
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 };
|
|
774
|
+
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 };
|
|
@@ -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 };
|
package/dist/stepper.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkX3CTJ7TD_js = require('./chunks/chunk-X3CTJ7TD.js');
|
|
4
|
+
require('./chunks/chunk-CZC76ZD5.js');
|
|
5
|
+
require('./chunks/chunk-JNMCYWGY.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "Stepper", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkX3CTJ7TD_js.Stepper; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "stepperVariants", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkX3CTJ7TD_js.stepperVariants; }
|
|
16
|
+
});
|
package/dist/stepper.mjs
ADDED
package/dist/styles/layer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKZ7S5VN2_js = require('../chunks/chunk-KZ7S5VN2.js');
|
|
4
4
|
require('../chunks/chunk-JNMCYWGY.js');
|
|
5
5
|
|
|
6
6
|
// src/styles/inject-layer.ts
|
|
@@ -9,7 +9,7 @@ var __nexus_styles_injected__ = typeof document !== "undefined" && !document.get
|
|
|
9
9
|
const style = document.createElement("style");
|
|
10
10
|
style.id = STYLE_ID;
|
|
11
11
|
style.textContent = `@layer nexus {
|
|
12
|
-
${
|
|
12
|
+
${chunkKZ7S5VN2_js.built_default}
|
|
13
13
|
}`;
|
|
14
14
|
document.head.appendChild(style);
|
|
15
15
|
return true;
|
package/dist/styles/layer.mjs
CHANGED