@kopexa/theme 2.0.0 → 13.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.
Files changed (84) hide show
  1. package/dist/{chunk-NFOF75HQ.mjs → chunk-2N3PG3TK.mjs} +1 -1
  2. package/dist/chunk-2NA54PNL.mjs +43 -0
  3. package/dist/{chunk-7O57EDVS.mjs → chunk-63C4SFQK.mjs} +20 -10
  4. package/dist/{chunk-5DOB3IBE.mjs → chunk-6IZPAS4O.mjs} +5 -0
  5. package/dist/{chunk-GA6UOB2D.mjs → chunk-7POAXCN2.mjs} +1 -1
  6. package/dist/{chunk-XAHAVJUM.mjs → chunk-A3F4CV54.mjs} +8 -1
  7. package/dist/{chunk-M3GQ563Q.mjs → chunk-ARLLAC5V.mjs} +1 -1
  8. package/dist/{chunk-Z7D56R5U.mjs → chunk-CWAFYX5G.mjs} +2 -2
  9. package/dist/{chunk-IHITEH7V.mjs → chunk-IX46TOS3.mjs} +1 -1
  10. package/dist/{chunk-IHW4FWFB.mjs → chunk-K3EVZATS.mjs} +1 -1
  11. package/dist/chunk-M4TXKRUU.mjs +7 -0
  12. package/dist/{chunk-URGRCBNW.mjs → chunk-NNKYGAZC.mjs} +1 -1
  13. package/dist/chunk-NUEQ5FLX.mjs +50 -0
  14. package/dist/{chunk-HHOMDBMZ.mjs → chunk-SYYY32OX.mjs} +1 -1
  15. package/dist/{chunk-DI54XTS5.mjs → chunk-TQVRNEIH.mjs} +1 -1
  16. package/dist/chunk-URVHE3OS.mjs +119 -0
  17. package/dist/{chunk-XRKUQMGU.mjs → chunk-UTCVHVWF.mjs} +1 -1
  18. package/dist/{chunk-YH6TDPK7.mjs → chunk-VDMXPFII.mjs} +1 -1
  19. package/dist/chunk-WQ446TVH.mjs +39 -0
  20. package/dist/components/autocomplete.js +5 -0
  21. package/dist/components/autocomplete.mjs +3 -3
  22. package/dist/components/avatar.mjs +2 -2
  23. package/dist/components/button.mjs +2 -2
  24. package/dist/components/callout.d.mts +18 -0
  25. package/dist/components/callout.d.ts +18 -0
  26. package/dist/components/callout.js +8 -1
  27. package/dist/components/callout.mjs +1 -1
  28. package/dist/components/card.d.mts +27 -0
  29. package/dist/components/card.d.ts +27 -0
  30. package/dist/components/card.js +20 -10
  31. package/dist/components/card.mjs +1 -1
  32. package/dist/components/combobox.d.mts +142 -0
  33. package/dist/components/combobox.d.ts +142 -0
  34. package/dist/components/combobox.js +228 -0
  35. package/dist/components/combobox.mjs +8 -0
  36. package/dist/components/command.d.mts +3 -3
  37. package/dist/components/command.d.ts +3 -3
  38. package/dist/components/control-extension.d.mts +5 -0
  39. package/dist/components/control-extension.d.ts +5 -0
  40. package/dist/components/control-extension.js +31 -0
  41. package/dist/components/control-extension.mjs +6 -0
  42. package/dist/components/editor-basic.d.mts +21 -4
  43. package/dist/components/editor-basic.d.ts +21 -4
  44. package/dist/components/editor-basic.js +21 -5
  45. package/dist/components/editor-basic.mjs +1 -1
  46. package/dist/components/hover-card.mjs +2 -2
  47. package/dist/components/index.d.mts +4 -1
  48. package/dist/components/index.d.ts +4 -1
  49. package/dist/components/index.js +321 -104
  50. package/dist/components/index.mjs +54 -42
  51. package/dist/components/input.js +5 -0
  52. package/dist/components/input.mjs +2 -2
  53. package/dist/components/integration-card.d.mts +3 -3
  54. package/dist/components/integration-card.d.ts +3 -3
  55. package/dist/components/popover.mjs +2 -2
  56. package/dist/components/select.js +5 -0
  57. package/dist/components/select.mjs +2 -2
  58. package/dist/components/sidebar.js +1 -1
  59. package/dist/components/sidebar.mjs +1 -1
  60. package/dist/components/skeleton-avatar.mjs +3 -3
  61. package/dist/components/slash-dropdown-menu.mjs +2 -2
  62. package/dist/components/switch.d.mts +62 -0
  63. package/dist/components/switch.d.ts +62 -0
  64. package/dist/components/switch.js +63 -0
  65. package/dist/components/switch.mjs +6 -0
  66. package/dist/components/textarea.js +5 -0
  67. package/dist/components/textarea.mjs +2 -2
  68. package/dist/components/toolbar.d.mts +57 -0
  69. package/dist/components/toolbar.d.ts +57 -0
  70. package/dist/components/toolbar.js +24 -3
  71. package/dist/components/toolbar.mjs +1 -1
  72. package/dist/editor.css +62 -7
  73. package/dist/index.d.mts +4 -1
  74. package/dist/index.d.ts +4 -1
  75. package/dist/index.js +321 -104
  76. package/dist/index.mjs +54 -42
  77. package/dist/utils/classes.d.mts +5 -0
  78. package/dist/utils/classes.d.ts +5 -0
  79. package/dist/utils/classes.js +5 -0
  80. package/dist/utils/classes.mjs +1 -1
  81. package/package.json +6 -6
  82. package/dist/chunk-BWB7MWRC.mjs +0 -22
  83. package/dist/chunk-GRPMKEI2.mjs +0 -34
  84. /package/dist/{chunk-UWWO4AVU.mjs → chunk-XMLRBNOG.mjs} +0 -0
