@una-ui/preset-edge 0.52.1-29103192.b22816b → 0.52.1-29105159.cc3382e
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.B8cG9haA.mjs';
|
|
7
7
|
|
|
8
8
|
function presetUna(options = {
|
|
9
9
|
// TODO: add options
|
|
@@ -74,7 +74,8 @@ function presetUna(options = {
|
|
|
74
74
|
xl: "calc(var(--una-radius) + 4px)",
|
|
75
75
|
lg: "var(--una-radius)",
|
|
76
76
|
md: "calc(var(--una-radius) - 2px)",
|
|
77
|
-
sm: "calc(var(--una-radius) - 4px)"
|
|
77
|
+
sm: "calc(var(--una-radius) - 4px)",
|
|
78
|
+
xs: "calc(var(--una-radius) - 6px)"
|
|
78
79
|
},
|
|
79
80
|
animation: {
|
|
80
81
|
keyframes: {
|
package/dist/prefixes.mjs
CHANGED
|
@@ -763,6 +763,29 @@ const radioGroup = [
|
|
|
763
763
|
staticRadioGroup
|
|
764
764
|
];
|
|
765
765
|
|
|
766
|
+
const staticResizable = {
|
|
767
|
+
// config
|
|
768
|
+
"resizable-handle-icon-name": "i-lucide-grip-vertical",
|
|
769
|
+
// base
|
|
770
|
+
"resizable-panel-group": "flex h-full w-full data-[orientation=vertical]:flex-col",
|
|
771
|
+
"resizable-panel": "",
|
|
772
|
+
"resizable-handle": "relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:ring-offset-base focus-visible:outline-none data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full data-[orientation=vertical]:after:-translate-y-1/2 data-[orientation=vertical]:after:translate-x-0 [&[data-orientation=vertical]>div]:rotate-90",
|
|
773
|
+
"resizable-handle-icon-wrapper": "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
|
|
774
|
+
"resizable-handle-icon": "square-2.5",
|
|
775
|
+
// static variants
|
|
776
|
+
"resizable-handle-solid-gray": "bg-border focus-visible:ring-foreground/58",
|
|
777
|
+
"resizable-handle-solid-black": "bg-inverted focus-visible:ring-foreground/58",
|
|
778
|
+
"resizable-handle-outline-gray": "ring-1 ring-base focus-visible:ring-foreground/58"
|
|
779
|
+
};
|
|
780
|
+
const dynamicResizable = [
|
|
781
|
+
[/^resizable-handle-solid(-(\S+))?$/, ([, , c = "gray"]) => `bg-${c}-200 dark:bg-${c}-700/58 focus-visible:ring-${c}-200 dark:focus-visible:ring-${c}-700/58`],
|
|
782
|
+
[/^resizable-handle-outline(-(\S+))?$/, ([, , c = "gray"]) => `ring-1 ring-${c}-200 dark:ring-${c}-700/58 focus-visible:ring-${c}-200 dark:focus-visible:ring-${c}-700/58`]
|
|
783
|
+
];
|
|
784
|
+
const resizable = [
|
|
785
|
+
...dynamicResizable,
|
|
786
|
+
staticResizable
|
|
787
|
+
];
|
|
788
|
+
|
|
766
789
|
const staticScrollArea = {
|
|
767
790
|
// configurations
|
|
768
791
|
"scroll-area": "",
|
|
@@ -1202,6 +1225,7 @@ const shortcuts = [
|
|
|
1202
1225
|
...navigationMenu,
|
|
1203
1226
|
...sidebar,
|
|
1204
1227
|
...aspectRatio,
|
|
1228
|
+
...resizable,
|
|
1205
1229
|
...alertDialog,
|
|
1206
1230
|
...combobox
|
|
1207
1231
|
];
|
package/dist/shortcuts.mjs
CHANGED