@una-ui/preset 1.0.0-alpha.7 → 1.0.0-alpha.8

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.DfDyl_MJ.mjs';
4
+ import { s as shortcuts } from './shared/preset.Pc-YSIGz.mjs';
5
5
  import '@unocss/preset-mini';
6
6
 
7
7
  function presetUna(options = {
@@ -323,7 +323,7 @@ const checkbox = [
323
323
  ];
324
324
 
325
325
  const staticCollapsible = {
326
- "collapsible-content": "overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down"
326
+ "collapsible-content": "overflow-hidden transition-all"
327
327
  };
328
328
  const dynamicCollapsible = [
329
329
  // dynamic preset
@@ -353,7 +353,7 @@ const staticCombobox = {
353
353
  "combobox-empty": "py-1.7142857142857142em text-center text-1em leading-1.4285714285714286em",
354
354
  "combobox-group": "overflow-hidden p-0.2857142857142857em text-foreground",
355
355
  "combobox-label": "px-0.6666666666666666em py-0.5em text-0.8571428571428571em leading-1.1428571428571428em text-muted-foreground font-medium",
356
- "combobox-list": "z-50 w-[--reka-popper-anchor-width] rounded-md border bg-popover text-popover-foreground overflow-hidden 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",
356
+ "combobox-list": "z-50 w-[--reka-popper-anchor-width] rounded-md border bg-popover text-popover-foreground overflow-hidden shadow-md outline-none 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",
357
357
  "combobox-separator": "bg-border -mx-1 h-px",
358
358
  "combobox-viewport": "max-h-300px scroll-py-1 overflow-x-hidden overflow-y-auto"
359
359
  };
@@ -369,7 +369,7 @@ const staticDialog = {
369
369
  // base
370
370
  "dialog": "",
371
371
  // sub-components
372
- "dialog-overlay": "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
372
+ "dialog-overlay": "fixed inset-0 z-50 bg-black/80",
373
373
  "dialog-content": "bg-background fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
374
374
  "dialog-scroll-overlay": "fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-black/80",
375
375
  "dialog-scroll-content": "relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
@@ -390,7 +390,7 @@ const dialog = [
390
390
  const staticDrawer = {
391
391
  // base
392
392
  "drawer": "",
393
- "drawer-overlay": "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
393
+ "drawer-overlay": "fixed inset-0 z-50 bg-black/80",
394
394
  "drawer-content": "bg-background fixed z-50 flex h-auto flex-col",
395
395
  "drawer-content-top": "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg",
396
396
  "drawer-content-bottom": "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg",
@@ -544,7 +544,7 @@ const staticHoverCard = {
544
544
  "hover-card-default-variant": "outline-gray",
545
545
  // components
546
546
  "hover-card-trigger": "",
547
- "hover-card-content": "bg-background text-popover-foreground animate-in fade-in-0 zoom-in-95 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 z-50 w-64 rounded-md border p-4 shadow-md outline-none",
547
+ "hover-card-content": "bg-background text-popover-foreground animate-in fade-in-0 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 z-50 w-64 rounded-md border p-4 shadow-md outline-none",
548
548
  "hover-card-arrow": "!bg-transparent !border-none -mt-1px fill-background stroke-border",
549
549
  // static variants
550
550
  "hover-card-soft-gray": "bg-muted border border-border",
@@ -690,7 +690,7 @@ const staticNavigationMenu = {
690
690
  "navigation-menu": "relative z-10 flex max-w-max flex-1 items-center justify-center",
691
691
  "navigation-menu-disabled": "n-disabled",
692
692
  // components
693
- "navigation-menu-indicator": "absolute data-[state=hidden]:opacity-0 duration-200 top-full data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut w-[--reka-navigation-menu-indicator-size] translate-x-[--reka-navigation-menu-indicator-position] mt--3px z-100 flex h-10px items-end justify-center overflow-hidden transition-all",
693
+ "navigation-menu-indicator": "absolute duration-200 top-full w-[--reka-navigation-menu-indicator-size] translate-x-[--reka-navigation-menu-indicator-position] mt--3px z-100 flex h-10px items-end justify-center overflow-hidden transition-all",
694
694
  "navigation-menu-indicator-arrow": "relative top-70% h-12px w-12px rotate-45deg border bg-background",
695
695
  "navigation-menu-content": "left-0 top-0 w-full md:absolute md:w-auto",
696
696
  "navigation-menu-viewport": "origin-top-center relative mt-1.5 h-[--reka-navigation-menu-viewport-height] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow md:w-[--reka-navigation-menu-viewport-width]",
@@ -798,7 +798,7 @@ const pinInput = [
798
798
  ];
799
799
 
800
800
  const staticPopover = {
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"
801
+ "popover-content": "z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md outline-none 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"
802
802
  };
803
803
  const dynamicPopover = [
804
804
  // dynamic preset
@@ -933,7 +933,7 @@ const staticSelect = {
933
933
  "select-trigger-trailing": "size-1.1428571428571428em data-[status=error]:text-error data-[status=success]:text-success data-[status=warning]:text-warning data-[status=info]:text-info data-[status=default]:(n-disabled) rtl:mr-auto ltr:ml-auto",
934
934
  "select-trigger-leading": "size-1.1428571428571428em",
935
935
  "select-value": "text-1em data-[status=error]:text-error-active data-[status=success]:text-success-active data-[status=warning]:text-warning-active data-[status=info]:text-info-active data-[placeholder]:n-disabled",
936
- "select-content": "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md 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",
936
+ "select-content": "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md 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",
937
937
  "select-content-popper": "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
938
938
  "select-group": "w-full",
939
939
  "select-separator": "-mx-1 my-1 h-px bg-muted",
@@ -1004,9 +1004,9 @@ const staticSheet = {
1004
1004
  // base
1005
1005
  "sheet": "",
1006
1006
  // sub components
1007
- "sheet-content": "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
1007
+ "sheet-content": "bg-background fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out",
1008
1008
  "sheet-portal": "",
1009
- "sheet-overlay": "fixed inset-0 z-50 data-[state=closed]:animate-out data-[state=open]:animate-in bg-black/80 data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
1009
+ "sheet-overlay": "fixed inset-0 z-50 bg-black/80",
1010
1010
  "sheet-close": "absolute right-4 top-4",
1011
1011
  "sheet-description": "text-sm text-muted-foreground",
1012
1012
  "sheet-footer": "mt-auto flex flex-col gap-2 p-4",
@@ -1263,7 +1263,7 @@ const toggle = [
1263
1263
  ];
1264
1264
 
1265
1265
  const staticTooltip = {
1266
- "tooltip-content": "z-50 overflow-hidden rounded-md px-0.75em py-0.375em text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
1266
+ "tooltip-content": "z-50 overflow-hidden rounded-md px-0.75em py-0.375em text-xs shadow-md 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",
1267
1267
  "tooltip-white": "border border-border bg-popover text-popover-foreground",
1268
1268
  "tooltip-black": "border border-foreground bg-popover-foreground text-popover"
1269
1269
  };
@@ -1,3 +1,3 @@
1
- export { s as shortcuts } from './shared/preset.DfDyl_MJ.mjs';
1
+ export { s as shortcuts } from './shared/preset.Pc-YSIGz.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",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-alpha.8",
4
4
  "description": "The default preset for @una-ui",
5
5
  "author": "Phojie Rengel <phojrengel@gmail.com>",
6
6
  "license": "MIT",