@una-ui/preset-edge 0.52.1-29102745.8b48a21 → 0.52.1-29103192.b22816b
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.BhImSN71.mjs';
|
|
7
7
|
|
|
8
8
|
function presetUna(options = {
|
|
9
9
|
// TODO: add options
|
package/dist/prefixes.mjs
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
const prefixes = [
|
|
2
2
|
"accordion",
|
|
3
3
|
"alert",
|
|
4
|
+
"alert-dialog",
|
|
5
|
+
"alert-dialog-action",
|
|
6
|
+
"alert-dialog-cancel",
|
|
7
|
+
"alert-dialog-content",
|
|
8
|
+
"alert-dialog-description",
|
|
9
|
+
"alert-dialog-footer",
|
|
10
|
+
"alert-dialog-header",
|
|
11
|
+
"alert-dialog-overlay",
|
|
12
|
+
"alert-dialog-title",
|
|
13
|
+
"alert-dialog-trigger",
|
|
4
14
|
"aspect-ratio",
|
|
5
15
|
"avatar",
|
|
6
16
|
"avatar-fallback",
|
|
@@ -66,6 +66,26 @@ const alert = [
|
|
|
66
66
|
staticAlert
|
|
67
67
|
];
|
|
68
68
|
|
|
69
|
+
const staticAlertDialog = {
|
|
70
|
+
// base
|
|
71
|
+
"alert-dialog": "",
|
|
72
|
+
// sub-components
|
|
73
|
+
"alert-dialog-cancel": "mt-2 sm:mt-0",
|
|
74
|
+
"alert-dialog-overlay": "fixed inset-0 z-50 bg-black/80",
|
|
75
|
+
"alert-dialog-content": "fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 sm:rounded-lg",
|
|
76
|
+
"alert-dialog-title": "text-lg font-semibold",
|
|
77
|
+
"alert-dialog-description": "text-muted text-sm",
|
|
78
|
+
"alert-dialog-header": "flex flex-col gap-2 text-center sm:text-left",
|
|
79
|
+
"alert-dialog-footer": "flex flex-col gap-2 sm:flex-row sm:justify-end"
|
|
80
|
+
};
|
|
81
|
+
const dynamicAlertDialog = [
|
|
82
|
+
// dynamic preset
|
|
83
|
+
];
|
|
84
|
+
const alertDialog = [
|
|
85
|
+
...dynamicAlertDialog,
|
|
86
|
+
staticAlertDialog
|
|
87
|
+
];
|
|
88
|
+
|
|
69
89
|
const staticAspectRatio = {
|
|
70
90
|
// base
|
|
71
91
|
"aspect-ratio": "overflow-hidden",
|
|
@@ -1182,6 +1202,7 @@ const shortcuts = [
|
|
|
1182
1202
|
...navigationMenu,
|
|
1183
1203
|
...sidebar,
|
|
1184
1204
|
...aspectRatio,
|
|
1205
|
+
...alertDialog,
|
|
1185
1206
|
...combobox
|
|
1186
1207
|
];
|
|
1187
1208
|
|
package/dist/shortcuts.mjs
CHANGED