@kopexa/theme 1.5.0 → 1.5.2

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.
@@ -0,0 +1,203 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const avatar: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ sm: {
7
+ root: string;
8
+ };
9
+ md: {
10
+ root: string;
11
+ };
12
+ lg: {
13
+ root: string;
14
+ };
15
+ };
16
+ color: {
17
+ default: {
18
+ root: string;
19
+ };
20
+ primary: {
21
+ root: string;
22
+ };
23
+ secondary: {
24
+ root: string;
25
+ };
26
+ success: {
27
+ root: string;
28
+ };
29
+ warning: {
30
+ root: string;
31
+ };
32
+ destructive: {
33
+ root: string;
34
+ };
35
+ };
36
+ radius: {
37
+ none: {
38
+ root: string;
39
+ };
40
+ sm: {
41
+ root: string;
42
+ };
43
+ md: {
44
+ root: string;
45
+ };
46
+ lg: {
47
+ root: string;
48
+ };
49
+ full: {
50
+ root: string;
51
+ };
52
+ };
53
+ isBordered: {
54
+ true: {
55
+ root: string;
56
+ };
57
+ };
58
+ isDisabled: {
59
+ true: {
60
+ root: string;
61
+ };
62
+ };
63
+ }, {
64
+ root: string[];
65
+ img: string[];
66
+ fallback: string[];
67
+ name: string[];
68
+ icon: string[];
69
+ }, undefined, {
70
+ size: {
71
+ sm: {
72
+ root: string;
73
+ };
74
+ md: {
75
+ root: string;
76
+ };
77
+ lg: {
78
+ root: string;
79
+ };
80
+ };
81
+ color: {
82
+ default: {
83
+ root: string;
84
+ };
85
+ primary: {
86
+ root: string;
87
+ };
88
+ secondary: {
89
+ root: string;
90
+ };
91
+ success: {
92
+ root: string;
93
+ };
94
+ warning: {
95
+ root: string;
96
+ };
97
+ destructive: {
98
+ root: string;
99
+ };
100
+ };
101
+ radius: {
102
+ none: {
103
+ root: string;
104
+ };
105
+ sm: {
106
+ root: string;
107
+ };
108
+ md: {
109
+ root: string;
110
+ };
111
+ lg: {
112
+ root: string;
113
+ };
114
+ full: {
115
+ root: string;
116
+ };
117
+ };
118
+ isBordered: {
119
+ true: {
120
+ root: string;
121
+ };
122
+ };
123
+ isDisabled: {
124
+ true: {
125
+ root: string;
126
+ };
127
+ };
128
+ }, {
129
+ root: string[];
130
+ img: string[];
131
+ fallback: string[];
132
+ name: string[];
133
+ icon: string[];
134
+ }, tailwind_variants.TVReturnType<{
135
+ size: {
136
+ sm: {
137
+ root: string;
138
+ };
139
+ md: {
140
+ root: string;
141
+ };
142
+ lg: {
143
+ root: string;
144
+ };
145
+ };
146
+ color: {
147
+ default: {
148
+ root: string;
149
+ };
150
+ primary: {
151
+ root: string;
152
+ };
153
+ secondary: {
154
+ root: string;
155
+ };
156
+ success: {
157
+ root: string;
158
+ };
159
+ warning: {
160
+ root: string;
161
+ };
162
+ destructive: {
163
+ root: string;
164
+ };
165
+ };
166
+ radius: {
167
+ none: {
168
+ root: string;
169
+ };
170
+ sm: {
171
+ root: string;
172
+ };
173
+ md: {
174
+ root: string;
175
+ };
176
+ lg: {
177
+ root: string;
178
+ };
179
+ full: {
180
+ root: string;
181
+ };
182
+ };
183
+ isBordered: {
184
+ true: {
185
+ root: string;
186
+ };
187
+ };
188
+ isDisabled: {
189
+ true: {
190
+ root: string;
191
+ };
192
+ };
193
+ }, {
194
+ root: string[];
195
+ img: string[];
196
+ fallback: string[];
197
+ name: string[];
198
+ icon: string[];
199
+ }, undefined, unknown, unknown, undefined>>;
200
+ type AvatarVariantProps = VariantProps<typeof avatar>;
201
+ type AvatarSlots = keyof ReturnType<typeof avatar>;
202
+
203
+ export { type AvatarSlots, type AvatarVariantProps, avatar };
@@ -0,0 +1,203 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const avatar: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ sm: {
7
+ root: string;
8
+ };
9
+ md: {
10
+ root: string;
11
+ };
12
+ lg: {
13
+ root: string;
14
+ };
15
+ };
16
+ color: {
17
+ default: {
18
+ root: string;
19
+ };
20
+ primary: {
21
+ root: string;
22
+ };
23
+ secondary: {
24
+ root: string;
25
+ };
26
+ success: {
27
+ root: string;
28
+ };
29
+ warning: {
30
+ root: string;
31
+ };
32
+ destructive: {
33
+ root: string;
34
+ };
35
+ };
36
+ radius: {
37
+ none: {
38
+ root: string;
39
+ };
40
+ sm: {
41
+ root: string;
42
+ };
43
+ md: {
44
+ root: string;
45
+ };
46
+ lg: {
47
+ root: string;
48
+ };
49
+ full: {
50
+ root: string;
51
+ };
52
+ };
53
+ isBordered: {
54
+ true: {
55
+ root: string;
56
+ };
57
+ };
58
+ isDisabled: {
59
+ true: {
60
+ root: string;
61
+ };
62
+ };
63
+ }, {
64
+ root: string[];
65
+ img: string[];
66
+ fallback: string[];
67
+ name: string[];
68
+ icon: string[];
69
+ }, undefined, {
70
+ size: {
71
+ sm: {
72
+ root: string;
73
+ };
74
+ md: {
75
+ root: string;
76
+ };
77
+ lg: {
78
+ root: string;
79
+ };
80
+ };
81
+ color: {
82
+ default: {
83
+ root: string;
84
+ };
85
+ primary: {
86
+ root: string;
87
+ };
88
+ secondary: {
89
+ root: string;
90
+ };
91
+ success: {
92
+ root: string;
93
+ };
94
+ warning: {
95
+ root: string;
96
+ };
97
+ destructive: {
98
+ root: string;
99
+ };
100
+ };
101
+ radius: {
102
+ none: {
103
+ root: string;
104
+ };
105
+ sm: {
106
+ root: string;
107
+ };
108
+ md: {
109
+ root: string;
110
+ };
111
+ lg: {
112
+ root: string;
113
+ };
114
+ full: {
115
+ root: string;
116
+ };
117
+ };
118
+ isBordered: {
119
+ true: {
120
+ root: string;
121
+ };
122
+ };
123
+ isDisabled: {
124
+ true: {
125
+ root: string;
126
+ };
127
+ };
128
+ }, {
129
+ root: string[];
130
+ img: string[];
131
+ fallback: string[];
132
+ name: string[];
133
+ icon: string[];
134
+ }, tailwind_variants.TVReturnType<{
135
+ size: {
136
+ sm: {
137
+ root: string;
138
+ };
139
+ md: {
140
+ root: string;
141
+ };
142
+ lg: {
143
+ root: string;
144
+ };
145
+ };
146
+ color: {
147
+ default: {
148
+ root: string;
149
+ };
150
+ primary: {
151
+ root: string;
152
+ };
153
+ secondary: {
154
+ root: string;
155
+ };
156
+ success: {
157
+ root: string;
158
+ };
159
+ warning: {
160
+ root: string;
161
+ };
162
+ destructive: {
163
+ root: string;
164
+ };
165
+ };
166
+ radius: {
167
+ none: {
168
+ root: string;
169
+ };
170
+ sm: {
171
+ root: string;
172
+ };
173
+ md: {
174
+ root: string;
175
+ };
176
+ lg: {
177
+ root: string;
178
+ };
179
+ full: {
180
+ root: string;
181
+ };
182
+ };
183
+ isBordered: {
184
+ true: {
185
+ root: string;
186
+ };
187
+ };
188
+ isDisabled: {
189
+ true: {
190
+ root: string;
191
+ };
192
+ };
193
+ }, {
194
+ root: string[];
195
+ img: string[];
196
+ fallback: string[];
197
+ name: string[];
198
+ icon: string[];
199
+ }, undefined, unknown, unknown, undefined>>;
200
+ type AvatarVariantProps = VariantProps<typeof avatar>;
201
+ type AvatarSlots = keyof ReturnType<typeof avatar>;
202
+
203
+ export { type AvatarSlots, type AvatarVariantProps, avatar };
@@ -0,0 +1,253 @@
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/avatar.ts
21
+ var avatar_exports = {};
22
+ __export(avatar_exports, {
23
+ avatar: () => avatar
24
+ });
25
+ module.exports = __toCommonJS(avatar_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+
28
+ // src/utils/classes.ts
29
+ var focusVisibleClasses = [
30
+ "focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
31
+ //"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
32
+ ];
33
+ var translateCenterClasses = [
34
+ "absolute",
35
+ "top-1/2",
36
+ "left-1/2",
37
+ "-translate-x-1/2",
38
+ "-translate-y-1/2"
39
+ ];
40
+
41
+ // src/utils/variants.ts
42
+ var solid = {
43
+ default: "bg-accent text-accent-foreground",
44
+ primary: "bg-primary text-primary-foreground",
45
+ secondary: "bg-secondary text-secondary-foreground",
46
+ destructive: "bg-destructive text-destructive-foreground",
47
+ warning: "bg-warning text-warning-foreground",
48
+ success: "bg-success text-success-foreground"
49
+ };
50
+ var outline = {
51
+ default: "bg-transparent border border-accent text-accent-foreground",
52
+ primary: "bg-transparent border-primary text-primary",
53
+ secondary: "bg-transparent border-secondary text-secondary-foreground",
54
+ destructive: "bg-transparent border-destructive text-destructive",
55
+ warning: "bg-transparent border-warning text-warning",
56
+ success: "bg-transparent border-success text-success"
57
+ };
58
+ var flat = {
59
+ default: "bg-accent/40 text-accent-700",
60
+ primary: "bg-primary/20 text-primary-600",
61
+ secondary: "bg-secondary/20 text-secondary-600",
62
+ success: "bg-success/20 text-success-700 dark:text-success",
63
+ warning: "bg-warning/20 text-warning-700 dark:text-warning",
64
+ destructive: "bg-danger/20 text-danger-600 dark:text-danger-500",
65
+ foreground: "bg-foreground/10 text-foreground"
66
+ };
67
+ var faded = {
68
+ default: "border-default bg-accent/30 text-default-foreground",
69
+ primary: "border-default bg-accent/30 text-primary",
70
+ secondary: "border-default bg-accent/30 text-secondary-foreground",
71
+ success: "border-default bg-accent/30 text-success",
72
+ warning: "border-default bg-accent/30 text-warning",
73
+ destructive: "border-default bg-accent/30 text-danger",
74
+ foreground: "border-default bg-accent/30 text-foreground"
75
+ };
76
+ var ghost = {
77
+ primary: "bg-transparent text-primary",
78
+ secondary: "bg-transparent text-secondary",
79
+ destructive: "bg-transparent text-destructive",
80
+ warning: "bg-transparent text-warning",
81
+ success: "bg-transparent text-success"
82
+ };
83
+ var colorVariants = {
84
+ solid,
85
+ ghost,
86
+ outline,
87
+ flat,
88
+ faded
89
+ };
90
+
91
+ // src/components/avatar.ts
92
+ var avatar = (0, import_tailwind_variants.tv)({
93
+ slots: {
94
+ root: [
95
+ "flex",
96
+ "relative",
97
+ "justify-center",
98
+ "items-center",
99
+ "box-border",
100
+ "overflow-hidden",
101
+ "align-middle",
102
+ "text-white",
103
+ "z-0",
104
+ // focus ring
105
+ ...focusVisibleClasses
106
+ ],
107
+ img: [
108
+ "flex",
109
+ "object-cover",
110
+ "w-full",
111
+ "h-full",
112
+ "transition-opacity",
113
+ "!duration-500",
114
+ "opacity-0",
115
+ "data-[status=loaded]:opacity-100"
116
+ ],
117
+ fallback: [
118
+ ...translateCenterClasses,
119
+ "flex",
120
+ "items-center",
121
+ "justify-center"
122
+ ],
123
+ name: [
124
+ ...translateCenterClasses,
125
+ "font-normal",
126
+ "text-center",
127
+ "text-inherit"
128
+ ],
129
+ icon: [
130
+ ...translateCenterClasses,
131
+ "flex",
132
+ "items-center",
133
+ "justify-center",
134
+ "text-inherit",
135
+ "w-full",
136
+ "h-full",
137
+ "opacity-30"
138
+ ]
139
+ },
140
+ variants: {
141
+ size: {
142
+ sm: {
143
+ root: "w-8 h-8 text-tiny"
144
+ },
145
+ md: {
146
+ root: "w-10 h-10 text-tiny"
147
+ },
148
+ lg: {
149
+ root: "w-14 h-14 text-small"
150
+ }
151
+ },
152
+ color: {
153
+ default: {
154
+ root: colorVariants.solid.default
155
+ },
156
+ primary: {
157
+ root: colorVariants.solid.primary
158
+ },
159
+ secondary: {
160
+ root: colorVariants.solid.secondary
161
+ },
162
+ success: {
163
+ root: colorVariants.solid.success
164
+ },
165
+ warning: {
166
+ root: colorVariants.solid.warning
167
+ },
168
+ destructive: {
169
+ root: colorVariants.solid.destructive
170
+ }
171
+ },
172
+ radius: {
173
+ none: {
174
+ root: "rounded-none"
175
+ },
176
+ sm: {
177
+ root: "rounded-sm"
178
+ },
179
+ md: {
180
+ root: "rounded-md"
181
+ },
182
+ lg: {
183
+ root: "rounded-lg"
184
+ },
185
+ full: {
186
+ root: "rounded-full"
187
+ }
188
+ },
189
+ isBordered: {
190
+ true: {
191
+ root: "ring-2 ring-offset-2 ring-offset-background"
192
+ }
193
+ },
194
+ isDisabled: {
195
+ true: {
196
+ root: "opacity-50"
197
+ }
198
+ }
199
+ },
200
+ defaultVariants: {
201
+ size: "md",
202
+ radius: "full",
203
+ color: "default"
204
+ },
205
+ compoundVariants: [
206
+ {
207
+ color: "default",
208
+ isBordered: true,
209
+ class: {
210
+ root: "ring-default"
211
+ }
212
+ },
213
+ {
214
+ color: "primary",
215
+ isBordered: true,
216
+ class: {
217
+ root: "ring-primary"
218
+ }
219
+ },
220
+ {
221
+ color: "secondary",
222
+ isBordered: true,
223
+ class: {
224
+ root: "ring-secondary"
225
+ }
226
+ },
227
+ {
228
+ color: "success",
229
+ isBordered: true,
230
+ class: {
231
+ root: "ring-success"
232
+ }
233
+ },
234
+ {
235
+ color: "warning",
236
+ isBordered: true,
237
+ class: {
238
+ root: "ring-warning"
239
+ }
240
+ },
241
+ {
242
+ color: "destructive",
243
+ isBordered: true,
244
+ class: {
245
+ root: "ring-destructive"
246
+ }
247
+ }
248
+ ]
249
+ });
250
+ // Annotate the CommonJS export names for ESM import in node:
251
+ 0 && (module.exports = {
252
+ avatar
253
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ avatar
3
+ } from "../chunk-Q5DCJR2X.mjs";
4
+ import "../chunk-25L2JS6A.mjs";
5
+ import "../chunk-67PPUTSS.mjs";
6
+ export {
7
+ avatar
8
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  button
3
- } from "../chunk-KE2E5LGH.mjs";
4
- import "../chunk-2C5EQ4P3.mjs";
3
+ } from "../chunk-BIRJNNEY.mjs";
4
+ import "../chunk-25L2JS6A.mjs";
5
5
  import "../chunk-67PPUTSS.mjs";
6
6
  export {
7
7
  button