@kopexa/theme 1.4.2 → 1.4.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 (56) hide show
  1. package/dist/{chunk-HQ27V5V4.mjs → chunk-2C5EQ4P3.mjs} +4 -0
  2. package/dist/chunk-32L6KXLV.mjs +324 -0
  3. package/dist/{chunk-IL3JFLE2.mjs → chunk-4UDOCFU5.mjs} +7 -0
  4. package/dist/chunk-67PPUTSS.mjs +53 -0
  5. package/dist/chunk-JWF5ABNP.mjs +56 -0
  6. package/dist/{chunk-5FI7W32M.mjs → chunk-KE2E5LGH.mjs} +2 -11
  7. package/dist/chunk-PQSL3W26.mjs +96 -0
  8. package/dist/chunk-XSN6P5JL.mjs +0 -0
  9. package/dist/components/button.js +24 -11
  10. package/dist/components/button.mjs +3 -3
  11. package/dist/components/calendar.d.mts +124 -0
  12. package/dist/components/calendar.d.ts +124 -0
  13. package/dist/components/calendar.js +80 -0
  14. package/dist/components/calendar.mjs +6 -0
  15. package/dist/components/chip.d.mts +356 -0
  16. package/dist/components/chip.d.ts +356 -0
  17. package/dist/components/chip.js +396 -0
  18. package/dist/components/chip.mjs +7 -0
  19. package/dist/components/dropdown-menu.d.mts +9 -9
  20. package/dist/components/dropdown-menu.d.ts +9 -9
  21. package/dist/components/index.d.mts +3 -0
  22. package/dist/components/index.d.ts +3 -0
  23. package/dist/components/index.js +516 -27
  24. package/dist/components/index.mjs +22 -8
  25. package/dist/components/input.d.mts +177 -0
  26. package/dist/components/input.d.ts +177 -0
  27. package/dist/components/input.js +124 -0
  28. package/dist/components/input.mjs +9 -0
  29. package/dist/components/spinner.d.mts +21 -0
  30. package/dist/components/spinner.d.ts +21 -0
  31. package/dist/components/spinner.js +7 -0
  32. package/dist/components/spinner.mjs +1 -1
  33. package/dist/index.css +98 -19
  34. package/dist/index.d.mts +4 -0
  35. package/dist/index.d.ts +4 -0
  36. package/dist/index.js +516 -27
  37. package/dist/index.mjs +23 -8
  38. package/dist/utils/classes.d.mts +2 -1
  39. package/dist/utils/classes.d.ts +2 -1
  40. package/dist/utils/classes.js +7 -2
  41. package/dist/utils/classes.mjs +5 -3
  42. package/dist/utils/index.d.mts +2 -0
  43. package/dist/utils/index.d.ts +2 -0
  44. package/dist/utils/index.js +18 -0
  45. package/dist/utils/index.mjs +1 -0
  46. package/dist/utils/types.d.mts +10 -0
  47. package/dist/utils/types.d.ts +10 -0
  48. package/dist/utils/types.js +18 -0
  49. package/dist/utils/types.mjs +0 -0
  50. package/dist/utils/variants.d.mts +20 -0
  51. package/dist/utils/variants.d.ts +20 -0
  52. package/dist/utils/variants.js +24 -2
  53. package/dist/utils/variants.mjs +1 -1
  54. package/package.json +2 -2
  55. package/dist/chunk-U6ONJKJY.mjs +0 -31
  56. /package/dist/{chunk-KIDK6JOG.mjs → chunk-N2UQGV46.mjs} +0 -0
package/dist/index.mjs CHANGED
@@ -1,18 +1,32 @@
1
- import "./chunk-KIDK6JOG.mjs";
1
+ import "./chunk-N2UQGV46.mjs";
2
+ import {
3
+ input,
4
+ passwordInput
5
+ } from "./chunk-PQSL3W26.mjs";
6
+ import {
7
+ pageLayout
8
+ } from "./chunk-GQV7INYX.mjs";
2
9
  import {
3
10
  popover
4
11
  } from "./chunk-J35D7RWA.mjs";