@@ -0,0 +1,228 @@
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/combobox.ts
21
+ var combobox_exports = {};
22
+ __export(combobox_exports, {
23
+ combobox: () => combobox
24
+ });
25
+ module.exports = __toCommonJS(combobox_exports);
26
+ var import_tailwind_variants2 = require("tailwind-variants");
27
+
28
+ // src/components/input.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 inputClasses = {
37
+ radius: {
38
+ sm: "rounded-sm",
39
+ md: "rounded-md",
40
+ lg: "rounded-lg"
41
+ },
42
+ height: {
43
+ sm: "h-7 min-h-7",
44
+ md: "h-8.5 min-h-8.5",
45
+ lg: "h-10 min-h-10"
46
+ },
47
+ text: {
48
+ sm: "text-sm",
49
+ md: "text-base md:text-sm",
50
+ lg: "text-base"
51
+ }
52
+ };
53
+
54
+ // src/components/input.ts
55
+ var passwordInput = (0, import_tailwind_variants.tv)({
56
+ slots: {
57
+ button: "focus:outline-hidden",
58
+ icon: "pointer-events-none text-muted-foreground"
59
+ }
60
+ });
61
+ var input = (0, import_tailwind_variants.tv)({
62
+ base: [
63
+ "w-full inline-flex bg-background text-foreground",
64
+ "border-input border",
65
+ "shadow-xs placeholder:text-muted-foreground",
66
+ ...focusVisibleClasses,
67
+ "disabled:cursor-not-allowed disabled:opacity-60",
68
+ "[&[readonly]]:bg-muted/80 [&[readonly]]:cursor-not-allowed",
69
+ "w-full font-normal outline-hidden focus-visible:outline-hidden",
70
+ "data-[has-start-content=true]:ps-1.5",
71
+ "data-[has-end-content=true]:pe-1.5",
72
+ "file:cursor-pointer file:bg-transparent file:border-0",
73
+ "autofill:bg-transparent bg-clip-text",
74
+ // legacy
75
+ "selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground",
76
+ "flex",
77
+ // file
78
+ "file:text-foreground file:inline-flex file:text-sm file:font-medium",
79
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
80
+ ],
81
+ variants: {
82
+ size: {
83
+ sm: [
84
+ inputClasses.radius.sm,
85
+ inputClasses.height.sm,
86
+ "px-2.5 [&_svg]:size-4",
87
+ "text-sm file:h-6"
88
+ ],
89
+ md: [
90
+ inputClasses.radius.md,
91
+ inputClasses.height.md,
92
+ "px-3 [&_svg]:size-4",
93
+ "text-base md:text-sm file:h-8"
94
+ ],
95
+ lg: [
96
+ inputClasses.radius.lg,
97
+ inputClasses.height.md,
98
+ "px-4 [&_svg]:size-4",
99
+ "text-base file:h-10"
100
+ ]
101
+ },
102
+ radius: {
103
+ none: "rounded-none",
104
+ sm: "rounded-sm",
105
+ md: "rounded-md",
106
+ lg: "rounded-lg",
107
+ full: "rounded-full"
108
+ }
109
+ },
110
+ defaultVariants: {
111
+ size: "md"
112
+ }
113
+ });
114
+
115
+ // src/components/combobox.ts
116
+ var combobox = (0, import_tailwind_variants2.tv)({
117
+ slots: {
118
+ root: [],
119
+ control: "relative",
120
+ value: "",
121
+ input: [
122
+ ...input.base,
123
+ "has-[[data-slot=combobox-input]:focus-visible]:ring-ring",
124
+ "has-[[data-slot=combobox-input]:focus-visible]:border-ring",
125
+ "has-[[data-slot=combobox-input]:focus-visible]:outline-none",
126
+ "has-[[data-slot=combobox-input]:focus-visible]:ring-2",
127
+ "[&_[data-slot=combobox-input]]:grow",
128
+ "[&[readonly]]:bg-muted/80 [&[readonly]]:cursor-not-allowed"
129
+ ],
130
+ status: "text-muted-foreground text-sm",
131
+ positioner: "outline-none",
132
+ popup: [
133
+ "py-1 w-[var(--anchor-width)] max-h-[min(var(--available-height),23rem)] max-w-[var(--available-width)]",
134
+ "overflow-y-auto scroll-pt-2 scroll-pb-2 overscroll-contain bg-[canvas]",
135
+ "rounded-md border border-border bg-popover text-popover-foreground shadow-md shadow-black/5",
136
+ "origin-[var(--transform-origin)] transition-[transform,scale,opacity] data-[ending-style]:scale-90",
137
+ "data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0"
138
+ ],
139
+ list: "space-y-0.5",
140
+ row: "flex items-center gap-2",
141
+ item: [
142
+ "relative cursor-default flex items-center",
143
+ "text-foreground relative select-none items-center gap-2 rounded-md ps-7 pe-2 py-1.5 text-sm outline-hidden transition-colors data-disabled:pointer-events-none data-disabled:opacity-50",
144
+ "[&_svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0",
145
+ "data-[highlighted]:relative data-[highlighted]:z-0 data-[highlighted]:text-foreground data-[highlighted]:before:absolute data-[highlighted]:before:inset-x-1 data-[highlighted]:before:inset-y-0 data-[highlighted]:before:z-[-1] data-[highlighted]:before:rounded-sm data-[highlighted]:before:bg-accent"
146
+ ],
147
+ itemIndicator: [
148
+ "absolute flex top-1/2 -translate-y-1/2 items-center justify-center start-2.5",
149
+ "[&_svg]:size-4 [&_svg]:text-primary"
150
+ ],
151
+ groupLabel: "px-2 py-1.5 text-xs text-muted-foreground font-medium",
152
+ empty: "px-2 py-1.5 text-sm text-muted-foreground empty:m-0 empty:p-0",
153
+ clear: [
154
+ "absolute cursor-pointer end-6 top-1/2 -translate-y-1/2 rounded-sm opacity-70 ring-offset-background",
155
+ "transition-opacity opacity-60 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
156
+ "data-[disabled]:pointer-events-none",
157
+ "[&_svg]:size-3.5"
158
+ ],
159
+ icon: [
160
+ "absolute cursor-pointer end-2 top-1/2 -translate-y-1/2 rounded-sm opacity-70 ring-offset-background transition-opacity",
161
+ "opacity-60 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
162
+ "data-[disabled]:pointer-events-none",
163
+ "[&_svg]:size-3.5"
164
+ ],
165
+ trigger: "relative",
166
+ // note: chips receive "input" and the following styles
167
+ chips: [
168
+ "flex items-center flex-wrap gap-1",
169
+ "[&_[data-slot=combobox-input]]:py-0 [&_[data-slot=combobox-input]]:px-1.5 has-[[data-slot=combobox-chip]]:[&_[data-slot=combobox-input]]:px-0",
170
+ "[&_[data-slot=combobox-input]]:min-h-0 [&_[data-slot=combobox-input]]:flex-1",
171
+ "[&_[data-slot=combobox-input]]:border-0 [&_[data-slot=combobox-input]]:shadow-none [&_[data-slot=combobox-input]]:rounded-none",
172
+ "[&_[data-slot=combobox-input]]:outline-none [&_[data-slot=combobox-input]]:ring-0"
173
+ ],
174
+ chip: [
175
+ "inline-flex items-center gap-1 rounded-md bg-muted px-2 py-1 text-xs font-medium text-foreground"
176
+ ],
177
+ chipRemove: [
178
+ "cursor-pointer ms-1 rounded-sm [&_svg]:opacity-60 hover:bg-muted-foreground/20 hover:[&_svg]:opacity-100",
179
+ "[&_svg]:size-3.5"
180
+ ],
181
+ separator: "my-1.5 h-px bg-muted",
182
+ header: ["flex flex-col items-start justify-between px-3 py-2 border-b"],
183
+ title: "text-sm font-semibold",
184
+ description: "text-xs text-muted-foreground"
185
+ },
186
+ variants: {
187
+ size: {
188
+ sm: {
189
+ input: [
190
+ ...input.variants.size.sm,
191
+ "h-auto py-0.5",
192
+ "[&~[data-slot=combobox-icon]]:end-2.5 [&~[data-slot=combobox-clear]]:end-7"
193
+ ],
194
+ chips: "px-0.75"
195
+ },
196
+ md: {
197
+ input: [
198
+ ...input.variants.size.md,
199
+ "h-auto py-1",
200
+ "[&~[data-slot=combobox-icon]]:end-2 [&~[data-slot=combobox-clear]]:end-6"
201
+ ],
202
+ chips: "px-1"
203
+ },
204
+ lg: {
205
+ input: [
206
+ ...input.variants.size.lg,
207
+ "h-auto py-1",
208
+ "[&~[data-slot=combobox-icon]]:end-1.75 [&~[data-slot=combobox-clear]]:end-5.75"
209
+ ],
210
+ chips: "px-1.5"
211
+ }
212
+ },
213
+ fullWidth: {
214
+ true: {
215
+ input: "w-full",
216
+ chips: "w-full"
217
+ }
218
+ }
219
+ },
220
+ defaultVariants: {
221
+ size: "md",
222
+ fullWidth: true
223
+ }
224
+ });
225
+ // Annotate the CommonJS export names for ESM import in node:
226
+ 0 && (module.exports = {
227
+ combobox
228
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ combobox
3
+ } from "../chunk-URVHE3OS.mjs";
4
+ import "../chunk-K3EVZATS.mjs";
5
+ import "../chunk-6IZPAS4O.mjs";
6
+ export {
7
+ combobox
8
+ };
@@ -14,9 +14,9 @@ declare const command: tailwind_variants.TVReturnType<{
14
14
  list?: tailwind_merge.ClassNameValue;
15
15
  empty?: tailwind_merge.ClassNameValue;
16
16
  group?: tailwind_merge.ClassNameValue;
17
+ separator?: tailwind_merge.ClassNameValue;
17
18
  inputWrapper?: tailwind_merge.ClassNameValue;
18
19
  inputIcon?: tailwind_merge.ClassNameValue;
19
- separator?: tailwind_merge.ClassNameValue;
20
20
  shortcut?: tailwind_merge.ClassNameValue;
21
21
  };
22
22
  };
