@soybeanjs/ui 0.6.3 → 0.6.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./button.js";import t from"../icon/icon.js";import{createBlock as n,createVNode as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,unref as l,withCtx as u}from"vue";import{useOmitProps as d}from"@soybeanjs/headless/composables";const f=i({name:`SButtonIcon`,__name:`button-icon`,props:{icon:{},iconProps:{},class:{},color:{default:`accent`},size:{},variant:{default:`ghost`},shape:{default:`square`},shadow:{},fitContent:{type:Boolean,default:!0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(i){let f=d(i,[`icon`,`iconProps`]);return(d,p)=>(c(),n(e,s(a(l(f))),{default:u(()=>[r(t,o({icon:i.icon
|
|
1
|
+
import e from"./button.js";import t from"../icon/icon.js";import{createBlock as n,createVNode as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,unref as l,withCtx as u}from"vue";import{useOmitProps as d}from"@soybeanjs/headless/composables";const f=i({name:`SButtonIcon`,__name:`button-icon`,props:{icon:{},iconClass:{},iconProps:{},class:{},color:{default:`accent`},size:{},variant:{default:`ghost`},shape:{default:`square`},shadow:{},fitContent:{type:Boolean,default:!0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(i){let f=d(i,[`icon`,`iconClass`,`iconProps`]);return(d,p)=>(c(),n(e,s(a(l(f))),{default:u(()=>[r(t,o(i.iconProps,{icon:i.icon,class:i.iconClass}),null,16,[`icon`,`class`])]),_:1},16))}});export{f as default};
|
|
@@ -13,8 +13,8 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: vue.DefineComponent<ButtonLinkProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ButtonLinkProps> & Readonly<{}>, {
|
|
15
15
|
disabled: boolean;
|
|
16
|
-
replace: boolean;
|
|
17
16
|
variant: ButtonVariant;
|
|
17
|
+
replace: boolean;
|
|
18
18
|
external: boolean;
|
|
19
19
|
viewTransition: boolean;
|
|
20
20
|
noRel: boolean;
|
|
@@ -18,6 +18,10 @@ interface ButtonProps$1 extends ButtonProps {
|
|
|
18
18
|
interface ButtonIconProps extends ButtonProps$1 {
|
|
19
19
|
/** The icon name of iconify. */
|
|
20
20
|
icon: string;
|
|
21
|
+
/**
|
|
22
|
+
* The class of the icon.
|
|
23
|
+
*/
|
|
24
|
+
iconClass?: ClassValue;
|
|
21
25
|
/** The props of the icon. */
|
|
22
26
|
iconProps?: Partial<IconProps>;
|
|
23
27
|
}
|
|
@@ -7,9 +7,9 @@ declare const __VLS_export: <T extends PageTabsOptionData>(__VLS_props: NonNulla
|
|
|
7
7
|
onContextmenu?: ((tab: T) => any) | undefined;
|
|
8
8
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
9
|
onClose?: ((tab: T) => any) | undefined;
|
|
10
|
-
onClick?: ((tab: T) => any) | undefined;
|
|
11
10
|
onPin?: ((tab: T) => any) | undefined;
|
|
12
11
|
"onUpdate:items"?: ((items: T[]) => any) | undefined;
|
|
12
|
+
onClick?: ((tab: T) => any) | undefined;
|
|
13
13
|
"onSelect-context-menu"?: ((menu: PageTabsContextMenuOptionData, tab: T) => any) | undefined;
|
|
14
14
|
}> & (typeof globalThis extends {
|
|
15
15
|
__VLS_PROPS_FALLBACK: infer P;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "SoybeanUI is built on top of SoybeanHeadless, providing a collection of styled components for Vue 3.",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/soybean-ui",
|
|
6
6
|
"bugs": {
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"tailwind-variants": "^3.2.2",
|
|
55
55
|
"valibot": "^1.2.0",
|
|
56
56
|
"zod": "^4.3.6",
|
|
57
|
-
"@soybeanjs/headless": "^0.6.
|
|
57
|
+
"@soybeanjs/headless": "^0.6.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@soybeanjs/cli": "^1.5.0",
|
|
61
61
|
"@soybeanjs/unocss-preset": "^0.2.0",
|
|
62
62
|
"@soybeanjs/unocss-shadcn": "^0.3.4",
|
|
63
|
-
"@types/node": "^25.2.
|
|
63
|
+
"@types/node": "^25.2.2",
|
|
64
64
|
"@unocss/cli": "^66.6.0",
|
|
65
65
|
"@vitest/coverage-v8": "^4.0.18",
|
|
66
66
|
"@vue/test-utils": "^2.4.6",
|