@kopexa/theme 1.4.2 → 1.4.4

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.
Files changed (56) hide show
  1. package/dist/{chunk-HQ27V5V4.mjs → chunk-2C5EQ4P3.mjs} +4 -0
  2. package/dist/chunk-32L6KXLV.mjs +324 -0
  3. package/dist/{chunk-IL3JFLE2.mjs → chunk-4UDOCFU5.mjs} +7 -0
  4. package/dist/chunk-67PPUTSS.mjs +53 -0
  5. package/dist/chunk-JWF5ABNP.mjs +56 -0
  6. package/dist/{chunk-5FI7W32M.mjs → chunk-KE2E5LGH.mjs} +2 -11
  7. package/dist/chunk-PQSL3W26.mjs +96 -0
  8. package/dist/chunk-XSN6P5JL.mjs +0 -0
  9. package/dist/components/button.js +24 -11
  10. package/dist/components/button.mjs +3 -3
  11. package/dist/components/calendar.d.mts +124 -0
  12. package/dist/components/calendar.d.ts +124 -0
  13. package/dist/components/calendar.js +80 -0
  14. package/dist/components/calendar.mjs +6 -0
  15. package/dist/components/chip.d.mts +356 -0
  16. package/dist/components/chip.d.ts +356 -0
  17. package/dist/components/chip.js +396 -0
  18. package/dist/components/chip.mjs +7 -0
  19. package/dist/components/dropdown-menu.d.mts +9 -9
  20. package/dist/components/dropdown-menu.d.ts +9 -9
  21. package/dist/components/index.d.mts +3 -0
  22. package/dist/components/index.d.ts +3 -0
  23. package/dist/components/index.js +516 -27
  24. package/dist/components/index.mjs +22 -8
  25. package/dist/components/input.d.mts +177 -0
  26. package/dist/components/input.d.ts +177 -0
  27. package/dist/components/input.js +124 -0
  28. package/dist/components/input.mjs +9 -0
  29. package/dist/components/spinner.d.mts +21 -0
  30. package/dist/components/spinner.d.ts +21 -0
  31. package/dist/components/spinner.js +7 -0
  32. package/dist/components/spinner.mjs +1 -1
  33. package/dist/index.css +98 -19
  34. package/dist/index.d.mts +4 -0
  35. package/dist/index.d.ts +4 -0
  36. package/dist/index.js +516 -27
  37. package/dist/index.mjs +23 -8
  38. package/dist/utils/classes.d.mts +2 -1
  39. package/dist/utils/classes.d.ts +2 -1
  40. package/dist/utils/classes.js +7 -2
  41. package/dist/utils/classes.mjs +5 -3
  42. package/dist/utils/index.d.mts +2 -0
  43. package/dist/utils/index.d.ts +2 -0
  44. package/dist/utils/index.js +18 -0
  45. package/dist/utils/index.mjs +1 -0
  46. package/dist/utils/types.d.mts +10 -0
  47. package/dist/utils/types.d.ts +10 -0
  48. package/dist/utils/types.js +18 -0
  49. package/dist/utils/types.mjs +0 -0
  50. package/dist/utils/variants.d.mts +20 -0
  51. package/dist/utils/variants.d.ts +20 -0
  52. package/dist/utils/variants.js +24 -2
  53. package/dist/utils/variants.mjs +1 -1
  54. package/package.json +2 -2
  55. package/dist/chunk-U6ONJKJY.mjs +0 -31
  56. /package/dist/{chunk-KIDK6JOG.mjs → chunk-N2UQGV46.mjs} +0 -0
@@ -3,9 +3,13 @@ var focusVisibleClasses = [
3
3
  "focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
4
4
  //"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
5
5
  ];
6
+ var focusWithinClasses = [
7
+ "focus-within:outline-2 focus-within:outline-ring focus-within:outline-offset-2"
8
+ ];
6
9
  var dataFocusVisibleClasses = ["outline-hidden"];
7
10
 
8
11
  export {
9
12
  focusVisibleClasses,
13
+ focusWithinClasses,
10
14
  dataFocusVisibleClasses
11
15
  };
