@kopexa/theme 1.7.6 → 2.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 (144) hide show
  1. package/dist/{chunk-EXBKQDH5.mjs → chunk-3PCDCW7G.mjs} +1 -1
  2. package/dist/chunk-45KIKY4A.mjs +140 -0
  3. package/dist/{chunk-UEMJVVVF.mjs → chunk-5DOB3IBE.mjs} +14 -1
  4. package/dist/{chunk-SHHD2WUZ.mjs → chunk-7VZZASRG.mjs} +1 -1
  5. package/dist/chunk-BETLBSSF.mjs +23 -0
  6. package/dist/chunk-BWB7MWRC.mjs +22 -0
  7. package/dist/chunk-CPERWXKN.mjs +21 -0
  8. package/dist/chunk-DI54XTS5.mjs +56 -0
  9. package/dist/chunk-GRPMKEI2.mjs +34 -0
  10. package/dist/{chunk-ZL6FAOXE.mjs → chunk-HHOMDBMZ.mjs} +1 -1
  11. package/dist/chunk-HWEYNK3O.mjs +25 -0
  12. package/dist/{chunk-U32YEQZ5.mjs → chunk-IHITEH7V.mjs} +15 -9
  13. package/dist/chunk-IHW4FWFB.mjs +71 -0
  14. package/dist/{chunk-TJDRYBGW.mjs → chunk-JXQPOORM.mjs} +15 -9
  15. package/dist/{chunk-MWG2OZMD.mjs → chunk-LAJQAXSV.mjs} +7 -9
  16. package/dist/{chunk-VCLXE57S.mjs → chunk-LM7MKBHT.mjs} +7 -1
  17. package/dist/chunk-LMCM4CW2.mjs +22 -0
  18. package/dist/chunk-M3GQ563Q.mjs +33 -0
  19. package/dist/chunk-NFOF75HQ.mjs +106 -0
  20. package/dist/{chunk-JHKTRIIA.mjs → chunk-RQYYDG26.mjs} +4 -2
  21. package/dist/chunk-SPQE7K66.mjs +18 -0
  22. package/dist/chunk-TVC4THD6.mjs +16 -0
  23. package/dist/chunk-URGRCBNW.mjs +27 -0
  24. package/dist/chunk-VSVGOX3P.mjs +48 -0
  25. package/dist/chunk-XGUDXC5P.mjs +26 -0
  26. package/dist/{chunk-755GJHKQ.mjs → chunk-XRKUQMGU.mjs} +1 -1
  27. package/dist/{chunk-JQ74U2S3.mjs → chunk-YH6TDPK7.mjs} +4 -4
  28. package/dist/chunk-Z7D56R5U.mjs +70 -0
  29. package/dist/components/alert-dialog.d.mts +9 -9
  30. package/dist/components/alert-dialog.d.ts +9 -9
  31. package/dist/components/alert-dialog.js +11 -2
  32. package/dist/components/alert-dialog.mjs +1 -1
  33. package/dist/components/autocomplete.d.mts +73 -0
  34. package/dist/components/autocomplete.d.ts +73 -0
  35. package/dist/components/autocomplete.js +173 -0
  36. package/dist/components/autocomplete.mjs +8 -0
  37. package/dist/components/avatar.mjs +2 -2
  38. package/dist/components/button.d.mts +15 -0
  39. package/dist/components/button.d.ts +15 -0
  40. package/dist/components/button.js +12 -6
  41. package/dist/components/button.mjs +2 -2
  42. package/dist/components/chip.d.mts +3 -0
  43. package/dist/components/chip.d.ts +3 -0
  44. package/dist/components/chip.js +4 -2
  45. package/dist/components/chip.mjs +1 -1
  46. package/dist/components/color-highlight-button.d.mts +36 -0
  47. package/dist/components/color-highlight-button.d.ts +36 -0
  48. package/dist/components/color-highlight-button.js +45 -0
  49. package/dist/components/color-highlight-button.mjs +6 -0
  50. package/dist/components/command.d.mts +9 -9
  51. package/dist/components/command.d.ts +9 -9
  52. package/dist/components/data-grid.d.mts +325 -0
  53. package/dist/components/data-grid.d.ts +325 -0
  54. package/dist/components/data-grid.js +164 -0
  55. package/dist/components/data-grid.mjs +6 -0
  56. package/dist/components/dialog.js +7 -9
  57. package/dist/components/dialog.mjs +1 -1
  58. package/dist/components/drawer.d.mts +3 -3
  59. package/dist/components/drawer.d.ts +3 -3
  60. package/dist/components/drawer.js +21 -17
  61. package/dist/components/drawer.mjs +2 -2
  62. package/dist/components/dropdown-menu.js +1 -1
  63. package/dist/components/dropdown-menu.mjs +1 -1
  64. package/dist/components/editor-basic.d.mts +44 -0
  65. package/dist/components/editor-basic.d.ts +44 -0
  66. package/dist/components/editor-basic.js +58 -0
  67. package/dist/components/editor-basic.mjs +6 -0
  68. package/dist/components/editor-spinner.d.mts +60 -0
  69. package/dist/components/editor-spinner.d.ts +60 -0
  70. package/dist/components/editor-spinner.js +40 -0
  71. package/dist/components/editor-spinner.mjs +6 -0
  72. package/dist/components/hover-card.mjs +2 -2
  73. package/dist/components/index.d.mts +14 -0
  74. package/dist/components/index.d.ts +14 -0
  75. package/dist/components/index.js +815 -196
  76. package/dist/components/index.mjs +100 -44
  77. package/dist/components/input-group.d.mts +5 -0
  78. package/dist/components/input-group.d.ts +5 -0
  79. package/dist/components/input-group.js +49 -0
  80. package/dist/components/input-group.mjs +6 -0
  81. package/dist/components/input-wrapper.d.mts +25 -0
  82. package/dist/components/input-wrapper.d.ts +25 -0
  83. package/dist/components/input-wrapper.js +72 -0
  84. package/dist/components/input-wrapper.mjs +6 -0
  85. package/dist/components/input.d.mts +30 -129
  86. package/dist/components/input.d.ts +30 -129
  87. package/dist/components/input.js +58 -71
  88. package/dist/components/input.mjs +2 -2
  89. package/dist/components/kbd.d.mts +35 -0
  90. package/dist/components/kbd.d.ts +35 -0
  91. package/dist/components/kbd.js +47 -0
  92. package/dist/components/kbd.mjs +6 -0
  93. package/dist/components/label.d.mts +22 -0
  94. package/dist/components/label.d.ts +22 -0
  95. package/dist/components/label.js +46 -0
  96. package/dist/components/label.mjs +6 -0
  97. package/dist/components/popover.d.mts +79 -14
  98. package/dist/components/popover.d.ts +79 -14
  99. package/dist/components/popover.js +41 -4
  100. package/dist/components/popover.mjs +2 -2
  101. package/dist/components/scroll-area.d.mts +50 -0
  102. package/dist/components/scroll-area.d.ts +50 -0
  103. package/dist/components/scroll-area.js +42 -0
  104. package/dist/components/scroll-area.mjs +6 -0
  105. package/dist/components/select.d.mts +76 -0
  106. package/dist/components/select.d.ts +76 -0
  107. package/dist/components/select.js +145 -0
  108. package/dist/components/select.mjs +7 -0
  109. package/dist/components/separator.d.mts +2 -2
  110. package/dist/components/separator.d.ts +2 -2
  111. package/dist/components/separator.js +7 -1
  112. package/dist/components/separator.mjs +1 -1
  113. package/dist/components/skeleton-avatar.mjs +3 -3
  114. package/dist/components/slash-dropdown-menu.d.mts +54 -0
  115. package/dist/components/slash-dropdown-menu.d.ts +54 -0
  116. package/dist/components/slash-dropdown-menu.js +55 -0
  117. package/dist/components/slash-dropdown-menu.mjs +7 -0
  118. package/dist/components/standard-chip.d.mts +4 -0
  119. package/dist/components/standard-chip.d.ts +4 -0
  120. package/dist/components/standard-chip.js +4 -2
  121. package/dist/components/standard-chip.mjs +2 -2
  122. package/dist/components/textarea.d.mts +25 -0
  123. package/dist/components/textarea.d.ts +25 -0
  124. package/dist/components/textarea.js +72 -0
  125. package/dist/components/textarea.mjs +7 -0
  126. package/dist/components/toolbar.d.mts +34 -0
  127. package/dist/components/toolbar.d.ts +34 -0
  128. package/dist/components/toolbar.js +46 -0
  129. package/dist/components/toolbar.mjs +6 -0
  130. package/dist/editor.css +784 -0
  131. package/dist/index.css +39 -12
  132. package/dist/index.d.mts +14 -0
  133. package/dist/index.d.ts +14 -0
  134. package/dist/index.js +815 -196
  135. package/dist/index.mjs +100 -44
  136. package/dist/utils/classes.d.mts +13 -1
  137. package/dist/utils/classes.d.ts +13 -1
  138. package/dist/utils/classes.js +14 -0
  139. package/dist/utils/classes.mjs +3 -1
  140. package/package.json +24 -18
  141. package/dist/chunk-CPEP2RO4.mjs +0 -17
  142. package/dist/chunk-IKJHZT2S.mjs +0 -19
  143. package/dist/chunk-UMSU2ZEG.mjs +0 -96
  144. /package/dist/{chunk-MA4DKK64.mjs → chunk-UWWO4AVU.mjs} +0 -0
