@una-ui/nuxt 0.48.0 → 0.49.1

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/README.md CHANGED
@@ -10,9 +10,14 @@
10
10
  | Main (Edge) | [![npm-edge][npm-edge-src]][npm-edge-href] | [![github-status][github-status-src-main]][github-status-href-main] | [![npm-edge-downloads][npm-edge-downloads-src]][npm-edge-downloads-href] |
11
11
  | Release | [![npm-version][npm-version-src]][npm-version-href] | [![github-status][github-status-src-release]][github-status-href-release] | [![npm-downloads][npm-downloads-src]][npm-downloads-href] |
12
12
 
13
- ## 📙 Documentation
14
-
15
- Visit https://www.unaui.com for full documentation.
13
+ ## 📙 References
14
+
15
+ | Resource | URL |
16
+ | ---------------- | -------------------------------------------------------------- |
17
+ | 📚 Documentation | [unaui.com](https://www.unaui.com) |
18
+ | 🚀 Starter Kit | [github.com/una-ui/starter](https://github.com/una-ui/starter) |
19
+ | 🔍 Starter Live | [starter.unaui.com](https://starter.unaui.com) |
20
+ | 🎮 Playground | [play.unaui.com](https://play.unaui.com) |
16
21
 
17
22
  ## 🌠 Star History
18
23
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "configKey": "una",
4
- "version": "0.48.0",
4
+ "version": "0.49.1",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -8,7 +8,7 @@ import 'unocss';
8
8
  import 'unocss-preset-animations';
9
9
 
10
10
  const name = "@una-ui/nuxt";
11
- const version = "0.48.0";
11
+ const version = "0.49.1";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -0,0 +1,29 @@
1
+ <script setup lang="ts">
2
+ import type { NAspectRatioProps } from '../../types/aspect-ratio'
3
+ import { reactiveOmit } from '@vueuse/core'
4
+ import { AspectRatio } from 'reka-ui'
5
+ import { cn } from '../../utils'
6
+
7
+ const props = withDefaults(defineProps<NAspectRatioProps>(), {
8
+ aspectRatio: 'soft',
9
+ rounded: 'md',
10
+ })
11
+
12
+ const delegatedProps = reactiveOmit(props, 'class')
13
+ </script>
14
+
15
+ <template>
16
+ <AspectRatio
17
+ v-slot="{ aspect }"
18
+ v-bind="delegatedProps"
19
+ :class="cn(
20
+ 'aspect-ratio',
21
+ props.una?.aspectRatio,
22
+ props.class,
23
+ )"
24
+ :aspect-ratio
25
+ :rounded
26
+ >
27
+ <slot :aspect />
28
+ </AspectRatio>
29
+ </template>
@@ -0,0 +1,26 @@
1
+ import type { AspectRatioProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ interface BaseExtensions {
4
+ class?: HTMLAttributes['class'];
5
+ rounded?: HTMLAttributes['class'];
6
+ }
7
+ export interface NAspectRatioProps extends AspectRatioProps, BaseExtensions {
8
+ /**
9
+ * Allows you to add `UnaUI` aspect-ratio preset properties,
10
+ * Think of it as a shortcut for adding options or variants to the preset if available.
11
+ *
12
+ * @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/aspect-ratio.ts
13
+ * @example
14
+ * aspect-ratio="soft-primary"
15
+ */
16
+ aspectRatio?: string;
17
+ /**
18
+ * `UnaUI` preset configuration
19
+ *
20
+ * @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/aspect-ratio.ts
21
+ */
22
+ una?: {
23
+ aspectRatio?: HTMLAttributes['class'];
24
+ };
25
+ }
26
+ export {};
File without changes
@@ -1,5 +1,6 @@
1
1
  export * from './accordion.js';
2
2
  export * from './alert.js';
3
+ export * from './aspect-ratio.js';
3
4
  export * from './avatar.js';
4
5
  export * from './avatar-group.js';
5
6
  export * from './badge.js';
@@ -1,5 +1,6 @@
1
1
  export * from "./accordion.js";
2
2
  export * from "./alert.js";
3
+ export * from "./aspect-ratio.js";
3
4
  export * from "./avatar.js";
4
5
  export * from "./avatar-group.js";
5
6
  export * from "./badge.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "type": "module",
4
- "version": "0.48.0",
4
+ "version": "0.49.1",
5
5
  "description": "Nuxt module for @una-ui",
6
6
  "author": "Phojie Rengel <phojrengel@gmail.com>",
7
7
  "license": "MIT",
@@ -59,8 +59,8 @@
59
59
  "typescript": "5.6.3",
60
60
  "unocss": "^66.0.0",
61
61
  "unocss-preset-animations": "^1.1.1",
62
- "@una-ui/extractor-vue-script": "^0.48.0",
63
- "@una-ui/preset": "^0.48.0"
62
+ "@una-ui/extractor-vue-script": "^0.49.1",
63
+ "@una-ui/preset": "^0.49.1"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@iconify-json/lucide": "^1.2.34",