@@ -32,9 +32,9 @@ declare const command: tailwind_variants.TVReturnType<{
32
32
  list?: tailwind_merge.ClassNameValue;
33
33
  empty?: tailwind_merge.ClassNameValue;
34
34
  group?: tailwind_merge.ClassNameValue;
35
+ separator?: tailwind_merge.ClassNameValue;
35
36
  inputWrapper?: tailwind_merge.ClassNameValue;
36
37
  inputIcon?: tailwind_merge.ClassNameValue;
37
- separator?: tailwind_merge.ClassNameValue;
38
38
  shortcut?: tailwind_merge.ClassNameValue;
39
39
  };
40
40
  };
@@ -64,9 +64,9 @@ declare const command: tailwind_variants.TVReturnType<{
64
64
  list?: tailwind_merge.ClassNameValue;
65
65
  empty?: tailwind_merge.ClassNameValue;
66
66
  group?: tailwind_merge.ClassNameValue;
67
+ separator?: tailwind_merge.ClassNameValue;
67
68
  inputWrapper?: tailwind_merge.ClassNameValue;
68
69
  inputIcon?: tailwind_merge.ClassNameValue;
69
- separator?: tailwind_merge.ClassNameValue;
70
70
  shortcut?: tailwind_merge.ClassNameValue;
71
71
  };
