@kopexa/theme 1.5.3 → 1.5.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.
Files changed (55) hide show
  1. package/dist/{chunk-BIRJNNEY.mjs → chunk-3M5JSM7Y.mjs} +5 -5
  2. package/dist/chunk-5BIGFSZK.mjs +48 -0
  3. package/dist/chunk-CDTKWCOH.mjs +120 -0
  4. package/dist/{chunk-7CM52H5K.mjs → chunk-CQDTDA47.mjs} +1 -1
  5. package/dist/chunk-GNYTZGE5.mjs +48 -0
  6. package/dist/chunk-HAVJ6EQ6.mjs +39 -0
  7. package/dist/{chunk-Z56OSRTC.mjs → chunk-I2NMD23O.mjs} +3 -3
  8. package/dist/chunk-KPOZFVP6.mjs +13 -0
  9. package/dist/chunk-NWKBPO37.mjs +21 -0
  10. package/dist/chunk-VNQEJU4P.mjs +9 -0
  11. package/dist/components/avatar.js +3 -3
  12. package/dist/components/avatar.mjs +1 -1
  13. package/dist/components/button.js +5 -5
  14. package/dist/components/button.mjs +1 -1
  15. package/dist/components/checkbox.d.mts +43 -0
  16. package/dist/components/checkbox.d.ts +43 -0
  17. package/dist/components/checkbox.js +37 -0
  18. package/dist/components/checkbox.mjs +6 -0
  19. package/dist/components/code.d.mts +70 -0
  20. package/dist/components/code.d.ts +70 -0
  21. package/dist/components/code.js +120 -0
  22. package/dist/components/code.mjs +7 -0
  23. package/dist/components/data-table.d.mts +121 -0
  24. package/dist/components/data-table.d.ts +121 -0
  25. package/dist/components/data-table.js +72 -0
  26. package/dist/components/data-table.mjs +6 -0
  27. package/dist/components/heading.d.mts +34 -0
  28. package/dist/components/heading.d.ts +34 -0
  29. package/dist/components/heading.js +45 -0
  30. package/dist/components/heading.mjs +6 -0
  31. package/dist/components/index.d.mts +7 -0
  32. package/dist/components/index.d.ts +7 -0
  33. package/dist/components/index.js +317 -30
  34. package/dist/components/index.mjs +45 -17
  35. package/dist/components/input.js +1 -1
  36. package/dist/components/input.mjs +1 -1
  37. package/dist/components/page-header.d.mts +85 -0
  38. package/dist/components/page-header.d.ts +85 -0
  39. package/dist/components/page-header.js +63 -0
  40. package/dist/components/page-header.mjs +6 -0
  41. package/dist/components/skeleton.d.mts +5 -0
  42. package/dist/components/skeleton.d.ts +5 -0
  43. package/dist/components/skeleton.js +33 -0
  44. package/dist/components/skeleton.mjs +6 -0
  45. package/dist/components/table.d.mts +215 -0
  46. package/dist/components/table.d.ts +215 -0
  47. package/dist/components/table.js +144 -0
  48. package/dist/components/table.mjs +6 -0
  49. package/dist/index.css +131 -26
  50. package/dist/index.d.mts +7 -0
  51. package/dist/index.d.ts +7 -0
  52. package/dist/index.js +317 -30
  53. package/dist/index.mjs +45 -17
  54. package/package.json +3 -3
  55. /package/dist/{chunk-5EDS3TJU.mjs → chunk-FWB233VZ.mjs} +0 -0