@@ -0,0 +1,164 @@
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/data-grid.ts
21
+ var data_grid_exports = {};
22
+ __export(data_grid_exports, {
23
+ datagrid: () => datagrid
24
+ });
25
+ module.exports = __toCommonJS(data_grid_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var datagrid = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ container: "grid w-full",
30
+ table: "w-full align-middle caption-bottom text-left rtl:text-right text-foreground font-normal text-sm",
31
+ head: "",
32
+ headerRow: "",
33
+ headerRowCell: "relative h-10 text-left rtl:text-right align-middle font-normal text-secondary-foreground/80 [&:has([role=checkbox])]:pe-0",
34
+ headRowCellResize: "absolute top-0 h-full w-4 cursor-col-resize user-select-none touch-none -end-2 z-10 flex justify-center before:absolute before:w-px before:inset-y-0 before:bg-border before:-translate-x-px",
35
+ rowSpacer: "h-2",
36
+ body: "[&_tr:last-child]:border-0",
37
+ bodyRowSkeleton: "hover:bg-muted/40 data-[state=selected]:bg-muted/50",
38
+ bodyRowSkeletonCell: "align-middle",
39
+ bodyRow: "hover:bg-muted/40 data-[state=selected]:bg-muted/50",
40
+ bodyRowCell: "align-middle",
41
+ bodyRowExpanded: "",
42
+ empty: "text-center text-muted-foreground py-6"
43
+ },
44
+ variants: {
45
+ border: {
46
+ true: {
47
+ container: "border border-border rounded-lg"
48
+ }
49
+ },
50
+ headerBorder: {
51
+ true: {
52
+ headerRow: "[&>th]:border-b"
53
+ }
54
+ },
55
+ cellBorder: {
56
+ true: {
57
+ headerRow: "[&_>:last-child]:border-e-0",
58
+ headerRowCell: "border-e",
59
+ bodyRowSkeleton: "[&_>:last-child]:border-e-0",
60
+ bodyRowSkeletonCell: "border-e",
61
+ bodyRow: "[&_>:last-child]:border-e-0",
62
+ bodyRowCell: "border-e"
63
+ }
64
+ },
65
+ rowBorder: {
66
+ true: {
67
+ bodyRowExpanded: "[&:not(:last-child)>td]:border-b"
68
+ }
69
+ },
70
+ rowRounded: {
71
+ true: {
72
+ body: "[&_td:first-child]:rounded-s-lg [&_td:last-child]:rounded-e-lg"
73
+ }
74
+ },
75
+ columnsResizable: {
76
+ true: {
77
+ headerRowCell: "truncate"
78
+ }
79
+ },
80
+ columnsDraggable: {
81
+ true: {
82
+ table: "border-separate border-spacing-0"
83
+ }
84
+ },
85
+ headerBackground: {
86
+ false: {
87
+ headerRow: "bg-transparent"
88
+ },
89
+ true: {
90
+ headerRow: "bg-muted/40"
91
+ }
92
+ },
93
+ stripped: {
94
+ true: {
95
+ headerRow: "bg-transparent",
96
+ bodyRowSkeleton: "odd:bg-muted/90 hover:bg-transparent odd:hover:bg-muted",
97
+ bodyRow: "odd:bg-muted/90 hover:bg-transparent odd:hover:bg-muted"
98
+ }
99
+ },
100
+ width: {
101
+ fixed: {
102
+ table: "table-fixed",
103
+ headerRowCell: "w-[var(--size)]"
104
+ },
105
+ auto: {
106
+ table: "table-auto"
107
+ }
108
+ },
109
+ dense: {
110
+ true: {
111
+ headerRowCell: "px-2.5 h-8",
112
+ bodyRowSkeletonCell: "px-2.5 py-2",
113
+ bodyRowCell: "px-2.5 py-2"
114
+ },
115
+ false: {
116
+ headerRowCell: "px-4",
117
+ bodyRowSkeletonCell: "px-4 py-3",
118
+ bodyRowCell: "px-4 py-3"
119
+ }
120
+ },
121
+ columnsPinnable: {
122
+ true: {
123
+ headerRowCell: "[&:not([data-pinned]):has(+[data-pinned])_div.cursor-col-resize:last-child]:opacity-0 [&[data-last-col=left]_div.cursor-col-resize:last-child]:opacity-0 [&[data-pinned=left][data-last-col=left]]:border-e! [&[data-pinned=right]:last-child_div.cursor-col-resize:last-child]:opacity-0 [&[data-pinned=right][data-last-col=right]]:border-s! [&[data-pinned][data-last-col]]:border-border data-pinned:bg-muted/90 data-pinned:backdrop-blur-xs"
124
+ },
125
+ false: {}
126
+ },
127
+ headerSticky: {
128
+ true: {
129
+ head: "sticky top-0 z-10 bg-background/90 backdrop-blur-xs"
130
+ }
131
+ },
132
+ loadingMode: {
133
+ skeleton: {}
134
+ }
135
+ },
136
+ compoundVariants: [
137
+ {
138
+ stripped: false,
139
+ rowBorder: true,
140
+ className: {
141
+ bodyRowSkeleton: "border-b border-border [&:not(:last-child)>td]:border-b",
142
+ bodyRow: "border-b border-border [&:not(:last-child)>td]:border-b"
143
+ }
144
+ }
145
+ ],
146
+ defaultVariants: {
147
+ border: true,
148
+ dense: false,
149
+ width: "fixed",
150
+ headerSticky: false,
151
+ headerBorder: true,
152
+ headerBackground: true,
153
+ cellBorder: false,
154
+ stripped: false,
155
+ columnsPinnable: false,
156
+ columnsResizable: false,
157
+ loadingMode: "skeleton",
158
+ rowBorder: true
159
+ }
160
+ });
161
+ // Annotate the CommonJS export names for ESM import in node:
162
+ 0 && (module.exports = {
163
+ datagrid
164
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ datagrid
3
+ } from "../chunk-45KIKY4A.mjs";
4
+ export {
5
+ datagrid
6
+ };
@@ -27,19 +27,17 @@ var import_tailwind_variants = require("tailwind-variants");
27
27
  var dialog = (0, import_tailwind_variants.tv)({
28
28
  slots: {
29
29
  overlay: [
30
- "fixed inset-0 z-50 bg-black/25",
31
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
32
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
30
+ "fixed inset-0 bg-black/25 [backdrop-filter:blur(4px)]",
31
+ "data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"
33
32
  ],
34
33
  content: [
35
34
  "flex flex-col",
36
- "bg-background fixed top-[50%] left-[50%] z-50",
35
+ "bg-background fixed top-[50%] left-[50%]",
37
36
  "w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
38
- "border shadow-lg",
39
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
40
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
41
- "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
42
- "duration-200 sm:max-w-lg"
37
+ "border shadow-lg transition-all",
38
+ "data-[ending-style]:scale-90 data-[ending-style]:opacity-0",
39
+ "data-[starting-style]:scale-90 data-[starting-style]:opacity-0",
40
+ "duration-150 sm:max-w-lg"
43
41
  ],
44
42
  close: [
45
43
  "ring-offset-background focus:ring-ring",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dialog
3
- } from "../chunk-MWG2OZMD.mjs";
3
+ } from "../chunk-LAJQAXSV.mjs";
4
4
  export {
5
5
  dialog
6
6
  };
@@ -64,7 +64,7 @@ declare const drawer: tailwind_variants.TVReturnType<{
64
64
  };
65
65
  };
66
66
  }, {
67
- overlay: string[];
67
+ overlay: (string | string[])[];
68
68
  content: string[];
69
69
  close: string[];
70
70
  closeTrigger: never[];
@@ -136,7 +136,7 @@ declare const drawer: tailwind_variants.TVReturnType<{
136
136
  };
137
137
  };
138
138
  }, {
139
- overlay: string[];
139
+ overlay: (string | string[])[];
140
140
  content: string[];
141
141
  close: string[];
142
142
  closeTrigger: never[];
@@ -208,7 +208,7 @@ declare const drawer: tailwind_variants.TVReturnType<{
208
208
  };
209
209
  };
