@kopexa/theme 1.6.10 → 1.7.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.
- package/dist/chunk-DICHD74Q.mjs +55 -0
- package/dist/chunk-LURDY4A5.mjs +25 -0
- package/dist/{chunk-2BPKTGNE.mjs → chunk-WPVIIT3Z.mjs} +6 -0
- package/dist/components/avatar.d.mts +18 -0
- package/dist/components/avatar.d.ts +18 -0
- package/dist/components/avatar.js +6 -0
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/blankstate.d.mts +128 -0
- package/dist/components/blankstate.d.ts +128 -0
- package/dist/components/blankstate.js +79 -0
- package/dist/components/blankstate.mjs +6 -0
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +147 -67
- package/dist/components/index.mjs +20 -12
- package/dist/components/page-header.d.mts +3 -3
- package/dist/components/page-header.d.ts +3 -3
- package/dist/components/skeleton-avatar.d.mts +31 -0
- package/dist/components/skeleton-avatar.d.ts +31 -0
- package/dist/components/skeleton-avatar.js +292 -0
- package/dist/components/skeleton-avatar.mjs +9 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +147 -67
- package/dist/index.mjs +20 -12
- package/package.json +2 -2
- /package/dist/{chunk-N7T6GTBO.mjs → chunk-MVXKHHAX.mjs} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const skeletonAvatar: tailwind_variants.TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
"2xs": string;
|
|
7
|
+
xs: string;
|
|
8
|
+
sm: string;
|
|
9
|
+
md: string;
|
|
10
|
+
lg: string;
|
|
11
|
+
};
|
|
12
|
+
}, undefined, "rounded-full", {
|
|
13
|
+
size: {
|
|
14
|
+
"2xs": string;
|
|
15
|
+
xs: string;
|
|
16
|
+
sm: string;
|
|
17
|
+
md: string;
|
|
18
|
+
lg: string;
|
|
19
|
+
};
|
|
20
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
21
|
+
size: {
|
|
22
|
+
"2xs": string;
|
|
23
|
+
xs: string;
|
|
24
|
+
sm: string;
|
|
25
|
+
md: string;
|
|
26
|
+
lg: string;
|
|
27
|
+
};
|
|
28
|
+
}, undefined, "rounded-full", unknown, unknown, undefined>>;
|
|
29
|
+
type SkeletonAvatarVariantProps = VariantProps<typeof skeletonAvatar>;
|
|
30
|
+
|
|
31
|
+
export { type SkeletonAvatarVariantProps, skeletonAvatar };
|
|
@@ -0,0 +1,292 @@
|
|
|
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/skeleton-avatar.ts
|
|
21
|
+
var skeleton_avatar_exports = {};
|
|
22
|
+
__export(skeleton_avatar_exports, {
|
|
23
|
+
skeletonAvatar: () => skeletonAvatar
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(skeleton_avatar_exports);
|
|
26
|
+
var import_tailwind_variants2 = require("tailwind-variants");
|
|
27
|
+
|
|
28
|
+
// src/components/avatar.ts
|
|
29
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
30
|
+
|
|
31
|
+
// src/utils/classes.ts
|
|
32
|
+
var focusVisibleClasses = [
|
|
33
|
+
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
34
|
+
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
35
|
+
];
|
|
36
|
+
var translateCenterClasses = [
|
|
37
|
+
"absolute",
|
|
38
|
+
"top-1/2",
|
|
39
|
+
"left-1/2",
|
|
40
|
+
"-translate-x-1/2",
|
|
41
|
+
"-translate-y-1/2"
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
// src/utils/variants.ts
|
|
45
|
+
var solid = {
|
|
46
|
+
default: "bg-accent/70 text-accent-foreground",
|
|
47
|
+
primary: "bg-primary text-primary-foreground",
|
|
48
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
49
|
+
destructive: "bg-destructive text-destructive-foreground",
|
|
50
|
+
warning: "bg-warning text-warning-foreground",
|
|
51
|
+
success: "bg-success text-success-foreground"
|
|
52
|
+
};
|
|
53
|
+
var outline = {
|
|
54
|
+
default: "bg-transparent border border-accent text-accent-foreground",
|
|
55
|
+
primary: "bg-transparent border-primary text-primary",
|
|
56
|
+
secondary: "bg-transparent border-secondary text-secondary-foreground",
|
|
57
|
+
destructive: "bg-transparent border-destructive text-destructive",
|
|
58
|
+
warning: "bg-transparent border-warning text-warning",
|
|
59
|
+
success: "bg-transparent border-success text-success"
|
|
60
|
+
};
|
|
61
|
+
var flat = {
|
|
62
|
+
default: "bg-accent/40 text-accent-700",
|
|
63
|
+
primary: "bg-primary/20 text-primary-600",
|
|
64
|
+
secondary: "bg-secondary/20 text-secondary-600",
|
|
65
|
+
success: "bg-success/20 text-success-700 dark:text-success",
|
|
66
|
+
warning: "bg-warning/20 text-warning-700 dark:text-warning",
|
|
67
|
+
destructive: "bg-danger/20 text-danger-600 dark:text-danger-500",
|
|
68
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
69
|
+
};
|
|
70
|
+
var faded = {
|
|
71
|
+
default: "border-default bg-accent/30 text-default-foreground",
|
|
72
|
+
primary: "border-default bg-accent/30 text-primary",
|
|
73
|
+
secondary: "border-default bg-accent/30 text-secondary-foreground",
|
|
74
|
+
success: "border-default bg-accent/30 text-success",
|
|
75
|
+
warning: "border-default bg-accent/30 text-warning",
|
|
76
|
+
destructive: "border-default bg-accent/30 text-danger",
|
|
77
|
+
foreground: "border-default bg-accent/30 text-foreground"
|
|
78
|
+
};
|
|
79
|
+
var ghost = {
|
|
80
|
+
primary: "bg-transparent text-primary dark:text-primary-foreground",
|
|
81
|
+
secondary: "bg-transparent text-secondary",
|
|
82
|
+
destructive: "bg-transparent text-destructive",
|
|
83
|
+
warning: "bg-transparent text-warning",
|
|
84
|
+
success: "bg-transparent text-success"
|
|
85
|
+
};
|
|
86
|
+
var colorVariants = {
|
|
87
|
+
solid,
|
|
88
|
+
ghost,
|
|
89
|
+
outline,
|
|
90
|
+
flat,
|
|
91
|
+
faded
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
// src/components/avatar.ts
|
|
95
|
+
var avatar = (0, import_tailwind_variants.tv)({
|
|
96
|
+
slots: {
|
|
97
|
+
root: [
|
|
98
|
+
"flex",
|
|
99
|
+
"relative",
|
|
100
|
+
"justify-center",
|
|
101
|
+
"items-center",
|
|
102
|
+
"box-border",
|
|
103
|
+
"overflow-hidden",
|
|
104
|
+
"align-middle",
|
|
105
|
+
"text-white",
|
|
106
|
+
"z-0",
|
|
107
|
+
// focus ring
|
|
108
|
+
...focusVisibleClasses
|
|
109
|
+
],
|
|
110
|
+
img: [
|
|
111
|
+
"flex",
|
|
112
|
+
"object-cover",
|
|
113
|
+
"w-full",
|
|
114
|
+
"h-full",
|
|
115
|
+
"transition-opacity",
|
|
116
|
+
"!duration-500",
|
|
117
|
+
"opacity-0",
|
|
118
|
+
"data-[status=loaded]:opacity-100"
|
|
119
|
+
],
|
|
120
|
+
fallback: [
|
|
121
|
+
...translateCenterClasses,
|
|
122
|
+
"flex",
|
|
123
|
+
"items-center",
|
|
124
|
+
"justify-center"
|
|
125
|
+
],
|
|
126
|
+
name: [
|
|
127
|
+
...translateCenterClasses,
|
|
128
|
+
"font-normal",
|
|
129
|
+
"text-center",
|
|
130
|
+
"text-inherit"
|
|
131
|
+
],
|
|
132
|
+
icon: [
|
|
133
|
+
...translateCenterClasses,
|
|
134
|
+
"flex",
|
|
135
|
+
"items-center",
|
|
136
|
+
"justify-center",
|
|
137
|
+
"text-inherit",
|
|
138
|
+
"w-full",
|
|
139
|
+
"h-full",
|
|
140
|
+
"opacity-30"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
variants: {
|
|
144
|
+
size: {
|
|
145
|
+
"2xs": {
|
|
146
|
+
root: "w-4 h-4 text-[8px]"
|
|
147
|
+
},
|
|
148
|
+
xs: {
|
|
149
|
+
root: "w-6 h-6 text-[10px]"
|
|
150
|
+
},
|
|
151
|
+
sm: {
|
|
152
|
+
root: "w-8 h-8 text-[11px]"
|
|
153
|
+
},
|
|
154
|
+
md: {
|
|
155
|
+
root: "w-10 h-10 text-[12px]"
|
|
156
|
+
},
|
|
157
|
+
lg: {
|
|
158
|
+
root: "w-14 h-14 text-[14px]"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
color: {
|
|
162
|
+
default: {
|
|
163
|
+
root: colorVariants.solid.default
|
|
164
|
+
},
|
|
165
|
+
primary: {
|
|
166
|
+
root: colorVariants.solid.primary
|
|
167
|
+
},
|
|
168
|
+
secondary: {
|
|
169
|
+
root: colorVariants.solid.secondary
|
|
170
|
+
},
|
|
171
|
+
success: {
|
|
172
|
+
root: colorVariants.solid.success
|
|
173
|
+
},
|
|
174
|
+
warning: {
|
|
175
|
+
root: colorVariants.solid.warning
|
|
176
|
+
},
|
|
177
|
+
destructive: {
|
|
178
|
+
root: colorVariants.solid.destructive
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
radius: {
|
|
182
|
+
none: {
|
|
183
|
+
root: "rounded-none"
|
|
184
|
+
},
|
|
185
|
+
sm: {
|
|
186
|
+
root: "rounded-sm"
|
|
187
|
+
},
|
|
188
|
+
md: {
|
|
189
|
+
root: "rounded-md"
|
|
190
|
+
},
|
|
191
|
+
lg: {
|
|
192
|
+
root: "rounded-lg"
|
|
193
|
+
},
|
|
194
|
+
full: {
|
|
195
|
+
root: "rounded-full"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
isBordered: {
|
|
199
|
+
true: {
|
|
200
|
+
root: "ring-2 ring-offset-2 ring-offset-background"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
isDisabled: {
|
|
204
|
+
true: {
|
|
205
|
+
root: "opacity-50"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
isInGroup: {
|
|
209
|
+
true: {
|
|
210
|
+
root: [
|
|
211
|
+
"-ms-2 hover:-translate-x-3 rtl:hover:translate-x-3 transition-transform",
|
|
212
|
+
"focus-visible:-translate-x-3 rtl:focus-visible:translate-x-3"
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
isInGridGroup: {
|
|
217
|
+
true: {
|
|
218
|
+
root: "m-0 hover:translate-x-0"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
defaultVariants: {
|
|
223
|
+
size: "md",
|
|
224
|
+
radius: "full",
|
|
225
|
+
color: "default"
|
|
226
|
+
},
|
|
227
|
+
compoundVariants: [
|
|
228
|
+
{
|
|
229
|
+
color: "default",
|
|
230
|
+
isBordered: true,
|
|
231
|
+
class: {
|
|
232
|
+
root: "ring-default"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
color: "primary",
|
|
237
|
+
isBordered: true,
|
|
238
|
+
class: {
|
|
239
|
+
root: "ring-primary"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
color: "secondary",
|
|
244
|
+
isBordered: true,
|
|
245
|
+
class: {
|
|
246
|
+
root: "ring-secondary"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
color: "success",
|
|
251
|
+
isBordered: true,
|
|
252
|
+
class: {
|
|
253
|
+
root: "ring-success"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
color: "warning",
|
|
258
|
+
isBordered: true,
|
|
259
|
+
class: {
|
|
260
|
+
root: "ring-warning"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
color: "destructive",
|
|
265
|
+
isBordered: true,
|
|
266
|
+
class: {
|
|
267
|
+
root: "ring-destructive"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
// src/components/skeleton-avatar.ts
|
|
274
|
+
var skeletonAvatar = (0, import_tailwind_variants2.tv)({
|
|
275
|
+
base: "rounded-full",
|
|
276
|
+
variants: {
|
|
277
|
+
size: {
|
|
278
|
+
"2xs": avatar.variants.size["2xs"].root,
|
|
279
|
+
xs: avatar.variants.size.xs.root,
|
|
280
|
+
sm: avatar.variants.size.sm.root,
|
|
281
|
+
md: avatar.variants.size.md.root,
|
|
282
|
+
lg: avatar.variants.size.lg.root
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
defaultVariants: {
|
|
286
|
+
size: avatar.defaultVariants.size
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
290
|
+
0 && (module.exports = {
|
|
291
|
+
skeletonAvatar
|
|
292
|
+
});
|
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ export { AccordionSlots, AccordionVariantProps, accordion } from './components/a
|
|
|
3
3
|
export { AlertDialogSlots, AlertDialogVariants, alertDialog } from './components/alert-dialog.mjs';
|
|
4
4
|
export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.mjs';
|
|
5
5
|
export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.mjs';
|
|
6
|
+
export { BlankStateSlots, BlankStateVariantProps, blankstate } from './components/blankstate.mjs';
|
|
6
7
|
export { ButtonVariantProps, button } from './components/button.mjs';
|
|
7
8
|
export { CalendarVariantProps, calendar } from './components/calendar.mjs';
|
|
8
9
|
export { CalloutVariantProps, callout } from './components/callout.mjs';
|
|
@@ -29,6 +30,7 @@ export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './component
|
|
|
29
30
|
export { SeparatorVariantProps, separator } from './components/separator.mjs';
|
|
30
31
|
export { SidebarMenuActionVariantProps, SidebarMenuButtonVariantProps, SidebarVariantProps, sidebar, sidebarMenuAction, sidebarMenuButton } from './components/sidebar.mjs';
|
|
31
32
|
export { skeleton } from './components/skeleton.mjs';
|
|
33
|
+
export { SkeletonAvatarVariantProps, skeletonAvatar } from './components/skeleton-avatar.mjs';
|
|
32
34
|
export { SpinnerVariants, spinner } from './components/spinner.mjs';
|
|
33
35
|
export { SplitPageLayoutVariantProps, splitPageLayout } from './components/split-page-layout.mjs';
|
|
34
36
|
export { TabNavSlots, TabNavVariantProps, tabNav } from './components/tab-nav.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { AccordionSlots, AccordionVariantProps, accordion } from './components/a
|
|
|
3
3
|
export { AlertDialogSlots, AlertDialogVariants, alertDialog } from './components/alert-dialog.js';
|
|
4
4
|
export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.js';
|
|
5
5
|
export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.js';
|
|
6
|
+
export { BlankStateSlots, BlankStateVariantProps, blankstate } from './components/blankstate.js';
|
|
6
7
|
export { ButtonVariantProps, button } from './components/button.js';
|
|
7
8
|
export { CalendarVariantProps, calendar } from './components/calendar.js';
|
|
8
9
|
export { CalloutVariantProps, callout } from './components/callout.js';
|
|
@@ -29,6 +30,7 @@ export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './component
|
|
|
29
30
|
export { SeparatorVariantProps, separator } from './components/separator.js';
|
|
30
31
|
export { SidebarMenuActionVariantProps, SidebarMenuButtonVariantProps, SidebarVariantProps, sidebar, sidebarMenuAction, sidebarMenuButton } from './components/sidebar.js';
|
|
31
32
|
export { skeleton } from './components/skeleton.js';
|
|
33
|
+
export { SkeletonAvatarVariantProps, skeletonAvatar } from './components/skeleton-avatar.js';
|
|
32
34
|
export { SpinnerVariants, spinner } from './components/spinner.js';
|
|
33
35
|
export { SplitPageLayoutVariantProps, splitPageLayout } from './components/split-page-layout.js';
|
|
34
36
|
export { TabNavSlots, TabNavVariantProps, tabNav } from './components/tab-nav.js';
|