@kopexa/theme 17.8.2 → 17.10.0

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 (38) hide show
  1. package/dist/{chunk-W7RJG22S.mjs → chunk-B5JVXVSG.mjs} +4 -9
  2. package/dist/{chunk-3CZOBPDH.mjs → chunk-CVGMGJPW.mjs} +2 -2
  3. package/dist/{chunk-NNKYGAZC.mjs → chunk-LIKA7I7Y.mjs} +1 -1
  4. package/dist/chunk-ODC3GJTR.mjs +61 -0
  5. package/dist/chunk-Q72M565Q.mjs +143 -0
  6. package/dist/chunk-RTWYV4TJ.mjs +64 -0
  7. package/dist/components/editor-basic.d.mts +42 -6
  8. package/dist/components/editor-basic.d.ts +42 -6
  9. package/dist/components/editor-basic.js +83 -3
  10. package/dist/components/editor-basic.mjs +1 -1
  11. package/dist/components/index.d.mts +2 -0
  12. package/dist/components/index.d.ts +2 -0
  13. package/dist/components/index.js +227 -29
  14. package/dist/components/index.mjs +16 -8
  15. package/dist/components/sidebar.js +2 -2
  16. package/dist/components/sidebar.mjs +1 -1
  17. package/dist/components/slash-dropdown-menu.js +1 -1
  18. package/dist/components/slash-dropdown-menu.mjs +1 -1
  19. package/dist/components/split-page-layout.d.mts +6 -0
  20. package/dist/components/split-page-layout.d.ts +6 -0
  21. package/dist/components/split-page-layout.js +4 -9
  22. package/dist/components/split-page-layout.mjs +1 -1
  23. package/dist/components/stat.d.mts +89 -0
  24. package/dist/components/stat.d.ts +89 -0
  25. package/dist/components/stat.js +88 -0
  26. package/dist/components/stat.mjs +6 -0
  27. package/dist/components/toc.d.mts +95 -0
  28. package/dist/components/toc.d.ts +95 -0
  29. package/dist/components/toc.js +85 -0
  30. package/dist/components/toc.mjs +6 -0
  31. package/dist/index.css +2 -2
  32. package/dist/index.d.mts +2 -0
  33. package/dist/index.d.ts +2 -0
  34. package/dist/index.js +227 -29
  35. package/dist/index.mjs +16 -8
  36. package/package.json +5 -4
  37. package/dist/chunk-XOL7P7NP.mjs +0 -63
  38. /package/dist/{chunk-7ED3ZIKG.mjs → chunk-YLLRX2LS.mjs} +0 -0
