@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dialog
3
- } from "./chunk-LAJQAXSV.mjs";
3
+ } from "./chunk-OJDCD74N.mjs";
4
4
 
5
5
  // src/components/drawer.ts
6
6
  import { tv } from "tailwind-variants";
@@ -0,0 +1,12 @@
1
+ // src/components/image-crop.ts
2
+ import { tv } from "tailwind-variants";
3
+ var imageCrop = tv({
4
+ slots: {
5
+ content: "max-h-[277px] max-w-full",
6
+ image: "size-fullcover"
7
+ }
8
+ });
9
+
10
+ export {
11
+ imageCrop
12
+ };
@@ -77,12 +77,20 @@ var dialog = tv({
77
77
  lg: {
78
78
  content: "rounded-lg"
79
79
  }
80
+ },
81
+ scrollBehavior: {
82
+ inside: {
83
+ body: "overflow-auto",
84
+ content: "max-h-[calc(100dvh-7.5rem)] isolate",
85
+ overlay: "overflow-hidden"
86
+ }
80
87
  }
81
88
  },
82
89
  defaultVariants: {
83
90
  size: "md",
84
91
  placement: "right",
85
- radius: "lg"
92
+ radius: "lg",
93
+ scrollBehavior: "inside"
86
94
  }
87
95
  });
88
96
 
