@tb-dev/vue 0.3.29 → 0.3.30
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.
|
@@ -5,6 +5,7 @@ interface Props extends PrimitiveProps {
|
|
|
5
5
|
variant?: ButtonVariants['variant'];
|
|
6
6
|
size?: ButtonVariants['size'];
|
|
7
7
|
class?: HTMLAttributes['class'];
|
|
8
|
+
type?: 'button' | 'submit';
|
|
8
9
|
}
|
|
9
10
|
declare function __VLS_template(): {
|
|
10
11
|
attrs: Partial<{}>;
|
|
@@ -17,6 +18,7 @@ declare function __VLS_template(): {
|
|
|
17
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
19
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
20
|
as: import('reka-ui').AsTag | import('vue').Component;
|
|
21
|
+
type: "button" | "submit";
|
|
20
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
24
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -141,6 +141,7 @@ const _sfc_main$2X = /* @__PURE__ */ defineComponent({
|
|
|
141
141
|
variant: {},
|
|
142
142
|
size: {},
|
|
143
143
|
class: {},
|
|
144
|
+
type: { default: "button" },
|
|
144
145
|
asChild: { type: Boolean },
|
|
145
146
|
as: { default: "button" }
|
|
146
147
|
},
|
|
@@ -151,13 +152,14 @@ const _sfc_main$2X = /* @__PURE__ */ defineComponent({
|
|
|
151
152
|
"data-slot": "button",
|
|
152
153
|
as: _ctx.as,
|
|
153
154
|
"as-child": _ctx.asChild,
|
|
155
|
+
type: _ctx.type,
|
|
154
156
|
class: normalizeClass(unref(cn)(unref(buttonVariants)({ variant: _ctx.variant, size: _ctx.size }), props.class))
|
|
155
157
|
}, {
|
|
156
158
|
default: withCtx(() => [
|
|
157
159
|
renderSlot(_ctx.$slots, "default")
|
|
158
160
|
]),
|
|
159
161
|
_: 3
|
|
160
|
-
}, 8, ["as", "as-child", "class"]);
|
|
162
|
+
}, 8, ["as", "as-child", "type", "class"]);
|
|
161
163
|
};
|
|
162
164
|
}
|
|
163
165
|
});
|