@motiadev/ui 0.13.2-beta.164-732151 → 0.13.2-beta.164-110989
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/components/ui/background-effect.d.ts +7 -4
- package/dist/components/ui/background-effect.d.ts.map +1 -1
- package/dist/components/ui/background-effect.js +31 -0
- package/dist/components/ui/background-effect.js.map +1 -0
- package/dist/components/ui/badge.d.ts +11 -8
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +57 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +24 -20
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +168 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.d.ts +14 -9
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +88 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +7 -3
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +53 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible-panel.d.ts +17 -13
- package/dist/components/ui/collapsible-panel.d.ts.map +1 -1
- package/dist/components/ui/collapsible-panel.js +252 -0
- package/dist/components/ui/collapsible-panel.js.map +1 -0
- package/dist/components/ui/container.d.ts +17 -13
- package/dist/components/ui/container.d.ts.map +1 -1
- package/dist/components/ui/container.js +143 -0
- package/dist/components/ui/container.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +23 -21
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +430 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty.d.ts +34 -10
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/empty.js +219 -0
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/input.d.ts +12 -8
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +66 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +7 -3
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +43 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/level-dot.d.ts +7 -3
- package/dist/components/ui/level-dot.d.ts.map +1 -1
- package/dist/components/ui/level-dot.js +35 -0
- package/dist/components/ui/level-dot.js.map +1 -0
- package/dist/components/ui/panel.d.ts +32 -28
- package/dist/components/ui/panel.d.ts.map +1 -1
- package/dist/components/ui/panel.js +284 -0
- package/dist/components/ui/panel.js.map +1 -0
- package/dist/components/ui/select.d.ts +11 -13
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +341 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/side-panel-detail.d.ts +8 -5
- package/dist/components/ui/side-panel-detail.d.ts.map +1 -1
- package/dist/components/ui/side-panel-detail.js +54 -0
- package/dist/components/ui/side-panel-detail.js.map +1 -0
- package/dist/components/ui/side-panel.d.ts +18 -18
- package/dist/components/ui/side-panel.d.ts.map +1 -1
- package/dist/components/ui/side-panel.js +138 -0
- package/dist/components/ui/side-panel.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +12 -8
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +153 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/table.d.ts +5 -4
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +285 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +10 -6
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +142 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +6 -2
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +42 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +10 -5
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +54 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/index.d.ts +24 -24
- package/dist/index.js +25 -11031
- package/dist/lib/utils.d.ts +6 -2
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +11 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/stores/use-theme-store.d.ts +22 -17
- package/dist/stores/use-theme-store.d.ts.map +1 -1
- package/dist/stores/use-theme-store.js +30 -0
- package/dist/stores/use-theme-store.js.map +1 -0
- package/dist/styles.css +2647 -0
- package/dist/styles.css.map +1 -0
- package/dist/styles.js +0 -0
- package/package.json +28 -30
- package/dist/components/ui/background-effect.stories.d.ts +0 -12
- package/dist/components/ui/background-effect.stories.d.ts.map +0 -1
- package/dist/components/ui/badge.stories.d.ts +0 -19
- package/dist/components/ui/badge.stories.d.ts.map +0 -1
- package/dist/components/ui/breadcrumb.stories.d.ts +0 -21
- package/dist/components/ui/breadcrumb.stories.d.ts.map +0 -1
- package/dist/components/ui/button.stories.d.ts +0 -25
- package/dist/components/ui/button.stories.d.ts.map +0 -1
- package/dist/components/ui/checkbox.stories.d.ts +0 -25
- package/dist/components/ui/checkbox.stories.d.ts.map +0 -1
- package/dist/components/ui/collapsible-panel.stories.d.ts +0 -12
- package/dist/components/ui/collapsible-panel.stories.d.ts.map +0 -1
- package/dist/components/ui/container.stories.d.ts +0 -10
- package/dist/components/ui/container.stories.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.stories.d.ts +0 -18
- package/dist/components/ui/dropdown-menu.stories.d.ts.map +0 -1
- package/dist/components/ui/input.stories.d.ts +0 -23
- package/dist/components/ui/input.stories.d.ts.map +0 -1
- package/dist/components/ui/label.stories.d.ts +0 -17
- package/dist/components/ui/label.stories.d.ts.map +0 -1
- package/dist/components/ui/level-dot.stories.d.ts +0 -19
- package/dist/components/ui/level-dot.stories.d.ts.map +0 -1
- package/dist/components/ui/panel.stories.d.ts +0 -24
- package/dist/components/ui/panel.stories.d.ts.map +0 -1
- package/dist/components/ui/select.stories.d.ts +0 -18
- package/dist/components/ui/select.stories.d.ts.map +0 -1
- package/dist/components/ui/side-panel-detail.stories.d.ts +0 -12
- package/dist/components/ui/side-panel-detail.stories.d.ts.map +0 -1
- package/dist/components/ui/side-panel.stories.d.ts +0 -13
- package/dist/components/ui/side-panel.stories.d.ts.map +0 -1
- package/dist/components/ui/sidebar.stories.d.ts +0 -14
- package/dist/components/ui/sidebar.stories.d.ts.map +0 -1
- package/dist/components/ui/table.stories.d.ts +0 -18
- package/dist/components/ui/table.stories.d.ts.map +0 -1
- package/dist/components/ui/tabs.stories.d.ts +0 -16
- package/dist/components/ui/tabs.stories.d.ts.map +0 -1
- package/dist/components/ui/textarea.stories.d.ts +0 -21
- package/dist/components/ui/textarea.stories.d.ts.map +0 -1
- package/dist/components/ui/tooltip.stories.d.ts +0 -21
- package/dist/components/ui/tooltip.stories.d.ts.map +0 -1
- package/dist/index.cjs +0 -122
- package/dist/index.d.ts.map +0 -1
- package/dist/ui.css +0 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/empty.tsx
|
|
7
|
+
function Empty(t0) {
|
|
8
|
+
const $ = c(8);
|
|
9
|
+
let className;
|
|
10
|
+
let props;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({className, ...props} = t0);
|
|
13
|
+
$[0] = t0;
|
|
14
|
+
$[1] = className;
|
|
15
|
+
$[2] = props;
|
|
16
|
+
} else {
|
|
17
|
+
className = $[1];
|
|
18
|
+
props = $[2];
|
|
19
|
+
}
|
|
20
|
+
let t1;
|
|
21
|
+
if ($[3] !== className) {
|
|
22
|
+
t1 = cn("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12", className);
|
|
23
|
+
$[3] = className;
|
|
24
|
+
$[4] = t1;
|
|
25
|
+
} else t1 = $[4];
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
28
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
29
|
+
"data-slot": "empty",
|
|
30
|
+
className: t1,
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
$[5] = props;
|
|
34
|
+
$[6] = t1;
|
|
35
|
+
$[7] = t2;
|
|
36
|
+
} else t2 = $[7];
|
|
37
|
+
return t2;
|
|
38
|
+
}
|
|
39
|
+
function EmptyHeader(t0) {
|
|
40
|
+
const $ = c(8);
|
|
41
|
+
let className;
|
|
42
|
+
let props;
|
|
43
|
+
if ($[0] !== t0) {
|
|
44
|
+
({className, ...props} = t0);
|
|
45
|
+
$[0] = t0;
|
|
46
|
+
$[1] = className;
|
|
47
|
+
$[2] = props;
|
|
48
|
+
} else {
|
|
49
|
+
className = $[1];
|
|
50
|
+
props = $[2];
|
|
51
|
+
}
|
|
52
|
+
let t1;
|
|
53
|
+
if ($[3] !== className) {
|
|
54
|
+
t1 = cn("flex max-w-sm flex-col items-center gap-2 text-center", className);
|
|
55
|
+
$[3] = className;
|
|
56
|
+
$[4] = t1;
|
|
57
|
+
} else t1 = $[4];
|
|
58
|
+
let t2;
|
|
59
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
60
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
61
|
+
"data-slot": "empty-header",
|
|
62
|
+
className: t1,
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
$[5] = props;
|
|
66
|
+
$[6] = t1;
|
|
67
|
+
$[7] = t2;
|
|
68
|
+
} else t2 = $[7];
|
|
69
|
+
return t2;
|
|
70
|
+
}
|
|
71
|
+
const emptyMediaVariants = cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
72
|
+
variants: { variant: {
|
|
73
|
+
default: "bg-transparent",
|
|
74
|
+
icon: "bg-dark-50 dark:bg-light-50 text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
|
|
75
|
+
} },
|
|
76
|
+
defaultVariants: { variant: "default" }
|
|
77
|
+
});
|
|
78
|
+
function EmptyMedia(t0) {
|
|
79
|
+
const $ = c(11);
|
|
80
|
+
let className;
|
|
81
|
+
let props;
|
|
82
|
+
let t1;
|
|
83
|
+
if ($[0] !== t0) {
|
|
84
|
+
({className, variant: t1, ...props} = t0);
|
|
85
|
+
$[0] = t0;
|
|
86
|
+
$[1] = className;
|
|
87
|
+
$[2] = props;
|
|
88
|
+
$[3] = t1;
|
|
89
|
+
} else {
|
|
90
|
+
className = $[1];
|
|
91
|
+
props = $[2];
|
|
92
|
+
t1 = $[3];
|
|
93
|
+
}
|
|
94
|
+
const variant = t1 === void 0 ? "default" : t1;
|
|
95
|
+
let t2;
|
|
96
|
+
if ($[4] !== className || $[5] !== variant) {
|
|
97
|
+
t2 = cn(emptyMediaVariants({
|
|
98
|
+
variant,
|
|
99
|
+
className
|
|
100
|
+
}));
|
|
101
|
+
$[4] = className;
|
|
102
|
+
$[5] = variant;
|
|
103
|
+
$[6] = t2;
|
|
104
|
+
} else t2 = $[6];
|
|
105
|
+
let t3;
|
|
106
|
+
if ($[7] !== props || $[8] !== t2 || $[9] !== variant) {
|
|
107
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
108
|
+
"data-slot": "empty-icon",
|
|
109
|
+
"data-variant": variant,
|
|
110
|
+
className: t2,
|
|
111
|
+
...props
|
|
112
|
+
});
|
|
113
|
+
$[7] = props;
|
|
114
|
+
$[8] = t2;
|
|
115
|
+
$[9] = variant;
|
|
116
|
+
$[10] = t3;
|
|
117
|
+
} else t3 = $[10];
|
|
118
|
+
return t3;
|
|
119
|
+
}
|
|
120
|
+
function EmptyTitle(t0) {
|
|
121
|
+
const $ = c(8);
|
|
122
|
+
let className;
|
|
123
|
+
let props;
|
|
124
|
+
if ($[0] !== t0) {
|
|
125
|
+
({className, ...props} = t0);
|
|
126
|
+
$[0] = t0;
|
|
127
|
+
$[1] = className;
|
|
128
|
+
$[2] = props;
|
|
129
|
+
} else {
|
|
130
|
+
className = $[1];
|
|
131
|
+
props = $[2];
|
|
132
|
+
}
|
|
133
|
+
let t1;
|
|
134
|
+
if ($[3] !== className) {
|
|
135
|
+
t1 = cn("text-lg font-medium tracking-tight", className);
|
|
136
|
+
$[3] = className;
|
|
137
|
+
$[4] = t1;
|
|
138
|
+
} else t1 = $[4];
|
|
139
|
+
let t2;
|
|
140
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
141
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
142
|
+
"data-slot": "empty-title",
|
|
143
|
+
className: t1,
|
|
144
|
+
...props
|
|
145
|
+
});
|
|
146
|
+
$[5] = props;
|
|
147
|
+
$[6] = t1;
|
|
148
|
+
$[7] = t2;
|
|
149
|
+
} else t2 = $[7];
|
|
150
|
+
return t2;
|
|
151
|
+
}
|
|
152
|
+
function EmptyDescription(t0) {
|
|
153
|
+
const $ = c(8);
|
|
154
|
+
let className;
|
|
155
|
+
let props;
|
|
156
|
+
if ($[0] !== t0) {
|
|
157
|
+
({className, ...props} = t0);
|
|
158
|
+
$[0] = t0;
|
|
159
|
+
$[1] = className;
|
|
160
|
+
$[2] = props;
|
|
161
|
+
} else {
|
|
162
|
+
className = $[1];
|
|
163
|
+
props = $[2];
|
|
164
|
+
}
|
|
165
|
+
let t1;
|
|
166
|
+
if ($[3] !== className) {
|
|
167
|
+
t1 = cn("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4", className);
|
|
168
|
+
$[3] = className;
|
|
169
|
+
$[4] = t1;
|
|
170
|
+
} else t1 = $[4];
|
|
171
|
+
let t2;
|
|
172
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
173
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
174
|
+
"data-slot": "empty-description",
|
|
175
|
+
className: t1,
|
|
176
|
+
...props
|
|
177
|
+
});
|
|
178
|
+
$[5] = props;
|
|
179
|
+
$[6] = t1;
|
|
180
|
+
$[7] = t2;
|
|
181
|
+
} else t2 = $[7];
|
|
182
|
+
return t2;
|
|
183
|
+
}
|
|
184
|
+
function EmptyContent(t0) {
|
|
185
|
+
const $ = c(8);
|
|
186
|
+
let className;
|
|
187
|
+
let props;
|
|
188
|
+
if ($[0] !== t0) {
|
|
189
|
+
({className, ...props} = t0);
|
|
190
|
+
$[0] = t0;
|
|
191
|
+
$[1] = className;
|
|
192
|
+
$[2] = props;
|
|
193
|
+
} else {
|
|
194
|
+
className = $[1];
|
|
195
|
+
props = $[2];
|
|
196
|
+
}
|
|
197
|
+
let t1;
|
|
198
|
+
if ($[3] !== className) {
|
|
199
|
+
t1 = cn("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm", className);
|
|
200
|
+
$[3] = className;
|
|
201
|
+
$[4] = t1;
|
|
202
|
+
} else t1 = $[4];
|
|
203
|
+
let t2;
|
|
204
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
205
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
206
|
+
"data-slot": "empty-content",
|
|
207
|
+
className: t1,
|
|
208
|
+
...props
|
|
209
|
+
});
|
|
210
|
+
$[5] = props;
|
|
211
|
+
$[6] = t1;
|
|
212
|
+
$[7] = t2;
|
|
213
|
+
} else t2 = $[7];
|
|
214
|
+
return t2;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
//#endregion
|
|
218
|
+
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
|
219
|
+
//# sourceMappingURL=empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.js","names":["cva","VariantProps","cn","Empty","t0","$","_c","className","props","t1","t2","EmptyHeader","emptyMediaVariants","variants","variant","default","icon","defaultVariants","EmptyMedia","undefined","t3","EmptyTitle","EmptyDescription","EmptyContent"],"sources":["../../../src/components/ui/empty.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '../../lib/utils'\n\nfunction Empty({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty\"\n className={cn(\n 'flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-header\"\n className={cn('flex max-w-sm flex-col items-center gap-2 text-center', className)}\n {...props}\n />\n )\n}\n\nconst emptyMediaVariants = cva(\n 'mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n icon: \"bg-dark-50 dark:bg-light-50 text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6\",\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n)\n\nfunction EmptyMedia({\n className,\n variant = 'default',\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>) {\n return (\n <div\n data-slot=\"empty-icon\"\n data-variant={variant}\n className={cn(emptyMediaVariants({ variant, className }))}\n {...props}\n />\n )\n}\n\nfunction EmptyTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"empty-title\" className={cn('text-lg font-medium tracking-tight', className)} {...props} />\n}\n\nfunction EmptyDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <div\n data-slot=\"empty-description\"\n className={cn(\n 'text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyContent({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-content\"\n className={cn('flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm', className)}\n {...props}\n />\n )\n}\n\nexport { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia }\n"],"mappings":"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"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { VariantProps } from
|
|
2
|
-
import
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as react7 from "react";
|
|
3
|
+
import { InputHTMLAttributes } from "react";
|
|
4
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/input.d.ts
|
|
3
7
|
declare const inputVariants: (props?: ({
|
|
4
|
-
|
|
5
|
-
} &
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {};
|
|
8
|
+
variant?: "default" | "outline" | "shade" | "outlineReadonly" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
10
|
+
interface InputProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {}
|
|
11
|
+
declare const Input: react7.ForwardRefExoticComponent<InputProps & react7.RefAttributes<HTMLInputElement>>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Input };
|
|
10
14
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","
|
|
1
|
+
{"version":3,"file":"input.d.ts","names":[],"sources":["../../../src/components/ui/input.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM;;IAuBL,+BAAA,CAAA;UAEgB,UAAA,SAAmB,oBAAoB,mBAAmB,oBAAoB,gBA5BnC;AA4B3C,cAEJ,KAFe,EAEV,MAAA,CAAA,yBAFU,CAEV,UAFU,GAEV,MAAA,CAAA,aAFU,CAEV,gBAFU,CAAA,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ui/input.tsx
|
|
8
|
+
const inputVariants = cva(cn("flex w-full rounded-md px-3 py-2 text-base transition-colors outline-none resize-none", "field-sizing-content", "aria-invalid:border-destructive", "disabled:cursor-not-allowed disabled:opacity-50", "text-sm font-medium leading-[1.3] tracking-[-0.01em]"), {
|
|
9
|
+
variants: { variant: {
|
|
10
|
+
default: "bg-input border border-border hover:border-border focus-visible:border-ring text-foreground placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring/20",
|
|
11
|
+
shade: "bg-muted-foreground/10 text-muted-foreground hover:bg-muted-foreground/12 focus:bg-muted-foreground/15",
|
|
12
|
+
outline: "focus-visible:border-border focus-visible:bg-card hover:border-border hover:bg-card bg-transparent text-foreground border border-transparent",
|
|
13
|
+
outlineReadonly: "bg-transparent text-foreground border border-transparent"
|
|
14
|
+
} },
|
|
15
|
+
defaultVariants: { variant: "default" }
|
|
16
|
+
});
|
|
17
|
+
const Input = forwardRef((t0, ref) => {
|
|
18
|
+
const $ = c(13);
|
|
19
|
+
let className;
|
|
20
|
+
let props;
|
|
21
|
+
let type;
|
|
22
|
+
let variant;
|
|
23
|
+
if ($[0] !== t0) {
|
|
24
|
+
({className, type, variant, ...props} = t0);
|
|
25
|
+
$[0] = t0;
|
|
26
|
+
$[1] = className;
|
|
27
|
+
$[2] = props;
|
|
28
|
+
$[3] = type;
|
|
29
|
+
$[4] = variant;
|
|
30
|
+
} else {
|
|
31
|
+
className = $[1];
|
|
32
|
+
props = $[2];
|
|
33
|
+
type = $[3];
|
|
34
|
+
variant = $[4];
|
|
35
|
+
}
|
|
36
|
+
let t1;
|
|
37
|
+
if ($[5] !== className || $[6] !== variant) {
|
|
38
|
+
t1 = inputVariants({
|
|
39
|
+
variant,
|
|
40
|
+
className
|
|
41
|
+
});
|
|
42
|
+
$[5] = className;
|
|
43
|
+
$[6] = variant;
|
|
44
|
+
$[7] = t1;
|
|
45
|
+
} else t1 = $[7];
|
|
46
|
+
let t2;
|
|
47
|
+
if ($[8] !== props || $[9] !== ref || $[10] !== t1 || $[11] !== type) {
|
|
48
|
+
t2 = /* @__PURE__ */ jsx("input", {
|
|
49
|
+
type,
|
|
50
|
+
className: t1,
|
|
51
|
+
ref,
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
$[8] = props;
|
|
55
|
+
$[9] = ref;
|
|
56
|
+
$[10] = t1;
|
|
57
|
+
$[11] = type;
|
|
58
|
+
$[12] = t2;
|
|
59
|
+
} else t2 = $[12];
|
|
60
|
+
return t2;
|
|
61
|
+
});
|
|
62
|
+
Input.displayName = "Input";
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { Input };
|
|
66
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","names":["cva","VariantProps","forwardRef","InputHTMLAttributes","cn","inputVariants","variants","variant","default","shade","outline","outlineReadonly","defaultVariants","InputProps","HTMLInputElement","Input","t0","ref","$","_c","className","props","type","t1","t2","displayName"],"sources":["../../../src/components/ui/input.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority'\nimport { forwardRef, type InputHTMLAttributes } from 'react'\nimport { cn } from '../../lib/utils'\n\nconst inputVariants = cva(\n cn(\n 'flex w-full rounded-md px-3 py-2 text-base transition-colors outline-none resize-none',\n 'field-sizing-content',\n 'aria-invalid:border-destructive',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'text-sm font-medium leading-[1.3] tracking-[-0.01em]',\n ),\n {\n variants: {\n variant: {\n default:\n 'bg-input border border-border hover:border-border focus-visible:border-ring text-foreground placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring/20',\n shade: 'bg-muted-foreground/10 text-muted-foreground hover:bg-muted-foreground/12 focus:bg-muted-foreground/15',\n outline:\n 'focus-visible:border-border focus-visible:bg-card hover:border-border hover:bg-card bg-transparent text-foreground border border-transparent',\n outlineReadonly: 'bg-transparent text-foreground border border-transparent',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n)\n\nexport interface InputProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {}\n\nexport const Input = forwardRef<HTMLInputElement, InputProps>(({ className, type, variant, ...props }, ref) => {\n return <input type={type} className={inputVariants({ variant, className })} ref={ref} {...props} />\n})\nInput.displayName = 'Input'\n"],"mappings":";;;;;;;AAIA,MAAMK,gBAAgBL,IACpBI,GACE,yFACA,wBACA,mCACA,mDACA,uDACD,EACD;CACEE,UAAU,EACRC,SAAS;EACPC,SACE;EACFC,OAAO;EACPC,SACE;EACFC,iBAAiB;EACnB,EACD;CACDC,iBAAiB,EACfL,SAAS,WACX;CAEJ,CAAC;AAID,MAAaQ,QAAQb,YAAyCc,IAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAf;AAAA,KAAAW,EAAA,OAAAF,IAAA;AAAC,GAAA,CAAAI,WAAAE,MAAAf,YAAAc,SAAAL;AAAsCE,IAAA,KAAAF;AAAAE,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAX;QAAA;AAAAa,cAAAF,EAAA;AAAAG,UAAAH,EAAA;AAAAI,SAAAJ,EAAA;AAAAX,YAAAW,EAAA;;CAAA,IAAAK;AAAA,KAAAL,EAAA,OAAAE,aAAAF,EAAA,OAAAX,SAAA;AAC9DgB,OAAAlB,cAAc;GAAAE;GAAAa;GAAsB,CAAC;AAAAF,IAAA,KAAAE;AAAAF,IAAA,KAAAX;AAAAW,IAAA,KAAAK;OAAAA,MAAAL,EAAA;CAAA,IAAAM;AAAA,KAAAN,EAAA,OAAAG,SAAAH,EAAA,OAAAD,OAAAC,EAAA,QAAAK,MAAAL,EAAA,QAAAI,MAAA;AAAnEE,OAAA,oBAAA;GAAaF;GAAiB,WAAAC;GAA4CN;GAAG,GAAMI;IAAS;AAAAH,IAAA,KAAAG;AAAAH,IAAA,KAAAD;AAAAC,IAAA,MAAAK;AAAAL,IAAA,MAAAI;AAAAJ,IAAA,MAAAM;OAAAA,MAAAN,EAAA;AAAA,QAA5FM;EACP;AACFT,MAAMU,cAAc"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { ComponentProps, FC } from
|
|
2
|
-
import * as LabelPrimitive from
|
|
3
|
-
|
|
1
|
+
import { ComponentProps, FC } from "react";
|
|
2
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ui/label.d.ts
|
|
5
|
+
declare const Label: FC<ComponentProps<typeof LabelPrimitive.Root>>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Label };
|
|
4
8
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../src/components/ui/label.tsx"],"sourcesContent":[],"mappings":";;;;cAKa,OAAO,GAAG,sBAAsB,cAAA,CAAe"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/label.tsx
|
|
7
|
+
const Label = (t0) => {
|
|
8
|
+
const $ = c(8);
|
|
9
|
+
let className;
|
|
10
|
+
let props;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({className, ...props} = t0);
|
|
13
|
+
$[0] = t0;
|
|
14
|
+
$[1] = className;
|
|
15
|
+
$[2] = props;
|
|
16
|
+
} else {
|
|
17
|
+
className = $[1];
|
|
18
|
+
props = $[2];
|
|
19
|
+
}
|
|
20
|
+
let t1;
|
|
21
|
+
if ($[3] !== className) {
|
|
22
|
+
t1 = cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className);
|
|
23
|
+
$[3] = className;
|
|
24
|
+
$[4] = t1;
|
|
25
|
+
} else t1 = $[4];
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
28
|
+
t2 = /* @__PURE__ */ jsx(LabelPrimitive.Root, {
|
|
29
|
+
"data-slot": "label",
|
|
30
|
+
className: t1,
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
$[5] = props;
|
|
34
|
+
$[6] = t1;
|
|
35
|
+
$[7] = t2;
|
|
36
|
+
} else t2 = $[7];
|
|
37
|
+
return t2;
|
|
38
|
+
};
|
|
39
|
+
Label.displayName = LabelPrimitive.Root.displayName;
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Label };
|
|
43
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","names":["LabelPrimitive","ComponentProps","FC","cn","Label","Root","t0","$","_c","className","props","t1","t2","displayName"],"sources":["../../../src/components/ui/label.tsx"],"sourcesContent":["import * as LabelPrimitive from '@radix-ui/react-label'\nimport type { ComponentProps, FC } from 'react'\n\nimport { cn } from '../../lib/utils'\n\nexport const Label: FC<ComponentProps<typeof LabelPrimitive.Root>> = ({ className, ...props }) => {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',\n className,\n )}\n {...props}\n />\n )\n}\n\nLabel.displayName = LabelPrimitive.Root.displayName\n"],"mappings":";;;;;;AAKA,MAAaI,SAAwDE,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;CAAA,IAAAC;AAAA,KAAAH,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAG,cAAAC,SAAAJ;AAAuBC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAG;QAAA;AAAAD,cAAAF,EAAA;AAAAG,UAAAH,EAAA;;CAAA,IAAAI;AAAA,KAAAJ,EAAA,OAAAE,WAAA;AAI5EE,OAAAR,GACT,uNACAM,UACD;AAAAF,IAAA,KAAAE;AAAAF,IAAA,KAAAI;OAAAA,MAAAJ,EAAA;CAAA,IAAAK;AAAA,KAAAL,EAAA,OAAAG,SAAAH,EAAA,OAAAI,IAAA;AALHC,OAAA,oBAAA,eAAA;GACY,aAAA;GACC,WAAAD;GAGV,GACGD;IACJ;AAAAH,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAK;OAAAA,MAAAL,EAAA;AAAA,QAPFK;;AAWJR,MAAMS,cAAcb,eAAeK,KAAKQ"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ui/level-dot.d.ts
|
|
4
|
+
declare const LevelDot: React$1.FC<{
|
|
5
|
+
level: string;
|
|
4
6
|
}>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { LevelDot };
|
|
5
9
|
//# sourceMappingURL=level-dot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"level-dot.d.ts","
|
|
1
|
+
{"version":3,"file":"level-dot.d.ts","names":[],"sources":["../../../src/components/ui/level-dot.tsx"],"sourcesContent":[],"mappings":";;;cAgBa,UAAU,OAAA,CAAM;;AAA7B,CAAA,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/level-dot.tsx
|
|
6
|
+
const badgeVariants = cva("text-xs font-medium tracking-wide rounded-full h-[6px] w-[6px] m-[4px] outline-[2px]", { variants: { variant: {
|
|
7
|
+
info: "bg-[#2862FE] outline-[#2862FE]/20",
|
|
8
|
+
trace: "bg-[#2862FE] outline-[#2862FE]/20",
|
|
9
|
+
debug: "bg-[#2862FE] outline-[#2862FE]/20",
|
|
10
|
+
error: "bg-[#E22A6D] outline-[#E22A6D]/20",
|
|
11
|
+
fatal: "bg-[#E22A6D] outline-[#E22A6D]/20",
|
|
12
|
+
warn: "bg-[#F59F0B] outline-[#F59F0B]/20"
|
|
13
|
+
} } });
|
|
14
|
+
const LevelDot = (t0) => {
|
|
15
|
+
const $ = c(4);
|
|
16
|
+
const { level } = t0;
|
|
17
|
+
const t1 = level;
|
|
18
|
+
let t2;
|
|
19
|
+
if ($[0] !== t1) {
|
|
20
|
+
t2 = badgeVariants({ variant: t1 });
|
|
21
|
+
$[0] = t1;
|
|
22
|
+
$[1] = t2;
|
|
23
|
+
} else t2 = $[1];
|
|
24
|
+
let t3;
|
|
25
|
+
if ($[2] !== t2) {
|
|
26
|
+
t3 = /* @__PURE__ */ jsx("div", { className: t2 });
|
|
27
|
+
$[2] = t2;
|
|
28
|
+
$[3] = t3;
|
|
29
|
+
} else t3 = $[3];
|
|
30
|
+
return t3;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { LevelDot };
|
|
35
|
+
//# sourceMappingURL=level-dot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"level-dot.js","names":["cva","VariantProps","React","badgeVariants","variants","variant","info","trace","debug","error","fatal","warn","LevelDot","FC","level","t0","$","_c","t1","t2","t3"],"sources":["../../../src/components/ui/level-dot.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority'\nimport type * as React from 'react'\n\nconst badgeVariants = cva('text-xs font-medium tracking-wide rounded-full h-[6px] w-[6px] m-[4px] outline-[2px]', {\n variants: {\n variant: {\n info: 'bg-[#2862FE] outline-[#2862FE]/20',\n trace: 'bg-[#2862FE] outline-[#2862FE]/20',\n debug: 'bg-[#2862FE] outline-[#2862FE]/20',\n error: 'bg-[#E22A6D] outline-[#E22A6D]/20',\n fatal: 'bg-[#E22A6D] outline-[#E22A6D]/20',\n warn: 'bg-[#F59F0B] outline-[#F59F0B]/20',\n },\n },\n})\n\nexport const LevelDot: React.FC<{ level: string }> = ({ level }) => {\n return <div className={badgeVariants({ variant: level as VariantProps<typeof badgeVariants>['variant'] })} />\n}\n"],"mappings":";;;;;AAGA,MAAMG,gBAAgBH,IAAI,wFAAwF,EAChHI,UAAU,EACRC,SAAS;CACPC,MAAM;CACNC,OAAO;CACPC,OAAO;CACPC,OAAO;CACPC,OAAO;CACPC,MAAM;CACR,EACF,EACD,CAAC;AAEF,MAAaC,YAAwCG,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAH,UAAAC;CACJ,MAAAG,KAAAJ;CAAsD,IAAAK;AAAA,KAAAH,EAAA,OAAAE,IAAA;AAA/EC,OAAAhB,cAAc,EAAAE,SAAWa,IAAwD,CAAC;AAAAF,IAAA,KAAAE;AAAAF,IAAA,KAAAG;OAAAA,MAAAH,EAAA;CAAA,IAAAI;AAAA,KAAAJ,EAAA,OAAAG,IAAA;AAAlGC,OAAA,oBAAA,SAAgB,WAAAD,KAAsF;AAAAH,IAAA,KAAAG;AAAAH,IAAA,KAAAI;OAAAA,MAAAJ,EAAA;AAAA,QAAtGI"}
|
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import { FC, ReactNode } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ui/panel.d.ts
|
|
4
|
+
interface PanelDetailItemProps {
|
|
5
|
+
label: string | ReactNode;
|
|
6
|
+
value: string | ReactNode;
|
|
7
|
+
highlighted?: boolean;
|
|
6
8
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
interface PanelAction {
|
|
10
|
+
active?: boolean;
|
|
11
|
+
icon: ReactNode;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
label?: string;
|
|
12
14
|
}
|
|
13
|
-
|
|
15
|
+
interface PanelProps {
|
|
16
|
+
'data-testid'?: string;
|
|
17
|
+
title?: ReactNode;
|
|
18
|
+
subtitle?: ReactNode;
|
|
19
|
+
details?: PanelDetailItemProps[];
|
|
20
|
+
actions?: PanelAction[];
|
|
21
|
+
className?: string;
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
size?: 'sm' | 'md';
|
|
24
|
+
variant?: 'default' | 'outlined' | 'filled' | 'ghost';
|
|
25
|
+
tabs?: {
|
|
26
|
+
label: string;
|
|
27
|
+
labelComponent?: ReactNode;
|
|
28
|
+
content: ReactNode;
|
|
14
29
|
'data-testid'?: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
details?: PanelDetailItemProps[];
|
|
18
|
-
actions?: PanelAction[];
|
|
19
|
-
className?: string;
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
size?: 'sm' | 'md';
|
|
22
|
-
variant?: 'default' | 'outlined' | 'filled' | 'ghost';
|
|
23
|
-
tabs?: {
|
|
24
|
-
label: string;
|
|
25
|
-
labelComponent?: ReactNode;
|
|
26
|
-
content: ReactNode;
|
|
27
|
-
'data-testid'?: string;
|
|
28
|
-
}[];
|
|
29
|
-
contentClassName?: string;
|
|
30
|
+
}[];
|
|
31
|
+
contentClassName?: string;
|
|
30
32
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
declare const PanelDetailItem: FC<PanelDetailItemProps>;
|
|
34
|
+
declare const Panel: FC<PanelProps>;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { Panel, PanelAction, PanelDetailItem, PanelDetailItemProps, PanelProps };
|
|
33
37
|
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","
|
|
1
|
+
{"version":3,"file":"panel.d.ts","names":[],"sources":["../../../src/components/ui/panel.tsx"],"sourcesContent":[],"mappings":";;;UAMiB,oBAAA;kBACC;EADD,KAAA,EAAA,MAAA,GAEC,SAFmB;EAMpB,WAAA,CAAA,EAAW,OAAA;AAO5B;AAEU,UATO,WAAA,CASP;EACG,MAAA,CAAA,EAAA,OAAA;EACD,IAAA,EATJ,SASI;EACA,OAAA,EAAA,GAAA,GAAA,IAAA;EAEC,KAAA,CAAA,EAAA,MAAA;;AAMA,UAbI,UAAA,CAaJ;EAAS,aAAA,CAAA,EAAA,MAAA;EAaT,KAAA,CAAA,EAxBH,SAwBG;EAmBA,QA6HZ,CAAA,EAvKY,SA0CU;YAzCX;YACA;;aAEC;;;;;qBAKQ;aACR;;;;;cAaA,iBAAiB,GAAG;cAmBpB,OAAO,GAAG"}
|