@@ -0,0 +1,64 @@
1
+ // src/components/file-upload.ts
2
+ import { tv } from "tailwind-variants";
3
+ var avatarUpload = tv({
4
+ slots: {
5
+ root: "flex flex-col",
6
+ previewAndText: "",
7
+ previewContainer: "relative",
8
+ preview: [
9
+ "group/avatar relative cursor-pointer overflow-hidden border border-dashed transition-colors",
10
+ "border-muted-foreground/25 hover:border-muted-foreground/20",
11
+ "data-[dragging=true]:border-primary data-[dragging=true]:bg-primary/5",
12
+ "data-[hasimage=true]:border-solid"
13
+ ],
14
+ previewImg: "size-full object-cover aspect-square",
15
+ placeholderWrapper: "flex size-full items-center justify-center",
16
+ placeholder: "size-6 text-muted-foreground",
17
+ removeButton: "size-6 min-w-auto absolute end-0 top-0 rounded-full !px-0 bg-background",
18
+ instructionsContainer: "text-center space-y-0.5",
19
+ instructions: "text-sm text-muted-foreground",
20
+ acceptedFiles: "text-xs text-muted-foreground",
21
+ errorItem: "last:mb-0"
22
+ },
23
+ variants: {
24
+ size: {
25
+ sm: { preview: "h-16 w-16" },
26
+ md: { preview: "h-24 w-24" },
27
+ lg: { preview: "h-32 w-32" }
28
+ },
29
+ shape: {
30
+ circle: { preview: "rounded-full" },
31
+ square: { preview: "rounded-xl" }
32
+ },
33
+ orientation: {
34
+ vertical: {
35
+ root: "gap-4 items-center",
36
+ previewAndText: "flex flex-col items-center gap-3",
37
+ instructionsContainer: "text-center"
38
+ },
39
+ horizontal: {
40
+ root: "gap-4",
41
+ previewAndText: "flex items-center gap-4 sm:gap-6 md:gap-8",
42
+ instructionsContainer: "text-start"
43
+ }
44
+ }
45
+ },
46
+ compoundVariants: [
47
+ {
48
+ size: "lg",
49
+ orientation: "horizontal",
50
+ className: {
51
+ previewAndText: "gap-6 sm:gap-8"
52
+ }
53
+ }
54
+ ],
55
+ defaultVariants: {
56
+ shape: "circle",
57
+ size: "md",
58
+ orientation: "horizontal"
59
+ }
60
+ });
61
+
62
+ export {
63
+ avatarUpload
64
+ };
@@ -3,15 +3,16 @@ import { tv } from "tailwind-variants";
3
3
  var editorBasic = tv({
4
4
  slots: {
5
5
  root: [
6
- "grid grid-rows-[auto,1fr]",
6
+ "grid grid-rows-[auto,minmax(0,1fr)]",
7
7
  "h-full min-h-0 w-full min-w-0",
8
8
  "content-start isolate"
9
9
  ],
10
- toolbar: [
10
+ toolbarContainer: [
11
11
  "row-start-1 row-end-2",
12
12
  "flex items-center gap-0.5",
13
13
  "sticky top-0 z-10"
14
14
  ],
15
+ toolbar: "w-full",
15
16
  wrapper: [
16
17
  "row-start-2 row-end-3",
17
18
  "min-h-0 min-w-0",
@@ -19,9 +20,11 @@ var editorBasic = tv({
19
20
  // "h-[calc(100%-var(--spacing-editor-toolbar))]",
20
21
  ],
21
22
  content: [
22
- "w-full min-w-0 h-full min-h-0",
23
+ "w-full min-w-0",
24
+ "h-auto min-h-0",
23
25
  "[&_.tiptap.ProseMirror]:py-4",
24
- "[&_.tiptap.ProseMirror]:px-6"
26
+ "[&_.tiptap.ProseMirror]:px-6",
27
+ "[&_.tiptap.ProseMirror]:min-h-0"
25
28
  ],
26
29
  toolbarGroup: "flex items-center gap-0.5"
27
30
  },
@@ -30,13 +33,23 @@ var editorBasic = tv({
30
33
  // rounded toolbar, muted background
31
34
  default: {
32
35
  wrapper: ["border rounded-md"],
33
- toolbar: "rounded-md mb-2",
36
+ toolbarContainer: "rounded-md mb-2",
34
37
  content: ""
35
38
  },
36
39
  // document style, eg. document editor, fullpage etc pp
37
40
  document: {
38
41
  wrapper: "size-full overflow-auto",
39
42
  content: "size-full"
43
+ },
44
+ comment: {
45
+ root: "",
46
+ wrapper: [
47
+ "border rounded-md",
48
+ "max-h-[351lh]",
49
+ "max-h-[calc(35lh-var(--spacing-editor-toolbar,theme(space.10)))]"
50
+ ],
51
+ toolbarContainer: "rounded-md mb-2",
52
+ content: ""
40
53
  }
41
54
  }
42
55
  },
@@ -52,6 +52,13 @@ declare const dialog: tailwind_variants.TVReturnType<{
52
52
  content: string;
53
53
  };
54
54
  };
55
+ scrollBehavior: {
56
+ inside: {
57
+ body: string;
58
+ content: string;
59
+ overlay: string;
60
+ };
61
+ };
55
62
  }, {
56
63
  overlay: string[];
57
64
  content: string[];
@@ -113,6 +120,13 @@ declare const dialog: tailwind_variants.TVReturnType<{
113
120
  content: string;
114
121
  };
115
122
  };
123
+ scrollBehavior: {
124
+ inside: {
125
+ body: string;
126
+ content: string;
127
+ overlay: string;
128
+ };
129
+ };
116
130
  }, {
117
131
  overlay: string[];
118
132
  content: string[];
@@ -174,6 +188,13 @@ declare const dialog: tailwind_variants.TVReturnType<{
174
188
  content: string;
175
189
  };
176
190
  };
191
+ scrollBehavior: {
192
+ inside: {
193
+ body: string;
194
+ content: string;
195
+ overlay: string;
196
+ };
197
+ };
177
198
  }, {
178
199
  overlay: string[];
179
200
  content: string[];
@@ -52,6 +52,13 @@ declare const dialog: tailwind_variants.TVReturnType<{
52
52
  content: string;
53
53
  };
54
54
  };
55
+ scrollBehavior: {
56
+ inside: {
57
+ body: string;
58
+ content: string;
59
+ overlay: string;
60
+ };
61
+ };
55
62
  }, {
56
63
  overlay: string[];
57
64
  content: string[];
@@ -113,6 +120,13 @@ declare const dialog: tailwind_variants.TVReturnType<{
113
120
  content: string;
114
121
  };
115
122
  };
123
+ scrollBehavior: {
124
+ inside: {
125
+ body: string;
126
+ content: string;
127
+ overlay: string;
128
+ };
129
+ };
116
130
  }, {
117
131
  overlay: string[];
118
132
  content: string[];
@@ -174,6 +188,13 @@ declare const dialog: tailwind_variants.TVReturnType<{
174
188
  content: string;
175
189
  };
176
190
  };
191
+ scrollBehavior: {
192
+ inside: {
193
+ body: string;
194
+ content: string;
195
+ overlay: string;
196
+ };
197
+ };
177
198
  }, {
178
199
  overlay: string[];
179
200
  content: string[];
@@ -101,12 +101,20 @@ var dialog = (0, import_tailwind_variants.tv)({
101
101
  lg: {
102
102
  content: "rounded-lg"
103
103
  }
104
+ },
105
+ scrollBehavior: {
106
+ inside: {
107
+ body: "overflow-auto",
108
+ content: "max-h-[calc(100dvh-7.5rem)] isolate",
109
+ overlay: "overflow-hidden"
110
+ }
104
111
  }
105
112
  },
106
113
  defaultVariants: {
107
114
  size: "md",
108
115
  placement: "right",
109
- radius: "lg"
116
+ radius: "lg",
117
+ scrollBehavior: "inside"
110
118
  }
111
119
  });
