@kopexa/theme 1.6.0 → 1.6.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.
- package/dist/{chunk-OMS3433R.mjs → chunk-5QIMO5EG.mjs} +1 -1
- package/dist/{chunk-MGYGD5BF.mjs → chunk-DQEPGWAN.mjs} +1 -1
- package/dist/chunk-FWRXPYLB.mjs +41 -0
- package/dist/{chunk-DH3KNPAO.mjs → chunk-J4JIYTOU.mjs} +1 -1
- package/dist/{chunk-UVT775TU.mjs → chunk-LG2J56LI.mjs} +1 -1
- package/dist/{chunk-SU53TZN7.mjs → chunk-MKBU6G6Q.mjs} +10 -1
- package/dist/{chunk-HOQ2LD24.mjs → chunk-T5PESSOS.mjs} +1 -1
- package/dist/chunk-TT5V2MUL.mjs +29 -0
- package/dist/chunk-V2J5XG34.mjs +43 -0
- package/dist/{chunk-IRKCLWJD.mjs → chunk-VCLXE57S.mjs} +2 -1
- package/dist/chunk-WPOYEHD2.mjs +45 -0
- package/dist/{chunk-WSX3HKVE.mjs → chunk-XJ7XBZNF.mjs} +1 -1
- package/dist/{chunk-UPTG533L.mjs → chunk-ZLM6Z3W2.mjs} +7 -0
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/button.mjs +2 -2
- package/dist/components/chip.js +1 -1
- package/dist/components/chip.mjs +2 -2
- package/dist/components/code.js +1 -1
- package/dist/components/code.mjs +2 -2
- package/dist/components/drawer.js +1 -1
- package/dist/components/drawer.mjs +1 -1
- package/dist/components/index.d.mts +4 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +195 -24
- package/dist/components/index.mjs +39 -23
- package/dist/components/preview-card.d.mts +89 -0
- package/dist/components/preview-card.d.ts +89 -0
- package/dist/components/preview-card.js +69 -0
- package/dist/components/preview-card.mjs +6 -0
- package/dist/components/risk-badge.d.mts +97 -0
- package/dist/components/risk-badge.d.ts +97 -0
- package/dist/components/risk-badge.js +67 -0
- package/dist/components/risk-badge.mjs +6 -0
- package/dist/components/section-row.d.mts +47 -0
- package/dist/components/section-row.d.ts +47 -0
- package/dist/components/section-row.js +53 -0
- package/dist/components/section-row.mjs +6 -0
- package/dist/components/separator.js +2 -1
- package/dist/components/separator.mjs +1 -1
- package/dist/components/split-page-layout.d.mts +49 -0
- package/dist/components/split-page-layout.d.ts +49 -0
- package/dist/components/split-page-layout.js +65 -0
- package/dist/components/split-page-layout.mjs +6 -0
- package/dist/components/tab-nav.d.mts +18 -0
- package/dist/components/tab-nav.d.ts +18 -0
- package/dist/components/tab-nav.js +7 -0
- package/dist/components/tab-nav.mjs +1 -1
- package/dist/components/table.d.mts +18 -0
- package/dist/components/table.d.ts +18 -0
- package/dist/components/table.js +10 -1
- package/dist/components/table.mjs +1 -1
- package/dist/index.css +71 -13
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +195 -24
- package/dist/index.mjs +39 -23
- package/dist/utils/variants.js +1 -1
- package/dist/utils/variants.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-EOJ6MEGH.mjs → chunk-NP4SOC4S.mjs} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// src/components/split-page-layout.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var splitPageLayout = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: [
|
|
6
|
+
"size-full min-h-0 grid grid-cols-[1fr_10px] md:grid-cols-3 relative"
|
|
7
|
+
],
|
|
8
|
+
content: ["p-4 md:p-6 col-span-1 md:col-span-2"],
|
|
9
|
+
panelContainer: [
|
|
10
|
+
"flex flex-col",
|
|
11
|
+
"md:border-s",
|
|
12
|
+
//"size-full",
|
|
13
|
+
"bg-muted dark:bg-primary-900"
|
|
14
|
+
],
|
|
15
|
+
panel: [
|
|
16
|
+
"md:border-s",
|
|
17
|
+
"p-4 md:p-6",
|
|
18
|
+
"overflow-y-auto overflow-x-hidden",
|
|
19
|
+
"flex-1",
|
|
20
|
+
"min-h-0",
|
|
21
|
+
"h-full"
|
|
22
|
+
],
|
|
23
|
+
bleed: "-mx-4 md:-mx-6",
|
|
24
|
+
mobileWrapper: "relative",
|
|
25
|
+
mobileContainer: ["absolute top-2 right-2 z-10"]
|
|
26
|
+
},
|
|
27
|
+
variants: {
|
|
28
|
+
inset: {
|
|
29
|
+
true: {
|
|
30
|
+
panelContainer: "rounded-e-md max-md:rounded-md"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
inset: true
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
splitPageLayout
|
|
41
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/utils/variants.ts
|
|
2
2
|
var solid = {
|
|
3
|
-
default: "bg-accent text-accent-foreground",
|
|
3
|
+
default: "bg-accent/70 text-accent-foreground",
|
|
4
4
|
primary: "bg-primary text-primary-foreground",
|
|
5
5
|
secondary: "bg-secondary text-secondary-foreground",
|
|
6
6
|
destructive: "bg-destructive text-destructive-foreground",
|
|
@@ -40,7 +40,16 @@ var table = tv({
|
|
|
40
40
|
"before:w-0.5",
|
|
41
41
|
"before:opacity-0",
|
|
42
42
|
"group-aria-[selected=true]/tr:first:before:opacity-100"
|
|
43
|
-
]
|
|
43
|
+
],
|
|
44
|
+
ownerCell: [
|
|
45
|
+
"min-h-[50px]",
|
|
46
|
+
"inline-flex items-center justify-center gap-2"
|
|
47
|
+
],
|
|
48
|
+
ownerCellAvatar: [],
|
|
49
|
+
ownerCelltextWrapper: "inline-flex flex-col items-start",
|
|
50
|
+
ownerCellName: "text-xs font-medium",
|
|
51
|
+
ownerCellDescription: "text-[11px] text-muted-foreground truncate",
|
|
52
|
+
ownerCellUnassigned: "text-xs italic text-muted-foreground"
|
|
44
53
|
},
|
|
45
54
|
variants: {
|
|
46
55
|
bleed: {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// src/components/section-row.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var sectionRow = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: ["section-row items-start"],
|
|
6
|
+
title: "section-row__title text-muted-foreground text-sm font-semibold",
|
|
7
|
+
valueText: "whitespace-pre-line text-pretty text-sm",
|
|
8
|
+
valueContainer: "section-row__value-container flex flex-wrap gap-1",
|
|
9
|
+
action: "section-row__action"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
hasActions: {
|
|
13
|
+
true: {
|
|
14
|
+
root: [
|
|
15
|
+
"has-actions"
|
|
16
|
+
//"md:grid-cols-[min(40%,--spacing(80))_auto_28px]",
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
false: {}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
hasActions: false
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
sectionRow
|
|
29
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// src/components/risk-badge.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var riskBadge = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: ["inline-flex flex-col items-start gap-0.5"],
|
|
6
|
+
label: ["inline-flex items-center gap-0.5 text-xs"],
|
|
7
|
+
grade: ["font-semibold"],
|
|
8
|
+
level: ["font-medium"],
|
|
9
|
+
dots: ["inline-flex items-center gap-0.5"],
|
|
10
|
+
dot: [
|
|
11
|
+
"inline-block w-1.5 h-1.5 rounded-full",
|
|
12
|
+
"transition-all duration-150 ease-in-out"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
color: {
|
|
17
|
+
default: {
|
|
18
|
+
dot: "bg-gray-200 dark:bg-gray-700"
|
|
19
|
+
},
|
|
20
|
+
success: {
|
|
21
|
+
dot: "bg-success"
|
|
22
|
+
},
|
|
23
|
+
destructive: {
|
|
24
|
+
dot: "bg-destructive"
|
|
25
|
+
},
|
|
26
|
+
warning: {
|
|
27
|
+
dot: "bg-warning"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
dotFilled: {
|
|
31
|
+
true: {
|
|
32
|
+
dot: "opacity-100 scale-110"
|
|
33
|
+
},
|
|
34
|
+
false: {
|
|
35
|
+
dot: "opacity-40 scale-100"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
riskBadge
|
|
43
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// src/components/preview-card.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var previewCard = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: [
|
|
6
|
+
"flex w-full items-start gap-3 rounded-md bg-background p-2 transition-colors",
|
|
7
|
+
"transition-all group min-h-10",
|
|
8
|
+
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1"
|
|
9
|
+
],
|
|
10
|
+
icon: ["flex-shrink-0 text-muted-foreground"],
|
|
11
|
+
content: ["flex min-w-0 flex-1 flex-col justify-center"],
|
|
12
|
+
title: ["truncate text-xs font-medium text-foreground"],
|
|
13
|
+
description: ["truncate text-[10px] text-muted-foreground line-clamp-1"],
|
|
14
|
+
action: ["shrink-0 rounded-full [&_svg]:size-4"],
|
|
15
|
+
tags: ["mt-1.5 flex items-center gap-2"]
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
size: {
|
|
19
|
+
md: {
|
|
20
|
+
icon: "[&__svg]:size-5"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
isBordered: {
|
|
24
|
+
true: {
|
|
25
|
+
root: ["border"]
|
|
26
|
+
},
|
|
27
|
+
false: {}
|
|
28
|
+
},
|
|
29
|
+
isHoverable: {
|
|
30
|
+
true: {
|
|
31
|
+
root: "hover:bg-muted/50 hover:border-primary",
|
|
32
|
+
title: "group-hover:text-primary"
|
|
33
|
+
},
|
|
34
|
+
false: {}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
size: "md",
|
|
39
|
+
isBordered: true
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
previewCard
|
|
45
|
+
};
|
|
@@ -5,6 +5,7 @@ var tabNav = tv({
|
|
|
5
5
|
base: "",
|
|
6
6
|
list: [
|
|
7
7
|
"flex",
|
|
8
|
+
"items-center",
|
|
8
9
|
"justify-start",
|
|
9
10
|
"overflow-x-auto",
|
|
10
11
|
"whitespace-nowrap",
|
|
@@ -42,6 +43,12 @@ var tabNav = tv({
|
|
|
42
43
|
]
|
|
43
44
|
},
|
|
44
45
|
variants: {
|
|
46
|
+
bleed: {
|
|
47
|
+
true: {
|
|
48
|
+
list: "-mx-4 md:-mx-6 px-4 md:px-6"
|
|
49
|
+
},
|
|
50
|
+
false: {}
|
|
51
|
+
},
|
|
45
52
|
color: {
|
|
46
53
|
primary: {
|
|
47
54
|
link: ["before:bg-primary"]
|
|
@@ -40,7 +40,7 @@ var translateCenterClasses = [
|
|
|
40
40
|
|
|
41
41
|
// src/utils/variants.ts
|
|
42
42
|
var solid = {
|
|
43
|
-
default: "bg-accent text-accent-foreground",
|
|
43
|
+
default: "bg-accent/70 text-accent-foreground",
|
|
44
44
|
primary: "bg-primary text-primary-foreground",
|
|
45
45
|
secondary: "bg-secondary text-secondary-foreground",
|
|
46
46
|
destructive: "bg-destructive text-destructive-foreground",
|
|
@@ -33,7 +33,7 @@ var focusVisibleClasses = [
|
|
|
33
33
|
|
|
34
34
|
// src/utils/variants.ts
|
|
35
35
|
var solid = {
|
|
36
|
-
default: "bg-accent text-accent-foreground",
|
|
36
|
+
default: "bg-accent/70 text-accent-foreground",
|
|
37
37
|
primary: "bg-primary text-primary-foreground",
|
|
38
38
|
secondary: "bg-secondary text-secondary-foreground",
|
|
39
39
|
destructive: "bg-destructive text-destructive-foreground",
|
package/dist/components/chip.js
CHANGED
|
@@ -27,7 +27,7 @@ var import_tailwind_variants = require("tailwind-variants");
|
|
|
27
27
|
|
|
28
28
|
// src/utils/variants.ts
|
|
29
29
|
var solid = {
|
|
30
|
-
default: "bg-accent text-accent-foreground",
|
|
30
|
+
default: "bg-accent/70 text-accent-foreground",
|
|
31
31
|
primary: "bg-primary text-primary-foreground",
|
|
32
32
|
secondary: "bg-secondary text-secondary-foreground",
|
|
33
33
|
destructive: "bg-destructive text-destructive-foreground",
|
package/dist/components/chip.mjs
CHANGED
package/dist/components/code.js
CHANGED
|
@@ -27,7 +27,7 @@ var import_tailwind_variants = require("tailwind-variants");
|
|
|
27
27
|
|
|
28
28
|
// src/utils/variants.ts
|
|
29
29
|
var solid = {
|
|
30
|
-
default: "bg-accent text-accent-foreground",
|
|
30
|
+
default: "bg-accent/70 text-accent-foreground",
|
|
31
31
|
primary: "bg-primary text-primary-foreground",
|
|
32
32
|
secondary: "bg-secondary text-secondary-foreground",
|
|
33
33
|
destructive: "bg-destructive text-destructive-foreground",
|
package/dist/components/code.mjs
CHANGED
|
@@ -166,7 +166,7 @@ var drawer = (0, import_tailwind_variants2.tv)({
|
|
|
166
166
|
content: "max-w-6xl"
|
|
167
167
|
},
|
|
168
168
|
full: {
|
|
169
|
-
content: "max-w-full max-h-full h-[calc(100dvh_-_1rem)] inset-2"
|
|
169
|
+
content: "max-w-full max-h-full h-[calc(100dvh_-_1rem)] !inset-2"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
placement: {
|
|
@@ -17,11 +17,15 @@ export { InputVariantProps, input, passwordInput } from './input.mjs';
|
|
|
17
17
|
export { PageHeaderVariantProps, pageHeader } from './page-header.mjs';
|
|
18
18
|
export { PageLayoutSlots, PageLayoutVariantProps, pageLayout } from './page-layout.mjs';
|
|
19
19
|
export { PopoverVariants, popover } from './popover.mjs';
|
|
20
|
+
export { PreviewCardSlots, PreviewCardVariantProps, previewCard } from './preview-card.mjs';
|
|
21
|
+
export { RiskBadgeVariantProps, riskBadge } from './risk-badge.mjs';
|
|
20
22
|
export { RiskIndicatorVariantProps, riskIndicator } from './risk-indicator.mjs';
|
|
23
|
+
export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './section-row.mjs';
|
|
21
24
|
export { SeparatorVariantProps, separator } from './separator.mjs';
|
|
22
25
|
export { SidebarMenuActionVariantProps, SidebarMenuButtonVariantProps, SidebarVariantProps, sidebar, sidebarMenuAction, sidebarMenuButton } from './sidebar.mjs';
|
|
23
26
|
export { skeleton } from './skeleton.mjs';
|
|
24
27
|
export { SpinnerVariants, spinner } from './spinner.mjs';
|
|
28
|
+
export { SplitPageLayoutVariantProps, splitPageLayout } from './split-page-layout.mjs';
|
|
25
29
|
export { TabNavSlots, TabNavVariantProps, tabNav } from './tab-nav.mjs';
|
|
26
30
|
export { TableSlots, TableVariantProps, table } from './table.mjs';
|
|
27
31
|
export { TabsVariantProps, tabs } from './tabs.mjs';
|
|
@@ -17,11 +17,15 @@ export { InputVariantProps, input, passwordInput } from './input.js';
|
|
|
17
17
|
export { PageHeaderVariantProps, pageHeader } from './page-header.js';
|
|
18
18
|
export { PageLayoutSlots, PageLayoutVariantProps, pageLayout } from './page-layout.js';
|
|
19
19
|
export { PopoverVariants, popover } from './popover.js';
|
|
20
|
+
export { PreviewCardSlots, PreviewCardVariantProps, previewCard } from './preview-card.js';
|
|
21
|
+
export { RiskBadgeVariantProps, riskBadge } from './risk-badge.js';
|
|
20
22
|
export { RiskIndicatorVariantProps, riskIndicator } from './risk-indicator.js';
|
|
23
|
+
export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './section-row.js';
|
|
21
24
|
export { SeparatorVariantProps, separator } from './separator.js';
|
|
22
25
|
export { SidebarMenuActionVariantProps, SidebarMenuButtonVariantProps, SidebarVariantProps, sidebar, sidebarMenuAction, sidebarMenuButton } from './sidebar.js';
|
|
23
26
|
export { skeleton } from './skeleton.js';
|
|
24
27
|
export { SpinnerVariants, spinner } from './spinner.js';
|
|
28
|
+
export { SplitPageLayoutVariantProps, splitPageLayout } from './split-page-layout.js';
|
|
25
29
|
export { TabNavSlots, TabNavVariantProps, tabNav } from './tab-nav.js';
|
|
26
30
|
export { TableSlots, TableVariantProps, table } from './table.js';
|
|
27
31
|
export { TabsVariantProps, tabs } from './tabs.js';
|