@nuxt/ui 0.0.0-alpha.2 → 0.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.
@@ -0,0 +1,17 @@
1
+ <template>
2
+ <Component
3
+ :is="(href || target) ? 'a' : 'nuxt-link'"
4
+ v-bind="$props"
5
+ class="n-link n-link-base n-transition"
6
+ >
7
+ <slot />
8
+ </Component>
9
+ </template>
10
+
11
+ <script setup lang="ts">
12
+ defineProps<{
13
+ to?: string
14
+ href?: string
15
+ target?: string
16
+ }>()
17
+ </script>
package/dist/nuxt.cjs CHANGED
@@ -39,7 +39,7 @@ const NuxtUIPreset = {
39
39
  };
40
40
  }
41
41
  }],
42
- [/^n-(.*)$/, rules.fontSizes[0][1]],
42
+ [/^n-(.*)$/, rules.fonts[1][1]],
43
43
  ["n-dashed", { "border-style": "dashed" }],
44
44
  ["n-solid", {
45
45
  "background-color": "rgba(var(--nui-c-context), 1) !important",
@@ -80,8 +80,9 @@ const NuxtUIPreset = {
80
80
  "n-transition": "transition-all duration-200",
81
81
  "n-focus-base": "ring-2 ring-context/50",
82
82
  "n-active-base": "ring-3 ring-context/10",
83
+ "n-link-base": "hover:decoration-dotted hover:underline-offset-2 hover:text-context hover:underline",
83
84
  "n-card-base": "border n-border-200 rounded n-bg-base shadow-sm",
84
- "n-header-upper": "text-sm case-upper mb-2 leading-1.2em tracking-wide op50",
85
+ "n-header-upper": "text-sm uppercase mb-2 leading-1.2em tracking-wide op50",
85
86
  "n-button-base": "border n-border-base rounded shadow-sm px-1em py-0.25em inline-flex items-center gap-1 op80 !outline-none",
86
87
  "n-button-hover": "op100 !border-context text-context",
87
88
  "n-button-active": "n-active-base bg-context/5",
package/dist/nuxt.mjs CHANGED
@@ -6,7 +6,7 @@ import UnocssModule from '@unocss/nuxt';
6
6
  import VueUseModule from '@vueuse/nuxt';
7
7
  import { mergeDeep } from '@unocss/core';
8
8
  import presetUno, { theme } from '@unocss/preset-uno';
9
- import { parseColorUtil, fontSizes } from '@unocss/preset-mini/rules';
9
+ import { parseColorUtil, fonts } from '@unocss/preset-mini/rules';
10
10
  import presetIcons from '@unocss/preset-icons';
11
11
  import presetAttributify from '@unocss/preset-attributify';
12
12
 
@@ -29,7 +29,7 @@ const NuxtUIPreset = {
29
29
  };
30
30
  }
31
31
  }],
32
- [/^n-(.*)$/, fontSizes[0][1]],
32
+ [/^n-(.*)$/, fonts[1][1]],
33
33
  ["n-dashed", { "border-style": "dashed" }],
34
34
  ["n-solid", {
35
35
  "background-color": "rgba(var(--nui-c-context), 1) !important",
@@ -70,8 +70,9 @@ const NuxtUIPreset = {
70
70
  "n-transition": "transition-all duration-200",
71
71
  "n-focus-base": "ring-2 ring-context/50",
72
72
  "n-active-base": "ring-3 ring-context/10",
73
+ "n-link-base": "hover:decoration-dotted hover:underline-offset-2 hover:text-context hover:underline",
73
74
  "n-card-base": "border n-border-200 rounded n-bg-base shadow-sm",
74
- "n-header-upper": "text-sm case-upper mb-2 leading-1.2em tracking-wide op50",
75
+ "n-header-upper": "text-sm uppercase mb-2 leading-1.2em tracking-wide op50",
75
76
  "n-button-base": "border n-border-base rounded shadow-sm px-1em py-0.25em inline-flex items-center gap-1 op80 !outline-none",
76
77
  "n-button-hover": "op100 !border-context text-context",
77
78
  "n-button-active": "n-active-base bg-context/5",
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "0.0.0-alpha.2",
3
+ "version": "0.0.0-alpha.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {
7
7
  "build": "unbuild && cp -R src/components dist/",
8
8
  "lint": "eslint . --ext .vue,.ts",
9
9
  "dev": "yarn nuxi dev playground",
10
- "release": "bumpp --commit --tag --push --preid alpha && npm publish"
10
+ "prepublishOnly": "npm run build",
11
+ "release": "bumpp --commit --tag --push --preid alpha && yarn publish --non-interactive"
11
12
  },
12
13
  "main": "./dist/nuxt.mjs",
13
14
  "exports": {