@una-ui/nuxt 0.51.4 → 0.51.6

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": "0.51.4",
4
+ "version": "0.51.6",
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.51.4";
11
+ const version = "0.51.6";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -62,7 +62,6 @@ const contentEvents = computed(() => {
62
62
  v-if="showClose"
63
63
  v-bind="_dialogClose"
64
64
  class="dialog-close"
65
- :una
66
65
  />
67
66
  </DialogContent>
68
67
  </DialogPortal>
@@ -54,7 +54,7 @@ const [DefineMenuSub, ReuseMenuSub] = createReusableTemplate<NDropdownMenuProps>
54
54
  <DropdownMenuLabel
55
55
  :size
56
56
  :inset
57
- :una="forwarded.una?.dropdownMenuLabel"
57
+ :una
58
58
  v-bind="forwarded._dropdownMenuLabel"
59
59
  >
60
60
  <slot name="menu-label">
@@ -62,14 +62,14 @@ const [DefineMenuSub, ReuseMenuSub] = createReusableTemplate<NDropdownMenuProps>
62
62
  </slot>
63
63
  </DropdownMenuLabel>
64
64
  <DropdownMenuSeparator
65
- :una="forwarded.una?.dropdownMenuSeparator"
65
+ :una
66
66
  v-bind="forwarded._dropdownMenuSeparator"
67
67
  />
68
68
  </template>
69
69
 
70
70
  <slot name="group" :items>
71
71
  <DropdownMenuGroup
72
- :una="forwarded.una?.dropdownMenuGroup"
72
+ :una
73
73
  v-bind="forwarded._dropdownMenuGroup"
74
74
  >
75
75
  <slot name="items" :items>
@@ -85,7 +85,7 @@ const [DefineMenuSub, ReuseMenuSub] = createReusableTemplate<NDropdownMenuProps>
85
85
  :size
86
86
  :inset
87
87
  :dropdown-menu-item
88
- :una="forwarded.una?.dropdownMenuItem"
88
+ :una
89
89
  :_dropdown-menu-shortcut
90
90
  v-bind="{ ...item, ...forwarded._dropdownMenuItem, ...item._dropdownMenuItem }"
91
91
  />
@@ -93,7 +93,7 @@ const [DefineMenuSub, ReuseMenuSub] = createReusableTemplate<NDropdownMenuProps>
93
93
 
94
94
  <DropdownMenuSeparator
95
95
  v-else-if="!item.label && !item.items"
96
- :una="forwarded.una?.dropdownMenuSeparator"
96
+ :una
97
97
  v-bind="{ ...forwarded._dropdownMenuSeparator, ...item._dropdownMenuSeparator }"
98
98
  />
99
99
 
@@ -119,26 +119,26 @@ const [DefineMenuSub, ReuseMenuSub] = createReusableTemplate<NDropdownMenuProps>
119
119
  <DropdownMenuLabel
120
120
  :size
121
121
  :inset
122
- :una="forwarded.una?.dropdownMenuLabel"
122
+ :una
123
123
  v-bind="{ ...forwarded._dropdownMenuLabel, ...subProps._dropdownMenuLabel }"
124
124
  >
125
125
  {{ subProps.menuLabel }}
126
126
  </DropdownMenuLabel>
127
127
  <DropdownMenuSeparator
128
- :una="forwarded.una?.dropdownMenuSeparator"
128
+ :una
129
129
  v-bind="{ ...forwarded._dropdownMenuSeparator, ...subProps._dropdownMenuSeparator }"
130
130
  />
131
131
  </template>
132
132
 
133
133
  <DropdownMenuGroup
134
- :una="forwarded.una?.dropdownMenuGroup"
134
+ :una
135
135
  v-bind="{ ...forwarded._dropdownMenuGroup, ...subProps._dropdownMenuGroup }"
136
136
  >
137
137
  <DropdownMenuSub>
138
138
  <DropdownMenuSubTrigger
139
139
  :size
140
140
  :inset
141
- :una="forwarded.una?.dropdownMenuSubTrigger"
141
+ :una
142
142
  :dropdown-menu-item
143
143
  v-bind="omitProps({
144
144
  ...subProps,
@@ -152,7 +152,7 @@ const [DefineMenuSub, ReuseMenuSub] = createReusableTemplate<NDropdownMenuProps>
152
152
  <DropdownMenuPortal>
153
153
  <DropdownMenuSubContent
154
154
  v-bind="subProps._dropdownMenuSubContent"
155
- :una="forwarded.una?.dropdownMenuSubContent"
155
+ :una
156
156
  >
157
157
  <template
158
158
  v-for="subItem in subProps.items"
@@ -164,7 +164,7 @@ const [DefineMenuSub, ReuseMenuSub] = createReusableTemplate<NDropdownMenuProps>
164
164
  :inset
165
165
  :dropdown-menu-item
166
166
  :_dropdown-menu-shortcut
167
- :una="forwarded.una?.dropdownMenuItem"
167
+ :una
168
168
  v-bind="{ ...subItem, ...forwarded._dropdownMenuItem, ...subItem._dropdownMenuItem }"
169
169
  >
170
170
  {{ subItem.label }}
@@ -172,7 +172,7 @@ const [DefineMenuSub, ReuseMenuSub] = createReusableTemplate<NDropdownMenuProps>
172
172
 
173
173
  <DropdownMenuSeparator
174
174
  v-else-if="!subItem.label && !subItem.items"
175
- :una="forwarded.una?.dropdownMenuSeparator"
175
+ :una
176
176
  v-bind="{ ...forwarded._dropdownMenuSeparator, ...subItem._dropdownMenuSeparator }"
177
177
  />
178
178
 
@@ -46,7 +46,7 @@ const forwarded = useForwardPropsEmits(rootProps, emits)
46
46
  :size
47
47
  :tooltip
48
48
  :disabled
49
- :una="una?.tooltipContent"
49
+ :una
50
50
  >
51
51
  <slot name="content">
52
52
  {{ content }}
@@ -38,6 +38,7 @@ const statusClassVariants = computed(() => {
38
38
  :class="cn(
39
39
  props.class,
40
40
  )"
41
+ :una
41
42
  >
42
43
  <slot name="top">
43
44
  <div
@@ -18,7 +18,7 @@ const props = withDefaults(defineProps<NSelectProps<T>>(), {
18
18
  size: 'sm',
19
19
  })
20
20
 
21
- const emits = defineEmits<SelectRootEmits>()
21
+ const emits = defineEmits<SelectRootEmits<T>>()
22
22
 
23
23
  const forwarded = useForwardPropsEmits(props, emits)
24
24
 
@@ -14,6 +14,7 @@ const forwarded = useForwardPropsEmits(props, emits)
14
14
  <template>
15
15
  <NavigationMenuLink
16
16
  v-bind="forwarded"
17
+ :una
17
18
  :class="cn(
18
19
  'navigation-menu-content-item',
19
20
  props.una?.navigationMenuContentItem,
@@ -36,7 +36,7 @@ export interface NAvatarRootProps extends AvatarRootProps, BaseProps {
36
36
  * avatar="solid-green"
37
37
  */
38
38
  avatar?: HTMLAttributes['class'];
39
- una?: NAvatarUnaProps['avatarRoot'];
39
+ una?: Pick<NAvatarUnaProps, 'avatarRoot'>;
40
40
  }
41
41
  export interface NAvatarAvatarFallbackProps extends AvatarFallbackProps, BaseProps {
42
42
  /**
@@ -52,12 +52,12 @@ export interface NAvatarAvatarFallbackProps extends AvatarFallbackProps, BasePro
52
52
  * label="i-lucide-user"
53
53
  */
54
54
  icon?: boolean;
55
- una?: NAvatarUnaProps['avatarFallback'];
55
+ una?: Pick<NAvatarUnaProps, 'avatarFallback' | 'avatarLabel' | 'avatarIcon'>;
56
56
  }
57
57
  export interface NAvatarImageProps extends Omit<AvatarImageProps, 'src'>, BaseProps {
58
58
  src?: string;
59
59
  alt?: string;
60
- una?: NAvatarUnaProps['avatarImage'];
60
+ una?: Pick<NAvatarUnaProps, 'avatarImage'>;
61
61
  }
62
62
  export interface NAvatarUnaProps {
63
63
  avatarRoot?: HTMLAttributes['class'];
@@ -30,10 +30,10 @@ interface BaseExtensions {
30
30
  class?: HTMLAttributes['class'];
31
31
  }
32
32
  export interface NDialogTitleProps extends DialogTitleProps, BaseExtensions {
33
- una?: NDialogUnaProps['dialogTitle'];
33
+ una?: Pick<NDialogUnaProps, 'dialogTitle'>;
34
34
  }
35
35
  export interface NDialogDescriptionProps extends DialogDescriptionProps, BaseExtensions {
36
- una?: NDialogUnaProps['dialogDescription'];
36
+ una?: Pick<NDialogUnaProps, 'dialogDescription'>;
37
37
  }
38
38
  export interface NDialogContentProps extends DialogContentProps, BaseExtensions {
39
39
  /**
@@ -65,16 +65,16 @@ export interface NDialogContentProps extends DialogContentProps, BaseExtensions
65
65
  *
66
66
  * @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/dialog.ts
67
67
  */
68
- una?: NDialogUnaProps['dialogContent'];
68
+ una?: Pick<NDialogUnaProps, 'dialogContent' | 'dialogOverlay'>;
69
69
  }
70
70
  export interface NDialogOverlayProps extends BaseExtensions, Pick<NDialogProps, 'scrollable'> {
71
- una?: NDialogUnaProps['dialogOverlay'];
71
+ una?: Pick<NDialogUnaProps, 'dialogOverlay'>;
72
72
  }
73
73
  export interface NDialogHeaderProps extends BaseExtensions {
74
- una?: NDialogUnaProps['dialogHeader'];
74
+ una?: Pick<NDialogUnaProps, 'dialogHeader'>;
75
75
  }
76
76
  export interface NDialogFooterProps extends BaseExtensions {
77
- una?: NDialogUnaProps['dialogFooter'];
77
+ una?: Pick<NDialogUnaProps, 'dialogFooter'>;
78
78
  }
79
79
  export interface NDialogCloseProps extends DialogCloseProps, NButtonProps {
80
80
  }
@@ -50,14 +50,14 @@ export interface NDropdownMenuProps extends Omit<NDropdownMenuRootProps, 'class'
50
50
  */
51
51
  export interface NDropdownMenuRootProps extends BaseExtensions, DropdownMenuRootProps {
52
52
  /** Additional properties for the una component */
53
- una?: NDropdownMenuUnaProps['dropdownMenuRoot'];
53
+ una?: Pick<NDropdownMenuUnaProps, 'dropdownMenuRoot'>;
54
54
  }
55
55
  /**
56
56
  * Props for the NDropdownMenuTrigger component.
57
57
  */
58
58
  export interface NDropdownMenuTriggerProps extends NButtonProps, DropdownMenuTriggerProps {
59
59
  /** Additional properties for the una component */
60
- una?: NDropdownMenuUnaProps['dropdownMenuTrigger'] & NButtonProps['una'];
60
+ una?: Pick<NDropdownMenuUnaProps, 'dropdownMenuTrigger'> & NButtonProps['una'];
61
61
  }
62
62
  /**
63
63
  * Props for the NDropdownMenuContent component.
@@ -74,7 +74,7 @@ export interface NDropdownMenuContentProps extends BaseExtensions, DropdownMenuC
74
74
  /** Event handler called when a pointerdown event happens outside of the DismissableLayer. Can be prevented. */
75
75
  onPointerDownOutside?: (e: PointerDownOutsideEvent) => void;
76
76
  /** Additional properties for the una component */
77
- una?: NDropdownMenuUnaProps['dropdownMenuContent'];
77
+ una?: Pick<NDropdownMenuUnaProps, 'dropdownMenuContent'>;
78
78
  }
79
79
  /**
80
80
  * Props for the NDropdownMenuLabel component.
@@ -85,28 +85,28 @@ export interface NDropdownMenuLabelProps extends BaseExtensions, DropdownMenuLab
85
85
  /** Size of the label */
86
86
  size?: HTMLAttributes['class'];
87
87
  /** Additional properties for the una component */
88
- una?: NDropdownMenuUnaProps['dropdownMenuLabel'];
88
+ una?: Pick<NDropdownMenuUnaProps, 'dropdownMenuLabel'>;
89
89
  }
90
90
  /**
91
91
  * Props for the NDropdownMenuSeparator component.
92
92
  */
93
93
  export interface NDropdownMenuSeparatorProps extends DropdownMenuSeparatorProps, NSeparatorProps {
94
94
  /** Additional properties for the una component */
95
- una?: NDropdownMenuUnaProps['dropdownMenuSeparator'] & NSeparatorProps['una'];
95
+ una?: Pick<NDropdownMenuUnaProps, 'dropdownMenuSeparator'> & NSeparatorProps['una'];
96
96
  }
97
97
  /**
98
98
  * Props for the NDropdownMenuGroup component.
99
99
  */
100
100
  export interface NDropdownMenuGroupProps extends BaseExtensions, DropdownMenuGroupProps {
101
101
  /** Additional properties for the una component */
102
- una?: NDropdownMenuUnaProps['dropdownMenuGroup'];
102
+ una?: Pick<NDropdownMenuUnaProps, 'dropdownMenuGroup'>;
103
103
  }
104
104
  /**
105
105
  * Props for the NDropdownMenuSubContent component.
106
106
  */
107
107
  export interface NDropdownMenuSubContentProps extends BaseExtensions, DropdownMenuSubContentProps {
108
108
  /** Additional properties for the una component */
109
- una?: NDropdownMenuUnaProps['dropdownMenuSubContent'];
109
+ una?: Pick<NDropdownMenuUnaProps, 'dropdownMenuSubContent'>;
110
110
  }
111
111
  /**
112
112
  * Props for the NDropdownMenuItem component.
@@ -121,7 +121,7 @@ export interface NDropdownMenuItemProps extends DropdownMenuItemProps, NButtonPr
121
121
  /** Props for the dropdown menu shortcut */
122
122
  _dropdownMenuShortcut?: Partial<NDropdownMenuShortcutProps>;
123
123
  /** Additional properties for the una component */
124
- una?: NDropdownMenuUnaProps['dropdownMenuItem'] & NButtonProps['una'];
124
+ una?: Pick<NDropdownMenuUnaProps, 'dropdownMenuItem'> & NButtonProps['una'];
125
125
  /** Select event handler */
126
126
  onSelect?: (e: Event) => void;
127
127
  }
@@ -141,7 +141,7 @@ export interface NDropdownMenuShortcutProps extends BaseExtensions {
141
141
  /** Shortcut key for the item */
142
142
  value?: string;
143
143
  /** Additional properties for the una component */
144
- una?: NDropdownMenuUnaProps['dropdownMenuShortcut'];
144
+ una?: Pick<NDropdownMenuUnaProps, 'dropdownMenuShortcut'>;
145
145
  }
146
146
  /**
147
147
  * Props for the NDropdownMenuUna component.
@@ -67,18 +67,18 @@ export interface NFormFieldProps extends NLabelProps {
67
67
  }
68
68
  export interface NFormMessageProps {
69
69
  class?: HTMLAttributes['class'];
70
- una?: NFormUnaProps['formMessage'];
70
+ una?: Pick<NFormUnaProps, 'formMessage'>;
71
71
  }
72
72
  export interface NFormLabelProps extends NLabelProps {
73
- una?: NFormUnaProps['formLabel'];
73
+ una?: Pick<NFormUnaProps, 'formLabel'>;
74
74
  }
75
75
  export interface NFormItemProps {
76
76
  class?: HTMLAttributes['class'];
77
- una?: NFormUnaProps['formItem'];
77
+ una?: Pick<NFormUnaProps, 'formItem'>;
78
78
  }
79
79
  export interface NFormDescriptionProps {
80
80
  class?: HTMLAttributes['class'];
81
- una?: NFormUnaProps['formDescription'];
81
+ una?: Pick<NFormUnaProps, 'formDescription'>;
82
82
  }
83
83
  interface NFormUnaProps {
84
84
  formField?: HTMLAttributes['class'];
@@ -54,7 +54,7 @@ export interface NNavigationMenuTriggerProps extends NavigationMenuTriggerProps,
54
54
  }
55
55
  export interface NNavigationMenuContentProps extends NavigationMenuContentProps, BaseExtensions {
56
56
  /** Additional properties for the una component */
57
- una?: NNavigationMenuUnaProps['navigationMenuContent'];
57
+ una?: Pick<NNavigationMenuUnaProps, 'navigationMenuContent'>;
58
58
  }