72
72
  };
@@ -14,9 +14,9 @@ declare const command: tailwind_variants.TVReturnType<{
14
14
  list?: tailwind_merge.ClassNameValue;
15
15
  empty?: tailwind_merge.ClassNameValue;
16
16
  group?: tailwind_merge.ClassNameValue;
17
+ separator?: tailwind_merge.ClassNameValue;
17
18
  inputWrapper?: tailwind_merge.ClassNameValue;
18
19
  inputIcon?: tailwind_merge.ClassNameValue;
19
- separator?: tailwind_merge.ClassNameValue;
20
20
  shortcut?: tailwind_merge.ClassNameValue;
21
21
  };
22
22
  };
@@ -32,9 +32,9 @@ declare const command: tailwind_variants.TVReturnType<{
32
32
  list?: tailwind_merge.ClassNameValue;
33
33
  empty?: tailwind_merge.ClassNameValue;
34
34
  group?: tailwind_merge.ClassNameValue;
35
+ separator?: tailwind_merge.ClassNameValue;
35
36
  inputWrapper?: tailwind_merge.ClassNameValue;
36
37
  inputIcon?: tailwind_merge.ClassNameValue;
37
- separator?: tailwind_merge.ClassNameValue;
38
38
  shortcut?: tailwind_merge.ClassNameValue;
39
39
  };