@@ -0,0 +1,324 @@
1
+ import {
2
+ colorVariants
3
+ } from "./chunk-67PPUTSS.mjs";
4
+
5
+ // src/components/chip.ts
6
+ import { tv } from "tailwind-variants";
7
+ var chip = tv({
8
+ slots: {
9
+ root: [
10
+ "relative",
11
+ "max-w-fit",
12
+ "min-w-min",
13
+ "inline-flex",
14
+ "items-center",
15
+ "justify-between",
16
+ "box-border",
17
+ "whitespace-nowrap",
18
+ "isolate"
19
+ ],
20
+ content: "flex-1 text-inherit font-normal",
21
+ indicator: "relative flex size-2 ml-1",
22
+ indicatorPulse: "absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",
23
+ indicatorDot: "relative inline-flex size-2 rounded-full",
24
+ status: "flex items-center gap-2 border-r pr-1 font-medium ml-1",
25
+ closeButton: [
26
+ "z-10 appearance-none outline-none select-none transition-opacity",
27
+ "opacity-70 hover:opacity-100 cursor-pointer active:opacity-50"
28
+ ]
29
+ },
30
+ variants: {
31
+ variant: {
32
+ solid: {},
33
+ bordered: {
34
+ root: "border-2 bg-transparent"
35
+ },
36
+ faded: {
37
+ root: "border-2"
38
+ },
39
+ flat: {}
40
+ },
41
+ color: {
42
+ default: {
43
+ status: "border-default-200 dark:border-default-700"
44
+ },
45
+ primary: {
46
+ status: "border-primary-200 dark:border-primary-700"
47
+ },
48
+ secondary: {
49
+ status: "border-secondary-200 dark:border-secondary-700"
50
+ },
51
+ success: {
52
+ status: "border-success-200 dark:border-success-700"
53
+ },
54
+ destructive: {
55
+ status: "border-destructive-200 dark:border-destructive-700"
56
+ },
57
+ warning: {
58
+ status: "border-warning-200 dark:border-warning-700"
59
+ }
60
+ },
61
+ indicatorColor: {
62
+ default: {
63
+ indicatorDot: "bg-accent"
64
+ },
65
+ primary: {
66
+ indicatorDot: "bg-primary"
67
+ },
68
+ secondary: {
69
+ indicatorDot: "bg-secondary"
70
+ },
71
+ success: {
72
+ indicatorDot: "bg-success"
73
+ },
74
+ warning: {
75
+ indicatorDot: "bg-warning"
76
+ },
77
+ destructive: {
78
+ indicatorDot: "bg-destructive"
79
+ },
80
+ info: {
81
+ indicatorDot: "bg-info"
82
+ }
83
+ },
84
+ indicator: {
85
+ true: {},
86
+ false: {}
87
+ },
88
+ indicatorVariant: {
89
+ pulse: {}
90
+ },
91
+ size: {
92
+ sm: {
93
+ root: "px-1 h-6 text-[11px] [&_svg]:size-3",
94
+ status: "text-[11px]",
95
+ content: "px-1",
96
+ closeButton: ["[&_svg]:size-3", "px-1"]
97
+ },
98
+ md: {
99
+ root: "px-1 h-7 text-sm [&_svg]:size-4",
100
+ status: "text-sm",
101
+ content: "px-2",
102
+ closeButton: ["[&_svg]:size-4", "px-2"]
103
+ },
104
+ lg: {
105
+ root: "px-2 h-8 text-md [&_svg]:size-5",
106
+ status: "text-md",
107
+ content: "px-2",
108
+ closeButton: ["[&_svg]:size-5", "px-2"]
109
+ }
110
+ },
111
+ isCloseable: {
112
+ true: {},
113
+ false: {}
114
+ },
115
+ radius: {
116
+ none: {
117
+ root: "rounded-none"
118
+ },
119
+ sm: {
120
+ root: "rounded-sm"
121
+ },
122
+ md: {
123
+ root: "rounded-md"
124
+ },
125
+ lg: {
126
+ root: "rounded-lg"
127
+ },
128
+ full: {
129
+ root: "rounded-full"
130
+ }
131
+ },
132
+ disabled: {
133
+ true: {
134
+ root: "opacity-50 pointer-events-none"
135
+ },
136
+ false: {}
137
+ }
138
+ },
139
+ defaultVariants: {
140
+ color: "default",
141
+ variant: "solid",
142
+ size: "sm",
143
+ radius: "full",
144
+ indicatorVariant: "pulse",
145
+ indicatorColor: "success"
146
+ },
147
+ compoundVariants: [
148
+ // solid / color
149
+ {
150
+ variant: "solid",
151
+ color: "default",
152
+ class: {
153
+ root: colorVariants.solid.default
154
+ }
155
+ },
156
+ {
157
+ variant: "solid",
158
+ color: "primary",
159
+ class: {
160
+ root: colorVariants.solid.primary
161
+ }
162
+ },
163
+ {
164
+ variant: "solid",
165
+ color: "secondary",
166
+ class: {
167
+ root: colorVariants.solid.secondary
168
+ }
169
+ },
170
+ {
171
+ variant: "solid",
172
+ color: "success",
173
+ class: {
174
+ root: colorVariants.solid.success
175
+ }
176
+ },
177
+ {
178
+ variant: "solid",
179
+ color: "warning",
180
+ class: {
181
+ root: colorVariants.solid.warning
182
+ }
183
+ },
184
+ {
185
+ variant: "solid",
186
+ color: "destructive",
187
+ class: {
188
+ root: colorVariants.solid.destructive
189
+ }
190
+ },
191
+ // bordered / color
192
+ {
193
+ variant: "bordered",
194
+ color: "default",
195
+ class: {
196
+ root: colorVariants.outline.default
197
+ }
198
+ },
199
+ {
200
+ variant: "bordered",
201
+ color: "primary",
202
+ class: {
203
+ root: colorVariants.outline.primary
204
+ }
205
+ },
206
+ {
207
+ variant: "bordered",
208
+ color: "secondary",
209
+ class: {
210
+ root: colorVariants.outline.secondary
211
+ }
212
+ },
213
+ {
214
+ variant: "bordered",
215
+ color: "success",
216
+ class: {
217
+ root: colorVariants.outline.success
218
+ }
219
+ },
220
+ {
221
+ variant: "bordered",
222
+ color: "warning",
223
+ class: {
224
+ root: colorVariants.outline.warning
225
+ }
226
+ },
227
+ {
228
+ variant: "bordered",
229
+ color: "destructive",
230
+ class: {
231
+ root: colorVariants.outline.destructive
232
+ }
233
+ },
234
+ {
235
+ variant: "flat",
236
+ color: "default",
237
+ class: {
238
+ root: colorVariants.flat.default
239
+ }
240
+ },
241
+ {
242
+ variant: "flat",
243
+ color: "primary",
244
+ class: {
245
+ root: colorVariants.flat.primary
246
+ }
247
+ },
248
+ {
249
+ variant: "flat",
250
+ color: "secondary",
251
+ class: {
252
+ root: colorVariants.flat.secondary
253
+ }
254
+ },
255
+ {
256
+ variant: "flat",
257
+ color: "success",
258
+ class: {
259
+ root: colorVariants.flat.success
260
+ }
261
+ },
262
+ {
263
+ variant: "flat",
264
+ color: "warning",
265
+ class: {
266
+ root: colorVariants.flat.warning
267
+ }
268
+ },
269
+ {
270
+ variant: "flat",
271
+ color: "destructive",
272
+ class: {
273
+ root: colorVariants.flat.destructive
274
+ }
275
+ },
276
+ // faded / color
277
+ {
278
+ variant: "faded",
279
+ color: "default",
280
+ class: {
281
+ root: colorVariants.faded.default
282
+ }
283
+ },
284
+ {
285
+ variant: "faded",
286
+ color: "primary",
287
+ class: {
288
+ root: colorVariants.faded.primary
289
+ }
290
+ },
291
+ {
292
+ variant: "faded",
293
+ color: "secondary",
294
+ class: {
295
+ root: colorVariants.faded.secondary
296
+ }
297
+ },
298
+ {
299
+ variant: "faded",
300
+ color: "success",
301
+ class: {
302
+ root: colorVariants.faded.success
303
+ }
304
+ },
305
+ {
306
+ variant: "faded",
307
+ color: "warning",
308
+ class: {
309
+ root: colorVariants.faded.warning
310
+ }
311
+ },
312
+ {
313
+ variant: "faded",
314
+ color: "destructive",
315
+ class: {
316
+ root: colorVariants.faded.destructive
317
+ }
318
+ }
319
+ ]
320
+ });
321
+
322
+ export {
323
+ chip
324
+ };
@@ -11,6 +11,13 @@ var spinner = tv({
11
11
  },
12
12
  variants: {
13
13
  size: {
14
+ xs: {
15
+ wrapper: "w-4 h-4",
16
+ circle1: "border-2",
17
+ circle2: "border-2",
18
+ dots: "size-1",
19
+ label: "text-xs"
20
+ },
14
21
  sm: {
15
22
  wrapper: "w-5 h-5",
16
23
  circle1: "border-2",
@@ -0,0 +1,53 @@
1
+ // src/utils/variants.ts
2
+ var solid = {
3
+ default: "bg-accent text-accent-foreground",
4
+ primary: "bg-primary text-primary-foreground",
5
+ secondary: "bg-secondary text-secondary-foreground",
6
+ destructive: "bg-destructive text-destructive-foreground",
7
+ warning: "bg-warning text-warning-foreground",
8
+ success: "bg-success text-success-foreground"
9
+ };
10
+ var outline = {
11
+ default: "bg-transparent border border-accent text-accent-foreground",
12
+ primary: "bg-transparent border-primary text-primary",
13
+ secondary: "bg-transparent border-secondary text-secondary-foreground",
14
+ destructive: "bg-transparent border-destructive text-destructive",
15
+ warning: "bg-transparent border-warning text-warning",
16
+ success: "bg-transparent border-success text-success"
17
+ };
18
+ var flat = {
19
+ default: "bg-accent/40 text-accent-700",
20
+ primary: "bg-primary/20 text-primary-600",
21
+ secondary: "bg-secondary/20 text-secondary-600",
22
+ success: "bg-success/20 text-success-700 dark:text-success",
23
+ warning: "bg-warning/20 text-warning-700 dark:text-warning",
24
+ destructive: "bg-danger/20 text-danger-600 dark:text-danger-500",
25
+ foreground: "bg-foreground/10 text-foreground"
26
+ };
27
+ var faded = {
28
+ default: "border-default bg-accent/30 text-default-foreground",
29
+ primary: "border-default bg-accent/30 text-primary",
30
+ secondary: "border-default bg-accent/30 text-secondary-foreground",
31
+ success: "border-default bg-accent/30 text-success",
32
+ warning: "border-default bg-accent/30 text-warning",
33
+ destructive: "border-default bg-accent/30 text-danger",
34
+ foreground: "border-default bg-accent/30 text-foreground"
35
+ };
36
+ var ghost = {
37
+ primary: "bg-transparent text-primary",
38
+ secondary: "bg-transparent text-secondary",
39
+ destructive: "bg-transparent text-destructive",
40
+ warning: "bg-transparent text-warning",
41
+ success: "bg-transparent text-success"
42
+ };
43
+ var colorVariants = {
44
+ solid,
45
+ ghost,
46
+ outline,
47
+ flat,
48
+ faded
49
+ };
50
+
51
+ export {
52
+ colorVariants
53
+ };
@@ -0,0 +1,56 @@
1
+ // src/components/calendar.ts
2
+ import { tv } from "tailwind-variants";
3
+ var calendar = tv({
4
+ slots: {
5
+ base: [
6
+ "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
7
+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
8
+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`
9
+ ],
10
+ icon: "size-4",
11
+ root: "w-fit",
12
+ months: "flex gap-4 flex-col md:flex-row relative",
13
+ month: "flex flex-col w-full gap-4",
14
+ nav: "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
15
+ buttonPrevious: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
16
+ buttonNext: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
17
+ monthCaption: "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
18
+ dropdown: "absolute bg-popover inset-0 opacity-0",
19
+ dropdowns: "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
20
+ dropdownRoot: "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
21
+ captionLabel: "select-none font-medium",
22
+ table: "w-full border-collapse",
23
+ weekdays: "flex",
24
+ weekday: "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
25
+ week: "flex w-full mt-2",
26
+ weekNumberWrapper: "flex size-(--cell-size) items-center justify-center text-center",
27
+ weekNumberHeader: "select-none w-(--cell-size)",
28
+ weekNumber: "text-[0.8rem] select-none text-muted-foreground",
29
+ day: "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
30
+ dayButton: "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
31
+ rangeStart: "rounded-l-md bg-accent",
32
+ rangeMiddle: "rounded-none",
33
+ rangeEnd: "rounded-r-md bg-accent",
34
+ today: "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
35
+ outside: "text-muted-foreground aria-selected:text-muted-foreground",
36
+ disabled: "text-muted-foreground opacity-50",
37
+ hidden: "invisible"
38
+ },
39
+ variants: {
40
+ captionLayout: {
41
+ label: {
42
+ captionLabel: "text-sm"
43
+ },
44
+ default: {
45
+ captionLabel: "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5"
46
+ }
47
+ }
48
+ },
49
+ defaultVariants: {
50
+ captionLayout: "default"
51
+ }
52
+ });
53
+
54
+ export {
55
+ calendar
56
+ };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  focusVisibleClasses
3
- } from "./chunk-HQ27V5V4.mjs";
3
+ } from "./chunk-2C5EQ4P3.mjs";
4
4
  import {
5
5
  colorVariants
6
- } from "./chunk-U6ONJKJY.mjs";
6
+ } from "./chunk-67PPUTSS.mjs";
7
7
 
8
8
  // src/components/button.ts
9
9
  import { tv } from "tailwind-variants";
@@ -26,15 +26,6 @@ var button = tv({
26
26
  ghost: "",
27
27
  outline: "border-2 bg-transparent",
28
28
  link: ""
29
- // destructive:
30
- // "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
31
- // outline:
32
- // "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
33
- // secondary:
34
- // "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
35
- // ghost:
36
- // "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
37
- // link: "text-primary underline-offset-4 hover:underline",
38
29
  },
39
30
  size: {
40
31
  sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
@@ -0,0 +1,96 @@
1
+ import {
2
+ focusWithinClasses
3
+ } from "./chunk-2C5EQ4P3.mjs";
4
+
5
+ // src/components/input.ts
6
+ import { tv } from "tailwind-variants";
7
+ var passwordInput = tv({
8
+ slots: {
9
+ button: "focus:outline-hidden",
10
+ icon: "pointer-events-none text-muted-foreground"
11
+ }
12
+ });
13
+ var input = tv({
14
+ base: [],
15
+ slots: {
16
+ inputWrapper: [
17
+ "relative w-full inline-flex flex-row items-center shadow-xs px-3 gap-3 [&_svg]:shrink-0",
18
+ "border-input border dark:bg-input/30 data-[hidden=true]:hidden transition-[color,box-shadow]",
19
+ "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50",
20
+ ...focusWithinClasses
21
+ ],
22
+ innerWrapper: "inline-flex w-full items-center h-full box-border",
23
+ input: [
24
+ "w-full font-normal outline-hidden focus-visible:outline-hidden",
25
+ "data-[has-start-content=true]:ps-1.5",
26
+ "data-[has-end-content=true]:pe-1.5",
27
+ "file:cursor-pointer file:bg-transparent file:border-0",
28
+ "autofill:bg-transparent bg-clip-text",
29
+ // legacy
30
+ "selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground",
31
+ "flex",
32
+ // file
33
+ "file:text-foreground file:inline-flex file:text-sm file:font-medium",
34
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
35
+ ],
36
+ clearButton: [
37
+ "p-2 -m-2 z-10 absolute end-3 start-auto pointer-events-none",
38
+ "appearance-none outline-hidden select-none opacity-0 cursor-pointer",
39
+ "active:!opacity-70 rounded-full"
40
+ ]
41
+ },
42
+ variants: {
43
+ size: {
44
+ sm: {
45
+ inputWrapper: ["h-8 min-h-8 px-2 rounded-sm [&_svg]:size-4"],
46
+ input: "text-sm file:h-6"
47
+ },
48
+ md: {
49
+ inputWrapper: "h-10 min-10 rounded-md [&_svg]:size-4",
50
+ input: "text-base md:text-sm file:h-8",
51
+ clearButton: "hover:opacity-100"
52
+ },
53
+ lg: {
54
+ inputWrapper: "h-12 min-h-12 rounded-lg [&_svg]:size-4",
55
+ input: "text-base file:h-10",
56
+ clearButton: "hover:opacity-100"
57
+ }
58
+ },
59
+ radius: {
60
+ none: {
61
+ inputWrapper: "rounded-none"
62
+ },
63
+ sm: {
64
+ inputWrapper: "rounded-sm"
65
+ },
66
+ md: {
67
+ inputWrapper: "rounded-md"
68
+ },
69
+ lg: {
70
+ inputWrapper: "rounded-lg"
71
+ },
72
+ full: {
73
+ inputWrapper: "rounded-full"
74
+ }
75
+ },
76
+ isClearable: {
77
+ true: {
78
+ input: "peer pe-6",
79
+ clearButton: [
80
+ "peer-data-[filled=true]:pointer-events-auto",
81
+ "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
82
+ "peer-data-[filled=true]:scale-100"
83
+ ]
84
+ },
85
+ false: {}
86
+ }
87
+ },
88
+ defaultVariants: {
89
+ size: "md"
90
+ }
91
+ });
92
+
93
+ export {
94
+ passwordInput,
95
+ input
96
+ };
File without changes
@@ -33,6 +33,7 @@ var focusVisibleClasses = [
33
33
 
34
34
  // src/utils/variants.ts
35
35
  var solid = {
36
+ default: "bg-accent text-accent-foreground",
36
37
  primary: "bg-primary text-primary-foreground",
37
38
  secondary: "bg-secondary text-secondary-foreground",
38
39
  destructive: "bg-destructive text-destructive-foreground",
@@ -40,12 +41,31 @@ var solid = {
40
41
  success: "bg-success text-success-foreground"
41
42
  };
42
43
  var outline = {
44
+ default: "bg-transparent border border-accent text-accent-foreground",
43
45
  primary: "bg-transparent border-primary text-primary",
44
- secondary: "bg-transparent border-secondary text-secondary",
46
+ secondary: "bg-transparent border-secondary text-secondary-foreground",
45
47
  destructive: "bg-transparent border-destructive text-destructive",
46
48
  warning: "bg-transparent border-warning text-warning",
47
49
  success: "bg-transparent border-success text-success"
48
50
  };
51
+ var flat = {
52
+ default: "bg-accent/40 text-accent-700",
53
+ primary: "bg-primary/20 text-primary-600",
54
+ secondary: "bg-secondary/20 text-secondary-600",
55
+ success: "bg-success/20 text-success-700 dark:text-success",
56
+ warning: "bg-warning/20 text-warning-700 dark:text-warning",
57
+ destructive: "bg-danger/20 text-danger-600 dark:text-danger-500",
58
+ foreground: "bg-foreground/10 text-foreground"
59
+ };
60
+ var faded = {
61
+ default: "border-default bg-accent/30 text-default-foreground",
62
+ primary: "border-default bg-accent/30 text-primary",
63
+ secondary: "border-default bg-accent/30 text-secondary-foreground",
64
+ success: "border-default bg-accent/30 text-success",
65
+ warning: "border-default bg-accent/30 text-warning",
66
+ destructive: "border-default bg-accent/30 text-danger",
67
+ foreground: "border-default bg-accent/30 text-foreground"
68
+ };
49
69
  var ghost = {
50
70
  primary: "bg-transparent text-primary",
51
71
  secondary: "bg-transparent text-secondary",
@@ -56,7 +76,9 @@ var ghost = {
56
76
  var colorVariants = {
57
77
  solid,
58
78
  ghost,
59
- outline
79
+ outline,
80
+ flat,
81
+ faded
60
82
  };
61
83
 
62
84
  // src/components/button.ts
@@ -79,15 +101,6 @@ var button = (0, import_tailwind_variants.tv)({
79
101
  ghost: "",
80
102
  outline: "border-2 bg-transparent",
81
103
  link: ""
82
- // destructive:
83
- // "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
84
- // outline:
85
- // "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
86
- // secondary:
87
- // "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
88
- // ghost:
89
- // "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
90
- // link: "text-primary underline-offset-4 hover:underline",
91
104
  },
92
105
  size: {
93
106
  sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  button
3
- } from "../chunk-5FI7W32M.mjs";
4
- import "../chunk-HQ27V5V4.mjs";
5
- import "../chunk-U6ONJKJY.mjs";
3
+ } from "../chunk-KE2E5LGH.mjs";
4
+ import "../chunk-2C5EQ4P3.mjs";
5
+ import "../chunk-67PPUTSS.mjs";
6
6
  export {
7
7
  button
8
8
  };