@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 CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "configKey": "una",
4
- "version": "0.33.0-beta.1",
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": "2.0.0"
10
+ "unbuild": "3.3.1"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -7,7 +7,7 @@ import 'unocss';
7
7
  import 'unocss-preset-animations';
8
8
 
9
9
  const name = "@una-ui/nuxt";
10
- const version = "0.33.0-beta.1";
10
+ const version = "0.35.0-beta.1";
11
11
 
12
12
  const module = defineNuxtModule({
13
13
  meta: {
@@ -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('dialog-title', props.class)"
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?: string;
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?: string;
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.33.0-beta.1",
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.21",
30
+ "@iconify-json/lucide": "^1.2.24",
31
31
  "@iconify-json/radix-icons": "^1.2.2",
32
- "@iconify-json/tabler": "^1.2.13",
33
- "@nuxt/kit": "^3.15.1",
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": "^0.64.1",
37
- "@unocss/nuxt": "^0.64.1",
38
- "@unocss/preset-attributify": "^0.64.1",
39
- "@unocss/preset-icons": "^0.64.1",
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.3.0",
43
- "@vueuse/integrations": "^12.3.0",
44
- "@vueuse/nuxt": "^12.3.0",
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": "^0.64.1",
51
- "unocss-preset-animations": "^1.1.0",
52
- "@una-ui/extractor-vue-script": "^0.33.0-beta.1",
53
- "@una-ui/preset": "^0.33.0-beta.1"
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.1",
58
- "nuxt": "^3.15.1",
57
+ "@nuxt/schema": "^3.15.2",
58
+ "nuxt": "^3.15.2",
59
59
  "zod": "^3.24.1"
60
60
  },
61
61
  "publishConfig": {