40
40
  };
@@ -64,9 +64,9 @@ declare const command: tailwind_variants.TVReturnType<{
64
64
  list?: tailwind_merge.ClassNameValue;
65
65
  empty?: tailwind_merge.ClassNameValue;
66
66
  group?: tailwind_merge.ClassNameValue;
67
+ separator?: tailwind_merge.ClassNameValue;
67
68
  inputWrapper?: tailwind_merge.ClassNameValue;
68
69
  inputIcon?: tailwind_merge.ClassNameValue;
69
- separator?: tailwind_merge.ClassNameValue;
70
70
  shortcut?: tailwind_merge.ClassNameValue;
71
71
  };
72
72
  };
@@ -0,0 +1,5 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+
3
+ declare const controlExtension: tailwind_variants.TVReturnType<{} | {} | {}, undefined, undefined, {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, undefined, unknown, unknown, undefined>>;
4
+
5
+ export { controlExtension };
@@ -0,0 +1,5 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+
3
+ declare const controlExtension: tailwind_variants.TVReturnType<{} | {} | {}, undefined, undefined, {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, undefined, unknown, unknown, undefined>>;
4
+
5
+ export { controlExtension };
@@ -0,0 +1,31 @@
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/control-extension.ts
21
+ var control_extension_exports = {};
22
+ __export(control_extension_exports, {
23
+ controlExtension: () => controlExtension
24
+ });
25
+ module.exports = __toCommonJS(control_extension_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var controlExtension = (0, import_tailwind_variants.tv)({});
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ controlExtension
31
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ controlExtension
3
+ } from "../chunk-M4TXKRUU.mjs";
4
+ export {
5
+ controlExtension
6
+ };
@@ -1,4 +1,5 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
2
3
 
3
4
  declare const editorBasic: tailwind_variants.TVReturnType<{
4
5
  variant: {
@@ -7,11 +8,16 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
7
8
  toolbar: string;
8
9
  content: string;
9
10
  };
11
+ document: {
12
+ wrapper: string;
13
+ content: string;
14
+ };
10
15
  };
11
16
  }, {
17
+ root: string[];
18
+ toolbar: string[];
12
19
  wrapper: string[];
13
20
  content: string[];
14
- toolbar: string;
15
21
  toolbarGroup: string;
16
22
  }, undefined, {
17
23
  variant: {
@@ -20,11 +26,16 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
20
26
  toolbar: string;
21
27
  content: string;
22
28
  };
29
+ document: {
30
+ wrapper: string;
31
+ content: string;
32
+ };
23
33
  };
24
34
  }, {
35
+ root: string[];
36
+ toolbar: string[];
25
37
  wrapper: string[];
26
38
  content: string[];
27
- toolbar: string;
28
39
  toolbarGroup: string;
29
40
  }, tailwind_variants.TVReturnType<{
30
41
  variant: {
@@ -33,12 +44,18 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
33
44
  toolbar: string;
34
45
  content: string;
35
46
  };
47
+ document: {
48
+ wrapper: string;
49
+ content: string;
50
+ };
36
51
  };
