@una-ui/preset-edge 0.58.0-29162464.ff628e9 → 0.58.0-29162503.be17640
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.BbwyXb2y.mjs';
|
|
7
7
|
|
|
8
8
|
function presetUna(options = {
|
|
9
9
|
// TODO: add options
|
package/dist/prefixes.mjs
CHANGED
|
@@ -520,6 +520,8 @@ const staticGeneral = {
|
|
|
520
520
|
"bg-accent-foreground": "bg-$c-accent-foreground",
|
|
521
521
|
"bg-popover": "bg-$c-popover",
|
|
522
522
|
"bg-popover-foreground": "bg-$c-popover-foreground",
|
|
523
|
+
"fill-base": "fill-$c-background",
|
|
524
|
+
"stroke-base": "stroke-$c-border",
|
|
523
525
|
// transition
|
|
524
526
|
"transition-base": "transition-all duration-100 ease-out",
|
|
525
527
|
// overrides
|
|
@@ -535,6 +537,27 @@ const general = [
|
|
|
535
537
|
staticIcons
|
|
536
538
|
];
|
|
537
539
|
|
|
540
|
+
const staticHoverCard = {
|
|
541
|
+
// configurations
|
|
542
|
+
"hover-card": "",
|
|
543
|
+
"hover-card-default-variant": "outline-gray",
|
|
544
|
+
// components
|
|
545
|
+
"hover-card-trigger": "",
|
|
546
|
+
"hover-card-content": "bg-base text-popover animate-in fade-in-0 zoom-in-95 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 w-64 rounded-md border p-4 shadow-md outline-hidden",
|
|
547
|
+
"hover-card-arrow": "!bg-transparent !border-none -mt-1px fill-base stroke-base",
|
|
548
|
+
// static variants
|
|
549
|
+
"hover-card-soft-gray": "bg-muted border border-base",
|
|
550
|
+
"hover-card-outline-gray": "bg-base border border-base"
|
|
551
|
+
};
|
|
552
|
+
const dynamicHoverCard = [
|
|
553
|
+
[/^hover-card-soft(-(\S+))?$/, ([, , c = "gray"]) => `bg-${c}-50 fill-${c}-50 stroke-${c}-200 border-${c}-200 dark:(bg-${c}-900 border-${c}-700/58 fill-${c}-900 stroke-${c}-700/58)`],
|
|
554
|
+
[/^hover-card-outline(-(\S+))?$/, ([, , c = "gray"]) => `border stroke-${c}-200 border-${c}-200 dark:(border-${c}-700/58 stroke-${c}-700/58)`]
|
|
555
|
+
];
|
|
556
|
+
const hoverCard = [
|
|
557
|
+
...dynamicHoverCard,
|
|
558
|
+
staticHoverCard
|
|
559
|
+
];
|
|
560
|
+
|
|
538
561
|
const staticIcon = {
|
|
539
562
|
// base
|
|
540
563
|
"icon-base": "flex-none"
|
|
@@ -1239,7 +1262,8 @@ const shortcuts = [
|
|
|
1239
1262
|
...resizable,
|
|
1240
1263
|
...alertDialog,
|
|
1241
1264
|
...combobox,
|
|
1242
|
-
...drawer
|
|
1265
|
+
...drawer,
|
|
1266
|
+
...hoverCard
|
|
1243
1267
|
];
|
|
1244
1268
|
|
|
1245
1269
|
export { shortcuts as s };
|
package/dist/shortcuts.mjs
CHANGED