@una-ui/preset 1.0.0-alpha.1 → 1.0.0-alpha.3
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.
|
|
4
|
+
import { s as shortcuts } from './shared/preset.DRPVRXmI.mjs';
|
|
5
5
|
import '@unocss/preset-mini';
|
|
6
6
|
|
|
7
7
|
function presetUna(options = {
|
package/dist/prefixes.mjs
CHANGED
|
@@ -232,7 +232,7 @@ const staticBtn = {
|
|
|
232
232
|
"btn-text": "btn-text-primary",
|
|
233
233
|
"btn-text-gray": "hover:text-secondary-foreground text-secondary-foreground/90 btn-focus",
|
|
234
234
|
"btn-text-black": "hover:text-foreground text-foreground/90 btn-focus",
|
|
235
|
-
"btn-text-muted": "hover:text-foreground text-foreground/90 btn-focus",
|
|
235
|
+
"btn-text-muted": "hover:text-muted-foreground text-muted-foreground/90 btn-focus",
|
|
236
236
|
"btn-text-accent": "hover:text-accent-foreground text-accent-foreground/90 btn-focus",
|
|
237
237
|
"btn-soft-primary": "bg-primary/10 text-primary shadow-xs hover:bg-primary/15 btn-focus",
|
|
238
238
|
"btn-soft": "btn-soft-primary",
|
|
@@ -632,7 +632,7 @@ const staticInput = {
|
|
|
632
632
|
};
|
|
633
633
|
const dynamicInput = [
|
|
634
634
|
// config
|
|
635
|
-
[/^input-focus(-(\S+))?$/, ([, , c = "primary"]) => `focus-visible:ring-3px focus-visible:border-${c}-400 dark:focus-visible:border-${c}-
|
|
635
|
+
[/^input-focus(-(\S+))?$/, ([, , c = "primary"]) => `focus-visible:ring-3px focus-visible:border-${c}-400 dark:focus-visible:border-${c}-500 focus-visible:ring-${c}-400/50 dark:focus-visible:ring-${c}-500/50`],
|
|
636
636
|
[/^input-status(-(\S+))?$/, ([, , c = "info"]) => `text-${c}-700 dark:text-${c}-200 placeholder:text-${c}-500 dark:placeholder:text-${c}-400`],
|
|
637
637
|
// variants
|
|
638
638
|
[/^input-outline(-(\S+))?$/, ([, , c = "primary"]) => `shadow-xs border bg-transparent dark:bg-input/30 border-input input-focus-${c}`],
|
|
@@ -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