37
52
  }, {
53
+ root: string[];
54
+ toolbar: string[];
38
55
  wrapper: string[];
39
56
  content: string[];
40
- toolbar: string;
41
57
  toolbarGroup: string;
42
58
  }, undefined, unknown, unknown, undefined>>;
59
+ type EditorBasicVariants = VariantProps<typeof editorBasic>;
43
60
 
44
- export { editorBasic };
61
+ export { type EditorBasicVariants, editorBasic };
@@ -1,4 +1,5 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
2
3
 
3
4
  declare const editorBasic: tailwind_variants.TVReturnType<{
4
5
  variant: {
@@ -7,11 +8,16 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
7
8
  toolbar: string;
8
9
  content: string;
9
10
  };
11
+ document: {
12
+ wrapper: string;
13
+ content: string;
14
+ };
10
15
  };
11
16
  }, {
17
+ root: string[];
18
+ toolbar: string[];
12
19
  wrapper: string[];
13
20
  content: string[];
14
- toolbar: string;
15
21
  toolbarGroup: string;
16
22
  }, undefined, {
17
23
  variant: {
@@ -20,11 +26,16 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
20
26
  toolbar: string;
21
27
  content: string;
22
28
  };
29
+ document: {
30
+ wrapper: string;
31
+ content: string;
32
+ };
23
33
  };
