@kopexa/theme 1.6.2 → 1.6.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.
- package/dist/{chunk-5QIMO5EG.mjs → chunk-2BPKTGNE.mjs} +1 -1
- package/dist/chunk-755GJHKQ.mjs +23 -0
- package/dist/chunk-IKJHZT2S.mjs +19 -0
- package/dist/{chunk-DQEPGWAN.mjs → chunk-JX7F3NZL.mjs} +1 -1
- package/dist/chunk-TLCFFCOP.mjs +70 -0
- package/dist/{chunk-25L2JS6A.mjs → chunk-UEMJVVVF.mjs} +6 -1
- package/dist/{chunk-CQDTDA47.mjs → chunk-UMSU2ZEG.mjs} +1 -1
- package/dist/chunk-Z6LF6RPD.mjs +32 -0
- package/dist/components/accordion.d.mts +146 -0
- package/dist/components/accordion.d.ts +146 -0
- package/dist/components/accordion.js +94 -0
- package/dist/components/accordion.mjs +6 -0
- package/dist/components/alert-dialog.d.mts +3 -3
- package/dist/components/alert-dialog.d.ts +3 -3
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/button.mjs +2 -2
- package/dist/components/command.d.mts +6 -6
- package/dist/components/command.d.ts +6 -6
- package/dist/components/dropdown-menu.d.mts +6 -6
- package/dist/components/dropdown-menu.d.ts +6 -6
- package/dist/components/hover-card.d.mts +32 -0
- package/dist/components/hover-card.d.ts +32 -0
- package/dist/components/hover-card.js +51 -0
- package/dist/components/hover-card.mjs +7 -0
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +176 -82
- package/dist/components/index.mjs +29 -21
- package/dist/components/input.mjs +2 -2
- package/dist/components/page-header.d.mts +3 -3
- package/dist/components/page-header.d.ts +3 -3
- package/dist/components/popover.js +11 -3
- package/dist/components/popover.mjs +2 -1
- package/dist/components/section-row.d.mts +12 -15
- package/dist/components/section-row.d.ts +12 -15
- package/dist/components/section-row.js +13 -10
- package/dist/components/section-row.mjs +1 -1
- package/dist/index.css +0 -37
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +176 -82
- package/dist/index.mjs +29 -21
- package/dist/utils/classes.d.mts +2 -1
- package/dist/utils/classes.d.ts +2 -1
- package/dist/utils/classes.js +6 -0
- package/dist/utils/classes.mjs +3 -1
- package/package.json +1 -1
- package/dist/chunk-J35D7RWA.mjs +0 -15
- package/dist/chunk-TT5V2MUL.mjs +0 -29
- /package/dist/{chunk-GZPF57JX.mjs → chunk-FD464FGG.mjs} +0 -0
|
@@ -4,9 +4,9 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
4
4
|
declare const pageHeader: tailwind_variants.TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
root?: tailwind_variants.ClassValue;
|
|
7
8
|
title?: tailwind_variants.ClassValue;
|
|
8
9
|
description?: tailwind_variants.ClassValue;
|
|
9
|
-
root?: tailwind_variants.ClassValue;
|
|
10
10
|
titleArea?: tailwind_variants.ClassValue;
|
|
11
11
|
leadingVisual?: tailwind_variants.ClassValue;
|
|
12
12
|
leadingAction?: tailwind_variants.ClassValue;
|
|
@@ -19,9 +19,9 @@ declare const pageHeader: tailwind_variants.TVReturnType<{
|
|
|
19
19
|
} | {
|
|
20
20
|
[x: string]: {
|
|
21
21
|
[x: string]: tailwind_variants.ClassValue | {
|
|
22
|
+
root?: tailwind_variants.ClassValue;
|
|
22
23
|
title?: tailwind_variants.ClassValue;
|
|
23
24
|
description?: tailwind_variants.ClassValue;
|
|
24
|
-
root?: tailwind_variants.ClassValue;
|
|
25
25
|
titleArea?: tailwind_variants.ClassValue;
|
|
26
26
|
leadingVisual?: tailwind_variants.ClassValue;
|
|
27
27
|
leadingAction?: tailwind_variants.ClassValue;
|
|
@@ -45,9 +45,9 @@ declare const pageHeader: tailwind_variants.TVReturnType<{
|
|
|
45
45
|
}, undefined, {
|
|
46
46
|
[key: string]: {
|
|
47
47
|
[key: string]: tailwind_variants.ClassValue | {
|
|
48
|
+
root?: tailwind_variants.ClassValue;
|
|
48
49
|
title?: tailwind_variants.ClassValue;
|
|
49
50
|
description?: tailwind_variants.ClassValue;
|
|
50
|
-
root?: tailwind_variants.ClassValue;
|
|
51
51
|
titleArea?: tailwind_variants.ClassValue;
|
|
52
52
|
leadingVisual?: tailwind_variants.ClassValue;
|
|
53
53
|
leadingAction?: tailwind_variants.ClassValue;
|
|
@@ -4,9 +4,9 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
4
4
|
declare const pageHeader: tailwind_variants.TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
root?: tailwind_variants.ClassValue;
|
|
7
8
|
title?: tailwind_variants.ClassValue;
|
|
8
9
|
description?: tailwind_variants.ClassValue;
|
|
9
|
-
root?: tailwind_variants.ClassValue;
|
|
10
10
|
titleArea?: tailwind_variants.ClassValue;
|
|
11
11
|
leadingVisual?: tailwind_variants.ClassValue;
|
|
12
12
|
leadingAction?: tailwind_variants.ClassValue;
|
|
@@ -19,9 +19,9 @@ declare const pageHeader: tailwind_variants.TVReturnType<{
|
|
|
19
19
|
} | {
|
|
20
20
|
[x: string]: {
|
|
21
21
|
[x: string]: tailwind_variants.ClassValue | {
|
|
22
|
+
root?: tailwind_variants.ClassValue;
|
|
22
23
|
title?: tailwind_variants.ClassValue;
|
|
23
24
|
description?: tailwind_variants.ClassValue;
|
|
24
|
-
root?: tailwind_variants.ClassValue;
|
|
25
25
|
titleArea?: tailwind_variants.ClassValue;
|
|
26
26
|
leadingVisual?: tailwind_variants.ClassValue;
|
|
27
27
|
leadingAction?: tailwind_variants.ClassValue;
|
|
@@ -45,9 +45,9 @@ declare const pageHeader: tailwind_variants.TVReturnType<{
|
|
|
45
45
|
}, undefined, {
|
|
46
46
|
[key: string]: {
|
|
47
47
|
[key: string]: tailwind_variants.ClassValue | {
|
|
48
|
+
root?: tailwind_variants.ClassValue;
|
|
48
49
|
title?: tailwind_variants.ClassValue;
|
|
49
50
|
description?: tailwind_variants.ClassValue;
|
|
50
|
-
root?: tailwind_variants.ClassValue;
|
|
51
51
|
titleArea?: tailwind_variants.ClassValue;
|
|
52
52
|
leadingVisual?: tailwind_variants.ClassValue;
|
|
53
53
|
leadingAction?: tailwind_variants.ClassValue;
|
|
@@ -24,12 +24,20 @@ __export(popover_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(popover_exports);
|
|
26
26
|
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
|
|
28
|
+
// src/utils/classes.ts
|
|
29
|
+
var popoverContentClasses = [
|
|
30
|
+
"bg-popover text-popover-foreground z-50",
|
|
31
|
+
"rounded-md border p-4 shadow-md outline-hidden"
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
// src/components/popover.ts
|
|
27
35
|
var popover = (0, import_tailwind_variants.tv)({
|
|
28
36
|
slots: {
|
|
29
37
|
content: [
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
38
|
+
...popoverContentClasses,
|
|
39
|
+
"w-72",
|
|
40
|
+
"origin-(--radix-popover-content-transform-origin)"
|
|
33
41
|
]
|
|
34
42
|
}
|
|
35
43
|
});
|
|
@@ -3,42 +3,39 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
3
3
|
|
|
4
4
|
declare const sectionRow: tailwind_variants.TVReturnType<{
|
|
5
5
|
hasActions: {
|
|
6
|
-
true: {
|
|
7
|
-
root: string[];
|
|
8
|
-
};
|
|
6
|
+
true: {};
|
|
9
7
|
false: {};
|
|
10
8
|
};
|
|
11
9
|
}, {
|
|
12
10
|
root: string[];
|
|
13
|
-
title: string;
|
|
11
|
+
title: string[];
|
|
12
|
+
infoTip: string[];
|
|
14
13
|
valueText: string;
|
|
15
|
-
valueContainer: string;
|
|
14
|
+
valueContainer: string[];
|
|
16
15
|
action: string;
|
|
17
16
|
}, undefined, {
|
|
18
17
|
hasActions: {
|
|
19
|
-
true: {
|
|
20
|
-
root: string[];
|
|
21
|
-
};
|
|
18
|
+
true: {};
|
|
22
19
|
false: {};
|
|
23
20
|
};
|
|
24
21
|
}, {
|
|
25
22
|
root: string[];
|
|
26
|
-
title: string;
|
|
23
|
+
title: string[];
|
|
24
|
+
infoTip: string[];
|
|
27
25
|
valueText: string;
|
|
28
|
-
valueContainer: string;
|
|
26
|
+
valueContainer: string[];
|
|
29
27
|
action: string;
|
|
30
28
|
}, tailwind_variants.TVReturnType<{
|
|
31
29
|
hasActions: {
|
|
32
|
-
true: {
|
|
33
|
-
root: string[];
|
|
34
|
-
};
|
|
30
|
+
true: {};
|
|
35
31
|
false: {};
|
|
36
32
|
};
|
|
37
33
|
}, {
|
|
38
34
|
root: string[];
|
|
39
|
-
title: string;
|
|
35
|
+
title: string[];
|
|
36
|
+
infoTip: string[];
|
|
40
37
|
valueText: string;
|
|
41
|
-
valueContainer: string;
|
|
38
|
+
valueContainer: string[];
|
|
42
39
|
action: string;
|
|
43
40
|
}, undefined, unknown, unknown, undefined>>;
|
|
44
41
|
type SectionRowVariantProps = VariantProps<typeof sectionRow>;
|
|
@@ -3,42 +3,39 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
3
3
|
|
|
4
4
|
declare const sectionRow: tailwind_variants.TVReturnType<{
|
|
5
5
|
hasActions: {
|
|
6
|
-
true: {
|
|
7
|
-
root: string[];
|
|
8
|
-
};
|
|
6
|
+
true: {};
|
|
9
7
|
false: {};
|
|
10
8
|
};
|
|
11
9
|
}, {
|
|
12
10
|
root: string[];
|
|
13
|
-
title: string;
|
|
11
|
+
title: string[];
|
|
12
|
+
infoTip: string[];
|
|
14
13
|
valueText: string;
|
|
15
|
-
valueContainer: string;
|
|
14
|
+
valueContainer: string[];
|
|
16
15
|
action: string;
|
|
17
16
|
}, undefined, {
|
|
18
17
|
hasActions: {
|
|
19
|
-
true: {
|
|
20
|
-
root: string[];
|
|
21
|
-
};
|
|
18
|
+
true: {};
|
|
22
19
|
false: {};
|
|
23
20
|
};
|
|
24
21
|
}, {
|
|
25
22
|
root: string[];
|
|
26
|
-
title: string;
|
|
23
|
+
title: string[];
|
|
24
|
+
infoTip: string[];
|
|
27
25
|
valueText: string;
|
|
28
|
-
valueContainer: string;
|
|
26
|
+
valueContainer: string[];
|
|
29
27
|
action: string;
|
|
30
28
|
}, tailwind_variants.TVReturnType<{
|
|
31
29
|
hasActions: {
|
|
32
|
-
true: {
|
|
33
|
-
root: string[];
|
|
34
|
-
};
|
|
30
|
+
true: {};
|
|
35
31
|
false: {};
|
|
36
32
|
};
|
|
37
33
|
}, {
|
|
38
34
|
root: string[];
|
|
39
|
-
title: string;
|
|
35
|
+
title: string[];
|
|
36
|
+
infoTip: string[];
|
|
40
37
|
valueText: string;
|
|
41
|
-
valueContainer: string;
|
|
38
|
+
valueContainer: string[];
|
|
42
39
|
action: string;
|
|
43
40
|
}, undefined, unknown, unknown, undefined>>;
|
|
44
41
|
type SectionRowVariantProps = VariantProps<typeof sectionRow>;
|
|
@@ -26,20 +26,23 @@ module.exports = __toCommonJS(section_row_exports);
|
|
|
26
26
|
var import_tailwind_variants = require("tailwind-variants");
|
|
27
27
|
var sectionRow = (0, import_tailwind_variants.tv)({
|
|
28
28
|
slots: {
|
|
29
|
-
root: [
|
|
30
|
-
|
|
29
|
+
root: [
|
|
30
|
+
"grid grid-cols-1 text-base/6 sm:grid-cols-[min(33%,--spacing(80))_auto] sm:text-sm/6",
|
|
31
|
+
"gap-3 w-full"
|
|
32
|
+
],
|
|
33
|
+
title: [
|
|
34
|
+
"col-start-1 text-muted-foreground text-sm font-medium",
|
|
35
|
+
"max-sm:pt-3 flex flex-row items-start gap-1",
|
|
36
|
+
"shrink-0"
|
|
37
|
+
],
|
|
38
|
+
infoTip: ["min-w-64 w-auto max-w-96 p-2"],
|
|
31
39
|
valueText: "whitespace-pre-line text-pretty text-sm",
|
|
32
|
-
valueContainer: "
|
|
33
|
-
action: "
|
|
40
|
+
valueContainer: ["flex flex-row items-start gap-1", "max-sm:pt-1", "grow"],
|
|
41
|
+
action: "self-start ml-auto"
|
|
34
42
|
},
|
|
35
43
|
variants: {
|
|
36
44
|
hasActions: {
|
|
37
|
-
true: {
|
|
38
|
-
root: [
|
|
39
|
-
"has-actions"
|
|
40
|
-
//"md:grid-cols-[min(40%,--spacing(80))_auto_28px]",
|
|
41
|
-
]
|
|
42
|
-
},
|
|
45
|
+
true: {},
|
|
43
46
|
false: {}
|
|
44
47
|
}
|
|
45
48
|
},
|
package/dist/index.css
CHANGED
|
@@ -399,41 +399,4 @@
|
|
|
399
399
|
'title title'
|
|
400
400
|
'value-container value-container';
|
|
401
401
|
}
|
|
402
|
-
|
|
403
|
-
.section-row.has-actions {
|
|
404
|
-
grid-template-columns: auto 28px;
|
|
405
|
-
grid-template-areas:
|
|
406
|
-
'title title'
|
|
407
|
-
'value-container action';
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
.section-row__title {
|
|
411
|
-
grid-area: title;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.section-row__value-container {
|
|
415
|
-
grid-area: value-container;
|
|
416
|
-
display: flex;
|
|
417
|
-
justify-content: flex-start;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.section-row__action {
|
|
421
|
-
grid-area: action;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
@media (min-width: theme(--breakpoint-md)) {
|
|
425
|
-
.section-row {
|
|
426
|
-
grid-template-columns: min(40%, calc(var(--spacing) * 28)) 1fr;
|
|
427
|
-
grid-template-areas: 'title value-container';
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.section-row.has-actions {
|
|
431
|
-
grid-template-columns: min(40%, calc(var(--spacing) * 28)) 1fr 28px;
|
|
432
|
-
grid-template-areas: 'title value-container action';
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.section-row__value-container {
|
|
436
|
-
justify-content: flex-end;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
402
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { TV, VariantProps } from 'tailwind-variants';
|
|
2
|
+
export { AccordionSlots, AccordionVariantProps, accordion } from './components/accordion.mjs';
|
|
2
3
|
export { AlertDialogSlots, AlertDialogVariants, alertDialog } from './components/alert-dialog.mjs';
|
|
3
4
|
export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.mjs';
|
|
4
5
|
export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.mjs';
|
|
@@ -14,6 +15,7 @@ export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.mjs
|
|
|
14
15
|
export { DrawerVariantProps, drawer } from './components/drawer.mjs';
|
|
15
16
|
export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.mjs';
|
|
16
17
|
export { HeadingVariantProps, heading } from './components/heading.mjs';
|
|
18
|
+
export { HoverCardSlots, HoverCardVariantProps, hoverCard } from './components/hover-card.mjs';
|
|
17
19
|
export { InputVariantProps, input, passwordInput } from './components/input.mjs';
|
|
18
20
|
export { PageHeaderVariantProps, pageHeader } from './components/page-header.mjs';
|
|
19
21
|
export { PageLayoutSlots, PageLayoutVariantProps, pageLayout } from './components/page-layout.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { TV, VariantProps } from 'tailwind-variants';
|
|
2
|
+
export { AccordionSlots, AccordionVariantProps, accordion } from './components/accordion.js';
|
|
2
3
|
export { AlertDialogSlots, AlertDialogVariants, alertDialog } from './components/alert-dialog.js';
|
|
3
4
|
export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.js';
|
|
4
5
|
export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.js';
|
|
@@ -14,6 +15,7 @@ export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.js'
|
|
|
14
15
|
export { DrawerVariantProps, drawer } from './components/drawer.js';
|
|
15
16
|
export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.js';
|
|
16
17
|
export { HeadingVariantProps, heading } from './components/heading.js';
|
|
18
|
+
export { HoverCardSlots, HoverCardVariantProps, hoverCard } from './components/hover-card.js';
|
|
17
19
|
export { InputVariantProps, input, passwordInput } from './components/input.js';
|
|
18
20
|
export { PageHeaderVariantProps, pageHeader } from './components/page-header.js';
|
|
19
21
|
export { PageLayoutSlots, PageLayoutVariantProps, pageLayout } from './components/page-layout.js';
|