@tb-dev/vue 0.3.12 → 0.3.13

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.
@@ -21,7 +21,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
21
21
  "update:modelValue": (value: boolean) => any;
22
22
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
23
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ }>, {
25
+ position: "after" | "before";
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
28
  export default _default;
27
29
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -3,4 +3,5 @@ export interface SwitchProps {
3
3
  disabled?: boolean;
4
4
  label?: string;
5
5
  labelClass?: string;
6
+ position?: 'after' | 'before';
6
7
  }
package/dist/index.js CHANGED
@@ -5052,7 +5052,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5052
5052
  });
5053
5053
 
5054
5054
  const _hoisted_1$2 = {
5055
- key: 0,
5055
+ key: 1,
5056
5056
  class: "w-full"
5057
5057
  };
5058
5058
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
@@ -5061,7 +5061,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5061
5061
  class: {},
5062
5062
  disabled: { type: Boolean },
5063
5063
  label: {},
5064
- labelClass: {}
5064
+ labelClass: {},
5065
+ position: { default: "before" }
5065
5066
  }, {
5066
5067
  "modelValue": { type: Boolean, ...{ required: true } },
5067
5068
  "modelModifiers": {}
@@ -5097,8 +5098,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5097
5098
  class: normalizeClass(unref(cn)("flex flex-row items-center justify-start gap-2", _ctx.labelClass))
5098
5099
  }, {
5099
5100
  default: withCtx(() => [
5100
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$2, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "label", { key: 1 }),
5101
- createVNode(unref(ReuseTemplate))
5101
+ _ctx.position === "before" ? (openBlock(), createBlock(unref(ReuseTemplate), { key: 0 })) : createCommentVNode("", true),
5102
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$2, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "label", { key: 2 }),
5103
+ _ctx.position === "after" ? (openBlock(), createBlock(unref(ReuseTemplate), { key: 3 })) : createCommentVNode("", true)
5102
5104
  ]),
5103
5105
  _: 3
5104
5106
  }, 8, ["class"])) : (openBlock(), createBlock(unref(ReuseTemplate), { key: 1 }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "Vue utilities",
5
5
  "license": "MIT",
6
6
  "type": "module",