@una-ui/preset-edge 1.0.0-alpha.1-29182140.ec3b1fe → 1.0.0-alpha.1-29182152.ce98054
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fonts } from '@unocss/preset-mini/rules';
|
|
2
2
|
import { handler, parseColor } from '@unocss/preset-mini/utils';
|
|
3
3
|
import { colors } from '@unocss/preset-wind4/colors';
|
|
4
|
-
import { s as shortcuts } from './shared/preset-edge.
|
|
4
|
+
import { s as shortcuts } from './shared/preset-edge.PMWqFRxt.mjs';
|
|
5
5
|
import '@unocss/preset-mini';
|
|
6
6
|
|
|
7
7
|
function presetUna(options = {
|
package/dist/prefixes.mjs
CHANGED
|
@@ -773,6 +773,30 @@ const pagination = [
|
|
|
773
773
|
staticPagination
|
|
774
774
|
];
|
|
775
775
|
|
|
776
|
+
const staticPinInput = {
|
|
777
|
+
// configurations
|
|
778
|
+
"pin-input": "flex items-center gap-2 has-disabled:opacity-50 disabled:cursor-not-allowed",
|
|
779
|
+
"pin-input-separator-icon": "i-lucide-minus",
|
|
780
|
+
// components
|
|
781
|
+
"pin-input-slot": "relative flex square-2.5714285714285716em items-center justify-center shadow-xs 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",
|
|
782
|
+
"pin-input-group": "flex items-center",
|
|
783
|
+
"pin-input-separator": "grid",
|
|
784
|
+
"pin-input-solid-primary": "shadow-xs bg-transparent dark:bg-input/30 border border-ring pin-input-focus",
|
|
785
|
+
"pin-input-solid": "pin-input-solid-primary",
|
|
786
|
+
"pin-input-focus-primary": "focus:ring-3px focus:border focus:border-ring focus:ring-ring/50",
|
|
787
|
+
"pin-input-focus": "pin-input-focus-primary"
|
|
788
|
+
};
|
|
789
|
+
const dynamicPinInput = [
|
|
790
|
+
[/^pin-input-focus(-(\S+))?$/, ([, , c = "primary"]) => `focus:ring-3px focus:border focus:border-${c}-400 dark:focus:border-${c}-500 focus:ring-${c}-400/50 dark:focus:ring-${c}-500/50 focus:z-10`],
|
|
791
|
+
// dynamic preset
|
|
792
|
+
[/^pin-input-outline(-(\S+))?$/, ([, , c = "primary"]) => `bg-transparent dark:bg-input/30 border-input pin-input-focus-${c}`],
|
|
793
|
+
[/^pin-input-solid(-(\S+))?$/, ([, , c = "primary"]) => `bg-transparent dark:bg-input/30 border-${c}-500 dark:border-${c}-400 pin-input-focus-${c}`]
|
|
794
|
+
];
|
|
795
|
+
const pinInput = [
|
|
796
|
+
...dynamicPinInput,
|
|
797
|
+
staticPinInput
|
|
798
|
+
];
|
|
799
|
+
|
|
776
800
|
const staticPopover = {
|
|
777
801
|
"popover-content": "z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground 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"
|
|
778
802
|
};
|
|
@@ -1284,6 +1308,7 @@ const shortcuts = [
|
|
|
1284
1308
|
...popover,
|
|
1285
1309
|
...tooltip,
|
|
1286
1310
|
...pagination,
|
|
1311
|
+
...pinInput,
|
|
1287
1312
|
...toast,
|
|
1288
1313
|
...toggle,
|
|
1289
1314
|
...collapsible,
|
package/dist/shortcuts.mjs
CHANGED
package/package.json
CHANGED