@@ -0,0 +1,144 @@
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/table.ts
21
+ var table_exports = {};
22
+ __export(table_exports, {
23
+ table: () => table
24
+ });
25
+ module.exports = __toCommonJS(table_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var table = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ table: "min-w-full h-auto",
30
+ thead: "",
31
+ tbody: "after:block divide-y",
32
+ tr: [
33
+ "group/tr outline-hidden",
34
+ "[&_td:last-child]:pr-4 [&_th:last-child]:pr-4",
35
+ "[&_td:first-child]:pl-4 [&_th:first-child]:pl-4"
36
+ ],
37
+ th: [
38
+ "group/th px-3 py-3.5 text-start text-xs font-semibold whitespace-normal",
39
+ "text-foreground border-b"
40
+ ],
41
+ td: [
42
+ "py-2 px-3 text-xs font-normal whitespace-normal relative",
43
+ "[&>*]:z-[1]",
44
+ "[&>*]:relative",
45
+ // after content for selection
46
+ "after:pointer-events-none",
47
+ "after:content-['']",
48
+ "after:absolute",
49
+ "after:-z-[1]",
50
+ "after:inset-0",
51
+ "after:opacity-0",
52
+ "group-aria-[selected=true]/tr:after:opacity-100",
53
+ // before content for selection
54
+ "before:pointer-events-none",
55
+ "before:content-['']",
56
+ "before:absolute",
57
+ "before:-z-[1]",
58
+ "before:inset-y-0",
59
+ "before:start-0",
60
+ "before:w-0.5",
61
+ "before:opacity-0",
62
+ "group-aria-[selected=true]/tr:first:before:opacity-100"
63
+ ]
64
+ },
65
+ variants: {
66
+ overscroll: {
67
+ horizontal: {
68
+ th: "whitespace-nowrap",
69
+ td: "whitespace-nowrap"
70
+ }
71
+ },
72
+ color: {
73
+ default: {
74
+ td: [
75
+ "first:before:bg-primary group-aria-[selected=true]/tr:text-accent-foreground"
76
+ ]
77
+ },
78
+ primary: {
79
+ td: [
80
+ "before:bg-primary group-aria-[selected=true]/tr:text-primary dark:group-aria-[selected=true]/tr:text-primary-foreground",
81
+ "after:bg-primary/10 dark:after:bg-primary/20"
82
+ ]
83
+ }
84
+ },
85
+ layout: {
86
+ auto: {
87
+ table: "table-auto"
88
+ },
89
+ fixed: {
90
+ table: "table-fixed"
91
+ }
92
+ },
93
+ isSelectable: {
94
+ true: {
95
+ tr: "cursor-default",
96
+ td: [
97
+ "group-aria-[selected=false]/tr:group-data-[hover=true]/tr:bg-muted/30"
98
+ ]
99
+ }
100
+ },
101
+ hasSelect: {
102
+ true: {
103
+ tr: "[&_th:first-of-type]:w-[1%] [&_th:first-of-type]:whitespace-nowrap"
104
+ }
105
+ },
106
+ hasActions: {
107
+ true: {
108
+ tr: "[&_th:last-of-type]:w-[1%] [&_th:last-of-type]:whitespace-nowrap"
109
+ }
110
+ },
111
+ isStickyCell: {
112
+ true: {
113
+ th: "sticky bg-background z-[2]",
114
+ td: "sticky h-full bg-background z-[2]"
115
+ }
116
+ },
117
+ isSelectCell: {
118
+ true: {
119
+ td: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]"
120
+ }
121
+ },
122
+ isActionCell: {
123
+ true: {
124
+ td: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]"
125
+ }
126
+ },
127
+ fullWidth: {
128
+ true: {
129
+ base: "w-full",
130
+ wrapper: "w-full",
131
+ table: "w-full"
132
+ }
133
+ }
134
+ },
135
+ defaultVariants: {
136
+ layout: "auto",
137
+ color: "default",
138
+ fullWidth: true
139
+ }
140
+ });
141
+ // Annotate the CommonJS export names for ESM import in node:
142
+ 0 && (module.exports = {
143
+ table
144
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ table
3
+ } from "../chunk-CDTKWCOH.mjs";
4
+ export {
5
+ table
6
+ };
package/dist/index.css CHANGED
@@ -10,11 +10,11 @@
10
10
  --card-foreground: oklch(0.145 0 0);
11
11
  --popover: oklch(1 0 0);
12
12
  --popover-foreground: oklch(0.145 0 0);
13
- --primary: var(--color-primary-900);
13
+ --primary: var(--color-primary-800);
14
14
  --primary-foreground: var(--color-white);
15
15
  --secondary: var(--color-default-200);
16
16
  --secondary-foreground: oklch(0.205 0 0);
17
- --muted: oklch(0.97 0 0);
17
+ --muted: var(--color-default-100);
18
18
  --muted-foreground: oklch(0.556 0 0);
19
19
  --accent: var(--color-default-100);
20
20
  --accent-foreground: oklch(0.205 0 0);
@@ -26,8 +26,8 @@
26
26
  --warning-foreground: var(--color-white);
27
27
  --info: var(--color-info-500);
28
28
  --info-foreground: oklch(--color-black);
29
- --border: oklch(0.922 0 0);
30
- --input: oklch(0.922 0 0);
29
+ --border: var(--color-default-200);
30
+ --input:var(--color-default-200);
31
31
  --ring: oklch(0.708 0 0);
32
32
  --chart-1: oklch(0.646 0.222 41.116);
33
33
  --chart-2: oklch(0.6 0.118 184.704);
@@ -39,9 +39,9 @@
39
39
  --sidebar-foreground: oklch(0.145 0 0);
40
40
  --sidebar-primary: oklch(0.205 0 0);
41
41
  --sidebar-primary-foreground: oklch(0.985 0 0);
42
- --sidebar-accent: oklch(0.97 0 0);
42
+ --sidebar-accent:var(--color-default-200);
43
43
  --sidebar-accent-foreground: oklch(0.205 0 0);
44
- --sidebar-border: oklch(0.922 0 0);
44
+ --sidebar-border: var(--color-default-200);
45
45
  --sidebar-ring: oklch(0.708 0 0);
46
46
  }
