@kopexa/theme 2.1.0 → 13.0.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 (49) hide show
  1. package/dist/{chunk-NFOF75HQ.mjs → chunk-2N3PG3TK.mjs} +1 -1
  2. package/dist/{chunk-5DOB3IBE.mjs → chunk-6IZPAS4O.mjs} +5 -0
  3. package/dist/{chunk-GA6UOB2D.mjs → chunk-7POAXCN2.mjs} +1 -1
  4. package/dist/{chunk-M3GQ563Q.mjs → chunk-ARLLAC5V.mjs} +1 -1
  5. package/dist/{chunk-Z7D56R5U.mjs → chunk-CWAFYX5G.mjs} +2 -2
  6. package/dist/{chunk-IHITEH7V.mjs → chunk-IX46TOS3.mjs} +1 -1
  7. package/dist/{chunk-IHW4FWFB.mjs → chunk-K3EVZATS.mjs} +1 -1
  8. package/dist/{chunk-URGRCBNW.mjs → chunk-NNKYGAZC.mjs} +1 -1
  9. package/dist/{chunk-HHOMDBMZ.mjs → chunk-SYYY32OX.mjs} +1 -1
  10. package/dist/{chunk-DI54XTS5.mjs → chunk-TQVRNEIH.mjs} +1 -1
  11. package/dist/chunk-URVHE3OS.mjs +119 -0
  12. package/dist/{chunk-XRKUQMGU.mjs → chunk-UTCVHVWF.mjs} +1 -1
  13. package/dist/{chunk-YH6TDPK7.mjs → chunk-VDMXPFII.mjs} +1 -1
  14. package/dist/components/autocomplete.js +5 -0
  15. package/dist/components/autocomplete.mjs +3 -3
  16. package/dist/components/avatar.mjs +2 -2
  17. package/dist/components/button.mjs +2 -2
  18. package/dist/components/combobox.d.mts +142 -0
  19. package/dist/components/combobox.d.ts +142 -0
  20. package/dist/components/combobox.js +228 -0
  21. package/dist/components/combobox.mjs +8 -0
  22. package/dist/components/command.d.mts +3 -3
  23. package/dist/components/command.d.ts +3 -3
  24. package/dist/components/hover-card.mjs +2 -2
  25. package/dist/components/index.d.mts +1 -0
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/index.js +208 -89
  28. package/dist/components/index.mjs +29 -25
  29. package/dist/components/input.js +5 -0
  30. package/dist/components/input.mjs +2 -2
  31. package/dist/components/popover.mjs +2 -2
  32. package/dist/components/select.js +5 -0
  33. package/dist/components/select.mjs +2 -2
  34. package/dist/components/sidebar.js +1 -1
  35. package/dist/components/sidebar.mjs +1 -1
  36. package/dist/components/skeleton-avatar.mjs +3 -3
  37. package/dist/components/slash-dropdown-menu.mjs +2 -2
  38. package/dist/components/textarea.js +5 -0
  39. package/dist/components/textarea.mjs +2 -2
  40. package/dist/index.d.mts +1 -0
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.js +208 -89
  43. package/dist/index.mjs +29 -25
  44. package/dist/utils/classes.d.mts +5 -0
  45. package/dist/utils/classes.d.ts +5 -0
  46. package/dist/utils/classes.js +5 -0
  47. package/dist/utils/classes.mjs +1 -1
  48. package/package.json +2 -2
  49. /package/dist/{chunk-4I5ASWB3.mjs → chunk-XMLRBNOG.mjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  focusVisibleClasses,
3
3
  inputClasses
4
- } from "./chunk-5DOB3IBE.mjs";
4
+ } from "./chunk-6IZPAS4O.mjs";
5
5
 
6
6
  // src/components/select.ts
7
7
  import { tv } from "tailwind-variants";
@@ -28,6 +28,11 @@ var inputClasses = {
28
28
  sm: "h-7 min-h-7",
29
29
  md: "h-8.5 min-h-8.5",
30
30
  lg: "h-10 min-h-10"
31
+ },
32
+ text: {
33
+ sm: "text-sm",
34
+ md: "text-base md:text-sm",
35
+ lg: "text-base"
31
36
  }
32
37
  };
33
38
 
