@ug666/ui-react 0.2.0 → 0.3.0-beta.1
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/dist/aliases.d.ts +59 -0
- package/dist/aliases.d.ts.map +1 -0
- package/dist/blocks/feature-grid.d.ts +40 -0
- package/dist/blocks/feature-grid.d.ts.map +1 -0
- package/dist/blocks/index.cjs +293 -64
- package/dist/blocks/index.cjs.map +1 -1
- package/dist/blocks/index.d.ts +6 -84
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +80 -39
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/landing-hero.d.ts +55 -0
- package/dist/blocks/landing-hero.d.ts.map +1 -0
- package/dist/chunk-AKWJMDCW.js +467 -0
- package/dist/chunk-AKWJMDCW.js.map +1 -0
- package/dist/chunk-F23X4N6B.js +11 -0
- package/dist/chunk-F23X4N6B.js.map +1 -0
- package/dist/chunk-HGO3GZ56.js +1777 -0
- package/dist/chunk-HGO3GZ56.js.map +1 -0
- package/dist/chunk-HXIWD5LQ.js +319 -0
- package/dist/chunk-HXIWD5LQ.js.map +1 -0
- package/dist/chunk-M6J4PLF4.js +521 -0
- package/dist/chunk-M6J4PLF4.js.map +1 -0
- package/dist/chunk-N3Z7R6GG.js +139 -0
- package/dist/chunk-N3Z7R6GG.js.map +1 -0
- package/dist/chunk-UXWCK6M7.js +5757 -0
- package/dist/chunk-UXWCK6M7.js.map +1 -0
- package/dist/components/accordion.d.ts +59 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/alert.d.ts +23 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/avatar-group.d.ts +20 -0
- package/dist/components/avatar-group.d.ts.map +1 -0
- package/dist/components/avatar.d.ts +34 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/badge.d.ts +17 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/breadcrumb.d.ts +33 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/button-group.d.ts +26 -0
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button.d.ts +43 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/card.d.ts +26 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/checkbox-group-context.d.ts +14 -0
- package/dist/components/checkbox-group-context.d.ts.map +1 -0
- package/dist/components/checkbox-group.d.ts +18 -0
- package/dist/components/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox.d.ts +32 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/config-provider.d.ts +29 -0
- package/dist/components/config-provider.d.ts.map +1 -0
- package/dist/components/container.d.ts +27 -0
- package/dist/components/container.d.ts.map +1 -0
- package/dist/components/context/form-context.d.ts +41 -0
- package/dist/components/context/form-context.d.ts.map +1 -0
- package/dist/components/context-menu.d.ts +39 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/descriptions.d.ts +40 -0
- package/dist/components/descriptions.d.ts.map +1 -0
- package/dist/components/dialog.d.ts +55 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/drawer.d.ts +38 -0
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/dropdown.d.ts +42 -0
- package/dist/components/dropdown.d.ts.map +1 -0
- package/dist/components/empty-state.d.ts +24 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/form.d.ts +127 -0
- package/dist/components/form.d.ts.map +1 -0
- package/dist/components/icon.d.ts +16 -0
- package/dist/components/icon.d.ts.map +1 -0
- package/dist/components/index.cjs +6173 -1482
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +59 -1096
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +67 -6
- package/dist/components/input.d.ts +28 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/label.d.ts +18 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/layout.d.ts +34 -0
- package/dist/components/layout.d.ts.map +1 -0
- package/dist/components/link.d.ts +18 -0
- package/dist/components/link.d.ts.map +1 -0
- package/dist/components/modal.d.ts +46 -0
- package/dist/components/modal.d.ts.map +1 -0
- package/dist/components/navigation-menu.d.ts +39 -0
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/number-input.d.ts +35 -0
- package/dist/components/number-input.d.ts.map +1 -0
- package/dist/components/otp-input.d.ts +35 -0
- package/dist/components/otp-input.d.ts.map +1 -0
- package/dist/components/pagination.d.ts +16 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/popover.d.ts +36 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/progress.d.ts +21 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/radio.d.ts +68 -0
- package/dist/components/radio.d.ts.map +1 -0
- package/dist/components/scrollbar.d.ts +29 -0
- package/dist/components/scrollbar.d.ts.map +1 -0
- package/dist/components/select.d.ts +48 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/separator.d.ts +28 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/sheet.d.ts +24 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sidebar.d.ts +48 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/skeleton.d.ts +16 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/slider.d.ts +44 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/space.d.ts +19 -0
- package/dist/components/space.d.ts.map +1 -0
- package/dist/components/spinner.d.ts +18 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/splitter.d.ts +51 -0
- package/dist/components/splitter.d.ts.map +1 -0
- package/dist/components/statistic.d.ts +30 -0
- package/dist/components/statistic.d.ts.map +1 -0
- package/dist/components/steps.d.ts +33 -0
- package/dist/components/steps.d.ts.map +1 -0
- package/dist/components/switch.d.ts +49 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/table.d.ts +32 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/tabs.d.ts +27 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tag.d.ts +27 -0
- package/dist/components/tag.d.ts.map +1 -0
- package/dist/components/text.d.ts +16 -0
- package/dist/components/text.d.ts.map +1 -0
- package/dist/components/textarea.d.ts +26 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/toast.d.ts +26 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/tooltip.d.ts +29 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/hooks/index.cjs +228 -27
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +19 -231
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-click-outside.d.ts +9 -0
- package/dist/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +12 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -0
- package/dist/hooks/use-debounce.d.ts +7 -0
- package/dist/hooks/use-debounce.d.ts.map +1 -0
- package/dist/hooks/use-escape-key.d.ts +10 -0
- package/dist/hooks/use-escape-key.d.ts.map +1 -0
- package/dist/hooks/use-event-listener.d.ts +28 -0
- package/dist/hooks/use-event-listener.d.ts.map +1 -0
- package/dist/hooks/use-form.d.ts +48 -0
- package/dist/hooks/use-form.d.ts.map +1 -0
- package/dist/hooks/use-hotkeys.d.ts +30 -0
- package/dist/hooks/use-hotkeys.d.ts.map +1 -0
- package/dist/hooks/use-interval.d.ts +19 -0
- package/dist/hooks/use-interval.d.ts.map +1 -0
- package/dist/hooks/use-local-storage.d.ts +9 -0
- package/dist/hooks/use-local-storage.d.ts.map +1 -0
- package/dist/hooks/use-media-query.d.ts +8 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-mounted.d.ts +18 -0
- package/dist/hooks/use-mounted.d.ts.map +1 -0
- package/dist/hooks/use-pagination.d.ts +36 -0
- package/dist/hooks/use-pagination.d.ts.map +1 -0
- package/dist/hooks/use-timeout.d.ts +19 -0
- package/dist/hooks/use-timeout.d.ts.map +1 -0
- package/dist/hooks/use-toggle.d.ts +9 -0
- package/dist/hooks/use-toggle.d.ts.map +1 -0
- package/dist/index.cjs +6475 -1768
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +73 -294
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +64 -184
- package/dist/index.js.map +1 -1
- package/dist/internal/button-group-context.d.ts +11 -0
- package/dist/internal/button-group-context.d.ts.map +1 -0
- package/dist/internal/cn.d.ts +8 -0
- package/dist/internal/cn.d.ts.map +1 -0
- package/dist/internal/use-overlay-focus.d.ts +8 -0
- package/dist/internal/use-overlay-focus.d.ts.map +1 -0
- package/dist/internal/use-portal-container.d.ts +2 -0
- package/dist/internal/use-portal-container.d.ts.map +1 -0
- package/dist/labs/file-preview.d.ts +44 -0
- package/dist/labs/file-preview.d.ts.map +1 -0
- package/dist/labs/index.cjs +191 -1
- package/dist/labs/index.cjs.map +1 -1
- package/dist/labs/index.d.ts +8 -6
- package/dist/labs/index.d.ts.map +1 -0
- package/dist/labs/index.js +180 -1
- package/dist/labs/index.js.map +1 -1
- package/dist/labs/model-card.d.ts +50 -0
- package/dist/labs/model-card.d.ts.map +1 -0
- package/dist/patterns/admin-shell.d.ts +52 -0
- package/dist/patterns/admin-shell.d.ts.map +1 -0
- package/dist/patterns/confirm-dialog.d.ts +50 -0
- package/dist/patterns/confirm-dialog.d.ts.map +1 -0
- package/dist/patterns/copy-field.d.ts +29 -0
- package/dist/patterns/copy-field.d.ts.map +1 -0
- package/dist/patterns/index.cjs +699 -251
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.ts +5 -158
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/patterns/index.js +137 -82
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/page-header.d.ts +37 -0
- package/dist/patterns/page-header.d.ts.map +1 -0
- package/dist/primitives/index.cjs +1889 -112
- package/dist/primitives/index.cjs.map +1 -1
- package/dist/primitives/index.d.ts +22 -135
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +55 -4
- package/dist/styles.css +2819 -953
- package/dist/theme.cjs +161 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.ts +39 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +19 -0
- package/dist/theme.js.map +1 -0
- package/dist/themes/default.css +80 -0
- package/dist/themes/mecha.css +195 -0
- package/dist/themes/minimal.css +160 -0
- package/dist/tokens.css +1173 -18
- package/package.json +22 -12
- package/dist/blocks/index.d.cts +0 -86
- package/dist/button-CaLZig8j.d.cts +0 -22
- package/dist/button-CaLZig8j.d.ts +0 -22
- package/dist/chunk-2IVRUJKO.js +0 -377
- package/dist/chunk-2IVRUJKO.js.map +0 -1
- package/dist/chunk-73WQAE3E.js +0 -3003
- package/dist/chunk-73WQAE3E.js.map +0 -1
- package/dist/chunk-MGXIF756.js +0 -313
- package/dist/chunk-MGXIF756.js.map +0 -1
- package/dist/chunk-RUDEZA5Q.js +0 -62
- package/dist/chunk-RUDEZA5Q.js.map +0 -1
- package/dist/chunk-S45GP6IB.js +0 -254
- package/dist/chunk-S45GP6IB.js.map +0 -1
- package/dist/components/index.d.cts +0 -1097
- package/dist/hooks/index.d.cts +0 -232
- package/dist/index.d.cts +0 -297
- package/dist/labs/index.d.cts +0 -12
- package/dist/patterns/index.d.cts +0 -158
- package/dist/primitives/index.d.cts +0 -137
- package/dist/sidebar-vl00Z2o-.d.cts +0 -93
- package/dist/sidebar-vl00Z2o-.d.ts +0 -93
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,OAAO,CAAA;AACrB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA"}
|
package/dist/components/index.js
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
BreadcrumbLink,
|
|
17
17
|
BreadcrumbSeparator,
|
|
18
18
|
Checkbox,
|
|
19
|
+
CheckboxGroup,
|
|
19
20
|
ContextMenu,
|
|
20
21
|
ContextMenuContent,
|
|
21
22
|
ContextMenuItem,
|
|
@@ -83,7 +84,7 @@ import {
|
|
|
83
84
|
checkboxVariants,
|
|
84
85
|
numberInputVariants,
|
|
85
86
|
toast
|
|
86
|
-
} from "../chunk-
|
|
87
|
+
} from "../chunk-UXWCK6M7.js";
|
|
87
88
|
import {
|
|
88
89
|
Modal,
|
|
89
90
|
ModalCloseButton,
|
|
@@ -92,27 +93,49 @@ import {
|
|
|
92
93
|
ModalHeader,
|
|
93
94
|
ModalTitle,
|
|
94
95
|
Sidebar
|
|
95
|
-
} from "../chunk-
|
|
96
|
+
} from "../chunk-AKWJMDCW.js";
|
|
97
|
+
import "../chunk-N3Z7R6GG.js";
|
|
96
98
|
import {
|
|
99
|
+
Aside,
|
|
97
100
|
Badge,
|
|
101
|
+
ButtonGroup,
|
|
98
102
|
Card,
|
|
99
103
|
CardContent,
|
|
100
104
|
CardDescription,
|
|
101
105
|
CardFooter,
|
|
102
106
|
CardHeader,
|
|
103
107
|
CardTitle,
|
|
108
|
+
Col,
|
|
109
|
+
Container,
|
|
110
|
+
Footer,
|
|
111
|
+
Header,
|
|
112
|
+
Icon,
|
|
104
113
|
Input,
|
|
105
114
|
Label,
|
|
115
|
+
Link,
|
|
116
|
+
Main,
|
|
117
|
+
Row,
|
|
118
|
+
Scrollbar,
|
|
106
119
|
Separator,
|
|
120
|
+
Space,
|
|
107
121
|
Spinner,
|
|
122
|
+
Splitter,
|
|
123
|
+
SplitterPanel,
|
|
108
124
|
Tag,
|
|
125
|
+
Text,
|
|
109
126
|
badgeVariants,
|
|
110
127
|
tagVariants
|
|
111
|
-
} from "../chunk-
|
|
128
|
+
} from "../chunk-HGO3GZ56.js";
|
|
112
129
|
import {
|
|
113
130
|
Button,
|
|
114
|
-
|
|
115
|
-
|
|
131
|
+
ConfigProvider,
|
|
132
|
+
buttonVariants,
|
|
133
|
+
controlSizeToComponentSize,
|
|
134
|
+
resolveControlSize,
|
|
135
|
+
resolveDisabled,
|
|
136
|
+
useUIConfig
|
|
137
|
+
} from "../chunk-HXIWD5LQ.js";
|
|
138
|
+
import "../chunk-F23X4N6B.js";
|
|
116
139
|
export {
|
|
117
140
|
Accordion,
|
|
118
141
|
AccordionContent,
|
|
@@ -121,6 +144,7 @@ export {
|
|
|
121
144
|
Alert,
|
|
122
145
|
AlertDescription,
|
|
123
146
|
AlertTitle,
|
|
147
|
+
Aside,
|
|
124
148
|
Avatar,
|
|
125
149
|
AvatarFallback,
|
|
126
150
|
AvatarGroup,
|
|
@@ -131,6 +155,7 @@ export {
|
|
|
131
155
|
BreadcrumbLink,
|
|
132
156
|
BreadcrumbSeparator,
|
|
133
157
|
Button,
|
|
158
|
+
ButtonGroup,
|
|
134
159
|
Card,
|
|
135
160
|
CardContent,
|
|
136
161
|
CardDescription,
|
|
@@ -138,6 +163,10 @@ export {
|
|
|
138
163
|
CardHeader,
|
|
139
164
|
CardTitle,
|
|
140
165
|
Checkbox,
|
|
166
|
+
CheckboxGroup,
|
|
167
|
+
Col,
|
|
168
|
+
ConfigProvider,
|
|
169
|
+
Container,
|
|
141
170
|
ContextMenu,
|
|
142
171
|
ContextMenuContent,
|
|
143
172
|
ContextMenuItem,
|
|
@@ -159,6 +188,7 @@ export {
|
|
|
159
188
|
DropdownSeparator,
|
|
160
189
|
DropdownTrigger,
|
|
161
190
|
EmptyState,
|
|
191
|
+
Footer,
|
|
162
192
|
Form,
|
|
163
193
|
FormControl,
|
|
164
194
|
FormDescription,
|
|
@@ -166,8 +196,12 @@ export {
|
|
|
166
196
|
FormItem,
|
|
167
197
|
FormLabel,
|
|
168
198
|
FormMessage,
|
|
199
|
+
Header,
|
|
200
|
+
Icon,
|
|
169
201
|
Input,
|
|
170
202
|
Label,
|
|
203
|
+
Link,
|
|
204
|
+
Main,
|
|
171
205
|
Modal,
|
|
172
206
|
ModalCloseButton,
|
|
173
207
|
ModalContent,
|
|
@@ -188,13 +222,18 @@ export {
|
|
|
188
222
|
Progress,
|
|
189
223
|
Radio,
|
|
190
224
|
RadioGroup,
|
|
225
|
+
Row,
|
|
226
|
+
Scrollbar,
|
|
191
227
|
Select,
|
|
192
228
|
Separator,
|
|
193
229
|
Sheet,
|
|
194
230
|
Sidebar,
|
|
195
231
|
Skeleton,
|
|
196
232
|
Slider,
|
|
233
|
+
Space,
|
|
197
234
|
Spinner,
|
|
235
|
+
Splitter,
|
|
236
|
+
SplitterPanel,
|
|
198
237
|
Statistic,
|
|
199
238
|
Steps,
|
|
200
239
|
Switch,
|
|
@@ -209,6 +248,7 @@ export {
|
|
|
209
248
|
TabsList,
|
|
210
249
|
TabsTrigger,
|
|
211
250
|
Tag,
|
|
251
|
+
Text,
|
|
212
252
|
Textarea,
|
|
213
253
|
Toaster,
|
|
214
254
|
Tooltip,
|
|
@@ -221,6 +261,7 @@ export {
|
|
|
221
261
|
Alert as UGAlert,
|
|
222
262
|
AlertDescription as UGAlertDescription,
|
|
223
263
|
AlertTitle as UGAlertTitle,
|
|
264
|
+
Aside as UGAside,
|
|
224
265
|
Avatar as UGAvatar,
|
|
225
266
|
AvatarFallback as UGAvatarFallback,
|
|
226
267
|
AvatarGroup as UGAvatarGroup,
|
|
@@ -231,6 +272,7 @@ export {
|
|
|
231
272
|
BreadcrumbLink as UGBreadcrumbLink,
|
|
232
273
|
BreadcrumbSeparator as UGBreadcrumbSeparator,
|
|
233
274
|
Button as UGButton,
|
|
275
|
+
ButtonGroup as UGButtonGroup,
|
|
234
276
|
Card as UGCard,
|
|
235
277
|
CardContent as UGCardContent,
|
|
236
278
|
CardDescription as UGCardDescription,
|
|
@@ -238,6 +280,10 @@ export {
|
|
|
238
280
|
CardHeader as UGCardHeader,
|
|
239
281
|
CardTitle as UGCardTitle,
|
|
240
282
|
Checkbox as UGCheckbox,
|
|
283
|
+
CheckboxGroup as UGCheckboxGroup,
|
|
284
|
+
Col as UGCol,
|
|
285
|
+
ConfigProvider as UGConfigProvider,
|
|
286
|
+
Container as UGContainer,
|
|
241
287
|
ContextMenu as UGContextMenu,
|
|
242
288
|
ContextMenuContent as UGContextMenuContent,
|
|
243
289
|
ContextMenuItem as UGContextMenuItem,
|
|
@@ -260,6 +306,7 @@ export {
|
|
|
260
306
|
DropdownSeparator as UGDropdownSeparator,
|
|
261
307
|
DropdownTrigger as UGDropdownTrigger,
|
|
262
308
|
EmptyState as UGEmptyState,
|
|
309
|
+
Footer as UGFooter,
|
|
263
310
|
Form as UGForm,
|
|
264
311
|
FormControl as UGFormControl,
|
|
265
312
|
FormDescription as UGFormDescription,
|
|
@@ -267,8 +314,12 @@ export {
|
|
|
267
314
|
FormItem as UGFormItem,
|
|
268
315
|
FormLabel as UGFormLabel,
|
|
269
316
|
FormMessage as UGFormMessage,
|
|
317
|
+
Header as UGHeader,
|
|
318
|
+
Icon as UGIcon,
|
|
270
319
|
Input as UGInput,
|
|
271
320
|
Label as UGLabel,
|
|
321
|
+
Link as UGLink,
|
|
322
|
+
Main as UGMain,
|
|
272
323
|
Modal as UGModal,
|
|
273
324
|
ModalCloseButton as UGModalCloseButton,
|
|
274
325
|
ModalContent as UGModalContent,
|
|
@@ -289,13 +340,18 @@ export {
|
|
|
289
340
|
Progress as UGProgress,
|
|
290
341
|
Radio as UGRadio,
|
|
291
342
|
RadioGroup as UGRadioGroup,
|
|
343
|
+
Row as UGRow,
|
|
344
|
+
Scrollbar as UGScrollbar,
|
|
292
345
|
Select as UGSelect,
|
|
293
346
|
Separator as UGSeparator,
|
|
294
347
|
Sheet as UGSheet,
|
|
295
348
|
Sidebar as UGSidebar,
|
|
296
349
|
Skeleton as UGSkeleton,
|
|
297
350
|
Slider as UGSlider,
|
|
351
|
+
Space as UGSpace,
|
|
298
352
|
Spinner as UGSpinner,
|
|
353
|
+
Splitter as UGSplitter,
|
|
354
|
+
SplitterPanel as UGSplitterPanel,
|
|
299
355
|
Statistic as UGStatistic,
|
|
300
356
|
Steps as UGSteps,
|
|
301
357
|
Switch as UGSwitch,
|
|
@@ -310,6 +366,7 @@ export {
|
|
|
310
366
|
TabsList as UGTabsList,
|
|
311
367
|
TabsTrigger as UGTabsTrigger,
|
|
312
368
|
Tag as UGTag,
|
|
369
|
+
Text as UGText,
|
|
313
370
|
Textarea as UGTextarea,
|
|
314
371
|
Toaster as UGToaster,
|
|
315
372
|
Tooltip as UGTooltip,
|
|
@@ -318,13 +375,17 @@ export {
|
|
|
318
375
|
badgeVariants,
|
|
319
376
|
buttonVariants,
|
|
320
377
|
checkboxVariants,
|
|
378
|
+
controlSizeToComponentSize,
|
|
321
379
|
numberInputVariants,
|
|
380
|
+
resolveControlSize,
|
|
381
|
+
resolveDisabled,
|
|
322
382
|
tagVariants,
|
|
323
383
|
toast,
|
|
324
384
|
badgeVariants as ugBadgeVariants,
|
|
325
385
|
buttonVariants as ugButtonVariants,
|
|
326
386
|
checkboxVariants as ugCheckboxVariants,
|
|
327
387
|
numberInputVariants as ugNumberInputVariants,
|
|
328
|
-
tagVariants as ugTagVariants
|
|
388
|
+
tagVariants as ugTagVariants,
|
|
389
|
+
useUIConfig
|
|
329
390
|
};
|
|
330
391
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type TextCountFunction } from '@ug666/ui-core';
|
|
3
|
+
import { type ControlSize } from './config-provider';
|
|
4
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'> {
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
error?: ReactNode;
|
|
7
|
+
helperText?: ReactNode;
|
|
8
|
+
size?: ControlSize;
|
|
9
|
+
prefix?: ReactNode;
|
|
10
|
+
suffix?: ReactNode;
|
|
11
|
+
prepend?: ReactNode;
|
|
12
|
+
append?: ReactNode;
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
clearIcon?: ReactNode;
|
|
15
|
+
showPassword?: boolean;
|
|
16
|
+
passwordVisibleIcon?: ReactNode;
|
|
17
|
+
passwordHiddenIcon?: ReactNode;
|
|
18
|
+
showWordLimit?: boolean;
|
|
19
|
+
wordLimitPosition?: 'inside' | 'outside';
|
|
20
|
+
countCharacters?: TextCountFunction;
|
|
21
|
+
formatter?: (value: string) => string;
|
|
22
|
+
parser?: (value: string) => string;
|
|
23
|
+
onClear?: () => void;
|
|
24
|
+
onValueChange?: (value: string) => void;
|
|
25
|
+
}
|
|
26
|
+
declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
27
|
+
export { Input };
|
|
28
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAA;AAEd,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAE1B,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACtG,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mBAAmB,CAAC,EAAE,SAAS,CAAA;IAC/B,kBAAkB,CAAC,EAAE,SAAS,CAAA;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IACxC,eAAe,CAAC,EAAE,iBAAiB,CAAA;IACnC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACrC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACxC;AAiCD,QAAA,MAAM,KAAK,yGAqTV,CAAA;AAID,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ControlSize } from './config-provider';
|
|
2
|
+
export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
3
|
+
/** 是否为必填项,显示红色星号 */
|
|
4
|
+
required?: boolean;
|
|
5
|
+
/** 标签尺寸;未指定时继承 ConfigProvider */
|
|
6
|
+
size?: ControlSize;
|
|
7
|
+
/** 禁用状态;用于与禁用控件保持一致的视觉和语义 */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 通用标签组件
|
|
12
|
+
* @example
|
|
13
|
+
* <Label htmlFor="email">邮箱</Label>
|
|
14
|
+
* <Label htmlFor="name" required>姓名</Label>
|
|
15
|
+
*/
|
|
16
|
+
declare const Label: import("react").ForwardRefExoticComponent<LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
17
|
+
export { Label };
|
|
18
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/components/label.tsx"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAE1B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7E,oBAAoB;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iCAAiC;IACjC,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAQD;;;;;GAKG;AACH,QAAA,MAAM,KAAK,yGAsCT,CAAA;AAIF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ElementType } from 'react';
|
|
2
|
+
export type RowGutter = number | [horizontal: number, vertical: number];
|
|
3
|
+
export type RowJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
4
|
+
export type RowAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
5
|
+
export interface ColSize {
|
|
6
|
+
span?: number;
|
|
7
|
+
offset?: number;
|
|
8
|
+
push?: number;
|
|
9
|
+
pull?: number;
|
|
10
|
+
}
|
|
11
|
+
export type ColBreakpoint = number | ColSize;
|
|
12
|
+
export interface RowProps extends React.HTMLAttributes<HTMLElement> {
|
|
13
|
+
as?: ElementType;
|
|
14
|
+
gutter?: RowGutter;
|
|
15
|
+
justify?: RowJustify;
|
|
16
|
+
align?: RowAlign;
|
|
17
|
+
wrap?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface ColProps extends React.HTMLAttributes<HTMLElement> {
|
|
20
|
+
as?: ElementType;
|
|
21
|
+
span?: number;
|
|
22
|
+
offset?: number;
|
|
23
|
+
push?: number;
|
|
24
|
+
pull?: number;
|
|
25
|
+
xs?: ColBreakpoint;
|
|
26
|
+
sm?: ColBreakpoint;
|
|
27
|
+
md?: ColBreakpoint;
|
|
28
|
+
lg?: ColBreakpoint;
|
|
29
|
+
xl?: ColBreakpoint;
|
|
30
|
+
}
|
|
31
|
+
declare const Row: import("react").ForwardRefExoticComponent<RowProps & import("react").RefAttributes<HTMLElement>>;
|
|
32
|
+
declare const Col: import("react").ForwardRefExoticComponent<ColProps & import("react").RefAttributes<HTMLElement>>;
|
|
33
|
+
export { Row, Col };
|
|
34
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/components/layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,OAAO,CAAA;AAGpD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;AACvE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AACrF,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAA;AAE7D,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AACD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,CAAA;AAE5C,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACjE,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,KAAK,CAAC,EAAE,QAAQ,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACjE,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,EAAE,CAAC,EAAE,aAAa,CAAA;CACnB;AA2CD,QAAA,MAAM,GAAG,kGA2BR,CAAA;AAED,QAAA,MAAM,GAAG,kGAqER,CAAA;AAKD,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ControlSize } from './config-provider';
|
|
3
|
+
export type LinkTone = 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'inherit';
|
|
4
|
+
export type LinkUnderline = 'always' | 'hover' | 'never';
|
|
5
|
+
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
6
|
+
startIcon?: ReactNode;
|
|
7
|
+
endIcon?: ReactNode;
|
|
8
|
+
underline?: LinkUnderline;
|
|
9
|
+
tone?: LinkTone;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
external?: boolean;
|
|
12
|
+
showExternalIcon?: boolean;
|
|
13
|
+
size?: ControlSize;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
17
|
+
export { Link };
|
|
18
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGlD,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAE1B,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAA;AACpG,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAA;AAExD,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AA2BD,QAAA,MAAM,IAAI,yGAiFT,CAAA;AAID,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface ModalProps {
|
|
2
|
+
/** 是否显示 */
|
|
3
|
+
open: boolean;
|
|
4
|
+
/** 关闭回调 */
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
/** 子内容 */
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** 额外类名 */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** 无障碍名称,默认“对话框” */
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ModalContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
/** 最大宽度,默认 max-w-lg */
|
|
15
|
+
maxWidth?: string;
|
|
16
|
+
}
|
|
17
|
+
export type ModalHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
18
|
+
export type ModalTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
|
|
19
|
+
export type ModalFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
20
|
+
export interface ModalCloseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 对话框组件
|
|
24
|
+
* @example
|
|
25
|
+
* <Modal open={isOpen} onClose={() => setIsOpen(false)}>
|
|
26
|
+
* <ModalContent>
|
|
27
|
+
* <ModalHeader>
|
|
28
|
+
* <ModalTitle>确认删除</ModalTitle>
|
|
29
|
+
* </ModalHeader>
|
|
30
|
+
* <p className="px-[var(--content-gap)] pb-[var(--content-gap)] text-sm text-text-secondary">此操作不可撤销。</p>
|
|
31
|
+
* <ModalFooter>
|
|
32
|
+
* <Button variant="outline" onClick={() => setIsOpen(false)}>取消</Button>
|
|
33
|
+
* <Button variant="destructive">删除</Button>
|
|
34
|
+
* </ModalFooter>
|
|
35
|
+
* </ModalContent>
|
|
36
|
+
* </Modal>
|
|
37
|
+
*/
|
|
38
|
+
declare const Modal: import("react").ForwardRefExoticComponent<ModalProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const ModalContent: import("react").ForwardRefExoticComponent<ModalContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare const ModalHeader: import("react").ForwardRefExoticComponent<ModalHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const ModalTitle: import("react").ForwardRefExoticComponent<ModalTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
42
|
+
declare const ModalFooter: import("react").ForwardRefExoticComponent<ModalFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
43
|
+
/** 独立关闭按钮,可放在 ModalHeader 右侧 */
|
|
44
|
+
declare const ModalCloseButton: import("react").ForwardRefExoticComponent<ModalCloseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
45
|
+
export { Modal, ModalContent, ModalHeader, ModalTitle, ModalFooter, ModalCloseButton };
|
|
46
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/components/modal.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,UAAU;IACzB,WAAW;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW;IACX,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,UAAU;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oBAAoB;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,uBAAuB;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AACnE,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAA;AACtE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AACnE,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAe/F;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,KAAK,uGAgDT,CAAA;AAEF,QAAA,MAAM,YAAY,8GAMhB,CAAA;AAEF,QAAA,MAAM,WAAW,6GAEf,CAAA;AAEF,QAAA,MAAM,UAAU,gHAGd,CAAA;AAEF,QAAA,MAAM,WAAW,6GAEf,CAAA;AAEF,gCAAgC;AAChC,QAAA,MAAM,gBAAgB,qHAsBpB,CAAA;AASF,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface NavigationMenuProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
|
+
}
|
|
3
|
+
export interface NavigationMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
}
|
|
5
|
+
export interface NavigationMenuLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
6
|
+
/** 是否为当前激活页 */
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface NavigationMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
10
|
+
}
|
|
11
|
+
export interface NavigationMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 顶部横向导航菜单根容器
|
|
15
|
+
* @example
|
|
16
|
+
* <NavigationMenu>
|
|
17
|
+
* <NavigationMenuItem>
|
|
18
|
+
* <NavigationMenuLink href="/">首页</NavigationMenuLink>
|
|
19
|
+
* </NavigationMenuItem>
|
|
20
|
+
* <NavigationMenuItem>
|
|
21
|
+
* <NavigationMenuTrigger>产品</NavigationMenuTrigger>
|
|
22
|
+
* <NavigationMenuContent>
|
|
23
|
+
* <NavigationMenuLink href="/products/a">产品 A</NavigationMenuLink>
|
|
24
|
+
* <NavigationMenuLink href="/products/b">产品 B</NavigationMenuLink>
|
|
25
|
+
* </NavigationMenuContent>
|
|
26
|
+
* </NavigationMenuItem>
|
|
27
|
+
* </NavigationMenu>
|
|
28
|
+
*/
|
|
29
|
+
declare const NavigationMenu: import("react").ForwardRefExoticComponent<NavigationMenuProps & import("react").RefAttributes<HTMLElement>>;
|
|
30
|
+
/** 导航菜单项容器,可包含 Link 或 Trigger + Content */
|
|
31
|
+
declare const NavigationMenuItem: import("react").ForwardRefExoticComponent<NavigationMenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
+
/** 直接跳转的导航链接 */
|
|
33
|
+
declare const NavigationMenuLink: import("react").ForwardRefExoticComponent<NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
34
|
+
/** 带下拉面板的触发器按钮 */
|
|
35
|
+
declare const NavigationMenuTrigger: import("react").ForwardRefExoticComponent<NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
/** 下拉面板内容 */
|
|
37
|
+
declare const NavigationMenuContent: import("react").ForwardRefExoticComponent<NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
38
|
+
export { NavigationMenu, NavigationMenuItem, NavigationMenuLink, NavigationMenuTrigger, NavigationMenuContent, };
|
|
39
|
+
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/components/navigation-menu.tsx"],"names":[],"mappings":"AAqCA,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;CAAG;AAEjF,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAExF,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC5F,eAAe;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,0BAA2B,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpG,MAAM,WAAW,0BAA2B,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3F;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,cAAc,6GAqBnB,CAAA;AAED,2CAA2C;AAC3C,QAAA,MAAM,kBAAkB,oHAsCvB,CAAA;AAED,gBAAgB;AAChB,QAAA,MAAM,kBAAkB,uHAqBvB,CAAA;AAED,kBAAkB;AAClB,QAAA,MAAM,qBAAqB,0HA+D1B,CAAA;AAED,aAAa;AACb,QAAA,MAAM,qBAAqB,uHA+B1B,CAAA;AAQD,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,GACtB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: NumberInput 数字步进输入框组件
|
|
3
|
+
* @author: UG
|
|
4
|
+
* @date: 2026-07-27
|
|
5
|
+
*/
|
|
6
|
+
import { type ReactNode } from 'react';
|
|
7
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
8
|
+
declare const numberInputVariants: (props?: ({
|
|
9
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
export type NumberInputControlsPosition = 'both' | 'right';
|
|
12
|
+
export type NumberInputValue = number | null;
|
|
13
|
+
export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'defaultValue' | 'onChange' | 'type' | 'readOnly'>, VariantProps<typeof numberInputVariants> {
|
|
14
|
+
value?: NumberInputValue;
|
|
15
|
+
defaultValue?: NumberInputValue;
|
|
16
|
+
min?: number;
|
|
17
|
+
max?: number;
|
|
18
|
+
step?: number;
|
|
19
|
+
precision?: number;
|
|
20
|
+
stepStrictly?: boolean;
|
|
21
|
+
controls?: boolean;
|
|
22
|
+
controlsPosition?: NumberInputControlsPosition;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
readOnly?: boolean;
|
|
25
|
+
valueOnClear?: NumberInputValue;
|
|
26
|
+
formatter?: (value: number) => string;
|
|
27
|
+
parser?: (value: string) => number | null;
|
|
28
|
+
decrementIcon?: ReactNode;
|
|
29
|
+
incrementIcon?: ReactNode;
|
|
30
|
+
onValueChange?: (value: NumberInputValue) => void;
|
|
31
|
+
onValueCommit?: (value: NumberInputValue) => void;
|
|
32
|
+
}
|
|
33
|
+
declare const NumberInput: import("react").ForwardRefExoticComponent<NumberInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
|
+
export { NumberInput, numberInputVariants };
|
|
35
|
+
//# sourceMappingURL=number-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/components/number-input.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAEd,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAQjE,QAAA,MAAM,mBAAmB;;8EAYxB,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,OAAO,CAAA;AAC1D,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAAA;AAE5C,MAAM,WAAW,gBACf,SAAQ,IAAI,CACR,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CACrE,EACD,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAC1C,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,2BAA2B,CAAA;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACrC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;IACzC,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACjD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;CAClD;AAkBD,QAAA,MAAM,WAAW,+GA4ShB,CAAA;AAID,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface OTPInputProps {
|
|
2
|
+
/** 当前验证码值(受控) */
|
|
3
|
+
value: string;
|
|
4
|
+
/** 值变化回调 */
|
|
5
|
+
onValueChange: (value: string) => void;
|
|
6
|
+
/** 验证码位数,默认 6 */
|
|
7
|
+
length?: number;
|
|
8
|
+
/** 是否禁用 */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** 输入完整时的回调 */
|
|
11
|
+
onComplete?: (value: string) => void;
|
|
12
|
+
/** 额外类名(作用于容器) */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 一次性验证码(OTP)输入组件
|
|
17
|
+
*
|
|
18
|
+
* 渲染 N 个独立小方框,支持逐位输入数字、左右方向键切换焦点、
|
|
19
|
+
* Backspace 清除并返回上一格,以及粘贴完整验证码自动填充。
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* const [code, setCode] = useState('')
|
|
24
|
+
*
|
|
25
|
+
* <OTPInput
|
|
26
|
+
* value={code}
|
|
27
|
+
* onValueChange={setCode}
|
|
28
|
+
* length={6}
|
|
29
|
+
* onComplete={verifyCode}
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
declare const OTPInput: import("react").ForwardRefExoticComponent<OTPInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export { OTPInput };
|
|
35
|
+
//# sourceMappingURL=otp-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otp-input.d.ts","sourceRoot":"","sources":["../../src/components/otp-input.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC5B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY;IACZ,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe;IACf,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,kBAAkB;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,QAAQ,0GAiKb,CAAA;AAID,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
|
+
/** 当前页码,从 1 开始 */
|
|
3
|
+
page: number;
|
|
4
|
+
/** 总页数 */
|
|
5
|
+
totalPages: number;
|
|
6
|
+
/** 页码变化回调 */
|
|
7
|
+
onPageChange: (page: number) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 分页组件
|
|
11
|
+
* @example
|
|
12
|
+
* <Pagination page={currentPage} totalPages={20} onPageChange={setCurrentPage} />
|
|
13
|
+
*/
|
|
14
|
+
declare const Pagination: import("react").ForwardRefExoticComponent<PaginationProps & import("react").RefAttributes<HTMLElement>>;
|
|
15
|
+
export { Pagination };
|
|
16
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/components/pagination.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACxE,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACrC;AAkBD;;;;GAIG;AACH,QAAA,MAAM,UAAU,yGAiFd,CAAA;AAIF,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** 浮层显示方向 */
|
|
2
|
+
export type PopoverSide = 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
/** 浮层对齐方式 */
|
|
4
|
+
export type PopoverAlign = 'start' | 'center' | 'end';
|
|
5
|
+
export interface PopoverProps {
|
|
6
|
+
/** 受控:是否显示 */
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/** 非受控:默认是否显示 */
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
/** 状态变更回调 */
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
/** 子内容 */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface PopoverTriggerProps {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
20
|
+
/** 浮层方向,默认 bottom */
|
|
21
|
+
side?: PopoverSide;
|
|
22
|
+
/** 对齐方式,默认 center */
|
|
23
|
+
align?: PopoverAlign;
|
|
24
|
+
/** 与触发器的间距,默认 4 */
|
|
25
|
+
sideOffset?: number;
|
|
26
|
+
}
|
|
27
|
+
declare function Popover({ open: controlledOpen, defaultOpen, onOpenChange, children }: PopoverProps): import("react").JSX.Element;
|
|
28
|
+
declare namespace Popover {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
/** Popover 触发器 */
|
|
32
|
+
declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverTriggerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
|
+
/** Popover 内容浮层,通过 createPortal 渲染到 body */
|
|
34
|
+
declare const PopoverContent: import("react").ForwardRefExoticComponent<PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
36
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":"AAWA,aAAa;AACb,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE7D,aAAa;AACb,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AAyCrD,MAAM,WAAW,YAAY;IAC3B,cAAc;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,iBAAiB;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,aAAa;IACb,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,UAAU;IACV,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/E,qBAAqB;IACrB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,qBAAqB;IACrB,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;yBAYgB,EAAE,IAAI,EAAE,cAAc,EAAE,WAAmB,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,YAAY;;;;AAiCpG,kBAAkB;AAClB,QAAA,MAAM,cAAc,gHA2ClB,CAAA;AA4CF,4CAA4C;AAC5C,QAAA,MAAM,cAAc,gHA6FnB,CAAA;AAID,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type ProgressColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
2
|
+
export interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** 当前进度值 0-100 */
|
|
4
|
+
value: number;
|
|
5
|
+
/** 最大值,默认 100 */
|
|
6
|
+
max?: number;
|
|
7
|
+
/** 是否显示百分比文本 */
|
|
8
|
+
showLabel?: boolean;
|
|
9
|
+
/** 进度条语义颜色 */
|
|
10
|
+
color?: ProgressColor;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 进度条组件
|
|
14
|
+
* @example
|
|
15
|
+
* <Progress value={60} showLabel />
|
|
16
|
+
* <Progress value={80} color="success" />
|
|
17
|
+
* <Progress value={30} max={200} showLabel />
|
|
18
|
+
*/
|
|
19
|
+
declare const Progress: import("react").ForwardRefExoticComponent<ProgressProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export { Progress };
|
|
21
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAA;AAUjF,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gBAAgB;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc;IACd,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED;;;;;;GAMG;AACH,QAAA,MAAM,QAAQ,0GA6CZ,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|