@una-ui/preset-edge 0.61.0-29182246.bc2c328 → 1.0.0-alpha.0-29172721.c5fd9aa
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
|
@@ -107,11 +107,6 @@ 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",
|
|
115
110
|
"pagination",
|
|
116
111
|
"pagination-ellipsis",
|
|
117
112
|
"pagination-selected",
|
|
@@ -122,10 +117,6 @@ const prefixes = [
|
|
|
122
117
|
"pagination-list-item",
|
|
123
118
|
"pagination-next",
|
|
124
119
|
"pagination-prev",
|
|
125
|
-
"pin-input",
|
|
126
|
-
"pin-input-group",
|
|
127
|
-
"pin-input-separator",
|
|
128
|
-
"pin-input-slot",
|
|
129
120
|
"popover",
|
|
130
121
|
"popover-content",
|
|
131
122
|
"progress",
|
|
@@ -711,23 +711,6 @@ 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
|
-
|
|
731
714
|
const staticPagination = {
|
|
732
715
|
// configurations
|
|
733
716
|
"pagination": "overflow-hidden",
|
|
@@ -766,26 +749,6 @@ const pagination = [
|
|
|
766
749
|
staticPagination
|
|
767
750
|
];
|
|
768
751
|
|
|
769
|
-
const staticPinInput = {
|
|
770
|
-
// configurations
|
|
771
|
-
"pin-input": "flex items-center gap-2 has-disabled:opacity-50 disabled:cursor-not-allowed",
|
|
772
|
-
"pin-input-separator-icon": "i-lucide-minus",
|
|
773
|
-
// components
|
|
774
|
-
"pin-input-slot": "relative flex square-2.5714285714285716em items-center justify-center bg-transparent shadow-sm border-y border-r first:rounded-l-md first:border-l last:rounded-r-md text-0.875em leading-1.4285714285714286em transition-all outline-none text-center",
|
|
775
|
-
"pin-input-group": "flex items-center",
|
|
776
|
-
"pin-input-separator": "grid"
|
|
777
|
-
};
|
|
778
|
-
const dynamicPinInput = [
|
|
779
|
-
[/^pin-input-focus(-(\S+))?$/, ([, , c = "primary"]) => `focus-visible:ring-${c}-500 dark:focus-visible:ring-${c}-400 focus:z-10 focus:ring-1`],
|
|
780
|
-
// dynamic preset
|
|
781
|
-
[/^pin-input-outline(-(\S+))?$/, ([, , c = "primary"]) => `border-input pin-input-focus-${c}`],
|
|
782
|
-
[/^pin-input-solid(-(\S+))?$/, ([, , c = "primary"]) => `border-${c}-500 focus:border dark:border-${c}-400 pin-input-focus-${c}`]
|
|
783
|
-
];
|
|
784
|
-
const pinInput = [
|
|
785
|
-
...dynamicPinInput,
|
|
786
|
-
staticPinInput
|
|
787
|
-
];
|
|
788
|
-
|
|
789
752
|
const staticPopover = {
|
|
790
753
|
"popover-content": "z-50 w-72 rounded-md border border-base bg-popover p-4 text-popover shadow-md outline-none data-[state=open]:animate-in 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"
|
|
791
754
|
};
|
|
@@ -1286,7 +1249,6 @@ const shortcuts = [
|
|
|
1286
1249
|
...popover,
|
|
1287
1250
|
...tooltip,
|
|
1288
1251
|
...pagination,
|
|
1289
|
-
...pinInput,
|
|
1290
1252
|
...toast,
|
|
1291
1253
|
...toggle,
|
|
1292
1254
|
...collapsible,
|
|
@@ -1295,7 +1257,6 @@ const shortcuts = [
|
|
|
1295
1257
|
...sheet,
|
|
1296
1258
|
...scrollArea,
|
|
1297
1259
|
...navigationMenu,
|
|
1298
|
-
...numberField,
|
|
1299
1260
|
...sidebar,
|
|
1300
1261
|
...aspectRatio,
|
|
1301
1262
|
...resizable,
|
package/dist/shortcuts.mjs
CHANGED
package/package.json
CHANGED