112
120
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dialog
3
- } from "../chunk-LAJQAXSV.mjs";
3
+ } from "../chunk-OJDCD74N.mjs";
4
4
  export {
5
5
  dialog
6
6
  };
@@ -104,12 +104,20 @@ var dialog = (0, import_tailwind_variants.tv)({
104
104
  lg: {
105
105
  content: "rounded-lg"
106
106
  }
107
+ },
108
+ scrollBehavior: {
109
+ inside: {
110
+ body: "overflow-auto",
111
+ content: "max-h-[calc(100dvh-7.5rem)] isolate",
112
+ overlay: "overflow-hidden"
113
+ }
107
114
  }
108
115
  },
109
116
  defaultVariants: {
110
117
  size: "md",
111
118
  placement: "right",
112
- radius: "lg"
119
+ radius: "lg",
120
+ scrollBehavior: "inside"
113
121
  }
114
122
  });
115
123
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  drawer
3
- } from "../chunk-JXQPOORM.mjs";
4
- import "../chunk-LAJQAXSV.mjs";
3
+ } from "../chunk-7V3NMVQH.mjs";
4
+ import "../chunk-OJDCD74N.mjs";
5
5
  export {
6
6
  drawer
7
7
  };
@@ -5,17 +5,24 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
5
5
  variant: {
6
6
  default: {
7
7
  wrapper: string[];
8
- toolbar: string;
8
+ toolbarContainer: string;
9
9
  content: string;
10
10
  };
11
11
  document: {
12
12
  wrapper: string;
13
13
  content: string;
14
14
  };
15
+ comment: {
16
+ root: string;
17
+ wrapper: string[];
18
+ toolbarContainer: string;
19
+ content: string;
20
+ };
15
21
  };
