@kopexa/theme 1.6.0 → 1.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 (67) hide show
  1. package/dist/{chunk-OMS3433R.mjs → chunk-5QIMO5EG.mjs} +1 -1
  2. package/dist/{chunk-MGYGD5BF.mjs → chunk-DQEPGWAN.mjs} +1 -1
  3. package/dist/chunk-IY7SLI3T.mjs +41 -0
  4. package/dist/{chunk-DH3KNPAO.mjs → chunk-J4JIYTOU.mjs} +1 -1
  5. package/dist/{chunk-UVT775TU.mjs → chunk-LG2J56LI.mjs} +1 -1
  6. package/dist/{chunk-SU53TZN7.mjs → chunk-MKBU6G6Q.mjs} +10 -1
  7. package/dist/chunk-RV656WRF.mjs +30 -0
  8. package/dist/{chunk-HOQ2LD24.mjs → chunk-T5PESSOS.mjs} +1 -1
  9. package/dist/chunk-TT5V2MUL.mjs +29 -0
  10. package/dist/chunk-V2J5XG34.mjs +43 -0
  11. package/dist/{chunk-IRKCLWJD.mjs → chunk-VCLXE57S.mjs} +2 -1
  12. package/dist/chunk-WPOYEHD2.mjs +45 -0
  13. package/dist/{chunk-WSX3HKVE.mjs → chunk-XJ7XBZNF.mjs} +1 -1
  14. package/dist/{chunk-UPTG533L.mjs → chunk-ZLM6Z3W2.mjs} +7 -0
  15. package/dist/components/avatar.js +1 -1
  16. package/dist/components/avatar.mjs +2 -2
  17. package/dist/components/button.js +1 -1
  18. package/dist/components/button.mjs +2 -2
  19. package/dist/components/chip.js +1 -1
  20. package/dist/components/chip.mjs +2 -2
  21. package/dist/components/code.js +1 -1
  22. package/dist/components/code.mjs +2 -2
  23. package/dist/components/drawer.js +1 -1
  24. package/dist/components/drawer.mjs +1 -1
  25. package/dist/components/index.d.mts +5 -0
  26. package/dist/components/index.d.ts +5 -0
  27. package/dist/components/index.js +224 -24
  28. package/dist/components/index.mjs +45 -25
  29. package/dist/components/preview-card.d.mts +89 -0
  30. package/dist/components/preview-card.d.ts +89 -0
  31. package/dist/components/preview-card.js +69 -0
  32. package/dist/components/preview-card.mjs +6 -0
  33. package/dist/components/resizable.d.mts +49 -0
  34. package/dist/components/resizable.d.ts +49 -0
  35. package/dist/components/resizable.js +54 -0
  36. package/dist/components/resizable.mjs +6 -0
  37. package/dist/components/risk-badge.d.mts +97 -0
  38. package/dist/components/risk-badge.d.ts +97 -0
  39. package/dist/components/risk-badge.js +67 -0
  40. package/dist/components/risk-badge.mjs +6 -0
  41. package/dist/components/section-row.d.mts +47 -0
  42. package/dist/components/section-row.d.ts +47 -0
  43. package/dist/components/section-row.js +53 -0
  44. package/dist/components/section-row.mjs +6 -0
  45. package/dist/components/separator.js +2 -1
  46. package/dist/components/separator.mjs +1 -1
  47. package/dist/components/split-page-layout.d.mts +49 -0
  48. package/dist/components/split-page-layout.d.ts +49 -0
  49. package/dist/components/split-page-layout.js +65 -0
  50. package/dist/components/split-page-layout.mjs +6 -0
  51. package/dist/components/tab-nav.d.mts +18 -0
  52. package/dist/components/tab-nav.d.ts +18 -0
  53. package/dist/components/tab-nav.js +7 -0
  54. package/dist/components/tab-nav.mjs +1 -1
  55. package/dist/components/table.d.mts +18 -0
  56. package/dist/components/table.d.ts +18 -0
  57. package/dist/components/table.js +10 -1
  58. package/dist/components/table.mjs +1 -1
  59. package/dist/index.css +71 -13
  60. package/dist/index.d.mts +5 -0
  61. package/dist/index.d.ts +5 -0
  62. package/dist/index.js +224 -24
  63. package/dist/index.mjs +45 -25
  64. package/dist/utils/variants.js +1 -1
  65. package/dist/utils/variants.mjs +1 -1
  66. package/package.json +1 -1
  67. /package/dist/{chunk-EOJ6MEGH.mjs → chunk-GZPF57JX.mjs} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-25L2JS6A.mjs";
5
5
  import {
6
6
  colorVariants
7
- } from "./chunk-UVT775TU.mjs";
7
+ } from "./chunk-LG2J56LI.mjs";
8
8
 
9
9
  // src/components/avatar.ts
10
10
  import { tv } from "tailwind-variants";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-25L2JS6A.mjs";
4
4
  import {
5
5
  colorVariants
6
- } from "./chunk-UVT775TU.mjs";
6
+ } from "./chunk-LG2J56LI.mjs";
7
7
 
8
8
  // src/components/button.ts
9
9
  import { tv } from "tailwind-variants";
@@ -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
+ };
@@ -52,7 +52,7 @@ var drawer = tv({
52
52
  content: "max-w-6xl"
53
53
  },
54
54
  full: {
55
- content: "max-w-full max-h-full h-[calc(100dvh_-_1rem)] inset-2"
55
+ content: "max-w-full max-h-full h-[calc(100dvh_-_1rem)] !inset-2"
56
56
  }
57
57
  },
