@una-ui/preset-edge 0.60.1-29179532.9254006 → 0.60.1-29182121.2fe0c0f
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.f7nEHBBO.mjs';
|
|
7
7
|
|
|
8
8
|
function presetUna(options = {
|
|
9
9
|
// TODO: add options
|
package/dist/prefixes.mjs
CHANGED
|
@@ -766,6 +766,26 @@ const pagination = [
|
|
|
766
766
|
staticPagination
|
|
767
767
|
];
|
|
768
768
|
|
|
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
|
+
|
|
769
789
|
const staticPopover = {
|
|
770
790
|
"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"
|
|
771
791
|
};
|
|
@@ -1266,6 +1286,7 @@ const shortcuts = [
|
|
|
1266
1286
|
...popover,
|
|
1267
1287
|
...tooltip,
|
|
1268
1288
|
...pagination,
|
|
1289
|
+
...pinInput,
|
|
1269
1290
|
...toast,
|
|
1270
1291
|
...toggle,
|
|
1271
1292
|
...collapsible,
|
package/dist/shortcuts.mjs
CHANGED