47
47
 
@@ -52,13 +52,13 @@
52
52
  --card-foreground: oklch(0.985 0 0);
53
53
  --popover: oklch(0.145 0 0);
54
54
  --popover-foreground: oklch(0.985 0 0);
55
- --primary: oklch(0.985 0 0);
56
- --primary-foreground: oklch(0.205 0 0);
55
+ --primary: var(--color-primary-700);
56
+ --primary-foreground: var(--color-white);
57
57
  --secondary: oklch(0.269 0 0);
58
58
  --secondary-foreground: oklch(0.985 0 0);
59
59
  --muted: oklch(0.269 0 0);
60
60
  --muted-foreground: oklch(0.708 0 0);
61
- --accent: var(--color-default-800);
61
+ --accent: var(--color-primary-800);
62
62
  --accent-foreground: oklch(0.985 0 0);
63
63
  --destructive: var(--color-destructive-600);
64
64
  --destructive-foreground: var(--color-white);
@@ -68,8 +68,8 @@
68
68
  --warning-foreground: var(--color-white);
69
69
  --info: var(--color-info-500);
70
70
  --info-foreground: oklch(--color-black);
71
- --border: oklch(0.269 0 0);
72
- --input: oklch(0.269 0 0);
71
+ --border: var(--color-primary-800);
72
+ --input: var(--color-primary-800);
73
73
  --ring: oklch(0.439 0 0);
74
74
  --chart-1: oklch(0.488 0.243 264.376);
75
75
  --chart-2: oklch(0.696 0.17 162.48);
@@ -80,9 +80,9 @@
80
80
  --sidebar-foreground: oklch(0.985 0 0);
81
81
  --sidebar-primary: oklch(0.488 0.243 264.376);
82
82
  --sidebar-primary-foreground: oklch(0.985 0 0);
83
- --sidebar-accent: oklch(0.269 0 0);
83
+ --sidebar-accent: var(--color-primary-800);
84
84
  --sidebar-accent-foreground: oklch(0.985 0 0);
85
- --sidebar-border: oklch(0.269 0 0);
85
+ --sidebar-border: var(--color-primary-800);
86
86
  --sidebar-ring: oklch(0.439 0 0);
87
87
  }
88
88
 
@@ -111,17 +111,17 @@
111
111
  --color-success-900: oklch(22.65% 0.049 162.45);
112
112
  --color-success-950: oklch(18.48% 0.04 162.16);
113
113
 
114
- --color-default-50: #f1f1f1;
115
- --color-default-100: oklch(91.34% 0.003 286.77);
116
- --color-default-200: oklch(82.74% 0.004 286.56);
117
- --color-default-300: oklch(73.28% 0.006 286.42);
118
- --color-default-400: oklch(64.83% 0.007 286.3);
119
- --color-default-500: oklch(56.1% 0.009 286.18);
120
- --color-default-600: oklch(47.36% 0.011 286.02);
121
- --color-default-700: oklch(38.89% 0.01 285.97);
122
- --color-default-800: oklch(30.27% 0.007 286.02);
123
- --color-default-900: oklch(21.03% 0.006 285.93);
124
- --color-default-950: oklch(16.47% 0.004 285.98);
114
+ --color-default-50: oklch(0.98 0.00 248);
115
+ --color-default-100: oklch(0.97 0.00 265);
116
+ --color-default-200: oklch(0.93 0.01 265);
117
+ --color-default-300: oklch(0.87 0.01 258);
118
+ --color-default-400: oklch(0.71 0.02 261);
119
+ --color-default-500: oklch(0.55 0.02 264);
120
+ --color-default-600: oklch(0.45 0.03 257);
121
+ --color-default-700: oklch(0.37 0.03 260);
122
+ --color-default-800: oklch(0.28 0.03 257);
123
+ --color-default-900: oklch(0.21 0.03 265);
124
+ --color-default-950: oklch(0.13 0.03 262);
125
125
 