59
59
  export interface NNavigationMenuItemProps extends NavigationMenuItemProps, Omit<NNavigationMenuTriggerProps, 'una'>, Pick<NNavigationMenuLinkProps, 'active' | 'onSelect'>, Pick<NNavigationMenuProps<NNavigationMenuItemProps[]>, '_navigationMenuLink' | '_navigationMenuTrigger'> {
60
60
  /** Slot of the navigation menu item */
@@ -66,7 +66,7 @@ export interface NNavigationMenuItemProps extends NavigationMenuItemProps, Omit<
66
66
  }
67
67
  export interface NNavigationMenuIndicatorProps extends NavigationMenuIndicatorProps, BaseExtensions {
68
68
  /** Additional properties for the una component */
69
- una?: NNavigationMenuUnaProps['navigationMenuIndicator'];
69
+ una?: Pick<NNavigationMenuUnaProps, 'navigationMenuIndicator' | 'navigationMenuIndicatorArrow'>;
70
70
  }
71
71
  export interface NNavigationMenuLinkProps extends NavigationMenuLinkProps, Omit<NButtonProps, 'size'>, BaseExtensions {
72
72
  /**
@@ -81,17 +81,17 @@ export interface NNavigationMenuLinkProps extends NavigationMenuLinkProps, Omit<
81
81
  /** Event handler called when the link is clicked */
82
82
  onSelect?: (e: Event) => void;
83
83
  /** Additional properties for the una component */
84
- una?: NNavigationMenuUnaProps['navigationMenuLink'] & NButtonProps['una'];
84
+ una?: Pick<NNavigationMenuUnaProps, 'navigationMenuLink'> & NButtonProps['una'];
85
85
  }
