@una-ui/nuxt 0.33.0-beta.1 → 0.35.0-beta.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/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/elements/Progress.vue +2 -0
- package/dist/runtime/components/elements/dialog/Dialog.vue +3 -3
- package/dist/runtime/components/elements/dialog/DialogContent.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogDescription.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogTitle.vue +7 -2
- package/dist/runtime/types/progress.d.ts +8 -2
- package/package.json +17 -17
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"configKey": "una",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.35.0-beta.1",
|
|
5
5
|
"compatibility": {
|
|
6
6
|
"nuxt": ">=3.0.0"
|
|
7
7
|
},
|
|
8
8
|
"builder": {
|
|
9
9
|
"@nuxt/module-builder": "0.8.4",
|
|
10
|
-
"unbuild": "
|
|
10
|
+
"unbuild": "3.3.1"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -11,6 +11,7 @@ const props = withDefaults(
|
|
|
11
11
|
defineProps<NProgressProps>(),
|
|
12
12
|
{
|
|
13
13
|
progress: 'primary',
|
|
14
|
+
rounded: 'full',
|
|
14
15
|
},
|
|
15
16
|
)
|
|
16
17
|
|
|
@@ -31,6 +32,7 @@ const delegatedProps = computed(() => {
|
|
|
31
32
|
props.class,
|
|
32
33
|
)
|
|
33
34
|
"
|
|
35
|
+
:rounded
|
|
34
36
|
:progress
|
|
35
37
|
>
|
|
36
38
|
<slot>
|
|
@@ -46,14 +46,14 @@ const rootPropsEmits = useForwardPropsEmits(rootProps, emits)
|
|
|
46
46
|
>
|
|
47
47
|
<slot name="content">
|
|
48
48
|
<DialogHeader
|
|
49
|
-
v-if="props.title || props.description || $slots.header"
|
|
50
49
|
v-bind="_dialogHeader"
|
|
50
|
+
:class="!props.title && !props.description && !$slots.title && !$slots.description && !$slots.header ? 'sr-only' : undefined"
|
|
51
51
|
:una
|
|
52
52
|
>
|
|
53
53
|
<slot name="header">
|
|
54
54
|
<DialogTitle
|
|
55
|
-
v-if="props.title"
|
|
56
55
|
v-bind="_dialogTitle"
|
|
56
|
+
:class="!props.title && !$slots.title ? 'sr-only' : undefined"
|
|
57
57
|
:una
|
|
58
58
|
>
|
|
59
59
|
<slot name="title">
|
|
@@ -62,7 +62,7 @@ const rootPropsEmits = useForwardPropsEmits(rootProps, emits)
|
|
|
62
62
|
</DialogTitle>
|
|
63
63
|
|
|
64
64
|
<DialogDescription
|
|
65
|
-
v-if="props.description"
|
|
65
|
+
v-if="props.description || $slots.description"
|
|
66
66
|
v-bind="_dialogDescription"
|
|
67
67
|
:una
|
|
68
68
|
>
|
|
@@ -20,7 +20,7 @@ const props = withDefaults(defineProps<NDialogContentProps>(), {
|
|
|
20
20
|
})
|
|
21
21
|
const emits = defineEmits<DialogContentEmits>()
|
|
22
22
|
|
|
23
|
-
const delegatedProps = reactiveOmit(props, ['class', '_dialogOverlay', '_dialogClose'])
|
|
23
|
+
const delegatedProps = reactiveOmit(props, ['class', 'una', '_dialogOverlay', '_dialogClose'])
|
|
24
24
|
|
|
25
25
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
26
26
|
</script>
|
|
@@ -6,7 +6,7 @@ import { cn } from '../../../utils'
|
|
|
6
6
|
|
|
7
7
|
const props = defineProps<NDialogDescriptionProps>()
|
|
8
8
|
|
|
9
|
-
const delegatedProps = reactiveOmit(props, 'class')
|
|
9
|
+
const delegatedProps = reactiveOmit(props, 'class', 'una')
|
|
10
10
|
|
|
11
11
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
12
12
|
</script>
|
|
@@ -6,7 +6,7 @@ import { cn } from '../../../utils'
|
|
|
6
6
|
|
|
7
7
|
const props = defineProps<NDialogTitleProps>()
|
|
8
8
|
|
|
9
|
-
const delegatedProps = reactiveOmit(props, 'class')
|
|
9
|
+
const delegatedProps = reactiveOmit(props, 'class', 'una')
|
|
10
10
|
|
|
11
11
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
12
12
|
</script>
|
|
@@ -14,7 +14,12 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
14
14
|
<template>
|
|
15
15
|
<DialogTitle
|
|
16
16
|
v-bind="forwardedProps"
|
|
17
|
-
:class="cn(
|
|
17
|
+
:class="cn(
|
|
18
|
+
'dialog-title',
|
|
19
|
+
props.una?.dialogTitle,
|
|
20
|
+
props.class,
|
|
21
|
+
)
|
|
22
|
+
"
|
|
18
23
|
>
|
|
19
24
|
<slot />
|
|
20
25
|
</DialogTitle>
|
|
@@ -12,7 +12,7 @@ export interface NProgressProps extends Extensions {
|
|
|
12
12
|
* @example
|
|
13
13
|
* progress="red""
|
|
14
14
|
*/
|
|
15
|
-
progress?:
|
|
15
|
+
progress?: HTMLAttributes['class'];
|
|
16
16
|
/**
|
|
17
17
|
* Allows you to change the size of the progress.
|
|
18
18
|
*
|
|
@@ -21,7 +21,13 @@ export interface NProgressProps extends Extensions {
|
|
|
21
21
|
* @example
|
|
22
22
|
* size="sm" | size="2cm" | size="2rem" | size="2px"
|
|
23
23
|
*/
|
|
24
|
-
size?:
|
|
24
|
+
size?: HTMLAttributes['class'];
|
|
25
|
+
/**
|
|
26
|
+
* Change the rounded corners of the progress.
|
|
27
|
+
*
|
|
28
|
+
* @default full
|
|
29
|
+
*/
|
|
30
|
+
rounded?: HTMLAttributes['class'];
|
|
25
31
|
/**
|
|
26
32
|
* `UnaUI` preset configuration
|
|
27
33
|
*
|
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.35.0-beta.1",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,35 +27,35 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@headlessui/vue": "^1.7.23",
|
|
30
|
-
"@iconify-json/lucide": "^1.2.
|
|
30
|
+
"@iconify-json/lucide": "^1.2.24",
|
|
31
31
|
"@iconify-json/radix-icons": "^1.2.2",
|
|
32
|
-
"@iconify-json/tabler": "^1.2.
|
|
33
|
-
"@nuxt/kit": "^3.15.
|
|
32
|
+
"@iconify-json/tabler": "^1.2.15",
|
|
33
|
+
"@nuxt/kit": "^3.15.2",
|
|
34
34
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
35
35
|
"@tanstack/vue-table": "^8.20.5",
|
|
36
|
-
"@unocss/core": "^
|
|
37
|
-
"@unocss/nuxt": "^
|
|
38
|
-
"@unocss/preset-attributify": "^
|
|
39
|
-
"@unocss/preset-icons": "^
|
|
36
|
+
"@unocss/core": "^65.4.3",
|
|
37
|
+
"@unocss/nuxt": "^65.4.3",
|
|
38
|
+
"@unocss/preset-attributify": "^65.4.3",
|
|
39
|
+
"@unocss/preset-icons": "^65.4.3",
|
|
40
40
|
"@vee-validate/nuxt": "^4.15.0",
|
|
41
41
|
"@vee-validate/zod": "^4.15.0",
|
|
42
|
-
"@vueuse/core": "^12.
|
|
43
|
-
"@vueuse/integrations": "^12.
|
|
44
|
-
"@vueuse/nuxt": "^12.
|
|
42
|
+
"@vueuse/core": "^12.5.0",
|
|
43
|
+
"@vueuse/integrations": "^12.5.0",
|
|
44
|
+
"@vueuse/nuxt": "^12.5.0",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
46
|
"ohash": "^1.1.4",
|
|
47
47
|
"radix-vue": "^1.9.12",
|
|
48
48
|
"tailwind-merge": "^2.6.0",
|
|
49
49
|
"typescript": "5.6.3",
|
|
50
|
-
"unocss": "^
|
|
51
|
-
"unocss-preset-animations": "^1.1.
|
|
52
|
-
"@una-ui/extractor-vue-script": "^0.
|
|
53
|
-
"@una-ui/preset": "^0.
|
|
50
|
+
"unocss": "^65.4.3",
|
|
51
|
+
"unocss-preset-animations": "^1.1.1",
|
|
52
|
+
"@una-ui/extractor-vue-script": "^0.35.0-beta.1",
|
|
53
|
+
"@una-ui/preset": "^0.35.0-beta.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@nuxt/module-builder": "^0.8.4",
|
|
57
|
-
"@nuxt/schema": "^3.15.
|
|
58
|
-
"nuxt": "^3.15.
|
|
57
|
+
"@nuxt/schema": "^3.15.2",
|
|
58
|
+
"nuxt": "^3.15.2",
|
|
59
59
|
"zod": "^3.24.1"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|