@una-ui/nuxt 0.51.0 → 0.51.2
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
package/dist/module.mjs
CHANGED
|
@@ -6,6 +6,10 @@ import { cn } from '../../../utils'
|
|
|
6
6
|
import Button from '../Button.vue'
|
|
7
7
|
import DropdownMenuShortcut from './DropdownMenuShortcut.vue'
|
|
8
8
|
|
|
9
|
+
defineOptions({
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
})
|
|
12
|
+
|
|
9
13
|
const props = withDefaults(defineProps<NDropdownMenuItemProps>(), {
|
|
10
14
|
size: 'sm',
|
|
11
15
|
dropdownMenuItem: '~',
|
|
@@ -29,7 +33,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
29
33
|
as-child
|
|
30
34
|
>
|
|
31
35
|
<Button
|
|
32
|
-
v-bind="forwardedProps"
|
|
36
|
+
v-bind="{ ...forwardedProps, ...$attrs }"
|
|
33
37
|
:dropdown-menu-item
|
|
34
38
|
:class="cn(
|
|
35
39
|
'dropdown-menu-item-base w-full justify-start font-normal px-0.5714285714285714em py-0.42857142857142855em h-auto',
|
|
@@ -125,17 +125,5 @@ export interface NButtonProps extends BaseExtensionProps {
|
|
|
125
125
|
btnLeading?: string;
|
|
126
126
|
btnLoadingIcon?: string;
|
|
127
127
|
};
|
|
128
|
-
/**
|
|
129
|
-
* Support for `@click` event handler.
|
|
130
|
-
*
|
|
131
|
-
* This property is explicitly defined to provide proper TypeScript support when:
|
|
132
|
-
* 1. Using the component with dynamic properties (e.g., v-bind="props")
|
|
133
|
-
* 2. Passing event handlers via object syntax in parent components
|
|
134
|
-
* 3. Using camelCase event handlers in JSX/TSX contexts
|
|
135
|
-
*
|
|
136
|
-
* Without this definition, TypeScript would raise type errors when trying to pass
|
|
137
|
-
* an onClick handler to the component through object properties.
|
|
138
|
-
*/
|
|
139
|
-
onClick?: (e: Event) => void;
|
|
140
128
|
}
|
|
141
129
|
export {};
|
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
|
+
"version": "0.51.2",
|
|
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/
|
|
63
|
-
"@una-ui/
|
|
62
|
+
"@una-ui/preset": "^0.51.2",
|
|
63
|
+
"@una-ui/extractor-vue-script": "^0.51.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@iconify-json/lucide": "^1.2.34",
|