@una-ui/nuxt 1.0.0-alpha.11 → 1.0.0-alpha.12

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "configKey": "una",
4
- "version": "1.0.0-alpha.11",
4
+ "version": "1.0.0-alpha.12",
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 = "1.0.0-alpha.11";
11
+ const version = "1.0.0-alpha.12";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -52,7 +52,7 @@ const id = computed(() => props.id ?? randomId("checkbox"));
52
52
  <CheckboxRoot
53
53
  v-bind="{ ...forwarded, ...$attrs }"
54
54
  :id="id"
55
- v-slot="{ ...slotProps }"
55
+ v-slot="slotProps"
56
56
  :class="
57
57
  cn(
58
58
  'peer checkbox',
@@ -68,9 +68,11 @@ const id = computed(() => props.id ?? randomId("checkbox"));
68
68
  :class="cn('checkbox-indicator', una?.checkboxIndicator)"
69
69
  v-bind="props._checkboxIndicator"
70
70
  >
71
- <slot name="icon">
71
+ <slot
72
+ name="icon" v-bind="slotProps"
73
+ >
72
74
  <Icon
73
- :name="slotProps.modelValue === 'indeterminate' ? props.una?.checkboxIndeterminateIcon ?? 'checkbox-indeterminate-icon' : slotProps.modelValue ? props.una?.checkboxCheckedIcon ?? 'checkbox-checked-icon' : props.una?.checkboxUncheckedIcon ?? 'checkbox-unchecked-icon'"
75
+ :name="slotProps.state === 'indeterminate' ? props.una?.checkboxIndeterminateIcon ?? 'checkbox-indeterminate-icon' : slotProps.state ? props.una?.checkboxCheckedIcon ?? 'checkbox-checked-icon' : props.una?.checkboxUncheckedIcon ?? 'checkbox-unchecked-icon'"
74
76
  :class="cn('checkbox-icon-base', una?.checkboxIconBase)"
75
77
  />
76
78
  </slot>
@@ -1,5 +1,5 @@
1
1
  import type { NCheckboxProps } from '../../types/index.js';
2
- declare var __VLS_9: {}, __VLS_17: {};
2
+ declare var __VLS_9: any, __VLS_17: {};
3
3
  type __VLS_Slots = {} & {
4
4
  icon?: (props: typeof __VLS_9) => any;
5
5
  } & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.11",
4
+ "version": "1.0.0-alpha.12",
5
5
  "description": "Nuxt module for @una-ui",
6
6
  "author": "Phojie Rengel <phojrengel@gmail.com>",
7
7
  "license": "MIT",
@@ -58,11 +58,11 @@
58
58
  "unocss": "^66.5.4",
59
59
  "unocss-preset-animations": "^1.3.0",
60
60
  "vaul-vue": "^0.4.1",
61
- "@una-ui/extractor-vue-script": "^1.0.0-alpha.11",
62
- "@una-ui/preset": "^1.0.0-alpha.11"
61
+ "@una-ui/extractor-vue-script": "^1.0.0-alpha.12",
62
+ "@una-ui/preset": "^1.0.0-alpha.12"
63
63
  },
64
64
  "devDependencies": {
65
- "@iconify-json/lucide": "^1.2.73",
65
+ "@iconify-json/lucide": "^1.2.74",
66
66
  "@iconify-json/radix-icons": "^1.2.5",
67
67
  "@iconify-json/tabler": "^1.2.23",
68
68
  "@nuxt/module-builder": "^1.0.2",