58
58
  placement: {
@@ -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,30 @@
1
+ // src/components/resizable.ts
2
+ import { tv } from "tailwind-variants";
3
+ var resizable = tv({
4
+ slots: {
5
+ root: ["flex h-full w-full data-[panel-group-direction=vertical]:flex-col"],
6
+ panel: [],
7
+ handle: [
8
+ "bg-border focus-visible:ring-ring relative",
9
+ "flex w-px items-center justify-center",
10
+ "after:absolute after:inset-y-0 after:left-1/2",
11
+ "after:w-1 after:-translate-x-1/2",
12
+ "focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
13
+ "data-[panel-group-direction=vertical]:h-px",
14
+ "data-[panel-group-direction=vertical]:w-full",
15
+ "data-[panel-group-direction=vertical]:after:left-0",
16
+ "data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full",
17
+ "data-[panel-group-direction=vertical]:after:translate-x-0",
18
+ "data-[panel-group-direction=vertical]:after:-translate-y-1/2",
19
+ "[&[data-panel-group-direction=vertical]>div]:rotate-90"
20
+ ],
21
+ iconContainer: [
22
+ "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
23
+ "[&_> svg]:size-2.5 [&_> svg]:shrink-0"
24
+ ]
25
+ }
26
+ });
27
+
28
+ export {
29
+ resizable
30
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-UVT775TU.mjs";
3
+ } from "./chunk-LG2J56LI.mjs";
4
4
 
5
5
  // src/components/chip.ts
6
6
  import { tv } from "tailwind-variants";
@@ -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
+ };
@@ -7,7 +7,8 @@ var separator = tv({
7
7
  vertical: "",
8
8
  horizontal: ""
9
9
  }
10
- }
10
+ },
11
+ compoundVariants: []
11
12
  });
12
13
 
13
14
  export {
@@ -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
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-UVT775TU.mjs";
3
+ } from "./chunk-LG2J56LI.mjs";
4
4
 
5
5
  // src/components/code.ts
6
6
  import { tv } from "tailwind-variants";
@@ -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",
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  avatar
3
- } from "../chunk-OMS3433R.mjs";
3
+ } from "../chunk-5QIMO5EG.mjs";
4
4
  import "../chunk-25L2JS6A.mjs";
5
- import "../chunk-UVT775TU.mjs";
5
+ import "../chunk-LG2J56LI.mjs";
6
6
  export {
7
7
  avatar
8
8
  };
@@ -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",
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  button
3
- } from "../chunk-MGYGD5BF.mjs";
3
+ } from "../chunk-DQEPGWAN.mjs";
4
4
  import "../chunk-25L2JS6A.mjs";
5
- import "../chunk-UVT775TU.mjs";
5
+ import "../chunk-LG2J56LI.mjs";
6
6
  export {
7
7
  button
8
8
  };
@@ -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",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  chip
3
- } from "../chunk-HOQ2LD24.mjs";
4
- import "../chunk-UVT775TU.mjs";
3
+ } from "../chunk-T5PESSOS.mjs";
4
+ import "../chunk-LG2J56LI.mjs";
5
5
  export {
6
6
  chip
7
7
  };
@@ -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",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  code
3
- } from "../chunk-WSX3HKVE.mjs";
4
- import "../chunk-UVT775TU.mjs";
3
+ } from "../chunk-XJ7XBZNF.mjs";
4
+ import "../chunk-LG2J56LI.mjs";
5
5
  export {
6
6
  code
7
7
  };
@@ -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: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  drawer
3
- } from "../chunk-DH3KNPAO.mjs";
3
+ } from "../chunk-J4JIYTOU.mjs";
4
4
  import "../chunk-5DF3M5JP.mjs";
5
5
  export {
6
6
  drawer
@@ -17,11 +17,16 @@ 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 { ResizableVariantProps, resizable } from './resizable.mjs';
22
+ export { RiskBadgeVariantProps, riskBadge } from './risk-badge.mjs';
20
23
  export { RiskIndicatorVariantProps, riskIndicator } from './risk-indicator.mjs';
24
+ export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './section-row.mjs';
21
25
  export { SeparatorVariantProps, separator } from './separator.mjs';
22
26
  export { SidebarMenuActionVariantProps, SidebarMenuButtonVariantProps, SidebarVariantProps, sidebar, sidebarMenuAction, sidebarMenuButton } from './sidebar.mjs';
23
27
  export { skeleton } from './skeleton.mjs';
24
28
  export { SpinnerVariants, spinner } from './spinner.mjs';
29
+ export { SplitPageLayoutVariantProps, splitPageLayout } from './split-page-layout.mjs';
25
30
  export { TabNavSlots, TabNavVariantProps, tabNav } from './tab-nav.mjs';
26
31
  export { TableSlots, TableVariantProps, table } from './table.mjs';
27
32
  export { TabsVariantProps, tabs } from './tabs.mjs';
@@ -17,11 +17,16 @@ 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 { ResizableVariantProps, resizable } from './resizable.js';
22
+ export { RiskBadgeVariantProps, riskBadge } from './risk-badge.js';
20
23
  export { RiskIndicatorVariantProps, riskIndicator } from './risk-indicator.js';
24
+ export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './section-row.js';
21
25
  export { SeparatorVariantProps, separator } from './separator.js';
22
26
  export { SidebarMenuActionVariantProps, SidebarMenuButtonVariantProps, SidebarVariantProps, sidebar, sidebarMenuAction, sidebarMenuButton } from './sidebar.js';
23
27
  export { skeleton } from './skeleton.js';
24
28
  export { SpinnerVariants, spinner } from './spinner.js';
29
+ export { SplitPageLayoutVariantProps, splitPageLayout } from './split-page-layout.js';
25
30
  export { TabNavSlots, TabNavVariantProps, tabNav } from './tab-nav.js';
26
31
  export { TableSlots, TableVariantProps, table } from './table.js';
27
32
  export { TabsVariantProps, tabs } from './tabs.js';