@@ -7,7 +7,7 @@ var sidebar = tv({
7
7
  ],
8
8
  sidebarWrapper: ["group peer text-sidebar-foreground hidden md:block"],
9
9
  sidebar: [
10
- "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col"
10
+ "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col isolate"
11
11
  ],
12
12
  gap: [
13
13
  "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  focusVisibleClasses,
3
3
  inputClasses
4
- } from "./chunk-5DOB3IBE.mjs";
4
+ } from "./chunk-6IZPAS4O.mjs";
5
5
 
6
6
  // src/components/textarea.ts
7
7
  import { tv } from "tailwind-variants";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  input
3
- } from "./chunk-IHW4FWFB.mjs";
3
+ } from "./chunk-K3EVZATS.mjs";
4
4
  import {
5
5
  popoverContentClasses
6
- } from "./chunk-5DOB3IBE.mjs";
6
+ } from "./chunk-6IZPAS4O.mjs";
7
7
 
8
8
  // src/components/autocomplete.ts
9
9
  import { tv } from "tailwind-variants";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WSEO3MLK.mjs";
4
4
  import {
5
5
  focusVisibleClasses
6
- } from "./chunk-5DOB3IBE.mjs";
6
+ } from "./chunk-6IZPAS4O.mjs";
7
7
 
8
8
  // src/components/button.ts
9
9
  import { tv } from "tailwind-variants";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  focusVisibleClasses,
3
3
  inputClasses
4
- } from "./chunk-5DOB3IBE.mjs";
4
+ } from "./chunk-6IZPAS4O.mjs";
5
5
 
6
6
  // src/components/input.ts
7
7
  import { tv } from "tailwind-variants";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  popoverContentClasses
3
- } from "./chunk-5DOB3IBE.mjs";
3
+ } from "./chunk-6IZPAS4O.mjs";
4
4
 
5
5
  // src/components/slash-dropdown-menu.ts
6
6
  import { tv } from "tailwind-variants";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  avatar
3
- } from "./chunk-YH6TDPK7.mjs";
3
+ } from "./chunk-VDMXPFII.mjs";
4
4
 
5
5
  // src/components/skeleton-avatar.ts
6
6
  import { tv } from "tailwind-variants";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  popoverContentClasses
3
- } from "./chunk-5DOB3IBE.mjs";
3
+ } from "./chunk-6IZPAS4O.mjs";
4
4
 
5
5
  // src/components/popover.ts
6
6
  import { tv } from "tailwind-variants";
