@kopexa/theme 1.4.4 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/LICENSE +201 -0
  2. package/dist/{chunk-2C5EQ4P3.mjs → chunk-25L2JS6A.mjs} +9 -1
  3. package/dist/chunk-4VKJFW6Y.mjs +122 -0
  4. package/dist/{chunk-PQSL3W26.mjs → chunk-7CM52H5K.mjs} +1 -1
  5. package/dist/{chunk-KE2E5LGH.mjs → chunk-BIRJNNEY.mjs} +1 -1
  6. package/dist/chunk-CPEP2RO4.mjs +17 -0
  7. package/dist/chunk-Q5DCJR2X.mjs +172 -0
  8. package/dist/components/alert-dialog.d.mts +68 -0
  9. package/dist/components/alert-dialog.d.ts +68 -0
  10. package/dist/components/alert-dialog.js +41 -0
  11. package/dist/components/alert-dialog.mjs +6 -0
  12. package/dist/components/avatar.d.mts +203 -0
  13. package/dist/components/avatar.d.ts +203 -0
  14. package/dist/components/avatar.js +253 -0
  15. package/dist/components/avatar.mjs +8 -0
  16. package/dist/components/button.mjs +2 -2
  17. package/dist/components/card.d.mts +209 -0
  18. package/dist/components/card.d.ts +209 -0
  19. package/dist/components/card.js +146 -0
  20. package/dist/components/card.mjs +6 -0
  21. package/dist/components/command.d.mts +9 -9
  22. package/dist/components/command.d.ts +9 -9
  23. package/dist/components/dropdown-menu.d.mts +6 -6
  24. package/dist/components/dropdown-menu.d.ts +6 -6
  25. package/dist/components/index.d.mts +3 -0
  26. package/dist/components/index.d.ts +3 -0
  27. package/dist/components/index.js +332 -25
  28. package/dist/components/index.mjs +27 -15
  29. package/dist/components/input.mjs +2 -2
  30. package/dist/index.css +3 -3
  31. package/dist/index.d.mts +3 -0
  32. package/dist/index.d.ts +3 -0
  33. package/dist/index.js +332 -25
  34. package/dist/index.mjs +28 -16
  35. package/dist/utils/classes.d.mts +5 -1
  36. package/dist/utils/classes.d.ts +5 -1
  37. package/dist/utils/classes.js +11 -2
  38. package/dist/utils/classes.mjs +5 -3
  39. package/package.json +3 -3
  40. /package/dist/{chunk-N2UQGV46.mjs → chunk-PWBTAIYS.mjs} +0 -0
package/dist/index.js CHANGED
@@ -20,8 +20,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ alertDialog: () => alertDialog,
24
+ avatar: () => avatar,
23
25
  button: () => button,
24
26
  calendar: () => calendar,
27
+ card: () => card,
25
28
  chip: () => chip,
26
29
  command: () => command,
27
30
  dialog: () => dialog,
@@ -36,8 +39,22 @@ __export(index_exports, {
36
39
  });
37
40
  module.exports = __toCommonJS(index_exports);
38
41
 
39
- // src/components/button.ts
42
+ // src/components/alert-dialog.ts
40
43
  var import_tailwind_variants = require("tailwind-variants");
44
+ var alertDialog = (0, import_tailwind_variants.tv)({
45
+ slots: {
46
+ overlay: "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
47
+ content: "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
48
+ header: "flex flex-col gap-2 text-center sm:text-left",
49
+ footer: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
50
+ title: "text-lg font-semibold",
51
+ description: "text-muted-foreground text-sm",
52
+ action: ""
53
+ }
54
+ });
55
+
56
+ // src/components/avatar.ts
57
+ var import_tailwind_variants2 = require("tailwind-variants");
41
58
 
42
59
  // src/utils/classes.ts