24
34
  }, {
35
+ root: string[];
36
+ toolbar: string[];
25
37
  wrapper: string[];
26
38
  content: string[];
27
- toolbar: string;
28
39
  toolbarGroup: string;
29
40
  }, tailwind_variants.TVReturnType<{
30
41
  variant: {
@@ -33,12 +44,18 @@ declare const editorBasic: tailwind_variants.TVReturnType<{
33
44
  toolbar: string;
34
45
  content: string;
35
46
  };
47
+ document: {
48
+ wrapper: string;
49
+ content: string;
50
+ };
36
51
  };
37
52
  }, {
53
+ root: string[];
54
+ toolbar: string[];
38
55
  wrapper: string[];
39
56
  content: string[];
40
- toolbar: string;
41
57
  toolbarGroup: string;
42
58
  }, undefined, unknown, unknown, undefined>>;
59
+ type EditorBasicVariants = VariantProps<typeof editorBasic>;
43
60
 
44
- export { editorBasic };
61
+ export { type EditorBasicVariants, editorBasic };
@@ -26,16 +26,27 @@ module.exports = __toCommonJS(editor_basic_exports);
26
26
  var import_tailwind_variants = require("tailwind-variants");
27
27
  var editorBasic = (0, import_tailwind_variants.tv)({
28
28
  slots: {
29
+ root: [
30
+ "grid grid-rows-[auto,1fr]",
31
+ "h-full min-h-0 w-full min-w-0",
32
+ "content-start isolate"
33
+ ],
34
+ toolbar: [
35
+ "row-start-1 row-end-2",
36
+ "flex items-center gap-0.5",
37
+ "sticky top-0 z-10"
38
+ ],
29
39
  wrapper: [
30
- "overflow-y-auto",
31
- "h-[calc(100%-var(--spacing-editor-toolbar))]"
40
+ "row-start-2 row-end-3",
41
+ "min-h-0 min-w-0",
42
+ "overflow-y-auto"
43
+ // "h-[calc(100%-var(--spacing-editor-toolbar))]",
32
44
  ],
33
45
  content: [
34
- "w-full",
46
+ "w-full min-w-0 h-full min-h-0",
35
47
  "[&_.tiptap.ProseMirror]:py-4",
36
48
  "[&_.tiptap.ProseMirror]:px-6"
37
49
  ],
38
- toolbar: "flex items-center gap-0.5",
39
50
  toolbarGroup: "flex items-center gap-0.5"
40
51
  },
41
52
  variants: {
@@ -43,8 +54,13 @@ var editorBasic = (0, import_tailwind_variants.tv)({
43
54
  // rounded toolbar, muted background
44
55
  default: {
45
56
  wrapper: ["border rounded-md"],
46
- toolbar: "bg-muted rounded-md p-1 mb-2",
57
+ toolbar: "rounded-md mb-2",
47
58
  content: ""
59
+ },
60
+ // document style, eg. document editor, fullpage etc pp
61
+ document: {
62
+ wrapper: "size-full overflow-auto",
63
+ content: "size-full"
48
64
  }
49
65
  }
50
66
  },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  editorBasic
3
- } from "../chunk-GRPMKEI2.mjs";
3
+ } from "../chunk-NUEQ5FLX.mjs";
4
4
  export {
5
5
  editorBasic
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  hoverCard
3
- } from "../chunk-XRKUQMGU.mjs";
4
- import "../chunk-5DOB3IBE.mjs";
3
+ } from "../chunk-UTCVHVWF.mjs";
4
+ import "../chunk-6IZPAS4O.mjs";
5
5
  export {
6
6
  hoverCard
7
7
  };