@@ -0,0 +1,119 @@
1
+ import {
2
+ input
3
+ } from "./chunk-K3EVZATS.mjs";
4
+
5
+ // src/components/combobox.ts
6
+ import { tv } from "tailwind-variants";
7
+ var combobox = tv({
8
+ slots: {
9
+ root: [],
10
+ control: "relative",
11
+ value: "",
12
+ input: [
13
+ ...input.base,
14
+ "has-[[data-slot=combobox-input]:focus-visible]:ring-ring",
15
+ "has-[[data-slot=combobox-input]:focus-visible]:border-ring",
16
+ "has-[[data-slot=combobox-input]:focus-visible]:outline-none",
17
+ "has-[[data-slot=combobox-input]:focus-visible]:ring-2",
18
+ "[&_[data-slot=combobox-input]]:grow",
19
+ "[&[readonly]]:bg-muted/80 [&[readonly]]:cursor-not-allowed"
20
+ ],
21
+ status: "text-muted-foreground text-sm",
22
+ positioner: "outline-none",
23
+ popup: [
24
+ "py-1 w-[var(--anchor-width)] max-h-[min(var(--available-height),23rem)] max-w-[var(--available-width)]",
25
+ "overflow-y-auto scroll-pt-2 scroll-pb-2 overscroll-contain bg-[canvas]",
26
+ "rounded-md border border-border bg-popover text-popover-foreground shadow-md shadow-black/5",
27
+ "origin-[var(--transform-origin)] transition-[transform,scale,opacity] data-[ending-style]:scale-90",
28
+ "data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0"
29
+ ],
30
+ list: "space-y-0.5",
31
+ row: "flex items-center gap-2",
32
+ item: [
33
+ "relative cursor-default flex items-center",
34
+ "text-foreground relative select-none items-center gap-2 rounded-md ps-7 pe-2 py-1.5 text-sm outline-hidden transition-colors data-disabled:pointer-events-none data-disabled:opacity-50",
35
+ "[&_svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0",
36
+ "data-[highlighted]:relative data-[highlighted]:z-0 data-[highlighted]:text-foreground data-[highlighted]:before:absolute data-[highlighted]:before:inset-x-1 data-[highlighted]:before:inset-y-0 data-[highlighted]:before:z-[-1] data-[highlighted]:before:rounded-sm data-[highlighted]:before:bg-accent"
37
+ ],
38
+ itemIndicator: [
39
+ "absolute flex top-1/2 -translate-y-1/2 items-center justify-center start-2.5",
40
+ "[&_svg]:size-4 [&_svg]:text-primary"
41
+ ],
42
+ groupLabel: "px-2 py-1.5 text-xs text-muted-foreground font-medium",
43
+ empty: "px-2 py-1.5 text-sm text-muted-foreground empty:m-0 empty:p-0",
44
+ clear: [
45
+ "absolute cursor-pointer end-6 top-1/2 -translate-y-1/2 rounded-sm opacity-70 ring-offset-background",
46
+ "transition-opacity opacity-60 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
47
+ "data-[disabled]:pointer-events-none",
48
+ "[&_svg]:size-3.5"
49
+ ],
50
+ icon: [
51
+ "absolute cursor-pointer end-2 top-1/2 -translate-y-1/2 rounded-sm opacity-70 ring-offset-background transition-opacity",
52
+ "opacity-60 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
53
+ "data-[disabled]:pointer-events-none",
54
+ "[&_svg]:size-3.5"
55
+ ],
56
+ trigger: "relative",
57
+ // note: chips receive "input" and the following styles
58
+ chips: [
59
+ "flex items-center flex-wrap gap-1",
60
+ "[&_[data-slot=combobox-input]]:py-0 [&_[data-slot=combobox-input]]:px-1.5 has-[[data-slot=combobox-chip]]:[&_[data-slot=combobox-input]]:px-0",
61
+ "[&_[data-slot=combobox-input]]:min-h-0 [&_[data-slot=combobox-input]]:flex-1",
62
+ "[&_[data-slot=combobox-input]]:border-0 [&_[data-slot=combobox-input]]:shadow-none [&_[data-slot=combobox-input]]:rounded-none",
63
+ "[&_[data-slot=combobox-input]]:outline-none [&_[data-slot=combobox-input]]:ring-0"
64
+ ],
65
+ chip: [
66
+ "inline-flex items-center gap-1 rounded-md bg-muted px-2 py-1 text-xs font-medium text-foreground"
67
+ ],
68
+ chipRemove: [
69
+ "cursor-pointer ms-1 rounded-sm [&_svg]:opacity-60 hover:bg-muted-foreground/20 hover:[&_svg]:opacity-100",
70
+ "[&_svg]:size-3.5"
71
+ ],
72
+ separator: "my-1.5 h-px bg-muted",
73
+ header: ["flex flex-col items-start justify-between px-3 py-2 border-b"],
74
+ title: "text-sm font-semibold",
75
+ description: "text-xs text-muted-foreground"
76
+ },
77
+ variants: {
78
+ size: {
79
+ sm: {
80
+ input: [
81
+ ...input.variants.size.sm,
82
+ "h-auto py-0.5",
83
+ "[&~[data-slot=combobox-icon]]:end-2.5 [&~[data-slot=combobox-clear]]:end-7"
84
+ ],
85
+ chips: "px-0.75"
86
+ },
87
+ md: {
88
+ input: [
89
+ ...input.variants.size.md,
90
+ "h-auto py-1",
91
+ "[&~[data-slot=combobox-icon]]:end-2 [&~[data-slot=combobox-clear]]:end-6"
92
+ ],
93
+ chips: "px-1"
94
+ },
95
+ lg: {
96
+ input: [
97
+ ...input.variants.size.lg,
98
+ "h-auto py-1",
99
+ "[&~[data-slot=combobox-icon]]:end-1.75 [&~[data-slot=combobox-clear]]:end-5.75"
100
+ ],
101
+ chips: "px-1.5"
102
+ }
103
+ },
104
+ fullWidth: {
105
+ true: {
106
+ input: "w-full",
107
+ chips: "w-full"
108
+ }
109
+ }
110
+ },
111
+ defaultVariants: {
112
+ size: "md",
113
+ fullWidth: true
114
+ }
115
+ });
116
+
117
+ export {
118
+ combobox
119
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  popoverContentClasses
3
- } from "./chunk-5DOB3IBE.mjs";
3
+ } from "./chunk-6IZPAS4O.mjs";
4
4
 
5
5
  // src/components/hover-card.ts
6
6
  import { tv } from "tailwind-variants";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  focusVisibleClasses,