210
210
  }, {
211
- overlay: string[];
211
+ overlay: (string | string[])[];
212
212
  content: string[];
213
213
  close: string[];
214
214
  closeTrigger: never[];
@@ -64,7 +64,7 @@ declare const drawer: tailwind_variants.TVReturnType<{
64
64
  };
65
65
  };
66
66
  }, {
67
- overlay: string[];
67
+ overlay: (string | string[])[];
68
68
  content: string[];
69
69
  close: string[];
70
70
  closeTrigger: never[];
@@ -136,7 +136,7 @@ declare const drawer: tailwind_variants.TVReturnType<{
136
136
  };
137
137
  };
138
138
  }, {
139
- overlay: string[];
139
+ overlay: (string | string[])[];
140
140
  content: string[];
141
141
  close: string[];
142
142
  closeTrigger: never[];
@@ -208,7 +208,7 @@ declare const drawer: tailwind_variants.TVReturnType<{
208
208
  };
209
209
  };
210
210
  }, {
211
- overlay: string[];
211
+ overlay: (string | string[])[];
212
212
  content: string[];
213
213
  close: string[];
214
214
  closeTrigger: never[];
@@ -30,19 +30,17 @@ var import_tailwind_variants = require("tailwind-variants");
30
30
  var dialog = (0, import_tailwind_variants.tv)({
31
31
  slots: {
32
32
  overlay: [
33
- "fixed inset-0 z-50 bg-black/25",
34
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
35
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
33
+ "fixed inset-0 bg-black/25 [backdrop-filter:blur(4px)]",
34
+ "data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"
36
35
  ],
37
36
  content: [
38
37
  "flex flex-col",
39
- "bg-background fixed top-[50%] left-[50%] z-50",
38
+ "bg-background fixed top-[50%] left-[50%]",
40
39
  "w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
41
- "border shadow-lg",
42
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
43
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
44
- "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
45
- "duration-200 sm:max-w-lg"
40
+ "border shadow-lg transition-all",
41
+ "data-[ending-style]:scale-90 data-[ending-style]:opacity-0",
42
+ "data-[starting-style]:scale-90 data-[starting-style]:opacity-0",
43
+ "duration-150 sm:max-w-lg"
46
44
  ],
47
45
  close: [
48
46
  "ring-offset-background focus:ring-ring",
@@ -118,12 +116,17 @@ var dialog = (0, import_tailwind_variants.tv)({
118
116
  // src/components/drawer.ts
119
117
  var drawer = (0, import_tailwind_variants2.tv)({
120
118
  slots: {
121
- overlay: dialog.slots.overlay,
119
+ overlay: [
120
+ dialog.slots.overlay,
121
+ "data-[open]:animate-in data-[closed]:animate-out",
122
+ "data-[closed]:fade-out-0 data-[closed]:animation-duration-[300ms] data-[open]:fade-in-0"
123
+ ],
122
124
  content: [
123
- "bg-background fixed z-50 flex flex-col w-full gap-4 shadow-lg max-h-dvh",
125
+ "bg-background fixed flex flex-col w-full gap-4 shadow-lg max-h-dvh",
124
126
  "outline-hidden",
125
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
126
- "transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500"
127
+ "transition ease-in-out",
128
+ "data-[open]:animate-in data-[closed]:animate-out",
129
+ "data-[closed]:duration-300 data-[open]:duration-500"
127
130
  ],
128
131
  close: dialog.slots.close,
129
132
  closeTrigger: dialog.slots.closeTrigger,
@@ -172,14 +175,15 @@ var drawer = (0, import_tailwind_variants2.tv)({
172
175
  placement: {
173
176
  top: {
174
177
  content: [
175
- "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
178
+ "data-[closed]:slide-out-to-top data-[open]:slide-in-from-top",
179
+ // radix
176
180
  "inset-x-2 top-2 w-[calc(100svw-1rem)] max-h-[calc(100dvh-1rem)] mx-auto h-auto border-b",
177
181
  "max-w-[calc(100svw-1rem)]"
178
182
  ]
179
183
  },
180
184
  bottom: {
181
185
  content: [
182
- "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
186
+ "data-[closed]:slide-out-to-bottom data-[open]:slide-in-from-bottom",
183
187
  "inset-x-2 bottom-2 h-auto border-t",
184
188
  "max-w-[calc(100svw-1rem)] max-h-[calc(100dvh-1rem)]"
185
189
  ]
@@ -187,13 +191,13 @@ var drawer = (0, import_tailwind_variants2.tv)({
187
191
  left: {
188
192
  content: [
189
193
  "inset-y-2 ms-2 left-0 border-r h-[calc(100dvh_-_1rem)]",
190
- "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left"
194
+ "data-[closed]:slide-out-to-left data-[open]:slide-in-from-left"
191
195
  ]
192
196
  },
193
197
  right: {
194
198
  content: [
195
199
  "inset-y-2 me-2 right-0 h-[calc(100%-1rem)] border-l",
196
- "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right"
200
+ "data-[closed]:slide-out-to-right data-[open]:slide-in-from-right"
197
201
  ]
198
202
  }
199
203
  },
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  drawer
3
- } from "../chunk-TJDRYBGW.mjs";
4
- import "../chunk-MWG2OZMD.mjs";
3
+ } from "../chunk-JXQPOORM.mjs";
4
+ import "../chunk-LAJQAXSV.mjs";
5
5
  export {
6
6
  drawer
7
7
  };
@@ -27,7 +27,7 @@ var import_tailwind_variants = require("tailwind-variants");
27
27
  var dropdownMenu = (0, import_tailwind_variants.tv)({
28
28
  slots: {
29
29
  root: "",
30
- content: "min-w-56 bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
30
+ content: "min-w-[8rem] bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
31
31
  item: "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
32
32
  checkboxItem: "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
33
33
  iconWrapper: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dropdownMenu
3
- } from "../chunk-EXBKQDH5.mjs";
3
+ } from "../chunk-3PCDCW7G.mjs";
4
4
  export {
5
5
  dropdownMenu
6
6
  };
@@ -0,0 +1,44 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+
3
+ declare const editorBasic: tailwind_variants.TVReturnType<{
4
+ variant: {
5
+ default: {
6
+ wrapper: string[];
7
+ toolbar: string;
8
+ content: string;
9
+ };
10
+ };
11
+ }, {
12
+ wrapper: string[];
13
+ content: string[];
14
+ toolbar: string;
15
+ toolbarGroup: string;
16
+ }, undefined, {
17
+ variant: {
18
+ default: {
19
+ wrapper: string[];
20
+ toolbar: string;
21
+ content: string;
22
+ };
23
+ };
24
+ }, {
25
+ wrapper: string[];
26
+ content: string[];
27
+ toolbar: string;
28
+ toolbarGroup: string;
29
+ }, tailwind_variants.TVReturnType<{
30
+ variant: {
31
+ default: {
32
+ wrapper: string[];
33
+ toolbar: string;
34
+ content: string;
35
+ };
36
+ };
37
+ }, {
38
+ wrapper: string[];
39
+ content: string[];
40
+ toolbar: string;
41
+ toolbarGroup: string;
42
+ }, undefined, unknown, unknown, undefined>>;
43
+
44
+ export { editorBasic };
@@ -0,0 +1,44 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+
3
+ declare const editorBasic: tailwind_variants.TVReturnType<{
4
+ variant: {
5
+ default: {
6
+ wrapper: string[];
7
+ toolbar: string;
8
+ content: string;
9
+ };
10
+ };
11
+ }, {
12
+ wrapper: string[];
13
+ content: string[];
14
+ toolbar: string;
15
+ toolbarGroup: string;
16
+ }, undefined, {
17
+ variant: {
18
+ default: {
19
+ wrapper: string[];
20
+ toolbar: string;
21
+ content: string;
22
+ };
23
+ };
24
+ }, {
25
+ wrapper: string[];
26
+ content: string[];
27
+ toolbar: string;
28
+ toolbarGroup: string;
29
+ }, tailwind_variants.TVReturnType<{
30
+ variant: {
31
+ default: {
32
+ wrapper: string[];
33
+ toolbar: string;
34
+ content: string;
35
+ };
36
+ };
37
+ }, {
38
+ wrapper: string[];
39
+ content: string[];
40
+ toolbar: string;
41
+ toolbarGroup: string;
42
+ }, undefined, unknown, unknown, undefined>>;
43
+
44
+ export { editorBasic };
@@ -0,0 +1,58 @@
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/editor-basic.ts
21
+ var editor_basic_exports = {};
22
+ __export(editor_basic_exports, {
23
+ editorBasic: () => editorBasic
24
+ });
25
+ module.exports = __toCommonJS(editor_basic_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var editorBasic = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ wrapper: [
30
+ "overflow-y-auto",
31
+ "h-[calc(100%-var(--spacing-editor-toolbar))]"
32
+ ],
33
+ content: [
34
+ "w-full",
35
+ "[&_.tiptap.ProseMirror]:py-4",
36
+ "[&_.tiptap.ProseMirror]:px-6"
37
+ ],
38
+ toolbar: "flex items-center gap-0.5",
39
+ toolbarGroup: "flex items-center gap-0.5"
40
+ },
41
+ variants: {
42
+ variant: {
43
+ // rounded toolbar, muted background
44
+ default: {
45
+ wrapper: ["border rounded-md"],
46
+ toolbar: "bg-muted rounded-md p-1 mb-2",
47
+ content: ""
48
+ }
49
+ }
50
+ },
51
+ defaultVariants: {
52
+ variant: "default"
53
+ }
54
+ });
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ editorBasic
58
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ editorBasic
3
+ } from "../chunk-GRPMKEI2.mjs";
4
+ export {
5
+ editorBasic
6
+ };
@@ -0,0 +1,60 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import * as tailwind_merge from 'tailwind-merge';
3
+
4
+ declare const editorSpinner: tailwind_variants.TVReturnType<{
5
+ [key: string]: {
6
+ [key: string]: tailwind_merge.ClassNameValue | {
7
+ root?: tailwind_merge.ClassNameValue;
8
+ content?: tailwind_merge.ClassNameValue;
9
+ text?: tailwind_merge.ClassNameValue;
10
+ svg?: tailwind_merge.ClassNameValue;
11
+ circle?: tailwind_merge.ClassNameValue;
12
+ path?: tailwind_merge.ClassNameValue;
13
+ };
14
+ };
15
+ } | {
16
+ [x: string]: {
17
+ [x: string]: tailwind_merge.ClassNameValue | {
18
+ root?: tailwind_merge.ClassNameValue;
19
+ content?: tailwind_merge.ClassNameValue;
20
+ text?: tailwind_merge.ClassNameValue;
21
+ svg?: tailwind_merge.ClassNameValue;
22
+ circle?: tailwind_merge.ClassNameValue;
23
+ path?: tailwind_merge.ClassNameValue;
24
+ };
25
+ };
26
+ } | {}, {
27
+ root: string;
28
+ content: string[];
29
+ svg: string[];
30
+ circle: string[];
31
+ path: string[];
32
+ text: string;
33
+ }, undefined, {
34
+ [key: string]: {
35
+ [key: string]: tailwind_merge.ClassNameValue | {
36
+ root?: tailwind_merge.ClassNameValue;
37
+ content?: tailwind_merge.ClassNameValue;
38
+ text?: tailwind_merge.ClassNameValue;
39
+ svg?: tailwind_merge.ClassNameValue;
40
+ circle?: tailwind_merge.ClassNameValue;
41
+ path?: tailwind_merge.ClassNameValue;
42
+ };
43
+ };
44
+ } | {}, {
45
+ root: string;
46
+ content: string[];
47
+ svg: string[];
48
+ circle: string[];
49
+ path: string[];
50
+ text: string;
51
+ }, tailwind_variants.TVReturnType<unknown, {
52
+ root: string;
53
+ content: string[];
54
+ svg: string[];
55
+ circle: string[];
56
+ path: string[];
57
+ text: string;
58
+ }, undefined, unknown, unknown, undefined>>;
59
+
60
+ export { editorSpinner };
@@ -0,0 +1,60 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import * as tailwind_merge from 'tailwind-merge';
3
+
4
+ declare const editorSpinner: tailwind_variants.TVReturnType<{
5
+ [key: string]: {
6
+ [key: string]: tailwind_merge.ClassNameValue | {
7
+ root?: tailwind_merge.ClassNameValue;
8
+ content?: tailwind_merge.ClassNameValue;
9
+ text?: tailwind_merge.ClassNameValue;
10
+ svg?: tailwind_merge.ClassNameValue;
11
+ circle?: tailwind_merge.ClassNameValue;
12
+ path?: tailwind_merge.ClassNameValue;
13
+ };
14
+ };
15
+ } | {
16
+ [x: string]: {
17
+ [x: string]: tailwind_merge.ClassNameValue | {
18
+ root?: tailwind_merge.ClassNameValue;
19
+ content?: tailwind_merge.ClassNameValue;
20
+ text?: tailwind_merge.ClassNameValue;
21
+ svg?: tailwind_merge.ClassNameValue;
22
+ circle?: tailwind_merge.ClassNameValue;
23
+ path?: tailwind_merge.ClassNameValue;
24
+ };
25
+ };
26
+ } | {}, {
27
+ root: string;
28
+ content: string[];
29
+ svg: string[];
30
+ circle: string[];
31
+ path: string[];
32
+ text: string;
33
+ }, undefined, {
34
+ [key: string]: {
35
+ [key: string]: tailwind_merge.ClassNameValue | {
36
+ root?: tailwind_merge.ClassNameValue;
37
+ content?: tailwind_merge.ClassNameValue;
38
+ text?: tailwind_merge.ClassNameValue;
39
+ svg?: tailwind_merge.ClassNameValue;
40
+ circle?: tailwind_merge.ClassNameValue;
41
+ path?: tailwind_merge.ClassNameValue;
42
+ };
43
+ };
44
+ } | {}, {
45
+ root: string;
46
+ content: string[];
47
+ svg: string[];
48
+ circle: string[];
49
+ path: string[];
50
+ text: string;
51
+ }, tailwind_variants.TVReturnType<unknown, {
52
+ root: string;
53
+ content: string[];
54
+ svg: string[];
55
+ circle: string[];
56
+ path: string[];
57
+ text: string;
58
+ }, undefined, unknown, unknown, undefined>>;
59
+
60
+ export { editorSpinner };