@@ -12,13 +12,15 @@ export { CheckboxVariantProps, checkbox } from './checkbox.mjs';
12
12
  export { ChipSlots, ChipVariantProps, chip } from './chip.mjs';
13
13
  export { CodeVariantProps, code } from './code.mjs';
14
14
  export { colorHighlightButton } from './color-highlight-button.mjs';
15
+ export { ComboboxVariantProps, combobox } from './combobox.mjs';
15
16
  export { CommandVariants, command } from './command.mjs';
17
+ export { controlExtension } from './control-extension.mjs';
16
18
  export { DataGridVariants, datagrid } from './data-grid.mjs';
17
19
  export { DataTableVariants, dataTable } from './data-table.mjs';
18
20
  export { DialogSlots, DialogVariantProps, dialog } from './dialog.mjs';
19
21
  export { DrawerVariantProps, drawer } from './drawer.mjs';
20
22
  export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.mjs';
21
- export { editorBasic } from './editor-basic.mjs';
23
+ export { EditorBasicVariants, editorBasic } from './editor-basic.mjs';
22
24
  export { editorSpinner } from './editor-spinner.mjs';
23
25
  export { frameworkRow } from './framework-row.mjs';
24
26
  export { HeadingVariantProps, heading } from './heading.mjs';
@@ -48,6 +50,7 @@ export { slashDropdownMenu } from './slash-dropdown-menu.mjs';
48
50
  export { SpinnerVariants, spinner } from './spinner.mjs';
49
51
  export { SplitPageLayoutVariantProps, splitPageLayout } from './split-page-layout.mjs';
50
52
  export { StandardChipVariants, standardChip } from './standard-chip.mjs';
53
+ export { SwitchSlots, SwitchVariantProps, switchVariants } from './switch.mjs';
51
54
  export { TabNavSlots, TabNavVariantProps, tabNav } from './tab-nav.mjs';
52
55
  export { TableSlots, TableVariantProps, table } from './table.mjs';
53
56
  export { TabsVariantProps, tabs } from './tabs.mjs';
@@ -12,13 +12,15 @@ export { CheckboxVariantProps, checkbox } from './checkbox.js';
12
12
  export { ChipSlots, ChipVariantProps, chip } from './chip.js';
13
13
  export { CodeVariantProps, code } from './code.js';
14
14
  export { colorHighlightButton } from './color-highlight-button.js';
15
+ export { ComboboxVariantProps, combobox } from './combobox.js';
15
16
  export { CommandVariants, command } from './command.js';
17
+ export { controlExtension } from './control-extension.js';
16
18
  export { DataGridVariants, datagrid } from './data-grid.js';
17
19
  export { DataTableVariants, dataTable } from './data-table.js';
18
20
  export { DialogSlots, DialogVariantProps, dialog } from './dialog.js';
19
21
  export { DrawerVariantProps, drawer } from './drawer.js';
20
22
  export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.js';
21
- export { editorBasic } from './editor-basic.js';
23
+ export { EditorBasicVariants, editorBasic } from './editor-basic.js';
22
24
  export { editorSpinner } from './editor-spinner.js';
23
25
  export { frameworkRow } from './framework-row.js';
24
26
  export { HeadingVariantProps, heading } from './heading.js';
@@ -48,6 +50,7 @@ export { slashDropdownMenu } from './slash-dropdown-menu.js';
48
50
  export { SpinnerVariants, spinner } from './spinner.js';
49
51
  export { SplitPageLayoutVariantProps, splitPageLayout } from './split-page-layout.js';
50
52
  export { StandardChipVariants, standardChip } from './standard-chip.js';
53
+ export { SwitchSlots, SwitchVariantProps, switchVariants } from './switch.js';
51
54
  export { TabNavSlots, TabNavVariantProps, tabNav } from './tab-nav.js';
52
55
  export { TableSlots, TableVariantProps, table } from './table.js';
53
56
  export { TabsVariantProps, tabs } from './tabs.js';