@kopexa/theme 13.0.2 → 14.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.
@@ -0,0 +1,143 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const avatarUpload: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ sm: {
7
+ preview: string;
8
+ };
9
+ md: {
10
+ preview: string;
11
+ };
12
+ lg: {
13
+ preview: string;
14
+ };
15
+ };
16
+ shape: {
17
+ circle: {
18
+ preview: string;
19
+ };
20
+ square: {
21
+ preview: string;
22
+ };
23
+ };
24
+ orientation: {
25
+ vertical: {
26
+ root: string;
27
+ previewAndText: string;
28
+ instructionsContainer: string;
29
+ };
30
+ horizontal: {
31
+ root: string;
32
+ previewAndText: string;
33
+ instructionsContainer: string;
34
+ };
35
+ };
36
+ }, {
37
+ root: string;
38
+ previewAndText: string;
39
+ previewContainer: string;
40
+ preview: string[];
41
+ previewImg: string;
42
+ placeholderWrapper: string;
43
+ placeholder: string;
44
+ removeButton: string;
45
+ instructionsContainer: string;
46
+ instructions: string;
47
+ acceptedFiles: string;
48
+ errorItem: string;
49
+ }, undefined, {
50
+ size: {
51
+ sm: {
52
+ preview: string;
53
+ };
54
+ md: {
55
+ preview: string;
56
+ };
57
+ lg: {
58
+ preview: string;
59
+ };
60
+ };
61
+ shape: {
62
+ circle: {
63
+ preview: string;
64
+ };
65
+ square: {
66
+ preview: string;
67
+ };
68
+ };
69
+ orientation: {
70
+ vertical: {
71
+ root: string;
72
+ previewAndText: string;
73
+ instructionsContainer: string;
74
+ };
75
+ horizontal: {
76
+ root: string;
77
+ previewAndText: string;
78
+ instructionsContainer: string;
79
+ };
80
+ };
81
+ }, {
82
+ root: string;
83
+ previewAndText: string;
84
+ previewContainer: string;
85
+ preview: string[];
86
+ previewImg: string;
87
+ placeholderWrapper: string;
88
+ placeholder: string;
89
+ removeButton: string;
90
+ instructionsContainer: string;
91
+ instructions: string;
92
+ acceptedFiles: string;
93
+ errorItem: string;
94
+ }, tailwind_variants.TVReturnType<{
95
+ size: {
96
+ sm: {
97
+ preview: string;
98
+ };
99
+ md: {
100
+ preview: string;
101
+ };
102
+ lg: {
103
+ preview: string;
104
+ };
105
+ };
106
+ shape: {
107
+ circle: {
108
+ preview: string;
109
+ };
110
+ square: {
111
+ preview: string;
112
+ };
113
+ };
114
+ orientation: {
115
+ vertical: {
116
+ root: string;
117
+ previewAndText: string;
118
+ instructionsContainer: string;
119
+ };
120
+ horizontal: {
121
+ root: string;
122
+ previewAndText: string;
123
+ instructionsContainer: string;
124
+ };
125
+ };
126
+ }, {
127
+ root: string;
128
+ previewAndText: string;
129
+ previewContainer: string;
130
+ preview: string[];
131
+ previewImg: string;
132
+ placeholderWrapper: string;
133
+ placeholder: string;
134
+ removeButton: string;
135
+ instructionsContainer: string;
136
+ instructions: string;
137
+ acceptedFiles: string;
138
+ errorItem: string;
139
+ }, undefined, unknown, unknown, undefined>>;
140
+ type AvatarUploadVariants = VariantProps<typeof avatarUpload>;
141
+ type AvatarUploadSlots = keyof ReturnType<typeof avatarUpload>;
142
+
143
+ export { type AvatarUploadSlots, type AvatarUploadVariants, avatarUpload };
@@ -0,0 +1,88 @@
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/file-upload.ts
21
+ var file_upload_exports = {};
22
+ __export(file_upload_exports, {
23
+ avatarUpload: () => avatarUpload
24
+ });
25
+ module.exports = __toCommonJS(file_upload_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var avatarUpload = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ root: "flex flex-col",
30
+ previewAndText: "",
31
+ previewContainer: "relative",
32
+ preview: [
33
+ "group/avatar relative cursor-pointer overflow-hidden border border-dashed transition-colors",
34
+ "border-muted-foreground/25 hover:border-muted-foreground/20",
35
+ "data-[dragging=true]:border-primary data-[dragging=true]:bg-primary/5",
36
+ "data-[hasimage=true]:border-solid"
37
+ ],
38
+ previewImg: "size-full object-cover aspect-square",
39
+ placeholderWrapper: "flex size-full items-center justify-center",
40
+ placeholder: "size-6 text-muted-foreground",
41
+ removeButton: "size-6 min-w-auto absolute end-0 top-0 rounded-full !px-0 bg-background",
42
+ instructionsContainer: "text-center space-y-0.5",
43
+ instructions: "text-sm text-muted-foreground",
44
+ acceptedFiles: "text-xs text-muted-foreground",
45
+ errorItem: "last:mb-0"
46
+ },
47
+ variants: {
48
+ size: {
49
+ sm: { preview: "h-16 w-16" },
50
+ md: { preview: "h-24 w-24" },
51
+ lg: { preview: "h-32 w-32" }
52
+ },
53
+ shape: {
54
+ circle: { preview: "rounded-full" },
55
+ square: { preview: "rounded-xl" }
56
+ },
57
+ orientation: {
58
+ vertical: {
59
+ root: "gap-4 items-center",
60
+ previewAndText: "flex flex-col items-center gap-3",
61
+ instructionsContainer: "text-center"
62
+ },
63
+ horizontal: {
64
+ root: "gap-4",
65
+ previewAndText: "flex items-center gap-4 sm:gap-6 md:gap-8",
66
+ instructionsContainer: "text-start"
67
+ }
68
+ }
69
+ },
70
+ compoundVariants: [
71
+ {
72
+ size: "lg",
73
+ orientation: "horizontal",
74
+ className: {
75
+ previewAndText: "gap-6 sm:gap-8"
76
+ }
77
+ }
78
+ ],
79
+ defaultVariants: {
80
+ shape: "circle",
81
+ size: "md",
82
+ orientation: "horizontal"
83
+ }
84
+ });
85
+ // Annotate the CommonJS export names for ESM import in node:
86
+ 0 && (module.exports = {
87
+ avatarUpload
88
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ avatarUpload
3
+ } from "../chunk-QGL2OK4B.mjs";
4
+ export {
5
+ avatarUpload
6
+ };
@@ -0,0 +1,36 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import * as tailwind_merge from 'tailwind-merge';
3
+
4
+ declare const imageCrop: tailwind_variants.TVReturnType<{
5
+ [key: string]: {
6
+ [key: string]: tailwind_merge.ClassNameValue | {
7
+ content?: tailwind_merge.ClassNameValue;
8
+ image?: tailwind_merge.ClassNameValue;
9
+ };
10
+ };
11
+ } | {
12
+ [x: string]: {
13
+ [x: string]: tailwind_merge.ClassNameValue | {
14
+ content?: tailwind_merge.ClassNameValue;
15
+ image?: tailwind_merge.ClassNameValue;
16
+ };
17
+ };
18
+ } | {}, {
19
+ content: string;
20
+ image: string;
21
+ }, undefined, {
22
+ [key: string]: {
23
+ [key: string]: tailwind_merge.ClassNameValue | {
24
+ content?: tailwind_merge.ClassNameValue;
25
+ image?: tailwind_merge.ClassNameValue;
26
+ };
27
+ };
28
+ } | {}, {
29
+ content: string;
30
+ image: string;
31
+ }, tailwind_variants.TVReturnType<unknown, {
32
+ content: string;
33
+ image: string;
34
+ }, undefined, unknown, unknown, undefined>>;
35
+
36
+ export { imageCrop };
@@ -0,0 +1,36 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import * as tailwind_merge from 'tailwind-merge';
3
+
4
+ declare const imageCrop: tailwind_variants.TVReturnType<{
5
+ [key: string]: {
6
+ [key: string]: tailwind_merge.ClassNameValue | {
7
+ content?: tailwind_merge.ClassNameValue;
8
+ image?: tailwind_merge.ClassNameValue;
9
+ };
10
+ };
11
+ } | {
12
+ [x: string]: {
13
+ [x: string]: tailwind_merge.ClassNameValue | {
14
+ content?: tailwind_merge.ClassNameValue;
15
+ image?: tailwind_merge.ClassNameValue;
16
+ };
17
+ };
18
+ } | {}, {
19
+ content: string;
20
+ image: string;
21
+ }, undefined, {
22
+ [key: string]: {
23
+ [key: string]: tailwind_merge.ClassNameValue | {
24
+ content?: tailwind_merge.ClassNameValue;
25
+ image?: tailwind_merge.ClassNameValue;
26
+ };
27
+ };
28
+ } | {}, {
29
+ content: string;
30
+ image: string;
31
+ }, tailwind_variants.TVReturnType<unknown, {
32
+ content: string;
33
+ image: string;
34
+ }, undefined, unknown, unknown, undefined>>;
35
+
36
+ export { imageCrop };
@@ -0,0 +1,36 @@
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-crop.ts
21
+ var image_crop_exports = {};
22
+ __export(image_crop_exports, {
23
+ imageCrop: () => imageCrop
24
+ });
25
+ module.exports = __toCommonJS(image_crop_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var imageCrop = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ content: "max-h-[277px] max-w-full",
30
+ image: "size-fullcover"
31
+ }
32
+ });
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ imageCrop
36
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ imageCrop
3
+ } from "../chunk-GMFZLUU4.mjs";
4
+ export {
5
+ imageCrop
6
+ };
@@ -22,9 +22,11 @@ export { DrawerVariantProps, drawer } from './drawer.mjs';
22
22
  export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.mjs';