126
126
  --color-warning-50: oklch(97.44% 0.014 46.3);
127
127
  --color-warning-100: oklch(95.09% 0.027 49.62);
@@ -166,8 +166,8 @@
166
166
  --color-card-foreground: var(--card-foreground);
167
167
  --color-popover: var(--popover);
168
168
  --color-popover-foreground: var(--popover-foreground);
169
- --color-primary: var(--color-primary-950);
170
- --color-primary-foreground: var(--color-white);
169
+ --color-primary: var(--primary);
170
+ --color-primary-foreground: var(--primary-foreground);
171
171
  --color-secondary: var(--secondary);
172
172
  --color-secondary-foreground: var(--secondary-foreground);
173
173
  --color-muted: var(--muted);
@@ -202,6 +202,36 @@
202
202
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
203
203
  --color-sidebar-border: var(--sidebar-border);
204
204
  --color-sidebar-ring: var(--sidebar-ring);
205
+
206
+ --text-h1-core: 1.5rem;
207
+ --text-h1-core--line-height: 2rem;
208
+ --text-h1-core--font-weight: 600;
209
+ --text-h1-core--letter-spacing: -0.01em;
210
+
211
+ --text-h2-core: 1.25rem;
212
+ --text-h2-core--line-height: 1.6;
213
+ --text-h2-core--font-weight: 600;
214
+ --text-h2-core--letter-spacing: -0.01em;
215
+
216
+ --text-h3-core: 1.125rem;
217
+ --text-h3-core--line-height: 1.625rem;
218
+ --text-h3-core--font-weight: 500;
219
+ --text-h3-core--letter-spacing: -0.005em;
220
+
221
+ --text-h4-core: 1rem;
222
+ --text-h4-core--line-height: 1.5rem;
223
+ --text-h4-core--font-weight: 500;
224
+ --text-h4-core--letter-spacing: 0em;
225
+
226
+ --text-h5-core: 0.875rem;
227
+ --text-h5-core--line-height: 1.25rem;
228
+ --text-h5-core--font-weight: 500;
229
+ --text-h5-core--letter-spacing: 0.005em;
230
+
231
+ --text-h6-core: 0.75rem;
232
+ --text-h6-core--line-height: 1rem;
233
+ --text-h6-core--font-weight: 500;
234
+ --text-h6-core--letter-spacing: 0.01em;
205
235
  }
206
236
 
207
237
  @layer base {
@@ -259,4 +289,79 @@
259
289
  transform: translate(0px, 0px);
260
290
  }
261
291
  }
292
+ }
293
+
294
+ @layer components {
295
+ .page-header {
296
+ /* Grid Row Order */
297
+ --grid-row-order-context-area: 1;
298
+ --grid-row-order-leading-action: 2;
299
+ --grid-row-order-breadcrumbs: 2;
300
+ --grid-row-order-title-area: 2;
301
+ --grid-row-order-trailing-action: 2;
302
+ --grid-row-order-actions: 2;
303
+ --grid-row-order-description: 3;
304
+ --grid-row-order-navigation: 4;
305
+
306
+ /* Title Area Region Order */
307
+ --title-area-region-order-leading-visual: 0;
308
+ --title-area-region-order-title: 1;
309
+ --title-area-region-order-trailing-visual: 2;
310
+
311
+ /* Context Area Region Order */
312
+ --context-area-region-order-parent-link: 0;
313
+ --context-area-region-order-context-bar: 1;
314
+ --context-area-region-order-context-area-actions: 2;
315
+
316
+ display: grid;
317
+ grid-template-columns: auto auto auto auto 1fr;
318
+ grid-template-areas:
319
+ 'context-area context-area context-area context-area context-area'
320
+ 'leading-action breadcrumbs title-area trailing-action actions'
321
+ 'description description description description description'
322
+ 'navigation navigation navigation navigation navigation';
323
+
324
+ }
325
+
326
+ .page-header__context-area {
327
+ grid-area: context-area;
328
+ grid-row: var(--grid-row-order-context-area);
329
+ }
330
+
331
+ .page-header__title-area {
332
+ grid-area: title-area;
333
+ grid-row: var(--grid-row-order-title-area);
334
+ }
335
+
336
+ .page-header__title {
337
+ order: var(--title-area-region-order-title);
338
+ }
339
+
340
+ .page-header__leading-action {
341
+ grid-area: leading-action;
342
+ }
343
+
344
+ .page-header__leading_visual {
345
+ order: var(--title-area-region-order-leading-visual);
346
+ }
347
+
348
+ .page-header__breadcrumbs {
349
+ grid-row: var(--grid-row-order-breadcrumbs);
350
+ grid-area: breadcrumbs;
351
+ }
352
+
353
+ .page-header__actions {
354
+ grid-area: actions;
355
+ grid-row: var(--grid-row-order-actions);
356
+ }
357
+
358
+ .page-header__description {
359
+ grid-row: var(--grid-row-order-description);
360
+ grid-area: description;
361
+ }
362
+
363
+ .page-header__navigation {
364
+ grid-row: var(--grid-row-order-navigation);
365
+ grid-area: navigation;
366
+ }
262
367
  }