86
86
  export interface NNavigationMenuListProps extends NavigationMenuListProps, Pick<NavigationMenuRootProps, 'orientation'>, BaseExtensions {
87
87
  /** Additional properties for the una component */
88
- una?: NNavigationMenuUnaProps['navigationMenuList'];
88
+ una?: Pick<NNavigationMenuUnaProps, 'navigationMenuList'>;
89
89
  }
90
90
  export interface NNavigationMenuListItemProps extends NNavigationMenuLinkProps {
91
91
  /** Description of the link. This is only used when `orientation` is `horizontal`. */
92
92
  description?: string;
93
93
  /** Additional properties for the una component */
94
- una?: Pick<NNavigationMenuUnaProps, 'navigationMenuListItem' | 'navigationMenuContentItem' | 'navigationMenuContentItemWrapper' | 'navigationMenuContentItemLabel' | 'navigationMenuContentItemDescription'>;
94
+ una?: NNavigationMenuLinkProps['una'] & Pick<NNavigationMenuUnaProps, 'navigationMenuListItem' | 'navigationMenuContentItem' | 'navigationMenuContentItemWrapper' | 'navigationMenuContentItemLabel' | 'navigationMenuContentItemDescription'>;
95
95
  }
96
96
  export interface NNavigationMenuSubProps extends NavigationMenuSubProps {
97
97
  }
