@kopexa/theme 1.4.2 → 1.4.3

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 (44) hide show
  1. package/dist/{chunk-5FI7W32M.mjs → chunk-25CHZW25.mjs} +3 -12
  2. package/dist/{chunk-HQ27V5V4.mjs → chunk-2C5EQ4P3.mjs} +4 -0
  3. package/dist/{chunk-IL3JFLE2.mjs → chunk-4UDOCFU5.mjs} +7 -0
  4. package/dist/chunk-JWF5ABNP.mjs +56 -0
  5. package/dist/chunk-PQSL3W26.mjs +96 -0
  6. package/dist/chunk-XSN6P5JL.mjs +0 -0
  7. package/dist/components/button.js +0 -9
  8. package/dist/components/button.mjs +2 -2
  9. package/dist/components/calendar.d.mts +124 -0
  10. package/dist/components/calendar.d.ts +124 -0
  11. package/dist/components/calendar.js +80 -0
  12. package/dist/components/calendar.mjs +6 -0
  13. package/dist/components/dropdown-menu.d.mts +6 -6
  14. package/dist/components/dropdown-menu.d.ts +6 -6
  15. package/dist/components/index.d.mts +2 -0
  16. package/dist/components/index.d.ts +2 -0
  17. package/dist/components/index.js +173 -25
  18. package/dist/components/index.mjs +17 -7
  19. package/dist/components/input.d.mts +177 -0
  20. package/dist/components/input.d.ts +177 -0
  21. package/dist/components/input.js +124 -0
  22. package/dist/components/input.mjs +9 -0
  23. package/dist/components/spinner.d.mts +21 -0
  24. package/dist/components/spinner.d.ts +21 -0
  25. package/dist/components/spinner.js +7 -0
  26. package/dist/components/spinner.mjs +1 -1
  27. package/dist/index.d.mts +3 -0
  28. package/dist/index.d.ts +3 -0
  29. package/dist/index.js +173 -25
  30. package/dist/index.mjs +18 -7
  31. package/dist/utils/classes.d.mts +2 -1
  32. package/dist/utils/classes.d.ts +2 -1
  33. package/dist/utils/classes.js +7 -2
  34. package/dist/utils/classes.mjs +5 -3
  35. package/dist/utils/index.d.mts +2 -0
  36. package/dist/utils/index.d.ts +2 -0
  37. package/dist/utils/index.js +18 -0
  38. package/dist/utils/index.mjs +1 -0
  39. package/dist/utils/types.d.mts +10 -0
  40. package/dist/utils/types.d.ts +10 -0
  41. package/dist/utils/types.js +18 -0
  42. package/dist/utils/types.mjs +0 -0
  43. package/package.json +2 -2
  44. /package/dist/{chunk-KIDK6JOG.mjs → chunk-HNTFXPSN.mjs} +0 -0
