@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
package/dist/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
|
useClickOutside,
|
|
89
90
|
useCopyToClipboard,
|
|
@@ -98,7 +99,7 @@ import {
|
|
|
98
99
|
usePagination,
|
|
99
100
|
useTimeout,
|
|
100
101
|
useToggle
|
|
101
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-M6J4PLF4.js";
|
|
102
103
|
import {
|
|
103
104
|
Modal,
|
|
104
105
|
ModalCloseButton,
|
|
@@ -107,205 +108,50 @@ import {
|
|
|
107
108
|
ModalHeader,
|
|
108
109
|
ModalTitle,
|
|
109
110
|
Sidebar
|
|
110
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-AKWJMDCW.js";
|
|
111
112
|
import {
|
|
113
|
+
theme
|
|
114
|
+
} from "./chunk-N3Z7R6GG.js";
|
|
115
|
+
import {
|
|
116
|
+
Aside,
|
|
112
117
|
Badge,
|
|
118
|
+
ButtonGroup,
|
|
113
119
|
Card,
|
|
114
120
|
CardContent,
|
|
115
121
|
CardDescription,
|
|
116
122
|
CardFooter,
|
|
117
123
|
CardHeader,
|
|
118
124
|
CardTitle,
|
|
125
|
+
Col,
|
|
126
|
+
Container,
|
|
127
|
+
Footer,
|
|
128
|
+
Header,
|
|
129
|
+
Icon,
|
|
119
130
|
Input,
|
|
120
131
|
Label,
|
|
132
|
+
Link,
|
|
133
|
+
Main,
|
|
134
|
+
Row,
|
|
135
|
+
Scrollbar,
|
|
121
136
|
Separator,
|
|
137
|
+
Space,
|
|
122
138
|
Spinner,
|
|
139
|
+
Splitter,
|
|
140
|
+
SplitterPanel,
|
|
123
141
|
Tag,
|
|
142
|
+
Text,
|
|
124
143
|
badgeVariants,
|
|
125
144
|
tagVariants
|
|
126
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-HGO3GZ56.js";
|
|
127
146
|
import {
|
|
128
147
|
Button,
|
|
148
|
+
ConfigProvider,
|
|
129
149
|
buttonVariants,
|
|
150
|
+
useUIConfig
|
|
151
|
+
} from "./chunk-HXIWD5LQ.js";
|
|
152
|
+
import {
|
|
130
153
|
cn
|
|
131
|
-
} from "./chunk-
|
|
132
|
-
|
|
133
|
-
// src/theme.ts
|
|
134
|
-
var theme = {
|
|
135
|
-
colors: {
|
|
136
|
-
primary: {
|
|
137
|
-
DEFAULT: "hsl(var(--primary))",
|
|
138
|
-
hover: "hsl(var(--primary-hover))",
|
|
139
|
-
active: "hsl(var(--primary-active))",
|
|
140
|
-
foreground: "hsl(var(--primary-fg))",
|
|
141
|
-
soft: "hsl(var(--primary-soft) / 0.12)",
|
|
142
|
-
softForeground: "hsl(var(--primary-soft-fg))"
|
|
143
|
-
},
|
|
144
|
-
success: {
|
|
145
|
-
DEFAULT: "hsl(var(--success))",
|
|
146
|
-
hover: "hsl(var(--success-hover))",
|
|
147
|
-
foreground: "hsl(var(--success-fg))",
|
|
148
|
-
soft: "hsl(var(--success-soft) / 0.12)",
|
|
149
|
-
softForeground: "hsl(var(--success-soft-fg))"
|
|
150
|
-
},
|
|
151
|
-
warning: {
|
|
152
|
-
DEFAULT: "hsl(var(--warning))",
|
|
153
|
-
hover: "hsl(var(--warning-hover))",
|
|
154
|
-
foreground: "hsl(var(--warning-fg))",
|
|
155
|
-
soft: "hsl(var(--warning-soft) / 0.12)",
|
|
156
|
-
softForeground: "hsl(var(--warning-soft-fg))"
|
|
157
|
-
},
|
|
158
|
-
danger: {
|
|
159
|
-
DEFAULT: "hsl(var(--danger))",
|
|
160
|
-
hover: "hsl(var(--danger-hover))",
|
|
161
|
-
foreground: "hsl(var(--danger-fg))",
|
|
162
|
-
soft: "hsl(var(--danger-soft) / 0.12)",
|
|
163
|
-
softForeground: "hsl(var(--danger-soft-fg))"
|
|
164
|
-
},
|
|
165
|
-
info: {
|
|
166
|
-
DEFAULT: "hsl(var(--info))",
|
|
167
|
-
hover: "hsl(var(--info-hover))",
|
|
168
|
-
foreground: "hsl(var(--info-fg))",
|
|
169
|
-
soft: "hsl(var(--info-soft) / 0.12)",
|
|
170
|
-
softForeground: "hsl(var(--info-soft-fg))"
|
|
171
|
-
},
|
|
172
|
-
surface: {
|
|
173
|
-
0: "hsl(var(--surface-0))",
|
|
174
|
-
1: "hsl(var(--surface-1))",
|
|
175
|
-
2: "hsl(var(--surface-2))",
|
|
176
|
-
3: "hsl(var(--surface-3))"
|
|
177
|
-
},
|
|
178
|
-
text: {
|
|
179
|
-
primary: "hsl(var(--text-primary))",
|
|
180
|
-
secondary: "hsl(var(--text-secondary))",
|
|
181
|
-
tertiary: "hsl(var(--text-tertiary))",
|
|
182
|
-
inverted: "hsl(var(--text-inverted))"
|
|
183
|
-
},
|
|
184
|
-
border: {
|
|
185
|
-
strong: "hsl(var(--border-strong))",
|
|
186
|
-
base: "hsl(var(--border-base))",
|
|
187
|
-
subtle: "hsl(var(--border-subtle))"
|
|
188
|
-
},
|
|
189
|
-
ring: "hsl(var(--ring))",
|
|
190
|
-
overlay: "hsl(var(--overlay) / var(--overlay-alpha))"
|
|
191
|
-
},
|
|
192
|
-
radius: { sm: "var(--radius-sm)", md: "var(--radius-md)", lg: "var(--radius-lg)", xl: "var(--radius-xl)", full: "9999px" },
|
|
193
|
-
fontFamily: { sans: "var(--font-sans)", mono: "var(--font-mono)" }
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
// src/component-layers.ts
|
|
197
|
-
var reactComponentLayers = [
|
|
198
|
-
{
|
|
199
|
-
id: "primitives",
|
|
200
|
-
label: "\u57FA\u7840\u7EC4\u4EF6",
|
|
201
|
-
description: "\u6700\u5C0F\u53EF\u590D\u7528\u89C6\u89C9\u5355\u5143\uFF0C\u8D1F\u8D23\u6309\u94AE\u3001\u5BB9\u5668\u3001\u6807\u7B7E\u3001\u5206\u9694\u548C\u52A0\u8F7D\u57FA\u7840\u72B6\u6001\u3002",
|
|
202
|
-
components: [
|
|
203
|
-
{ name: "UGButton", route: "/react/components/button" },
|
|
204
|
-
{ name: "UGInput", route: "/react/components/input" },
|
|
205
|
-
{ name: "UGLabel", route: "/react/components/label" },
|
|
206
|
-
{ name: "UGCard", route: "/react/components/card" },
|
|
207
|
-
{ name: "UGBadge", route: "/react/components/badge" },
|
|
208
|
-
{ name: "UGTag", route: "/react/components/tag" },
|
|
209
|
-
{ name: "UGSeparator", route: "/react/components/separator" },
|
|
210
|
-
{ name: "UGSpinner", route: "/react/components/spinner" }
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
id: "forms",
|
|
215
|
-
label: "\u8868\u5355\u8F93\u5165",
|
|
216
|
-
description: "\u6536\u96C6\u3001\u6821\u9A8C\u548C\u7F16\u8F91\u7528\u6237\u8F93\u5165\uFF0C\u8981\u6C42\u6807\u7B7E\u3001\u5E2E\u52A9\u6587\u672C\u3001\u9519\u8BEF\u72B6\u6001\u7A33\u5B9A\u5BF9\u9F50\u3002",
|
|
217
|
-
components: [
|
|
218
|
-
{ name: "UGTextarea", route: "/react/components/textarea" },
|
|
219
|
-
{ name: "UGSelect", route: "/react/components/select" },
|
|
220
|
-
{ name: "UGCheckbox", route: "/react/components/checkbox" },
|
|
221
|
-
{ name: "UGRadio", route: "/react/components/radio" },
|
|
222
|
-
{ name: "UGSwitch", route: "/react/components/switch" },
|
|
223
|
-
{ name: "UGSlider", route: "/react/components/slider" },
|
|
224
|
-
{ name: "UGNumberInput", route: "/react/components/number-input" },
|
|
225
|
-
{ name: "UGOTPInput", route: "/react/components/otp-input" },
|
|
226
|
-
{ name: "UGForm", route: "/react/components/form" }
|
|
227
|
-
]
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
id: "navigation",
|
|
231
|
-
label: "\u5BFC\u822A\u6D41\u7A0B",
|
|
232
|
-
description: "\u9875\u9762\u5B9A\u4F4D\u3001\u533A\u57DF\u5207\u6362\u3001\u5206\u9875\u548C\u6D41\u7A0B\u8868\u8FBE\uFF0C\u8981\u6C42\u9009\u4E2D\u6001\u660E\u786E\u4E14\u79FB\u52A8\u7AEF\u4E0D\u6EA2\u51FA\u3002",
|
|
233
|
-
components: [
|
|
234
|
-
{ name: "UGTabs", route: "/react/components/tabs" },
|
|
235
|
-
{ name: "UGBreadcrumb", route: "/react/components/breadcrumb" },
|
|
236
|
-
{ name: "UGPagination", route: "/react/components/pagination" },
|
|
237
|
-
{ name: "UGNavigationMenu", route: "/react/components/navigation-menu" },
|
|
238
|
-
{ name: "UGSidebar", route: "/react/components/sidebar" },
|
|
239
|
-
{ name: "UGSteps", route: "/react/components/steps" }
|
|
240
|
-
]
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
id: "overlays",
|
|
244
|
-
label: "\u6D6E\u5C42\u5F39\u5C42",
|
|
245
|
-
description: "\u4E34\u65F6\u627F\u8F7D\u64CD\u4F5C\u548C\u4E0A\u4E0B\u6587\u4FE1\u606F\uFF0C\u8981\u6C42\u5B9A\u4F4D\u3001\u5173\u95ED\u3001\u7126\u70B9\u548C\u906E\u7F69\u884C\u4E3A\u53EF\u9760\u3002",
|
|
246
|
-
components: [
|
|
247
|
-
{ name: "UGModal", route: "/react/components/modal" },
|
|
248
|
-
{ name: "UGDialog", route: "/react/components/dialog" },
|
|
249
|
-
{ name: "UGDrawer", route: "/react/components/drawer" },
|
|
250
|
-
{ name: "UGSheet", route: "/react/components/sheet" },
|
|
251
|
-
{ name: "UGDropdownMenu", route: "/react/components/dropdown" },
|
|
252
|
-
{ name: "UGContextMenu", route: "/react/components/context-menu" },
|
|
253
|
-
{ name: "UGPopover", route: "/react/components/popover" },
|
|
254
|
-
{ name: "UGTooltip", route: "/react/components/tooltip" }
|
|
255
|
-
]
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
id: "feedback",
|
|
259
|
-
label: "\u53CD\u9988\u72B6\u6001",
|
|
260
|
-
description: "\u8868\u8FBE\u6210\u529F\u3001\u8B66\u544A\u3001\u9519\u8BEF\u3001\u7A7A\u72B6\u6001\u548C\u52A0\u8F7D\u8FC7\u7A0B\uFF0C\u8981\u6C42\u8BED\u4E49\u6587\u6848\u548C\u89C6\u89C9\u72B6\u6001\u4E00\u81F4\u3002",
|
|
261
|
-
components: [
|
|
262
|
-
{ name: "UGAlert", route: "/react/components/alert" },
|
|
263
|
-
{ name: "UGToaster", route: "/react/components/toast" },
|
|
264
|
-
{ name: "UGProgress", route: "/react/components/progress" },
|
|
265
|
-
{ name: "UGSkeleton", route: "/react/components/skeleton" },
|
|
266
|
-
{ name: "UGEmptyState", route: "/react/components/empty-state" }
|
|
267
|
-
]
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
id: "data",
|
|
271
|
-
label: "\u6570\u636E\u5C55\u793A",
|
|
272
|
-
description: "\u5C55\u793A\u5217\u8868\u3001\u5BF9\u8C61\u8BE6\u60C5\u3001\u5934\u50CF\u3001\u6307\u6807\u548C\u6298\u53E0\u4FE1\u606F\uFF0C\u8981\u6C42\u5BC6\u5EA6\u6E05\u6670\u4E14\u6587\u672C\u4E0D\u6324\u51FA\u3002",
|
|
273
|
-
components: [
|
|
274
|
-
{ name: "UGTable", route: "/react/components/table" },
|
|
275
|
-
{ name: "UGDescriptions", route: "/react/components/descriptions" },
|
|
276
|
-
{ name: "UGStatistic", route: "/react/components/statistic" },
|
|
277
|
-
{ name: "UGAvatar", route: "/react/components/avatar" },
|
|
278
|
-
{ name: "UGAvatarGroup", route: "/react/components/avatar-group" },
|
|
279
|
-
{ name: "UGAccordion", route: "/react/components/accordion" }
|
|
280
|
-
]
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
id: "patterns",
|
|
284
|
-
label: "\u6846\u67B6\u6A21\u5F0F",
|
|
285
|
-
description: "\u540E\u53F0\u3001\u5DE5\u5177\u578B\u548C\u8DE8\u4E1A\u52A1\u901A\u7528\u6A21\u5F0F\uFF0C\u901A\u8FC7\u5B50\u5165\u53E3 @ug666/ui-react/patterns \u4F7F\u7528\u3002",
|
|
286
|
-
components: [
|
|
287
|
-
{ name: "UGAdminShell", route: "/react/patterns#adminshell" },
|
|
288
|
-
{ name: "UGPageHeader", route: "/react/patterns#pageheader" },
|
|
289
|
-
{ name: "UGCopyField", route: "/react/patterns#copyfield" },
|
|
290
|
-
{ name: "UGConfirmDialog", route: "/react/patterns#confirmdialog" }
|
|
291
|
-
]
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
id: "blocks",
|
|
295
|
-
label: "\u5C55\u793A\u533A\u5757",
|
|
296
|
-
description: "\u5C55\u793A\u9875\u3001\u4EA7\u54C1\u9875\u548C\u4ECB\u7ECD\u9875\u533A\u5757\uFF0C\u901A\u8FC7\u5B50\u5165\u53E3 @ug666/ui-react/blocks \u4F7F\u7528\u3002",
|
|
297
|
-
components: [
|
|
298
|
-
{ name: "UGLandingHero", route: "/react/blocks#landinghero" },
|
|
299
|
-
{ name: "UGFeatureGrid", route: "/react/blocks#featuregrid" }
|
|
300
|
-
]
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
id: "labs",
|
|
304
|
-
label: "\u5B9E\u9A8C\u7EC4\u4EF6",
|
|
305
|
-
description: "\u5C1A\u672A\u7A33\u5B9A\u627F\u8BFA\u7684\u5B9E\u9A8C\u7EC4\u4EF6\uFF0C\u901A\u8FC7\u5B50\u5165\u53E3 @ug666/ui-react/labs \u4F7F\u7528\u3002",
|
|
306
|
-
components: []
|
|
307
|
-
}
|
|
308
|
-
];
|
|
154
|
+
} from "./chunk-F23X4N6B.js";
|
|
309
155
|
export {
|
|
310
156
|
Accordion,
|
|
311
157
|
AccordionContent,
|
|
@@ -314,6 +160,7 @@ export {
|
|
|
314
160
|
Alert,
|
|
315
161
|
AlertDescription,
|
|
316
162
|
AlertTitle,
|
|
163
|
+
Aside,
|
|
317
164
|
Avatar,
|
|
318
165
|
AvatarFallback,
|
|
319
166
|
AvatarGroup,
|
|
@@ -324,6 +171,7 @@ export {
|
|
|
324
171
|
BreadcrumbLink,
|
|
325
172
|
BreadcrumbSeparator,
|
|
326
173
|
Button,
|
|
174
|
+
ButtonGroup,
|
|
327
175
|
Card,
|
|
328
176
|
CardContent,
|
|
329
177
|
CardDescription,
|
|
@@ -331,6 +179,10 @@ export {
|
|
|
331
179
|
CardHeader,
|
|
332
180
|
CardTitle,
|
|
333
181
|
Checkbox,
|
|
182
|
+
CheckboxGroup,
|
|
183
|
+
Col,
|
|
184
|
+
ConfigProvider,
|
|
185
|
+
Container,
|
|
334
186
|
ContextMenu,
|
|
335
187
|
ContextMenuContent,
|
|
336
188
|
ContextMenuItem,
|
|
@@ -352,6 +204,7 @@ export {
|
|
|
352
204
|
DropdownSeparator,
|
|
353
205
|
DropdownTrigger,
|
|
354
206
|
EmptyState,
|
|
207
|
+
Footer,
|
|
355
208
|
Form,
|
|
356
209
|
FormControl,
|
|
357
210
|
FormDescription,
|
|
@@ -359,8 +212,12 @@ export {
|
|
|
359
212
|
FormItem,
|
|
360
213
|
FormLabel,
|
|
361
214
|
FormMessage,
|
|
215
|
+
Header,
|
|
216
|
+
Icon,
|
|
362
217
|
Input,
|
|
363
218
|
Label,
|
|
219
|
+
Link,
|
|
220
|
+
Main,
|
|
364
221
|
Modal,
|
|
365
222
|
ModalCloseButton,
|
|
366
223
|
ModalContent,
|
|
@@ -381,13 +238,18 @@ export {
|
|
|
381
238
|
Progress,
|
|
382
239
|
Radio,
|
|
383
240
|
RadioGroup,
|
|
241
|
+
Row,
|
|
242
|
+
Scrollbar,
|
|
384
243
|
Select,
|
|
385
244
|
Separator,
|
|
386
245
|
Sheet,
|
|
387
246
|
Sidebar,
|
|
388
247
|
Skeleton,
|
|
389
248
|
Slider,
|
|
249
|
+
Space,
|
|
390
250
|
Spinner,
|
|
251
|
+
Splitter,
|
|
252
|
+
SplitterPanel,
|
|
391
253
|
Statistic,
|
|
392
254
|
Steps,
|
|
393
255
|
Switch,
|
|
@@ -402,6 +264,7 @@ export {
|
|
|
402
264
|
TabsList,
|
|
403
265
|
TabsTrigger,
|
|
404
266
|
Tag,
|
|
267
|
+
Text,
|
|
405
268
|
Textarea,
|
|
406
269
|
Toaster,
|
|
407
270
|
Tooltip,
|
|
@@ -414,6 +277,7 @@ export {
|
|
|
414
277
|
Alert as UGAlert,
|
|
415
278
|
AlertDescription as UGAlertDescription,
|
|
416
279
|
AlertTitle as UGAlertTitle,
|
|
280
|
+
Aside as UGAside,
|
|
417
281
|
Avatar as UGAvatar,
|
|
418
282
|
AvatarFallback as UGAvatarFallback,
|
|
419
283
|
AvatarGroup as UGAvatarGroup,
|
|
@@ -424,6 +288,7 @@ export {
|
|
|
424
288
|
BreadcrumbLink as UGBreadcrumbLink,
|
|
425
289
|
BreadcrumbSeparator as UGBreadcrumbSeparator,
|
|
426
290
|
Button as UGButton,
|
|
291
|
+
ButtonGroup as UGButtonGroup,
|
|
427
292
|
Card as UGCard,
|
|
428
293
|
CardContent as UGCardContent,
|
|
429
294
|
CardDescription as UGCardDescription,
|
|
@@ -431,6 +296,10 @@ export {
|
|
|
431
296
|
CardHeader as UGCardHeader,
|
|
432
297
|
CardTitle as UGCardTitle,
|
|
433
298
|
Checkbox as UGCheckbox,
|
|
299
|
+
CheckboxGroup as UGCheckboxGroup,
|
|
300
|
+
Col as UGCol,
|
|
301
|
+
ConfigProvider as UGConfigProvider,
|
|
302
|
+
Container as UGContainer,
|
|
434
303
|
ContextMenu as UGContextMenu,
|
|
435
304
|
ContextMenuContent as UGContextMenuContent,
|
|
436
305
|
ContextMenuItem as UGContextMenuItem,
|
|
@@ -453,6 +322,7 @@ export {
|
|
|
453
322
|
DropdownSeparator as UGDropdownSeparator,
|
|
454
323
|
DropdownTrigger as UGDropdownTrigger,
|
|
455
324
|
EmptyState as UGEmptyState,
|
|
325
|
+
Footer as UGFooter,
|
|
456
326
|
Form as UGForm,
|
|
457
327
|
FormControl as UGFormControl,
|
|
458
328
|
FormDescription as UGFormDescription,
|
|
@@ -460,8 +330,12 @@ export {
|
|
|
460
330
|
FormItem as UGFormItem,
|
|
461
331
|
FormLabel as UGFormLabel,
|
|
462
332
|
FormMessage as UGFormMessage,
|
|
333
|
+
Header as UGHeader,
|
|
334
|
+
Icon as UGIcon,
|
|
463
335
|
Input as UGInput,
|
|
464
336
|
Label as UGLabel,
|
|
337
|
+
Link as UGLink,
|
|
338
|
+
Main as UGMain,
|
|
465
339
|
Modal as UGModal,
|
|
466
340
|
ModalCloseButton as UGModalCloseButton,
|
|
467
341
|
ModalContent as UGModalContent,
|
|
@@ -482,13 +356,18 @@ export {
|
|
|
482
356
|
Progress as UGProgress,
|
|
483
357
|
Radio as UGRadio,
|
|
484
358
|
RadioGroup as UGRadioGroup,
|
|
359
|
+
Row as UGRow,
|
|
360
|
+
Scrollbar as UGScrollbar,
|
|
485
361
|
Select as UGSelect,
|
|
486
362
|
Separator as UGSeparator,
|
|
487
363
|
Sheet as UGSheet,
|
|
488
364
|
Sidebar as UGSidebar,
|
|
489
365
|
Skeleton as UGSkeleton,
|
|
490
366
|
Slider as UGSlider,
|
|
367
|
+
Space as UGSpace,
|
|
491
368
|
Spinner as UGSpinner,
|
|
369
|
+
Splitter as UGSplitter,
|
|
370
|
+
SplitterPanel as UGSplitterPanel,
|
|
492
371
|
Statistic as UGStatistic,
|
|
493
372
|
Steps as UGSteps,
|
|
494
373
|
Switch as UGSwitch,
|
|
@@ -503,6 +382,7 @@ export {
|
|
|
503
382
|
TabsList as UGTabsList,
|
|
504
383
|
TabsTrigger as UGTabsTrigger,
|
|
505
384
|
Tag as UGTag,
|
|
385
|
+
Text as UGText,
|
|
506
386
|
Textarea as UGTextarea,
|
|
507
387
|
Toaster as UGToaster,
|
|
508
388
|
Tooltip as UGTooltip,
|
|
@@ -513,7 +393,6 @@ export {
|
|
|
513
393
|
checkboxVariants,
|
|
514
394
|
cn,
|
|
515
395
|
numberInputVariants,
|
|
516
|
-
reactComponentLayers,
|
|
517
396
|
tagVariants,
|
|
518
397
|
theme,
|
|
519
398
|
toast,
|
|
@@ -534,6 +413,7 @@ export {
|
|
|
534
413
|
useMounted,
|
|
535
414
|
usePagination,
|
|
536
415
|
useTimeout,
|
|
537
|
-
useToggle
|
|
416
|
+
useToggle,
|
|
417
|
+
useUIConfig
|
|
538
418
|
};
|
|
539
419
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme.ts","../src/component-layers.ts"],"sourcesContent":["/**\n * @description: 主题配置 — 暴露与 configs/tokens.css 对齐的 CSS 变量引用\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-04-15\n */\n\nexport const theme = {\n colors: {\n primary: {\n DEFAULT: 'hsl(var(--primary))',\n hover: 'hsl(var(--primary-hover))',\n active: 'hsl(var(--primary-active))',\n foreground: 'hsl(var(--primary-fg))',\n soft: 'hsl(var(--primary-soft) / 0.12)',\n softForeground: 'hsl(var(--primary-soft-fg))',\n },\n success: {\n DEFAULT: 'hsl(var(--success))',\n hover: 'hsl(var(--success-hover))',\n foreground: 'hsl(var(--success-fg))',\n soft: 'hsl(var(--success-soft) / 0.12)',\n softForeground: 'hsl(var(--success-soft-fg))',\n },\n warning: {\n DEFAULT: 'hsl(var(--warning))',\n hover: 'hsl(var(--warning-hover))',\n foreground: 'hsl(var(--warning-fg))',\n soft: 'hsl(var(--warning-soft) / 0.12)',\n softForeground: 'hsl(var(--warning-soft-fg))',\n },\n danger: {\n DEFAULT: 'hsl(var(--danger))',\n hover: 'hsl(var(--danger-hover))',\n foreground: 'hsl(var(--danger-fg))',\n soft: 'hsl(var(--danger-soft) / 0.12)',\n softForeground: 'hsl(var(--danger-soft-fg))',\n },\n info: {\n DEFAULT: 'hsl(var(--info))',\n hover: 'hsl(var(--info-hover))',\n foreground: 'hsl(var(--info-fg))',\n soft: 'hsl(var(--info-soft) / 0.12)',\n softForeground: 'hsl(var(--info-soft-fg))',\n },\n surface: {\n 0: 'hsl(var(--surface-0))',\n 1: 'hsl(var(--surface-1))',\n 2: 'hsl(var(--surface-2))',\n 3: 'hsl(var(--surface-3))',\n },\n text: {\n primary: 'hsl(var(--text-primary))',\n secondary: 'hsl(var(--text-secondary))',\n tertiary: 'hsl(var(--text-tertiary))',\n inverted: 'hsl(var(--text-inverted))',\n },\n border: {\n strong: 'hsl(var(--border-strong))',\n base: 'hsl(var(--border-base))',\n subtle: 'hsl(var(--border-subtle))',\n },\n ring: 'hsl(var(--ring))',\n overlay: 'hsl(var(--overlay) / var(--overlay-alpha))',\n },\n radius: { sm: 'var(--radius-sm)', md: 'var(--radius-md)', lg: 'var(--radius-lg)', xl: 'var(--radius-xl)', full: '9999px' },\n fontFamily: { sans: 'var(--font-sans)', mono: 'var(--font-mono)' },\n} as const\n\nexport type Theme = typeof theme\n","/**\n * @description: React 组件分层清单 — 供文档导航和自动化脚本复用\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-05-27\n */\n\nexport const reactComponentLayers = [\n {\n id: 'primitives',\n label: '基础组件',\n description: '最小可复用视觉单元,负责按钮、容器、标签、分隔和加载基础状态。',\n components: [\n { name: 'UGButton', route: '/react/components/button' },\n { name: 'UGInput', route: '/react/components/input' },\n { name: 'UGLabel', route: '/react/components/label' },\n { name: 'UGCard', route: '/react/components/card' },\n { name: 'UGBadge', route: '/react/components/badge' },\n { name: 'UGTag', route: '/react/components/tag' },\n { name: 'UGSeparator', route: '/react/components/separator' },\n { name: 'UGSpinner', route: '/react/components/spinner' },\n ],\n },\n {\n id: 'forms',\n label: '表单输入',\n description: '收集、校验和编辑用户输入,要求标签、帮助文本、错误状态稳定对齐。',\n components: [\n { name: 'UGTextarea', route: '/react/components/textarea' },\n { name: 'UGSelect', route: '/react/components/select' },\n { name: 'UGCheckbox', route: '/react/components/checkbox' },\n { name: 'UGRadio', route: '/react/components/radio' },\n { name: 'UGSwitch', route: '/react/components/switch' },\n { name: 'UGSlider', route: '/react/components/slider' },\n { name: 'UGNumberInput', route: '/react/components/number-input' },\n { name: 'UGOTPInput', route: '/react/components/otp-input' },\n { name: 'UGForm', route: '/react/components/form' },\n ],\n },\n {\n id: 'navigation',\n label: '导航流程',\n description: '页面定位、区域切换、分页和流程表达,要求选中态明确且移动端不溢出。',\n components: [\n { name: 'UGTabs', route: '/react/components/tabs' },\n { name: 'UGBreadcrumb', route: '/react/components/breadcrumb' },\n { name: 'UGPagination', route: '/react/components/pagination' },\n { name: 'UGNavigationMenu', route: '/react/components/navigation-menu' },\n { name: 'UGSidebar', route: '/react/components/sidebar' },\n { name: 'UGSteps', route: '/react/components/steps' },\n ],\n },\n {\n id: 'overlays',\n label: '浮层弹层',\n description: '临时承载操作和上下文信息,要求定位、关闭、焦点和遮罩行为可靠。',\n components: [\n { name: 'UGModal', route: '/react/components/modal' },\n { name: 'UGDialog', route: '/react/components/dialog' },\n { name: 'UGDrawer', route: '/react/components/drawer' },\n { name: 'UGSheet', route: '/react/components/sheet' },\n { name: 'UGDropdownMenu', route: '/react/components/dropdown' },\n { name: 'UGContextMenu', route: '/react/components/context-menu' },\n { name: 'UGPopover', route: '/react/components/popover' },\n { name: 'UGTooltip', route: '/react/components/tooltip' },\n ],\n },\n {\n id: 'feedback',\n label: '反馈状态',\n description: '表达成功、警告、错误、空状态和加载过程,要求语义文案和视觉状态一致。',\n components: [\n { name: 'UGAlert', route: '/react/components/alert' },\n { name: 'UGToaster', route: '/react/components/toast' },\n { name: 'UGProgress', route: '/react/components/progress' },\n { name: 'UGSkeleton', route: '/react/components/skeleton' },\n { name: 'UGEmptyState', route: '/react/components/empty-state' },\n ],\n },\n {\n id: 'data',\n label: '数据展示',\n description: '展示列表、对象详情、头像、指标和折叠信息,要求密度清晰且文本不挤出。',\n components: [\n { name: 'UGTable', route: '/react/components/table' },\n { name: 'UGDescriptions', route: '/react/components/descriptions' },\n { name: 'UGStatistic', route: '/react/components/statistic' },\n { name: 'UGAvatar', route: '/react/components/avatar' },\n { name: 'UGAvatarGroup', route: '/react/components/avatar-group' },\n { name: 'UGAccordion', route: '/react/components/accordion' },\n ],\n },\n {\n id: 'patterns',\n label: '框架模式',\n description: '后台、工具型和跨业务通用模式,通过子入口 @ug666/ui-react/patterns 使用。',\n components: [\n { name: 'UGAdminShell', route: '/react/patterns#adminshell' },\n { name: 'UGPageHeader', route: '/react/patterns#pageheader' },\n { name: 'UGCopyField', route: '/react/patterns#copyfield' },\n { name: 'UGConfirmDialog', route: '/react/patterns#confirmdialog' },\n ],\n },\n {\n id: 'blocks',\n label: '展示区块',\n description: '展示页、产品页和介绍页区块,通过子入口 @ug666/ui-react/blocks 使用。',\n components: [\n { name: 'UGLandingHero', route: '/react/blocks#landinghero' },\n { name: 'UGFeatureGrid', route: '/react/blocks#featuregrid' },\n ],\n },\n {\n id: 'labs',\n label: '实验组件',\n description: '尚未稳定承诺的实验组件,通过子入口 @ug666/ui-react/labs 使用。',\n components: [],\n },\n] as const\n\nexport type ReactComponentLayer = (typeof reactComponentLayers)[number]\nexport type ReactLayerId = ReactComponentLayer['id']\nexport type ReactLayerComponent = ReactComponentLayer['components'][number]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAM,QAAQ;AAAA,EACnB,QAAQ;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,MACT,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,MAAM;AAAA,MACN,gBAAgB;AAAA,IAClB;AAAA,IACA,SAAS;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AAE,MAAM,mBAAmB,OAAO,gCAAgC;AAAA,IACpE;AAAA,EACF;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,YAAY;AAAA,MACV,EAAE,MAAM,iBAAiB,OAAO,4BAA4B;AAAA,MAC5D,EAAE,MAAM,iBAAiB,OAAO,4BAA4B;AAAA,IAC9D;AAAA,EACF;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,YAAY,CAAC;AAAA,EACf;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ButtonShape, ButtonSize, ButtonTone, ButtonVariant } from '../components/button';
|
|
2
|
+
export interface ButtonGroupContextValue {
|
|
3
|
+
variant?: ButtonVariant;
|
|
4
|
+
tone?: ButtonTone;
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
shape?: ButtonShape;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ButtonGroupProvider: import("react").Provider<ButtonGroupContextValue>;
|
|
10
|
+
export declare function useButtonGroup(): ButtonGroupContextValue;
|
|
11
|
+
//# sourceMappingURL=button-group-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group-context.d.ts","sourceRoot":"","sources":["../../src/internal/button-group-context.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAID,eAAO,MAAM,mBAAmB,mDAA8B,CAAA;AAE9D,wBAAgB,cAAc,IAAI,uBAAuB,CAExD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: React 包内部类名合并工具
|
|
3
|
+
* @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。
|
|
4
|
+
* @date: 2026-05-27
|
|
5
|
+
*/
|
|
6
|
+
import { type ClassValue } from 'clsx';
|
|
7
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
8
|
+
//# sourceMappingURL=cn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/internal/cn.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: React 模态浮层焦点进入、限制与恢复
|
|
3
|
+
* @author: UG
|
|
4
|
+
* @date: 2026-07-28
|
|
5
|
+
*/
|
|
6
|
+
import { type RefObject } from 'react';
|
|
7
|
+
export declare function useOverlayFocus(open: boolean, containerRef: RefObject<HTMLElement | null>): (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
8
|
+
//# sourceMappingURL=use-overlay-focus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-overlay-focus.d.ts","sourceRoot":"","sources":["../../src/internal/use-overlay-focus.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAkC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,EACb,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,WAkBjC,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,UAK3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-portal-container.d.ts","sourceRoot":"","sources":["../../src/internal/use-portal-container.ts"],"names":[],"mappings":"AAOA,wBAAgB,kBAAkB,IAAI,WAAW,GAAG,IAAI,CASvD"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: FilePreview 文件预览实验组件 — 展示文件元数据、预览状态和轻量操作区
|
|
3
|
+
* @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。
|
|
4
|
+
* @date: 2026-06-17
|
|
5
|
+
*/
|
|
6
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
7
|
+
export type FilePreviewStatus = 'ready' | 'loading' | 'error';
|
|
8
|
+
export type FilePreviewVariant = 'default' | 'document' | 'image' | 'archive' | 'code';
|
|
9
|
+
export interface FilePreviewAction {
|
|
10
|
+
/** 操作文案 */
|
|
11
|
+
label: ReactNode;
|
|
12
|
+
/** 链接动作地址 */
|
|
13
|
+
href?: string;
|
|
14
|
+
/** 点击动作 */
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
/** 是否禁用 */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface FilePreviewProps extends HTMLAttributes<HTMLElement> {
|
|
20
|
+
/** 文件名 */
|
|
21
|
+
name: ReactNode;
|
|
22
|
+
/** 文件类型、体积或更新时间 */
|
|
23
|
+
meta?: ReactNode;
|
|
24
|
+
/** 文件说明 */
|
|
25
|
+
description?: ReactNode;
|
|
26
|
+
/** 文件预览地址,image 变体会渲染缩略图 */
|
|
27
|
+
previewUrl?: string;
|
|
28
|
+
/** 图片预览的替代文本;不传时视为装饰图片 */
|
|
29
|
+
previewAlt?: string;
|
|
30
|
+
/** 预览状态 */
|
|
31
|
+
status?: FilePreviewStatus;
|
|
32
|
+
/** 文件类型变体 */
|
|
33
|
+
variant?: FilePreviewVariant;
|
|
34
|
+
/** 操作区 */
|
|
35
|
+
actions?: FilePreviewAction[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 文件预览实验组件
|
|
39
|
+
* @example
|
|
40
|
+
* <FilePreview name="contract.pdf" meta="PDF · 1.4 MB" status="ready" />
|
|
41
|
+
*/
|
|
42
|
+
declare const FilePreview: import("react").ForwardRefExoticComponent<FilePreviewProps & import("react").RefAttributes<HTMLElement>>;
|
|
43
|
+
export { FilePreview };
|
|
44
|
+
//# sourceMappingURL=file-preview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-preview.d.ts","sourceRoot":"","sources":["../../src/labs/file-preview.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIvE,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAC7D,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AAEtF,MAAM,WAAW,iBAAiB;IAChC,WAAW;IACX,KAAK,EAAE,SAAS,CAAA;IAChB,aAAa;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW;IACX,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnE,UAAU;IACV,IAAI,EAAE,SAAS,CAAA;IACf,mBAAmB;IACnB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,WAAW;IACX,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,0BAA0B;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW;IACX,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,aAAa;IACb,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,UAAU;IACV,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAC9B;AAUD;;;;GAIG;AACH,QAAA,MAAM,WAAW,0GA8FhB,CAAA;AAID,OAAO,EAAE,WAAW,EAAE,CAAA"}
|