43
60
  var focusVisibleClasses = [
@@ -47,6 +64,13 @@ var focusVisibleClasses = [
47
64
  var focusWithinClasses = [
48
65
  "focus-within:outline-2 focus-within:outline-ring focus-within:outline-offset-2"
49
66
  ];
67
+ var translateCenterClasses = [
68
+ "absolute",
69
+ "top-1/2",
70
+ "left-1/2",
71
+ "-translate-x-1/2",
72
+ "-translate-y-1/2"
73
+ ];
50
74
 
51
75
  // src/utils/variants.ts
52
76
  var solid = {
@@ -98,8 +122,169 @@ var colorVariants = {
98
122
  faded
99
123
  };
100
124
 
125
+ // src/components/avatar.ts
126
+ var avatar = (0, import_tailwind_variants2.tv)({
127
+ slots: {
128
+ root: [
129
+ "flex",
130
+ "relative",
131
+ "justify-center",
132
+ "items-center",
133
+ "box-border",
134
+ "overflow-hidden",
135
+ "align-middle",
136
+ "text-white",
137
+ "z-0",
138
+ // focus ring
139
+ ...focusVisibleClasses
140
+ ],
141
+ img: [
142
+ "flex",
143
+ "object-cover",
144
+ "w-full",
145
+ "h-full",
146
+ "transition-opacity",
147
+ "!duration-500",
148
+ "opacity-0",
149
+ "data-[status=loaded]:opacity-100"
150
+ ],
151
+ fallback: [
152
+ ...translateCenterClasses,
153
+ "flex",
154
+ "items-center",
155
+ "justify-center"
156
+ ],
157
+ name: [
158
+ ...translateCenterClasses,
159
+ "font-normal",
160
+ "text-center",
161
+ "text-inherit"
162
+ ],
163
+ icon: [
164
+ ...translateCenterClasses,
165
+ "flex",
166
+ "items-center",
167
+ "justify-center",
168
+ "text-inherit",
169
+ "w-full",
170
+ "h-full",
171
+ "opacity-30"
172
+ ]
173
+ },
174
+ variants: {
175
+ size: {
176
+ sm: {
177
+ root: "w-8 h-8 text-tiny"
178
+ },
179
+ md: {
180
+ root: "w-10 h-10 text-tiny"
181
+ },
182
+ lg: {
183
+ root: "w-14 h-14 text-small"
184
+ }
185
+ },
186
+ color: {
187
+ default: {
188
+ root: colorVariants.solid.default
189
+ },
190
+ primary: {
191
+ root: colorVariants.solid.primary
192
+ },
193
+ secondary: {
194
+ root: colorVariants.solid.secondary
195
+ },
196
+ success: {
197
+ root: colorVariants.solid.success
198
+ },
199
+ warning: {
200
+ root: colorVariants.solid.warning
201
+ },
202
+ destructive: {
203
+ root: colorVariants.solid.destructive
204
+ }
205
+ },
206
+ radius: {
207
+ none: {
208
+ root: "rounded-none"
209
+ },
210
+ sm: {
211
+ root: "rounded-sm"
212
+ },
213
+ md: {
214
+ root: "rounded-md"
215
+ },
216
+ lg: {
217
+ root: "rounded-lg"
218
+ },
219
+ full: {
220
+ root: "rounded-full"
221
+ }
222
+ },
223
+ isBordered: {
224
+ true: {
225
+ root: "ring-2 ring-offset-2 ring-offset-background"
226
+ }
227
+ },
228
+ isDisabled: {
229
+ true: {
230
+ root: "opacity-50"
231
+ }
232
+ }
233
+ },
234
+ defaultVariants: {
235
+ size: "md",
236
+ radius: "full",
237
+ color: "default"
238
+ },
239
+ compoundVariants: [
240
+ {
241
+ color: "default",
242
+ isBordered: true,
243
+ class: {
244
+ root: "ring-default"
245
+ }
246
+ },
247
+ {
248
+ color: "primary",
249
+ isBordered: true,
250
+ class: {
251
+ root: "ring-primary"
252
+ }
253
+ },
254
+ {
255
+ color: "secondary",
256
+ isBordered: true,
257
+ class: {
258
+ root: "ring-secondary"
259
+ }
260
+ },
261
+ {
262
+ color: "success",
263
+ isBordered: true,
264
+ class: {
265
+ root: "ring-success"
266
+ }
267
+ },
268
+ {
269
+ color: "warning",
270
+ isBordered: true,
271
+ class: {
272
+ root: "ring-warning"
273
+ }
274
+ },
275
+ {
276
+ color: "destructive",
277
+ isBordered: true,
278
+ class: {
279
+ root: "ring-destructive"
280
+ }
281
+ }
282
+ ]
283
+ });
284
+
101
285
  // src/components/button.ts
102
- var button = (0, import_tailwind_variants.tv)({
286
+ var import_tailwind_variants3 = require("tailwind-variants");
287
+ var button = (0, import_tailwind_variants3.tv)({
103
288
  base: [
104
289
  "group relative inline-flex items-center justify-center select-none",
105
290
  "box-border appearance-none",
@@ -246,8 +431,8 @@ var button = (0, import_tailwind_variants.tv)({
246
431
  });
247
432
 
248
433
  // src/components/calendar.ts
249
- var import_tailwind_variants2 = require("tailwind-variants");
250
- var calendar = (0, import_tailwind_variants2.tv)({
434
+ var import_tailwind_variants4 = require("tailwind-variants");
435
+ var calendar = (0, import_tailwind_variants4.tv)({
251
436
  slots: {
252
437
  base: [
253
438
  "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
@@ -298,9 +483,128 @@ var calendar = (0, import_tailwind_variants2.tv)({
298
483
  }
299
484
  });
300
485
 
486
+ // src/components/card.ts
487
+ var import_tailwind_variants5 = require("tailwind-variants");
488
+ var card = (0, import_tailwind_variants5.tv)({
489
+ slots: {
490
+ root: [
491
+ "flex flex-col relative overflow-hidden h-auto outline-hidden text-card-foreground bg-card box-border",
492
+ "border-2 border-transparent"
493
+ ],
494
+ header: [
495
+ "flex",
496
+ "p-3",
497
+ "z-10",
498
+ "w-full",
499
+ "justify-start",
500
+ "items-center",
501
+ "shrink-0",
502
+ "overflow-inherit",
503
+ "color-inherit",
504
+ "subpixel-antialiased"
505
+ ],
506
+ body: [
507
+ "relative",
508
+ "flex",
509
+ "flex-1",
510
+ "w-full",
511
+ "p-3",
512
+ "flex-auto",
513
+ "flex-col",
514
+ "place-content-inherit",
515
+ "align-items-inherit",
516
+ "h-auto",
517
+ "break-words",
518
+ "text-left",
519
+ "overflow-y-auto",
520
+ "subpixel-antialiased"
521
+ ],
522
+ footer: [
523
+ "p-3",
524
+ "h-auto",
525
+ "flex",
526
+ "w-full",
527
+ "items-center",
528
+ "overflow-hidden",
529
+ "color-inherit",
530
+ "subpixel-antialiased"
531
+ ]
532
+ },
533
+ variants: {
534
+ shadow: {
535
+ none: {
536
+ root: "shadow-none"
537
+ },
538
+ sm: {
539
+ root: "shadow-sm"
540
+ },
541
+ md: {
542
+ root: "shadow-md"
543
+ },
544
+ lg: {
545
+ root: "shadow-lg"
546
+ }
547
+ },
548
+ radius: {
549
+ none: {
550
+ root: "rounded-none",
551
+ header: "rounded-none",
552
+ footer: "rounded-none"
553
+ },
554
+ sm: {
555
+ root: "rounded-sm",
556
+ header: "rounded-t-sm",
557
+ footer: "rounded-b-sm"
558
+ },
559
+ md: {
560
+ root: "rounded-md",
561
+ header: "rounded-t-md",
562
+ footer: "rounded-b-md"
563
+ },
564
+ lg: {
565
+ root: "rounded-lg",
566
+ header: "rounded-t-lg",
567
+ footer: "rounded-b-lg"
568
+ }
569
+ },
570
+ fullWidth: {
571
+ true: {
572
+ root: "w-full"
573
+ }
574
+ },
575
+ isHoverable: {
576
+ true: {
577
+ root: "hover:shadow-xl hover:-translate-y-1 transition-all duration-300 hover:border-primary-600"
578
+ }
579
+ },
580
+ isPressable: {
581
+ true: { root: "cursor-pointer" }
582
+ },
583
+ isBlurred: {
584
+ true: {
585
+ root: ["bg-card/80", "backdrop-blur-md", "backdrop-saturate-150"]
586
+ }
587
+ },
588
+ isDisabled: {
589
+ true: {
590
+ root: "opacity-50 cursor-not-allowed pointer-events-none"
591
+ }
592
+ }
593
+ },
594
+ defaultVariants: {
595
+ radius: "lg",
596
+ shadow: "md",
597
+ fullWidth: false,
598
+ isHoverable: false,
599
+ isPressable: false,
600
+ isBlurred: false,
601
+ isDisabled: false
602
+ }
603
+ });
604
+
301
605
  // src/components/chip.ts
302
- var import_tailwind_variants3 = require("tailwind-variants");
303
- var chip = (0, import_tailwind_variants3.tv)({
606
+ var import_tailwind_variants6 = require("tailwind-variants");
607
+ var chip = (0, import_tailwind_variants6.tv)({
304
608
  slots: {
305
609
  root: [
306
610
  "relative",
@@ -616,8 +920,8 @@ var chip = (0, import_tailwind_variants3.tv)({
616
920
  });
617
921
 
618
922
  // src/components/command.ts
619
- var import_tailwind_variants4 = require("tailwind-variants");
620
- var command = (0, import_tailwind_variants4.tv)({
923
+ var import_tailwind_variants7 = require("tailwind-variants");
924
+ var command = (0, import_tailwind_variants7.tv)({
621
925
  slots: {
622
926
  root: "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
623
927
  inputWrapper: "flex h-9 items-center gap-2 border-b px-3",
@@ -636,8 +940,8 @@ var command = (0, import_tailwind_variants4.tv)({
636
940
  });
637
941
 
638
942
  // src/components/dialog.ts
639
- var import_tailwind_variants5 = require("tailwind-variants");
640
- var dialog = (0, import_tailwind_variants5.tv)({
943
+ var import_tailwind_variants8 = require("tailwind-variants");
944
+ var dialog = (0, import_tailwind_variants8.tv)({
641
945
  slots: {
642
946
  overlay: ["fixed inset-0 z-50 bg-black/25"],
643
947
  content: [
@@ -728,8 +1032,8 @@ var dialog = (0, import_tailwind_variants5.tv)({
728
1032
  });
729
1033
 
730
1034
  // src/components/drawer.ts
731
- var import_tailwind_variants6 = require("tailwind-variants");
732
- var drawer = (0, import_tailwind_variants6.tv)({
1035
+ var import_tailwind_variants9 = require("tailwind-variants");
1036
+ var drawer = (0, import_tailwind_variants9.tv)({
733
1037
  slots: {
734
1038
  overlay: dialog.slots.overlay,
735
1039
  content: [
@@ -809,8 +1113,8 @@ var drawer = (0, import_tailwind_variants6.tv)({
809
1113
  });
810
1114
 
811
1115
  // src/components/dropdown-menu.ts
812
- var import_tailwind_variants7 = require("tailwind-variants");
813
- var dropdownMenu = (0, import_tailwind_variants7.tv)({
1116
+ var import_tailwind_variants10 = require("tailwind-variants");
1117
+ var dropdownMenu = (0, import_tailwind_variants10.tv)({
814
1118
  slots: {
815
1119
  root: "",
816
1120
  content: "min-w-56 bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
@@ -830,14 +1134,14 @@ var dropdownMenu = (0, import_tailwind_variants7.tv)({
830
1134
  });
831
1135
 
832
1136
  // src/components/input.ts
833
- var import_tailwind_variants8 = require("tailwind-variants");
834
- var passwordInput = (0, import_tailwind_variants8.tv)({
1137
+ var import_tailwind_variants11 = require("tailwind-variants");
1138
+ var passwordInput = (0, import_tailwind_variants11.tv)({
835
1139
  slots: {
836
1140
  button: "focus:outline-hidden",
837
1141
  icon: "pointer-events-none text-muted-foreground"
838
1142
  }
839
1143
  });
840
- var input = (0, import_tailwind_variants8.tv)({
1144
+ var input = (0, import_tailwind_variants11.tv)({
841
1145
  base: [],
842
1146
  slots: {
843
1147
  inputWrapper: [
@@ -918,8 +1222,8 @@ var input = (0, import_tailwind_variants8.tv)({
918
1222
  });
919
1223
 
920
1224
  // src/components/page-layout.ts
921
- var import_tailwind_variants9 = require("tailwind-variants");
922
- var pageLayout = (0, import_tailwind_variants9.tv)({
1225
+ var import_tailwind_variants12 = require("tailwind-variants");
1226
+ var pageLayout = (0, import_tailwind_variants12.tv)({
923
1227
  slots: {
924
1228
  root: "",
925
1229
  wrapper: "flex mx-auto flex-wrap",
@@ -1016,8 +1320,8 @@ var pageLayout = (0, import_tailwind_variants9.tv)({
1016
1320
  });
1017
1321
 
1018
1322
  // src/components/popover.ts
1019
- var import_tailwind_variants10 = require("tailwind-variants");
1020
- var popover = (0, import_tailwind_variants10.tv)({
1323
+ var import_tailwind_variants13 = require("tailwind-variants");
1324
+ var popover = (0, import_tailwind_variants13.tv)({
1021
1325
  slots: {
1022
1326
  content: [
1023
1327
  "bg-popover text-popover-foreground z-50 w-72",
@@ -1028,8 +1332,8 @@ var popover = (0, import_tailwind_variants10.tv)({
1028
1332
  });
1029
1333
 
1030
1334
  // src/components/spinner.ts
1031
- var import_tailwind_variants11 = require("tailwind-variants");
1032
- var spinner = (0, import_tailwind_variants11.tv)({
1335
+ var import_tailwind_variants14 = require("tailwind-variants");
1336
+ var spinner = (0, import_tailwind_variants14.tv)({
1033
1337
  slots: {
1034
1338
  base: "relative inline-flex flex-col gap-2 items-center justify-center",
1035
1339
  wrapper: "relative flex",
@@ -1146,8 +1450,8 @@ var spinner = (0, import_tailwind_variants11.tv)({
1146
1450
  });
1147
1451
 
1148
1452
  // src/components/tooltip.ts
1149
- var import_tailwind_variants12 = require("tailwind-variants");
1150
- var tooltip = (0, import_tailwind_variants12.tv)({
1453
+ var import_tailwind_variants15 = require("tailwind-variants");
1454
+ var tooltip = (0, import_tailwind_variants15.tv)({
1151
1455
  slots: {
1152
1456
  content: [
1153
1457
  "bg-primary text-primary-foreground",
@@ -1159,8 +1463,11 @@ var tooltip = (0, import_tailwind_variants12.tv)({
1159
1463
  });
1160
1464
  // Annotate the CommonJS export names for ESM import in node:
1161
1465
  0 && (module.exports = {
1466
+ alertDialog,
1467
+ avatar,
1162
1468
  button,
1163
1469
  calendar,
1470
+ card,
1164
1471
  chip,
1165
1472
  command,
1166
1473
  dialog,
package/dist/index.mjs CHANGED
@@ -1,8 +1,21 @@
1
- import "./chunk-N2UQGV46.mjs";
1
+ import "./chunk-XSN6P5JL.mjs";
2
+ import "./chunk-PWBTAIYS.mjs";
3
+ import {
4
+ tooltip
5
+ } from "./chunk-SVCFD7RR.mjs";
6
+ import {
7
+ drawer
8
+ } from "./chunk-UI2M2MFB.mjs";
9
+ import {
10
+ dialog
11
+ } from "./chunk-5DF3M5JP.mjs";
12
+ import {
13
+ dropdownMenu
14
+ } from "./chunk-EXBKQDH5.mjs";
2
15
  import {
3
16
  input,
4
17
  passwordInput
5
- } from "./chunk-PQSL3W26.mjs";
18
+ } from "./chunk-7CM52H5K.mjs";
6
19
  import {
7
20
  pageLayout
8
21
  } from "./chunk-GQV7INYX.mjs";
@@ -13,16 +26,21 @@ import {
13
26
  spinner
14
27
  } from "./chunk-4UDOCFU5.mjs";
15
28
  import {
16
- tooltip
17
- } from "./chunk-SVCFD7RR.mjs";
18
- import "./chunk-XSN6P5JL.mjs";
29
+ alertDialog
30
+ } from "./chunk-CPEP2RO4.mjs";
31
+ import {
32
+ avatar
33
+ } from "./chunk-Q5DCJR2X.mjs";
19
34
  import {
20
35
  button
21
- } from "./chunk-KE2E5LGH.mjs";
22
- import "./chunk-2C5EQ4P3.mjs";
36
+ } from "./chunk-BIRJNNEY.mjs";
37
+ import "./chunk-25L2JS6A.mjs";
23
38
  import {
24
39
  calendar
25
40
  } from "./chunk-JWF5ABNP.mjs";
41
+ import {
42
+ card
43
+ } from "./chunk-4VKJFW6Y.mjs";
26
44
  import {
27
45
  chip
28
46
  } from "./chunk-32L6KXLV.mjs";
@@ -30,18 +48,12 @@ import "./chunk-67PPUTSS.mjs";
30
48
  import {
31
49
  command
32
50
  } from "./chunk-YPHFKGNI.mjs";
33
- import {
34
- drawer
35
- } from "./chunk-UI2M2MFB.mjs";
36
- import {
37
- dialog
38
- } from "./chunk-5DF3M5JP.mjs";
39
- import {
40
- dropdownMenu
41
- } from "./chunk-EXBKQDH5.mjs";
42
51
  export {
52
+ alertDialog,
53
+ avatar,
43
54
  button,
44
55
  calendar,
56
+ card,
45
57
  chip,
46
58
  command,
47
59
  dialog,
@@ -4,5 +4,9 @@
4
4
  declare const focusVisibleClasses: string[];
5
5
  declare const focusWithinClasses: string[];
6
6
  declare const dataFocusVisibleClasses: string[];
7
+ /**
8
+ * This classes centers the element by using absolute positioning.
9
+ */
10
+ declare const translateCenterClasses: string[];
7
11
 
8
- export { dataFocusVisibleClasses, focusVisibleClasses, focusWithinClasses };
12
+ export { dataFocusVisibleClasses, focusVisibleClasses, focusWithinClasses, translateCenterClasses };
@@ -4,5 +4,9 @@
4
4
  declare const focusVisibleClasses: string[];
5
5
  declare const focusWithinClasses: string[];
6
6
  declare const dataFocusVisibleClasses: string[];
7
+ /**
8
+ * This classes centers the element by using absolute positioning.
9
+ */
10
+ declare const translateCenterClasses: string[];
7
11
 
8
- export { dataFocusVisibleClasses, focusVisibleClasses, focusWithinClasses };
12
+ export { dataFocusVisibleClasses, focusVisibleClasses, focusWithinClasses, translateCenterClasses };
@@ -22,7 +22,8 @@ var classes_exports = {};
22
22
  __export(classes_exports, {
23
23
  dataFocusVisibleClasses: () => dataFocusVisibleClasses,
24
24
  focusVisibleClasses: () => focusVisibleClasses,
25
- focusWithinClasses: () => focusWithinClasses
25
+ focusWithinClasses: () => focusWithinClasses,
26
+ translateCenterClasses: () => translateCenterClasses
26
27
  });
27
28
  module.exports = __toCommonJS(classes_exports);
28
29
  var focusVisibleClasses = [
@@ -33,9 +34,17 @@ var focusWithinClasses = [
33
34
  "focus-within:outline-2 focus-within:outline-ring focus-within:outline-offset-2"
34
35
  ];
35
36
  var dataFocusVisibleClasses = ["outline-hidden"];
37
+ var translateCenterClasses = [
38
+ "absolute",
39
+ "top-1/2",
40
+ "left-1/2",
41
+ "-translate-x-1/2",
42
+ "-translate-y-1/2"
43
+ ];
36
44
  // Annotate the CommonJS export names for ESM import in node:
37
45
  0 && (module.exports = {
38
46
  dataFocusVisibleClasses,
39
47
  focusVisibleClasses,
40
- focusWithinClasses
48
+ focusWithinClasses,
49
+ translateCenterClasses
41
50
  });
@@ -1,10 +1,12 @@
1
1
  import {
2
2
  dataFocusVisibleClasses,
3
3
  focusVisibleClasses,
4
- focusWithinClasses
5
- } from "../chunk-2C5EQ4P3.mjs";
4
+ focusWithinClasses,
5
+ translateCenterClasses
6
+ } from "../chunk-25L2JS6A.mjs";
6
7
  export {
7
8
  dataFocusVisibleClasses,
8
9
  focusVisibleClasses,
9
- focusWithinClasses
10
+ focusWithinClasses,
11
+ translateCenterClasses
10
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/theme",
3
- "version": "1.4.4",
3
+ "version": "1.5.1",
4
4
  "description": "The default theme for Kopexa components",
5
5
  "keywords": [
6
6
  "theme",
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "author": "Kopexa <support@kopexa.com>",
15
15
  "homepage": "https://kopexa.com",
16
- "license": "MIT",
16
+ "license": "Apache-2.0",
17
17
  "main": "dist/index.js",
18
18
  "sideEffects": false,
19
19
  "files": [
@@ -45,7 +45,7 @@
45
45
  "tailwind-merge": "3.3.1",
46
46
  "tailwind-variants": "1.0.0",
47
47
  "tw-animate-css": "^1.3.5",
48
- "@kopexa/shared-utils": "1.1.2"
48
+ "@kopexa/shared-utils": "1.1.3"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "tailwindcss": ">=4.0.0"
File without changes