@@ -35,16 +35,16 @@ export interface NScrollAreaProps extends ScrollAreaRootProps, Pick<ScrollAreaSc
35
35
  una?: NScrollAreaUnaProps;
36
36
  }
37
37
  export interface NScrollAreaRootProps extends ScrollAreaRootProps, BaseExtension {
38
- una?: NScrollAreaUnaProps['scrollAreaRoot'];
38
+ una?: Pick<NScrollAreaUnaProps, 'scrollAreaRoot'>;
39
39
  }
40
40
  export interface NScrollAreaScrollbarProps extends ScrollAreaScrollbarProps, Pick<NScrollAreaProps, 'scrollArea'>, BaseExtension {
41
41
  una?: Pick<NScrollAreaUnaProps, 'scrollAreaScrollbar' | 'scrollAreaThumb'>;
42
42
  }
43
43
  export interface NScrollAreaThumbProps extends ScrollAreaThumbProps, BaseExtension {
44
- una?: NScrollAreaUnaProps['scrollAreaThumb'];
44
+ una?: Pick<NScrollAreaUnaProps, 'scrollAreaThumb'>;
45
45
  }
46
46
  export interface NScrollAreaViewportProps extends ScrollAreaViewportProps, Pick<BaseExtension, 'class'> {
47
- una?: NScrollAreaUnaProps['scrollAreaViewport'];
47
+ una?: Pick<NScrollAreaUnaProps, 'scrollAreaViewport'>;
48
48
  }
