@sytechui/theme 2.6.0 → 2.6.2

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 (65) hide show
  1. package/dist/{chunk-AI6SQS6Z.mjs → chunk-22RNS2JQ.mjs} +5758 -5524
  2. package/dist/{chunk-XOVETH7K.mjs → chunk-63TVI5PY.mjs} +10 -2
  3. package/dist/{chunk-LV6ZC7XH.mjs → chunk-LD2JADOO.mjs} +8 -8
  4. package/dist/chunk-T754O54S.mjs +96 -0
  5. package/dist/components/accordion.mjs +11 -10
  6. package/dist/components/alert.d.mts +215 -110
  7. package/dist/components/alert.d.ts +215 -110
  8. package/dist/components/alert.js +65 -380
  9. package/dist/components/alert.mjs +5 -41
  10. package/dist/components/avatar.mjs +11 -10
  11. package/dist/components/badge.mjs +11 -10
  12. package/dist/components/bottom-bar.mjs +11 -10
  13. package/dist/components/breadcrumbs.mjs +11 -10
  14. package/dist/components/button.mjs +11 -10
  15. package/dist/components/calendar.mjs +11 -10
  16. package/dist/components/card.mjs +11 -10
  17. package/dist/components/checkbox.mjs +11 -10
  18. package/dist/components/chip.mjs +11 -10
  19. package/dist/components/code.mjs +11 -10
  20. package/dist/components/divider.d.mts +40 -1
  21. package/dist/components/divider.d.ts +40 -1
  22. package/dist/components/divider.js +12 -3
  23. package/dist/components/divider.mjs +5 -3
  24. package/dist/components/drop-zone.mjs +11 -10
  25. package/dist/components/dropdown.mjs +11 -10
  26. package/dist/components/index.d.mts +3 -2
  27. package/dist/components/index.d.ts +3 -2
  28. package/dist/components/index.js +648 -313
  29. package/dist/components/index.mjs +24 -16
  30. package/dist/components/input-otp.mjs +11 -10
  31. package/dist/components/input.mjs +11 -10
  32. package/dist/components/link.mjs +11 -10
  33. package/dist/components/listbox.mjs +11 -10
  34. package/dist/components/menu.mjs +11 -10
  35. package/dist/components/modal.mjs +11 -10
  36. package/dist/components/navbar.mjs +11 -10
  37. package/dist/components/number-input.mjs +11 -10
  38. package/dist/components/pagination.mjs +11 -10
  39. package/dist/components/popover.mjs +11 -10
  40. package/dist/components/radio.mjs +11 -10
  41. package/dist/components/select.mjs +11 -10
  42. package/dist/components/shimmer-text.d.mts +18 -18
  43. package/dist/components/shimmer-text.d.ts +18 -18
  44. package/dist/components/shimmer-text.js +8 -8
  45. package/dist/components/shimmer-text.mjs +1 -1
  46. package/dist/components/slider.mjs +11 -10
  47. package/dist/components/snippet.mjs +11 -10
  48. package/dist/components/stepper.d.mts +288 -0
  49. package/dist/components/stepper.d.ts +288 -0
  50. package/dist/components/stepper.js +849 -0
  51. package/dist/components/stepper.mjs +54 -0
  52. package/dist/components/table.mjs +11 -10
  53. package/dist/components/tabs.mjs +11 -10
  54. package/dist/components/toast.mjs +11 -10
  55. package/dist/components/toggle.mjs +11 -10
  56. package/dist/components/user.mjs +11 -10
  57. package/dist/index.d.mts +3 -2
  58. package/dist/index.d.ts +3 -2
  59. package/dist/index.js +648 -313
  60. package/dist/index.mjs +27 -19
  61. package/dist/plugin.mjs +2 -2
  62. package/dist/utils/index.mjs +15 -14
  63. package/dist/utils/merge-classes.mjs +11 -10
  64. package/package.json +1 -1
  65. package/dist/{chunk-CBIC7UDL.mjs → chunk-YISEC5JS.mjs} +3 -3
@@ -8,14 +8,22 @@ var divider = tv({
8
8
  variants: {
9
9
  orientation: {
10
10
  horizontal: "w-full h-divider",
11
- vertical: "h-full w-divider"
11
+ vertical: "h-auto min-h-2 self-stretch w-divider"
12
12
  }
13
13
  },
14
14
  defaultVariants: {
15
15
  orientation: "horizontal"
16
16
  }
17
17
  });
18
+ var labeledDivider = tv({
19
+ slots: {
20
+ base: "flex w-full items-center gap-3",
21
+ line: "h-divider flex-1 bg-divider",
22
+ label: "shrink-0 text-small text-default-500"
23
+ }
24
+ });
18
25
 
