@kopexa/theme 1.4.2 → 1.4.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/dist/{chunk-5FI7W32M.mjs → chunk-25CHZW25.mjs} +3 -12
- package/dist/{chunk-HQ27V5V4.mjs → chunk-2C5EQ4P3.mjs} +4 -0
- package/dist/{chunk-IL3JFLE2.mjs → chunk-4UDOCFU5.mjs} +7 -0
- package/dist/chunk-JWF5ABNP.mjs +56 -0
- package/dist/chunk-PQSL3W26.mjs +96 -0
- package/dist/chunk-XSN6P5JL.mjs +0 -0
- package/dist/components/button.js +0 -9
- package/dist/components/button.mjs +2 -2
- package/dist/components/calendar.d.mts +124 -0
- package/dist/components/calendar.d.ts +124 -0
- package/dist/components/calendar.js +80 -0
- package/dist/components/calendar.mjs +6 -0
- package/dist/components/dropdown-menu.d.mts +6 -6
- package/dist/components/dropdown-menu.d.ts +6 -6
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +173 -25
- package/dist/components/index.mjs +17 -7
- package/dist/components/input.d.mts +177 -0
- package/dist/components/input.d.ts +177 -0
- package/dist/components/input.js +124 -0
- package/dist/components/input.mjs +9 -0
- package/dist/components/spinner.d.mts +21 -0
- package/dist/components/spinner.d.ts +21 -0
- package/dist/components/spinner.js +7 -0
- package/dist/components/spinner.mjs +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +173 -25
- package/dist/index.mjs +18 -7
- package/dist/utils/classes.d.mts +2 -1
- package/dist/utils/classes.d.ts +2 -1
- package/dist/utils/classes.js +7 -2
- package/dist/utils/classes.mjs +5 -3
- package/dist/utils/index.d.mts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +18 -0
- package/dist/utils/index.mjs +1 -0
- package/dist/utils/types.d.mts +10 -0
- package/dist/utils/types.d.ts +10 -0
- package/dist/utils/types.js +18 -0
- package/dist/utils/types.mjs +0 -0
- package/package.json +2 -2
- /package/dist/{chunk-KIDK6JOG.mjs → chunk-HNTFXPSN.mjs} +0 -0
package/dist/index.js
CHANGED
|
@@ -21,11 +21,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
button: () => button,
|
|
24
|
+
calendar: () => calendar,
|
|
24
25
|
command: () => command,
|
|
25
26
|
dialog: () => dialog,
|
|
26
27
|
drawer: () => drawer,
|
|
27
28
|
dropdownMenu: () => dropdownMenu,
|
|
29
|
+
input: () => input,
|
|
28
30
|
pageLayout: () => pageLayout,
|
|
31
|
+
passwordInput: () => passwordInput,
|
|
29
32
|
popover: () => popover,
|
|
30
33
|
spinner: () => spinner,
|
|
31
34
|
tooltip: () => tooltip
|
|
@@ -40,6 +43,9 @@ var focusVisibleClasses = [
|
|
|
40
43
|
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
41
44
|
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
42
45
|
];
|
|
46
|
+
var focusWithinClasses = [
|
|
47
|
+
"focus-within:outline-2 focus-within:outline-ring focus-within:outline-offset-2"
|
|
48
|
+
];
|
|
43
49
|
|
|
44
50
|
// src/utils/variants.ts
|
|
45
51
|
var solid = {
|
|
@@ -89,15 +95,6 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
89
95
|
ghost: "",
|
|
90
96
|
outline: "border-2 bg-transparent",
|
|
91
97
|
link: ""
|
|
92
|
-
// destructive:
|
|
93
|
-
// "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",
|
|
94
|
-
// outline:
|
|
95
|
-
// "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
96
|
-
// secondary:
|
|
97
|
-
// "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
98
|
-
// ghost:
|
|
99
|
-
// "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
100
|
-
// link: "text-primary underline-offset-4 hover:underline",
|
|
101
98
|
},
|
|
102
99
|
size: {
|
|
103
100
|
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
|
|
@@ -225,9 +222,62 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
225
222
|
]
|
|
226
223
|
});
|
|
227
224
|
|
|
228
|
-
// src/components/
|
|
225
|
+
// src/components/calendar.ts
|
|
229
226
|
var import_tailwind_variants2 = require("tailwind-variants");
|
|
230
|
-
var
|
|
227
|
+
var calendar = (0, import_tailwind_variants2.tv)({
|
|
228
|
+
slots: {
|
|
229
|
+
base: [
|
|
230
|
+
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
231
|
+
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
232
|
+
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`
|
|
233
|
+
],
|
|
234
|
+
icon: "size-4",
|
|
235
|
+
root: "w-fit",
|
|
236
|
+
months: "flex gap-4 flex-col md:flex-row relative",
|
|
237
|
+
month: "flex flex-col w-full gap-4",
|
|
238
|
+
nav: "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
239
|
+
buttonPrevious: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
240
|
+
buttonNext: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
241
|
+
monthCaption: "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
242
|
+
dropdown: "absolute bg-popover inset-0 opacity-0",
|
|
243
|
+
dropdowns: "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
244
|
+
dropdownRoot: "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
245
|
+
captionLabel: "select-none font-medium",
|
|
246
|
+
table: "w-full border-collapse",
|
|
247
|
+
weekdays: "flex",
|
|
248
|
+
weekday: "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
249
|
+
week: "flex w-full mt-2",
|
|
250
|
+
weekNumberWrapper: "flex size-(--cell-size) items-center justify-center text-center",
|
|
251
|
+
weekNumberHeader: "select-none w-(--cell-size)",
|
|
252
|
+
weekNumber: "text-[0.8rem] select-none text-muted-foreground",
|
|
253
|
+
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",
|
|
254
|
+
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",
|
|
255
|
+
rangeStart: "rounded-l-md bg-accent",
|
|
256
|
+
rangeMiddle: "rounded-none",
|
|
257
|
+
rangeEnd: "rounded-r-md bg-accent",
|
|
258
|
+
today: "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
259
|
+
outside: "text-muted-foreground aria-selected:text-muted-foreground",
|
|
260
|
+
disabled: "text-muted-foreground opacity-50",
|
|
261
|
+
hidden: "invisible"
|
|
262
|
+
},
|
|
263
|
+
variants: {
|
|
264
|
+
captionLayout: {
|
|
265
|
+
label: {
|
|
266
|
+
captionLabel: "text-sm"
|
|
267
|
+
},
|
|
268
|
+
default: {
|
|
269
|
+
captionLabel: "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
defaultVariants: {
|
|
274
|
+
captionLayout: "default"
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
// src/components/command.ts
|
|
279
|
+
var import_tailwind_variants3 = require("tailwind-variants");
|
|
280
|
+
var command = (0, import_tailwind_variants3.tv)({
|
|
231
281
|
slots: {
|
|
232
282
|
root: "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
233
283
|
inputWrapper: "flex h-9 items-center gap-2 border-b px-3",
|
|
@@ -246,8 +296,8 @@ var command = (0, import_tailwind_variants2.tv)({
|
|
|
246
296
|
});
|
|
247
297
|
|
|
248
298
|
// src/components/dialog.ts
|
|
249
|
-
var
|
|
250
|
-
var dialog = (0,
|
|
299
|
+
var import_tailwind_variants4 = require("tailwind-variants");
|
|
300
|
+
var dialog = (0, import_tailwind_variants4.tv)({
|
|
251
301
|
slots: {
|
|
252
302
|
overlay: ["fixed inset-0 z-50 bg-black/25"],
|
|
253
303
|
content: [
|
|
@@ -338,8 +388,8 @@ var dialog = (0, import_tailwind_variants3.tv)({
|
|
|
338
388
|
});
|
|
339
389
|
|
|
340
390
|
// src/components/drawer.ts
|
|
341
|
-
var
|
|
342
|
-
var drawer = (0,
|
|
391
|
+
var import_tailwind_variants5 = require("tailwind-variants");
|
|
392
|
+
var drawer = (0, import_tailwind_variants5.tv)({
|
|
343
393
|
slots: {
|
|
344
394
|
overlay: dialog.slots.overlay,
|
|
345
395
|
content: [
|
|
@@ -419,8 +469,8 @@ var drawer = (0, import_tailwind_variants4.tv)({
|
|
|
419
469
|
});
|
|
420
470
|
|
|
421
471
|
// src/components/dropdown-menu.ts
|
|
422
|
-
var
|
|
423
|
-
var dropdownMenu = (0,
|
|
472
|
+
var import_tailwind_variants6 = require("tailwind-variants");
|
|
473
|
+
var dropdownMenu = (0, import_tailwind_variants6.tv)({
|
|
424
474
|
slots: {
|
|
425
475
|
root: "",
|
|
426
476
|
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",
|
|
@@ -439,9 +489,97 @@ var dropdownMenu = (0, import_tailwind_variants5.tv)({
|
|
|
439
489
|
}
|
|
440
490
|
});
|
|
441
491
|
|
|
492
|
+
// src/components/input.ts
|
|
493
|
+
var import_tailwind_variants7 = require("tailwind-variants");
|
|
494
|
+
var passwordInput = (0, import_tailwind_variants7.tv)({
|
|
495
|
+
slots: {
|
|
496
|
+
button: "focus:outline-hidden",
|
|
497
|
+
icon: "pointer-events-none text-muted-foreground"
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
var input = (0, import_tailwind_variants7.tv)({
|
|
501
|
+
base: [],
|
|
502
|
+
slots: {
|
|
503
|
+
inputWrapper: [
|
|
504
|
+
"relative w-full inline-flex flex-row items-center shadow-xs px-3 gap-3 [&_svg]:shrink-0",
|
|
505
|
+
"border-input border dark:bg-input/30 data-[hidden=true]:hidden transition-[color,box-shadow]",
|
|
506
|
+
"data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
507
|
+
...focusWithinClasses
|
|
508
|
+
],
|
|
509
|
+
innerWrapper: "inline-flex w-full items-center h-full box-border",
|
|
510
|
+
input: [
|
|
511
|
+
"w-full font-normal outline-hidden focus-visible:outline-hidden",
|
|
512
|
+
"data-[has-start-content=true]:ps-1.5",
|
|
513
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
514
|
+
"file:cursor-pointer file:bg-transparent file:border-0",
|
|
515
|
+
"autofill:bg-transparent bg-clip-text",
|
|
516
|
+
// legacy
|
|
517
|
+
"selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground",
|
|
518
|
+
"flex",
|
|
519
|
+
// file
|
|
520
|
+
"file:text-foreground file:inline-flex file:text-sm file:font-medium",
|
|
521
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
522
|
+
],
|
|
523
|
+
clearButton: [
|
|
524
|
+
"p-2 -m-2 z-10 absolute end-3 start-auto pointer-events-none",
|
|
525
|
+
"appearance-none outline-hidden select-none opacity-0 cursor-pointer",
|
|
526
|
+
"active:!opacity-70 rounded-full"
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
variants: {
|
|
530
|
+
size: {
|
|
531
|
+
sm: {
|
|
532
|
+
inputWrapper: ["h-8 min-h-8 px-2 rounded-sm [&_svg]:size-4"],
|
|
533
|
+
input: "text-sm file:h-6"
|
|
534
|
+
},
|
|
535
|
+
md: {
|
|
536
|
+
inputWrapper: "h-10 min-10 rounded-md [&_svg]:size-4",
|
|
537
|
+
input: "text-base md:text-sm file:h-8",
|
|
538
|
+
clearButton: "hover:opacity-100"
|
|
539
|
+
},
|
|
540
|
+
lg: {
|
|
541
|
+
inputWrapper: "h-12 min-h-12 rounded-lg [&_svg]:size-4",
|
|
542
|
+
input: "text-base file:h-10",
|
|
543
|
+
clearButton: "hover:opacity-100"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
radius: {
|
|
547
|
+
none: {
|
|
548
|
+
inputWrapper: "rounded-none"
|
|
549
|
+
},
|
|
550
|
+
sm: {
|
|
551
|
+
inputWrapper: "rounded-sm"
|
|
552
|
+
},
|
|
553
|
+
md: {
|
|
554
|
+
inputWrapper: "rounded-md"
|
|
555
|
+
},
|
|
556
|
+
lg: {
|
|
557
|
+
inputWrapper: "rounded-lg"
|
|
558
|
+
},
|
|
559
|
+
full: {
|
|
560
|
+
inputWrapper: "rounded-full"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
isClearable: {
|
|
564
|
+
true: {
|
|
565
|
+
input: "peer pe-6",
|
|
566
|
+
clearButton: [
|
|
567
|
+
"peer-data-[filled=true]:pointer-events-auto",
|
|
568
|
+
"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
|
|
569
|
+
"peer-data-[filled=true]:scale-100"
|
|
570
|
+
]
|
|
571
|
+
},
|
|
572
|
+
false: {}
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
defaultVariants: {
|
|
576
|
+
size: "md"
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
|
|
442
580
|
// src/components/page-layout.ts
|
|
443
|
-
var
|
|
444
|
-
var pageLayout = (0,
|
|
581
|
+
var import_tailwind_variants8 = require("tailwind-variants");
|
|
582
|
+
var pageLayout = (0, import_tailwind_variants8.tv)({
|
|
445
583
|
slots: {
|
|
446
584
|
root: "",
|
|
447
585
|
wrapper: "flex mx-auto flex-wrap",
|
|
@@ -538,8 +676,8 @@ var pageLayout = (0, import_tailwind_variants6.tv)({
|
|
|
538
676
|
});
|
|
539
677
|
|
|
540
678
|
// src/components/popover.ts
|
|
541
|
-
var
|
|
542
|
-
var popover = (0,
|
|
679
|
+
var import_tailwind_variants9 = require("tailwind-variants");
|
|
680
|
+
var popover = (0, import_tailwind_variants9.tv)({
|
|
543
681
|
slots: {
|
|
544
682
|
content: [
|
|
545
683
|
"bg-popover text-popover-foreground z-50 w-72",
|
|
@@ -550,8 +688,8 @@ var popover = (0, import_tailwind_variants7.tv)({
|
|
|
550
688
|
});
|
|
551
689
|
|
|
552
690
|
// src/components/spinner.ts
|
|
553
|
-
var
|
|
554
|
-
var spinner = (0,
|
|
691
|
+
var import_tailwind_variants10 = require("tailwind-variants");
|
|
692
|
+
var spinner = (0, import_tailwind_variants10.tv)({
|
|
555
693
|
slots: {
|
|
556
694
|
base: "relative inline-flex flex-col gap-2 items-center justify-center",
|
|
557
695
|
wrapper: "relative flex",
|
|
@@ -562,6 +700,13 @@ var spinner = (0, import_tailwind_variants8.tv)({
|
|
|
562
700
|
},
|
|
563
701
|
variants: {
|
|
564
702
|
size: {
|
|
703
|
+
xs: {
|
|
704
|
+
wrapper: "w-4 h-4",
|
|
705
|
+
circle1: "border-2",
|
|
706
|
+
circle2: "border-2",
|
|
707
|
+
dots: "size-1",
|
|
708
|
+
label: "text-xs"
|
|
709
|
+
},
|
|
565
710
|
sm: {
|
|
566
711
|
wrapper: "w-5 h-5",
|
|
567
712
|
circle1: "border-2",
|
|
@@ -661,8 +806,8 @@ var spinner = (0, import_tailwind_variants8.tv)({
|
|
|
661
806
|
});
|
|
662
807
|
|
|
663
808
|
// src/components/tooltip.ts
|
|
664
|
-
var
|
|
665
|
-
var tooltip = (0,
|
|
809
|
+
var import_tailwind_variants11 = require("tailwind-variants");
|
|
810
|
+
var tooltip = (0, import_tailwind_variants11.tv)({
|
|
666
811
|
slots: {
|
|
667
812
|
content: [
|
|
668
813
|
"bg-primary text-primary-foreground",
|
|
@@ -675,11 +820,14 @@ var tooltip = (0, import_tailwind_variants9.tv)({
|
|
|
675
820
|
// Annotate the CommonJS export names for ESM import in node:
|
|
676
821
|
0 && (module.exports = {
|
|
677
822
|
button,
|
|
823
|
+
calendar,
|
|
678
824
|
command,
|
|
679
825
|
dialog,
|
|
680
826
|
drawer,
|
|
681
827
|
dropdownMenu,
|
|
828
|
+
input,
|
|
682
829
|
pageLayout,
|
|
830
|
+
passwordInput,
|
|
683
831
|
popover,
|
|
684
832
|
spinner,
|
|
685
833
|
tooltip
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,29 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-XSN6P5JL.mjs";
|
|
2
|
+
import "./chunk-HNTFXPSN.mjs";
|
|
3
|
+
import {
|
|
4
|
+
input,
|
|
5
|
+
passwordInput
|
|
6
|
+
} from "./chunk-PQSL3W26.mjs";
|
|
7
|
+
import {
|
|
8
|
+
pageLayout
|
|
9
|
+
} from "./chunk-GQV7INYX.mjs";
|
|
2
10
|
import {
|
|
3
11
|
popover
|
|
4
12
|
} from "./chunk-J35D7RWA.mjs";
|
|
5
13
|
import {
|
|
6
14
|
spinner
|
|
7
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4UDOCFU5.mjs";
|
|
8
16
|
import {
|
|
9
17
|
tooltip
|
|
10
18
|
} from "./chunk-SVCFD7RR.mjs";
|
|
11
19
|
import {
|
|
12
20
|
button
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-HQ27V5V4.mjs";
|
|
21
|
+
} from "./chunk-25CHZW25.mjs";
|
|
15
22
|
import "./chunk-U6ONJKJY.mjs";
|
|
23
|
+
import "./chunk-2C5EQ4P3.mjs";
|
|
24
|
+
import {
|
|
25
|
+
calendar
|
|
26
|
+
} from "./chunk-JWF5ABNP.mjs";
|
|
16
27
|
import {
|
|
17
28
|
command
|
|
18
29
|
} from "./chunk-YPHFKGNI.mjs";
|
|
@@ -25,16 +36,16 @@ import {
|
|
|
25
36
|
import {
|
|
26
37
|
dropdownMenu
|
|
27
38
|
} from "./chunk-EXBKQDH5.mjs";
|
|
28
|
-
import {
|
|
29
|
-
pageLayout
|
|
30
|
-
} from "./chunk-GQV7INYX.mjs";
|
|
31
39
|
export {
|
|
32
40
|
button,
|
|
41
|
+
calendar,
|
|
33
42
|
command,
|
|
34
43
|
dialog,
|
|
35
44
|
drawer,
|
|
36
45
|
dropdownMenu,
|
|
46
|
+
input,
|
|
37
47
|
pageLayout,
|
|
48
|
+
passwordInput,
|
|
38
49
|
popover,
|
|
39
50
|
spinner,
|
|
40
51
|
tooltip
|
package/dist/utils/classes.d.mts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* focus classNames when the element is focused by keyboard.
|
|
3
3
|
*/
|
|
4
4
|
declare const focusVisibleClasses: string[];
|
|
5
|
+
declare const focusWithinClasses: string[];
|
|
5
6
|
declare const dataFocusVisibleClasses: string[];
|
|
6
7
|
|
|
7
|
-
export { dataFocusVisibleClasses, focusVisibleClasses };
|
|
8
|
+
export { dataFocusVisibleClasses, focusVisibleClasses, focusWithinClasses };
|
package/dist/utils/classes.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* focus classNames when the element is focused by keyboard.
|
|
3
3
|
*/
|
|
4
4
|
declare const focusVisibleClasses: string[];
|
|
5
|
+
declare const focusWithinClasses: string[];
|
|
5
6
|
declare const dataFocusVisibleClasses: string[];
|
|
6
7
|
|
|
7
|
-
export { dataFocusVisibleClasses, focusVisibleClasses };
|
|
8
|
+
export { dataFocusVisibleClasses, focusVisibleClasses, focusWithinClasses };
|
package/dist/utils/classes.js
CHANGED
|
@@ -21,16 +21,21 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var classes_exports = {};
|
|
22
22
|
__export(classes_exports, {
|
|
23
23
|
dataFocusVisibleClasses: () => dataFocusVisibleClasses,
|
|
24
|
-
focusVisibleClasses: () => focusVisibleClasses
|
|
24
|
+
focusVisibleClasses: () => focusVisibleClasses,
|
|
25
|
+
focusWithinClasses: () => focusWithinClasses
|
|
25
26
|
});
|
|
26
27
|
module.exports = __toCommonJS(classes_exports);
|
|
27
28
|
var focusVisibleClasses = [
|
|
28
29
|
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
29
30
|
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
30
31
|
];
|
|
32
|
+
var focusWithinClasses = [
|
|
33
|
+
"focus-within:outline-2 focus-within:outline-ring focus-within:outline-offset-2"
|
|
34
|
+
];
|
|
31
35
|
var dataFocusVisibleClasses = ["outline-hidden"];
|
|
32
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
33
37
|
0 && (module.exports = {
|
|
34
38
|
dataFocusVisibleClasses,
|
|
35
|
-
focusVisibleClasses
|
|
39
|
+
focusVisibleClasses,
|
|
40
|
+
focusWithinClasses
|
|
36
41
|
});
|
package/dist/utils/classes.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
dataFocusVisibleClasses,
|
|
3
|
-
focusVisibleClasses
|
|
4
|
-
|
|
3
|
+
focusVisibleClasses,
|
|
4
|
+
focusWithinClasses
|
|
5
|
+
} from "../chunk-2C5EQ4P3.mjs";
|
|
5
6
|
export {
|
|
6
7
|
dataFocusVisibleClasses,
|
|
7
|
-
focusVisibleClasses
|
|
8
|
+
focusVisibleClasses,
|
|
9
|
+
focusWithinClasses
|
|
8
10
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/utils/index.ts
|
|
17
|
+
var utils_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(utils_exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../chunk-XSN6P5JL.mjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClassValue } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This Typescript utility transform a list of slots into a list of {slot: classes}
|
|
5
|
+
*/
|
|
6
|
+
type SlotsToClasses<S extends string> = {
|
|
7
|
+
[key in S]?: Exclude<ClassValue, 0n>;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type { SlotsToClasses };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClassValue } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This Typescript utility transform a list of slots into a list of {slot: classes}
|
|
5
|
+
*/
|
|
6
|
+
type SlotsToClasses<S extends string> = {
|
|
7
|
+
[key in S]?: Exclude<ClassValue, 0n>;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type { SlotsToClasses };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/utils/types.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/theme",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "The default theme for Kopexa components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -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.
|
|
48
|
+
"@kopexa/shared-utils": "1.1.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"tailwindcss": ">=4.0.0"
|
|
File without changes
|