49
49
  export interface NScrollAreaUnaProps {
50
50
  scrollAreaRoot?: HTMLAttributes['class'];
@@ -47,7 +47,7 @@ export interface NTooltipContentProps extends ContentExtensions {
47
47
  *
48
48
  * @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/tooltip.ts
49
49
  */
50
- una?: NTooltipUnaProps['tooltipContent'];
50
+ una?: Pick<NTooltipUnaProps, 'tooltipContent'>;
51
51
  }
52
52
  interface NTooltipUnaProps {
53
53
  /** CSS class for the tooltip content */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "type": "module",
4
- "version": "0.51.4",
4
+ "version": "0.51.6",
5
5
  "description": "Nuxt module for @una-ui",
6
6
  "author": "Phojie Rengel <phojrengel@gmail.com>",
7
7
  "license": "MIT",
@@ -54,13 +54,13 @@
54
54
  "class-variance-authority": "^0.7.1",
55
55
  "clsx": "^2.1.1",
56
56
  "ohash": "^1.1.6",
57
- "reka-ui": "^2.1.1",
58
- "tailwind-merge": "^3.0.2",
57
+ "reka-ui": "^2.2.0",
58
+ "tailwind-merge": "^3.2.0",
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.51.4",
63
- "@una-ui/preset": "^0.51.4"
62
+ "@una-ui/extractor-vue-script": "^0.51.6",
63
+ "@una-ui/preset": "^0.51.6"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@iconify-json/lucide": "^1.2.35",