@@ -0,0 +1,177 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const passwordInput: tailwind_variants.TVReturnType<{
5
+ [key: string]: {
6
+ [key: string]: tailwind_variants.ClassValue | {
7
+ icon?: tailwind_variants.ClassValue;
8
+ button?: tailwind_variants.ClassValue;
9
+ };
10
+ };
11
+ } | {
12
+ [x: string]: {
13
+ [x: string]: tailwind_variants.ClassValue | {
14
+ icon?: tailwind_variants.ClassValue;
15
+ button?: tailwind_variants.ClassValue;
16
+ };
17
+ };
18
+ } | {}, {
19
+ button: string;
20
+ icon: string;
21
+ }, undefined, {
22
+ [key: string]: {
23
+ [key: string]: tailwind_variants.ClassValue | {
24
+ icon?: tailwind_variants.ClassValue;
25
+ button?: tailwind_variants.ClassValue;
26
+ };
27
+ };
28
+ } | {}, {
29
+ button: string;
30
+ icon: string;
31
+ }, tailwind_variants.TVReturnType<unknown, {
32
+ button: string;
33
+ icon: string;
34
+ }, undefined, unknown, unknown, undefined>>;
35
+ declare const input: tailwind_variants.TVReturnType<{
36
+ size: {
37
+ sm: {
38
+ inputWrapper: string[];
39
+ input: string;
40
+ };
41
+ md: {
42
+ inputWrapper: string;
43
+ input: string;
44
+ clearButton: string;
45
+ };
46
+ lg: {
47
+ inputWrapper: string;
48
+ input: string;
49
+ clearButton: string;
50
+ };
51
+ };
52
+ radius: {
53
+ none: {
54
+ inputWrapper: string;
55
+ };
56
+ sm: {
57
+ inputWrapper: string;
58
+ };
59
+ md: {
60
+ inputWrapper: string;
61
+ };
62
+ lg: {
63
+ inputWrapper: string;
64
+ };
65
+ full: {
66
+ inputWrapper: string;
67
+ };
68
+ };
69
+ isClearable: {
70
+ true: {
71
+ input: string;
72
+ clearButton: string[];
73
+ };
74
+ false: {};
75
+ };
76
+ }, {
77
+ inputWrapper: string[];
78
+ innerWrapper: string;
79
+ input: string[];
80
+ clearButton: string[];
81
+ }, never[], {
82
+ size: {
83
+ sm: {
84
+ inputWrapper: string[];
85
+ input: string;
86
+ };
87
+ md: {
88
+ inputWrapper: string;
89
+ input: string;
90
+ clearButton: string;
91
+ };
92
+ lg: {
93
+ inputWrapper: string;
94
+ input: string;
95
+ clearButton: string;
96
+ };
97
+ };
98
+ radius: {
99
+ none: {
100
+ inputWrapper: string;
101
+ };
102
+ sm: {
103
+ inputWrapper: string;
104
+ };
105
+ md: {
106
+ inputWrapper: string;
107
+ };
108
+ lg: {
109
+ inputWrapper: string;
110
+ };
111
+ full: {
112
+ inputWrapper: string;
113
+ };
114
+ };
115
+ isClearable: {
116
+ true: {
117
+ input: string;
118
+ clearButton: string[];
119
+ };
120
+ false: {};
121
+ };
122
+ }, {
123
+ inputWrapper: string[];
124
+ innerWrapper: string;
125
+ input: string[];
126
+ clearButton: string[];
127
+ }, tailwind_variants.TVReturnType<{
128
+ size: {
129
+ sm: {
130
+ inputWrapper: string[];
131
+ input: string;
132
+ };
133
+ md: {
134
+ inputWrapper: string;
135
+ input: string;
136
+ clearButton: string;
137
+ };
138
+ lg: {
139
+ inputWrapper: string;
140
+ input: string;
141
+ clearButton: string;
142
+ };
143
+ };
144
+ radius: {
145
+ none: {
146
+ inputWrapper: string;
147
+ };
148
+ sm: {
149
+ inputWrapper: string;
150
+ };
151
+ md: {
152
+ inputWrapper: string;
153
+ };
154
+ lg: {
155
+ inputWrapper: string;
156
+ };
157
+ full: {
158
+ inputWrapper: string;
159
+ };
160
+ };
161
+ isClearable: {
162
+ true: {
163
+ input: string;
164
+ clearButton: string[];
165
+ };
166
+ false: {};
167
+ };
168
+ }, {
169
+ inputWrapper: string[];
170
+ innerWrapper: string;
171
+ input: string[];
172
+ clearButton: string[];
173
+ }, never[], unknown, unknown, undefined>>;
174
+ type InputVariantProps = VariantProps<typeof input>;
175
+ type InputSlots = keyof ReturnType<typeof input>;
176
+
177
+ export { type InputSlots, type InputVariantProps, input, passwordInput };
@@ -0,0 +1,124 @@
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/input.ts
21
+ var input_exports = {};
22
+ __export(input_exports, {
23
+ input: () => input,
24
+ passwordInput: () => passwordInput
25
+ });
26
+ module.exports = __toCommonJS(input_exports);
27
+ var import_tailwind_variants = require("tailwind-variants");
28
+
29
+ // src/utils/classes.ts
30
+ var focusWithinClasses = [
31
+ "focus-within:outline-2 focus-within:outline-ring focus-within:outline-offset-2"
32
+ ];
33
+
34
+ // src/components/input.ts
35
+ var passwordInput = (0, import_tailwind_variants.tv)({
36
+ slots: {
37
+ button: "focus:outline-hidden",
38
+ icon: "pointer-events-none text-muted-foreground"
39
+ }
40
+ });
41
+ var input = (0, import_tailwind_variants.tv)({
42
+ base: [],
43
+ slots: {
44
+ inputWrapper: [
45
+ "relative w-full inline-flex flex-row items-center shadow-xs px-3 gap-3 [&_svg]:shrink-0",
46
+ "border-input border dark:bg-input/30 data-[hidden=true]:hidden transition-[color,box-shadow]",
47
+ "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50",
48
+ ...focusWithinClasses
49
+ ],
50
+ innerWrapper: "inline-flex w-full items-center h-full box-border",
51
+ input: [
52
+ "w-full font-normal outline-hidden focus-visible:outline-hidden",
53
+ "data-[has-start-content=true]:ps-1.5",
54
+ "data-[has-end-content=true]:pe-1.5",
55
+ "file:cursor-pointer file:bg-transparent file:border-0",
56
+ "autofill:bg-transparent bg-clip-text",
57
+ // legacy
58
+ "selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground",
59
+ "flex",
60
+ // file
61
+ "file:text-foreground file:inline-flex file:text-sm file:font-medium",
62
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
63
+ ],
64
+ clearButton: [
65
+ "p-2 -m-2 z-10 absolute end-3 start-auto pointer-events-none",
66
+ "appearance-none outline-hidden select-none opacity-0 cursor-pointer",
67
+ "active:!opacity-70 rounded-full"
68
+ ]
69
+ },
70
+ variants: {
71
+ size: {
72
+ sm: {
73
+ inputWrapper: ["h-8 min-h-8 px-2 rounded-sm [&_svg]:size-4"],
74
+ input: "text-sm file:h-6"
75
+ },
76
+ md: {
77
+ inputWrapper: "h-10 min-10 rounded-md [&_svg]:size-4",
78
+ input: "text-base md:text-sm file:h-8",
79
+ clearButton: "hover:opacity-100"
80
+ },
81
+ lg: {
82
+ inputWrapper: "h-12 min-h-12 rounded-lg [&_svg]:size-4",
83
+ input: "text-base file:h-10",
84
+ clearButton: "hover:opacity-100"
85
+ }
86
+ },
87
+ radius: {
88
+ none: {
89
+ inputWrapper: "rounded-none"
90
+ },
91
+ sm: {
92
+ inputWrapper: "rounded-sm"
93
+ },
94
+ md: {
95
+ inputWrapper: "rounded-md"
96
+ },
97
+ lg: {
98
+ inputWrapper: "rounded-lg"
99
+ },
100
+ full: {
101
+ inputWrapper: "rounded-full"
102
+ }
103
+ },
104
+ isClearable: {
105
+ true: {
106
+ input: "peer pe-6",
107
+ clearButton: [
108
+ "peer-data-[filled=true]:pointer-events-auto",
109
+ "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
110
+ "peer-data-[filled=true]:scale-100"
111
+ ]
112
+ },
113
+ false: {}
114
+ }
115
+ },
116
+ defaultVariants: {
117
+ size: "md"
118
+ }
119
+ });
120
+ // Annotate the CommonJS export names for ESM import in node:
121
+ 0 && (module.exports = {
122
+ input,
123
+ passwordInput
124
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ input,
3
+ passwordInput
4
+ } from "../chunk-PQSL3W26.mjs";
5
+ import "../chunk-2C5EQ4P3.mjs";
6
+ export {
7
+ input,
8
+ passwordInput
9
+ };
@@ -3,6 +3,13 @@ import { VariantProps } from 'tailwind-variants';
3
3
 
4
4
  declare const spinner: tailwind_variants.TVReturnType<{
5
5
  size: {
6
+ xs: {
7
+ wrapper: string;
8
+ circle1: string;
9
+ circle2: string;
10
+ dots: string;
11
+ label: string;
12
+ };
6
13
  sm: {
7
14
  wrapper: string;
8
15
  circle1: string;
@@ -92,6 +99,13 @@ declare const spinner: tailwind_variants.TVReturnType<{
92
99
  dots: string;
93
100
  }, undefined, {
94
101
  size: {
102
+ xs: {
103
+ wrapper: string;
104
+ circle1: string;
105
+ circle2: string;
106
+ dots: string;
107
+ label: string;
108
+ };
95
109
  sm: {
96
110
  wrapper: string;
97
111
  circle1: string;
@@ -181,6 +195,13 @@ declare const spinner: tailwind_variants.TVReturnType<{
181
195
  dots: string;
182
196
  }, tailwind_variants.TVReturnType<{
183
197
  size: {
198
+ xs: {
199
+ wrapper: string;
200
+ circle1: string;
201
+ circle2: string;
202
+ dots: string;
203
+ label: string;
204
+ };
184
205
  sm: {
185
206
  wrapper: string;
186
207
  circle1: string;
@@ -3,6 +3,13 @@ import { VariantProps } from 'tailwind-variants';
3
3
 
4
4
  declare const spinner: tailwind_variants.TVReturnType<{
5
5
  size: {
6
+ xs: {
7
+ wrapper: string;
8
+ circle1: string;
9
+ circle2: string;
10
+ dots: string;
11
+ label: string;
12
+ };
6
13
  sm: {
7
14
  wrapper: string;
8
15
  circle1: string;
@@ -92,6 +99,13 @@ declare const spinner: tailwind_variants.TVReturnType<{
92
99
  dots: string;
93
100
  }, undefined, {
94
101
  size: {
102
+ xs: {
103
+ wrapper: string;
104
+ circle1: string;
105
+ circle2: string;
106
+ dots: string;
107
+ label: string;
108
+ };
95
109
  sm: {
96
110
  wrapper: string;
97
111
  circle1: string;
@@ -181,6 +195,13 @@ declare const spinner: tailwind_variants.TVReturnType<{
181
195
  dots: string;
182
196
  }, tailwind_variants.TVReturnType<{
183
197
  size: {
198
+ xs: {
199
+ wrapper: string;
200
+ circle1: string;
201
+ circle2: string;
202
+ dots: string;
203
+ label: string;
204
+ };
184
205
  sm: {
185
206
  wrapper: string;
186
207
  circle1: string;
@@ -35,6 +35,13 @@ var spinner = (0, import_tailwind_variants.tv)({
35
35
  },
36
36
  variants: {
37
37
  size: {
38
+ xs: {
39
+ wrapper: "w-4 h-4",
40
+ circle1: "border-2",
41
+ circle2: "border-2",
42
+ dots: "size-1",
43
+ label: "text-xs"
44
+ },
38
45
  sm: {
39
46
  wrapper: "w-5 h-5",
40
47
  circle1: "border-2",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  spinner
3
- } from "../chunk-IL3JFLE2.mjs";
3
+ } from "../chunk-4UDOCFU5.mjs";
4
4
  export {
5
5
  spinner
6
6
  };
package/dist/index.d.mts CHANGED
@@ -1,10 +1,13 @@
1
1
  export { TV, VariantProps } from 'tailwind-variants';
2
2
  export { ButtonVariantProps, button } from './components/button.mjs';
3
+ export { CalendarVariantProps, calendar } from './components/calendar.mjs';
3
4
  export { CommandVariants, command } from './components/command.mjs';
4
5
  export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.mjs';
5
6
  export { DrawerVariantProps, drawer } from './components/drawer.mjs';
6
7
  export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.mjs';
8
+ export { InputVariantProps, input, passwordInput } from './components/input.mjs';
7
9
  export { PageLayoutVariantProps, pageLayout } from './components/page-layout.mjs';
8
10
  export { PopoverVariants, popover } from './components/popover.mjs';
9
11
  export { SpinnerVariants, spinner } from './components/spinner.mjs';
10
12
  export { TooltipVariants, tooltip } from './components/tooltip.mjs';
13
+ export { SlotsToClasses } from './utils/types.mjs';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,13 @@
1
1
  export { TV, VariantProps } from 'tailwind-variants';
2
2
  export { ButtonVariantProps, button } from './components/button.js';
3
+ export { CalendarVariantProps, calendar } from './components/calendar.js';
3
4
  export { CommandVariants, command } from './components/command.js';
4
5
  export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.js';
5
6
  export { DrawerVariantProps, drawer } from './components/drawer.js';
6
7
  export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.js';
8
+ export { InputVariantProps, input, passwordInput } from './components/input.js';
7
9
  export { PageLayoutVariantProps, pageLayout } from './components/page-layout.js';
8
10
  export { PopoverVariants, popover } from './components/popover.js';
9
11
  export { SpinnerVariants, spinner } from './components/spinner.js';
10
12
  export { TooltipVariants, tooltip } from './components/tooltip.js';
13
+ export { SlotsToClasses } from './utils/types.js';