eglador-ui-react 1.0.0-alpha.1 → 1.0.0-alpha.3
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/README.md +22 -10
- package/dist/index.d.mts +294 -1
- package/dist/index.d.ts +294 -1
- package/dist/index.js +23 -1
- package/dist/index.mjs +23 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
Eglador UI for React — headless, accessible component library. Compound subcomponents, **Tailwind CSS v4**, zero runtime dependencies.
|
|
14
14
|
|
|
15
|
-
> **Status:** Pre-alpha —
|
|
15
|
+
> **Status:** Pre-alpha — 21/55 components shipped. Tier 1 (Display complete) and most of Tier 2 are done.
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
@@ -36,23 +36,35 @@ npm install eglador-ui-react
|
|
|
36
36
|
| Next.js (`src/`) | `src/app/globals.css` | `../../node_modules/eglador-ui-react` |
|
|
37
37
|
| Vite | `src/index.css` | `../node_modules/eglador-ui-react` |
|
|
38
38
|
|
|
39
|
-
##
|
|
39
|
+
## Conventions
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
All components share the same vocabulary:
|
|
42
42
|
|
|
43
|
-
**
|
|
43
|
+
- **Variants** (visual hierarchy): `solid` · `soft` · `outline` · `ghost` · `link`
|
|
44
|
+
- **Sizes**: `xs` · `sm` · `md` · `lg` · `xl`
|
|
45
|
+
- **Shapes**: `square` · `rounded` · `pill` · `circle`
|
|
46
|
+
- **Palette**: zinc-only (no color schemes; theming handled separately)
|
|
47
|
+
- **A11y**: native HTML inputs, `aria-*` attributes, focus-visible rings, RTL-safe Tailwind logical properties
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
## Components (21/55)
|
|
46
50
|
|
|
47
|
-
|
|
51
|
+
**✓ = shipped · — = planned**
|
|
48
52
|
|
|
49
|
-
**
|
|
53
|
+
**Layout & Structure (2/7)** — — Accordion · ✓ AspectRatio · — Collapsible · — Resizable · — ScrollArea · ✓ Separator · — Sidebar
|
|
50
54
|
|
|
51
|
-
**
|
|
55
|
+
**Display (7/7) — COMPLETE** — ✓ Avatar · ✓ Badge · ✓ Empty · ✓ Kbd · ✓ Skeleton · ✓ Spinner · ✓ Typography
|
|
52
56
|
|
|
53
|
-
**
|
|
57
|
+
**Navigation (0/7)** — — Breadcrumb · — Menubar · — NavigationMenu · — Pagination · — Stepper · — Tabs · — TreeView
|
|
54
58
|
|
|
55
|
-
**
|
|
59
|
+
**Forms (11/15)** — ✓ Button · ✓ ButtonGroup · ✓ Checkbox · ✓ CheckboxGroup · ✓ Input · ✓ InputGroup · — InputOTP · ✓ Label · — MultiSelect · — NativeSelect · ✓ Radio · ✓ RadioGroup · — Select · ✓ Switch · ✓ Textarea
|
|
60
|
+
|
|
61
|
+
**Date & Time (0/3)** — — Calendar · — DatePicker · — DateTimePicker
|
|
62
|
+
|
|
63
|
+
**Overlays (0/10)** — — Alert · — AlertDialog · — ContextMenu · — Dialog · — Drawer · — Dropdown · — HoverCard · — Notification · — Popover · — Tooltip
|
|
64
|
+
|
|
65
|
+
**Data (0/1)** — — Table
|
|
66
|
+
|
|
67
|
+
**Misc (1/5)** — — Command · — ImageCropper · ✓ Link · — SpeedDial · — Progress
|
|
56
68
|
|
|
57
69
|
## Compatibility
|
|
58
70
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,295 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
|
|
2
|
-
|
|
3
|
+
type AspectRatioPreset = "1:1" | "16:9" | "4:3" | "21:9" | "3:2" | "2:3" | "9:16";
|
|
4
|
+
interface AspectRatioProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "style"> {
|
|
5
|
+
ratio?: AspectRatioPreset | number;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
|
|
11
|
+
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
12
|
+
type AvatarShape = "circle" | "rounded" | "square";
|
|
13
|
+
interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
src?: string;
|
|
15
|
+
alt?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
size?: AvatarSize;
|
|
18
|
+
shape?: AvatarShape;
|
|
19
|
+
icon?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
max?: number;
|
|
23
|
+
size?: AvatarSize;
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
type BadgeVariant = "solid" | "soft" | "outline";
|
|
30
|
+
type BadgeSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
31
|
+
type BadgeShape = "square" | "rounded" | "pill";
|
|
32
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
33
|
+
variant?: BadgeVariant;
|
|
34
|
+
size?: BadgeSize;
|
|
35
|
+
shape?: BadgeShape;
|
|
36
|
+
icon?: React.ReactNode;
|
|
37
|
+
iconRight?: React.ReactNode;
|
|
38
|
+
removable?: boolean;
|
|
39
|
+
onRemove?: () => void;
|
|
40
|
+
children: React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
43
|
+
|
|
44
|
+
type ButtonVariant = "solid" | "soft" | "outline" | "ghost" | "link";
|
|
45
|
+
type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
46
|
+
type ButtonShape = "square" | "rounded" | "circle";
|
|
47
|
+
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "active"> {
|
|
48
|
+
variant?: ButtonVariant;
|
|
49
|
+
size?: ButtonSize;
|
|
50
|
+
shape?: ButtonShape;
|
|
51
|
+
icon?: React.ReactNode;
|
|
52
|
+
iconRight?: React.ReactNode;
|
|
53
|
+
loading?: boolean;
|
|
54
|
+
active?: boolean;
|
|
55
|
+
}
|
|
56
|
+
interface ButtonVariantOptions {
|
|
57
|
+
variant?: ButtonVariant;
|
|
58
|
+
size?: ButtonSize;
|
|
59
|
+
shape?: ButtonShape;
|
|
60
|
+
}
|
|
61
|
+
declare function buttonVariants({ variant, size, shape, }?: ButtonVariantOptions): string;
|
|
62
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
63
|
+
|
|
64
|
+
type ButtonGroupOrientation = "horizontal" | "vertical";
|
|
65
|
+
interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
66
|
+
orientation?: ButtonGroupOrientation;
|
|
67
|
+
}
|
|
68
|
+
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
interface ButtonGroupSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
70
|
+
orientation?: ButtonGroupOrientation;
|
|
71
|
+
}
|
|
72
|
+
declare const ButtonGroupSeparator: React.ForwardRefExoticComponent<ButtonGroupSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
type ButtonGroupTextSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
74
|
+
interface ButtonGroupTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
75
|
+
size?: ButtonGroupTextSize;
|
|
76
|
+
}
|
|
77
|
+
declare const ButtonGroupText: React.ForwardRefExoticComponent<ButtonGroupTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
|
|
79
|
+
type CheckboxSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
80
|
+
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> {
|
|
81
|
+
size?: CheckboxSize;
|
|
82
|
+
checked?: boolean;
|
|
83
|
+
defaultChecked?: boolean;
|
|
84
|
+
indeterminate?: boolean;
|
|
85
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
86
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
87
|
+
}
|
|
88
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
89
|
+
|
|
90
|
+
type CheckboxGroupOrientation = "horizontal" | "vertical";
|
|
91
|
+
interface CheckboxGroupProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange"> {
|
|
92
|
+
value?: string[];
|
|
93
|
+
defaultValue?: string[];
|
|
94
|
+
onValueChange?: (value: string[]) => void;
|
|
95
|
+
orientation?: CheckboxGroupOrientation;
|
|
96
|
+
size?: CheckboxSize;
|
|
97
|
+
name?: string;
|
|
98
|
+
invalid?: boolean;
|
|
99
|
+
legend?: React.ReactNode;
|
|
100
|
+
description?: React.ReactNode;
|
|
101
|
+
}
|
|
102
|
+
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
103
|
+
interface CheckboxGroupItemProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "onChange" | "htmlFor"> {
|
|
104
|
+
value: string;
|
|
105
|
+
label?: React.ReactNode;
|
|
106
|
+
description?: React.ReactNode;
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
}
|
|
109
|
+
declare const CheckboxGroupItem: React.ForwardRefExoticComponent<CheckboxGroupItemProps & React.RefAttributes<HTMLLabelElement>>;
|
|
110
|
+
|
|
111
|
+
type EmptySize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
112
|
+
interface EmptyProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
113
|
+
icon?: React.ReactNode;
|
|
114
|
+
title?: React.ReactNode;
|
|
115
|
+
description?: React.ReactNode;
|
|
116
|
+
size?: EmptySize;
|
|
117
|
+
action?: React.ReactNode;
|
|
118
|
+
children?: React.ReactNode;
|
|
119
|
+
}
|
|
120
|
+
declare const Empty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>>;
|
|
121
|
+
|
|
122
|
+
type InputVariant = "outline" | "soft" | "ghost";
|
|
123
|
+
type InputSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
124
|
+
type InputShape = "square" | "rounded" | "pill";
|
|
125
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
126
|
+
variant?: InputVariant;
|
|
127
|
+
size?: InputSize;
|
|
128
|
+
shape?: InputShape;
|
|
129
|
+
}
|
|
130
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
131
|
+
|
|
132
|
+
type TextareaVariant = "outline" | "soft" | "ghost";
|
|
133
|
+
type TextareaSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
134
|
+
type TextareaShape = "square" | "rounded";
|
|
135
|
+
type TextareaResize = "none" | "vertical" | "horizontal" | "both";
|
|
136
|
+
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
137
|
+
variant?: TextareaVariant;
|
|
138
|
+
size?: TextareaSize;
|
|
139
|
+
shape?: TextareaShape;
|
|
140
|
+
resize?: TextareaResize;
|
|
141
|
+
autoGrow?: boolean;
|
|
142
|
+
maxRows?: number;
|
|
143
|
+
}
|
|
144
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
145
|
+
|
|
146
|
+
interface InputGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
147
|
+
}
|
|
148
|
+
declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
149
|
+
declare const InputGroupInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
150
|
+
declare const InputGroupTextarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
151
|
+
type InputGroupAddonAlign = "inline-start" | "inline-end" | "block-start" | "block-end";
|
|
152
|
+
interface InputGroupAddonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
153
|
+
align?: InputGroupAddonAlign;
|
|
154
|
+
}
|
|
155
|
+
declare const InputGroupAddon: React.ForwardRefExoticComponent<InputGroupAddonProps & React.RefAttributes<HTMLDivElement>>;
|
|
156
|
+
type InputGroupButtonSize = "xs" | "sm" | "icon-xs" | "icon-sm";
|
|
157
|
+
type InputGroupButtonVariant = "ghost" | "outline" | "soft" | "solid";
|
|
158
|
+
interface InputGroupButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
159
|
+
size?: InputGroupButtonSize;
|
|
160
|
+
variant?: InputGroupButtonVariant;
|
|
161
|
+
}
|
|
162
|
+
declare const InputGroupButton: React.ForwardRefExoticComponent<InputGroupButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
163
|
+
interface InputGroupTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
164
|
+
}
|
|
165
|
+
declare const InputGroupText: React.ForwardRefExoticComponent<InputGroupTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
166
|
+
|
|
167
|
+
type KbdSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
168
|
+
type KbdVariant = "soft" | "outline" | "ghost";
|
|
169
|
+
type KbdShape = "square" | "rounded";
|
|
170
|
+
interface KbdProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
171
|
+
size?: KbdSize;
|
|
172
|
+
variant?: KbdVariant;
|
|
173
|
+
shape?: KbdShape;
|
|
174
|
+
keys?: string[];
|
|
175
|
+
separator?: React.ReactNode;
|
|
176
|
+
children?: React.ReactNode;
|
|
177
|
+
}
|
|
178
|
+
interface KbdGroupProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
179
|
+
size?: KbdSize;
|
|
180
|
+
separator?: React.ReactNode;
|
|
181
|
+
}
|
|
182
|
+
declare const Kbd: React.ForwardRefExoticComponent<KbdProps & React.RefAttributes<HTMLElement>>;
|
|
183
|
+
declare const KbdGroup: React.ForwardRefExoticComponent<KbdGroupProps & React.RefAttributes<HTMLSpanElement>>;
|
|
184
|
+
|
|
185
|
+
type LabelSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
186
|
+
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
187
|
+
size?: LabelSize;
|
|
188
|
+
required?: boolean;
|
|
189
|
+
disabled?: boolean;
|
|
190
|
+
children: React.ReactNode;
|
|
191
|
+
}
|
|
192
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
193
|
+
|
|
194
|
+
type LinkUnderline = "hover" | "always" | "none";
|
|
195
|
+
type LinkSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
196
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
197
|
+
size?: LinkSize;
|
|
198
|
+
underline?: LinkUnderline;
|
|
199
|
+
icon?: React.ReactNode;
|
|
200
|
+
iconRight?: React.ReactNode;
|
|
201
|
+
external?: boolean;
|
|
202
|
+
disabled?: boolean;
|
|
203
|
+
}
|
|
204
|
+
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
205
|
+
|
|
206
|
+
type RadioSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
207
|
+
interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> {
|
|
208
|
+
size?: RadioSize;
|
|
209
|
+
checked?: boolean;
|
|
210
|
+
defaultChecked?: boolean;
|
|
211
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
212
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
213
|
+
}
|
|
214
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
215
|
+
|
|
216
|
+
type RadioGroupOrientation = "horizontal" | "vertical";
|
|
217
|
+
interface RadioGroupProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange"> {
|
|
218
|
+
value?: string;
|
|
219
|
+
defaultValue?: string;
|
|
220
|
+
onValueChange?: (value: string) => void;
|
|
221
|
+
orientation?: RadioGroupOrientation;
|
|
222
|
+
size?: RadioSize;
|
|
223
|
+
name?: string;
|
|
224
|
+
invalid?: boolean;
|
|
225
|
+
legend?: React.ReactNode;
|
|
226
|
+
description?: React.ReactNode;
|
|
227
|
+
}
|
|
228
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
229
|
+
interface RadioGroupItemProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "onChange" | "htmlFor"> {
|
|
230
|
+
value: string;
|
|
231
|
+
label?: React.ReactNode;
|
|
232
|
+
description?: React.ReactNode;
|
|
233
|
+
disabled?: boolean;
|
|
234
|
+
}
|
|
235
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLLabelElement>>;
|
|
236
|
+
|
|
237
|
+
type SeparatorOrientation = "horizontal" | "vertical";
|
|
238
|
+
type SeparatorVariant = "solid" | "dashed" | "dotted";
|
|
239
|
+
interface SeparatorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "role" | "aria-orientation"> {
|
|
240
|
+
orientation?: SeparatorOrientation;
|
|
241
|
+
variant?: SeparatorVariant;
|
|
242
|
+
label?: React.ReactNode;
|
|
243
|
+
decorative?: boolean;
|
|
244
|
+
}
|
|
245
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
246
|
+
|
|
247
|
+
type SkeletonVariant = "text" | "circular" | "rectangular" | "rounded";
|
|
248
|
+
type SkeletonAnimation = "pulse" | "wave" | "none";
|
|
249
|
+
interface SkeletonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "style"> {
|
|
250
|
+
variant?: SkeletonVariant;
|
|
251
|
+
animation?: SkeletonAnimation;
|
|
252
|
+
width?: string | number;
|
|
253
|
+
height?: string | number;
|
|
254
|
+
lines?: number;
|
|
255
|
+
lineGap?: string;
|
|
256
|
+
style?: React.CSSProperties;
|
|
257
|
+
}
|
|
258
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
259
|
+
|
|
260
|
+
declare function ensureSkeletonStyles(): void;
|
|
261
|
+
|
|
262
|
+
type SpinnerSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
263
|
+
interface SpinnerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "role"> {
|
|
264
|
+
size?: SpinnerSize;
|
|
265
|
+
label?: string;
|
|
266
|
+
}
|
|
267
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
268
|
+
|
|
269
|
+
type SwitchSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
270
|
+
interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> {
|
|
271
|
+
size?: SwitchSize;
|
|
272
|
+
checked?: boolean;
|
|
273
|
+
defaultChecked?: boolean;
|
|
274
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
275
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
276
|
+
}
|
|
277
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
278
|
+
|
|
279
|
+
type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "p" | "lead" | "large" | "small" | "muted" | "blockquote" | "list" | "code" | "kbd";
|
|
280
|
+
type TypographyColor = "default" | "muted";
|
|
281
|
+
type TypographyAlign = "left" | "center" | "right";
|
|
282
|
+
type TypographyWeight = "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black";
|
|
283
|
+
interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>, "color"> {
|
|
284
|
+
variant?: TypographyVariant;
|
|
285
|
+
color?: TypographyColor;
|
|
286
|
+
align?: TypographyAlign;
|
|
287
|
+
weight?: TypographyWeight;
|
|
288
|
+
truncate?: boolean;
|
|
289
|
+
lines?: number;
|
|
290
|
+
as?: React.ElementType;
|
|
291
|
+
children: React.ReactNode;
|
|
292
|
+
}
|
|
293
|
+
declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLElement>>;
|
|
294
|
+
|
|
295
|
+
export { AspectRatio, type AspectRatioPreset, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeVariant, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonGroupTextSize, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, type ButtonVariantOptions, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupOrientation, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, Empty, type EmptyProps, type EmptySize, Input, InputGroup, InputGroupAddon, type InputGroupAddonAlign, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupButtonSize, type InputGroupButtonVariant, InputGroupInput, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputGroupTextarea, type InputProps, type InputShape, type InputSize, type InputVariant, Kbd, KbdGroup, type KbdGroupProps, type KbdProps, type KbdShape, type KbdSize, type KbdVariant, Label, type LabelProps, type LabelSize, Link, type LinkProps, type LinkSize, type LinkUnderline, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, type RadioSize, Separator, type SeparatorOrientation, type SeparatorProps, type SeparatorVariant, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Spinner, type SpinnerProps, type SpinnerSize, Switch, type SwitchProps, type SwitchSize, Textarea, type TextareaProps, type TextareaResize, type TextareaShape, type TextareaSize, type TextareaVariant, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, type TypographyWeight, buttonVariants, ensureSkeletonStyles };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,295 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
|
|
2
|
-
|
|
3
|
+
type AspectRatioPreset = "1:1" | "16:9" | "4:3" | "21:9" | "3:2" | "2:3" | "9:16";
|
|
4
|
+
interface AspectRatioProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "style"> {
|
|
5
|
+
ratio?: AspectRatioPreset | number;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
|
|
11
|
+
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
12
|
+
type AvatarShape = "circle" | "rounded" | "square";
|
|
13
|
+
interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
src?: string;
|
|
15
|
+
alt?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
size?: AvatarSize;
|
|
18
|
+
shape?: AvatarShape;
|
|
19
|
+
icon?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
max?: number;
|
|
23
|
+
size?: AvatarSize;
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
type BadgeVariant = "solid" | "soft" | "outline";
|
|
30
|
+
type BadgeSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
31
|
+
type BadgeShape = "square" | "rounded" | "pill";
|
|
32
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
33
|
+
variant?: BadgeVariant;
|
|
34
|
+
size?: BadgeSize;
|
|
35
|
+
shape?: BadgeShape;
|
|
36
|
+
icon?: React.ReactNode;
|
|
37
|
+
iconRight?: React.ReactNode;
|
|
38
|
+
removable?: boolean;
|
|
39
|
+
onRemove?: () => void;
|
|
40
|
+
children: React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
43
|
+
|
|
44
|
+
type ButtonVariant = "solid" | "soft" | "outline" | "ghost" | "link";
|
|
45
|
+
type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
46
|
+
type ButtonShape = "square" | "rounded" | "circle";
|
|
47
|
+
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "active"> {
|
|
48
|
+
variant?: ButtonVariant;
|
|
49
|
+
size?: ButtonSize;
|
|
50
|
+
shape?: ButtonShape;
|
|
51
|
+
icon?: React.ReactNode;
|
|
52
|
+
iconRight?: React.ReactNode;
|
|
53
|
+
loading?: boolean;
|
|
54
|
+
active?: boolean;
|
|
55
|
+
}
|
|
56
|
+
interface ButtonVariantOptions {
|
|
57
|
+
variant?: ButtonVariant;
|
|
58
|
+
size?: ButtonSize;
|
|
59
|
+
shape?: ButtonShape;
|
|
60
|
+
}
|
|
61
|
+
declare function buttonVariants({ variant, size, shape, }?: ButtonVariantOptions): string;
|
|
62
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
63
|
+
|
|
64
|
+
type ButtonGroupOrientation = "horizontal" | "vertical";
|
|
65
|
+
interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
66
|
+
orientation?: ButtonGroupOrientation;
|
|
67
|
+
}
|
|
68
|
+
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
interface ButtonGroupSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
70
|
+
orientation?: ButtonGroupOrientation;
|
|
71
|
+
}
|
|
72
|
+
declare const ButtonGroupSeparator: React.ForwardRefExoticComponent<ButtonGroupSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
type ButtonGroupTextSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
74
|
+
interface ButtonGroupTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
75
|
+
size?: ButtonGroupTextSize;
|
|
76
|
+
}
|
|
77
|
+
declare const ButtonGroupText: React.ForwardRefExoticComponent<ButtonGroupTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
|
|
79
|
+
type CheckboxSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
80
|
+
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> {
|
|
81
|
+
size?: CheckboxSize;
|
|
82
|
+
checked?: boolean;
|
|
83
|
+
defaultChecked?: boolean;
|
|
84
|
+
indeterminate?: boolean;
|
|
85
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
86
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
87
|
+
}
|
|
88
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
89
|
+
|
|
90
|
+
type CheckboxGroupOrientation = "horizontal" | "vertical";
|
|
91
|
+
interface CheckboxGroupProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange"> {
|
|
92
|
+
value?: string[];
|
|
93
|
+
defaultValue?: string[];
|
|
94
|
+
onValueChange?: (value: string[]) => void;
|
|
95
|
+
orientation?: CheckboxGroupOrientation;
|
|
96
|
+
size?: CheckboxSize;
|
|
97
|
+
name?: string;
|
|
98
|
+
invalid?: boolean;
|
|
99
|
+
legend?: React.ReactNode;
|
|
100
|
+
description?: React.ReactNode;
|
|
101
|
+
}
|
|
102
|
+
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
103
|
+
interface CheckboxGroupItemProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "onChange" | "htmlFor"> {
|
|
104
|
+
value: string;
|
|
105
|
+
label?: React.ReactNode;
|
|
106
|
+
description?: React.ReactNode;
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
}
|
|
109
|
+
declare const CheckboxGroupItem: React.ForwardRefExoticComponent<CheckboxGroupItemProps & React.RefAttributes<HTMLLabelElement>>;
|
|
110
|
+
|
|
111
|
+
type EmptySize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
112
|
+
interface EmptyProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
113
|
+
icon?: React.ReactNode;
|
|
114
|
+
title?: React.ReactNode;
|
|
115
|
+
description?: React.ReactNode;
|
|
116
|
+
size?: EmptySize;
|
|
117
|
+
action?: React.ReactNode;
|
|
118
|
+
children?: React.ReactNode;
|
|
119
|
+
}
|
|
120
|
+
declare const Empty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>>;
|
|
121
|
+
|
|
122
|
+
type InputVariant = "outline" | "soft" | "ghost";
|
|
123
|
+
type InputSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
124
|
+
type InputShape = "square" | "rounded" | "pill";
|
|
125
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
126
|
+
variant?: InputVariant;
|
|
127
|
+
size?: InputSize;
|
|
128
|
+
shape?: InputShape;
|
|
129
|
+
}
|
|
130
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
131
|
+
|
|
132
|
+
type TextareaVariant = "outline" | "soft" | "ghost";
|
|
133
|
+
type TextareaSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
134
|
+
type TextareaShape = "square" | "rounded";
|
|
135
|
+
type TextareaResize = "none" | "vertical" | "horizontal" | "both";
|
|
136
|
+
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
137
|
+
variant?: TextareaVariant;
|
|
138
|
+
size?: TextareaSize;
|
|
139
|
+
shape?: TextareaShape;
|
|
140
|
+
resize?: TextareaResize;
|
|
141
|
+
autoGrow?: boolean;
|
|
142
|
+
maxRows?: number;
|
|
143
|
+
}
|
|
144
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
145
|
+
|
|
146
|
+
interface InputGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
147
|
+
}
|
|
148
|
+
declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
149
|
+
declare const InputGroupInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
150
|
+
declare const InputGroupTextarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
151
|
+
type InputGroupAddonAlign = "inline-start" | "inline-end" | "block-start" | "block-end";
|
|
152
|
+
interface InputGroupAddonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
153
|
+
align?: InputGroupAddonAlign;
|
|
154
|
+
}
|
|
155
|
+
declare const InputGroupAddon: React.ForwardRefExoticComponent<InputGroupAddonProps & React.RefAttributes<HTMLDivElement>>;
|
|
156
|
+
type InputGroupButtonSize = "xs" | "sm" | "icon-xs" | "icon-sm";
|
|
157
|
+
type InputGroupButtonVariant = "ghost" | "outline" | "soft" | "solid";
|
|
158
|
+
interface InputGroupButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
159
|
+
size?: InputGroupButtonSize;
|
|
160
|
+
variant?: InputGroupButtonVariant;
|
|
161
|
+
}
|
|
162
|
+
declare const InputGroupButton: React.ForwardRefExoticComponent<InputGroupButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
163
|
+
interface InputGroupTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
164
|
+
}
|
|
165
|
+
declare const InputGroupText: React.ForwardRefExoticComponent<InputGroupTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
166
|
+
|
|
167
|
+
type KbdSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
168
|
+
type KbdVariant = "soft" | "outline" | "ghost";
|
|
169
|
+
type KbdShape = "square" | "rounded";
|
|
170
|
+
interface KbdProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
171
|
+
size?: KbdSize;
|
|
172
|
+
variant?: KbdVariant;
|
|
173
|
+
shape?: KbdShape;
|
|
174
|
+
keys?: string[];
|
|
175
|
+
separator?: React.ReactNode;
|
|
176
|
+
children?: React.ReactNode;
|
|
177
|
+
}
|
|
178
|
+
interface KbdGroupProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
179
|
+
size?: KbdSize;
|
|
180
|
+
separator?: React.ReactNode;
|
|
181
|
+
}
|
|
182
|
+
declare const Kbd: React.ForwardRefExoticComponent<KbdProps & React.RefAttributes<HTMLElement>>;
|
|
183
|
+
declare const KbdGroup: React.ForwardRefExoticComponent<KbdGroupProps & React.RefAttributes<HTMLSpanElement>>;
|
|
184
|
+
|
|
185
|
+
type LabelSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
186
|
+
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
187
|
+
size?: LabelSize;
|
|
188
|
+
required?: boolean;
|
|
189
|
+
disabled?: boolean;
|
|
190
|
+
children: React.ReactNode;
|
|
191
|
+
}
|
|
192
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
193
|
+
|
|
194
|
+
type LinkUnderline = "hover" | "always" | "none";
|
|
195
|
+
type LinkSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
196
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
197
|
+
size?: LinkSize;
|
|
198
|
+
underline?: LinkUnderline;
|
|
199
|
+
icon?: React.ReactNode;
|
|
200
|
+
iconRight?: React.ReactNode;
|
|
201
|
+
external?: boolean;
|
|
202
|
+
disabled?: boolean;
|
|
203
|
+
}
|
|
204
|
+
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
205
|
+
|
|
206
|
+
type RadioSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
207
|
+
interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> {
|
|
208
|
+
size?: RadioSize;
|
|
209
|
+
checked?: boolean;
|
|
210
|
+
defaultChecked?: boolean;
|
|
211
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
212
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
213
|
+
}
|
|
214
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
215
|
+
|
|
216
|
+
type RadioGroupOrientation = "horizontal" | "vertical";
|
|
217
|
+
interface RadioGroupProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange"> {
|
|
218
|
+
value?: string;
|
|
219
|
+
defaultValue?: string;
|
|
220
|
+
onValueChange?: (value: string) => void;
|
|
221
|
+
orientation?: RadioGroupOrientation;
|
|
222
|
+
size?: RadioSize;
|
|
223
|
+
name?: string;
|
|
224
|
+
invalid?: boolean;
|
|
225
|
+
legend?: React.ReactNode;
|
|
226
|
+
description?: React.ReactNode;
|
|
227
|
+
}
|
|
228
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
229
|
+
interface RadioGroupItemProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "onChange" | "htmlFor"> {
|
|
230
|
+
value: string;
|
|
231
|
+
label?: React.ReactNode;
|
|
232
|
+
description?: React.ReactNode;
|
|
233
|
+
disabled?: boolean;
|
|
234
|
+
}
|
|
235
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLLabelElement>>;
|
|
236
|
+
|
|
237
|
+
type SeparatorOrientation = "horizontal" | "vertical";
|
|
238
|
+
type SeparatorVariant = "solid" | "dashed" | "dotted";
|
|
239
|
+
interface SeparatorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "role" | "aria-orientation"> {
|
|
240
|
+
orientation?: SeparatorOrientation;
|
|
241
|
+
variant?: SeparatorVariant;
|
|
242
|
+
label?: React.ReactNode;
|
|
243
|
+
decorative?: boolean;
|
|
244
|
+
}
|
|
245
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
246
|
+
|
|
247
|
+
type SkeletonVariant = "text" | "circular" | "rectangular" | "rounded";
|
|
248
|
+
type SkeletonAnimation = "pulse" | "wave" | "none";
|
|
249
|
+
interface SkeletonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "style"> {
|
|
250
|
+
variant?: SkeletonVariant;
|
|
251
|
+
animation?: SkeletonAnimation;
|
|
252
|
+
width?: string | number;
|
|
253
|
+
height?: string | number;
|
|
254
|
+
lines?: number;
|
|
255
|
+
lineGap?: string;
|
|
256
|
+
style?: React.CSSProperties;
|
|
257
|
+
}
|
|
258
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
259
|
+
|
|
260
|
+
declare function ensureSkeletonStyles(): void;
|
|
261
|
+
|
|
262
|
+
type SpinnerSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
263
|
+
interface SpinnerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "role"> {
|
|
264
|
+
size?: SpinnerSize;
|
|
265
|
+
label?: string;
|
|
266
|
+
}
|
|
267
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
268
|
+
|
|
269
|
+
type SwitchSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
270
|
+
interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> {
|
|
271
|
+
size?: SwitchSize;
|
|
272
|
+
checked?: boolean;
|
|
273
|
+
defaultChecked?: boolean;
|
|
274
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
275
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
276
|
+
}
|
|
277
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
278
|
+
|
|
279
|
+
type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "p" | "lead" | "large" | "small" | "muted" | "blockquote" | "list" | "code" | "kbd";
|
|
280
|
+
type TypographyColor = "default" | "muted";
|
|
281
|
+
type TypographyAlign = "left" | "center" | "right";
|
|
282
|
+
type TypographyWeight = "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black";
|
|
283
|
+
interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>, "color"> {
|
|
284
|
+
variant?: TypographyVariant;
|
|
285
|
+
color?: TypographyColor;
|
|
286
|
+
align?: TypographyAlign;
|
|
287
|
+
weight?: TypographyWeight;
|
|
288
|
+
truncate?: boolean;
|
|
289
|
+
lines?: number;
|
|
290
|
+
as?: React.ElementType;
|
|
291
|
+
children: React.ReactNode;
|
|
292
|
+
}
|
|
293
|
+
declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLElement>>;
|
|
294
|
+
|
|
295
|
+
export { AspectRatio, type AspectRatioPreset, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeVariant, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonGroupTextSize, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, type ButtonVariantOptions, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupOrientation, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, Empty, type EmptyProps, type EmptySize, Input, InputGroup, InputGroupAddon, type InputGroupAddonAlign, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupButtonSize, type InputGroupButtonVariant, InputGroupInput, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputGroupTextarea, type InputProps, type InputShape, type InputSize, type InputVariant, Kbd, KbdGroup, type KbdGroupProps, type KbdProps, type KbdShape, type KbdSize, type KbdVariant, Label, type LabelProps, type LabelSize, Link, type LinkProps, type LinkSize, type LinkUnderline, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, type RadioSize, Separator, type SeparatorOrientation, type SeparatorProps, type SeparatorVariant, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Spinner, type SpinnerProps, type SpinnerSize, Switch, type SwitchProps, type SwitchSize, Textarea, type TextareaProps, type TextareaResize, type TextareaShape, type TextareaSize, type TextareaVariant, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, type TypographyWeight, buttonVariants, ensureSkeletonStyles };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var t=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(o,e,x,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of b(e))!c.call(o,p)&&p!==x&&t(o,p,{get:()=>e[p],enumerable:!(r=a(e,p))||r.enumerable});return o};var f=o=>d(t({},"__esModule",{value:!0}),o);var g={};module.exports=f(g);
|
|
2
|
+
"use strict";var Mo=Object.create;var we=Object.defineProperty;var Eo=Object.getOwnPropertyDescriptor;var Go=Object.getOwnPropertyNames;var Po=Object.getPrototypeOf,Ho=Object.prototype.hasOwnProperty;var Bo=(e,t)=>{for(var o in t)we(e,o,{get:t[o],enumerable:!0})},Qe=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Go(t))!Ho.call(e,n)&&n!==o&&we(e,n,{get:()=>t[n],enumerable:!(r=Eo(t,n))||r.enumerable});return e};var N=(e,t,o)=>(o=e!=null?Mo(Po(e)):{},Qe(t||!e||!e.__esModule?we(o,"default",{value:e,enumerable:!0}):o,e)),Vo=e=>Qe(we({},"__esModule",{value:!0}),e);var cn={};Bo(cn,{AspectRatio:()=>wt,Avatar:()=>Gt,AvatarGroup:()=>Pt,Badge:()=>Bt,Button:()=>Dt,ButtonGroup:()=>Kt,ButtonGroupSeparator:()=>Ut,ButtonGroupText:()=>jt,Checkbox:()=>Te,CheckboxGroup:()=>$t,CheckboxGroupItem:()=>Xt,Empty:()=>Jt,Input:()=>Ce,InputGroup:()=>oo,InputGroupAddon:()=>so,InputGroupButton:()=>io,InputGroupInput:()=>ro,InputGroupText:()=>ao,InputGroupTextarea:()=>no,Kbd:()=>po,KbdGroup:()=>uo,Label:()=>fo,Link:()=>xo,Radio:()=>Le,RadioGroup:()=>ho,RadioGroupItem:()=>vo,Separator:()=>yo,Skeleton:()=>wo,Spinner:()=>Io,Switch:()=>To,Textarea:()=>Ne,Typography:()=>Ao,buttonVariants:()=>Gr,ensureSkeletonStyles:()=>Ee});module.exports=Vo(cn);var kt=N(require("react"));function et(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=et(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function tt(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=et(e))&&(r&&(r+=" "),r+=t);return r}var Oo=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},Fo=(e,t)=>({classGroupId:e,validator:t}),at=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o});var ot=[],Wo="arbitrary..",_o=e=>{let t=qo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Do(s);let c=s.split("-"),l=c[0]===""&&c.length>1?1:0;return lt(c,l,t)},getConflictingClassGroupIds:(s,c)=>{if(c){let l=r[s],p=o[s];return l?p?Oo(p,l):l:p||ot}return o[s]||ot}}},lt=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let n=e[t],i=o.nextPart.get(n);if(i){let p=lt(e,t+1,i);if(p)return p}let s=o.validators;if(s===null)return;let c=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let p=0;p<l;p++){let u=s[p];if(u.validator(c))return u.classGroupId}},Do=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?Wo+r:void 0})(),qo=e=>{let{theme:t,classGroups:o}=e;return Ko(o,t)},Ko=(e,t)=>{let o=at();for(let r in e){let n=e[r];_e(n,o,r,t)}return o},_e=(e,t,o,r)=>{let n=e.length;for(let i=0;i<n;i++){let s=e[i];Uo(s,t,o,r)}},Uo=(e,t,o,r)=>{if(typeof e=="string"){jo(e,t,o);return}if(typeof e=="function"){Zo(e,t,o,r);return}$o(e,t,o,r)},jo=(e,t,o)=>{let r=e===""?t:ct(t,e);r.classGroupId=o},Zo=(e,t,o,r)=>{if(Xo(e)){_e(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Fo(o,e))},$o=(e,t,o,r)=>{let n=Object.entries(e),i=n.length;for(let s=0;s<i;s++){let[c,l]=n[s];_e(l,ct(t,c),o,r)}},ct=(e,t)=>{let o=e,r=t.split("-"),n=r.length;for(let i=0;i<n;i++){let s=r[i],c=o.nextPart.get(s);c||(c=at(),o.nextPart.set(s,c)),o=c}return o},Xo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Yo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),n=(i,s)=>{o[i]=s,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(i){let s=o[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return n(i,s),s},set(i,s){i in o?o[i]=s:n(i,s)}}};var Jo=[],rt=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),Qo=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=n=>{let i=[],s=0,c=0,l=0,p,u=n.length;for(let w=0;w<u;w++){let S=n[w];if(s===0&&c===0){if(S===":"){i.push(n.slice(l,w)),l=w+1;continue}if(S==="/"){p=w;continue}}S==="["?s++:S==="]"?s--:S==="("?c++:S===")"&&c--}let g=i.length===0?n:n.slice(l),v=g,b=!1;g.endsWith("!")?(v=g.slice(0,-1),b=!0):g.startsWith("!")&&(v=g.slice(1),b=!0);let z=p&&p>l?p-l:void 0;return rt(i,b,v,z)};if(t){let n=t+":",i=r;r=s=>s.startsWith(n)?i(s.slice(n.length)):rt(Jo,!1,s,void 0,!0)}if(o){let n=r;r=i=>o({className:i,parseClassName:n})}return r},er=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],n=[];for(let i=0;i<o.length;i++){let s=o[i],c=s[0]==="[",l=t.has(s);c||l?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(s)):n.push(s)}return n.length>0&&(n.sort(),r.push(...n)),r}},tr=e=>({cache:Yo(e.cacheSize),parseClassName:Qo(e),sortModifiers:er(e),postfixLookupClassGroupIds:or(e),..._o(e)}),or=e=>{let t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let r=0;r<o.length;r++)t[o[r]]=!0;return t},rr=/\s+/,nr=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i,postfixLookupClassGroupIds:s}=t,c=[],l=e.trim().split(rr),p="";for(let u=l.length-1;u>=0;u-=1){let g=l[u],{isExternal:v,modifiers:b,hasImportantModifier:z,baseClassName:w,maybePostfixModifierPosition:S}=o(g);if(v){p=g+(p.length>0?" "+p:p);continue}let y=!!S,k;if(y){let C=w.substring(0,S);k=r(C);let x=k&&s[k]?r(w):void 0;x&&x!==k&&(k=x,y=!1)}else k=r(w);if(!k){if(!y){p=g+(p.length>0?" "+p:p);continue}if(k=r(w),!k){p=g+(p.length>0?" "+p:p);continue}y=!1}let I=b.length===0?"":b.length===1?b[0]:i(b).join(":"),E=z?I+"!":I,G=E+k;if(c.indexOf(G)>-1)continue;c.push(G);let V=n(k,y);for(let C=0;C<V.length;++C){let x=V[C];c.push(E+x)}p=g+(p.length>0?" "+p:p)}return p},sr=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=dt(o))&&(n&&(n+=" "),n+=r);return n},dt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=dt(e[r]))&&(o&&(o+=" "),o+=t);return o},ir=(e,...t)=>{let o,r,n,i,s=l=>{let p=t.reduce((u,g)=>g(u),e());return o=tr(p),r=o.cache.get,n=o.cache.set,i=c,c(l)},c=l=>{let p=r(l);if(p)return p;let u=nr(l,o);return n(l,u),u};return i=s,(...l)=>i(sr(...l))},ar=[],A=e=>{let t=o=>o[e]||ar;return t.isThemeGetter=!0,t},pt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ut=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,cr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ur=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=e=>lr.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),j=e=>!!e&&Number.isInteger(Number(e)),We=e=>e.endsWith("%")&&R(e.slice(0,-1)),$=e=>cr.test(e),mt=()=>!0,fr=e=>dr.test(e)&&!pr.test(e),De=()=>!1,gr=e=>ur.test(e),xr=e=>mr.test(e),br=e=>!m(e)&&!f(e),hr=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),vr=e=>Q(e,xt,De),m=e=>pt.test(e),se=e=>Q(e,bt,fr),nt=e=>Q(e,Tr,R),zr=e=>Q(e,vt,mt),yr=e=>Q(e,ht,De),st=e=>Q(e,ft,De),Rr=e=>Q(e,gt,xr),Se=e=>Q(e,zt,gr),f=e=>ut.test(e),be=e=>ie(e,bt),kr=e=>ie(e,ht),it=e=>ie(e,ft),wr=e=>ie(e,xt),Sr=e=>ie(e,gt),Ie=e=>ie(e,zt,!0),Ir=e=>ie(e,vt,!0),Q=(e,t,o)=>{let r=pt.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},ie=(e,t,o=!1)=>{let r=ut.exec(e);return r?r[1]?t(r[1]):o:!1},ft=e=>e==="position"||e==="percentage",gt=e=>e==="image"||e==="url",xt=e=>e==="length"||e==="size"||e==="bg-size",bt=e=>e==="length",Tr=e=>e==="number",ht=e=>e==="family-name",vt=e=>e==="number"||e==="weight",zt=e=>e==="shadow";var Cr=()=>{let e=A("color"),t=A("font"),o=A("text"),r=A("font-weight"),n=A("tracking"),i=A("leading"),s=A("breakpoint"),c=A("container"),l=A("spacing"),p=A("radius"),u=A("shadow"),g=A("inset-shadow"),v=A("text-shadow"),b=A("drop-shadow"),z=A("blur"),w=A("perspective"),S=A("aspect"),y=A("ease"),k=A("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...E(),f,m],V=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],x=()=>[f,m,l],O=()=>[J,"full","auto",...x()],Ke=()=>[j,"none","subgrid",f,m],Ue=()=>["auto",{span:["full",j,f,m]},j,f,m],ve=()=>[j,"auto",f,m],je=()=>["auto","min","max","fr",f,m],He=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...x()],ne=()=>[J,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],Be=()=>[J,"screen","full","dvw","lvw","svw","min","max","fit",...x()],Ve=()=>[J,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],h=()=>[e,f,m],Ze=()=>[...E(),it,st,{position:[f,m]}],$e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Xe=()=>["auto","cover","contain",wr,vr,{size:[f,m]}],Oe=()=>[We,be,se],P=()=>["","none","full",p,f,m],H=()=>["",R,be,se],ze=()=>["solid","dashed","dotted","double"],Ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[R,We,it,st],Je=()=>["","none",z,f,m],ye=()=>["none",R,f,m],Re=()=>["none",R,f,m],Fe=()=>[R,f,m],ke=()=>[J,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[mt],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[br],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",R],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",J,m,f,S]}],container:["container"],"container-type":[{"@container":["","normal","size",f,m]}],"container-named":[hr],columns:[{columns:[R,m,f,c]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[j,"auto",f,m]}],basis:[{basis:[J,"full","auto",c,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,J,"auto","initial","none",m]}],grow:[{grow:["",R,f,m]}],shrink:[{shrink:["",R,f,m]}],order:[{order:[j,"first","last","none",f,m]}],"grid-cols":[{"grid-cols":Ke()}],"col-start-end":[{col:Ue()}],"col-start":[{"col-start":ve()}],"col-end":[{"col-end":ve()}],"grid-rows":[{"grid-rows":Ke()}],"row-start-end":[{row:Ue()}],"row-start":[{"row-start":ve()}],"row-end":[{"row-end":ve()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":je()}],"auto-rows":[{"auto-rows":je()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...He(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...He()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":He()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mbs:[{mbs:q()}],mbe:[{mbe:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...Be()]}],"min-inline-size":[{"min-inline":["auto",...Be()]}],"max-inline-size":[{"max-inline":["none",...Be()]}],"block-size":[{block:["auto",...Ve()]}],"min-block-size":[{"min-block":["auto",...Ve()]}],"max-block-size":[{"max-block":["none",...Ve()]}],w:[{w:[c,"screen",...ne()]}],"min-w":[{"min-w":[c,"screen","none",...ne()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",o,be,se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ir,zr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",We,m]}],"font-family":[{font:[kr,yr,t]}],"font-features":[{"font-features":[m]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,f,m]}],"line-clamp":[{"line-clamp":[R,"none",f,nt]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",f,m]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",f,se]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[R,"auto",f,m]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[j,f,m]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,m]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f,m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ze()}],"bg-repeat":[{bg:$e()}],"bg-size":[{bg:Xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},j,f,m],radial:["",f,m],conic:[j,f,m]},Sr,Rr]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:Oe()}],"gradient-via-pos":[{via:Oe()}],"gradient-to-pos":[{to:Oe()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-bs":[{"border-bs":H()}],"border-w-be":[{"border-be":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ze(),"hidden","none"]}],"divide-style":[{divide:[...ze(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...ze(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,f,m]}],"outline-w":[{outline:["",R,be,se]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",u,Ie,Se]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",g,Ie,Se]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[R,se]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",v,Ie,Se]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[R,f,m]}],"mix-blend":[{"mix-blend":[...Ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[f,m]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ze()}],"mask-repeat":[{mask:$e()}],"mask-size":[{mask:Xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,m]}],filter:[{filter:["","none",f,m]}],blur:[{blur:Je()}],brightness:[{brightness:[R,f,m]}],contrast:[{contrast:[R,f,m]}],"drop-shadow":[{"drop-shadow":["","none",b,Ie,Se]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",R,f,m]}],"hue-rotate":[{"hue-rotate":[R,f,m]}],invert:[{invert:["",R,f,m]}],saturate:[{saturate:[R,f,m]}],sepia:[{sepia:["",R,f,m]}],"backdrop-filter":[{"backdrop-filter":["","none",f,m]}],"backdrop-blur":[{"backdrop-blur":Je()}],"backdrop-brightness":[{"backdrop-brightness":[R,f,m]}],"backdrop-contrast":[{"backdrop-contrast":[R,f,m]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,f,m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,f,m]}],"backdrop-invert":[{"backdrop-invert":["",R,f,m]}],"backdrop-opacity":[{"backdrop-opacity":[R,f,m]}],"backdrop-saturate":[{"backdrop-saturate":[R,f,m]}],"backdrop-sepia":[{"backdrop-sepia":["",R,f,m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,m]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",f,m]}],ease:[{ease:["linear","initial",y,f,m]}],delay:[{delay:[R,f,m]}],animate:[{animate:["none",k,f,m]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,f,m]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:Fe()}],"skew-x":[{"skew-x":Fe()}],"skew-y":[{"skew-y":Fe()}],transform:[{transform:[f,m,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],zoom:[{zoom:[j,f,m]}],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f,m]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":h()}],"scrollbar-track-color":[{"scrollbar-track":h()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f,m]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[R,be,se,nt]}],stroke:[{stroke:["none",...h()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var yt=ir(Cr);function d(...e){return yt(tt(e))}var St=require("react/jsx-runtime"),Rt={"1:1":"aspect-square","16:9":"aspect-video","4:3":"aspect-[4/3]","21:9":"aspect-[21/9]","3:2":"aspect-[3/2]","2:3":"aspect-[2/3]","9:16":"aspect-[9/16]"},wt=kt.forwardRef(function({ratio:t="16:9",className:o,style:r,children:n,...i},s){let c=typeof t=="string"&&t in Rt;return(0,St.jsx)("div",{ref:s,className:d("relative overflow-hidden",c&&Rt[t],o),style:!c&&typeof t=="number"?{aspectRatio:t,...r}:r,...i,children:n})});wt.displayName="AspectRatio";var F=N(require("react"));var It=N(require("react")),a=require("react/jsx-runtime");function T(e,t,o,r="none"){let n=It.memo(({className:i,strokeWidth:s=t})=>(0,a.jsx)("svg",{className:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:r,stroke:"currentColor",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",children:o}));return n.displayName=e,n}var hn=T("ChevronDownIcon",2,(0,a.jsx)("path",{d:"m6 9 6 6 6-6"})),vn=T("ChevronUpIcon",2,(0,a.jsx)("path",{d:"m18 15-6-6-6 6"})),zn=T("ChevronLeftIcon",2,(0,a.jsx)("path",{d:"m15 18-6-6 6-6"})),yn=T("ChevronRightIcon",2,(0,a.jsx)("path",{d:"m9 18 6-6-6-6"})),Rn=T("ChevronsLeftIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"m11 17-5-5 5-5"}),(0,a.jsx)("path",{d:"m18 17-5-5 5-5"})]})),kn=T("ChevronsRightIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"m6 17 5-5-5-5"}),(0,a.jsx)("path",{d:"m13 17 5-5-5-5"})]})),wn=T("ChevronsUpDownIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,a.jsx)("path",{d:"m7 9 5-5 5 5"})]})),Tt=T("XIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M18 6 6 18"}),(0,a.jsx)("path",{d:"m6 6 12 12"})]})),Ct=T("CheckIcon",2.5,(0,a.jsx)("path",{d:"M20 6 9 17l-5-5"})),Nt=T("MinusIcon",2.5,(0,a.jsx)("path",{d:"M5 12h14"})),Sn=T("PlusIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M5 12h14"}),(0,a.jsx)("path",{d:"M12 5v14"})]})),In=T("SearchIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,a.jsx)("path",{d:"m21 21-4.3-4.3"})]})),At=T("ExternalLinkIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M15 3h6v6"}),(0,a.jsx)("path",{d:"M10 14 21 3"}),(0,a.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})),Tn=T("EllipsisIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,a.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,a.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),"currentColor"),Cn=T("DotIcon",2,(0,a.jsx)("circle",{cx:"12",cy:"12",r:"5"}),"currentColor"),Nn=T("GripVerticalIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"9",cy:"5",r:"1"}),(0,a.jsx)("circle",{cx:"9",cy:"12",r:"1"}),(0,a.jsx)("circle",{cx:"9",cy:"19",r:"1"}),(0,a.jsx)("circle",{cx:"15",cy:"5",r:"1"}),(0,a.jsx)("circle",{cx:"15",cy:"12",r:"1"}),(0,a.jsx)("circle",{cx:"15",cy:"19",r:"1"})]}),"currentColor"),An=T("GripHorizontalIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"5",cy:"9",r:"1"}),(0,a.jsx)("circle",{cx:"12",cy:"9",r:"1"}),(0,a.jsx)("circle",{cx:"19",cy:"9",r:"1"}),(0,a.jsx)("circle",{cx:"5",cy:"15",r:"1"}),(0,a.jsx)("circle",{cx:"12",cy:"15",r:"1"}),(0,a.jsx)("circle",{cx:"19",cy:"15",r:"1"})]}),"currentColor"),Lt=T("InboxIcon",1,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),(0,a.jsx)("path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"})]})),Ln=T("InfoIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,a.jsx)("path",{d:"M12 16v-4"}),(0,a.jsx)("path",{d:"M12 8h.01"})]})),Mn=T("WarningIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),(0,a.jsx)("path",{d:"M12 9v4"}),(0,a.jsx)("path",{d:"M12 17h.01"})]})),En=T("ErrorIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,a.jsx)("path",{d:"m15 9-6 6"}),(0,a.jsx)("path",{d:"m9 9 6 6"})]})),Gn=T("SuccessIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,a.jsx)("path",{d:"m9 12 2 2 4-4"})]})),Pn=T("CalendarIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M8 2v4"}),(0,a.jsx)("path",{d:"M16 2v4"}),(0,a.jsx)("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),(0,a.jsx)("path",{d:"M3 10h18"})]})),Mt=T("UserIcon",2,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"12",cy:"8",r:"5"}),(0,a.jsx)("path",{d:"M20 21a8 8 0 0 0-16 0"})]}));var K=require("react/jsx-runtime"),Et={xs:{container:"size-6",font:"text-[10px]",iconSize:"size-3"},sm:{container:"size-8",font:"text-xs",iconSize:"size-3.5"},md:{container:"size-10",font:"text-sm",iconSize:"size-4"},lg:{container:"size-12",font:"text-base",iconSize:"size-5"},xl:{container:"size-16",font:"text-lg",iconSize:"size-6"}},Nr={circle:"rounded-full",rounded:"rounded-sm",square:""};function Ar(e){let t=e.trim().split(/\s+/);return t.length>=2?(t[0][0]+t[t.length-1][0]).toUpperCase():e.slice(0,2).toUpperCase()}var Gt=F.forwardRef(function({src:t,alt:o,name:r,size:n="md",shape:i="circle",icon:s,className:c,...l},p){let[u,g]=F.useState(!1),v=Et[n],b=t&&!u,z=r?Ar(r):null;return F.useEffect(()=>{g(!1)},[t]),(0,K.jsx)("div",{ref:p,className:d("relative inline-flex shrink-0",c),...l,children:(0,K.jsx)("div",{className:d("flex items-center justify-center overflow-hidden font-semibold",v.container,Nr[i],!b&&"bg-zinc-200 text-zinc-600"),children:b?(0,K.jsx)("img",{src:t,alt:o||r||"Avatar",className:"w-full h-full object-cover",onError:()=>g(!0)}):s?(0,K.jsx)("span",{className:d("flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",v.iconSize),children:s}):z?(0,K.jsx)("span",{className:v.font,children:z}):(0,K.jsx)(Mt,{className:v.iconSize})})})});Gt.displayName="Avatar";var Pt=F.forwardRef(function({max:t,size:o="md",className:r,children:n,...i},s){let c=F.Children.toArray(n).filter(F.isValidElement),l=t?c.slice(0,t):c,p=t?c.length-t:0,u=Et[o];return(0,K.jsxs)("div",{ref:s,className:d("flex -space-x-2",r),...i,children:[l.map((g,v)=>(0,K.jsx)("div",{className:"ring-2 ring-white rounded-full",children:F.cloneElement(g,{size:o})},v)),p>0&&(0,K.jsxs)("div",{className:d("flex items-center justify-center rounded-full ring-2 ring-white bg-zinc-200 text-zinc-600 font-semibold",u.container,u.font),children:["+",p]})]})});Pt.displayName="AvatarGroup";var Ht=N(require("react"));var ae=require("react/jsx-runtime"),Lr={xs:{padding:"px-1.5 py-0.5",font:"text-[10px]",iconSize:"size-2.5",gap:"gap-0.5"},sm:{padding:"px-2 py-0.5",font:"text-xs",iconSize:"size-3",gap:"gap-1"},md:{padding:"px-2.5 py-1",font:"text-sm",iconSize:"size-3.5",gap:"gap-1"},lg:{padding:"px-3 py-1.5",font:"text-base",iconSize:"size-4",gap:"gap-1.5"},xl:{padding:"px-4 py-2",font:"text-lg",iconSize:"size-5",gap:"gap-2"}},Mr={square:"",rounded:"rounded-sm",pill:"rounded-full"},Er={solid:{base:"bg-zinc-900 text-white border border-zinc-900",removeHover:"hover:bg-zinc-700"},soft:{base:"bg-zinc-100 text-zinc-700 border border-zinc-200",removeHover:"hover:bg-zinc-200 hover:text-zinc-900"},outline:{base:"bg-transparent text-zinc-700 border border-zinc-300",removeHover:"hover:bg-zinc-100 hover:text-zinc-900"}},Bt=Ht.forwardRef(function({variant:t="soft",size:o="sm",shape:r="rounded",icon:n,iconRight:i,removable:s=!1,onRemove:c,className:l,children:p,...u},g){let v=Lr[o],b=Er[t];return(0,ae.jsxs)("span",{ref:g,className:d("inline-flex items-center font-medium whitespace-nowrap",v.padding,v.font,v.gap,Mr[r],b.base,l),...u,children:[n&&(0,ae.jsx)("span",{className:d("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",v.iconSize),children:n}),p,i&&!s&&(0,ae.jsx)("span",{className:d("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",v.iconSize),children:i}),s&&(0,ae.jsx)("button",{type:"button","aria-label":"Remove",onClick:c,className:d("shrink-0 flex items-center justify-center rounded-full transition-colors cursor-pointer -mr-0.5",v.iconSize,b.removeHover),children:(0,ae.jsx)(Tt,{className:"size-full",strokeWidth:2.5})})]})});Bt.displayName="Badge";var Vt=N(require("react"));var X=require("react/jsx-runtime"),Ot={xs:{height:"h-7",square:"w-7",padding:"px-2",gap:"gap-1",font:"text-xs",iconSize:"size-3"},sm:{height:"h-8",square:"w-8",padding:"px-2.5",gap:"gap-1.5",font:"text-sm",iconSize:"size-3.5"},md:{height:"h-9",square:"w-9",padding:"px-3",gap:"gap-1.5",font:"text-sm",iconSize:"size-4"},lg:{height:"h-10",square:"w-10",padding:"px-4",gap:"gap-2",font:"text-base",iconSize:"size-4"},xl:{height:"h-12",square:"w-12",padding:"px-5",gap:"gap-2",font:"text-lg",iconSize:"size-5"}},Ft={square:"",rounded:"rounded-sm",circle:"rounded-full"},Wt={solid:{base:"bg-zinc-900 text-white hover:bg-zinc-700 border border-zinc-900",active:"bg-zinc-700"},soft:{base:"bg-zinc-100 text-zinc-900 hover:bg-zinc-200 border border-zinc-200",active:"bg-zinc-200"},outline:{base:"bg-white text-zinc-700 hover:bg-zinc-50 border border-zinc-300",active:"bg-zinc-100"},ghost:{base:"bg-transparent text-zinc-700 hover:bg-zinc-100 border border-transparent",active:"bg-zinc-100"},link:{base:"bg-transparent text-zinc-900 hover:underline underline-offset-4 border-0",active:"underline"}},_t="inline-flex items-center justify-center font-medium transition-colors cursor-pointer select-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1 disabled:opacity-50 disabled:pointer-events-none";function Gr({variant:e="solid",size:t="md",shape:o="rounded"}={}){let r=Ot[t],n=Wt[e],i=e==="link";return d(_t,r.font,r.gap,!i&&Ft[o],!i&&r.height,!i&&r.padding,n.base)}function Pr({className:e}){return(0,X.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:d("animate-spin",e),children:[(0,X.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",className:"opacity-25"}),(0,X.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})}var Dt=Vt.forwardRef(function({variant:t="solid",size:o="md",shape:r="rounded",icon:n,iconRight:i,loading:s=!1,active:c=!1,disabled:l=!1,className:p,children:u,type:g="button",...v},b){let z=Ot[o],w=Wt[t],S=t==="link",y=!S&&!u&&(!!n||s);return(0,X.jsxs)("button",{ref:b,type:g,disabled:l||s,"data-active":c||void 0,className:d(_t,z.font,z.gap,!S&&Ft[r],!S&&z.height,!S&&(y?z.square:z.padding),w.base,c&&w.active,p),...v,children:[s?(0,X.jsx)(Pr,{className:z.iconSize}):n?(0,X.jsx)("span",{className:d("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",z.iconSize),children:n}):null,u,i&&!s&&(0,X.jsx)("span",{className:d("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",z.iconSize),children:i})]})});Dt.displayName="Button";var ee=N(require("react"));var he=require("react/jsx-runtime"),qt=ee.createContext("horizontal"),Hr="[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child:not(:last-child)]:rounded-e-none [&>*:last-child:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:-ms-px [&>*:focus-visible]:z-10 [&>*:focus-visible]:relative",Br="[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child:not(:last-child)]:rounded-b-none [&>*:last-child:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:focus-visible]:z-10 [&>*:focus-visible]:relative",Kt=ee.forwardRef(function({orientation:t="horizontal",className:o,children:r,...n},i){return(0,he.jsx)(qt.Provider,{value:t,children:(0,he.jsx)("div",{ref:i,role:"group","data-orientation":t,className:d("inline-flex isolate",t==="horizontal"?"flex-row":"flex-col",t==="horizontal"?Hr:Br,o),...n,children:r})})});Kt.displayName="ButtonGroup";var Ut=ee.forwardRef(function({orientation:t,className:o,...r},n){let i=ee.useContext(qt),s=t??(i==="horizontal"?"vertical":"horizontal");return(0,he.jsx)("div",{ref:n,role:"separator","aria-orientation":s,"data-orientation":s,className:d("bg-zinc-300 shrink-0 self-stretch z-[1] relative",s==="vertical"?"w-px":"h-px",o),...r})});Ut.displayName="ButtonGroupSeparator";var Vr={xs:{height:"h-7",padding:"px-2",font:"text-xs"},sm:{height:"h-8",padding:"px-2.5",font:"text-sm"},md:{height:"h-9",padding:"px-3",font:"text-sm"},lg:{height:"h-10",padding:"px-4",font:"text-base"},xl:{height:"h-12",padding:"px-5",font:"text-lg"}},jt=ee.forwardRef(function({size:t="md",className:o,...r},n){let i=Vr[t];return(0,he.jsx)("div",{ref:n,className:d("inline-flex items-center font-medium text-zinc-700","bg-zinc-50 border border-zinc-200 rounded-sm select-none",i.height,i.padding,i.font,o),...r})});jt.displayName="ButtonGroupText";var W=N(require("react"));var le=require("react/jsx-runtime"),Or={xs:{box:"size-3.5",icon:"size-3",stroke:3},sm:{box:"size-4",icon:"size-3",stroke:3},md:{box:"size-5",icon:"size-3.5",stroke:2.5},lg:{box:"size-6",icon:"size-4",stroke:2.5},xl:{box:"size-7",icon:"size-5",stroke:2}},Te=W.forwardRef(function({size:t="md",checked:o,defaultChecked:r=!1,indeterminate:n=!1,onCheckedChange:i,onChange:s,disabled:c=!1,className:l,id:p,...u},g){let v=W.useId(),b=p??v,z=o!==void 0,[w,S]=W.useState(r),y=z?o:w,k=Or[t],I=W.useRef(null);W.useEffect(()=>{I.current&&(I.current.indeterminate=!!n)},[n]);let E=W.useCallback(C=>{I.current=C,typeof g=="function"?g(C):g&&(g.current=C)},[g]),G=C=>{z||S(C.target.checked),s?.(C),i?.(C.target.checked)},V=y||n;return(0,le.jsxs)("span",{className:d("relative inline-flex shrink-0 items-center justify-center",c&&"opacity-50 cursor-not-allowed",l),children:[(0,le.jsx)("input",{ref:E,id:b,type:"checkbox","data-slot":"checkbox","data-indeterminate":n||void 0,checked:y,onChange:G,disabled:c,className:"peer sr-only",...u}),(0,le.jsx)("span",{"aria-hidden":"true",className:d("inline-flex items-center justify-center rounded-sm transition-colors border",c?"cursor-not-allowed":"cursor-pointer",V?"bg-zinc-900 border-zinc-900 text-white":"bg-white border-zinc-300 peer-hover:border-zinc-400","peer-focus-visible:ring-2 peer-focus-visible:ring-zinc-900 peer-focus-visible:ring-offset-1","peer-aria-invalid:border-zinc-900 peer-aria-invalid:ring-2 peer-aria-invalid:ring-zinc-200",k.box),children:n?(0,le.jsx)(Nt,{className:k.icon,strokeWidth:k.stroke}):y?(0,le.jsx)(Ct,{className:k.icon,strokeWidth:k.stroke}):null})]})});Te.displayName="Checkbox";var B=N(require("react"));var _=require("react/jsx-runtime"),Zt=B.createContext(null),$t=B.forwardRef(function({value:t,defaultValue:o=[],onValueChange:r,orientation:n="vertical",size:i="md",disabled:s=!1,name:c,invalid:l,legend:p,description:u,className:g,children:v,...b},z){let w=t!==void 0,[S,y]=B.useState(o),k=w?t:S,I=B.useCallback(G=>{let V=k.includes(G)?k.filter(C=>C!==G):[...k,G];w||y(V),r?.(V)},[k,w,r]),E=B.useMemo(()=>({value:k,toggle:I,size:i,disabled:s,name:c,invalid:l}),[k,I,i,s,c,l]);return(0,_.jsx)(Zt.Provider,{value:E,children:(0,_.jsxs)("fieldset",{ref:z,"data-slot":"checkbox-group","data-orientation":n,"aria-invalid":l||void 0,disabled:s,className:d("flex flex-col gap-2 min-w-0",g),...b,children:[p&&(0,_.jsx)("legend",{className:"text-sm font-medium text-zinc-700 mb-1",children:p}),u&&(0,_.jsx)("p",{className:"text-xs text-zinc-500 -mt-1 mb-1",children:u}),(0,_.jsx)("div",{className:d("flex",n==="vertical"?"flex-col gap-2":"flex-row gap-4 flex-wrap"),children:v})]})})});$t.displayName="CheckboxGroup";var Xt=B.forwardRef(function({value:t,label:o,description:r,disabled:n,className:i,...s},c){let l=B.useContext(Zt);if(!l)throw new Error("CheckboxGroupItem must be rendered inside <CheckboxGroup>.");let p=B.useId(),u=l.value.includes(t),g=l.disabled||!!n;return(0,_.jsxs)("label",{ref:c,htmlFor:p,className:d("inline-flex items-start gap-2.5 select-none",g?"cursor-not-allowed opacity-50":"cursor-pointer",i),...s,children:[(0,_.jsx)(Te,{id:p,value:t,name:l.name,size:l.size,disabled:g,checked:u,onCheckedChange:()=>l.toggle(t),"aria-invalid":l.invalid||void 0,className:"mt-0.5"}),(o||r)&&(0,_.jsxs)("div",{className:"flex flex-col gap-0.5 min-w-0",children:[o&&(0,_.jsx)("span",{className:"text-sm font-medium text-zinc-700",children:o}),r&&(0,_.jsx)("span",{className:"text-xs text-zinc-500",children:r})]})]})});Xt.displayName="CheckboxGroupItem";var Yt=N(require("react"));var Z=require("react/jsx-runtime"),Fr={xs:{containerSize:"size-10",iconSize:"size-5",titleFont:"text-xs",descFont:"text-[11px]",maxWidth:"max-w-2xs",padding:"py-5 px-3"},sm:{containerSize:"size-12",iconSize:"size-6",titleFont:"text-sm",descFont:"text-xs",maxWidth:"max-w-xs",padding:"py-8 px-4"},md:{containerSize:"size-16",iconSize:"size-7",titleFont:"text-base",descFont:"text-sm",maxWidth:"max-w-sm",padding:"py-12 px-6"},lg:{containerSize:"size-20",iconSize:"size-9",titleFont:"text-lg",descFont:"text-base",maxWidth:"max-w-md",padding:"py-16 px-8"},xl:{containerSize:"size-24",iconSize:"size-11",titleFont:"text-xl",descFont:"text-base",maxWidth:"max-w-lg",padding:"py-20 px-10"}},Jt=Yt.forwardRef(function({icon:t,title:o,description:r,size:n="md",action:i,className:s,children:c,...l},p){let u=Fr[n];return(0,Z.jsxs)("div",{ref:p,className:d("flex flex-col items-center justify-center text-center gap-4",u.padding,s),...l,children:[(0,Z.jsx)("div",{className:d("flex items-center justify-center rounded-full bg-zinc-100",u.containerSize),children:(0,Z.jsx)("span",{className:d("text-zinc-400 [&>svg]:w-full [&>svg]:h-full",u.iconSize),children:t??(0,Z.jsx)(Lt,{className:"w-full h-full"})})}),(o||r)&&(0,Z.jsxs)("div",{className:"flex flex-col gap-1.5",children:[o&&(0,Z.jsx)("h3",{className:d("font-semibold text-zinc-900",u.titleFont),children:o}),r&&(0,Z.jsx)("p",{className:d("text-zinc-500 leading-relaxed",u.descFont,u.maxWidth),children:r})]}),i&&(0,Z.jsx)("div",{className:"mt-1",children:i}),c]})});Jt.displayName="Empty";var Qt=N(require("react"));var eo=require("react/jsx-runtime"),Wr={xs:{height:"h-7",padding:"px-2",font:"text-xs"},sm:{height:"h-8",padding:"px-2.5",font:"text-sm"},md:{height:"h-9",padding:"px-3",font:"text-sm"},lg:{height:"h-10",padding:"px-3.5",font:"text-base"},xl:{height:"h-12",padding:"px-4",font:"text-lg"}},_r={square:"rounded-none",rounded:"rounded-sm",pill:"rounded-full"},Dr={outline:"bg-white border border-zinc-300",soft:"bg-zinc-50 border border-zinc-200",ghost:"bg-transparent border border-transparent focus-visible:border-zinc-300"},Ce=Qt.forwardRef(function({variant:t="outline",size:o="md",shape:r="rounded",className:n,type:i="text",...s},c){let l=Wr[o];return(0,eo.jsx)("input",{ref:c,type:i,"data-slot":"input",className:d("w-full transition-colors","text-zinc-900 placeholder:text-zinc-400","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1 focus-visible:border-zinc-900","aria-invalid:border-zinc-900 aria-invalid:ring-2 aria-invalid:ring-zinc-200","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-zinc-50","read-only:bg-zinc-50 read-only:text-zinc-600","file:border-0 file:bg-transparent file:text-zinc-700 file:font-medium file:me-3 file:cursor-pointer",Dr[t],_r[r],l.height,l.padding,l.font,n),...s})});Ce.displayName="Input";var ce=N(require("react"));var Y=N(require("react"));var to=require("react/jsx-runtime"),qr={xs:{padding:"px-2 py-1.5",font:"text-xs"},sm:{padding:"px-2.5 py-1.5",font:"text-sm"},md:{padding:"px-3 py-2",font:"text-sm"},lg:{padding:"px-3.5 py-2.5",font:"text-base"},xl:{padding:"px-4 py-3",font:"text-lg"}},Kr={square:"rounded-none",rounded:"rounded-sm"},Ur={outline:"bg-white border border-zinc-300",soft:"bg-zinc-50 border border-zinc-200",ghost:"bg-transparent border border-transparent focus-visible:border-zinc-300"},jr={none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"},Ne=Y.forwardRef(function({variant:t="outline",size:o="md",shape:r="rounded",resize:n="vertical",autoGrow:i=!1,maxRows:s,className:c,onChange:l,rows:p=3,...u},g){let v=Y.useRef(null),b=qr[o],z=Y.useCallback(()=>{let y=v.current;if(!y||!i)return;y.style.height="auto";let k=y.scrollHeight;if(s){let I=parseInt(getComputedStyle(y).lineHeight,10)||20,E=parseInt(getComputedStyle(y).paddingTop,10)+parseInt(getComputedStyle(y).paddingBottom,10);k=Math.min(k,I*s+E)}y.style.height=`${k}px`},[i,s]);Y.useEffect(()=>{i&&z()},[z,i]);let w=Y.useCallback(y=>{v.current=y,typeof g=="function"?g(y):g&&(g.current=y)},[g]);return(0,to.jsx)("textarea",{ref:w,rows:p,"data-slot":"textarea",onChange:y=>{l?.(y),i&&z()},className:d("w-full transition-colors","text-zinc-900 placeholder:text-zinc-400","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1 focus-visible:border-zinc-900","aria-invalid:border-zinc-900 aria-invalid:ring-2 aria-invalid:ring-zinc-200","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-zinc-50","read-only:bg-zinc-50 read-only:text-zinc-600",Ur[t],Kr[r],b.padding,b.font,i?"resize-none overflow-hidden":jr[n],c),...u})});Ne.displayName="Textarea";var de=require("react/jsx-runtime"),oo=ce.forwardRef(function({className:t,...o},r){return(0,de.jsx)("div",{ref:r,"data-slot":"input-group",className:d("relative isolate flex items-stretch w-full","bg-white border border-zinc-300 rounded-sm transition-colors","has-[[data-slot=input-group-control]:focus-visible]:ring-2","has-[[data-slot=input-group-control]:focus-visible]:ring-zinc-900","has-[[data-slot=input-group-control]:focus-visible]:ring-offset-1","has-[[data-slot=input-group-control]:focus-visible]:border-zinc-900","has-[[aria-invalid=true]]:border-zinc-900","has-[[aria-invalid=true]]:ring-2","has-[[aria-invalid=true]]:ring-zinc-200","has-[[data-align=block-start]]:flex-col","has-[[data-align=block-end]]:flex-col","[&_[data-slot=input-group-control]]:border-0","[&_[data-slot=input-group-control]]:bg-transparent","[&_[data-slot=input-group-control]]:rounded-none","[&_[data-slot=input-group-control]]:shadow-none","[&_[data-slot=input-group-control]]:flex-1","[&_[data-slot=input-group-control]]:min-w-0","[&_[data-slot=input-group-control]]:focus-visible:ring-0","[&_[data-slot=input-group-control]]:focus-visible:ring-offset-0","[&_[data-slot=input-group-control]]:focus-visible:border-0","[&_[data-slot=input-group-control]]:aria-invalid:ring-0","[&_[data-slot=input-group-control]]:aria-invalid:border-0",t),...o})});oo.displayName="InputGroup";var ro=ce.forwardRef(function(t,o){return(0,de.jsx)(Ce,{ref:o,"data-slot":"input-group-control",...t})});ro.displayName="InputGroupInput";var no=ce.forwardRef(function(t,o){return(0,de.jsx)(Ne,{ref:o,"data-slot":"input-group-control",...t})});no.displayName="InputGroupTextarea";var so=ce.forwardRef(function({align:t="inline-start",className:o,...r},n){return(0,de.jsx)("div",{ref:n,"data-slot":"input-group-addon","data-align":t,className:d("inline-flex items-center text-zinc-500 select-none gap-1.5 shrink-0","[&>svg]:size-4",t==="inline-start"&&"order-first ps-3",t==="inline-end"&&"order-last pe-3",t==="block-start"&&"order-first w-full px-3 py-2 border-b border-zinc-300",t==="block-end"&&"order-last w-full px-3 py-2 border-t border-zinc-300",o),...r})});so.displayName="InputGroupAddon";var Zr={xs:"h-6 px-2 text-xs gap-1 [&>svg]:size-3","icon-xs":"size-6 [&>svg]:size-3",sm:"h-7 px-2.5 text-xs gap-1 [&>svg]:size-3.5","icon-sm":"size-7 [&>svg]:size-3.5"},$r={ghost:"bg-transparent text-zinc-700 hover:bg-zinc-100 border border-transparent",outline:"bg-white text-zinc-700 hover:bg-zinc-50 border border-zinc-300",soft:"bg-zinc-100 text-zinc-900 hover:bg-zinc-200 border border-zinc-200",solid:"bg-zinc-900 text-white hover:bg-zinc-700 border border-zinc-900"},io=ce.forwardRef(function({size:t="xs",variant:o="ghost",className:r,type:n="button",...i},s){return(0,de.jsx)("button",{ref:s,type:n,"data-slot":"input-group-button",className:d("inline-flex items-center justify-center font-medium rounded-sm transition-colors cursor-pointer shrink-0 select-none","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1","disabled:opacity-50 disabled:pointer-events-none",Zr[t],$r[o],r),...i})});io.displayName="InputGroupButton";var ao=ce.forwardRef(function({className:t,...o},r){return(0,de.jsx)("div",{ref:r,"data-slot":"input-group-text",className:d("inline-flex items-center whitespace-nowrap select-none text-sm text-zinc-600 font-medium",t),...o})});ao.displayName="InputGroupText";var te=N(require("react"));var U=require("react/jsx-runtime"),qe={xs:{padding:"px-1 py-px",font:"text-[10px]",minWidth:"min-w-4",gap:"gap-0.5"},sm:{padding:"px-1.5 py-0.5",font:"text-xs",minWidth:"min-w-5",gap:"gap-1"},md:{padding:"px-2 py-1",font:"text-sm",minWidth:"min-w-6",gap:"gap-1.5"},lg:{padding:"px-2.5 py-1",font:"text-base",minWidth:"min-w-7",gap:"gap-1.5"},xl:{padding:"px-3 py-1.5",font:"text-lg",minWidth:"min-w-8",gap:"gap-2"}},lo={square:"",rounded:"rounded-sm"},co={soft:"bg-zinc-100 border border-zinc-300",outline:"bg-transparent border border-zinc-300",ghost:"bg-zinc-50 border border-transparent"};function Xr({children:e,size:t,variant:o,shape:r,className:n}){let i=qe[t];return(0,U.jsx)("kbd",{className:d("inline-flex items-center justify-center font-mono font-medium text-zinc-700 leading-none",lo[r],i.padding,i.font,i.minWidth,co[o],n),children:e})}var po=te.forwardRef(function({size:t="sm",variant:o="soft",shape:r="rounded",keys:n,separator:i,className:s,children:c,...l},p){let u=qe[t];if(!n||n.length===0)return(0,U.jsx)("kbd",{ref:p,className:d("inline-flex items-center justify-center font-mono font-medium text-zinc-700 leading-none",lo[r],u.padding,u.font,u.minWidth,co[o],s),...l,children:c});let g=i??(0,U.jsx)("span",{className:d("text-zinc-400 font-mono font-medium",u.font),children:"+"});return(0,U.jsx)("span",{ref:p,className:d("inline-flex items-center",u.gap,s),...l,children:n.map((v,b)=>(0,U.jsxs)(te.Fragment,{children:[(0,U.jsx)(Xr,{size:t,variant:o,shape:r,children:v}),b<n.length-1&&g]},b))})});po.displayName="Kbd";var uo=te.forwardRef(function({size:t="sm",separator:o,className:r,children:n,...i},s){let c=qe[t],l=te.Children.toArray(n).filter(Boolean),p=o??(0,U.jsx)("span",{className:d("text-zinc-400 font-mono font-medium",c.font),children:"+"});return(0,U.jsx)("span",{ref:s,className:d("inline-flex items-center",c.gap,r),...i,children:l.map((u,g)=>(0,U.jsxs)(te.Fragment,{children:[u,g<l.length-1&&p]},g))})});uo.displayName="KbdGroup";var mo=N(require("react"));var Ae=require("react/jsx-runtime"),Yr={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},fo=mo.forwardRef(function({size:t="sm",required:o=!1,disabled:r=!1,className:n,children:i,...s},c){return(0,Ae.jsxs)("label",{ref:c,className:d("font-medium text-zinc-700 leading-none",Yr[t],r?"opacity-50 cursor-not-allowed":"cursor-default",n),...s,children:[i,o&&(0,Ae.jsx)("span",{"aria-hidden":"true",className:"text-zinc-900 ms-0.5 font-semibold",children:"*"})]})});fo.displayName="Label";var go=N(require("react"));var ue=require("react/jsx-runtime"),Jr={xs:{font:"text-xs",iconSize:"size-3",gap:"gap-1"},sm:{font:"text-sm",iconSize:"size-3.5",gap:"gap-1.5"},md:{font:"text-base",iconSize:"size-4",gap:"gap-1.5"},lg:{font:"text-lg",iconSize:"size-4",gap:"gap-2"},xl:{font:"text-xl",iconSize:"size-5",gap:"gap-2"}},Qr={hover:"no-underline hover:underline underline-offset-4",always:"underline underline-offset-4",none:"no-underline"},xo=go.forwardRef(function({size:t="sm",underline:o="hover",icon:r,iconRight:n,external:i=!1,disabled:s=!1,className:c,children:l,target:p,rel:u,...g},v){let b=Jr[t],z=i?"_blank":p,w=i?u?`${u} noopener noreferrer`:"noopener noreferrer":u;return(0,ue.jsxs)("a",{ref:v,target:z,rel:w,"aria-disabled":s||void 0,tabIndex:s?-1:g.tabIndex,className:d("inline-flex items-center font-medium transition-colors","text-zinc-900 hover:text-zinc-700","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1 rounded-sm","cursor-pointer",b.font,b.gap,Qr[o],s&&"opacity-50 pointer-events-none cursor-not-allowed",c),...g,children:[r&&(0,ue.jsx)("span",{className:d("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",b.iconSize),children:r}),l,n?(0,ue.jsx)("span",{className:d("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",b.iconSize),children:n}):i?(0,ue.jsx)(At,{className:b.iconSize}):null]})});xo.displayName="Link";var fe=N(require("react"));var me=require("react/jsx-runtime"),en={xs:{box:"size-3.5",dot:"size-1.5"},sm:{box:"size-4",dot:"size-2"},md:{box:"size-5",dot:"size-2.5"},lg:{box:"size-6",dot:"size-3"},xl:{box:"size-7",dot:"size-3.5"}},Le=fe.forwardRef(function({size:t="md",checked:o,defaultChecked:r,onCheckedChange:n,onChange:i,disabled:s=!1,className:c,id:l,...p},u){let g=fe.useId(),v=l??g,b=o!==void 0,[z,w]=fe.useState(!!r),S=b?o:z,y=en[t],k=I=>{b||w(I.target.checked),i?.(I),n?.(I.target.checked)};return(0,me.jsxs)("span",{className:d("relative inline-flex shrink-0 items-center justify-center",s&&"opacity-50 cursor-not-allowed",c),children:[(0,me.jsx)("input",{ref:u,id:v,type:"radio","data-slot":"radio",checked:S,onChange:k,disabled:s,className:"peer sr-only",...p}),(0,me.jsx)("span",{"aria-hidden":"true",className:d("inline-flex items-center justify-center rounded-full transition-colors border",s?"cursor-not-allowed":"cursor-pointer",S?"bg-white border-zinc-900":"bg-white border-zinc-300 peer-hover:border-zinc-400","peer-focus-visible:ring-2 peer-focus-visible:ring-zinc-900 peer-focus-visible:ring-offset-1","peer-aria-invalid:border-zinc-900 peer-aria-invalid:ring-2 peer-aria-invalid:ring-zinc-200",y.box),children:S&&(0,me.jsx)("span",{className:d("rounded-full bg-zinc-900",y.dot)})})]})});Le.displayName="Radio";var M=N(require("react"));var D=require("react/jsx-runtime"),bo=M.createContext(null),ho=M.forwardRef(function({value:t,defaultValue:o,onValueChange:r,orientation:n="vertical",size:i="md",disabled:s=!1,name:c,invalid:l,legend:p,description:u,className:g,children:v,...b},z){let w=M.useId(),S=c??w,y=t!==void 0,[k,I]=M.useState(o??null),E=y?t:k,G=M.useCallback(C=>{y||I(C),r?.(C)},[y,r]),V=M.useMemo(()=>({value:E??null,setValue:G,size:i,disabled:s,name:S,invalid:l}),[E,G,i,s,S,l]);return(0,D.jsx)(bo.Provider,{value:V,children:(0,D.jsxs)("fieldset",{ref:z,"data-slot":"radio-group","data-orientation":n,role:"radiogroup","aria-invalid":l||void 0,disabled:s,className:d("flex flex-col gap-2 min-w-0",g),...b,children:[p&&(0,D.jsx)("legend",{className:"text-sm font-medium text-zinc-700 mb-1",children:p}),u&&(0,D.jsx)("p",{className:"text-xs text-zinc-500 -mt-1 mb-1",children:u}),(0,D.jsx)("div",{className:d("flex",n==="vertical"?"flex-col gap-2":"flex-row gap-4 flex-wrap"),children:v})]})})});ho.displayName="RadioGroup";var vo=M.forwardRef(function({value:t,label:o,description:r,disabled:n,className:i,...s},c){let l=M.useContext(bo);if(!l)throw new Error("RadioGroupItem must be rendered inside <RadioGroup>.");let p=M.useId(),u=l.value===t,g=l.disabled||!!n;return(0,D.jsxs)("label",{ref:c,htmlFor:p,className:d("inline-flex items-start gap-2.5 select-none",g?"cursor-not-allowed opacity-50":"cursor-pointer",i),...s,children:[(0,D.jsx)(Le,{id:p,value:t,name:l.name,size:l.size,disabled:g,checked:u,onChange:()=>l.setValue(t),"aria-invalid":l.invalid||void 0,className:"mt-0.5"}),(o||r)&&(0,D.jsxs)("div",{className:"flex flex-col gap-0.5 min-w-0",children:[o&&(0,D.jsx)("span",{className:"text-sm font-medium text-zinc-700",children:o}),r&&(0,D.jsx)("span",{className:"text-xs text-zinc-500",children:r})]})]})});vo.displayName="RadioGroupItem";var zo=N(require("react"));var oe=require("react/jsx-runtime"),Me={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"},yo=zo.forwardRef(function({orientation:t="horizontal",variant:o="solid",label:r,decorative:n,className:i,...s},c){let l=n?{role:"none"}:{role:"separator","aria-orientation":t};return t==="vertical"?(0,oe.jsx)("div",{ref:c,...l,className:d("self-stretch w-px border-l border-zinc-200",Me[o],i),...s}):r?(0,oe.jsxs)("div",{ref:c,...l,className:d("flex items-center gap-3",i),...s,children:[(0,oe.jsx)("div",{"aria-hidden":"true",className:d("flex-1 border-t border-zinc-200",Me[o])}),(0,oe.jsx)("span",{className:"text-xs text-zinc-500 font-medium shrink-0",children:r}),(0,oe.jsx)("div",{"aria-hidden":"true",className:d("flex-1 border-t border-zinc-200",Me[o])})]}):(0,oe.jsx)("div",{ref:c,...l,className:d("w-full border-t border-zinc-200",Me[o],i),...s})});yo.displayName="Separator";var Pe=N(require("react"));var Ro="eglador-skeleton-styles",tn=`
|
|
3
|
+
@keyframes eglador-skeleton-wave {
|
|
4
|
+
0% { background-position: 200% 0; }
|
|
5
|
+
100% { background-position: -200% 0; }
|
|
6
|
+
}
|
|
7
|
+
.eglador-skeleton-wave {
|
|
8
|
+
background-color: var(--color-zinc-200, #e4e4e7);
|
|
9
|
+
background-image: linear-gradient(
|
|
10
|
+
90deg,
|
|
11
|
+
var(--color-zinc-200, #e4e4e7) 25%,
|
|
12
|
+
var(--color-zinc-100, #f4f4f5) 50%,
|
|
13
|
+
var(--color-zinc-200, #e4e4e7) 75%
|
|
14
|
+
);
|
|
15
|
+
background-size: 200% 100%;
|
|
16
|
+
animation: eglador-skeleton-wave 1.5s ease-in-out infinite;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-reduced-motion: reduce) {
|
|
20
|
+
.eglador-skeleton-wave {
|
|
21
|
+
animation: none !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;function Ee(){if(typeof document>"u"||document.getElementById(Ro))return;let e=document.createElement("style");e.id=Ro,e.textContent=tn,document.head.appendChild(e)}var Ge=require("react/jsx-runtime"),on={text:"rounded-sm",circular:"rounded-full",rectangular:"",rounded:"rounded-sm"};function ko(e){if(e!=null)return typeof e=="number"?`${e}px`:e}var wo=Pe.forwardRef(function({variant:t="text",animation:o="pulse",width:r,height:n,lines:i,lineGap:s="0.75rem",className:c,style:l,...p},u){Pe.useEffect(()=>{o==="wave"&&Ee()},[o]);let g=ko(r),v=ko(n),b=g,z=v;z||(t==="text"?z="1em":t==="circular"?z=b??"2.5rem":z="8rem"),t==="circular"&&!b&&(b=z),!b&&t!=="circular"&&(b="100%");let w=d(o==="wave"?"eglador-skeleton-wave":"bg-zinc-200",on[t],o==="pulse"&&"animate-pulse",c);return i&&i>1?(0,Ge.jsx)("div",{ref:u,className:"flex flex-col",style:{gap:s,...l},...p,children:Array.from({length:i},(S,y)=>{let k=y===i-1;return(0,Ge.jsx)("div",{className:w,style:{width:k?"60%":b,height:z}},y)})}):(0,Ge.jsx)("div",{ref:u,className:w,style:{width:b,height:z,...l},...p})});wo.displayName="Skeleton";var So=N(require("react"));var re=require("react/jsx-runtime"),rn={xs:{spinner:"size-4",labelFont:"text-xs",gap:"gap-1.5"},sm:{spinner:"size-5",labelFont:"text-sm",gap:"gap-2"},md:{spinner:"size-8",labelFont:"text-sm",gap:"gap-2.5"},lg:{spinner:"size-12",labelFont:"text-base",gap:"gap-3"},xl:{spinner:"size-16",labelFont:"text-lg",gap:"gap-3.5"}},Io=So.forwardRef(function({size:t="sm",label:o,className:r,...n},i){let s=rn[t];return(0,re.jsxs)("div",{ref:i,role:"status",className:d("inline-flex flex-col items-center",s.gap,r),...n,children:[(0,re.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:d("animate-spin",s.spinner),children:[(0,re.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",className:"text-zinc-200"}),(0,re.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",className:"text-zinc-600"})]}),o?(0,re.jsx)("span",{className:d("font-medium text-zinc-500",s.labelFont),children:o}):(0,re.jsx)("span",{className:"sr-only",children:"Loading\u2026"})]})});Io.displayName="Spinner";var xe=N(require("react"));var ge=require("react/jsx-runtime"),nn={xs:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},sm:{track:"w-10 h-5",thumb:"size-4",translate:"translate-x-5"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"},xl:{track:"w-16 h-8",thumb:"size-7",translate:"translate-x-8"}},To=xe.forwardRef(function({size:t="md",checked:o,defaultChecked:r=!1,onCheckedChange:n,onChange:i,disabled:s=!1,className:c,id:l,...p},u){let g=xe.useId(),v=l??g,b=o!==void 0,[z,w]=xe.useState(r),S=b?o:z,y=nn[t],k=I=>{b||w(I.target.checked),i?.(I),n?.(I.target.checked)};return(0,ge.jsxs)("span",{className:d("relative inline-flex shrink-0 items-center",s&&"opacity-50 cursor-not-allowed",c),children:[(0,ge.jsx)("input",{ref:u,id:v,type:"checkbox",role:"switch","data-slot":"switch",checked:S,onChange:k,disabled:s,className:"peer sr-only",...p}),(0,ge.jsx)("span",{"aria-hidden":"true",className:d("relative inline-block rounded-full transition-colors","bg-zinc-200 peer-checked:bg-zinc-900","peer-focus-visible:ring-2 peer-focus-visible:ring-zinc-900 peer-focus-visible:ring-offset-1","peer-aria-invalid:ring-2 peer-aria-invalid:ring-zinc-200",s?"cursor-not-allowed":"cursor-pointer",y.track),children:(0,ge.jsx)("span",{className:d("absolute top-1/2 -translate-y-1/2 left-0.5 rounded-full bg-white shadow-sm transition-transform",y.thumb,S&&y.translate)})})]})});To.displayName="Switch";var No=N(require("react"));var Lo=require("react/jsx-runtime"),sn={h1:{tag:"h1",style:"text-4xl font-bold tracking-tight"},h2:{tag:"h2",style:"text-3xl font-bold tracking-tight"},h3:{tag:"h3",style:"text-2xl font-semibold tracking-tight"},h4:{tag:"h4",style:"text-xl font-semibold tracking-tight"},p:{tag:"p",style:"text-base leading-relaxed"},lead:{tag:"p",style:"text-xl leading-relaxed"},large:{tag:"p",style:"text-lg font-medium"},small:{tag:"p",style:"text-sm"},muted:{tag:"p",style:"text-sm text-zinc-500"},blockquote:{tag:"blockquote",style:"border-s-4 border-zinc-300 ps-4 italic"},list:{tag:"ul",style:"list-disc ms-6 [&>li]:mt-1.5 [&>li]:leading-relaxed"},code:{tag:"code",style:"bg-zinc-100 px-1.5 py-0.5 rounded-sm text-sm font-mono"},kbd:{tag:"kbd",style:"bg-zinc-100 border border-zinc-300 px-1.5 py-0.5 rounded-sm text-xs font-mono"}},Co={default:"text-zinc-900",muted:"text-zinc-500"},an={left:"text-left",center:"text-center",right:"text-right"},ln={thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold",black:"font-black"},Ao=No.forwardRef(function({variant:t="p",color:o,align:r,weight:n,truncate:i=!1,lines:s,as:c,className:l,children:p,style:u,...g},v){let b=sn[t],z=c||b.tag,w=o?Co[o]:t==="muted"?"":Co.default,S=s&&s>0?{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s,overflow:"hidden"}:void 0;return(0,Lo.jsx)(z,{ref:v,className:d(b.style,w,r&&an[r],n&&ln[n],i&&!s&&"truncate",l),style:S?{...S,...u}:u,...g,children:p})});Ao.displayName="Typography";0&&(module.exports={AspectRatio,Avatar,AvatarGroup,Badge,Button,ButtonGroup,ButtonGroupSeparator,ButtonGroupText,Checkbox,CheckboxGroup,CheckboxGroupItem,Empty,Input,InputGroup,InputGroupAddon,InputGroupButton,InputGroupInput,InputGroupText,InputGroupTextarea,Kbd,KbdGroup,Label,Link,Radio,RadioGroup,RadioGroupItem,Separator,Skeleton,Spinner,Switch,Textarea,Typography,buttonVariants,ensureSkeletonStyles});
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import*as kt from"react";function et(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(o=et(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function tt(){for(var e,t,o=0,r="",s=arguments.length;o<s;o++)(e=arguments[o])&&(t=et(e))&&(r&&(r+=" "),r+=t);return r}var no=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},so=(e,t)=>({classGroupId:e,validator:t}),at=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o});var ot=[],io="arbitrary..",ao=e=>{let t=co(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{if(n.startsWith("[")&&n.endsWith("]"))return lo(n);let l=n.split("-"),a=l[0]===""&&l.length>1?1:0;return lt(l,a,t)},getConflictingClassGroupIds:(n,l)=>{if(l){let a=r[n],d=o[n];return a?d?no(d,a):a:d||ot}return o[n]||ot}}},lt=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let s=e[t],i=o.nextPart.get(s);if(i){let d=lt(e,t+1,i);if(d)return d}let n=o.validators;if(n===null)return;let l=t===0?e.join("-"):e.slice(t).join("-"),a=n.length;for(let d=0;d<a;d++){let p=n[d];if(p.validator(l))return p.classGroupId}},lo=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?io+r:void 0})(),co=e=>{let{theme:t,classGroups:o}=e;return po(o,t)},po=(e,t)=>{let o=at();for(let r in e){let s=e[r];Me(s,o,r,t)}return o},Me=(e,t,o,r)=>{let s=e.length;for(let i=0;i<s;i++){let n=e[i];uo(n,t,o,r)}},uo=(e,t,o,r)=>{if(typeof e=="string"){mo(e,t,o);return}if(typeof e=="function"){fo(e,t,o,r);return}go(e,t,o,r)},mo=(e,t,o)=>{let r=e===""?t:ct(t,e);r.classGroupId=o},fo=(e,t,o,r)=>{if(xo(e)){Me(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(so(o,e))},go=(e,t,o,r)=>{let s=Object.entries(e),i=s.length;for(let n=0;n<i;n++){let[l,a]=s[n];Me(a,ct(t,l),o,r)}},ct=(e,t)=>{let o=e,r=t.split("-"),s=r.length;for(let i=0;i<s;i++){let n=r[i],l=o.nextPart.get(n);l||(l=at(),o.nextPart.set(n,l)),o=l}return o},xo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),s=(i,n)=>{o[i]=n,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(i){let n=o[i];if(n!==void 0)return n;if((n=r[i])!==void 0)return s(i,n),n},set(i,n){i in o?o[i]=n:s(i,n)}}};var ho=[],rt=(e,t,o,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:s}),vo=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=s=>{let i=[],n=0,l=0,a=0,d,p=s.length;for(let w=0;w<p;w++){let S=s[w];if(n===0&&l===0){if(S===":"){i.push(s.slice(a,w)),a=w+1;continue}if(S==="/"){d=w;continue}}S==="["?n++:S==="]"?n--:S==="("?l++:S===")"&&l--}let f=i.length===0?s:s.slice(a),v=f,b=!1;f.endsWith("!")?(v=f.slice(0,-1),b=!0):f.startsWith("!")&&(v=f.slice(1),b=!0);let z=d&&d>a?d-a:void 0;return rt(i,b,v,z)};if(t){let s=t+":",i=r;r=n=>n.startsWith(s)?i(n.slice(s.length)):rt(ho,!1,n,void 0,!0)}if(o){let s=r;r=i=>o({className:i,parseClassName:s})}return r},zo=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],s=[];for(let i=0;i<o.length;i++){let n=o[i],l=n[0]==="[",a=t.has(n);l||a?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(n)):s.push(n)}return s.length>0&&(s.sort(),r.push(...s)),r}},yo=e=>({cache:bo(e.cacheSize),parseClassName:vo(e),sortModifiers:zo(e),postfixLookupClassGroupIds:Ro(e),...ao(e)}),Ro=e=>{let t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let r=0;r<o.length;r++)t[o[r]]=!0;return t},ko=/\s+/,wo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i,postfixLookupClassGroupIds:n}=t,l=[],a=e.trim().split(ko),d="";for(let p=a.length-1;p>=0;p-=1){let f=a[p],{isExternal:v,modifiers:b,hasImportantModifier:z,baseClassName:w,maybePostfixModifierPosition:S}=o(f);if(v){d=f+(d.length>0?" "+d:d);continue}let y=!!S,k;if(y){let C=w.substring(0,S);k=r(C);let x=k&&n[k]?r(w):void 0;x&&x!==k&&(k=x,y=!1)}else k=r(w);if(!k){if(!y){d=f+(d.length>0?" "+d:d);continue}if(k=r(w),!k){d=f+(d.length>0?" "+d:d);continue}y=!1}let I=b.length===0?"":b.length===1?b[0]:i(b).join(":"),G=z?I+"!":I,P=G+k;if(l.indexOf(P)>-1)continue;l.push(P);let O=s(k,y);for(let C=0;C<O.length;++C){let x=O[C];l.push(G+x)}d=f+(d.length>0?" "+d:d)}return d},So=(...e)=>{let t=0,o,r,s="";for(;t<e.length;)(o=e[t++])&&(r=dt(o))&&(s&&(s+=" "),s+=r);return s},dt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=dt(e[r]))&&(o&&(o+=" "),o+=t);return o},Io=(e,...t)=>{let o,r,s,i,n=a=>{let d=t.reduce((p,f)=>f(p),e());return o=yo(d),r=o.cache.get,s=o.cache.set,i=l,l(a)},l=a=>{let d=r(a);if(d)return d;let p=wo(a,o);return s(a,p),p};return i=n,(...a)=>i(So(...a))},To=[],N=e=>{let t=o=>o[e]||To;return t.isThemeGetter=!0,t},pt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ut=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Co=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,No=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ao=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>Co.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),Le=e=>e.endsWith("%")&&R(e.slice(0,-1)),K=e=>No.test(e),mt=()=>!0,Go=e=>Ao.test(e)&&!Lo.test(e),Ee=()=>!1,Po=e=>Mo.test(e),Ho=e=>Eo.test(e),Bo=e=>!u(e)&&!m(e),Vo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Oo=e=>Z(e,xt,Ee),u=e=>pt.test(e),J=e=>Z(e,bt,Go),nt=e=>Z(e,jo,R),Fo=e=>Z(e,vt,mt),Wo=e=>Z(e,ht,Ee),st=e=>Z(e,ft,Ee),_o=e=>Z(e,gt,Ho),he=e=>Z(e,zt,Po),m=e=>ut.test(e),de=e=>Q(e,bt),Do=e=>Q(e,ht),it=e=>Q(e,ft),qo=e=>Q(e,xt),Ko=e=>Q(e,gt),ve=e=>Q(e,zt,!0),Uo=e=>Q(e,vt,!0),Z=(e,t,o)=>{let r=pt.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},Q=(e,t,o=!1)=>{let r=ut.exec(e);return r?r[1]?t(r[1]):o:!1},ft=e=>e==="position"||e==="percentage",gt=e=>e==="image"||e==="url",xt=e=>e==="length"||e==="size"||e==="bg-size",bt=e=>e==="length",jo=e=>e==="number",ht=e=>e==="family-name",vt=e=>e==="number"||e==="weight",zt=e=>e==="shadow";var Zo=()=>{let e=N("color"),t=N("font"),o=N("text"),r=N("font-weight"),s=N("tracking"),i=N("leading"),n=N("breakpoint"),l=N("container"),a=N("spacing"),d=N("radius"),p=N("shadow"),f=N("inset-shadow"),v=N("text-shadow"),b=N("drop-shadow"),z=N("blur"),w=N("perspective"),S=N("aspect"),y=N("ease"),k=N("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...G(),m,u],O=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],x=()=>[m,u,a],F=()=>[j,"full","auto",...x()],Ue=()=>[q,"none","subgrid",m,u],je=()=>["auto",{span:["full",q,m,u]},q,m,u],me=()=>[q,"auto",m,u],Ze=()=>["auto","min","max","fr",m,u],Ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...x()],Y=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],Te=()=>[j,"screen","full","dvw","lvw","svw","min","max","fit",...x()],Ce=()=>[j,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],h=()=>[e,m,u],$e=()=>[...G(),it,st,{position:[m,u]}],Xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ye=()=>["auto","cover","contain",qo,Oo,{size:[m,u]}],Ne=()=>[Le,de,J],H=()=>["","none","full",d,m,u],B=()=>["",R,de,J],fe=()=>["solid","dashed","dotted","double"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[R,Le,it,st],Qe=()=>["","none",z,m,u],ge=()=>["none",R,m,u],xe=()=>["none",R,m,u],Ae=()=>[R,m,u],be=()=>[j,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[K],breakpoint:[K],color:[mt],container:[K],"drop-shadow":[K],ease:["in","out","in-out"],font:[Bo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[K],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[K],shadow:[K],spacing:["px",R],text:[K],"text-shadow":[K],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,u,m,S]}],container:["container"],"container-type":[{"@container":["","normal","size",m,u]}],"container-named":[Vo],columns:[{columns:[R,u,m,l]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",m,u]}],basis:[{basis:[j,"full","auto",l,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,j,"auto","initial","none",u]}],grow:[{grow:["",R,m,u]}],shrink:[{shrink:["",R,m,u]}],order:[{order:[q,"first","last","none",m,u]}],"grid-cols":[{"grid-cols":Ue()}],"col-start-end":[{col:je()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":Ue()}],"row-start-end":[{row:je()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ze()}],"auto-rows":[{"auto-rows":Ze()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...Ie(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...Ie()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ie()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...Te()]}],"min-inline-size":[{"min-inline":["auto",...Te()]}],"max-inline-size":[{"max-inline":["none",...Te()]}],"block-size":[{block:["auto",...Ce()]}],"min-block-size":[{"min-block":["auto",...Ce()]}],"max-block-size":[{"max-block":["none",...Ce()]}],w:[{w:[l,"screen",...Y()]}],"min-w":[{"min-w":[l,"screen","none",...Y()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[n]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",o,de,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Uo,Fo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Le,u]}],"font-family":[{font:[Do,Wo,t]}],"font-features":[{"font-features":[u]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,m,u]}],"line-clamp":[{"line-clamp":[R,"none",m,nt]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",m,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",m,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",m,J]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[R,"auto",m,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[q,m,u]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m,u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$e()}],"bg-repeat":[{bg:Xe()}],"bg-size":[{bg:Ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,m,u],radial:["",m,u],conic:[q,m,u]},Ko,_o]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:Ne()}],"gradient-via-pos":[{via:Ne()}],"gradient-to-pos":[{to:Ne()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,m,u]}],"outline-w":[{outline:["",R,de,J]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",p,ve,he]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",f,ve,he]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[R,J]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",v,ve,he]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[R,m,u]}],"mix-blend":[{"mix-blend":[...Je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[m,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$e()}],"mask-repeat":[{mask:Xe()}],"mask-size":[{mask:Ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",m,u]}],filter:[{filter:["","none",m,u]}],blur:[{blur:Qe()}],brightness:[{brightness:[R,m,u]}],contrast:[{contrast:[R,m,u]}],"drop-shadow":[{"drop-shadow":["","none",b,ve,he]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",R,m,u]}],"hue-rotate":[{"hue-rotate":[R,m,u]}],invert:[{invert:["",R,m,u]}],saturate:[{saturate:[R,m,u]}],sepia:[{sepia:["",R,m,u]}],"backdrop-filter":[{"backdrop-filter":["","none",m,u]}],"backdrop-blur":[{"backdrop-blur":Qe()}],"backdrop-brightness":[{"backdrop-brightness":[R,m,u]}],"backdrop-contrast":[{"backdrop-contrast":[R,m,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,m,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,m,u]}],"backdrop-invert":[{"backdrop-invert":["",R,m,u]}],"backdrop-opacity":[{"backdrop-opacity":[R,m,u]}],"backdrop-saturate":[{"backdrop-saturate":[R,m,u]}],"backdrop-sepia":[{"backdrop-sepia":["",R,m,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",m,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",m,u]}],ease:[{ease:["linear","initial",y,m,u]}],delay:[{delay:[R,m,u]}],animate:[{animate:["none",k,m,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,m,u]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[m,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:be()}],"translate-x":[{"translate-x":be()}],"translate-y":[{"translate-y":be()}],"translate-z":[{"translate-z":be()}],"translate-none":["translate-none"],zoom:[{zoom:[q,m,u]}],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m,u]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":h()}],"scrollbar-track-color":[{"scrollbar-track":h()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m,u]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[R,de,J,nt]}],stroke:[{stroke:["none",...h()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var yt=Io(Zo);function c(...e){return yt(tt(e))}import{jsx as Xo}from"react/jsx-runtime";var Rt={"1:1":"aspect-square","16:9":"aspect-video","4:3":"aspect-[4/3]","21:9":"aspect-[21/9]","3:2":"aspect-[3/2]","2:3":"aspect-[2/3]","9:16":"aspect-[9/16]"},$o=kt.forwardRef(function({ratio:t="16:9",className:o,style:r,children:s,...i},n){let l=typeof t=="string"&&t in Rt;return Xo("div",{ref:n,className:c("relative overflow-hidden",l&&Rt[t],o),style:!l&&typeof t=="number"?{aspectRatio:t,...r}:r,...i,children:s})});$o.displayName="AspectRatio";import*as W from"react";import*as wt from"react";import{Fragment as L,jsx as g,jsxs as M}from"react/jsx-runtime";function T(e,t,o,r="none"){let s=wt.memo(({className:i,strokeWidth:n=t})=>g("svg",{className:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:r,stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:o}));return s.displayName=e,s}var Rn=T("ChevronDownIcon",2,g("path",{d:"m6 9 6 6 6-6"})),kn=T("ChevronUpIcon",2,g("path",{d:"m18 15-6-6-6 6"})),wn=T("ChevronLeftIcon",2,g("path",{d:"m15 18-6-6 6-6"})),Sn=T("ChevronRightIcon",2,g("path",{d:"m9 18 6-6-6-6"})),In=T("ChevronsLeftIcon",2,M(L,{children:[g("path",{d:"m11 17-5-5 5-5"}),g("path",{d:"m18 17-5-5 5-5"})]})),Tn=T("ChevronsRightIcon",2,M(L,{children:[g("path",{d:"m6 17 5-5-5-5"}),g("path",{d:"m13 17 5-5-5-5"})]})),Cn=T("ChevronsUpDownIcon",2,M(L,{children:[g("path",{d:"m7 15 5 5 5-5"}),g("path",{d:"m7 9 5-5 5 5"})]})),St=T("XIcon",2,M(L,{children:[g("path",{d:"M18 6 6 18"}),g("path",{d:"m6 6 12 12"})]})),It=T("CheckIcon",2.5,g("path",{d:"M20 6 9 17l-5-5"})),Tt=T("MinusIcon",2.5,g("path",{d:"M5 12h14"})),Nn=T("PlusIcon",2,M(L,{children:[g("path",{d:"M5 12h14"}),g("path",{d:"M12 5v14"})]})),An=T("SearchIcon",2,M(L,{children:[g("circle",{cx:"11",cy:"11",r:"8"}),g("path",{d:"m21 21-4.3-4.3"})]})),Ct=T("ExternalLinkIcon",2,M(L,{children:[g("path",{d:"M15 3h6v6"}),g("path",{d:"M10 14 21 3"}),g("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})),Ln=T("EllipsisIcon",2,M(L,{children:[g("circle",{cx:"12",cy:"12",r:"1"}),g("circle",{cx:"19",cy:"12",r:"1"}),g("circle",{cx:"5",cy:"12",r:"1"})]}),"currentColor"),Mn=T("DotIcon",2,g("circle",{cx:"12",cy:"12",r:"5"}),"currentColor"),En=T("GripVerticalIcon",2,M(L,{children:[g("circle",{cx:"9",cy:"5",r:"1"}),g("circle",{cx:"9",cy:"12",r:"1"}),g("circle",{cx:"9",cy:"19",r:"1"}),g("circle",{cx:"15",cy:"5",r:"1"}),g("circle",{cx:"15",cy:"12",r:"1"}),g("circle",{cx:"15",cy:"19",r:"1"})]}),"currentColor"),Gn=T("GripHorizontalIcon",2,M(L,{children:[g("circle",{cx:"5",cy:"9",r:"1"}),g("circle",{cx:"12",cy:"9",r:"1"}),g("circle",{cx:"19",cy:"9",r:"1"}),g("circle",{cx:"5",cy:"15",r:"1"}),g("circle",{cx:"12",cy:"15",r:"1"}),g("circle",{cx:"19",cy:"15",r:"1"})]}),"currentColor"),Nt=T("InboxIcon",1,M(L,{children:[g("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),g("path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"})]})),Pn=T("InfoIcon",2,M(L,{children:[g("circle",{cx:"12",cy:"12",r:"10"}),g("path",{d:"M12 16v-4"}),g("path",{d:"M12 8h.01"})]})),Hn=T("WarningIcon",2,M(L,{children:[g("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),g("path",{d:"M12 9v4"}),g("path",{d:"M12 17h.01"})]})),Bn=T("ErrorIcon",2,M(L,{children:[g("circle",{cx:"12",cy:"12",r:"10"}),g("path",{d:"m15 9-6 6"}),g("path",{d:"m9 9 6 6"})]})),Vn=T("SuccessIcon",2,M(L,{children:[g("circle",{cx:"12",cy:"12",r:"10"}),g("path",{d:"m9 12 2 2 4-4"})]})),On=T("CalendarIcon",2,M(L,{children:[g("path",{d:"M8 2v4"}),g("path",{d:"M16 2v4"}),g("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),g("path",{d:"M3 10h18"})]})),At=T("UserIcon",2,M(L,{children:[g("circle",{cx:"12",cy:"8",r:"5"}),g("path",{d:"M20 21a8 8 0 0 0-16 0"})]}));import{jsx as ee,jsxs as Lt}from"react/jsx-runtime";var Mt={xs:{container:"size-6",font:"text-[10px]",iconSize:"size-3"},sm:{container:"size-8",font:"text-xs",iconSize:"size-3.5"},md:{container:"size-10",font:"text-sm",iconSize:"size-4"},lg:{container:"size-12",font:"text-base",iconSize:"size-5"},xl:{container:"size-16",font:"text-lg",iconSize:"size-6"}},Yo={circle:"rounded-full",rounded:"rounded-sm",square:""};function Jo(e){let t=e.trim().split(/\s+/);return t.length>=2?(t[0][0]+t[t.length-1][0]).toUpperCase():e.slice(0,2).toUpperCase()}var Qo=W.forwardRef(function({src:t,alt:o,name:r,size:s="md",shape:i="circle",icon:n,className:l,...a},d){let[p,f]=W.useState(!1),v=Mt[s],b=t&&!p,z=r?Jo(r):null;return W.useEffect(()=>{f(!1)},[t]),ee("div",{ref:d,className:c("relative inline-flex shrink-0",l),...a,children:ee("div",{className:c("flex items-center justify-center overflow-hidden font-semibold",v.container,Yo[i],!b&&"bg-zinc-200 text-zinc-600"),children:b?ee("img",{src:t,alt:o||r||"Avatar",className:"w-full h-full object-cover",onError:()=>f(!0)}):n?ee("span",{className:c("flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",v.iconSize),children:n}):z?ee("span",{className:v.font,children:z}):ee(At,{className:v.iconSize})})})});Qo.displayName="Avatar";var er=W.forwardRef(function({max:t,size:o="md",className:r,children:s,...i},n){let l=W.Children.toArray(s).filter(W.isValidElement),a=t?l.slice(0,t):l,d=t?l.length-t:0,p=Mt[o];return Lt("div",{ref:n,className:c("flex -space-x-2",r),...i,children:[a.map((f,v)=>ee("div",{className:"ring-2 ring-white rounded-full",children:W.cloneElement(f,{size:o})},v)),d>0&&Lt("div",{className:c("flex items-center justify-center rounded-full ring-2 ring-white bg-zinc-200 text-zinc-600 font-semibold",p.container,p.font),children:["+",d]})]})});er.displayName="AvatarGroup";import*as Et from"react";import{jsx as ze,jsxs as sr}from"react/jsx-runtime";var tr={xs:{padding:"px-1.5 py-0.5",font:"text-[10px]",iconSize:"size-2.5",gap:"gap-0.5"},sm:{padding:"px-2 py-0.5",font:"text-xs",iconSize:"size-3",gap:"gap-1"},md:{padding:"px-2.5 py-1",font:"text-sm",iconSize:"size-3.5",gap:"gap-1"},lg:{padding:"px-3 py-1.5",font:"text-base",iconSize:"size-4",gap:"gap-1.5"},xl:{padding:"px-4 py-2",font:"text-lg",iconSize:"size-5",gap:"gap-2"}},or={square:"",rounded:"rounded-sm",pill:"rounded-full"},rr={solid:{base:"bg-zinc-900 text-white border border-zinc-900",removeHover:"hover:bg-zinc-700"},soft:{base:"bg-zinc-100 text-zinc-700 border border-zinc-200",removeHover:"hover:bg-zinc-200 hover:text-zinc-900"},outline:{base:"bg-transparent text-zinc-700 border border-zinc-300",removeHover:"hover:bg-zinc-100 hover:text-zinc-900"}},nr=Et.forwardRef(function({variant:t="soft",size:o="sm",shape:r="rounded",icon:s,iconRight:i,removable:n=!1,onRemove:l,className:a,children:d,...p},f){let v=tr[o],b=rr[t];return sr("span",{ref:f,className:c("inline-flex items-center font-medium whitespace-nowrap",v.padding,v.font,v.gap,or[r],b.base,a),...p,children:[s&&ze("span",{className:c("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",v.iconSize),children:s}),d,i&&!n&&ze("span",{className:c("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",v.iconSize),children:i}),n&&ze("button",{type:"button","aria-label":"Remove",onClick:l,className:c("shrink-0 flex items-center justify-center rounded-full transition-colors cursor-pointer -mr-0.5",v.iconSize,b.removeHover),children:ze(St,{className:"size-full",strokeWidth:2.5})})]})});nr.displayName="Badge";import*as Gt from"react";import{jsx as pe,jsxs as Ot}from"react/jsx-runtime";var Pt={xs:{height:"h-7",square:"w-7",padding:"px-2",gap:"gap-1",font:"text-xs",iconSize:"size-3"},sm:{height:"h-8",square:"w-8",padding:"px-2.5",gap:"gap-1.5",font:"text-sm",iconSize:"size-3.5"},md:{height:"h-9",square:"w-9",padding:"px-3",gap:"gap-1.5",font:"text-sm",iconSize:"size-4"},lg:{height:"h-10",square:"w-10",padding:"px-4",gap:"gap-2",font:"text-base",iconSize:"size-4"},xl:{height:"h-12",square:"w-12",padding:"px-5",gap:"gap-2",font:"text-lg",iconSize:"size-5"}},Ht={square:"",rounded:"rounded-sm",circle:"rounded-full"},Bt={solid:{base:"bg-zinc-900 text-white hover:bg-zinc-700 border border-zinc-900",active:"bg-zinc-700"},soft:{base:"bg-zinc-100 text-zinc-900 hover:bg-zinc-200 border border-zinc-200",active:"bg-zinc-200"},outline:{base:"bg-white text-zinc-700 hover:bg-zinc-50 border border-zinc-300",active:"bg-zinc-100"},ghost:{base:"bg-transparent text-zinc-700 hover:bg-zinc-100 border border-transparent",active:"bg-zinc-100"},link:{base:"bg-transparent text-zinc-900 hover:underline underline-offset-4 border-0",active:"underline"}},Vt="inline-flex items-center justify-center font-medium transition-colors cursor-pointer select-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1 disabled:opacity-50 disabled:pointer-events-none";function Yn({variant:e="solid",size:t="md",shape:o="rounded"}={}){let r=Pt[t],s=Bt[e],i=e==="link";return c(Vt,r.font,r.gap,!i&&Ht[o],!i&&r.height,!i&&r.padding,s.base)}function ir({className:e}){return Ot("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:c("animate-spin",e),children:[pe("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",className:"opacity-25"}),pe("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})}var ar=Gt.forwardRef(function({variant:t="solid",size:o="md",shape:r="rounded",icon:s,iconRight:i,loading:n=!1,active:l=!1,disabled:a=!1,className:d,children:p,type:f="button",...v},b){let z=Pt[o],w=Bt[t],S=t==="link",y=!S&&!p&&(!!s||n);return Ot("button",{ref:b,type:f,disabled:a||n,"data-active":l||void 0,className:c(Vt,z.font,z.gap,!S&&Ht[r],!S&&z.height,!S&&(y?z.square:z.padding),w.base,l&&w.active,d),...v,children:[n?pe(ir,{className:z.iconSize}):s?pe("span",{className:c("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",z.iconSize),children:s}):null,p,i&&!n&&pe("span",{className:c("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",z.iconSize),children:i})]})});ar.displayName="Button";import*as $ from"react";import{jsx as ye}from"react/jsx-runtime";var Ft=$.createContext("horizontal"),lr="[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child:not(:last-child)]:rounded-e-none [&>*:last-child:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:-ms-px [&>*:focus-visible]:z-10 [&>*:focus-visible]:relative",cr="[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child:not(:last-child)]:rounded-b-none [&>*:last-child:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:focus-visible]:z-10 [&>*:focus-visible]:relative",dr=$.forwardRef(function({orientation:t="horizontal",className:o,children:r,...s},i){return ye(Ft.Provider,{value:t,children:ye("div",{ref:i,role:"group","data-orientation":t,className:c("inline-flex isolate",t==="horizontal"?"flex-row":"flex-col",t==="horizontal"?lr:cr,o),...s,children:r})})});dr.displayName="ButtonGroup";var pr=$.forwardRef(function({orientation:t,className:o,...r},s){let i=$.useContext(Ft),n=t??(i==="horizontal"?"vertical":"horizontal");return ye("div",{ref:s,role:"separator","aria-orientation":n,"data-orientation":n,className:c("bg-zinc-300 shrink-0 self-stretch z-[1] relative",n==="vertical"?"w-px":"h-px",o),...r})});pr.displayName="ButtonGroupSeparator";var ur={xs:{height:"h-7",padding:"px-2",font:"text-xs"},sm:{height:"h-8",padding:"px-2.5",font:"text-sm"},md:{height:"h-9",padding:"px-3",font:"text-sm"},lg:{height:"h-10",padding:"px-4",font:"text-base"},xl:{height:"h-12",padding:"px-5",font:"text-lg"}},mr=$.forwardRef(function({size:t="md",className:o,...r},s){let i=ur[t];return ye("div",{ref:s,className:c("inline-flex items-center font-medium text-zinc-700","bg-zinc-50 border border-zinc-200 rounded-sm select-none",i.height,i.padding,i.font,o),...r})});mr.displayName="ButtonGroupText";import*as _ from"react";import{jsx as Re,jsxs as gr}from"react/jsx-runtime";var fr={xs:{box:"size-3.5",icon:"size-3",stroke:3},sm:{box:"size-4",icon:"size-3",stroke:3},md:{box:"size-5",icon:"size-3.5",stroke:2.5},lg:{box:"size-6",icon:"size-4",stroke:2.5},xl:{box:"size-7",icon:"size-5",stroke:2}},Ge=_.forwardRef(function({size:t="md",checked:o,defaultChecked:r=!1,indeterminate:s=!1,onCheckedChange:i,onChange:n,disabled:l=!1,className:a,id:d,...p},f){let v=_.useId(),b=d??v,z=o!==void 0,[w,S]=_.useState(r),y=z?o:w,k=fr[t],I=_.useRef(null);_.useEffect(()=>{I.current&&(I.current.indeterminate=!!s)},[s]);let G=_.useCallback(C=>{I.current=C,typeof f=="function"?f(C):f&&(f.current=C)},[f]),P=C=>{z||S(C.target.checked),n?.(C),i?.(C.target.checked)},O=y||s;return gr("span",{className:c("relative inline-flex shrink-0 items-center justify-center",l&&"opacity-50 cursor-not-allowed",a),children:[Re("input",{ref:G,id:b,type:"checkbox","data-slot":"checkbox","data-indeterminate":s||void 0,checked:y,onChange:P,disabled:l,className:"peer sr-only",...p}),Re("span",{"aria-hidden":"true",className:c("inline-flex items-center justify-center rounded-sm transition-colors border",l?"cursor-not-allowed":"cursor-pointer",O?"bg-zinc-900 border-zinc-900 text-white":"bg-white border-zinc-300 peer-hover:border-zinc-400","peer-focus-visible:ring-2 peer-focus-visible:ring-zinc-900 peer-focus-visible:ring-offset-1","peer-aria-invalid:border-zinc-900 peer-aria-invalid:ring-2 peer-aria-invalid:ring-zinc-200",k.box),children:s?Re(Tt,{className:k.icon,strokeWidth:k.stroke}):y?Re(It,{className:k.icon,strokeWidth:k.stroke}):null})]})});Ge.displayName="Checkbox";import*as V from"react";import{jsx as te,jsxs as Pe}from"react/jsx-runtime";var Wt=V.createContext(null),xr=V.forwardRef(function({value:t,defaultValue:o=[],onValueChange:r,orientation:s="vertical",size:i="md",disabled:n=!1,name:l,invalid:a,legend:d,description:p,className:f,children:v,...b},z){let w=t!==void 0,[S,y]=V.useState(o),k=w?t:S,I=V.useCallback(P=>{let O=k.includes(P)?k.filter(C=>C!==P):[...k,P];w||y(O),r?.(O)},[k,w,r]),G=V.useMemo(()=>({value:k,toggle:I,size:i,disabled:n,name:l,invalid:a}),[k,I,i,n,l,a]);return te(Wt.Provider,{value:G,children:Pe("fieldset",{ref:z,"data-slot":"checkbox-group","data-orientation":s,"aria-invalid":a||void 0,disabled:n,className:c("flex flex-col gap-2 min-w-0",f),...b,children:[d&&te("legend",{className:"text-sm font-medium text-zinc-700 mb-1",children:d}),p&&te("p",{className:"text-xs text-zinc-500 -mt-1 mb-1",children:p}),te("div",{className:c("flex",s==="vertical"?"flex-col gap-2":"flex-row gap-4 flex-wrap"),children:v})]})})});xr.displayName="CheckboxGroup";var br=V.forwardRef(function({value:t,label:o,description:r,disabled:s,className:i,...n},l){let a=V.useContext(Wt);if(!a)throw new Error("CheckboxGroupItem must be rendered inside <CheckboxGroup>.");let d=V.useId(),p=a.value.includes(t),f=a.disabled||!!s;return Pe("label",{ref:l,htmlFor:d,className:c("inline-flex items-start gap-2.5 select-none",f?"cursor-not-allowed opacity-50":"cursor-pointer",i),...n,children:[te(Ge,{id:d,value:t,name:a.name,size:a.size,disabled:f,checked:p,onCheckedChange:()=>a.toggle(t),"aria-invalid":a.invalid||void 0,className:"mt-0.5"}),(o||r)&&Pe("div",{className:"flex flex-col gap-0.5 min-w-0",children:[o&&te("span",{className:"text-sm font-medium text-zinc-700",children:o}),r&&te("span",{className:"text-xs text-zinc-500",children:r})]})]})});br.displayName="CheckboxGroupItem";import*as Dt from"react";import{jsx as ie,jsxs as _t}from"react/jsx-runtime";var hr={xs:{containerSize:"size-10",iconSize:"size-5",titleFont:"text-xs",descFont:"text-[11px]",maxWidth:"max-w-2xs",padding:"py-5 px-3"},sm:{containerSize:"size-12",iconSize:"size-6",titleFont:"text-sm",descFont:"text-xs",maxWidth:"max-w-xs",padding:"py-8 px-4"},md:{containerSize:"size-16",iconSize:"size-7",titleFont:"text-base",descFont:"text-sm",maxWidth:"max-w-sm",padding:"py-12 px-6"},lg:{containerSize:"size-20",iconSize:"size-9",titleFont:"text-lg",descFont:"text-base",maxWidth:"max-w-md",padding:"py-16 px-8"},xl:{containerSize:"size-24",iconSize:"size-11",titleFont:"text-xl",descFont:"text-base",maxWidth:"max-w-lg",padding:"py-20 px-10"}},vr=Dt.forwardRef(function({icon:t,title:o,description:r,size:s="md",action:i,className:n,children:l,...a},d){let p=hr[s];return _t("div",{ref:d,className:c("flex flex-col items-center justify-center text-center gap-4",p.padding,n),...a,children:[ie("div",{className:c("flex items-center justify-center rounded-full bg-zinc-100",p.containerSize),children:ie("span",{className:c("text-zinc-400 [&>svg]:w-full [&>svg]:h-full",p.iconSize),children:t??ie(Nt,{className:"w-full h-full"})})}),(o||r)&&_t("div",{className:"flex flex-col gap-1.5",children:[o&&ie("h3",{className:c("font-semibold text-zinc-900",p.titleFont),children:o}),r&&ie("p",{className:c("text-zinc-500 leading-relaxed",p.descFont,p.maxWidth),children:r})]}),i&&ie("div",{className:"mt-1",children:i}),l]})});vr.displayName="Empty";import*as qt from"react";import{jsx as kr}from"react/jsx-runtime";var zr={xs:{height:"h-7",padding:"px-2",font:"text-xs"},sm:{height:"h-8",padding:"px-2.5",font:"text-sm"},md:{height:"h-9",padding:"px-3",font:"text-sm"},lg:{height:"h-10",padding:"px-3.5",font:"text-base"},xl:{height:"h-12",padding:"px-4",font:"text-lg"}},yr={square:"rounded-none",rounded:"rounded-sm",pill:"rounded-full"},Rr={outline:"bg-white border border-zinc-300",soft:"bg-zinc-50 border border-zinc-200",ghost:"bg-transparent border border-transparent focus-visible:border-zinc-300"},He=qt.forwardRef(function({variant:t="outline",size:o="md",shape:r="rounded",className:s,type:i="text",...n},l){let a=zr[o];return kr("input",{ref:l,type:i,"data-slot":"input",className:c("w-full transition-colors","text-zinc-900 placeholder:text-zinc-400","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1 focus-visible:border-zinc-900","aria-invalid:border-zinc-900 aria-invalid:ring-2 aria-invalid:ring-zinc-200","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-zinc-50","read-only:bg-zinc-50 read-only:text-zinc-600","file:border-0 file:bg-transparent file:text-zinc-700 file:font-medium file:me-3 file:cursor-pointer",Rr[t],yr[r],a.height,a.padding,a.font,s),...n})});He.displayName="Input";import*as oe from"react";import*as U from"react";import{jsx as Cr}from"react/jsx-runtime";var wr={xs:{padding:"px-2 py-1.5",font:"text-xs"},sm:{padding:"px-2.5 py-1.5",font:"text-sm"},md:{padding:"px-3 py-2",font:"text-sm"},lg:{padding:"px-3.5 py-2.5",font:"text-base"},xl:{padding:"px-4 py-3",font:"text-lg"}},Sr={square:"rounded-none",rounded:"rounded-sm"},Ir={outline:"bg-white border border-zinc-300",soft:"bg-zinc-50 border border-zinc-200",ghost:"bg-transparent border border-transparent focus-visible:border-zinc-300"},Tr={none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"},Be=U.forwardRef(function({variant:t="outline",size:o="md",shape:r="rounded",resize:s="vertical",autoGrow:i=!1,maxRows:n,className:l,onChange:a,rows:d=3,...p},f){let v=U.useRef(null),b=wr[o],z=U.useCallback(()=>{let y=v.current;if(!y||!i)return;y.style.height="auto";let k=y.scrollHeight;if(n){let I=parseInt(getComputedStyle(y).lineHeight,10)||20,G=parseInt(getComputedStyle(y).paddingTop,10)+parseInt(getComputedStyle(y).paddingBottom,10);k=Math.min(k,I*n+G)}y.style.height=`${k}px`},[i,n]);U.useEffect(()=>{i&&z()},[z,i]);let w=U.useCallback(y=>{v.current=y,typeof f=="function"?f(y):f&&(f.current=y)},[f]);return Cr("textarea",{ref:w,rows:d,"data-slot":"textarea",onChange:y=>{a?.(y),i&&z()},className:c("w-full transition-colors","text-zinc-900 placeholder:text-zinc-400","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1 focus-visible:border-zinc-900","aria-invalid:border-zinc-900 aria-invalid:ring-2 aria-invalid:ring-zinc-200","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-zinc-50","read-only:bg-zinc-50 read-only:text-zinc-600",Ir[t],Sr[r],b.padding,b.font,i?"resize-none overflow-hidden":Tr[s],l),...p})});Be.displayName="Textarea";import{jsx as ae}from"react/jsx-runtime";var Nr=oe.forwardRef(function({className:t,...o},r){return ae("div",{ref:r,"data-slot":"input-group",className:c("relative isolate flex items-stretch w-full","bg-white border border-zinc-300 rounded-sm transition-colors","has-[[data-slot=input-group-control]:focus-visible]:ring-2","has-[[data-slot=input-group-control]:focus-visible]:ring-zinc-900","has-[[data-slot=input-group-control]:focus-visible]:ring-offset-1","has-[[data-slot=input-group-control]:focus-visible]:border-zinc-900","has-[[aria-invalid=true]]:border-zinc-900","has-[[aria-invalid=true]]:ring-2","has-[[aria-invalid=true]]:ring-zinc-200","has-[[data-align=block-start]]:flex-col","has-[[data-align=block-end]]:flex-col","[&_[data-slot=input-group-control]]:border-0","[&_[data-slot=input-group-control]]:bg-transparent","[&_[data-slot=input-group-control]]:rounded-none","[&_[data-slot=input-group-control]]:shadow-none","[&_[data-slot=input-group-control]]:flex-1","[&_[data-slot=input-group-control]]:min-w-0","[&_[data-slot=input-group-control]]:focus-visible:ring-0","[&_[data-slot=input-group-control]]:focus-visible:ring-offset-0","[&_[data-slot=input-group-control]]:focus-visible:border-0","[&_[data-slot=input-group-control]]:aria-invalid:ring-0","[&_[data-slot=input-group-control]]:aria-invalid:border-0",t),...o})});Nr.displayName="InputGroup";var Ar=oe.forwardRef(function(t,o){return ae(He,{ref:o,"data-slot":"input-group-control",...t})});Ar.displayName="InputGroupInput";var Lr=oe.forwardRef(function(t,o){return ae(Be,{ref:o,"data-slot":"input-group-control",...t})});Lr.displayName="InputGroupTextarea";var Mr=oe.forwardRef(function({align:t="inline-start",className:o,...r},s){return ae("div",{ref:s,"data-slot":"input-group-addon","data-align":t,className:c("inline-flex items-center text-zinc-500 select-none gap-1.5 shrink-0","[&>svg]:size-4",t==="inline-start"&&"order-first ps-3",t==="inline-end"&&"order-last pe-3",t==="block-start"&&"order-first w-full px-3 py-2 border-b border-zinc-300",t==="block-end"&&"order-last w-full px-3 py-2 border-t border-zinc-300",o),...r})});Mr.displayName="InputGroupAddon";var Er={xs:"h-6 px-2 text-xs gap-1 [&>svg]:size-3","icon-xs":"size-6 [&>svg]:size-3",sm:"h-7 px-2.5 text-xs gap-1 [&>svg]:size-3.5","icon-sm":"size-7 [&>svg]:size-3.5"},Gr={ghost:"bg-transparent text-zinc-700 hover:bg-zinc-100 border border-transparent",outline:"bg-white text-zinc-700 hover:bg-zinc-50 border border-zinc-300",soft:"bg-zinc-100 text-zinc-900 hover:bg-zinc-200 border border-zinc-200",solid:"bg-zinc-900 text-white hover:bg-zinc-700 border border-zinc-900"},Pr=oe.forwardRef(function({size:t="xs",variant:o="ghost",className:r,type:s="button",...i},n){return ae("button",{ref:n,type:s,"data-slot":"input-group-button",className:c("inline-flex items-center justify-center font-medium rounded-sm transition-colors cursor-pointer shrink-0 select-none","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1","disabled:opacity-50 disabled:pointer-events-none",Er[t],Gr[o],r),...i})});Pr.displayName="InputGroupButton";var Hr=oe.forwardRef(function({className:t,...o},r){return ae("div",{ref:r,"data-slot":"input-group-text",className:c("inline-flex items-center whitespace-nowrap select-none text-sm text-zinc-600 font-medium",t),...o})});Hr.displayName="InputGroupText";import*as X from"react";import{jsx as re,jsxs as jt}from"react/jsx-runtime";var Ve={xs:{padding:"px-1 py-px",font:"text-[10px]",minWidth:"min-w-4",gap:"gap-0.5"},sm:{padding:"px-1.5 py-0.5",font:"text-xs",minWidth:"min-w-5",gap:"gap-1"},md:{padding:"px-2 py-1",font:"text-sm",minWidth:"min-w-6",gap:"gap-1.5"},lg:{padding:"px-2.5 py-1",font:"text-base",minWidth:"min-w-7",gap:"gap-1.5"},xl:{padding:"px-3 py-1.5",font:"text-lg",minWidth:"min-w-8",gap:"gap-2"}},Kt={square:"",rounded:"rounded-sm"},Ut={soft:"bg-zinc-100 border border-zinc-300",outline:"bg-transparent border border-zinc-300",ghost:"bg-zinc-50 border border-transparent"};function Br({children:e,size:t,variant:o,shape:r,className:s}){let i=Ve[t];return re("kbd",{className:c("inline-flex items-center justify-center font-mono font-medium text-zinc-700 leading-none",Kt[r],i.padding,i.font,i.minWidth,Ut[o],s),children:e})}var Vr=X.forwardRef(function({size:t="sm",variant:o="soft",shape:r="rounded",keys:s,separator:i,className:n,children:l,...a},d){let p=Ve[t];if(!s||s.length===0)return re("kbd",{ref:d,className:c("inline-flex items-center justify-center font-mono font-medium text-zinc-700 leading-none",Kt[r],p.padding,p.font,p.minWidth,Ut[o],n),...a,children:l});let f=i??re("span",{className:c("text-zinc-400 font-mono font-medium",p.font),children:"+"});return re("span",{ref:d,className:c("inline-flex items-center",p.gap,n),...a,children:s.map((v,b)=>jt(X.Fragment,{children:[re(Br,{size:t,variant:o,shape:r,children:v}),b<s.length-1&&f]},b))})});Vr.displayName="Kbd";var Or=X.forwardRef(function({size:t="sm",separator:o,className:r,children:s,...i},n){let l=Ve[t],a=X.Children.toArray(s).filter(Boolean),d=o??re("span",{className:c("text-zinc-400 font-mono font-medium",l.font),children:"+"});return re("span",{ref:n,className:c("inline-flex items-center",l.gap,r),...i,children:a.map((p,f)=>jt(X.Fragment,{children:[p,f<a.length-1&&d]},f))})});Or.displayName="KbdGroup";import*as Zt from"react";import{jsx as _r,jsxs as Dr}from"react/jsx-runtime";var Fr={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},Wr=Zt.forwardRef(function({size:t="sm",required:o=!1,disabled:r=!1,className:s,children:i,...n},l){return Dr("label",{ref:l,className:c("font-medium text-zinc-700 leading-none",Fr[t],r?"opacity-50 cursor-not-allowed":"cursor-default",s),...n,children:[i,o&&_r("span",{"aria-hidden":"true",className:"text-zinc-900 ms-0.5 font-semibold",children:"*"})]})});Wr.displayName="Label";import*as $t from"react";import{jsx as Oe,jsxs as jr}from"react/jsx-runtime";var qr={xs:{font:"text-xs",iconSize:"size-3",gap:"gap-1"},sm:{font:"text-sm",iconSize:"size-3.5",gap:"gap-1.5"},md:{font:"text-base",iconSize:"size-4",gap:"gap-1.5"},lg:{font:"text-lg",iconSize:"size-4",gap:"gap-2"},xl:{font:"text-xl",iconSize:"size-5",gap:"gap-2"}},Kr={hover:"no-underline hover:underline underline-offset-4",always:"underline underline-offset-4",none:"no-underline"},Ur=$t.forwardRef(function({size:t="sm",underline:o="hover",icon:r,iconRight:s,external:i=!1,disabled:n=!1,className:l,children:a,target:d,rel:p,...f},v){let b=qr[t],z=i?"_blank":d,w=i?p?`${p} noopener noreferrer`:"noopener noreferrer":p;return jr("a",{ref:v,target:z,rel:w,"aria-disabled":n||void 0,tabIndex:n?-1:f.tabIndex,className:c("inline-flex items-center font-medium transition-colors","text-zinc-900 hover:text-zinc-700","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-1 rounded-sm","cursor-pointer",b.font,b.gap,Kr[o],n&&"opacity-50 pointer-events-none cursor-not-allowed",l),...f,children:[r&&Oe("span",{className:c("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",b.iconSize),children:r}),a,s?Oe("span",{className:c("shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",b.iconSize),children:s}):i?Oe(Ct,{className:b.iconSize}):null]})});Ur.displayName="Link";import*as le from"react";import{jsx as Fe,jsxs as $r}from"react/jsx-runtime";var Zr={xs:{box:"size-3.5",dot:"size-1.5"},sm:{box:"size-4",dot:"size-2"},md:{box:"size-5",dot:"size-2.5"},lg:{box:"size-6",dot:"size-3"},xl:{box:"size-7",dot:"size-3.5"}},We=le.forwardRef(function({size:t="md",checked:o,defaultChecked:r,onCheckedChange:s,onChange:i,disabled:n=!1,className:l,id:a,...d},p){let f=le.useId(),v=a??f,b=o!==void 0,[z,w]=le.useState(!!r),S=b?o:z,y=Zr[t],k=I=>{b||w(I.target.checked),i?.(I),s?.(I.target.checked)};return $r("span",{className:c("relative inline-flex shrink-0 items-center justify-center",n&&"opacity-50 cursor-not-allowed",l),children:[Fe("input",{ref:p,id:v,type:"radio","data-slot":"radio",checked:S,onChange:k,disabled:n,className:"peer sr-only",...d}),Fe("span",{"aria-hidden":"true",className:c("inline-flex items-center justify-center rounded-full transition-colors border",n?"cursor-not-allowed":"cursor-pointer",S?"bg-white border-zinc-900":"bg-white border-zinc-300 peer-hover:border-zinc-400","peer-focus-visible:ring-2 peer-focus-visible:ring-zinc-900 peer-focus-visible:ring-offset-1","peer-aria-invalid:border-zinc-900 peer-aria-invalid:ring-2 peer-aria-invalid:ring-zinc-200",y.box),children:S&&Fe("span",{className:c("rounded-full bg-zinc-900",y.dot)})})]})});We.displayName="Radio";import*as E from"react";import{jsx as ne,jsxs as _e}from"react/jsx-runtime";var Xt=E.createContext(null),Xr=E.forwardRef(function({value:t,defaultValue:o,onValueChange:r,orientation:s="vertical",size:i="md",disabled:n=!1,name:l,invalid:a,legend:d,description:p,className:f,children:v,...b},z){let w=E.useId(),S=l??w,y=t!==void 0,[k,I]=E.useState(o??null),G=y?t:k,P=E.useCallback(C=>{y||I(C),r?.(C)},[y,r]),O=E.useMemo(()=>({value:G??null,setValue:P,size:i,disabled:n,name:S,invalid:a}),[G,P,i,n,S,a]);return ne(Xt.Provider,{value:O,children:_e("fieldset",{ref:z,"data-slot":"radio-group","data-orientation":s,role:"radiogroup","aria-invalid":a||void 0,disabled:n,className:c("flex flex-col gap-2 min-w-0",f),...b,children:[d&&ne("legend",{className:"text-sm font-medium text-zinc-700 mb-1",children:d}),p&&ne("p",{className:"text-xs text-zinc-500 -mt-1 mb-1",children:p}),ne("div",{className:c("flex",s==="vertical"?"flex-col gap-2":"flex-row gap-4 flex-wrap"),children:v})]})})});Xr.displayName="RadioGroup";var Yr=E.forwardRef(function({value:t,label:o,description:r,disabled:s,className:i,...n},l){let a=E.useContext(Xt);if(!a)throw new Error("RadioGroupItem must be rendered inside <RadioGroup>.");let d=E.useId(),p=a.value===t,f=a.disabled||!!s;return _e("label",{ref:l,htmlFor:d,className:c("inline-flex items-start gap-2.5 select-none",f?"cursor-not-allowed opacity-50":"cursor-pointer",i),...n,children:[ne(We,{id:d,value:t,name:a.name,size:a.size,disabled:f,checked:p,onChange:()=>a.setValue(t),"aria-invalid":a.invalid||void 0,className:"mt-0.5"}),(o||r)&&_e("div",{className:"flex flex-col gap-0.5 min-w-0",children:[o&&ne("span",{className:"text-sm font-medium text-zinc-700",children:o}),r&&ne("span",{className:"text-xs text-zinc-500",children:r})]})]})});Yr.displayName="RadioGroupItem";import*as Yt from"react";import{jsx as ue,jsxs as Qr}from"react/jsx-runtime";var ke={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"},Jr=Yt.forwardRef(function({orientation:t="horizontal",variant:o="solid",label:r,decorative:s,className:i,...n},l){let a=s?{role:"none"}:{role:"separator","aria-orientation":t};return t==="vertical"?ue("div",{ref:l,...a,className:c("self-stretch w-px border-l border-zinc-200",ke[o],i),...n}):r?Qr("div",{ref:l,...a,className:c("flex items-center gap-3",i),...n,children:[ue("div",{"aria-hidden":"true",className:c("flex-1 border-t border-zinc-200",ke[o])}),ue("span",{className:"text-xs text-zinc-500 font-medium shrink-0",children:r}),ue("div",{"aria-hidden":"true",className:c("flex-1 border-t border-zinc-200",ke[o])})]}):ue("div",{ref:l,...a,className:c("w-full border-t border-zinc-200",ke[o],i),...n})});Jr.displayName="Separator";import*as we from"react";var Jt="eglador-skeleton-styles",en=`
|
|
3
|
+
@keyframes eglador-skeleton-wave {
|
|
4
|
+
0% { background-position: 200% 0; }
|
|
5
|
+
100% { background-position: -200% 0; }
|
|
6
|
+
}
|
|
7
|
+
.eglador-skeleton-wave {
|
|
8
|
+
background-color: var(--color-zinc-200, #e4e4e7);
|
|
9
|
+
background-image: linear-gradient(
|
|
10
|
+
90deg,
|
|
11
|
+
var(--color-zinc-200, #e4e4e7) 25%,
|
|
12
|
+
var(--color-zinc-100, #f4f4f5) 50%,
|
|
13
|
+
var(--color-zinc-200, #e4e4e7) 75%
|
|
14
|
+
);
|
|
15
|
+
background-size: 200% 100%;
|
|
16
|
+
animation: eglador-skeleton-wave 1.5s ease-in-out infinite;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-reduced-motion: reduce) {
|
|
20
|
+
.eglador-skeleton-wave {
|
|
21
|
+
animation: none !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;function De(){if(typeof document>"u"||document.getElementById(Jt))return;let e=document.createElement("style");e.id=Jt,e.textContent=en,document.head.appendChild(e)}import{jsx as qe}from"react/jsx-runtime";var tn={text:"rounded-sm",circular:"rounded-full",rectangular:"",rounded:"rounded-sm"};function Qt(e){if(e!=null)return typeof e=="number"?`${e}px`:e}var on=we.forwardRef(function({variant:t="text",animation:o="pulse",width:r,height:s,lines:i,lineGap:n="0.75rem",className:l,style:a,...d},p){we.useEffect(()=>{o==="wave"&&De()},[o]);let f=Qt(r),v=Qt(s),b=f,z=v;z||(t==="text"?z="1em":t==="circular"?z=b??"2.5rem":z="8rem"),t==="circular"&&!b&&(b=z),!b&&t!=="circular"&&(b="100%");let w=c(o==="wave"?"eglador-skeleton-wave":"bg-zinc-200",tn[t],o==="pulse"&&"animate-pulse",l);return i&&i>1?qe("div",{ref:p,className:"flex flex-col",style:{gap:n,...a},...d,children:Array.from({length:i},(S,y)=>{let k=y===i-1;return qe("div",{className:w,style:{width:k?"60%":b,height:z}},y)})}):qe("div",{ref:p,className:w,style:{width:b,height:z,...a},...d})});on.displayName="Skeleton";import*as to from"react";import{jsx as Se,jsxs as eo}from"react/jsx-runtime";var rn={xs:{spinner:"size-4",labelFont:"text-xs",gap:"gap-1.5"},sm:{spinner:"size-5",labelFont:"text-sm",gap:"gap-2"},md:{spinner:"size-8",labelFont:"text-sm",gap:"gap-2.5"},lg:{spinner:"size-12",labelFont:"text-base",gap:"gap-3"},xl:{spinner:"size-16",labelFont:"text-lg",gap:"gap-3.5"}},nn=to.forwardRef(function({size:t="sm",label:o,className:r,...s},i){let n=rn[t];return eo("div",{ref:i,role:"status",className:c("inline-flex flex-col items-center",n.gap,r),...s,children:[eo("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:c("animate-spin",n.spinner),children:[Se("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",className:"text-zinc-200"}),Se("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",className:"text-zinc-600"})]}),o?Se("span",{className:c("font-medium text-zinc-500",n.labelFont),children:o}):Se("span",{className:"sr-only",children:"Loading\u2026"})]})});nn.displayName="Spinner";import*as ce from"react";import{jsx as Ke,jsxs as ln}from"react/jsx-runtime";var sn={xs:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},sm:{track:"w-10 h-5",thumb:"size-4",translate:"translate-x-5"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"},xl:{track:"w-16 h-8",thumb:"size-7",translate:"translate-x-8"}},an=ce.forwardRef(function({size:t="md",checked:o,defaultChecked:r=!1,onCheckedChange:s,onChange:i,disabled:n=!1,className:l,id:a,...d},p){let f=ce.useId(),v=a??f,b=o!==void 0,[z,w]=ce.useState(r),S=b?o:z,y=sn[t],k=I=>{b||w(I.target.checked),i?.(I),s?.(I.target.checked)};return ln("span",{className:c("relative inline-flex shrink-0 items-center",n&&"opacity-50 cursor-not-allowed",l),children:[Ke("input",{ref:p,id:v,type:"checkbox",role:"switch","data-slot":"switch",checked:S,onChange:k,disabled:n,className:"peer sr-only",...d}),Ke("span",{"aria-hidden":"true",className:c("relative inline-block rounded-full transition-colors","bg-zinc-200 peer-checked:bg-zinc-900","peer-focus-visible:ring-2 peer-focus-visible:ring-zinc-900 peer-focus-visible:ring-offset-1","peer-aria-invalid:ring-2 peer-aria-invalid:ring-zinc-200",n?"cursor-not-allowed":"cursor-pointer",y.track),children:Ke("span",{className:c("absolute top-1/2 -translate-y-1/2 left-0.5 rounded-full bg-white shadow-sm transition-transform",y.thumb,S&&y.translate)})})]})});an.displayName="Switch";import*as ro from"react";import{jsx as mn}from"react/jsx-runtime";var cn={h1:{tag:"h1",style:"text-4xl font-bold tracking-tight"},h2:{tag:"h2",style:"text-3xl font-bold tracking-tight"},h3:{tag:"h3",style:"text-2xl font-semibold tracking-tight"},h4:{tag:"h4",style:"text-xl font-semibold tracking-tight"},p:{tag:"p",style:"text-base leading-relaxed"},lead:{tag:"p",style:"text-xl leading-relaxed"},large:{tag:"p",style:"text-lg font-medium"},small:{tag:"p",style:"text-sm"},muted:{tag:"p",style:"text-sm text-zinc-500"},blockquote:{tag:"blockquote",style:"border-s-4 border-zinc-300 ps-4 italic"},list:{tag:"ul",style:"list-disc ms-6 [&>li]:mt-1.5 [&>li]:leading-relaxed"},code:{tag:"code",style:"bg-zinc-100 px-1.5 py-0.5 rounded-sm text-sm font-mono"},kbd:{tag:"kbd",style:"bg-zinc-100 border border-zinc-300 px-1.5 py-0.5 rounded-sm text-xs font-mono"}},oo={default:"text-zinc-900",muted:"text-zinc-500"},dn={left:"text-left",center:"text-center",right:"text-right"},pn={thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold",black:"font-black"},un=ro.forwardRef(function({variant:t="p",color:o,align:r,weight:s,truncate:i=!1,lines:n,as:l,className:a,children:d,style:p,...f},v){let b=cn[t],z=l||b.tag,w=o?oo[o]:t==="muted"?"":oo.default,S=n&&n>0?{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:n,overflow:"hidden"}:void 0;return mn(z,{ref:v,className:c(b.style,w,r&&dn[r],s&&pn[s],i&&!n&&"truncate",a),style:S?{...S,...p}:p,...f,children:d})});un.displayName="Typography";export{$o as AspectRatio,Qo as Avatar,er as AvatarGroup,nr as Badge,ar as Button,dr as ButtonGroup,pr as ButtonGroupSeparator,mr as ButtonGroupText,Ge as Checkbox,xr as CheckboxGroup,br as CheckboxGroupItem,vr as Empty,He as Input,Nr as InputGroup,Mr as InputGroupAddon,Pr as InputGroupButton,Ar as InputGroupInput,Hr as InputGroupText,Lr as InputGroupTextarea,Vr as Kbd,Or as KbdGroup,Wr as Label,Ur as Link,We as Radio,Xr as RadioGroup,Yr as RadioGroupItem,Jr as Separator,on as Skeleton,nn as Spinner,an as Switch,Be as Textarea,un as Typography,Yn as buttonVariants,De as ensureSkeletonStyles};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eglador-ui-react",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.3",
|
|
4
4
|
"description": "Eglador UI for React — headless, accessible component library. Compound subcomponents, Tailwind v4, zero runtime dependencies.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"@vitest/browser-playwright": "^4.1.5",
|
|
81
81
|
"@vitest/coverage-v8": "^4.1.5",
|
|
82
82
|
"clsx": "^2.1.1",
|
|
83
|
+
"lucide-react": "^1.14.0",
|
|
83
84
|
"playwright": "^1.59.1",
|
|
84
85
|
"react": "^19.2.6",
|
|
85
86
|
"react-dom": "^19.2.6",
|