@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
|
@@ -1,137 +1,24 @@
|
|
|
1
|
-
export { a as Button, B as ButtonProps, a as UGButton, B as UGButtonProps, b as buttonVariants, b as ugButtonVariants } from '../button-CaLZig8j.js';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
7
|
-
/** 输入框标签文本 */
|
|
8
|
-
label?: string;
|
|
9
|
-
/** 错误提示文本,有值时边框变红 */
|
|
10
|
-
error?: string;
|
|
11
|
-
/** 帮助说明文本 */
|
|
12
|
-
helperText?: string;
|
|
13
|
-
}
|
|
14
1
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @
|
|
17
|
-
*
|
|
18
|
-
* <Input label="邮箱" error="邮箱格式不正确" value={email} onChange={handleChange} />
|
|
19
|
-
* <Input label="备注" helperText="最多 200 字" />
|
|
2
|
+
* @description: React primitives 子入口 — 导出轻量高频基础组件
|
|
3
|
+
* @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。
|
|
4
|
+
* @date: 2026-05-30
|
|
20
5
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
type
|
|
36
|
-
type
|
|
37
|
-
type
|
|
38
|
-
type
|
|
39
|
-
|
|
40
|
-
type CardFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
41
|
-
/**
|
|
42
|
-
* 卡片容器
|
|
43
|
-
* @example
|
|
44
|
-
* <Card>
|
|
45
|
-
* <CardHeader>
|
|
46
|
-
* <CardTitle>标题</CardTitle>
|
|
47
|
-
* <CardDescription>描述文字</CardDescription>
|
|
48
|
-
* </CardHeader>
|
|
49
|
-
* <CardContent>内容区域</CardContent>
|
|
50
|
-
* <CardFooter>底部操作</CardFooter>
|
|
51
|
-
* </Card>
|
|
52
|
-
*/
|
|
53
|
-
declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
|
|
54
|
-
declare const CardHeader: react.ForwardRefExoticComponent<CardHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
55
|
-
declare const CardTitle: react.ForwardRefExoticComponent<CardTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
56
|
-
declare const CardDescription: react.ForwardRefExoticComponent<CardDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
57
|
-
declare const CardContent: react.ForwardRefExoticComponent<CardContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
58
|
-
declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
|
|
60
|
-
declare const badgeVariants: (props?: ({
|
|
61
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
62
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
63
|
-
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* 徽标组件
|
|
67
|
-
* @example
|
|
68
|
-
* <Badge variant="default">新品</Badge>
|
|
69
|
-
* <Badge variant="success">已完成</Badge>
|
|
70
|
-
* <Badge variant="destructive">已删除</Badge>
|
|
71
|
-
* <Badge variant="warning">待审核</Badge>
|
|
72
|
-
*/
|
|
73
|
-
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
74
|
-
|
|
75
|
-
declare const tagVariants: (props?: ({
|
|
76
|
-
variant?: "default" | "destructive" | "outline" | "success" | "warning" | "primary" | null | undefined;
|
|
77
|
-
size?: "default" | "sm" | null | undefined;
|
|
78
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
79
|
-
interface TagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'>, VariantProps<typeof tagVariants> {
|
|
80
|
-
/** 是否显示关闭按钮 */
|
|
81
|
-
closable?: boolean;
|
|
82
|
-
/** 是否禁用 */
|
|
83
|
-
disabled?: boolean;
|
|
84
|
-
/** 自定义背景色(覆盖 variant 颜色,建议传 token CSS 变量) */
|
|
85
|
-
color?: string;
|
|
86
|
-
/** 关闭按钮点击回调 */
|
|
87
|
-
onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* 标签组件(可交互,支持关闭)
|
|
91
|
-
* @example
|
|
92
|
-
* <Tag>默认标签</Tag>
|
|
93
|
-
* <Tag variant="success">已完成</Tag>
|
|
94
|
-
* <Tag variant="primary" closable onClose={removeTag}>可关闭</Tag>
|
|
95
|
-
* <Tag variant="warning" disabled>禁用状态</Tag>
|
|
96
|
-
* <Tag color="hsl(var(--primary))">自定义颜色</Tag>
|
|
97
|
-
*/
|
|
98
|
-
declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLSpanElement>>;
|
|
99
|
-
|
|
100
|
-
declare const spinnerVariants: (props?: ({
|
|
101
|
-
size?: "sm" | "lg" | "md" | null | undefined;
|
|
102
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
103
|
-
interface SpinnerProps extends React.HTMLAttributes<SVGSVGElement>, VariantProps<typeof spinnerVariants> {
|
|
104
|
-
/** 无障碍标签 */
|
|
105
|
-
label?: string;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* 加载旋转动画
|
|
109
|
-
* @example
|
|
110
|
-
* <Spinner />
|
|
111
|
-
* <Spinner size="sm" />
|
|
112
|
-
* <Spinner size="lg" className="text-primary" />
|
|
113
|
-
*/
|
|
114
|
-
declare const Spinner: react.ForwardRefExoticComponent<SpinnerProps & react.RefAttributes<SVGSVGElement>>;
|
|
115
|
-
|
|
116
|
-
/** 分割线方向 */
|
|
117
|
-
type SeparatorOrientation = 'horizontal' | 'vertical';
|
|
118
|
-
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
119
|
-
/** 方向,默认 horizontal */
|
|
120
|
-
orientation?: SeparatorOrientation;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* 分割线
|
|
124
|
-
* @example
|
|
125
|
-
* // 水平分割线
|
|
126
|
-
* <Separator />
|
|
127
|
-
*
|
|
128
|
-
* // 垂直分割线(父容器需设定高度)
|
|
129
|
-
* <div className="flex h-8 items-center gap-4">
|
|
130
|
-
* <span>左侧文字</span>
|
|
131
|
-
* <Separator orientation="vertical" />
|
|
132
|
-
* <span>右侧文字</span>
|
|
133
|
-
* </div>
|
|
134
|
-
*/
|
|
135
|
-
declare const Separator: react.ForwardRefExoticComponent<SeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
136
|
-
|
|
137
|
-
export { Badge, type BadgeProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Input, type InputProps, Label, type LabelProps, Separator, type SeparatorOrientation, type SeparatorProps, Spinner, type SpinnerProps, Tag, type TagProps, Badge as UGBadge, type BadgeProps as UGBadgeProps, Card as UGCard, CardContent as UGCardContent, type CardContentProps as UGCardContentProps, CardDescription as UGCardDescription, type CardDescriptionProps as UGCardDescriptionProps, CardFooter as UGCardFooter, type CardFooterProps as UGCardFooterProps, CardHeader as UGCardHeader, type CardHeaderProps as UGCardHeaderProps, type CardProps as UGCardProps, CardTitle as UGCardTitle, type CardTitleProps as UGCardTitleProps, Input as UGInput, type InputProps as UGInputProps, Label as UGLabel, type LabelProps as UGLabelProps, Separator as UGSeparator, type SeparatorOrientation as UGSeparatorOrientation, type SeparatorProps as UGSeparatorProps, Spinner as UGSpinner, type SpinnerProps as UGSpinnerProps, Tag as UGTag, type TagProps as UGTagProps, badgeVariants, tagVariants, badgeVariants as ugBadgeVariants, tagVariants as ugTagVariants };
|
|
6
|
+
export { Button, Button as UGButton, buttonVariants, buttonVariants as ugButtonVariants, type ButtonLoadingPlacement, type ButtonLoadingPlacement as UGButtonLoadingPlacement, type ButtonProps, type ButtonProps as UGButtonProps, type ButtonShape, type ButtonShape as UGButtonShape, type ButtonSize, type ButtonSize as UGButtonSize, type ButtonTone, type ButtonTone as UGButtonTone, type ButtonVariant, type ButtonVariant as UGButtonVariant, } from '../components/button';
|
|
7
|
+
export { ButtonGroup, ButtonGroup as UGButtonGroup, type ButtonGroupProps, type ButtonGroupProps as UGButtonGroupProps, } from '../components/button-group';
|
|
8
|
+
export { Input, Input as UGInput, type InputProps, type InputProps as UGInputProps, } from '../components/input';
|
|
9
|
+
export { Label, Label as UGLabel, type LabelProps, type LabelProps as UGLabelProps, } from '../components/label';
|
|
10
|
+
export { Card, Card as UGCard, CardHeader, CardHeader as UGCardHeader, CardTitle, CardTitle as UGCardTitle, CardDescription, CardDescription as UGCardDescription, CardContent, CardContent as UGCardContent, CardFooter, CardFooter as UGCardFooter, type CardProps, type CardProps as UGCardProps, type CardHeaderProps, type CardHeaderProps as UGCardHeaderProps, type CardTitleProps, type CardTitleProps as UGCardTitleProps, type CardDescriptionProps, type CardDescriptionProps as UGCardDescriptionProps, type CardContentProps, type CardContentProps as UGCardContentProps, type CardFooterProps, type CardFooterProps as UGCardFooterProps, } from '../components/card';
|
|
11
|
+
export { Badge, Badge as UGBadge, badgeVariants, badgeVariants as ugBadgeVariants, type BadgeProps, type BadgeProps as UGBadgeProps, } from '../components/badge';
|
|
12
|
+
export { Tag, Tag as UGTag, tagVariants, tagVariants as ugTagVariants, type TagProps, type TagProps as UGTagProps, } from '../components/tag';
|
|
13
|
+
export { Separator, Separator as UGSeparator, type SeparatorContentPosition, type SeparatorContentPosition as UGSeparatorContentPosition, type SeparatorLineStyle, type SeparatorLineStyle as UGSeparatorLineStyle, type SeparatorProps, type SeparatorProps as UGSeparatorProps, type SeparatorOrientation, type SeparatorOrientation as UGSeparatorOrientation, } from '../components/separator';
|
|
14
|
+
export { Spinner, Spinner as UGSpinner, type SpinnerProps, type SpinnerProps as UGSpinnerProps, } from '../components/spinner';
|
|
15
|
+
export { Link, Link as UGLink, type LinkProps, type LinkProps as UGLinkProps, type LinkTone, type LinkTone as UGLinkTone, type LinkUnderline, type LinkUnderline as UGLinkUnderline, } from '../components/link';
|
|
16
|
+
export { Text, Text as UGText, type TextElement, type TextElement as UGTextElement, type TextProps, type TextProps as UGTextProps, type TextSize, type TextSize as UGTextSize, type TextTone, type TextTone as UGTextTone, } from '../components/text';
|
|
17
|
+
export { Space, Space as UGSpace, type SpaceAlign, type SpaceAlign as UGSpaceAlign, type SpaceDirection, type SpaceDirection as UGSpaceDirection, type SpaceGap, type SpaceGap as UGSpaceGap, type SpacePresetSize, type SpacePresetSize as UGSpacePresetSize, type SpaceProps, type SpaceProps as UGSpaceProps, type SpaceSize, type SpaceSize as UGSpaceSize, } from '../components/space';
|
|
18
|
+
export { Scrollbar, Scrollbar as UGScrollbar, type ScrollbarAppearance, type ScrollbarAppearance as UGScrollbarAppearance, type ScrollbarEndDirection, type ScrollbarEndDirection as UGScrollbarEndDirection, type ScrollbarOrientation, type ScrollbarOrientation as UGScrollbarOrientation, type ScrollbarOverscroll, type ScrollbarOverscroll as UGScrollbarOverscroll, type ScrollbarPosition, type ScrollbarPosition as UGScrollbarPosition, type ScrollbarProps, type ScrollbarProps as UGScrollbarProps, } from '../components/scrollbar';
|
|
19
|
+
export { Row, Row as UGRow, Col, Col as UGCol, type RowAlign, type RowAlign as UGRowAlign, type RowJustify, type RowJustify as UGRowJustify, type RowProps, type RowProps as UGRowProps, type ColProps, type ColProps as UGColProps, type RowGutter, type RowGutter as UGRowGutter, type ColBreakpoint, type ColBreakpoint as UGColBreakpoint, type ColSize, type ColSize as UGColSize, } from '../components/layout';
|
|
20
|
+
export { Container, Container as UGContainer, Header, Header as UGHeader, Aside, Aside as UGAside, Main, Main as UGMain, Footer, Footer as UGFooter, type ContainerProps, type ContainerProps as UGContainerProps, type ContainerDirection, type ContainerDirection as UGContainerDirection, type ContainerRegionProps, type ContainerRegionProps as UGContainerRegionProps, type ContainerRegionSize, type ContainerRegionSize as UGContainerRegionSize, type HeaderProps, type HeaderProps as UGHeaderProps, type AsideProps, type AsideProps as UGAsideProps, type MainProps, type MainProps as UGMainProps, type FooterProps, type FooterProps as UGFooterProps, } from '../components/container';
|
|
21
|
+
export { ConfigProvider, ConfigProvider as UGConfigProvider, useUIConfig, type ConfigProviderProps, type UIConfig, type ComponentSize, type ControlSize, } from '../components/config-provider';
|
|
22
|
+
export { Splitter, Splitter as UGSplitter, SplitterPanel, SplitterPanel as UGSplitterPanel, type SplitterCollapseDetail, type SplitterCollapseDetail as UGSplitterCollapseDetail, type SplitterDirection, type SplitterDirection as UGSplitterDirection, type SplitterPanelProps, type SplitterPanelProps as UGSplitterPanelProps, type SplitterProps, type SplitterProps as UGSplitterProps, type SplitterResizeDetail, type SplitterResizeDetail as UGSplitterResizeDetail, } from '../components/splitter';
|
|
23
|
+
export { Icon, Icon as UGIcon, type IconProps, type IconProps as UGIconProps } from '../components/icon';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,OAAO,EACL,MAAM,EACN,MAAM,IAAI,QAAQ,EAClB,cAAc,EACd,cAAc,IAAI,gBAAgB,EAClC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,IAAI,wBAAwB,EACvD,KAAK,WAAW,EAChB,KAAK,WAAW,IAAI,aAAa,EACjC,KAAK,WAAW,EAChB,KAAK,WAAW,IAAI,aAAa,EACjC,KAAK,UAAU,EACf,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,UAAU,EACf,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,aAAa,EAClB,KAAK,aAAa,IAAI,eAAe,GACtC,MAAM,sBAAsB,CAAA;AAC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ACzB,KAAK,oBAAoB,IAAI,sBAAsB,EACnD,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,IAAI,qBAAqB,EACjD,KAAK,WAAW,EAChB,KAAK,WAAW,IAAI,aAAa,EACjC,KAAK,UAAU,EACf,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,SAAS,EACd,KAAK,SAAS,IAAI,WAAW,EAC7B,KAAK,WAAW,EAChB,KAAK,WAAW,IAAI,aAAa,GAClC,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,cAAc,EACd,cAAc,IAAI,gBAAgB,EAClC,WAAW,EACX,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,WAAW,GACjB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,QAAQ,EACR,QAAQ,IAAI,UAAU,EACtB,aAAa,EACb,aAAa,IAAI,eAAe,EAChC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,IAAI,wBAAwB,EACvD,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,IAAI,mBAAmB,EAC7C,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,IAAI,oBAAoB,EAC/C,KAAK,aAAa,EAClB,KAAK,aAAa,IAAI,eAAe,EACrC,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,IAAI,sBAAsB,GACpD,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA"}
|
package/dist/primitives/index.js
CHANGED
|
@@ -1,56 +1,107 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
+
Aside,
|
|
3
4
|
Badge,
|
|
5
|
+
ButtonGroup,
|
|
4
6
|
Card,
|
|
5
7
|
CardContent,
|
|
6
8
|
CardDescription,
|
|
7
9
|
CardFooter,
|
|
8
10
|
CardHeader,
|
|
9
11
|
CardTitle,
|
|
12
|
+
Col,
|
|
13
|
+
Container,
|
|
14
|
+
Footer,
|
|
15
|
+
Header,
|
|
16
|
+
Icon,
|
|
10
17
|
Input,
|
|
11
18
|
Label,
|
|
19
|
+
Link,
|
|
20
|
+
Main,
|
|
21
|
+
Row,
|
|
22
|
+
Scrollbar,
|
|
12
23
|
Separator,
|
|
24
|
+
Space,
|
|
13
25
|
Spinner,
|
|
26
|
+
Splitter,
|
|
27
|
+
SplitterPanel,
|
|
14
28
|
Tag,
|
|
29
|
+
Text,
|
|
15
30
|
badgeVariants,
|
|
16
31
|
tagVariants
|
|
17
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-HGO3GZ56.js";
|
|
18
33
|
import {
|
|
19
34
|
Button,
|
|
20
|
-
|
|
21
|
-
|
|
35
|
+
ConfigProvider,
|
|
36
|
+
buttonVariants,
|
|
37
|
+
useUIConfig
|
|
38
|
+
} from "../chunk-HXIWD5LQ.js";
|
|
39
|
+
import "../chunk-F23X4N6B.js";
|
|
22
40
|
export {
|
|
41
|
+
Aside,
|
|
23
42
|
Badge,
|
|
24
43
|
Button,
|
|
44
|
+
ButtonGroup,
|
|
25
45
|
Card,
|
|
26
46
|
CardContent,
|
|
27
47
|
CardDescription,
|
|
28
48
|
CardFooter,
|
|
29
49
|
CardHeader,
|
|
30
50
|
CardTitle,
|
|
51
|
+
Col,
|
|
52
|
+
ConfigProvider,
|
|
53
|
+
Container,
|
|
54
|
+
Footer,
|
|
55
|
+
Header,
|
|
56
|
+
Icon,
|
|
31
57
|
Input,
|
|
32
58
|
Label,
|
|
59
|
+
Link,
|
|
60
|
+
Main,
|
|
61
|
+
Row,
|
|
62
|
+
Scrollbar,
|
|
33
63
|
Separator,
|
|
64
|
+
Space,
|
|
34
65
|
Spinner,
|
|
66
|
+
Splitter,
|
|
67
|
+
SplitterPanel,
|
|
35
68
|
Tag,
|
|
69
|
+
Text,
|
|
70
|
+
Aside as UGAside,
|
|
36
71
|
Badge as UGBadge,
|
|
37
72
|
Button as UGButton,
|
|
73
|
+
ButtonGroup as UGButtonGroup,
|
|
38
74
|
Card as UGCard,
|
|
39
75
|
CardContent as UGCardContent,
|
|
40
76
|
CardDescription as UGCardDescription,
|
|
41
77
|
CardFooter as UGCardFooter,
|
|
42
78
|
CardHeader as UGCardHeader,
|
|
43
79
|
CardTitle as UGCardTitle,
|
|
80
|
+
Col as UGCol,
|
|
81
|
+
ConfigProvider as UGConfigProvider,
|
|
82
|
+
Container as UGContainer,
|
|
83
|
+
Footer as UGFooter,
|
|
84
|
+
Header as UGHeader,
|
|
85
|
+
Icon as UGIcon,
|
|
44
86
|
Input as UGInput,
|
|
45
87
|
Label as UGLabel,
|
|
88
|
+
Link as UGLink,
|
|
89
|
+
Main as UGMain,
|
|
90
|
+
Row as UGRow,
|
|
91
|
+
Scrollbar as UGScrollbar,
|
|
46
92
|
Separator as UGSeparator,
|
|
93
|
+
Space as UGSpace,
|
|
47
94
|
Spinner as UGSpinner,
|
|
95
|
+
Splitter as UGSplitter,
|
|
96
|
+
SplitterPanel as UGSplitterPanel,
|
|
48
97
|
Tag as UGTag,
|
|
98
|
+
Text as UGText,
|
|
49
99
|
badgeVariants,
|
|
50
100
|
buttonVariants,
|
|
51
101
|
tagVariants,
|
|
52
102
|
badgeVariants as ugBadgeVariants,
|
|
53
103
|
buttonVariants as ugButtonVariants,
|
|
54
|
-
tagVariants as ugTagVariants
|
|
104
|
+
tagVariants as ugTagVariants,
|
|
105
|
+
useUIConfig
|
|
55
106
|
};
|
|
56
107
|
//# sourceMappingURL=index.js.map
|