5
12
  import {
6
13
  spinner
7
- } from "./chunk-IL3JFLE2.mjs";
14
+ } from "./chunk-4UDOCFU5.mjs";
8
15
  import {
9
16
  tooltip
10
17
  } from "./chunk-SVCFD7RR.mjs";
18
+ import "./chunk-XSN6P5JL.mjs";
11
19
  import {
12
20
  button
13
- } from "./chunk-5FI7W32M.mjs";
14
- import "./chunk-HQ27V5V4.mjs";
15
- import "./chunk-U6ONJKJY.mjs";
21
+ } from "./chunk-KE2E5LGH.mjs";
22
+ import "./chunk-2C5EQ4P3.mjs";
23
+ import {
24
+ calendar
25
+ } from "./chunk-JWF5ABNP.mjs";
26
+ import {
27
+ chip
28
+ } from "./chunk-32L6KXLV.mjs";
29
+ import "./chunk-67PPUTSS.mjs";
16
30
  import {
17
31
  command
18
32
  } from "./chunk-YPHFKGNI.mjs";
@@ -25,16 +39,17 @@ import {
25
39
  import {
26
40
  dropdownMenu
27
41
  } from "./chunk-EXBKQDH5.mjs";
28
- import {
29
- pageLayout
30
- } from "./chunk-GQV7INYX.mjs";
31
42
  export {
32
43
  button,
44
+ calendar,
45
+ chip,
33
46
  command,
34
47
  dialog,
35
48
  drawer,
36
49
  dropdownMenu,
50
+ input,
37
51
  pageLayout,
52
+ passwordInput,
38
53
  popover,
39
54
  spinner,
40
55
  tooltip
@@ -2,6 +2,7 @@
2
2
  * focus classNames when the element is focused by keyboard.
3
3
  */
4
4
  declare const focusVisibleClasses: string[];
5
+ declare const focusWithinClasses: string[];
5
6
  declare const dataFocusVisibleClasses: string[];
6
7
 
7
- export { dataFocusVisibleClasses, focusVisibleClasses };
8
+ export { dataFocusVisibleClasses, focusVisibleClasses, focusWithinClasses };
@@ -2,6 +2,7 @@
2
2
  * focus classNames when the element is focused by keyboard.
3
3
  */
4
4
  declare const focusVisibleClasses: string[];
5
+ declare const focusWithinClasses: string[];
5
6
  declare const dataFocusVisibleClasses: string[];
6
7
 
7
- export { dataFocusVisibleClasses, focusVisibleClasses };
8
+ export { dataFocusVisibleClasses, focusVisibleClasses, focusWithinClasses };
@@ -21,16 +21,21 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var classes_exports = {};
22
22
  __export(classes_exports, {
23
23
  dataFocusVisibleClasses: () => dataFocusVisibleClasses,
24
- focusVisibleClasses: () => focusVisibleClasses
24
+ focusVisibleClasses: () => focusVisibleClasses,
25
+ focusWithinClasses: () => focusWithinClasses
25
26
  });
26
27
  module.exports = __toCommonJS(classes_exports);
27
28
  var focusVisibleClasses = [
28
29
  "focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
29
30
  //"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
30
31
  ];
32
+ var focusWithinClasses = [
33
+ "focus-within:outline-2 focus-within:outline-ring focus-within:outline-offset-2"
34
+ ];
31
35
  var dataFocusVisibleClasses = ["outline-hidden"];
32
36
  // Annotate the CommonJS export names for ESM import in node:
33
37
  0 && (module.exports = {
34
38
  dataFocusVisibleClasses,
35
- focusVisibleClasses
39
+ focusVisibleClasses,
40
+ focusWithinClasses
36
41
  });
@@ -1,8 +1,10 @@
1
1
  import {
2
2
  dataFocusVisibleClasses,
3
- focusVisibleClasses
4
- } from "../chunk-HQ27V5V4.mjs";
3
+ focusVisibleClasses,
4
+ focusWithinClasses
5
+ } from "../chunk-2C5EQ4P3.mjs";
5
6
  export {
6
7
  dataFocusVisibleClasses,
7
- focusVisibleClasses
8
+ focusVisibleClasses,
9
+ focusWithinClasses
8
10
  };
@@ -0,0 +1,2 @@
1
+ export { SlotsToClasses } from './types.mjs';
2
+ import 'tailwind-variants';
@@ -0,0 +1,2 @@
1
+ export { SlotsToClasses } from './types.js';
2
+ import 'tailwind-variants';
@@ -0,0 +1,18 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/utils/index.ts
17
+ var utils_exports = {};
18
+ module.exports = __toCommonJS(utils_exports);
@@ -0,0 +1 @@
1
+ import "../chunk-XSN6P5JL.mjs";
@@ -0,0 +1,10 @@
1
+ import { ClassValue } from 'tailwind-variants';
2
+
3
+ /**
4
+ * This Typescript utility transform a list of slots into a list of {slot: classes}
5
+ */
6
+ type SlotsToClasses<S extends string> = {
7
+ [key in S]?: Exclude<ClassValue, 0n>;
8
+ };
9
+
10
+ export type { SlotsToClasses };
@@ -0,0 +1,10 @@
1
+ import { ClassValue } from 'tailwind-variants';
2
+
3
+ /**
4
+ * This Typescript utility transform a list of slots into a list of {slot: classes}
5
+ */
6
+ type SlotsToClasses<S extends string> = {
7
+ [key in S]?: Exclude<ClassValue, 0n>;
8
+ };
9
+
10
+ export type { SlotsToClasses };
@@ -0,0 +1,18 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/utils/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
File without changes
@@ -1,5 +1,6 @@
1
1
  declare const colorVariants: {
2
2
  solid: {
3
+ default: string;
3
4
  primary: string;
4
5
  secondary: string;
5
6
  destructive: string;
@@ -14,12 +15,31 @@ declare const colorVariants: {
14
15
  success: string;
15
16
  };
16
17
  outline: {
18
+ default: string;
17
19
  primary: string;
18
20
  secondary: string;
19
21
  destructive: string;
20
22
  warning: string;
21
23
  success: string;
22
24
  };
25
+ flat: {
26
+ default: string;
27
+ primary: string;
28
+ secondary: string;
29
+ success: string;
30
+ warning: string;
31
+ destructive: string;
32
+ foreground: string;
33
+ };
34
+ faded: {
35
+ default: string;
36
+ primary: string;
37
+ secondary: string;
38
+ success: string;
39
+ warning: string;
40
+ destructive: string;
41
+ foreground: string;
42
+ };
23
43
  };
24
44
 
25
45
  export { colorVariants };
@@ -1,5 +1,6 @@
1
1
  declare const colorVariants: {
2
2
  solid: {
3
+ default: string;
3
4
  primary: string;
4
5
  secondary: string;
5
6
  destructive: string;
@@ -14,12 +15,31 @@ declare const colorVariants: {
14
15
  success: string;
15
16
  };
16
17
  outline: {
18
+ default: string;
17
19
  primary: string;
18
20
  secondary: string;
19
21
  destructive: string;
20
22
  warning: string;
21
23
  success: string;
22
24
  };
25
+ flat: {
26
+ default: string;
27
+ primary: string;
28
+ secondary: string;
29
+ success: string;
30
+ warning: string;
31
+ destructive: string;
32
+ foreground: string;
33
+ };
34
+ faded: {
35
+ default: string;
36
+ primary: string;
37
+ secondary: string;
38
+ success: string;
39
+ warning: string;
40
+ destructive: string;
41
+ foreground: string;
42
+ };
23
43
  };
24
44
 
25
45
  export { colorVariants };
@@ -24,6 +24,7 @@ __export(variants_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(variants_exports);
26
26
  var solid = {
27
+ default: "bg-accent text-accent-foreground",
27
28
  primary: "bg-primary text-primary-foreground",
28
29
  secondary: "bg-secondary text-secondary-foreground",
29
30
  destructive: "bg-destructive text-destructive-foreground",
@@ -31,12 +32,31 @@ var solid = {
31
32
  success: "bg-success text-success-foreground"
32
33
  };
33
34
  var outline = {
35
+ default: "bg-transparent border border-accent text-accent-foreground",
34
36
  primary: "bg-transparent border-primary text-primary",
35
- secondary: "bg-transparent border-secondary text-secondary",
37
+ secondary: "bg-transparent border-secondary text-secondary-foreground",
36
38
  destructive: "bg-transparent border-destructive text-destructive",
37
39
  warning: "bg-transparent border-warning text-warning",
38
40
  success: "bg-transparent border-success text-success"
39
41
  };
42
+ var flat = {
43
+ default: "bg-accent/40 text-accent-700",
44
+ primary: "bg-primary/20 text-primary-600",
45
+ secondary: "bg-secondary/20 text-secondary-600",
46
+ success: "bg-success/20 text-success-700 dark:text-success",
47
+ warning: "bg-warning/20 text-warning-700 dark:text-warning",
48
+ destructive: "bg-danger/20 text-danger-600 dark:text-danger-500",
49
+ foreground: "bg-foreground/10 text-foreground"
50
+ };
51
+ var faded = {
52
+ default: "border-default bg-accent/30 text-default-foreground",
53
+ primary: "border-default bg-accent/30 text-primary",
54
+ secondary: "border-default bg-accent/30 text-secondary-foreground",
55
+ success: "border-default bg-accent/30 text-success",
56
+ warning: "border-default bg-accent/30 text-warning",
57
+ destructive: "border-default bg-accent/30 text-danger",
58
+ foreground: "border-default bg-accent/30 text-foreground"
59
+ };
40
60
  var ghost = {
41
61
  primary: "bg-transparent text-primary",
42
62
  secondary: "bg-transparent text-secondary",
@@ -47,7 +67,9 @@ var ghost = {
47
67
  var colorVariants = {
48
68
  solid,
49
69
  ghost,
50
- outline
70
+ outline,
71
+ flat,
72
+ faded
51
73
  };
52
74
  // Annotate the CommonJS export names for ESM import in node:
53
75
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "../chunk-U6ONJKJY.mjs";
3
+ } from "../chunk-67PPUTSS.mjs";
4
4
  export {
5
5
  colorVariants
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/theme",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "The default theme for Kopexa components",
5
5
  "keywords": [
6
6
  "theme",
@@ -45,7 +45,7 @@
45
45
  "tailwind-merge": "3.3.1",
46
46
  "tailwind-variants": "1.0.0",
47
47
  "tw-animate-css": "^1.3.5",
48
- "@kopexa/shared-utils": "1.1.1"
48
+ "@kopexa/shared-utils": "1.1.2"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "tailwindcss": ">=4.0.0"
@@ -1,31 +0,0 @@
1
- // src/utils/variants.ts
2
- var solid = {
3
- primary: "bg-primary text-primary-foreground",
4
- secondary: "bg-secondary text-secondary-foreground",
5
- destructive: "bg-destructive text-destructive-foreground",
6
- warning: "bg-warning text-warning-foreground",
7
- success: "bg-success text-success-foreground"
8
- };
9
- var outline = {
10
- primary: "bg-transparent border-primary text-primary",
11
- secondary: "bg-transparent border-secondary text-secondary",
12
- destructive: "bg-transparent border-destructive text-destructive",
13
- warning: "bg-transparent border-warning text-warning",
14
- success: "bg-transparent border-success text-success"
15
- };
16
- var ghost = {
17
- primary: "bg-transparent text-primary",
18
- secondary: "bg-transparent text-secondary",
19
- destructive: "bg-transparent text-destructive",
20
- warning: "bg-transparent text-warning",
21
- success: "bg-transparent text-success"
22
- };
23
- var colorVariants = {
24
- solid,
25
- ghost,
26
- outline
27
- };
28
-
29
- export {
30
- colorVariants
31
- };
File without changes