@machinerd/js-module 0.8.1 → 0.9.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.
- package/README.md +6 -0
- package/dist/api-client-C0sbSOQf.mjs +1 -0
- package/dist/api-client-C3o2pO0q.cjs +1 -0
- package/dist/button-CQZuaIU7.mjs +1 -0
- package/dist/button-ChX3XGbR.cjs +1 -0
- package/dist/button-DHvx-GAg.d.cts +50 -0
- package/dist/button-DRIyBtEB.d.mts +50 -0
- package/dist/common-B8HXyhZa.cjs +1 -0
- package/dist/common-CWHkXe0F.mjs +1 -0
- package/dist/{common-Bn0Ko6B7.cjs → common-D4sUwkFd.cjs} +1 -1
- package/dist/{common-Df03Ovdm.mjs → common-ZUMpASnc.mjs} +1 -1
- package/dist/editor/index.cjs +1 -0
- package/dist/editor/index.d.cts +80 -0
- package/dist/editor/index.d.mts +80 -0
- package/dist/editor/index.mjs +1 -0
- package/dist/format-1_RTNUQv.mjs +1 -0
- package/dist/format-DEuImTYJ.cjs +1 -0
- package/dist/hooks/common/index.cjs +1 -0
- package/dist/hooks/common/index.d.cts +72 -0
- package/dist/hooks/common/index.d.mts +72 -0
- package/dist/hooks/common/index.mjs +1 -0
- package/dist/hooks/use-snackbar.cjs +1 -0
- package/dist/hooks/use-snackbar.d.cts +10 -0
- package/dist/hooks/use-snackbar.d.mts +10 -0
- package/dist/hooks/use-snackbar.mjs +1 -0
- package/dist/{index-B3fFA21M.d.mts → index-B1YNV_Vm.d.cts} +4 -0
- package/dist/{index-CeiAF-WU.d.cts → index-C8chDULk.d.mts} +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/providers/api-client/index.cjs +1 -0
- package/dist/providers/{index.d.cts → api-client/index.d.cts} +3 -3
- package/dist/providers/{index.d.mts → api-client/index.d.mts} +3 -3
- package/dist/providers/api-client/index.mjs +1 -0
- package/dist/providers/noti-stack/index.cjs +1 -0
- package/dist/providers/noti-stack/index.d.cts +11 -0
- package/dist/providers/noti-stack/index.d.mts +11 -0
- package/dist/providers/noti-stack/index.mjs +1 -0
- package/dist/{skeleton-DtV9S1QK.cjs → skeleton-B5ZccRFX.cjs} +1 -1
- package/dist/{skeleton-B6_oBhkl.mjs → skeleton-Y22bmaaB.mjs} +1 -1
- package/dist/src-6KfzqI9Z.cjs +1 -0
- package/dist/src-CIMlbgv1.mjs +1 -0
- package/dist/styles/editor.css +255 -0
- package/dist/styles/index.css +371 -0
- package/dist/ui/carousel/index.cjs +1 -1
- package/dist/ui/carousel/index.d.cts +9 -9
- package/dist/ui/carousel/index.d.mts +9 -9
- package/dist/ui/carousel/index.mjs +1 -1
- package/dist/ui/dialog/index.cjs +1 -1
- package/dist/ui/dialog/index.d.cts +2 -2
- package/dist/ui/dialog/index.d.mts +2 -2
- package/dist/ui/dialog/index.mjs +1 -1
- package/dist/ui/dnd/index.cjs +1 -0
- package/dist/ui/dnd/index.d.cts +17 -0
- package/dist/ui/dnd/index.d.mts +17 -0
- package/dist/ui/dnd/index.mjs +1 -0
- package/dist/ui/dropdown/index.cjs +1 -0
- package/dist/ui/dropdown/index.d.cts +72 -0
- package/dist/ui/dropdown/index.d.mts +72 -0
- package/dist/ui/dropdown/index.mjs +1 -0
- package/dist/ui/image/index.cjs +1 -1
- package/dist/ui/image/index.d.cts +3 -3
- package/dist/ui/image/index.d.mts +8 -8
- package/dist/ui/image/index.mjs +1 -1
- package/dist/ui/index.cjs +1 -1
- package/dist/ui/index.d.cts +10 -53
- package/dist/ui/index.d.mts +10 -53
- package/dist/ui/index.mjs +1 -1
- package/dist/ui/motion-dialog/index.cjs +1 -0
- package/dist/ui/motion-dialog/index.d.cts +34 -0
- package/dist/ui/motion-dialog/index.d.mts +34 -0
- package/dist/ui/motion-dialog/index.mjs +1 -0
- package/dist/ui/preserve-focus-button/index.cjs +1 -0
- package/dist/ui/preserve-focus-button/index.d.cts +12 -0
- package/dist/ui/preserve-focus-button/index.d.mts +12 -0
- package/dist/ui/preserve-focus-button/index.mjs +1 -0
- package/dist/ui/sheet/index.cjs +1 -1
- package/dist/ui/sheet/index.d.cts +2 -2
- package/dist/ui/sheet/index.d.mts +2 -2
- package/dist/ui/sheet/index.mjs +1 -1
- package/dist/ui/switch/index.cjs +1 -0
- package/dist/ui/switch/index.d.cts +16 -0
- package/dist/ui/switch/index.d.mts +16 -0
- package/dist/ui/switch/index.mjs +1 -0
- package/dist/ui/tooltip/index.cjs +1 -1
- package/dist/ui/tooltip/index.d.cts +2 -2
- package/dist/ui/tooltip/index.mjs +1 -1
- package/dist/ui-Bs9PP9eC.cjs +1 -0
- package/dist/ui-D2DoC_0E.mjs +1 -0
- package/dist/use-dialog-stack-Crj8YWJl.mjs +1 -0
- package/dist/use-dialog-stack-YiLs-sNf.cjs +1 -0
- package/dist/use-drag-resize-BdeLdulk.mjs +1 -0
- package/dist/use-drag-resize-DEgcua2U.d.cts +48 -0
- package/dist/use-drag-resize-DRHPv5RK.d.mts +48 -0
- package/dist/use-drag-resize-DeDqPC4h.cjs +1 -0
- package/dist/use-subset-image-Df2fCrtH.mjs +1 -0
- package/dist/use-subset-image-Dygkyw-W.d.mts +601 -0
- package/dist/use-subset-image-bDB5TSd4.d.cts +601 -0
- package/dist/use-subset-image-o_gmC1HL.cjs +1 -0
- package/dist/util/common.cjs +1 -1
- package/dist/util/common.d.cts +8 -1
- package/dist/util/common.d.mts +8 -1
- package/dist/util/common.mjs +1 -1
- package/dist/util/editor.cjs +1 -0
- package/dist/util/editor.d.cts +21 -0
- package/dist/util/editor.d.mts +21 -0
- package/dist/util/editor.mjs +1 -0
- package/dist/util/fetcher.cjs +1 -0
- package/dist/util/fetcher.d.cts +15 -0
- package/dist/util/fetcher.d.mts +15 -0
- package/dist/util/fetcher.mjs +1 -0
- package/dist/util/file.mjs +1 -1
- package/dist/util/format.cjs +1 -1
- package/dist/util/format.d.cts +29 -1
- package/dist/util/format.d.mts +29 -1
- package/dist/util/format.mjs +1 -1
- package/package.json +104 -33
- package/dist/hooks/index.cjs +0 -1
- package/dist/hooks/index.d.cts +0 -2
- package/dist/hooks/index.d.mts +0 -2
- package/dist/hooks/index.mjs +0 -1
- package/dist/hooks-CUj2xuzU.cjs +0 -1
- package/dist/hooks-gbU5dqVF.mjs +0 -1
- package/dist/index-BFHrNSKP.d.mts +0 -655
- package/dist/index-DiRj3rRA.d.cts +0 -655
- package/dist/providers/index.cjs +0 -1
- package/dist/providers/index.mjs +0 -1
- package/dist/providers-CkXkdYcB.cjs +0 -1
- package/dist/providers-zftmvT1z.mjs +0 -1
- package/dist/src-CjpmdVyv.cjs +0 -1
- package/dist/src-CukOR3K2.mjs +0 -1
- package/dist/use-subset-image-D8ssrZhj.mjs +0 -1
- package/dist/use-subset-image-DC86cg6O.cjs +0 -1
- /package/dist/{file-DShNxIW4.mjs → file-B-UJkabO.mjs} +0 -0
package/dist/styles/index.css
CHANGED
|
@@ -5,18 +5,22 @@
|
|
|
5
5
|
:root, :host {
|
|
6
6
|
--komc-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
|
|
7
7
|
monospace;
|
|
8
|
+
--komc-color-red-600: oklch(57.7% 0.245 27.325);
|
|
8
9
|
--komc-color-sky-950: #006699;
|
|
9
10
|
--komc-color-blue-50: oklch(97% 0.014 254.604);
|
|
10
11
|
--komc-color-blue-500: oklch(62.3% 0.214 259.815);
|
|
12
|
+
--komc-color-blue-600: oklch(54.6% 0.245 262.881);
|
|
11
13
|
--komc-color-indigo-600: oklch(51.1% 0.262 276.966);
|
|
12
14
|
--komc-color-indigo-700: oklch(45.7% 0.24 277.023);
|
|
13
15
|
--komc-color-gray-50: #fafafa;
|
|
14
16
|
--komc-color-gray-100: oklch(96.7% 0.003 264.542);
|
|
15
17
|
--komc-color-gray-200: #f5f5f5;
|
|
18
|
+
--komc-color-gray-300: oklch(87.2% 0.01 258.338);
|
|
16
19
|
--komc-color-gray-500: #e5e5e5;
|
|
17
20
|
--komc-color-gray-600: oklch(44.6% 0.03 256.802);
|
|
18
21
|
--komc-color-gray-700: #cccccc;
|
|
19
22
|
--komc-color-gray-800: #808080;
|
|
23
|
+
--komc-color-gray-900: oklch(21% 0.034 264.665);
|
|
20
24
|
--komc-color-neutral-50: oklch(98.5% 0 0);
|
|
21
25
|
--komc-color-neutral-100: oklch(97% 0 0);
|
|
22
26
|
--komc-color-neutral-200: oklch(92.2% 0 0);
|
|
@@ -33,6 +37,8 @@
|
|
|
33
37
|
--komc-container-lg: 32rem;
|
|
34
38
|
--komc-container-xl: 36rem;
|
|
35
39
|
--komc-container-2xl: 42rem;
|
|
40
|
+
--komc-container-4xl: 56rem;
|
|
41
|
+
--komc-container-6xl: 72rem;
|
|
36
42
|
--komc-text-xs: 0.75rem;
|
|
37
43
|
--komc-text-xs--line-height: calc(1 / 0.75);
|
|
38
44
|
--komc-text-sm: 0.875rem;
|
|
@@ -73,6 +79,20 @@
|
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
@layer utilities {
|
|
82
|
+
.komc\:\@container\/dialog-content {
|
|
83
|
+
container-type: inline-size;
|
|
84
|
+
container-name: dialog-content;
|
|
85
|
+
}
|
|
86
|
+
.komc\:\@container\/komc-editor {
|
|
87
|
+
container-type: inline-size;
|
|
88
|
+
container-name: komc-editor;
|
|
89
|
+
}
|
|
90
|
+
.komc\:pointer-events-auto {
|
|
91
|
+
pointer-events: auto;
|
|
92
|
+
}
|
|
93
|
+
.komc\:pointer-events-none {
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
}
|
|
76
96
|
.komc\:invisible {
|
|
77
97
|
visibility: hidden;
|
|
78
98
|
}
|
|
@@ -91,30 +111,54 @@
|
|
|
91
111
|
.komc\:sticky {
|
|
92
112
|
position: sticky;
|
|
93
113
|
}
|
|
114
|
+
.komc\:-inset-1\.5 {
|
|
115
|
+
inset: calc(var(--komc-spacing) * -1.5);
|
|
116
|
+
}
|
|
94
117
|
.komc\:inset-0 {
|
|
95
118
|
inset: 0px;
|
|
96
119
|
}
|
|
120
|
+
.komc\:-top-1 {
|
|
121
|
+
top: calc(var(--komc-spacing) * -1);
|
|
122
|
+
}
|
|
97
123
|
.komc\:top-0 {
|
|
98
124
|
top: 0px;
|
|
99
125
|
}
|
|
126
|
+
.komc\:top-1\/2 {
|
|
127
|
+
top: calc(1 / 2 * 100%);
|
|
128
|
+
}
|
|
100
129
|
.komc\:top-full {
|
|
101
130
|
top: 100%;
|
|
102
131
|
}
|
|
132
|
+
.komc\:-right-1 {
|
|
133
|
+
right: calc(var(--komc-spacing) * -1);
|
|
134
|
+
}
|
|
103
135
|
.komc\:right-0 {
|
|
104
136
|
right: 0px;
|
|
105
137
|
}
|
|
138
|
+
.komc\:right-1 {
|
|
139
|
+
right: var(--komc-spacing);
|
|
140
|
+
}
|
|
106
141
|
.komc\:right-5 {
|
|
107
142
|
right: calc(var(--komc-spacing) * 5);
|
|
108
143
|
}
|
|
144
|
+
.komc\:-bottom-1 {
|
|
145
|
+
bottom: calc(var(--komc-spacing) * -1);
|
|
146
|
+
}
|
|
109
147
|
.komc\:bottom-0 {
|
|
110
148
|
bottom: 0px;
|
|
111
149
|
}
|
|
112
150
|
.komc\:bottom-full {
|
|
113
151
|
bottom: 100%;
|
|
114
152
|
}
|
|
153
|
+
.komc\:-left-1 {
|
|
154
|
+
left: calc(var(--komc-spacing) * -1);
|
|
155
|
+
}
|
|
115
156
|
.komc\:left-0 {
|
|
116
157
|
left: 0px;
|
|
117
158
|
}
|
|
159
|
+
.komc\:left-1 {
|
|
160
|
+
left: var(--komc-spacing);
|
|
161
|
+
}
|
|
118
162
|
.komc\:left-1\/2 {
|
|
119
163
|
left: calc(1 / 2 * 100%);
|
|
120
164
|
}
|
|
@@ -124,12 +168,24 @@
|
|
|
124
168
|
.komc\:z-0 {
|
|
125
169
|
z-index: 0;
|
|
126
170
|
}
|
|
171
|
+
.komc\:z-2 {
|
|
172
|
+
z-index: 2;
|
|
173
|
+
}
|
|
127
174
|
.komc\:z-10 {
|
|
128
175
|
z-index: 10;
|
|
129
176
|
}
|
|
177
|
+
.komc\:z-20 {
|
|
178
|
+
z-index: 20;
|
|
179
|
+
}
|
|
180
|
+
.komc\:z-50 {
|
|
181
|
+
z-index: 50;
|
|
182
|
+
}
|
|
130
183
|
.komc\:z-99 {
|
|
131
184
|
z-index: 99;
|
|
132
185
|
}
|
|
186
|
+
.komc\:mx-4 {
|
|
187
|
+
margin-inline: calc(var(--komc-spacing) * 4);
|
|
188
|
+
}
|
|
133
189
|
.komc\:mx-auto {
|
|
134
190
|
margin-inline: auto;
|
|
135
191
|
}
|
|
@@ -139,6 +195,9 @@
|
|
|
139
195
|
.komc\:-mt-4 {
|
|
140
196
|
margin-top: calc(var(--komc-spacing) * -4);
|
|
141
197
|
}
|
|
198
|
+
.komc\:mt-0\.5 {
|
|
199
|
+
margin-top: calc(var(--komc-spacing) * 0.5);
|
|
200
|
+
}
|
|
142
201
|
.komc\:mt-3 {
|
|
143
202
|
margin-top: calc(var(--komc-spacing) * 3);
|
|
144
203
|
}
|
|
@@ -154,6 +213,9 @@
|
|
|
154
213
|
.komc\:-ml-4 {
|
|
155
214
|
margin-left: calc(var(--komc-spacing) * -4);
|
|
156
215
|
}
|
|
216
|
+
.komc\:ml-1 {
|
|
217
|
+
margin-left: var(--komc-spacing);
|
|
218
|
+
}
|
|
157
219
|
.komc\:block {
|
|
158
220
|
display: block;
|
|
159
221
|
}
|
|
@@ -166,18 +228,34 @@
|
|
|
166
228
|
.komc\:hidden {
|
|
167
229
|
display: none;
|
|
168
230
|
}
|
|
231
|
+
.komc\:inline {
|
|
232
|
+
display: inline;
|
|
233
|
+
}
|
|
169
234
|
.komc\:inline-flex {
|
|
170
235
|
display: inline-flex;
|
|
171
236
|
}
|
|
172
237
|
.komc\:aspect-square {
|
|
173
238
|
aspect-ratio: 1 / 1;
|
|
174
239
|
}
|
|
240
|
+
.komc\:size-5 {
|
|
241
|
+
width: calc(var(--komc-spacing) * 5);
|
|
242
|
+
height: calc(var(--komc-spacing) * 5);
|
|
243
|
+
}
|
|
244
|
+
.komc\:h-\(--dialog-content-height\) {
|
|
245
|
+
height: var(--dialog-content-height);
|
|
246
|
+
}
|
|
175
247
|
.komc\:h-2 {
|
|
176
248
|
height: calc(var(--komc-spacing) * 2);
|
|
177
249
|
}
|
|
178
250
|
.komc\:h-4 {
|
|
179
251
|
height: calc(var(--komc-spacing) * 4);
|
|
180
252
|
}
|
|
253
|
+
.komc\:h-5 {
|
|
254
|
+
height: calc(var(--komc-spacing) * 5);
|
|
255
|
+
}
|
|
256
|
+
.komc\:h-6 {
|
|
257
|
+
height: calc(var(--komc-spacing) * 6);
|
|
258
|
+
}
|
|
181
259
|
.komc\:h-7\.5 {
|
|
182
260
|
height: calc(var(--komc-spacing) * 7.5);
|
|
183
261
|
}
|
|
@@ -250,6 +328,9 @@
|
|
|
250
328
|
.komc\:min-h-16 {
|
|
251
329
|
min-height: calc(var(--komc-spacing) * 16);
|
|
252
330
|
}
|
|
331
|
+
.komc\:min-h-25 {
|
|
332
|
+
min-height: calc(var(--komc-spacing) * 25);
|
|
333
|
+
}
|
|
253
334
|
.komc\:min-h-32 {
|
|
254
335
|
min-height: calc(var(--komc-spacing) * 32);
|
|
255
336
|
}
|
|
@@ -271,6 +352,18 @@
|
|
|
271
352
|
.komc\:w-2 {
|
|
272
353
|
width: calc(var(--komc-spacing) * 2);
|
|
273
354
|
}
|
|
355
|
+
.komc\:w-5 {
|
|
356
|
+
width: calc(var(--komc-spacing) * 5);
|
|
357
|
+
}
|
|
358
|
+
.komc\:w-6 {
|
|
359
|
+
width: calc(var(--komc-spacing) * 6);
|
|
360
|
+
}
|
|
361
|
+
.komc\:w-10 {
|
|
362
|
+
width: calc(var(--komc-spacing) * 10);
|
|
363
|
+
}
|
|
364
|
+
.komc\:w-14 {
|
|
365
|
+
width: calc(var(--komc-spacing) * 14);
|
|
366
|
+
}
|
|
274
367
|
.komc\:w-\[50dvw\] {
|
|
275
368
|
width: 50dvw;
|
|
276
369
|
}
|
|
@@ -292,6 +385,12 @@
|
|
|
292
385
|
.komc\:max-w-2xl {
|
|
293
386
|
max-width: var(--komc-container-2xl);
|
|
294
387
|
}
|
|
388
|
+
.komc\:max-w-4xl {
|
|
389
|
+
max-width: var(--komc-container-4xl);
|
|
390
|
+
}
|
|
391
|
+
.komc\:max-w-6xl {
|
|
392
|
+
max-width: var(--komc-container-6xl);
|
|
393
|
+
}
|
|
295
394
|
.komc\:max-w-70 {
|
|
296
395
|
max-width: calc(var(--komc-spacing) * 70);
|
|
297
396
|
}
|
|
@@ -352,6 +451,10 @@
|
|
|
352
451
|
--tw-translate-x: 100%;
|
|
353
452
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
354
453
|
}
|
|
454
|
+
.komc\:-translate-y-1\/2 {
|
|
455
|
+
--tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
|
|
456
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
457
|
+
}
|
|
355
458
|
.komc\:-translate-y-2 {
|
|
356
459
|
--tw-translate-y: calc(var(--komc-spacing) * -2);
|
|
357
460
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -374,18 +477,48 @@
|
|
|
374
477
|
.komc\:cursor-default {
|
|
375
478
|
cursor: default;
|
|
376
479
|
}
|
|
480
|
+
.komc\:cursor-ew-resize {
|
|
481
|
+
cursor: ew-resize;
|
|
482
|
+
}
|
|
483
|
+
.komc\:cursor-grab {
|
|
484
|
+
cursor: grab;
|
|
485
|
+
}
|
|
486
|
+
.komc\:cursor-ne-resize {
|
|
487
|
+
cursor: ne-resize;
|
|
488
|
+
}
|
|
489
|
+
.komc\:cursor-ns-resize {
|
|
490
|
+
cursor: ns-resize;
|
|
491
|
+
}
|
|
492
|
+
.komc\:cursor-nw-resize {
|
|
493
|
+
cursor: nw-resize;
|
|
494
|
+
}
|
|
377
495
|
.komc\:cursor-pointer {
|
|
378
496
|
cursor: pointer;
|
|
379
497
|
}
|
|
498
|
+
.komc\:cursor-se-resize {
|
|
499
|
+
cursor: se-resize;
|
|
500
|
+
}
|
|
501
|
+
.komc\:cursor-sw-resize {
|
|
502
|
+
cursor: sw-resize;
|
|
503
|
+
}
|
|
504
|
+
.komc\:touch-none {
|
|
505
|
+
touch-action: none;
|
|
506
|
+
}
|
|
380
507
|
.komc\:grid-cols-2 {
|
|
381
508
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
382
509
|
}
|
|
383
510
|
.komc\:flex-col {
|
|
384
511
|
flex-direction: column;
|
|
385
512
|
}
|
|
513
|
+
.komc\:flex-col-reverse {
|
|
514
|
+
flex-direction: column-reverse;
|
|
515
|
+
}
|
|
386
516
|
.komc\:flex-row {
|
|
387
517
|
flex-direction: row;
|
|
388
518
|
}
|
|
519
|
+
.komc\:flex-row-reverse {
|
|
520
|
+
flex-direction: row-reverse;
|
|
521
|
+
}
|
|
389
522
|
.komc\:flex-wrap {
|
|
390
523
|
flex-wrap: wrap;
|
|
391
524
|
}
|
|
@@ -433,9 +566,15 @@
|
|
|
433
566
|
margin-block-start: calc(calc(var(--komc-spacing) * 3) * var(--tw-space-y-reverse));
|
|
434
567
|
margin-block-end: calc(calc(var(--komc-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
435
568
|
}
|
|
569
|
+
.komc\:gap-x-1 {
|
|
570
|
+
column-gap: var(--komc-spacing);
|
|
571
|
+
}
|
|
436
572
|
.komc\:gap-x-2 {
|
|
437
573
|
column-gap: calc(var(--komc-spacing) * 2);
|
|
438
574
|
}
|
|
575
|
+
.komc\:gap-y-2\.5 {
|
|
576
|
+
row-gap: calc(var(--komc-spacing) * 2.5);
|
|
577
|
+
}
|
|
439
578
|
.komc\:overflow-auto {
|
|
440
579
|
overflow: auto;
|
|
441
580
|
}
|
|
@@ -480,6 +619,10 @@
|
|
|
480
619
|
border-style: var(--tw-border-style);
|
|
481
620
|
border-width: 2px;
|
|
482
621
|
}
|
|
622
|
+
.komc\:border-\[0\.6px\] {
|
|
623
|
+
border-style: var(--tw-border-style);
|
|
624
|
+
border-width: 0.6px;
|
|
625
|
+
}
|
|
483
626
|
.komc\:border-t {
|
|
484
627
|
border-top-style: var(--tw-border-style);
|
|
485
628
|
border-top-width: 1px;
|
|
@@ -503,6 +646,9 @@
|
|
|
503
646
|
.komc\:border-blue-500 {
|
|
504
647
|
border-color: var(--komc-color-blue-500);
|
|
505
648
|
}
|
|
649
|
+
.komc\:border-gray-200 {
|
|
650
|
+
border-color: var(--komc-color-gray-200);
|
|
651
|
+
}
|
|
506
652
|
.komc\:border-gray-600 {
|
|
507
653
|
border-color: var(--komc-color-gray-600);
|
|
508
654
|
}
|
|
@@ -593,6 +739,12 @@
|
|
|
593
739
|
.komc\:bg-white {
|
|
594
740
|
background-color: var(--komc-color-white);
|
|
595
741
|
}
|
|
742
|
+
.komc\:bg-white\/60 {
|
|
743
|
+
background-color: var(--komc-color-white);
|
|
744
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
745
|
+
background-color: color-mix(in oklab, var(--komc-color-white) 60%, transparent);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
596
748
|
.komc\:p-0 {
|
|
597
749
|
padding: 0px;
|
|
598
750
|
}
|
|
@@ -719,6 +871,9 @@
|
|
|
719
871
|
.komc\:break-all {
|
|
720
872
|
word-break: break-all;
|
|
721
873
|
}
|
|
874
|
+
.komc\:whitespace-pre {
|
|
875
|
+
white-space: pre;
|
|
876
|
+
}
|
|
722
877
|
.komc\:text-\[\#1890FF\] {
|
|
723
878
|
color: #1890FF;
|
|
724
879
|
}
|
|
@@ -731,6 +886,9 @@
|
|
|
731
886
|
.komc\:text-gray-800 {
|
|
732
887
|
color: var(--komc-color-gray-800);
|
|
733
888
|
}
|
|
889
|
+
.komc\:text-gray-900 {
|
|
890
|
+
color: var(--komc-color-gray-900);
|
|
891
|
+
}
|
|
734
892
|
.komc\:text-neutral-500 {
|
|
735
893
|
color: var(--komc-color-neutral-500);
|
|
736
894
|
}
|
|
@@ -743,12 +901,18 @@
|
|
|
743
901
|
.komc\:text-neutral-800 {
|
|
744
902
|
color: var(--komc-color-neutral-800);
|
|
745
903
|
}
|
|
904
|
+
.komc\:text-red-600 {
|
|
905
|
+
color: var(--komc-color-red-600);
|
|
906
|
+
}
|
|
746
907
|
.komc\:text-white {
|
|
747
908
|
color: var(--komc-color-white);
|
|
748
909
|
}
|
|
749
910
|
.komc\:opacity-0 {
|
|
750
911
|
opacity: 0%;
|
|
751
912
|
}
|
|
913
|
+
.komc\:opacity-50 {
|
|
914
|
+
opacity: 50%;
|
|
915
|
+
}
|
|
752
916
|
.komc\:opacity-100 {
|
|
753
917
|
opacity: 100%;
|
|
754
918
|
}
|
|
@@ -764,6 +928,14 @@
|
|
|
764
928
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
765
929
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
766
930
|
}
|
|
931
|
+
.komc\:shadow-xl {
|
|
932
|
+
--tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
933
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
934
|
+
}
|
|
935
|
+
.komc\:shadow-xs {
|
|
936
|
+
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
|
|
937
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
938
|
+
}
|
|
767
939
|
.komc\:drop-shadow-2xl {
|
|
768
940
|
--tw-drop-shadow-size: drop-shadow(0 25px 25px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.15)));
|
|
769
941
|
--tw-drop-shadow: drop-shadow(var(--komc-drop-shadow-2xl));
|
|
@@ -799,6 +971,11 @@
|
|
|
799
971
|
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
800
972
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
801
973
|
}
|
|
974
|
+
.komc\:transition {
|
|
975
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
976
|
+
transition-timing-function: var(--tw-ease, var(--komc-default-transition-timing-function));
|
|
977
|
+
transition-duration: var(--tw-duration, var(--komc-default-transition-duration));
|
|
978
|
+
}
|
|
802
979
|
.komc\:transition-all {
|
|
803
980
|
transition-property: all;
|
|
804
981
|
transition-timing-function: var(--tw-ease, var(--komc-default-transition-timing-function));
|
|
@@ -835,6 +1012,38 @@
|
|
|
835
1012
|
--tw-outline-style: none;
|
|
836
1013
|
outline-style: none;
|
|
837
1014
|
}
|
|
1015
|
+
.komc\:select-none {
|
|
1016
|
+
-webkit-user-select: none;
|
|
1017
|
+
user-select: none;
|
|
1018
|
+
}
|
|
1019
|
+
:is(.komc\:\*\:h-1\.5 > *) {
|
|
1020
|
+
height: calc(var(--komc-spacing) * 1.5);
|
|
1021
|
+
}
|
|
1022
|
+
:is(.komc\:\*\:h-full > *) {
|
|
1023
|
+
height: 100%;
|
|
1024
|
+
}
|
|
1025
|
+
:is(.komc\:\*\:w-1\.5 > *) {
|
|
1026
|
+
width: calc(var(--komc-spacing) * 1.5);
|
|
1027
|
+
}
|
|
1028
|
+
:is(.komc\:\*\:w-full > *) {
|
|
1029
|
+
width: 100%;
|
|
1030
|
+
}
|
|
1031
|
+
:is(.komc\:\*\*\:pointer-events-auto *) {
|
|
1032
|
+
pointer-events: auto;
|
|
1033
|
+
}
|
|
1034
|
+
@media (hover: hover) {
|
|
1035
|
+
.komc\:group-hover\:opacity-100:is(:where(.komc\:group):hover *) {
|
|
1036
|
+
opacity: 100%;
|
|
1037
|
+
}
|
|
1038
|
+
.komc\:group-hover\/resize\:bg-blue-500\/50:is(:where(.komc\:group\/resize):hover *) {
|
|
1039
|
+
background-color: var(--komc-color-blue-500);
|
|
1040
|
+
}
|
|
1041
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1042
|
+
.komc\:group-hover\/resize\:bg-blue-500\/50:is(:where(.komc\:group\/resize):hover *) {
|
|
1043
|
+
background-color: color-mix(in oklab, var(--komc-color-blue-500) 50%, transparent);
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
838
1047
|
.komc\:after\:pointer-events-none::after {
|
|
839
1048
|
content: var(--tw-content);
|
|
840
1049
|
pointer-events: none;
|
|
@@ -843,6 +1052,18 @@
|
|
|
843
1052
|
content: var(--tw-content);
|
|
844
1053
|
visibility: hidden;
|
|
845
1054
|
}
|
|
1055
|
+
.komc\:after\:absolute::after {
|
|
1056
|
+
content: var(--tw-content);
|
|
1057
|
+
position: absolute;
|
|
1058
|
+
}
|
|
1059
|
+
.komc\:after\:-inset-1\.5::after {
|
|
1060
|
+
content: var(--tw-content);
|
|
1061
|
+
inset: calc(var(--komc-spacing) * -1.5);
|
|
1062
|
+
}
|
|
1063
|
+
.komc\:after\:z-1::after {
|
|
1064
|
+
content: var(--tw-content);
|
|
1065
|
+
z-index: 1;
|
|
1066
|
+
}
|
|
846
1067
|
.komc\:after\:h-0::after {
|
|
847
1068
|
content: var(--tw-content);
|
|
848
1069
|
height: 0px;
|
|
@@ -851,11 +1072,47 @@
|
|
|
851
1072
|
content: var(--tw-content);
|
|
852
1073
|
overflow: hidden;
|
|
853
1074
|
}
|
|
1075
|
+
.komc\:after\:rounded-\(--node-radius\)::after {
|
|
1076
|
+
content: var(--tw-content);
|
|
1077
|
+
border-radius: var(--node-radius);
|
|
1078
|
+
}
|
|
1079
|
+
.komc\:after\:bg-\[\#2383E2\]\/14::after {
|
|
1080
|
+
content: var(--tw-content);
|
|
1081
|
+
background-color: color-mix(in oklab, #2383E2 14%, transparent);
|
|
1082
|
+
}
|
|
854
1083
|
.komc\:after\:font-bold::after {
|
|
855
1084
|
content: var(--tw-content);
|
|
856
1085
|
--tw-font-weight: var(--komc-font-weight-bold);
|
|
857
1086
|
font-weight: var(--komc-font-weight-bold);
|
|
858
1087
|
}
|
|
1088
|
+
.komc\:after\:opacity-0::after {
|
|
1089
|
+
content: var(--tw-content);
|
|
1090
|
+
opacity: 0%;
|
|
1091
|
+
}
|
|
1092
|
+
.komc\:after\:opacity-100::after {
|
|
1093
|
+
content: var(--tw-content);
|
|
1094
|
+
opacity: 100%;
|
|
1095
|
+
}
|
|
1096
|
+
.komc\:after\:transition-opacity::after {
|
|
1097
|
+
content: var(--tw-content);
|
|
1098
|
+
transition-property: opacity;
|
|
1099
|
+
transition-timing-function: var(--tw-ease, var(--komc-default-transition-timing-function));
|
|
1100
|
+
transition-duration: var(--tw-duration, var(--komc-default-transition-duration));
|
|
1101
|
+
}
|
|
1102
|
+
.komc\:after\:duration-200::after {
|
|
1103
|
+
content: var(--tw-content);
|
|
1104
|
+
--tw-duration: 200ms;
|
|
1105
|
+
transition-duration: 200ms;
|
|
1106
|
+
}
|
|
1107
|
+
.komc\:after\:ease-in-out::after {
|
|
1108
|
+
content: var(--tw-content);
|
|
1109
|
+
--tw-ease: var(--komc-ease-in-out);
|
|
1110
|
+
transition-timing-function: var(--komc-ease-in-out);
|
|
1111
|
+
}
|
|
1112
|
+
.komc\:after\:content-\[\"\"\]::after {
|
|
1113
|
+
--tw-content: "";
|
|
1114
|
+
content: var(--tw-content);
|
|
1115
|
+
}
|
|
859
1116
|
.komc\:after\:content-\[attr\(data-text\)\]::after {
|
|
860
1117
|
--tw-content: attr(data-text);
|
|
861
1118
|
content: var(--tw-content);
|
|
@@ -865,7 +1122,17 @@
|
|
|
865
1122
|
-webkit-user-select: none;
|
|
866
1123
|
user-select: none;
|
|
867
1124
|
}
|
|
1125
|
+
.komc\:focus-within\:border-blue-500:focus-within {
|
|
1126
|
+
border-color: var(--komc-color-blue-500);
|
|
1127
|
+
}
|
|
1128
|
+
.komc\:focus-within\:ring-4:focus-within {
|
|
1129
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1130
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1131
|
+
}
|
|
868
1132
|
@media (hover: hover) {
|
|
1133
|
+
.komc\:hover\:z-1:hover {
|
|
1134
|
+
z-index: 1;
|
|
1135
|
+
}
|
|
869
1136
|
.komc\:hover\:border-transparent:hover {
|
|
870
1137
|
border-color: transparent;
|
|
871
1138
|
}
|
|
@@ -878,12 +1145,24 @@
|
|
|
878
1145
|
.komc\:hover\:bg-blue-500:hover {
|
|
879
1146
|
background-color: var(--komc-color-blue-500);
|
|
880
1147
|
}
|
|
1148
|
+
.komc\:hover\:bg-blue-600:hover {
|
|
1149
|
+
background-color: var(--komc-color-blue-600);
|
|
1150
|
+
}
|
|
1151
|
+
.komc\:hover\:bg-gray-100:hover {
|
|
1152
|
+
background-color: var(--komc-color-gray-100);
|
|
1153
|
+
}
|
|
881
1154
|
.komc\:hover\:bg-gray-200:hover {
|
|
882
1155
|
background-color: var(--komc-color-gray-200);
|
|
883
1156
|
}
|
|
884
1157
|
.komc\:hover\:bg-indigo-700:hover {
|
|
885
1158
|
background-color: var(--komc-color-indigo-700);
|
|
886
1159
|
}
|
|
1160
|
+
.komc\:hover\:bg-neutral-50:hover {
|
|
1161
|
+
background-color: var(--komc-color-neutral-50);
|
|
1162
|
+
}
|
|
1163
|
+
.komc\:hover\:bg-neutral-200:hover {
|
|
1164
|
+
background-color: var(--komc-color-neutral-200);
|
|
1165
|
+
}
|
|
887
1166
|
.komc\:hover\:bg-night-700:hover {
|
|
888
1167
|
background-color: var(--komc-color-night-700);
|
|
889
1168
|
}
|
|
@@ -921,6 +1200,9 @@
|
|
|
921
1200
|
text-decoration-line: underline;
|
|
922
1201
|
}
|
|
923
1202
|
}
|
|
1203
|
+
.komc\:active\:cursor-grabbing:active {
|
|
1204
|
+
cursor: grabbing;
|
|
1205
|
+
}
|
|
924
1206
|
.komc\:active\:border-transparent:active {
|
|
925
1207
|
border-color: transparent;
|
|
926
1208
|
}
|
|
@@ -975,6 +1257,9 @@
|
|
|
975
1257
|
.komc\:active\:underline:active {
|
|
976
1258
|
text-decoration-line: underline;
|
|
977
1259
|
}
|
|
1260
|
+
.komc\:disabled\:pointer-events-none:disabled {
|
|
1261
|
+
pointer-events: none;
|
|
1262
|
+
}
|
|
978
1263
|
.komc\:disabled\:cursor-default:disabled {
|
|
979
1264
|
cursor: default;
|
|
980
1265
|
}
|
|
@@ -1005,6 +1290,45 @@
|
|
|
1005
1290
|
.komc\:disabled\:text-gray-800:disabled {
|
|
1006
1291
|
color: var(--komc-color-gray-800);
|
|
1007
1292
|
}
|
|
1293
|
+
:is(.komc\:\*\:data-komc-node-clip\:opacity-100 > *)[data-komc-node-clip] {
|
|
1294
|
+
opacity: 100%;
|
|
1295
|
+
}
|
|
1296
|
+
:is(.komc\:\*\:data-komc-node-clip\:outline-0 > *)[data-komc-node-clip] {
|
|
1297
|
+
outline-style: var(--tw-outline-style);
|
|
1298
|
+
outline-width: 0px;
|
|
1299
|
+
}
|
|
1300
|
+
:is(.komc\:\*\:data-komc-node-clip\:-outline-offset-1 > *)[data-komc-node-clip] {
|
|
1301
|
+
outline-offset: calc(1px * -1);
|
|
1302
|
+
}
|
|
1303
|
+
:is(.komc\:\*\:data-komc-node-clip\:outline-gray-700 > *)[data-komc-node-clip] {
|
|
1304
|
+
outline-color: var(--komc-color-gray-700);
|
|
1305
|
+
}
|
|
1306
|
+
:is(.komc\:\*\:data-komc-node-clip\:transition-opacity > *)[data-komc-node-clip] {
|
|
1307
|
+
transition-property: opacity;
|
|
1308
|
+
transition-timing-function: var(--tw-ease, var(--komc-default-transition-timing-function));
|
|
1309
|
+
transition-duration: var(--tw-duration, var(--komc-default-transition-duration));
|
|
1310
|
+
}
|
|
1311
|
+
:is(.komc\:\*\:data-komc-node-clip\:duration-200 > *)[data-komc-node-clip] {
|
|
1312
|
+
--tw-duration: 200ms;
|
|
1313
|
+
transition-duration: 200ms;
|
|
1314
|
+
}
|
|
1315
|
+
:is(.komc\:\*\:data-komc-node-clip\:ease-in-out > *)[data-komc-node-clip] {
|
|
1316
|
+
--tw-ease: var(--komc-ease-in-out);
|
|
1317
|
+
transition-timing-function: var(--komc-ease-in-out);
|
|
1318
|
+
}
|
|
1319
|
+
:is(.komc\:\*\:data-komc-node-clip\:outline-none > *)[data-komc-node-clip] {
|
|
1320
|
+
--tw-outline-style: none;
|
|
1321
|
+
outline-style: none;
|
|
1322
|
+
}
|
|
1323
|
+
@media (hover: hover) {
|
|
1324
|
+
:is(.komc\:hover\:\*\:data-komc-node-clip\:opacity-70:hover > *)[data-komc-node-clip] {
|
|
1325
|
+
opacity: 70%;
|
|
1326
|
+
}
|
|
1327
|
+
:is(.komc\:hover\:\*\:data-komc-node-clip\:outline-3:hover > *)[data-komc-node-clip] {
|
|
1328
|
+
outline-style: var(--tw-outline-style);
|
|
1329
|
+
outline-width: 3px;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1008
1332
|
.komc\:data-\[state\=closed\]\:scale-95[data-state="closed"] {
|
|
1009
1333
|
--tw-scale-x: 95%;
|
|
1010
1334
|
--tw-scale-y: 95%;
|
|
@@ -1031,6 +1355,29 @@
|
|
|
1031
1355
|
.komc\:data-\[state\=open\]\:opacity-100[data-state="open"] {
|
|
1032
1356
|
opacity: 100%;
|
|
1033
1357
|
}
|
|
1358
|
+
@media (width >= 40rem) {
|
|
1359
|
+
.komc\:sm\:grid-cols-3 {
|
|
1360
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
@media (width >= 48rem) {
|
|
1364
|
+
.komc\:md\:grid-cols-4 {
|
|
1365
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
@media (width >= 64rem) {
|
|
1369
|
+
.komc\:lg\:grid-cols-5 {
|
|
1370
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
.komc\:\[\&_span\]\:translate-x-0\.5 span {
|
|
1374
|
+
--tw-translate-x: calc(var(--komc-spacing) * 0.5);
|
|
1375
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1376
|
+
}
|
|
1377
|
+
.komc\:\[\&_span\]\:translate-x-4\.5 span {
|
|
1378
|
+
--tw-translate-x: calc(var(--komc-spacing) * 4.5);
|
|
1379
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1380
|
+
}
|
|
1034
1381
|
.komc\:\[\&_svg\]\:transition-colors svg {
|
|
1035
1382
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
1036
1383
|
transition-timing-function: var(--tw-ease, var(--komc-default-transition-timing-function));
|
|
@@ -1040,6 +1387,21 @@
|
|
|
1040
1387
|
--tw-duration: 200ms;
|
|
1041
1388
|
transition-duration: 200ms;
|
|
1042
1389
|
}
|
|
1390
|
+
.komc\:\[\&\>button\]\:absolute > button {
|
|
1391
|
+
position: absolute;
|
|
1392
|
+
}
|
|
1393
|
+
.komc\:\[\&\>button\]\:top-10 > button {
|
|
1394
|
+
top: calc(var(--komc-spacing) * 10);
|
|
1395
|
+
}
|
|
1396
|
+
.komc\:\[\&\>button\]\:right-6 > button {
|
|
1397
|
+
right: calc(var(--komc-spacing) * 6);
|
|
1398
|
+
}
|
|
1399
|
+
.komc\:\[\&\>button\]\:bg-blue-500 > button {
|
|
1400
|
+
background-color: var(--komc-color-blue-500);
|
|
1401
|
+
}
|
|
1402
|
+
.komc\:\[\&\>button\]\:bg-gray-300 > button {
|
|
1403
|
+
background-color: var(--komc-color-gray-300);
|
|
1404
|
+
}
|
|
1043
1405
|
.komc\:\[\&\>input\]\:h-full > input {
|
|
1044
1406
|
height: 100%;
|
|
1045
1407
|
}
|
|
@@ -1067,6 +1429,9 @@
|
|
|
1067
1429
|
background-color: transparent;
|
|
1068
1430
|
box-sizing: border-box;
|
|
1069
1431
|
}
|
|
1432
|
+
[data-komc][data-komc-dialog] {
|
|
1433
|
+
--dialog-content-height: 60vh;
|
|
1434
|
+
}
|
|
1070
1435
|
button[data-komc] {
|
|
1071
1436
|
cursor: pointer;
|
|
1072
1437
|
opacity: 1;
|
|
@@ -1274,6 +1639,11 @@
|
|
|
1274
1639
|
initial-value: "";
|
|
1275
1640
|
inherits: false;
|
|
1276
1641
|
}
|
|
1642
|
+
@property --tw-outline-style {
|
|
1643
|
+
syntax: "*";
|
|
1644
|
+
inherits: false;
|
|
1645
|
+
initial-value: solid;
|
|
1646
|
+
}
|
|
1277
1647
|
@property --tw-scale-x {
|
|
1278
1648
|
syntax: "*";
|
|
1279
1649
|
inherits: false;
|
|
@@ -1343,6 +1713,7 @@
|
|
|
1343
1713
|
--tw-duration: initial;
|
|
1344
1714
|
--tw-ease: initial;
|
|
1345
1715
|
--tw-content: "";
|
|
1716
|
+
--tw-outline-style: solid;
|
|
1346
1717
|
--tw-scale-x: 1;
|
|
1347
1718
|
--tw-scale-y: 1;
|
|
1348
1719
|
--tw-scale-z: 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`),t=require(`../../common-
|
|
1
|
+
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`),t=require(`../../common-D4sUwkFd.cjs`);let n=require(`react`);n=e.t(n);let r=require(`react/jsx-runtime`),i=require(`clsx`);i=e.t(i);let a=require(`embla-carousel-react`);a=e.t(a);const o=n.default.createContext(null);function s(){let e=n.default.useContext(o);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function c({orientation:e=`horizontal`,options:i,setApi:s,plugins:c,className:l,children:u,...d}){let[f,p]=(0,a.default)({...i,axis:e===`horizontal`?`x`:`y`},c),[m,h]=(0,n.useState)(!1),[g,_]=(0,n.useState)(!1),[v,y]=(0,n.useState)(0),[b,x]=(0,n.useState)(0),S=(0,n.useCallback)(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()),x(e.selectedScrollSnap()))},[]),C=(0,n.useCallback)(()=>{p?.scrollPrev()},[p]),w=(0,n.useCallback)(()=>{p?.scrollNext()},[p]),T=(0,n.useCallback)(e=>{p?.scrollTo(e)},[p]),E=(0,n.useCallback)(()=>{y(p?.scrollSnapList().length||0)},[p]),D=(0,n.useCallback)(t=>{e===`horizontal`?t.key===`ArrowLeft`?(t.preventDefault(),C()):t.key===`ArrowRight`&&(t.preventDefault(),w()):t.key===`ArrowUp`?(t.preventDefault(),C()):t.key===`ArrowDown`&&(t.preventDefault(),w())},[C,w,e]);return(0,n.useEffect)(()=>{!p||!s||s(p)},[p,s]),(0,n.useEffect)(()=>{if(p)return S(p),E(),p.on(`reInit`,E),p.on(`reInit`,S),p.on(`select`,S),()=>{p?.off(`select`,S)}},[p,E,S]),(0,r.jsx)(o.Provider,{value:{carouselRef:f,api:p,options:i,orientation:e||(i?.axis===`y`?`vertical`:`horizontal`),scrollPrev:C,scrollNext:w,canScrollPrev:m,canScrollNext:g,scrollTo:T,dots:v,selectedScrollSnap:b},children:(0,r.jsx)(`div`,{"data-komc":!0,role:`region`,"aria-label":`carousel`,"aria-roledescription":`carousel`,tabIndex:0,onKeyDownCapture:D,className:t.n(`komc:relative`,l),...d,children:u})})}function l({children:e,className:n,...i}){let{carouselRef:a}=s();return(0,r.jsx)(`div`,{ref:a,"data-komc":!0,className:t.n(`komc:h-full komc:overflow-hidden`,n),...i,children:e})}function u({className:e,...n}){let{orientation:i}=s();return(0,r.jsx)(`div`,{"data-komc":!0,className:t.n(`komc:flex komc:h-full`,i===`horizontal`?`komc:-ml-4`:`komc:-mt-4 komc:flex-col`,e),...n})}function d({className:e,...n}){let{orientation:i}=s();return(0,r.jsx)(`div`,{"data-komc":!0,className:t.n(`komc:min-w-0 komc:shrink-0 komc:grow-0 komc:basis-full`,i===`horizontal`?`komc:pl-4`:`komc:pt-4`,e),...n})}function f({children:e,className:t,...n}){let{scrollPrev:a,canScrollPrev:o}=s();return(0,r.jsx)(`button`,{type:`button`,"data-komc":!0,disabled:!o,"aria-label":`previous slide`,className:(0,i.default)(`komc:w-full`,t),onClick:a,...n,children:e})}function p({children:e,className:t,...n}){let{scrollNext:a,canScrollNext:o}=s();return(0,r.jsx)(`button`,{type:`button`,"data-komc":!0,disabled:!o,"aria-label":`next slide`,className:(0,i.default)(`komc:w-full`,t),onClick:a,...n,children:e})}function m({children:e,...t}){let{dots:n,selectedScrollSnap:i,scrollTo:a}=s();return(0,r.jsx)(r.Fragment,{children:Array.from({length:n}).map((n,o)=>(0,r.jsx)(`button`,{type:`button`,"data-komc":!0,"data-selected":i===o,"aria-label":`go to slide ${o+1}`,onClick:()=>a(o),...t,children:e?.(o)},o))})}function h({index:e,children:t,...n}){let{selectedScrollSnap:i,scrollTo:a}=s();return(0,r.jsx)(`button`,{type:`button`,"data-komc":!0,"data-selected":i===e,"aria-label":`go to slide ${e+1}`,onClick:()=>a(e),...n,children:t})}exports.Carousel=c,exports.CarouselDot=h,exports.CarouselDots=m,exports.CarouselItem=d,exports.CarouselNext=p,exports.CarouselPrevious=f,exports.CarouselViewport=l,exports.CarouselWrapper=u,exports.useCarousel=s;
|