@kopexa/theme 17.10.0 → 17.11.1
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-7Q2RNHL5.mjs → chunk-RGZCKQNI.mjs} +1 -1
- package/dist/chunk-VO435JJ5.mjs +62 -0
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/button.mjs +2 -2
- package/dist/components/image-placeholder.d.mts +139 -0
- package/dist/components/image-placeholder.d.ts +139 -0
- package/dist/components/image-placeholder.js +86 -0
- package/dist/components/image-placeholder.mjs +6 -0
- package/dist/components/index.d.mts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +135 -74
- package/dist/components/index.mjs +74 -70
- package/dist/components/skeleton-avatar.mjs +3 -3
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +135 -74
- package/dist/index.mjs +75 -71
- package/package.json +2 -2
- package/dist/{chunk-YLLRX2LS.mjs → chunk-6RCNFPIU.mjs} +0 -0
- package/dist/{chunk-OTETLRUE.mjs → chunk-GNJCCXFJ.mjs} +3 -3
- package/dist/{chunk-D5FKEY7B.mjs → chunk-VPA2TZYQ.mjs} +3 -3
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// src/components/image-placeholder.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var imagePlaceholder = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: [
|
|
6
|
+
"relative flex items-center justify-center",
|
|
7
|
+
"rounded-lg border-2 border-dashed",
|
|
8
|
+
"transition-colors cursor-pointer"
|
|
9
|
+
],
|
|
10
|
+
content: "flex flex-col items-center gap-2 pointer-events-none",
|
|
11
|
+
icon: "text-muted-foreground",
|
|
12
|
+
text: "text-muted-foreground",
|
|
13
|
+
hint: "text-muted-foreground",
|
|
14
|
+
removeButton: "absolute top-2 right-2"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
sm: {
|
|
19
|
+
root: "min-h-24 py-4 px-6",
|
|
20
|
+
icon: "size-6",
|
|
21
|
+
text: "text-xs",
|
|
22
|
+
hint: "text-[10px]"
|
|
23
|
+
},
|
|
24
|
+
md: {
|
|
25
|
+
root: "min-h-32 py-6 px-8",
|
|
26
|
+
icon: "size-8",
|
|
27
|
+
text: "text-sm",
|
|
28
|
+
hint: "text-xs"
|
|
29
|
+
},
|
|
30
|
+
lg: {
|
|
31
|
+
root: "min-h-40 py-8 px-10",
|
|
32
|
+
icon: "size-10",
|
|
33
|
+
text: "text-base",
|
|
34
|
+
hint: "text-sm"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
variant: {
|
|
38
|
+
default: {
|
|
39
|
+
root: "border-border bg-muted/20 hover:border-primary/50 hover:bg-muted/40"
|
|
40
|
+
},
|
|
41
|
+
error: {
|
|
42
|
+
root: "border-destructive/50 bg-destructive/10 cursor-default",
|
|
43
|
+
icon: "text-destructive",
|
|
44
|
+
text: "text-destructive"
|
|
45
|
+
},
|
|
46
|
+
disabled: {
|
|
47
|
+
root: "border-border bg-muted/10 cursor-not-allowed opacity-60"
|
|
48
|
+
},
|
|
49
|
+
uploading: {
|
|
50
|
+
root: "border-border bg-muted/30 cursor-wait"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
defaultVariants: {
|
|
55
|
+
size: "md",
|
|
56
|
+
variant: "default"
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
imagePlaceholder
|
|
62
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const imagePlaceholder: tailwind_variants.TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
sm: {
|
|
7
|
+
root: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
text: string;
|
|
10
|
+
hint: string;
|
|
11
|
+
};
|
|
12
|
+
md: {
|
|
13
|
+
root: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
text: string;
|
|
16
|
+
hint: string;
|
|
17
|
+
};
|
|
18
|
+
lg: {
|
|
19
|
+
root: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
text: string;
|
|
22
|
+
hint: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
variant: {
|
|
26
|
+
default: {
|
|
27
|
+
root: string;
|
|
28
|
+
};
|
|
29
|
+
error: {
|
|
30
|
+
root: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
text: string;
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
root: string;
|
|
36
|
+
};
|
|
37
|
+
uploading: {
|
|
38
|
+
root: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
root: string[];
|
|
43
|
+
content: string;
|
|
44
|
+
icon: string;
|
|
45
|
+
text: string;
|
|
46
|
+
hint: string;
|
|
47
|
+
removeButton: string;
|
|
48
|
+
}, undefined, {
|
|
49
|
+
size: {
|
|
50
|
+
sm: {
|
|
51
|
+
root: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
text: string;
|
|
54
|
+
hint: string;
|
|
55
|
+
};
|
|
56
|
+
md: {
|
|
57
|
+
root: string;
|
|
58
|
+
icon: string;
|
|
59
|
+
text: string;
|
|
60
|
+
hint: string;
|
|
61
|
+
};
|
|
62
|
+
lg: {
|
|
63
|
+
root: string;
|
|
64
|
+
icon: string;
|
|
65
|
+
text: string;
|
|
66
|
+
hint: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
variant: {
|
|
70
|
+
default: {
|
|
71
|
+
root: string;
|
|
72
|
+
};
|
|
73
|
+
error: {
|
|
74
|
+
root: string;
|
|
75
|
+
icon: string;
|
|
76
|
+
text: string;
|
|
77
|
+
};
|
|
78
|
+
disabled: {
|
|
79
|
+
root: string;
|
|
80
|
+
};
|
|
81
|
+
uploading: {
|
|
82
|
+
root: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
root: string[];
|
|
87
|
+
content: string;
|
|
88
|
+
icon: string;
|
|
89
|
+
text: string;
|
|
90
|
+
hint: string;
|
|
91
|
+
removeButton: string;
|
|
92
|
+
}, tailwind_variants.TVReturnType<{
|
|
93
|
+
size: {
|
|
94
|
+
sm: {
|
|
95
|
+
root: string;
|
|
96
|
+
icon: string;
|
|
97
|
+
text: string;
|
|
98
|
+
hint: string;
|
|
99
|
+
};
|
|
100
|
+
md: {
|
|
101
|
+
root: string;
|
|
102
|
+
icon: string;
|
|
103
|
+
text: string;
|
|
104
|
+
hint: string;
|
|
105
|
+
};
|
|
106
|
+
lg: {
|
|
107
|
+
root: string;
|
|
108
|
+
icon: string;
|
|
109
|
+
text: string;
|
|
110
|
+
hint: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
variant: {
|
|
114
|
+
default: {
|
|
115
|
+
root: string;
|
|
116
|
+
};
|
|
117
|
+
error: {
|
|
118
|
+
root: string;
|
|
119
|
+
icon: string;
|
|
120
|
+
text: string;
|
|
121
|
+
};
|
|
122
|
+
disabled: {
|
|
123
|
+
root: string;
|
|
124
|
+
};
|
|
125
|
+
uploading: {
|
|
126
|
+
root: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
root: string[];
|
|
131
|
+
content: string;
|
|
132
|
+
icon: string;
|
|
133
|
+
text: string;
|
|
134
|
+
hint: string;
|
|
135
|
+
removeButton: string;
|
|
136
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
137
|
+
type ImagePlaceholderVariantProps = VariantProps<typeof imagePlaceholder>;
|
|
138
|
+
|
|
139
|
+
export { type ImagePlaceholderVariantProps, imagePlaceholder };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const imagePlaceholder: tailwind_variants.TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
sm: {
|
|
7
|
+
root: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
text: string;
|
|
10
|
+
hint: string;
|
|
11
|
+
};
|
|
12
|
+
md: {
|
|
13
|
+
root: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
text: string;
|
|
16
|
+
hint: string;
|
|
17
|
+
};
|
|
18
|
+
lg: {
|
|
19
|
+
root: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
text: string;
|
|
22
|
+
hint: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
variant: {
|
|
26
|
+
default: {
|
|
27
|
+
root: string;
|
|
28
|
+
};
|
|
29
|
+
error: {
|
|
30
|
+
root: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
text: string;
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
root: string;
|
|
36
|
+
};
|
|
37
|
+
uploading: {
|
|
38
|
+
root: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
root: string[];
|
|
43
|
+
content: string;
|
|
44
|
+
icon: string;
|
|
45
|
+
text: string;
|
|
46
|
+
hint: string;
|
|
47
|
+
removeButton: string;
|
|
48
|
+
}, undefined, {
|
|
49
|
+
size: {
|
|
50
|
+
sm: {
|
|
51
|
+
root: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
text: string;
|
|
54
|
+
hint: string;
|
|
55
|
+
};
|
|
56
|
+
md: {
|
|
57
|
+
root: string;
|
|
58
|
+
icon: string;
|
|
59
|
+
text: string;
|
|
60
|
+
hint: string;
|
|
61
|
+
};
|
|
62
|
+
lg: {
|
|
63
|
+
root: string;
|
|
64
|
+
icon: string;
|
|
65
|
+
text: string;
|
|
66
|
+
hint: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
variant: {
|
|
70
|
+
default: {
|
|
71
|
+
root: string;
|
|
72
|
+
};
|
|
73
|
+
error: {
|
|
74
|
+
root: string;
|
|
75
|
+
icon: string;
|
|
76
|
+
text: string;
|
|
77
|
+
};
|
|
78
|
+
disabled: {
|
|
79
|
+
root: string;
|
|
80
|
+
};
|
|
81
|
+
uploading: {
|
|
82
|
+
root: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
root: string[];
|
|
87
|
+
content: string;
|
|
88
|
+
icon: string;
|
|
89
|
+
text: string;
|
|
90
|
+
hint: string;
|
|
91
|
+
removeButton: string;
|
|
92
|
+
}, tailwind_variants.TVReturnType<{
|
|
93
|
+
size: {
|
|
94
|
+
sm: {
|
|
95
|
+
root: string;
|
|
96
|
+
icon: string;
|
|
97
|
+
text: string;
|
|
98
|
+
hint: string;
|
|
99
|
+
};
|
|
100
|
+
md: {
|
|
101
|
+
root: string;
|
|
102
|
+
icon: string;
|
|
103
|
+
text: string;
|
|
104
|
+
hint: string;
|
|
105
|
+
};
|
|
106
|
+
lg: {
|
|
107
|
+
root: string;
|
|
108
|
+
icon: string;
|
|
109
|
+
text: string;
|
|
110
|
+
hint: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
variant: {
|
|
114
|
+
default: {
|
|
115
|
+
root: string;
|
|
116
|
+
};
|
|
117
|
+
error: {
|
|
118
|
+
root: string;
|
|
119
|
+
icon: string;
|
|
120
|
+
text: string;
|
|
121
|
+
};
|
|
122
|
+
disabled: {
|
|
123
|
+
root: string;
|
|
124
|
+
};
|
|
125
|
+
uploading: {
|
|
126
|
+
root: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
root: string[];
|
|
131
|
+
content: string;
|
|
132
|
+
icon: string;
|
|
133
|
+
text: string;
|
|
134
|
+
hint: string;
|
|
135
|
+
removeButton: string;
|
|
136
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
137
|
+
type ImagePlaceholderVariantProps = VariantProps<typeof imagePlaceholder>;
|
|
138
|
+
|
|
139
|
+
export { type ImagePlaceholderVariantProps, imagePlaceholder };
|
|
@@ -0,0 +1,86 @@
|
|
|
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/image-placeholder.ts
|
|
21
|
+
var image_placeholder_exports = {};
|
|
22
|
+
__export(image_placeholder_exports, {
|
|
23
|
+
imagePlaceholder: () => imagePlaceholder
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(image_placeholder_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var imagePlaceholder = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
root: [
|
|
30
|
+
"relative flex items-center justify-center",
|
|
31
|
+
"rounded-lg border-2 border-dashed",
|
|
32
|
+
"transition-colors cursor-pointer"
|
|
33
|
+
],
|
|
34
|
+
content: "flex flex-col items-center gap-2 pointer-events-none",
|
|
35
|
+
icon: "text-muted-foreground",
|
|
36
|
+
text: "text-muted-foreground",
|
|
37
|
+
hint: "text-muted-foreground",
|
|
38
|
+
removeButton: "absolute top-2 right-2"
|
|
39
|
+
},
|
|
40
|
+
variants: {
|
|
41
|
+
size: {
|
|
42
|
+
sm: {
|
|
43
|
+
root: "min-h-24 py-4 px-6",
|
|
44
|
+
icon: "size-6",
|
|
45
|
+
text: "text-xs",
|
|
46
|
+
hint: "text-[10px]"
|
|
47
|
+
},
|
|
48
|
+
md: {
|
|
49
|
+
root: "min-h-32 py-6 px-8",
|
|
50
|
+
icon: "size-8",
|
|
51
|
+
text: "text-sm",
|
|
52
|
+
hint: "text-xs"
|
|
53
|
+
},
|
|
54
|
+
lg: {
|
|
55
|
+
root: "min-h-40 py-8 px-10",
|
|
56
|
+
icon: "size-10",
|
|
57
|
+
text: "text-base",
|
|
58
|
+
hint: "text-sm"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
variant: {
|
|
62
|
+
default: {
|
|
63
|
+
root: "border-border bg-muted/20 hover:border-primary/50 hover:bg-muted/40"
|
|
64
|
+
},
|
|
65
|
+
error: {
|
|
66
|
+
root: "border-destructive/50 bg-destructive/10 cursor-default",
|
|
67
|
+
icon: "text-destructive",
|
|
68
|
+
text: "text-destructive"
|
|
69
|
+
},
|
|
70
|
+
disabled: {
|
|
71
|
+
root: "border-border bg-muted/10 cursor-not-allowed opacity-60"
|
|
72
|
+
},
|
|
73
|
+
uploading: {
|
|
74
|
+
root: "border-border bg-muted/30 cursor-wait"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
defaultVariants: {
|
|
79
|
+
size: "md",
|
|
80
|
+
variant: "default"
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
+
0 && (module.exports = {
|
|
85
|
+
imagePlaceholder
|
|
86
|
+
});
|
|
@@ -30,6 +30,7 @@ export { frameworkRow } from './framework-row.mjs';
|
|
|
30
30
|
export { HeadingVariantProps, heading } from './heading.mjs';
|
|
31
31
|
export { HoverCardSlots, HoverCardVariantProps, hoverCard } from './hover-card.mjs';
|
|
32
32
|
export { imageCrop } from './image-crop.mjs';
|
|
33
|
+
export { ImagePlaceholderVariantProps, imagePlaceholder } from './image-placeholder.mjs';
|
|
33
34
|
export { ImpactCardSlots, ImpactCardVariantProps, impactCard } from './impact-card.mjs';
|
|
34
35
|
export { InputVariantProps, input, passwordInput } from './input.mjs';
|
|
35
36
|
export { inputGroup } from './input-group.mjs';
|
|
@@ -30,6 +30,7 @@ export { frameworkRow } from './framework-row.js';
|
|
|
30
30
|
export { HeadingVariantProps, heading } from './heading.js';
|
|
31
31
|
export { HoverCardSlots, HoverCardVariantProps, hoverCard } from './hover-card.js';
|
|
32
32
|
export { imageCrop } from './image-crop.js';
|
|
33
|
+
export { ImagePlaceholderVariantProps, imagePlaceholder } from './image-placeholder.js';
|
|
33
34
|
export { ImpactCardSlots, ImpactCardVariantProps, impactCard } from './impact-card.js';
|
|
34
35
|
export { InputVariantProps, input, passwordInput } from './input.js';
|
|
35
36
|
export { inputGroup } from './input-group.js';
|