@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 +8 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue +29 -0
- package/dist/runtime/types/aspect-ratio.d.ts +26 -0
- package/dist/runtime/types/aspect-ratio.js +0 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/package.json +3 -3
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
|
-
## 📙
|
|
14
|
-
|
|
15
|
-
|
|
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
package/dist/module.mjs
CHANGED
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "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.
|
|
63
|
-
"@una-ui/preset": "^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",
|