6
6
  translateCenterClasses
7
- } from "./chunk-5DOB3IBE.mjs";
7
+ } from "./chunk-6IZPAS4O.mjs";
8
8
 
9
9
  // src/components/avatar.ts
10
10
  import { tv } from "tailwind-variants";
@@ -44,6 +44,11 @@ var inputClasses = {
44
44
  sm: "h-7 min-h-7",
45
45
  md: "h-8.5 min-h-8.5",
46
46
  lg: "h-10 min-h-10"
47
+ },
48
+ text: {
49
+ sm: "text-sm",
50
+ md: "text-base md:text-sm",
51
+ lg: "text-base"
47
52
  }
48
53
  };
49
54
 
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  autocomplete
3
- } from "../chunk-Z7D56R5U.mjs";
4
- import "../chunk-IHW4FWFB.mjs";
5
- import "../chunk-5DOB3IBE.mjs";
3
+ } from "../chunk-CWAFYX5G.mjs";
4
+ import "../chunk-K3EVZATS.mjs";
5
+ import "../chunk-6IZPAS4O.mjs";
6
6
  export {
7
7
  autocomplete
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  avatar
3
- } from "../chunk-YH6TDPK7.mjs";
3
+ } from "../chunk-VDMXPFII.mjs";
4
4
  import "../chunk-WSEO3MLK.mjs";
5
- import "../chunk-5DOB3IBE.mjs";
5
+ import "../chunk-6IZPAS4O.mjs";
6
6
  export {
7
7
  avatar
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  button
3
- } from "../chunk-IHITEH7V.mjs";
3
+ } from "../chunk-IX46TOS3.mjs";
4
4
  import "../chunk-WSEO3MLK.mjs";
5
- import "../chunk-5DOB3IBE.mjs";
5
+ import "../chunk-6IZPAS4O.mjs";
6
6
  export {
7
7
  button
8
8
  };