@@ -0,0 +1,89 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const stat: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ sm: {
7
+ valueText: string;
8
+ };
9
+ md: {
10
+ valueText: string;
11
+ };
12
+ lg: {
13
+ valueText: string;
14
+ };
15
+ };
16
+ trend: {
17
+ up: {
18
+ indicator: string;
19
+ };
20
+ down: {
21
+ indicator: string;
22
+ };
23
+ };
24
+ }, {
25
+ root: string[];
26
+ label: string[];
27
+ helpText: string[];
28
+ valueUnit: string[];
29
+ valueText: string[];
30
+ indicator: string[];
31
+ }, undefined, {
32
+ size: {
33
+ sm: {
34
+ valueText: string;
35
+ };
36
+ md: {
37
+ valueText: string;
38
+ };
39
+ lg: {
40
+ valueText: string;
41
+ };
42
+ };
43
+ trend: {
44
+ up: {
45
+ indicator: string;
46
+ };
47
+ down: {
48
+ indicator: string;
49
+ };
50
+ };
51
+ }, {
52
+ root: string[];
53
+ label: string[];
54
+ helpText: string[];
55
+ valueUnit: string[];
56
+ valueText: string[];
57
+ indicator: string[];
58
+ }, tailwind_variants.TVReturnType<{
59
+ size: {
60
+ sm: {
61
+ valueText: string;
62
+ };
63
+ md: {
64
+ valueText: string;
65
+ };
66
+ lg: {
67
+ valueText: string;
68
+ };
69
+ };
70
+ trend: {
71
+ up: {
72
+ indicator: string;
73
+ };
74
+ down: {
75
+ indicator: string;
76
+ };
77
+ };
78
+ }, {
79
+ root: string[];
80
+ label: string[];
81
+ helpText: string[];
82
+ valueUnit: string[];
83
+ valueText: string[];
84
+ indicator: string[];
85
+ }, undefined, unknown, unknown, undefined>>;
86
+ type StatVariantProps = VariantProps<typeof stat>;
87
+ type StatSlots = keyof ReturnType<typeof stat>;
88
+
89
+ export { type StatSlots, type StatVariantProps, stat };
@@ -0,0 +1,88 @@
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 __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/stat.ts
21
+ var stat_exports = {};
22
+ __export(stat_exports, {
23
+ stat: () => stat
24
+ });
25
+ module.exports = __toCommonJS(stat_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var stat = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ root: ["flex", "flex-col", "gap-1", "relative", "flex-1"],
30
+ label: [
31
+ "inline-flex",
32
+ "gap-1.5",
33
+ "items-center",
34
+ "text-muted-foreground",
35
+ "text-sm"
36
+ ],
37
+ helpText: ["text-muted-foreground", "text-xs"],
38
+ valueUnit: [
39
+ "text-muted-foreground",
40
+ "text-xs",
41
+ "font-normal",
42
+ "tracking-normal"
43
+ ],
44
+ valueText: [
45
+ "align-baseline",
46
+ "font-semibold",
47
+ "tracking-tight",
48
+ "tabular-nums",
49
+ "inline-flex",
50
+ "gap-1"
51
+ ],
52
+ indicator: [
53
+ "inline-flex",
54
+ "items-center",
55
+ "justify-center",
56
+ "me-1",
57
+ "[&_svg]:size-[1em]"
58
+ ]
59
+ },
60
+ variants: {
61
+ size: {
62
+ sm: {
63
+ valueText: "text-xl"
64
+ },
65
+ md: {
66
+ valueText: "text-2xl"
67
+ },
68
+ lg: {
69
+ valueText: "text-3xl"
70
+ }
71
+ },
72
+ trend: {
73
+ up: {
74
+ indicator: "text-success"
75
+ },
76
+ down: {
77
+ indicator: "text-destructive"
78
+ }
79
+ }
80
+ },
81
+ defaultVariants: {
82
+ size: "md"
83
+ }
84
+ });
85
+ // Annotate the CommonJS export names for ESM import in node:
86
+ 0 && (module.exports = {
87
+ stat
88
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ stat
3
+ } from "../chunk-RTWYV4TJ.mjs";
4
+ export {
5
+ stat
6
+ };
@@ -0,0 +1,95 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const toc: tailwind_variants.TVReturnType<{
5
+ style: {
6
+ default: {
7
+ root: string[];
8
+ };
9
+ flat: {
10
+ root: string[];
11
+ header: string[];
12
+ };
13
+ compact: {
14
+ root: string[];
15
+ list: string[];
16
+ itemButton: string[];
17
+ itemNumber: string[];
18
+ };
19
+ };
20
+ }, {
21
+ root: string[];
22
+ header: string[];
23
+ headerContent: string[];
24
+ headerIcon: string[];
25
+ headerTitle: never[];
26
+ headerActions: string[];
27
+ emptyState: string[];
28
+ nav: never[];
29
+ list: string[];
30
+ item: string[];
31
+ itemNumber: string[];
32
+ itemButton: string[];
33
+ }, undefined, {
34
+ style: {
35
+ default: {
36
+ root: string[];
37
+ };
38
+ flat: {
39
+ root: string[];
40
+ header: string[];
41
+ };
42
+ compact: {
43
+ root: string[];
44
+ list: string[];
45
+ itemButton: string[];
46
+ itemNumber: string[];
47
+ };
48
+ };
49
+ }, {
50
+ root: string[];
51
+ header: string[];
52
+ headerContent: string[];
53
+ headerIcon: string[];
54
+ headerTitle: never[];
55
+ headerActions: string[];
56
+ emptyState: string[];
57
+ nav: never[];
58
+ list: string[];
59
+ item: string[];
60
+ itemNumber: string[];
61
+ itemButton: string[];
62
+ }, tailwind_variants.TVReturnType<{
63
+ style: {
64
+ default: {
65
+ root: string[];
66
+ };
67
+ flat: {
68
+ root: string[];
69
+ header: string[];
70
+ };
71
+ compact: {
72
+ root: string[];
73
+ list: string[];
74
+ itemButton: string[];
75
+ itemNumber: string[];
76
+ };
77
+ };
78
+ }, {
79
+ root: string[];
80
+ header: string[];
81
+ headerContent: string[];
82
+ headerIcon: string[];
83
+ headerTitle: never[];
84
+ headerActions: string[];
85
+ emptyState: string[];
86
+ nav: never[];
87
+ list: string[];
88
+ item: string[];
89
+ itemNumber: string[];
90
+ itemButton: string[];
91
+ }, undefined, unknown, unknown, undefined>>;
92
+ type TocVariantProps = VariantProps<typeof toc>;
93
+ type TocSlots = keyof ReturnType<typeof toc>;
94
+
95
+ export { type TocSlots, type TocVariantProps, toc };
@@ -0,0 +1,95 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const toc: tailwind_variants.TVReturnType<{
5
+ style: {
6
+ default: {
7
+ root: string[];
8
+ };
9
+ flat: {
10
+ root: string[];
11
+ header: string[];
12
+ };
13
+ compact: {
14
+ root: string[];
15
+ list: string[];
16
+ itemButton: string[];
17
+ itemNumber: string[];
18
+ };
19
+ };
20
+ }, {
21
+ root: string[];
22
+ header: string[];
23
+ headerContent: string[];
24
+ headerIcon: string[];
25
+ headerTitle: never[];
26
+ headerActions: string[];
27
+ emptyState: string[];
28
+ nav: never[];
29
+ list: string[];
30
+ item: string[];
31
+ itemNumber: string[];
32
+ itemButton: string[];
33
+ }, undefined, {
34
+ style: {
35
+ default: {
36
+ root: string[];
37
+ };
38
+ flat: {
39
+ root: string[];
40
+ header: string[];
41
+ };
42
+ compact: {
43
+ root: string[];
44
+ list: string[];
45
+ itemButton: string[];
46
+ itemNumber: string[];
47
+ };
48
+ };
49
+ }, {
50
+ root: string[];
51
+ header: string[];
52
+ headerContent: string[];
53
+ headerIcon: string[];
54
+ headerTitle: never[];
55
+ headerActions: string[];
56
+ emptyState: string[];
57
+ nav: never[];
58
+ list: string[];
59
+ item: string[];
60
+ itemNumber: string[];
61
+ itemButton: string[];
62
+ }, tailwind_variants.TVReturnType<{
63
+ style: {
64
+ default: {
65
+ root: string[];
66
+ };
67
+ flat: {
68
+ root: string[];
69
+ header: string[];
70
+ };
71
+ compact: {
72
+ root: string[];
73
+ list: string[];
74
+ itemButton: string[];
75
+ itemNumber: string[];
76
+ };
77
+ };
78
+ }, {
79
+ root: string[];
80
+ header: string[];
81
+ headerContent: string[];
82
+ headerIcon: string[];
83
+ headerTitle: never[];
84
+ headerActions: string[];
85
+ emptyState: string[];
86
+ nav: never[];
87
+ list: string[];
88
+ item: string[];
89
+ itemNumber: string[];
90
+ itemButton: string[];
91
+ }, undefined, unknown, unknown, undefined>>;
92
+ type TocVariantProps = VariantProps<typeof toc>;
93
+ type TocSlots = keyof ReturnType<typeof toc>;
94
+
95
+ export { type TocSlots, type TocVariantProps, toc };
@@ -0,0 +1,85 @@
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 __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/toc.ts
21
+ var toc_exports = {};
22
+ __export(toc_exports, {
23
+ toc: () => toc
24
+ });
25
+ module.exports = __toCommonJS(toc_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var toc = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ root: ["my-4", "rounded-lg", "border", "bg-muted/30", "p-4"],
30
+ header: ["flex", "items-center", "justify-between", "gap-2", "mb-3"],
31
+ headerContent: [
32
+ "flex",
33
+ "items-center",
34
+ "gap-2",
35
+ "text-sm",
36
+ "font-medium",
37
+ "text-muted-foreground"
38
+ ],
39
+ headerIcon: ["size-4"],
40
+ headerTitle: [],
41
+ headerActions: ["flex", "items-center", "gap-1"],
42
+ emptyState: ["text-sm", "text-muted-foreground", "italic"],
43
+ nav: [],
44
+ list: ["space-y-1", "list-none", "m-0", "p-0"],
45
+ item: ["list-none", "flex", "items-baseline", "gap-2"],
46
+ itemNumber: [
47
+ "text-sm",
48
+ "text-muted-foreground",
49
+ "tabular-nums",
50
+ "shrink-0"
51
+ ],
52
+ itemButton: [
53
+ "text-sm",
54
+ "text-left",
55
+ "hover:text-primary",
56
+ "hover:underline",
57
+ "transition-colors",
58
+ "truncate"
59
+ ]
60
+ },
61
+ variants: {
62
+ style: {
63
+ default: {
64
+ root: ["bg-muted/30", "border", "p-4"]
65
+ },
66
+ flat: {
67
+ root: ["bg-transparent", "border-0", "p-0"],
68
+ header: ["mb-2"]
69
+ },
70
+ compact: {
71
+ root: ["bg-muted/20", "border", "p-3"],
72
+ list: ["space-y-0.5"],
73
+ itemButton: ["text-xs"],
74
+ itemNumber: ["text-xs"]
75
+ }
76
+ }
77
+ },
78
+ defaultVariants: {
79
+ style: "default"
80
+ }
81
+ });
82
+ // Annotate the CommonJS export names for ESM import in node:
83
+ 0 && (module.exports = {
84
+ toc
85
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ toc
3
+ } from "../chunk-ODC3GJTR.mjs";
4
+ export {
5
+ toc
6
+ };
package/dist/index.css CHANGED
@@ -36,11 +36,11 @@
36
36
  --chart-4: oklch(0.828 0.189 84.429);
37
37
  --chart-5: oklch(0.769 0.188 70.08);
38
38
  --radius: 0.625rem;
39
- --sidebar: var(--color-primary-900);
39
+ --sidebar: var(--color-primary-950);
40
40
  --sidebar-foreground: var(--color-white);
41
41
  --sidebar-primary: oklch(0.205 0 0);
42
42
  --sidebar-primary-foreground: var(--color-white);
43
- --sidebar-accent:var(--color-primary-700);
43
+ --sidebar-accent:var(--color-primary-800);
44
44
  --sidebar-accent-foreground: var(--color-primary-50);
45
45
  --sidebar-border: var(--color-default-200);
46
46
  --sidebar-ring: oklch(0.708 0 0);
package/dist/index.d.mts CHANGED
@@ -59,11 +59,13 @@ export { slashDropdownMenu } from './components/slash-dropdown-menu.mjs';
59
59
  export { SpinnerVariants, spinner } from './components/spinner.mjs';
60
60
  export { SplitPageLayoutVariantProps, splitPageLayout } from './components/split-page-layout.mjs';
61
61
  export { StandardChipVariants, standardChip } from './components/standard-chip.mjs';
62
+ export { StatSlots, StatVariantProps, stat } from './components/stat.mjs';
62
63
  export { SwitchSlots, SwitchVariantProps, switchVariants } from './components/switch.mjs';
63
64
  export { TabNavSlots, TabNavVariantProps, tabNav } from './components/tab-nav.mjs';
64
65
  export { TableSlots, TableVariantProps, table } from './components/table.mjs';
65
66
  export { TabsVariantProps, tabs } from './components/tabs.mjs';
66
67
  export { TextareaVariantProps, textarea } from './components/textarea.mjs';
68
+ export { TocSlots, TocVariantProps, toc } from './components/toc.mjs';
67
69
  export { ToolbarVariantProps, toolbar } from './components/toolbar.mjs';
68
70
  export { TooltipVariants, tooltip } from './components/tooltip.mjs';
69
71
  export { SlotsToClasses } from './utils/types.mjs';
package/dist/index.d.ts CHANGED
@@ -59,11 +59,13 @@ export { slashDropdownMenu } from './components/slash-dropdown-menu.js';
59
59
  export { SpinnerVariants, spinner } from './components/spinner.js';
60
60
  export { SplitPageLayoutVariantProps, splitPageLayout } from './components/split-page-layout.js';
61
61
  export { StandardChipVariants, standardChip } from './components/standard-chip.js';
62
+ export { StatSlots, StatVariantProps, stat } from './components/stat.js';
62
63
  export { SwitchSlots, SwitchVariantProps, switchVariants } from './components/switch.js';
63
64
  export { TabNavSlots, TabNavVariantProps, tabNav } from './components/tab-nav.js';
64
65
  export { TableSlots, TableVariantProps, table } from './components/table.js';
65
66
  export { TabsVariantProps, tabs } from './components/tabs.js';
66
67
  export { TextareaVariantProps, textarea } from './components/textarea.js';
68
+ export { TocSlots, TocVariantProps, toc } from './components/toc.js';
67
69
  export { ToolbarVariantProps, toolbar } from './components/toolbar.js';
68
70
  export { TooltipVariants, tooltip } from './components/tooltip.js';
69
71
  export { SlotsToClasses } from './utils/types.js';