23
23
  export { EditorBasicVariants, editorBasic } from './editor-basic.mjs';
24
24
  export { editorSpinner } from './editor-spinner.mjs';
25
+ export { AvatarUploadSlots, AvatarUploadVariants, avatarUpload } from './file-upload.mjs';
25
26
  export { frameworkRow } from './framework-row.mjs';
26
27
  export { HeadingVariantProps, heading } from './heading.mjs';
27
28
  export { HoverCardSlots, HoverCardVariantProps, hoverCard } from './hover-card.mjs';
29
+ export { imageCrop } from './image-crop.mjs';
28
30
  export { InputVariantProps, input, passwordInput } from './input.mjs';
29
31
  export { inputGroup } from './input-group.mjs';
30
32
  export { InputWrapperVariantProps, inputWrapper } from './input-wrapper.mjs';
@@ -22,9 +22,11 @@ export { DrawerVariantProps, drawer } from './drawer.js';
22
22
  export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.js';
23
23
  export { EditorBasicVariants, editorBasic } from './editor-basic.js';
24
24
  export { editorSpinner } from './editor-spinner.js';
25
+ export { AvatarUploadSlots, AvatarUploadVariants, avatarUpload } from './file-upload.js';
25
26
  export { frameworkRow } from './framework-row.js';
26
27
  export { HeadingVariantProps, heading } from './heading.js';
27
28
  export { HoverCardSlots, HoverCardVariantProps, hoverCard } from './hover-card.js';
29
+ export { imageCrop } from './image-crop.js';
28
30
  export { InputVariantProps, input, passwordInput } from './input.js';
29
31
  export { inputGroup } from './input-group.js';
30
32
  export { InputWrapperVariantProps, inputWrapper } from './input-wrapper.js';