@una-ui/preset-edge 0.54.4-29124123.a3132a8 → 0.54.4-29124168.8dc0bb4
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/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { colors } from '@unocss/preset-mini/colors';
|
|
|
3
3
|
import { fonts } from '@unocss/preset-mini/rules';
|
|
4
4
|
import { handler, parseColor } from '@unocss/preset-mini/utils';
|
|
5
5
|
import { mergeDeep } from 'unocss';
|
|
6
|
-
import { s as shortcuts } from './shared/preset-edge.
|
|
6
|
+
import { s as shortcuts } from './shared/preset-edge.CuPfp5JI.mjs';
|
|
7
7
|
|
|
8
8
|
function presetUna(options = {
|
|
9
9
|
// TODO: add options
|
|
@@ -135,6 +135,16 @@ function presetUna(options = {
|
|
|
135
135
|
selector: (input2) => `[checked] ${input2}, ${input2}[checked]`
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
+
},
|
|
139
|
+
(matcher) => {
|
|
140
|
+
const dataVaulRegex = /^group-data-\[vaul-drawer-direction=([\w-]+)\]:/;
|
|
141
|
+
const match = matcher.match(dataVaulRegex);
|
|
142
|
+
if (match) {
|
|
143
|
+
return {
|
|
144
|
+
matcher: matcher.slice(match[0].length),
|
|
145
|
+
selector: (s) => `.group[data-vaul-drawer-direction="${match[1]}"] ${s}`
|
|
146
|
+
};
|
|
147
|
+
}
|
|
138
148
|
}
|
|
139
149
|
],
|
|
140
150
|
preflights: [
|
package/dist/prefixes.mjs
CHANGED
|
@@ -60,6 +60,15 @@ const prefixes = [
|
|
|
60
60
|
"dialog-overlay",
|
|
61
61
|
"dialog-scroll-content",
|
|
62
62
|
"dialog-title",
|
|
63
|
+
"drawer",
|
|
64
|
+
"drawer-close",
|
|
65
|
+
"drawer-content",
|
|
66
|
+
"drawer-description",
|
|
67
|
+
"drawer-footer",
|
|
68
|
+
"drawer-header",
|
|
69
|
+
"drawer-overlay",
|
|
70
|
+
"drawer-title",
|
|
71
|
+
"drawer-trigger",
|
|
63
72
|
"dropdown-menu",
|
|
64
73
|
"dropdown-menu-content",
|
|
65
74
|
"dropdown-menu-group",
|
|
@@ -359,6 +359,30 @@ const dialog = [
|
|
|
359
359
|
staticDialog
|
|
360
360
|
];
|
|
361
361
|
|
|
362
|
+
const staticDrawer = {
|
|
363
|
+
// base
|
|
364
|
+
"drawer": "",
|
|
365
|
+
"drawer-overlay": "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
|
|
366
|
+
"drawer-content": "bg-background fixed z-50 flex h-auto flex-col",
|
|
367
|
+
"drawer-content-top": "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg",
|
|
368
|
+
"drawer-content-bottom": "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg",
|
|
369
|
+
"drawer-content-right": "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
370
|
+
"drawer-content-left": "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
371
|
+
"drawer-content-wrapper": "",
|
|
372
|
+
"drawer-handle": "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]:block",
|
|
373
|
+
"drawer-header": "flex flex-col gap-1.5 p-4",
|
|
374
|
+
"drawer-title": "text-foreground font-semibold",
|
|
375
|
+
"drawer-description": "text-muted text-sm",
|
|
376
|
+
"drawer-footer": "mt-auto flex flex-col gap-2 p-4"
|
|
377
|
+
};
|
|
378
|
+
const dynamicDrawer = [
|
|
379
|
+
// dynamic preset
|
|
380
|
+
];
|
|
381
|
+
const drawer = [
|
|
382
|
+
...dynamicDrawer,
|
|
383
|
+
staticDrawer
|
|
384
|
+
];
|
|
385
|
+
|
|
362
386
|
const staticDropdownMenu = {
|
|
363
387
|
// configurations
|
|
364
388
|
"dropdown-menu": "",
|
|
@@ -1227,7 +1251,8 @@ const shortcuts = [
|
|
|
1227
1251
|
...aspectRatio,
|
|
1228
1252
|
...resizable,
|
|
1229
1253
|
...alertDialog,
|
|
1230
|
-
...combobox
|
|
1254
|
+
...combobox,
|
|
1255
|
+
...drawer
|
|
1231
1256
|
];
|
|
1232
1257
|
|
|
1233
1258
|
export { shortcuts as s };
|
package/dist/shortcuts.mjs
CHANGED