19
26
  export {
20
- divider
27
+ divider,
28
+ labeledDivider
21
29
  };
@@ -6,13 +6,13 @@ import {
6
6
  var shimmerText = tv({
7
7
  base: "sytech-shimmer-text animate-shimmer-text",
8
8
  variants: {
9
- direction: {
10
- auto: "",
11
- reverse: "sytech-shimmer-text-reverse"
9
+ once: {
10
+ true: "sytech-shimmer-text-once",
11
+ false: ""
12
12
  },
13
- iteration: {
14
- infinite: "",
15
- once: "sytech-shimmer-text-once"
13
+ reverse: {
14
+ true: "sytech-shimmer-text-reverse",
15
+ false: ""
16
16
  },
17
17
  disableAnimation: {
18
18
  true: "sytech-shimmer-text-disabled !animate-none",
@@ -20,8 +20,8 @@ var shimmerText = tv({
20
20
  }
21
21
  },
22
22
  defaultVariants: {
23
- direction: "auto",
24
- iteration: "infinite",
23
+ once: false,
24
+ reverse: false,
25
25
  disableAnimation: false
26
26
  }
27
27
  });
@@ -0,0 +1,96 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-RAC3PSZO.mjs";
4
+
5
+ // src/components/alert.ts
6
+ var accentColor = [
7
+ "text-[color:color-mix(in_oklab,oklch(0.6204_0.195_253.83)_70%,oklch(0.2103_0.0059_285.89)_30%)]",
8
+ "dark:text-[color:color-mix(in_oklab,oklch(0.6204_0.195_253.83)_80%,oklch(0.9911_0_0)_30%)]"
9
+ ];
10
+ var successColor = [
11
+ "text-[color:color-mix(in_oklab,oklch(0.7329_0.1935_150.81)_80%,oklch(0.2103_0.0059_285.89)_60%)]",
12
+ "dark:text-[color:color-mix(in_oklab,oklch(0.7329_0.1935_150.81)_80%,oklch(0.9911_0_0)_30%)]"
13
+ ];
14
+ var warningColor = [
15
+ "text-[color:color-mix(in_oklab,oklch(0.7819_0.1585_72.33)_80%,oklch(0.2103_0.0059_285.89)_70%)]",
16
+ "dark:text-[color:color-mix(in_oklab,oklch(0.8203_0.1388_76.34)_80%,oklch(0.9911_0_0)_30%)]"
17
+ ];
18
+ var dangerColor = [
19
+ "text-[color:color-mix(in_oklab,oklch(0.6532_0.2328_25.74)_70%,oklch(0.2103_0.0059_285.89)_40%)]",
20
+ "dark:text-[color:color-mix(in_oklab,oklch(0.594_0.1967_24.63)_80%,oklch(0.9911_0_0)_30%)]"
21
+ ];
22
+ var alertVariants = tv({
23
+ slots: {
24
+ base: [
25
+ "flex w-full flex-row items-start justify-start gap-1 px-4 py-3",
26
+ "rounded-[24px] bg-[oklch(100%_0_0)] text-[oklch(0.2103_0.0059_285.89)]",
27
+ "dark:bg-[oklch(0.2103_0.0059_285.89)] dark:text-[oklch(0.9911_0_0)]",
28
+ "shadow-[0_2px_4px_0_rgba(0,0,0,0.04),0_1px_2px_0_rgba(0,0,0,0.06),0_0_1px_0_rgba(0,0,0,0.06)]",
29
+ "dark:shadow-none"
30
+ ],
31
+ content: "flex h-full grow flex-col items-start",
32
+ indicator: [
33
+ "flex size-6 shrink-0 items-center justify-center p-1 select-none",
34
+ "[&_[data-slot=alert-default-icon]]:box-content",
35
+ "[&_[data-slot=alert-default-icon]]:size-4"
36
+ ],
37
+ title: "text-small leading-6 font-medium",
38
+ description: "text-small text-[oklch(0.5517_0.0138_285.94)] dark:text-[oklch(70.5%_0.015_286.067)]"
39
+ },
40
+ variants: {
41
+ status: {
42
+ default: {
43
+ base: "border-default-300",
44
+ indicator: "text-inherit",
45
+ title: "text-inherit"
46
+ },
47
+ accent: {
48
+ base: "border-primary-300",
49
+ indicator: accentColor,
50
+ title: accentColor
51
+ },
52
+ success: {
53
+ base: "border-success-300",
54
+ indicator: successColor,
55
+ title: successColor
56
+ },
57
+ warning: {
58
+ base: "border-warning-300",
59
+ indicator: warningColor,
60
+ title: warningColor
61
+ },
62
+ danger: {
63
+ base: "border-danger-300",
64
+ indicator: dangerColor,
65
+ title: dangerColor
66
+ }
67
+ },
68
+ radius: {
69
+ none: {
70
+ base: "rounded-none"
71
+ },
72
+ sm: {
73
+ base: "rounded-small"
74
+ },
75
+ md: {
76
+ base: "rounded-medium"
77
+ },
78
+ lg: {
79
+ base: "rounded-[24px]"
80
+ },
81
+ full: {
82
+ base: "rounded-full"
83
+ }
84
+ }
85
+ },
86
+ defaultVariants: {
87
+ radius: "lg",
88
+ status: "default"
89
+ }
90
+ });
91
+ var alert = alertVariants;
92
+
93
+ export {
94
+ alertVariants,
95
+ alert
96
+ };
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  accordion,
3
3
  accordionItem
4
- } from "../chunk-AI6SQS6Z.mjs";
5
- import "../chunk-GQT3YUX3.mjs";
6
- import "../chunk-P2SWF4YK.mjs";
7
- import "../chunk-LV6ZC7XH.mjs";
4
+ } from "../chunk-22RNS2JQ.mjs";
5
+ import "../chunk-CR7SUL27.mjs";
6
+ import "../chunk-LD2JADOO.mjs";
8
7
  import "../chunk-27EH4573.mjs";
9
8
  import "../chunk-6Q4A5IGD.mjs";
10
9
  import "../chunk-7MY46DKJ.mjs";
11
10
  import "../chunk-7CAOOET2.mjs";
12
11
  import "../chunk-GYRKKQKN.mjs";
13
- import "../chunk-CR7SUL27.mjs";
12
+ import "../chunk-HRULT2QB.mjs";
14
13
  import "../chunk-3PBT3W4C.mjs";
14
+ import "../chunk-TYJNRAT2.mjs";
15
15
  import "../chunk-M5F7VFZT.mjs";
16
- import "../chunk-XOVETH7K.mjs";
16
+ import "../chunk-63TVI5PY.mjs";
17
17
  import "../chunk-4XFAHRMJ.mjs";
18
18
  import "../chunk-OBSH26UE.mjs";
19
19
  import "../chunk-K6X3VPO4.mjs";
20
- import "../chunk-HRULT2QB.mjs";
21
- import "../chunk-TYJNRAT2.mjs";
20
+ import "../chunk-T754O54S.mjs";
22
21
  import "../chunk-GXDNTAQH.mjs";
23
22
  import "../chunk-RAC3PSZO.mjs";
23
+ import "../chunk-GQT3YUX3.mjs";
24
+ import "../chunk-P2SWF4YK.mjs";
24
25
  import "../chunk-QU72GCNK.mjs";
25
- import "../chunk-CBIC7UDL.mjs";
26
- import "../chunk-D2XMP2NC.mjs";
26
+ import "../chunk-YISEC5JS.mjs";
27
27
  import "../chunk-JGY6VQQQ.mjs";
28
28
  import "../chunk-UJC5GXOO.mjs";
29
29
  import "../chunk-FJOYYPB2.mjs";
@@ -32,6 +32,7 @@ import "../chunk-GSRZWDGA.mjs";
32
32
  import "../chunk-AWXUGVFR.mjs";
33
33
  import "../chunk-MPVWW3DX.mjs";
34
34
  import "../chunk-WH6SPIFG.mjs";
35
+ import "../chunk-D2XMP2NC.mjs";
35
36
  import "../chunk-WQEDQHKX.mjs";
36
37
  import "../chunk-CPSLANMP.mjs";
37
38
  import "../chunk-FFKHVGFX.mjs";
@@ -1,43 +1,32 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
  import { VariantProps } from 'tailwind-variants';
3
3
 
4
- /**
5
- * Alert wrapper **Tailwind Variants** component
6
- *
7
- * @example
8
- * ```js
9
- * const {base, mainWrapper, title, description, closeButton, alertIcon} = alert({...})
10
- *
11
- *
12
- * <div className={base()}>
13
- * {alertIcon}
14
- * <div className={mainWrapper()}>
15
- * <div className={title()}>Title</div>
16
- * <div className={description()}>Description</div>
17
- * </div>
18
- * <button>
19
- * // close button
20
- * </button>
21
- * </div>
22
- * ```
23
- */
24
- declare const alert: tailwind_variants.TVReturnType<{
25
- color: {
26
- default: {};
27
- primary: {};
28
- secondary: {};
29
- success: {};
30
- warning: {};
31
- danger: {};
32
- };
33
- variant: {
34
- solid: {};
35
- flat: {};
36
- faded: {
4
+ declare const alertVariants: tailwind_variants.TVReturnType<{
5
+ status: {
6
+ default: {
7
+ base: string;
8
+ indicator: string;
9
+ title: string;
10
+ };
11
+ accent: {
12
+ base: string;
13
+ indicator: string[];
14
+ title: string[];
15
+ };
16
+ success: {
17
+ base: string;
18
+ indicator: string[];
19
+ title: string[];
20
+ };
21
+ warning: {
37
22
  base: string;
23
+ indicator: string[];
24
+ title: string[];
38
25
  };
39
- bordered: {
26
+ danger: {
40
27
  base: string;
28
+ indicator: string[];
29
+ title: string[];
41
30
  };
42
31
  };
43
32
  radius: {
@@ -57,48 +46,89 @@ declare const alert: tailwind_variants.TVReturnType<{
57
46
  base: string;
58
47
  };
59
48
  };
60
- hideIcon: {
61
- true: {
62
- iconWrapper: string;
49
+ }, {
50
+ base: string[];
51
+ content: string;
52
+ indicator: string[];
53
+ title: string;
54
+ description: string;
55
+ }, undefined, {
56
+ status: {
57
+ default: {
58
+ base: string;
59
+ indicator: string;
60
+ title: string;
63
61
  };
64
- };
65
- hideIconWrapper: {
66
- true: {
62
+ accent: {
67
63
  base: string;
68
- iconWrapper: string;
64
+ indicator: string[];
65
+ title: string[];
66
+ };
67
+ success: {
68
+ base: string;
69
+ indicator: string[];
70
+ title: string[];
71
+ };
72
+ warning: {
73
+ base: string;
74
+ indicator: string[];
75
+ title: string[];
76
+ };
77
+ danger: {
78
+ base: string;
79
+ indicator: string[];
80
+ title: string[];
69
81
  };
70
82
  };
71
- hasContent: {
72
- false: {
83
+ radius: {
84
+ none: {
85
+ base: string;
86
+ };
87
+ sm: {
88
+ base: string;
89
+ };
90
+ md: {
91
+ base: string;
92
+ };
93
+ lg: {
94
+ base: string;
95
+ };
96
+ full: {
73
97
  base: string;
74
- mainWrapper: string;
75
98
  };
76
99
  };
77
100
  }, {
78
- base: string;
79
- mainWrapper: string;
101
+ base: string[];
102
+ content: string;
103
+ indicator: string[];
80
104
  title: string;
81
105
  description: string;
82
- closeButton: string;
83
- iconWrapper: string;
84
- alertIcon: string;
85
- }, undefined, {
86
- color: {
87
- default: {};
88
- primary: {};
89
- secondary: {};
90
- success: {};
91
- warning: {};
92
- danger: {};
93
- };
94
- variant: {
95
- solid: {};
96
- flat: {};
97
- faded: {
106
+ }, tailwind_variants.TVReturnType<{
107
+ status: {
108
+ default: {
109
+ base: string;
110
+ indicator: string;
111
+ title: string;
112
+ };
113
+ accent: {
114
+ base: string;
115
+ indicator: string[];
116
+ title: string[];
117
+ };
118
+ success: {
119
+ base: string;
120
+ indicator: string[];
121
+ title: string[];
122
+ };
123
+ warning: {
98
124
  base: string;
125
+ indicator: string[];
126
+ title: string[];
99
127
  };
100
- bordered: {
128
+ danger: {
101
129
  base: string;
130
+ indicator: string[];
131
+ title: string[];
102
132
  };
103
133
  };
104
134
  radius: {
@@ -118,48 +148,92 @@ declare const alert: tailwind_variants.TVReturnType<{
118
148
  base: string;
119
149
  };
120
150
  };
121
- hideIcon: {
122
- true: {
123
- iconWrapper: string;
151
+ }, {
152
+ base: string[];
153
+ content: string;
154
+ indicator: string[];
155
+ title: string;
156
+ description: string;
157
+ }, undefined, unknown, unknown, undefined>>;
158
+ type AlertVariants = VariantProps<typeof alertVariants>;
159
+ type AlertSlots = keyof ReturnType<typeof alertVariants>;
160
+ declare const alert: tailwind_variants.TVReturnType<{
161
+ status: {
162
+ default: {
163
+ base: string;
164
+ indicator: string;
165
+ title: string;
124
166
  };
125
- };
126
- hideIconWrapper: {
127
- true: {
167
+ accent: {
128
168
  base: string;
129
- iconWrapper: string;
169
+ indicator: string[];
170
+ title: string[];
171
+ };
172
+ success: {
173
+ base: string;
174
+ indicator: string[];
175
+ title: string[];
176
+ };
177
+ warning: {
178
+ base: string;
179
+ indicator: string[];
180
+ title: string[];
181
+ };
182
+ danger: {
183
+ base: string;
184
+ indicator: string[];
185
+ title: string[];
130
186
  };
131
187
  };
132
- hasContent: {
133
- false: {
188
+ radius: {
189
+ none: {
190
+ base: string;
191
+ };
192
+ sm: {
193
+ base: string;
194
+ };
195
+ md: {
196
+ base: string;
197
+ };
198
+ lg: {
199
+ base: string;
200
+ };
201
+ full: {
134
202
  base: string;
135
- mainWrapper: string;
136
203
  };
137
204
  };
138
205
  }, {
139
- base: string;
140
- mainWrapper: string;
206
+ base: string[];
207
+ content: string;
208
+ indicator: string[];
141
209
  title: string;
142
210
  description: string;
143
- closeButton: string;
144
- iconWrapper: string;
145
- alertIcon: string;
146
- }, tailwind_variants.TVReturnType<{
147
- color: {
148
- default: {};
149
- primary: {};
150
- secondary: {};
151
- success: {};
152
- warning: {};
153
- danger: {};
154
- };
155
- variant: {
156
- solid: {};
157
- flat: {};
158
- faded: {
211
+ }, undefined, {
212
+ status: {
213
+ default: {
214
+ base: string;
215
+ indicator: string;
216
+ title: string;
217
+ };
218
+ accent: {
219
+ base: string;
220
+ indicator: string[];
221
+ title: string[];
222
+ };
223
+ success: {
224
+ base: string;
225
+ indicator: string[];
226
+ title: string[];
227
+ };
228
+ warning: {
159
229
  base: string;
230
+ indicator: string[];
231
+ title: string[];
160
232
  };
161
- bordered: {
233
+ danger: {
162
234
  base: string;
235
+ indicator: string[];
236
+ title: string[];
163
237
  };
164
238
  };
165
239
  radius: {
@@ -179,33 +253,64 @@ declare const alert: tailwind_variants.TVReturnType<{
179
253
  base: string;
180
254
  };
181
255
  };
182
- hideIcon: {
183
- true: {
184
- iconWrapper: string;
256
+ }, {
257
+ base: string[];
258
+ content: string;
259
+ indicator: string[];
260
+ title: string;
261
+ description: string;
262
+ }, tailwind_variants.TVReturnType<{
263
+ status: {
264
+ default: {
265
+ base: string;
266
+ indicator: string;
267
+ title: string;
185
268
  };
186
- };
187
- hideIconWrapper: {
188
- true: {
269
+ accent: {
189
270
  base: string;
190
- iconWrapper: string;
271
+ indicator: string[];
272
+ title: string[];
273
+ };
274
+ success: {
275
+ base: string;
276
+ indicator: string[];
277
+ title: string[];
278
+ };
279
+ warning: {
280
+ base: string;
281
+ indicator: string[];
282
+ title: string[];
283
+ };
284
+ danger: {
285
+ base: string;
286
+ indicator: string[];
287
+ title: string[];
191
288
  };
192
289
  };
193
- hasContent: {
194
- false: {
290
+ radius: {
291
+ none: {
292
+ base: string;
293
+ };
294
+ sm: {
295
+ base: string;
296
+ };
297
+ md: {
298
+ base: string;
299
+ };
300
+ lg: {
301
+ base: string;
302
+ };
303
+ full: {
195
304
  base: string;
196
- mainWrapper: string;
197
305
  };
198
306
  };
199
307
  }, {
200
- base: string;
201
- mainWrapper: string;
308
+ base: string[];
309
+ content: string;
310
+ indicator: string[];
202
311
  title: string;
203
312
  description: string;
204
- closeButton: string;
205
- iconWrapper: string;
206
- alertIcon: string;
207
313
  }, undefined, unknown, unknown, undefined>>;
208
- type AlertVariantProps = VariantProps<typeof alert>;
209
- type AlertSlots = keyof ReturnType<typeof alert>;
314
+ type AlertVariantProps = AlertVariants;
210
315
 
211
- export { type AlertSlots, type AlertVariantProps, alert };
316
+ export { type AlertSlots, type AlertVariantProps, type AlertVariants, alert, alertVariants };