package/dist/index.d.mts CHANGED
@@ -5,14 +5,21 @@ export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './compon
5
5
  export { ButtonVariantProps, button } from './components/button.mjs';
6
6
  export { CalendarVariantProps, calendar } from './components/calendar.mjs';
7
7
  export { CardSlots, CardVariantProps, card } from './components/card.mjs';
8
+ export { CheckboxVariantProps, checkbox } from './components/checkbox.mjs';
8
9
  export { ChipSlots, ChipVariantProps, chip } from './components/chip.mjs';
10
+ export { CodeVariantProps, code } from './components/code.mjs';
9
11
  export { CommandVariants, command } from './components/command.mjs';
12
+ export { DataTableVariants, dataTable } from './components/data-table.mjs';
10
13
  export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.mjs';
11
14
  export { DrawerVariantProps, drawer } from './components/drawer.mjs';
12
15
  export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.mjs';
16
+ export { HeadingVariantProps, heading } from './components/heading.mjs';
13
17
  export { InputVariantProps, input, passwordInput } from './components/input.mjs';
18
+ export { PageHeaderVariantProps, pageHeader } from './components/page-header.mjs';
14
19
  export { PageLayoutVariantProps, pageLayout } from './components/page-layout.mjs';
15
20
  export { PopoverVariants, popover } from './components/popover.mjs';
21
+ export { skeleton } from './components/skeleton.mjs';
16
22
  export { SpinnerVariants, spinner } from './components/spinner.mjs';
23
+ export { TableSlots, TableVariantProps, table } from './components/table.mjs';
17
24
  export { TooltipVariants, tooltip } from './components/tooltip.mjs';
18
25
  export { SlotsToClasses } from './utils/types.mjs';
package/dist/index.d.ts CHANGED
@@ -5,14 +5,21 @@ export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './compon
5
5
  export { ButtonVariantProps, button } from './components/button.js';
6
6
  export { CalendarVariantProps, calendar } from './components/calendar.js';
7
7
  export { CardSlots, CardVariantProps, card } from './components/card.js';
8
+ export { CheckboxVariantProps, checkbox } from './components/checkbox.js';
8
9
  export { ChipSlots, ChipVariantProps, chip } from './components/chip.js';
10
+ export { CodeVariantProps, code } from './components/code.js';
9
11
  export { CommandVariants, command } from './components/command.js';
12
+ export { DataTableVariants, dataTable } from './components/data-table.js';
10
13
  export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.js';
11
14
  export { DrawerVariantProps, drawer } from './components/drawer.js';
12
15
  export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.js';
16
+ export { HeadingVariantProps, heading } from './components/heading.js';
13
17
  export { InputVariantProps, input, passwordInput } from './components/input.js';
18
+ export { PageHeaderVariantProps, pageHeader } from './components/page-header.js';
14
19
  export { PageLayoutVariantProps, pageLayout } from './components/page-layout.js';
15
20
  export { PopoverVariants, popover } from './components/popover.js';
21
+ export { skeleton } from './components/skeleton.js';
16
22
  export { SpinnerVariants, spinner } from './components/spinner.js';
23
+ export { TableSlots, TableVariantProps, table } from './components/table.js';
17
24
  export { TooltipVariants, tooltip } from './components/tooltip.js';
18
25
  export { SlotsToClasses } from './utils/types.js';