16
22
  }, {
17
23
  root: string[];
18
- toolbar: string[];
24
+ toolbarContainer: string[];
25
+ toolbar: string;
19
26
  wrapper: string[];
20
27
  content: string[];
21
28
  toolbarGroup: string;
@@ -23,17 +30,24 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
23
30
  variant: {
24
31
  default: {
25
32
  wrapper: string[];
26
- toolbar: string;
33
+ toolbarContainer: string;
27
34
  content: string;
28
35
  };
29
36
  document: {
30
37
  wrapper: string;
31
38
  content: string;
32
39
  };
40
+ comment: {
41
+ root: string;
42
+ wrapper: string[];
43
+ toolbarContainer: string;
44
+ content: string;
45
+ };
33
46
  };
34
47
  }, {
35
48
  root: string[];
36
- toolbar: string[];
49
+ toolbarContainer: string[];
50
+ toolbar: string;
37
51
  wrapper: string[];
38
52
  content: string[];
39
53
  toolbarGroup: string;
@@ -41,17 +55,24 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
41
55
  variant: {
42
56
  default: {
43
57
  wrapper: string[];
44
- toolbar: string;
58
+ toolbarContainer: string;
45
59
  content: string;
46
60
  };
47
61
  document: {
48
62
  wrapper: string;
49
63
  content: string;
50
64
  };
65
+ comment: {
66
+ root: string;
67
+ wrapper: string[];
68
+ toolbarContainer: string;
69
+ content: string;
70
+ };
51
71
  };
52
72
  }, {
53
73
  root: string[];
54
- toolbar: string[];
74
+ toolbarContainer: string[];
75
+ toolbar: string;
55
76
  wrapper: string[];
56
77
  content: string[];
57
78
  toolbarGroup: string;
@@ -5,17 +5,24 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
5
5
  variant: {
6
6
  default: {
7
7
  wrapper: string[];
8
- toolbar: string;
8
+ toolbarContainer: string;
9
9
  content: string;
10
10
  };
11
11
  document: {
12
12
  wrapper: string;
13
13
  content: string;
14
14
  };
15
+ comment: {
16
+ root: string;
17
+ wrapper: string[];
18
+ toolbarContainer: string;
19
+ content: string;
20
+ };
15
21
  };
16
22
  }, {
17
23
  root: string[];
18
- toolbar: string[];
24
+ toolbarContainer: string[];
25
+ toolbar: string;
19
26
  wrapper: string[];
20
27
  content: string[];
21
28
  toolbarGroup: string;
@@ -23,17 +30,24 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
23
30
  variant: {
24
31
  default: {
25
32
  wrapper: string[];
26
- toolbar: string;
33
+ toolbarContainer: string;
27
34
  content: string;
28
35
  };
29
36
  document: {
30
37
  wrapper: string;
31
38
  content: string;
32
39
  };
40
+ comment: {
41
+ root: string;
42
+ wrapper: string[];
43
+ toolbarContainer: string;
44
+ content: string;
45
+ };
33
46
  };
34
47
  }, {
35
48
  root: string[];
36
- toolbar: string[];
49
+ toolbarContainer: string[];
50
+ toolbar: string;
37
51
  wrapper: string[];
38
52
  content: string[];
39
53
  toolbarGroup: string;
@@ -41,17 +55,24 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
41
55
  variant: {
42
56
  default: {
43
57
  wrapper: string[];
44
- toolbar: string;
58
+ toolbarContainer: string;
45
59
  content: string;
46
60
  };
47
61
  document: {
48
62
  wrapper: string;
49
63
  content: string;
50
64
  };
65
+ comment: {
66
+ root: string;
67
+ wrapper: string[];
68
+ toolbarContainer: string;
69
+ content: string;
70
+ };
51
71
  };
52
72
  }, {
53
73
  root: string[];
54
- toolbar: string[];
74
+ toolbarContainer: string[];
75
+ toolbar: string;
55
76
  wrapper: string[];
56
77
  content: string[];
57
78
  toolbarGroup: string;
@@ -27,15 +27,16 @@ var import_tailwind_variants = require("tailwind-variants");
27
27
  var editorBasic = (0, import_tailwind_variants.tv)({
28
28
  slots: {
29
29
  root: [
30
- "grid grid-rows-[auto,1fr]",
30
+ "grid grid-rows-[auto,minmax(0,1fr)]",
31
31
  "h-full min-h-0 w-full min-w-0",
32
32
  "content-start isolate"
33
33
  ],
34
- toolbar: [
34
+ toolbarContainer: [
35
35
  "row-start-1 row-end-2",
36
36
  "flex items-center gap-0.5",
37
37
  "sticky top-0 z-10"
38
38
  ],
39
+ toolbar: "w-full",
39
40
  wrapper: [
40
41
  "row-start-2 row-end-3",
41
42
  "min-h-0 min-w-0",
@@ -43,9 +44,11 @@ var editorBasic = (0, import_tailwind_variants.tv)({
43
44
  // "h-[calc(100%-var(--spacing-editor-toolbar))]",
44
45
  ],
45
46
  content: [
46
- "w-full min-w-0 h-full min-h-0",
47
+ "w-full min-w-0",
48
+ "h-auto min-h-0",
47
49
  "[&_.tiptap.ProseMirror]:py-4",
48
- "[&_.tiptap.ProseMirror]:px-6"
50
+ "[&_.tiptap.ProseMirror]:px-6",
51
+ "[&_.tiptap.ProseMirror]:min-h-0"
49
52
  ],
50
53
  toolbarGroup: "flex items-center gap-0.5"
51
54
  },
@@ -54,13 +57,23 @@ var editorBasic = (0, import_tailwind_variants.tv)({
54
57
  // rounded toolbar, muted background
55
58
  default: {
56
59
  wrapper: ["border rounded-md"],
57
- toolbar: "rounded-md mb-2",
60
+ toolbarContainer: "rounded-md mb-2",
58
61
  content: ""
59
62
  },
60
63
  // document style, eg. document editor, fullpage etc pp
61
64
  document: {
62
65
  wrapper: "size-full overflow-auto",
63
66
  content: "size-full"
67
+ },
68
+ comment: {
69
+ root: "",
70
+ wrapper: [
71
+ "border rounded-md",
72
+ "max-h-[351lh]",
73
+ "max-h-[calc(35lh-var(--spacing-editor-toolbar,theme(space.10)))]"
74
+ ],
75
+ toolbarContainer: "rounded-md mb-2",
76
+ content: ""
64
77
  }
65
78
  }
66
79
  },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  editorBasic
3
- } from "../chunk-NUEQ5FLX.mjs";
3
+ } from "../chunk-XOL7P7NP.mjs";
4
4
  export {
5
5
  editorBasic
6
6
  };
@@ -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 };