@una-ui/preset-edge 0.59.0-29169806.43c5d1e → 0.59.0-29174684.d0efbbc
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.ByWFih15.mjs';
|
|
7
7
|
|
|
8
8
|
function presetUna(options = {
|
|
9
9
|
// TODO: add options
|
package/dist/prefixes.mjs
CHANGED
|
@@ -107,6 +107,11 @@ const prefixes = [
|
|
|
107
107
|
"navigation-menu-list",
|
|
108
108
|
"navigation-menu-trigger",
|
|
109
109
|
"navigation-menu-viewport",
|
|
110
|
+
"number-field",
|
|
111
|
+
"number-field-content",
|
|
112
|
+
"number-field-decrement",
|
|
113
|
+
"number-field-increment",
|
|
114
|
+
"number-field-input",
|
|
110
115
|
"pagination",
|
|
111
116
|
"pagination-ellipsis",
|
|
112
117
|
"pagination-selected",
|
|
@@ -711,6 +711,23 @@ const navigationMenu = [
|
|
|
711
711
|
staticNavigationMenu
|
|
712
712
|
];
|
|
713
713
|
|
|
714
|
+
const staticNumberField = {
|
|
715
|
+
// base
|
|
716
|
+
"number-field": "grid gap-1.5",
|
|
717
|
+
"number-field-content": "relative [&>[data-slot=input]]:has-[[data-slot=increment]]:pr-1.25em [&>[data-slot=input]]:has-[[data-slot=decrement]]:pl-1.25em",
|
|
718
|
+
"number-field-decrement": "grid place-items-center absolute top-1/2 -translate-y-1/2 left-0 p-0.75em disabled:cursor-not-allowed disabled:opacity-20",
|
|
719
|
+
"number-field-input": "flex w-full rounded-md bg-transparent h-2.5714285714285716em py-0.2857142857142857em text-0.875em text-center shadow-sm transition-colors placeholder:text-muted disabled:n-disabled focus-visible:outline-none",
|
|
720
|
+
"number-field-increment": "grid place-items-center absolute top-1/2 -translate-y-1/2 right-0 disabled:cursor-not-allowed disabled:opacity-20 p-0.75em"
|
|
721
|
+
};
|
|
722
|
+
const dynamicNumberField = [
|
|
723
|
+
// dynamic preset
|
|
724
|
+
[/^number-field-([^-]+)-([^-]+)$/, ([, v = "outline", c = "primary"]) => `input-${v}-${c}`]
|
|
725
|
+
];
|
|
726
|
+
const numberField = [
|
|
727
|
+
...dynamicNumberField,
|
|
728
|
+
staticNumberField
|
|
729
|
+
];
|
|
730
|
+
|
|
714
731
|
const staticPagination = {
|
|
715
732
|
// configurations
|
|
716
733
|
"pagination": "overflow-hidden",
|
|
@@ -1257,6 +1274,7 @@ const shortcuts = [
|
|
|
1257
1274
|
...sheet,
|
|
1258
1275
|
...scrollArea,
|
|
1259
1276
|
...navigationMenu,
|
|
1277
|
+
...numberField,
|
|
1260
1278
|
...sidebar,
|
|
1261
1279
|
...aspectRatio,
|
|
1262
1280
|
...resizable,
|
package/dist/shortcuts.mjs
CHANGED