@@ -0,0 +1,142 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const combobox: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ sm: {
7
+ input: string[];
8
+ chips: string;
9
+ };
10
+ md: {
11
+ input: string[];
12
+ chips: string;
13
+ };
14
+ lg: {
15
+ input: string[];
16
+ chips: string;
17
+ };
18
+ };
19
+ fullWidth: {
20
+ true: {
21
+ input: string;
22
+ chips: string;
23
+ };
24
+ };
25
+ }, {
26
+ root: never[];
27
+ control: string;
28
+ value: string;
29
+ input: string[];
30
+ status: string;
31
+ positioner: string;
32
+ popup: string[];
33
+ list: string;
34
+ row: string;
35
+ item: string[];
36
+ itemIndicator: string[];
37
+ groupLabel: string;
38
+ empty: string;
39
+ clear: string[];
40
+ icon: string[];
41
+ trigger: string;
42
+ chips: string[];
43
+ chip: string[];
44
+ chipRemove: string[];
45
+ separator: string;
46
+ header: string[];
47
+ title: string;
48
+ description: string;
49
+ }, undefined, {
50
+ size: {
51
+ sm: {
52
+ input: string[];
53
+ chips: string;
54
+ };
55
+ md: {
56
+ input: string[];
57
+ chips: string;
58
+ };
59
+ lg: {
60
+ input: string[];
61
+ chips: string;
62
+ };
63
+ };
64
+ fullWidth: {
65
+ true: {
66
+ input: string;
67
+ chips: string;
68
+ };
69
+ };
70
+ }, {
71
+ root: never[];
72
+ control: string;
73
+ value: string;
74
+ input: string[];
75
+ status: string;
76
+ positioner: string;
77
+ popup: string[];
78
+ list: string;
79
+ row: string;
80
+ item: string[];
81
+ itemIndicator: string[];
82
+ groupLabel: string;
83
+ empty: string;
84
+ clear: string[];
85
+ icon: string[];
86
+ trigger: string;
87
+ chips: string[];
88
+ chip: string[];
89
+ chipRemove: string[];
90
+ separator: string;
91
+ header: string[];
92
+ title: string;
93
+ description: string;
94
+ }, tailwind_variants.TVReturnType<{
95
+ size: {
96
+ sm: {
97
+ input: string[];
98
+ chips: string;
99
+ };
100
+ md: {
101
+ input: string[];
102
+ chips: string;
103
+ };
104
+ lg: {
105
+ input: string[];
106
+ chips: string;
107
+ };
108
+ };
109
+ fullWidth: {
110
+ true: {
111
+ input: string;
112
+ chips: string;
113
+ };
114
+ };
115
+ }, {
116
+ root: never[];
117
+ control: string;
118
+ value: string;
119
+ input: string[];
120
+ status: string;
121
+ positioner: string;
122
+ popup: string[];
123
+ list: string;
124
+ row: string;
125
+ item: string[];
126
+ itemIndicator: string[];
127
+ groupLabel: string;
128
+ empty: string;
129
+ clear: string[];
130
+ icon: string[];
131
+ trigger: string;
132
+ chips: string[];
133
+ chip: string[];
134
+ chipRemove: string[];
135
+ separator: string;
136
+ header: string[];
137
+ title: string;
138
+ description: string;
139
+ }, undefined, unknown, unknown, undefined>>;
140
+ type ComboboxVariantProps = VariantProps<typeof combobox>;
141
+
142
+ export { type ComboboxVariantProps, combobox };
@@ -0,0 +1,142 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const combobox: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ sm: {
7
+ input: string[];
8
+ chips: string;
9
+ };
10
+ md: {
11
+ input: string[];
12
+ chips: string;
13
+ };
14
+ lg: {
15
+ input: string[];
16
+ chips: string;
17
+ };
18
+ };
19
+ fullWidth: {
20
+ true: {
21
+ input: string;
22
+ chips: string;
23
+ };
24
+ };
25
+ }, {
26
+ root: never[];
27
+ control: string;
28
+ value: string;
29
+ input: string[];
30
+ status: string;
31
+ positioner: string;
32
+ popup: string[];
33
+ list: string;
34
+ row: string;
35
+ item: string[];
36
+ itemIndicator: string[];
37
+ groupLabel: string;
38
+ empty: string;
39
+ clear: string[];
40
+ icon: string[];
41
+ trigger: string;
42
+ chips: string[];
43
+ chip: string[];
44
+ chipRemove: string[];
45
+ separator: string;
46
+ header: string[];
47
+ title: string;
48
+ description: string;
49
+ }, undefined, {
50
+ size: {
51
+ sm: {
52
+ input: string[];
53
+ chips: string;
54
+ };
55
+ md: {
56
+ input: string[];
57
+ chips: string;
58
+ };
59
+ lg: {
60
+ input: string[];
61
+ chips: string;
62
+ };
63
+ };
64
+ fullWidth: {
65
+ true: {
66
+ input: string;
67
+ chips: string;
68
+ };
69
+ };
70
+ }, {
71
+ root: never[];
72
+ control: string;
73
+ value: string;
74
+ input: string[];
75
+ status: string;
76
+ positioner: string;
77
+ popup: string[];
78
+ list: string;
79
+ row: string;
80
+ item: string[];
81
+ itemIndicator: string[];
82
+ groupLabel: string;
83
+ empty: string;
84
+ clear: string[];
85
+ icon: string[];
86
+ trigger: string;
87
+ chips: string[];
88
+ chip: string[];
89
+ chipRemove: string[];
90
+ separator: string;
91
+ header: string[];
92
+ title: string;
93
+ description: string;
94
+ }, tailwind_variants.TVReturnType<{
95
+ size: {
96
+ sm: {
97
+ input: string[];
98
+ chips: string;
99
+ };
100
+ md: {
101
+ input: string[];
102
+ chips: string;
103
+ };
104
+ lg: {
105
+ input: string[];
106
+ chips: string;
107
+ };
108
+ };
109
+ fullWidth: {
110
+ true: {
111
+ input: string;
112
+ chips: string;
113
+ };
114
+ };
115
+ }, {
116
+ root: never[];
117
+ control: string;
118
+ value: string;
119
+ input: string[];
120
+ status: string;
121
+ positioner: string;
122
+ popup: string[];
123
+ list: string;
124
+ row: string;
125
+ item: string[];
126
+ itemIndicator: string[];
127
+ groupLabel: string;
128
+ empty: string;
129
+ clear: string[];
130
+ icon: string[];
131
+ trigger: string;
132
+ chips: string[];
133
+ chip: string[];
134
+ chipRemove: string[];
135
+ separator: string;
136
+ header: string[];
137
+ title: string;
138
+ description: string;
139
+ }, undefined, unknown, unknown, undefined>>;
140
+ type ComboboxVariantProps = VariantProps<typeof combobox>;
141
+
142
+ export { type ComboboxVariantProps, combobox };