@soft-stech/bootsman-ui-shadcn 1.1.25 → 1.1.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,24 +1,2 @@
1
- import { HTMLAttributes } from 'vue';
2
- import { inputVariants } from './index';
3
-
4
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
- defaultValue?: string | number | undefined;
6
- variant?: NonNullable<Parameters<typeof inputVariants>[0]>['variant'];
7
- modelValue?: string | number | undefined;
8
- class?: HTMLAttributes['class'];
9
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
- defaultValue?: string | number | undefined;
11
- variant?: NonNullable<Parameters<typeof inputVariants>[0]>['variant'];
12
- modelValue?: string | number | undefined;
13
- class?: HTMLAttributes['class'];
14
- }>>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
15
2
  export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToRuntimeProps<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('vue').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
@@ -1,5 +1,5 @@
1
- import { d as c, c as m, a as v } from "../../../utils-C9G8Xvqo.js";
2
- import { defineComponent as d, withDirectives as y, openBlock as s, createElementBlock as p, isRef as b, normalizeClass as g, unref as t, vModelText as k, ref as w, createVNode as x, mergeProps as V, createElementVNode as h, createBlock as i } from "vue";
1
+ import { d as u, c as m, a as v } from "../../../utils-C9G8Xvqo.js";
2
+ import { defineComponent as d, withDirectives as y, openBlock as r, createElementBlock as c, isRef as b, normalizeClass as g, unref as t, vModelText as k, ref as w, createVNode as h, mergeProps as x, createElementVNode as V, createBlock as i } from "vue";
3
3
  import { u as _ } from "../../../index-DO0xNIC7.js";
4
4
  /**
5
5
  * @license lucide-vue-next v0.377.0 - ISC
@@ -7,7 +7,7 @@ import { u as _ } from "../../../index-DO0xNIC7.js";
7
7
  * This source code is licensed under the ISC license.
8
8
  * See the LICENSE file in the root directory of this source tree.
9
9
  */
10
- const B = c("EyeOffIcon", [
10
+ const B = u("EyeOffIcon", [
11
11
  ["path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24", key: "1jxqfv" }],
12
12
  [
13
13
  "path",
@@ -28,7 +28,7 @@ const B = c("EyeOffIcon", [
28
28
  * This source code is licensed under the ISC license.
29
29
  * See the LICENSE file in the root directory of this source tree.
30
30
  */
31
- const I = c("EyeIcon", [
31
+ const I = u("EyeIcon", [
32
32
  ["path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z", key: "rwhkz3" }],
33
33
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
34
34
  ]), E = /* @__PURE__ */ d({
@@ -40,41 +40,35 @@ const I = c("EyeIcon", [
40
40
  class: {}
41
41
  },
42
42
  emits: ["update:modelValue"],
43
- setup(r, { emit: o }) {
44
- const e = r, a = _(e, "modelValue", o, {
43
+ setup(o, { emit: e }) {
44
+ const s = o, a = _(s, "modelValue", e, {
45
45
  passive: !0,
46
- defaultValue: e.defaultValue
46
+ defaultValue: s.defaultValue
47
47
  });
48
- return (n, u) => y((s(), p("input", {
49
- "onUpdate:modelValue": u[0] || (u[0] = (f) => b(a) ? a.value = f : null),
50
- class: g(t(m)(t(j)({ variant: n.variant }), e.class ?? ""))
48
+ return (f, n) => y((r(), c("input", {
49
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => b(a) ? a.value = p : null),
50
+ class: g(t(m)(t(j)({ variant: f.variant }), s.class ?? ""))
51
51
  }, null, 2)), [
52
52
  [k, t(a)]
53
53
  ]);
54
54
  }
55
55
  }), M = { class: "relative flex" }, A = /* @__PURE__ */ d({
56
56
  __name: "BuiPasswordInput",
57
- props: {
58
- defaultValue: {},
59
- variant: {},
60
- modelValue: {},
61
- class: {}
62
- },
63
- setup(r) {
64
- const o = r, e = w("password");
65
- function l() {
57
+ setup(o) {
58
+ const e = w("password");
59
+ function s() {
66
60
  e.value === "password" ? e.value = "text" : e.value = "password";
67
61
  }
68
- return (a, n) => (s(), p("div", M, [
69
- x(t(E), V(o, { type: e.value }), null, 16, ["type"]),
70
- h("span", {
71
- onClick: l,
62
+ return (l, a) => (r(), c("div", M, [
63
+ h(t(E), x(l.$attrs, { type: e.value }), null, 16, ["type"]),
64
+ V("span", {
65
+ onClick: s,
72
66
  class: "absolute right-3 top-0 flex h-full items-center justify-center"
73
67
  }, [
74
- e.value === "password" ? (s(), i(t(I), {
68
+ e.value === "password" ? (r(), i(t(I), {
75
69
  key: 0,
76
70
  class: "h-4 w-4"
77
- })) : (s(), i(t(B), {
71
+ })) : (r(), i(t(B), {
78
72
  key: 1,
79
73
  class: "h-4 w-4"
80
74
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soft-stech/bootsman-ui-shadcn",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -3,13 +3,6 @@ import { BuiInput, inputVariants } from '@/components/ui/input/index'
3
3
  import { type HTMLAttributes, ref } from 'vue'
4
4
  import { EyeIcon, EyeOffIcon } from 'lucide-vue-next'
5
5
 
6
- const props = defineProps<{
7
- defaultValue?: string | number
8
- variant?: NonNullable<Parameters<typeof inputVariants>[0]>['variant']
9
- modelValue?: string | number
10
- class?: HTMLAttributes['class']
11
- }>()
12
-
13
6
  const type = ref('password')
14
7
  function togglePasswordShow() {
15
8
  if (type.value === 'password') {
@@ -22,7 +15,7 @@ function togglePasswordShow() {
22
15
 
23
16
  <template>
24
17
  <div class="relative flex">
25
- <BuiInput v-bind="props" :type="type" />
18
+ <BuiInput v-bind="$attrs" :type="type" />
26
19
  <span
27
20
  @click="togglePasswordShow"
28
21
  class="absolute right-3 top-0 flex h-full items-center justify-center"