@una-ui/preset-edge 0.60.0-29179531.6f38118 → 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.ByWFih15.mjs';
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
@@ -122,6 +122,10 @@ const prefixes = [
122
122
  "pagination-list-item",
123
123
  "pagination-next",
124
124
  "pagination-prev",
125
+ "pin-input",
126
+ "pin-input-group",
127
+ "pin-input-separator",
128
+ "pin-input-slot",
125
129
  "popover",
126
130
  "popover-content",
127
131
  "progress",
@@ -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,
@@ -1,3 +1,3 @@
1
- export { s as shortcuts } from './shared/preset-edge.ByWFih15.mjs';
1
+ export { s as shortcuts } from './shared/preset-edge.f7nEHBBO.mjs';
2
2
  import '@unocss/preset-mini/utils';
3
3
  import '@unocss/preset-mini';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@una-ui/preset-edge",
3
- "version": "0.60.0-29179531.6f38118",
3
+ "version": "0.60.1-29182121.2fe0c0f",
4
4
  "description": "The default preset for @una-ui",
5
5
  "author": "Phojie Rengel <phojrengel@gmail.com>",
6
6
  "license": "MIT",