@una-ui/preset-edge 0.47.2-29057101.32b4bb8 → 0.48.0-29058888.6b1b89f

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.cjs CHANGED
@@ -5,7 +5,7 @@ const colors = require('@unocss/preset-mini/colors');
5
5
  const rules = require('@unocss/preset-mini/rules');
6
6
  const utils = require('@unocss/preset-mini/utils');
7
7
  const unocss = require('unocss');
8
- const index = require('./shared/preset-edge.BSoLCXjz.cjs');
8
+ const index = require('./shared/preset-edge.B8YElGH9.cjs');
9
9
 
10
10
  function presetUna(options = {
11
11
  // TODO: add options
@@ -81,15 +81,21 @@ function presetUna(options = {
81
81
  animation: {
82
82
  keyframes: {
83
83
  "collapsible-down": "{from{height: 0}to{height:var(--reka-collapsible-content-height)}}",
84
- "collapsible-up": "{from{height:var(--reka-collapsible-content-height)}to{height: 0}}"
84
+ "collapsible-up": "{from{height:var(--reka-collapsible-content-height)}to{height: 0}}",
85
+ "fadeIn": "{from{ opacity: 0 }to{ opacity: 1 }}",
86
+ "fadeOut": "{from{ opacity: 1 }to{ opacity: 0 }}"
85
87
  },
86
88
  durations: {
87
89
  "collapsible-down": "0.2s",
88
- "collapsible-up": "0.2s"
90
+ "collapsible-up": "0.2s",
91
+ "fadeIn": "0.2s",
92
+ "fadeOut": "0.2s"
89
93
  },
90
94
  timingFns: {
91
95
  "collapsible-down": "ease-in-out",
92
- "collapsible-up": "ease-in-out"
96
+ "collapsible-up": "ease-in-out",
97
+ "fadeIn": "ease-out",
98
+ "fadeOut": "ease-out"
93
99
  }
94
100
  }
95
101
  }),
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.BO3lxtaI.mjs';
6
+ import { s as shortcuts } from './shared/preset-edge.BoI8VEGP.mjs';
7
7
 
8
8
  function presetUna(options = {
9
9
  // TODO: add options
@@ -79,15 +79,21 @@ function presetUna(options = {
79
79
  animation: {
80
80
  keyframes: {
81
81
  "collapsible-down": "{from{height: 0}to{height:var(--reka-collapsible-content-height)}}",
82
- "collapsible-up": "{from{height:var(--reka-collapsible-content-height)}to{height: 0}}"
82
+ "collapsible-up": "{from{height:var(--reka-collapsible-content-height)}to{height: 0}}",
83
+ "fadeIn": "{from{ opacity: 0 }to{ opacity: 1 }}",
84
+ "fadeOut": "{from{ opacity: 1 }to{ opacity: 0 }}"
83
85
  },
84
86
  durations: {
85
87
  "collapsible-down": "0.2s",
86
- "collapsible-up": "0.2s"
88
+ "collapsible-up": "0.2s",
89
+ "fadeIn": "0.2s",
90
+ "fadeOut": "0.2s"
87
91
  },
88
92
  timingFns: {
89
93
  "collapsible-down": "ease-in-out",
90
- "collapsible-up": "ease-in-out"
94
+ "collapsible-up": "ease-in-out",
95
+ "fadeIn": "ease-out",
96
+ "fadeOut": "ease-out"
91
97
  }
92
98
  }
93
99
  }),
package/dist/prefixes.cjs CHANGED
@@ -64,6 +64,15 @@ const prefixes = [
64
64
  "kbd",
65
65
  "label",
66
66
  "link",
67
+ "navigation-menu",
68
+ "navigation-menu-content",
69
+ "navigation-menu-content-item",
70
+ "navigation-menu-indicator",
71
+ "navigation-menu-item",
72
+ "navigation-menu-link",
73
+ "navigation-menu-list",
74
+ "navigation-menu-trigger",
75
+ "navigation-menu-viewport",
67
76
  "pagination",
68
77
  "pagination-ellipsis",
69
78
  "pagination-selected",
package/dist/prefixes.mjs CHANGED
@@ -62,6 +62,15 @@ const prefixes = [
62
62
  "kbd",
63
63
  "label",
64
64
  "link",
65
+ "navigation-menu",
66
+ "navigation-menu-content",
67
+ "navigation-menu-content-item",
68
+ "navigation-menu-indicator",
69
+ "navigation-menu-item",
70
+ "navigation-menu-link",
71
+ "navigation-menu-list",
72
+ "navigation-menu-trigger",
73
+ "navigation-menu-viewport",
65
74
  "pagination",
66
75
  "pagination-ellipsis",
67
76
  "pagination-selected",
@@ -568,6 +568,39 @@ const link = [
568
568
  staticLink
569
569
  ];
570
570
 
571
+ const staticNavigationMenu = {
572
+ // configurations
573
+ "navigation-menu": "relative z-10 flex max-w-max flex-1 items-center justify-center",
574
+ "navigation-menu-disabled": "n-disabled",
575
+ // components
576
+ "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",
577
+ "navigation-menu-indicator-arrow": "relative top-70% h-12px w-12px rotate-45deg border bg-base",
578
+ "navigation-menu-content": "left-0 top-0 w-full md:absolute md:w-auto",
579
+ "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 shadow md:w-[--reka-navigation-menu-viewport-width]",
580
+ "navigation-menu-link": "",
581
+ "navigation-menu-trigger": "",
582
+ "navigation-menu-trigger-trailing": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
583
+ "navigation-menu-trigger-trailing-icon": "i-lucide-chevron-down",
584
+ "navigation-menu-content-item": "flex items-start select-none rounded-md p-3 h-unset leading-none no-underline outline-none transition-colors whitespace-normal justify-start",
585
+ "navigation-menu-content-list": "grid w-400px gap-3 p-4 md:grid-cols-2 lg:w-600px md:w-500px",
586
+ "navigation-menu-content-item-wrapper": "flex flex-col items-start gap-1",
587
+ "navigation-menu-content-item-label": "font-semibold leading-none",
588
+ "navigation-menu-content-item-description": "line-clamp-2 text-left text-muted leading-5",
589
+ "navigation-menu-list-horizontal": "flex flex-1 list-none items-center justify-center gap-x-1",
590
+ "navigation-menu-list-vertical": "max-w-none list-none flex-col items-start gap-1 space-x-0",
591
+ "navigation-menu-viewport-wrapper": "",
592
+ "navigation-menu-viewport-wrapper-horizontal": "absolute left-0 top-full flex justify-center",
593
+ "navigation-menu-viewport-wrapper-vertical": "absolute top-0 left-full ml-1.5"
594
+ };
595
+ const dynamicNavigationMenu = [
596
+ [/^navigation-menu-([^-]+)-([^-]+)$/, ([, v = "ghost", c = "white"]) => `btn-${v}-${c}`],
597
+ [/^navigation-menu-link-([^-]+)-([^-]+)$/, ([, v = "ghost", c = "white"]) => `btn-${v}-${c}`]
598
+ ];
599
+ const navigationMenu = [
600
+ ...dynamicNavigationMenu,
601
+ staticNavigationMenu
602
+ ];
603
+
571
604
  const staticPagination = {
572
605
  // configurations
573
606
  "pagination": "overflow-hidden",
@@ -1102,6 +1135,7 @@ const shortcuts = [
1102
1135
  ...form,
1103
1136
  ...sheet,
1104
1137
  ...scrollArea,
1138
+ ...navigationMenu,
1105
1139
  ...sidebar
1106
1140
  ];
1107
1141
 
@@ -566,6 +566,39 @@ const link = [
566
566
  staticLink
567
567
  ];
568
568
 
569
+ const staticNavigationMenu = {
570
+ // configurations
571
+ "navigation-menu": "relative z-10 flex max-w-max flex-1 items-center justify-center",
572
+ "navigation-menu-disabled": "n-disabled",
573
+ // components
574
+ "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",
575
+ "navigation-menu-indicator-arrow": "relative top-70% h-12px w-12px rotate-45deg border bg-base",
576
+ "navigation-menu-content": "left-0 top-0 w-full md:absolute md:w-auto",
577
+ "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 shadow md:w-[--reka-navigation-menu-viewport-width]",
578
+ "navigation-menu-link": "",
579
+ "navigation-menu-trigger": "",
580
+ "navigation-menu-trigger-trailing": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
581
+ "navigation-menu-trigger-trailing-icon": "i-lucide-chevron-down",
582
+ "navigation-menu-content-item": "flex items-start select-none rounded-md p-3 h-unset leading-none no-underline outline-none transition-colors whitespace-normal justify-start",
583
+ "navigation-menu-content-list": "grid w-400px gap-3 p-4 md:grid-cols-2 lg:w-600px md:w-500px",
584
+ "navigation-menu-content-item-wrapper": "flex flex-col items-start gap-1",
585
+ "navigation-menu-content-item-label": "font-semibold leading-none",
586
+ "navigation-menu-content-item-description": "line-clamp-2 text-left text-muted leading-5",
587
+ "navigation-menu-list-horizontal": "flex flex-1 list-none items-center justify-center gap-x-1",
588
+ "navigation-menu-list-vertical": "max-w-none list-none flex-col items-start gap-1 space-x-0",
589
+ "navigation-menu-viewport-wrapper": "",
590
+ "navigation-menu-viewport-wrapper-horizontal": "absolute left-0 top-full flex justify-center",
591
+ "navigation-menu-viewport-wrapper-vertical": "absolute top-0 left-full ml-1.5"
592
+ };
593
+ const dynamicNavigationMenu = [
594
+ [/^navigation-menu-([^-]+)-([^-]+)$/, ([, v = "ghost", c = "white"]) => `btn-${v}-${c}`],
595
+ [/^navigation-menu-link-([^-]+)-([^-]+)$/, ([, v = "ghost", c = "white"]) => `btn-${v}-${c}`]
596
+ ];
597
+ const navigationMenu = [
598
+ ...dynamicNavigationMenu,
599
+ staticNavigationMenu
600
+ ];
601
+
569
602
  const staticPagination = {
570
603
  // configurations
571
604
  "pagination": "overflow-hidden",
@@ -1100,6 +1133,7 @@ const shortcuts = [
1100
1133
  ...form,
1101
1134
  ...sheet,
1102
1135
  ...scrollArea,
1136
+ ...navigationMenu,
1103
1137
  ...sidebar
1104
1138
  ];
1105
1139
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./shared/preset-edge.BSoLCXjz.cjs');
3
+ const index = require('./shared/preset-edge.B8YElGH9.cjs');
4
4
  require('@unocss/preset-mini/utils');
5
5
  require('@unocss/preset-mini');
6
6
 
@@ -1,3 +1,3 @@
1
- export { s as shortcuts } from './shared/preset-edge.BO3lxtaI.mjs';
1
+ export { s as shortcuts } from './shared/preset-edge.BoI8VEGP.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.47.2-29057101.32b4bb8",
3
+ "version": "0.48.0-29058888.6b1b89f",
4
4
  "description": "The default preset for @una-ui",
5
5
  "author": "Phojie Rengel <phojrengel@gmail.com>",
6
6
  "license": "MIT",