anysystem-design 0.0.55 → 0.0.57

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,30 +1,30 @@
1
1
  import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import y, { Fragment as h } from "react";
3
- import { t as f } from "../../bundle-mjs-SHnj3fHy.js";
2
+ import f, { Fragment as h } from "react";
3
+ import { t as y } from "../../bundle-mjs-SHnj3fHy.js";
4
4
  import { H as E } from "../../index-BVp57yIc.js";
5
- import { c as C } from "../../index-CBEJ8A3p.js";
6
- import { G as w } from "../../iconBase-Bipuk9tK.js";
5
+ import { c as w } from "../../index-CBEJ8A3p.js";
6
+ import { G as C } from "../../iconBase-Bipuk9tK.js";
7
7
  import { getValue as d } from "../Selectbox/helper.js";
8
- import { N, G as A, H as L, z as S, K as H } from "../../combobox-BGEhR2HT.js";
9
- import { X as k } from "../../transition-6o20faRl.js";
10
- function T(t) {
11
- return w({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z" }, child: [] }] })(t);
8
+ import { N, G as k, H as A, z as L, K as S } from "../../combobox-BGEhR2HT.js";
9
+ import { X as H } from "../../transition-6o20faRl.js";
10
+ function T(a) {
11
+ return C({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z" }, child: [] }] })(a);
12
12
  }
13
- const R = (t, a) => a.type === "SEARCH" ? {
14
- ...t,
15
- query: a.query,
16
- filterList: t.list.filter((l) => l.label.toLowerCase().includes(a.query.toLowerCase()))
17
- } : a.type === "SETVALUE" ? {
18
- ...t,
19
- value: a.value,
20
- selected: t.list.find((l) => d(l, t.valueField) === a.value) || null
21
- } : a.type === "SETSELECT" ? {
22
- ...t,
23
- selected: a.selected,
24
- value: d(a.selected, t.valueField) + ""
25
- } : t, q = ({
26
- id: t,
27
- name: a,
13
+ const R = (a, t) => t.type === "SEARCH" ? {
14
+ ...a,
15
+ query: t.query,
16
+ filterList: a.list.filter((l) => l.label.toLowerCase().includes(t.query.toLowerCase()))
17
+ } : t.type === "SETVALUE" ? {
18
+ ...a,
19
+ value: t.value,
20
+ selected: a.list.find((l) => d(l, a.valueField) === t.value) || null
21
+ } : t.type === "SETSELECT" ? {
22
+ ...a,
23
+ selected: t.selected,
24
+ value: d(t.selected, a.valueField) + ""
25
+ } : a, q = ({
26
+ id: a,
27
+ name: t,
28
28
  options: l,
29
29
  value: i = "",
30
30
  valueField: c = "value",
@@ -33,7 +33,7 @@ const R = (t, a) => a.type === "SEARCH" ? {
33
33
  placeholder: v,
34
34
  closeButton: g = !0
35
35
  }, b) => {
36
- const [n, s] = y.useReducer(R, {
36
+ const [n, s] = f.useReducer(R, {
37
37
  list: l,
38
38
  query: "",
39
39
  filterList: l,
@@ -44,7 +44,7 @@ const R = (t, a) => a.type === "SEARCH" ? {
44
44
  return i ? o === i : !1;
45
45
  }) || null
46
46
  });
47
- return y.useImperativeHandle(b, () => ({
47
+ return f.useImperativeHandle(b, () => ({
48
48
  search: (e) => s({ type: "SEARCH", query: e }),
49
49
  setValue: (e) => s({ type: "SETVALUE", value: e })
50
50
  })), /* @__PURE__ */ r(
@@ -59,14 +59,15 @@ const R = (t, a) => a.type === "SEARCH" ? {
59
59
  },
60
60
  children: /* @__PURE__ */ m("div", { className: "relative", children: [
61
61
  /* @__PURE__ */ r(
62
- A,
62
+ k,
63
63
  {
64
64
  placeholder: v,
65
65
  onChange: (e) => {
66
66
  s({ type: "SEARCH", query: e.target.value }), p && p(e.target.value);
67
67
  },
68
68
  autoComplete: "off",
69
- displayValue: (e) => (e == null ? void 0 : e.label) || ""
69
+ displayValue: (e) => (e == null ? void 0 : e.label) || "",
70
+ className: "dark:bg-gray-950 dark:text-white"
70
71
  }
71
72
  ),
72
73
  /* @__PURE__ */ m("div", { className: "absolute inset-y-0 right-0 flex items-center pr-2", children: [
@@ -74,7 +75,7 @@ const R = (t, a) => a.type === "SEARCH" ? {
74
75
  "button",
75
76
  {
76
77
  type: "button",
77
- className: f(
78
+ className: y(
78
79
  "size-5 text-gray-400 hover:text-gray-500 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 items-center flex justify-center",
79
80
  n.value ? "" : "hidden",
80
81
  g ? "" : "!hidden"
@@ -85,7 +86,7 @@ const R = (t, a) => a.type === "SEARCH" ? {
85
86
  children: /* @__PURE__ */ r(T, {})
86
87
  }
87
88
  ),
88
- /* @__PURE__ */ r(L, { className: "items-center", children: /* @__PURE__ */ r(
89
+ /* @__PURE__ */ r(A, { className: "items-center", children: /* @__PURE__ */ r(
89
90
  E,
90
91
  {
91
92
  className: "text-gray-400 size-5",
@@ -98,14 +99,14 @@ const R = (t, a) => a.type === "SEARCH" ? {
98
99
  {
99
100
  className: "!hidden",
100
101
  type: "text",
101
- id: t,
102
- name: a,
102
+ id: a,
103
+ name: t,
103
104
  readOnly: !0,
104
105
  value: n.value + ""
105
106
  }
106
107
  ),
107
108
  /* @__PURE__ */ r(
108
- k,
109
+ H,
109
110
  {
110
111
  as: h,
111
112
  enter: "transition duration-100 ease-out",
@@ -115,10 +116,10 @@ const R = (t, a) => a.type === "SEARCH" ? {
115
116
  leaveFrom: "scale-100 transform opacity-100",
116
117
  leaveTo: "scale-95 transform opacity-0",
117
118
  afterLeave: () => s({ type: "SEARCH", query: "" }),
118
- children: /* @__PURE__ */ r(S, { className: "absolute z-50 w-full py-1 mt-5 overflow-auto text-base bg-white shadow-lg max-h-60 rounded-md ring-1 ring-black/5 focus:outline-none dark:bg-gray-900 sm:text-sm", children: n.filterList.map((e) => /* @__PURE__ */ r(H, { as: h, value: e, children: ({ selected: o, focus: x }) => /* @__PURE__ */ m(
119
+ children: /* @__PURE__ */ r(L, { className: "absolute z-50 w-full py-1 mt-5 overflow-auto text-base bg-white shadow-lg max-h-60 rounded-md ring-1 ring-black/5 focus:outline-none dark:bg-gray-900 sm:text-sm", children: n.filterList.map((e) => /* @__PURE__ */ r(S, { as: h, value: e, children: ({ selected: o, focus: x }) => /* @__PURE__ */ m(
119
120
  "li",
120
121
  {
121
- className: f(
122
+ className: y(
122
123
  "relative flex cursor-pointer justify-between px-5 py-4 text-black hover:bg-primary-100 dark:text-white dark:hover:bg-primary-900",
123
124
  (o || x) && "bg-primary-100 dark:bg-primary-900",
124
125
  e.enable === !1 && "cursor-not-allowed opacity-50"
@@ -128,10 +129,10 @@ const R = (t, a) => a.type === "SEARCH" ? {
128
129
  o ? /* @__PURE__ */ r(
129
130
  "span",
130
131
  {
131
- className: f(
132
+ className: y(
132
133
  "absolute inset-y-0 left-0 flex items-center pl-3 text-primary-600"
133
134
  ),
134
- children: /* @__PURE__ */ r(C, { className: "w-5 h-5", "aria-hidden": "true" })
135
+ children: /* @__PURE__ */ r(w, { className: "w-5 h-5", "aria-hidden": "true" })
135
136
  }
136
137
  ) : null
137
138
  ]
@@ -142,7 +143,7 @@ const R = (t, a) => a.type === "SEARCH" ? {
142
143
  ] })
143
144
  }
144
145
  );
145
- }, X = y.forwardRef(q);
146
+ }, X = f.forwardRef(q);
146
147
  export {
147
148
  X as default
148
149
  };
@@ -6,7 +6,7 @@ import { H as C } from "../../index-BVp57yIc.js";
6
6
  import { c as w } from "../../index-CBEJ8A3p.js";
7
7
  import { g as N } from "../../index-Be1bsSGe.js";
8
8
  import { getValue as o } from "../Selectbox/helper.js";
9
- import { N as L, G as S, H as k, z as T, K as q } from "../../combobox-BGEhR2HT.js";
9
+ import { N as k, G as L, H as S, z as T, K as q } from "../../combobox-BGEhR2HT.js";
10
10
  import { X as A } from "../../transition-6o20faRl.js";
11
11
  const R = (r, t) => {
12
12
  if (t.type === "SEARCH")
@@ -71,7 +71,7 @@ const R = (r, t) => {
71
71
  c({ type: "SETVALUE", value: e });
72
72
  }
73
73
  })), /* @__PURE__ */ l(
74
- L,
74
+ k,
75
75
  {
76
76
  value: s.selected,
77
77
  onChange: (e) => {
@@ -96,13 +96,14 @@ const R = (r, t) => {
96
96
  )
97
97
  ] }) }, i)) }),
98
98
  /* @__PURE__ */ l(
99
- S,
99
+ L,
100
100
  {
101
101
  placeholder: E,
102
102
  value: s.query,
103
103
  onChange: (e) => {
104
104
  c({ type: "SEARCH", query: e.target.value }), y && y(e.target.value);
105
105
  },
106
+ className: "dark:bg-gray-950 dark:text-white",
106
107
  onKeyDown: (e) => {
107
108
  e.key === "Backspace" && s.query === "" && s.selected.length > 0 && c({
108
109
  type: "REMOVESELECT",
@@ -112,7 +113,7 @@ const R = (r, t) => {
112
113
  autoComplete: "off"
113
114
  }
114
115
  ),
115
- /* @__PURE__ */ l(k, { className: "absolute inset-y-0 right-0 flex items-center pr-2", children: /* @__PURE__ */ l(
116
+ /* @__PURE__ */ l(S, { className: "absolute inset-y-0 right-0 flex items-center pr-2", children: /* @__PURE__ */ l(
116
117
  C,
117
118
  {
118
119
  className: "w-5 h-5 text-gray-400",
@@ -1,17 +1,17 @@
1
- import { jsx as r, jsxs as o, Fragment as n } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as o, Fragment as s } from "react/jsx-runtime";
2
2
  import { h as m, G as a } from "../../headless-datepicker-DRvAXFm1.js";
3
3
  import { t as l } from "../../bundle-mjs-SHnj3fHy.js";
4
4
  import { d as k, e as v } from "../../index-Be1bsSGe.js";
5
5
  import w from "../Label/Label.js";
6
6
  const B = ({
7
7
  name: c,
8
- value: s,
8
+ value: n,
9
9
  showTime: d,
10
10
  onChange: g,
11
11
  readOnly: u,
12
12
  labelProps: y
13
13
  }) => {
14
- const h = () => /* @__PURE__ */ o(n, { children: [
14
+ const h = () => /* @__PURE__ */ o(s, { children: [
15
15
  /* @__PURE__ */ r(
16
16
  "input",
17
17
  {
@@ -20,7 +20,7 @@ const B = ({
20
20
  d === !0 ? "!hidden" : "md:hidden"
21
21
  ),
22
22
  type: d === !0 ? "datetime-local" : "date",
23
- value: m(new Date(+s * 1e3)).format(
23
+ value: m(new Date(+n * 1e3)).format(
24
24
  d === !0 ? "YYYY-MM-DD HH:mm" : "YYYY-MM-DD"
25
25
  ),
26
26
  onChange: (i) => g(Math.round(new Date(i.target.value).getTime() / 1e3) + "")
@@ -30,16 +30,17 @@ const B = ({
30
30
  a,
31
31
  {
32
32
  disabledKeyboardNavigation: !0,
33
- value: s ? new Date(+s * 1e3) : /* @__PURE__ */ new Date(),
33
+ value: n ? new Date(+n * 1e3) : /* @__PURE__ */ new Date(),
34
34
  onChange: (i) => g(Math.round(i.getTime() / 1e3) + ""),
35
35
  children: [
36
36
  /* @__PURE__ */ r(
37
37
  a.Input,
38
38
  {
39
39
  name: c,
40
- value: new Date(+s * 1e3).getTime() / 1e3 || "",
40
+ value: new Date(+n * 1e3).getTime() / 1e3 || "",
41
41
  format: d === !0 ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd",
42
- id: c
42
+ id: c,
43
+ className: "dark:bg-gray-950 dark:text-white"
43
44
  }
44
45
  ),
45
46
  /* @__PURE__ */ r(
@@ -99,10 +100,10 @@ const B = ({
99
100
  ...e.type === "minute" && d === !0 && { action: "close" },
100
101
  ...e.type === "month" || e.type === "year" ? { action: "showDay" } : void 0,
101
102
  children: [
102
- e.type === "day" && /* @__PURE__ */ r(n, { children: e.isHeader ? e.text.substring(0, 3) : e.text }),
103
- e.type === "month" && /* @__PURE__ */ r(n, { children: e.text.substring(0, 3) }),
104
- e.type === "year" && /* @__PURE__ */ r(n, { children: e.text }),
105
- e.type === "hour" && /* @__PURE__ */ r(n, { children: e.text })
103
+ e.type === "day" && /* @__PURE__ */ r(s, { children: e.isHeader ? e.text.substring(0, 3) : e.text }),
104
+ e.type === "month" && /* @__PURE__ */ r(s, { children: e.text.substring(0, 3) }),
105
+ e.type === "year" && /* @__PURE__ */ r(s, { children: e.text }),
106
+ e.type === "hour" && /* @__PURE__ */ r(s, { children: e.text })
106
107
  ]
107
108
  },
108
109
  e.key
@@ -1,17 +1,17 @@
1
- import { jsx as n, jsxs as v } from "react/jsx-runtime";
2
- import d from "react";
3
- import { t as f } from "../../bundle-mjs-SHnj3fHy.js";
4
- import h from "../Label/Label.js";
5
- const y = ({ name: a, inputProps: t, inputBefore: i, inputAfter: u, className: e, labelProps: l, ...r }, m) => {
6
- const c = d.useRef(null);
7
- d.useImperativeHandle(
8
- m,
9
- () => c.current
1
+ import { jsx as n, jsxs as m } from "react/jsx-runtime";
2
+ import f from "react";
3
+ import { t as d } from "../../bundle-mjs-SHnj3fHy.js";
4
+ import v from "../Label/Label.js";
5
+ const y = ({ name: x, inputProps: t, inputBefore: i, inputAfter: u, className: e, labelProps: l, ...r }, h) => {
6
+ const a = f.useRef(null);
7
+ f.useImperativeHandle(
8
+ h,
9
+ () => a.current
10
10
  );
11
- const x = () => /* @__PURE__ */ v(
11
+ const c = () => /* @__PURE__ */ m(
12
12
  "div",
13
13
  {
14
- className: f(
14
+ className: d(
15
15
  "flex w-full items-center",
16
16
  (e == null ? void 0 : e.container) && e.container
17
17
  ),
@@ -19,7 +19,7 @@ const y = ({ name: a, inputProps: t, inputBefore: i, inputAfter: u, className: e
19
19
  i && /* @__PURE__ */ n(
20
20
  "div",
21
21
  {
22
- className: f(
22
+ className: d(
23
23
  "btn-before mr-2 flex h-9 items-center justify-center rounded-full px-3 text-gray-400"
24
24
  ),
25
25
  children: i
@@ -28,19 +28,22 @@ const y = ({ name: a, inputProps: t, inputBefore: i, inputAfter: u, className: e
28
28
  /* @__PURE__ */ n(
29
29
  "input",
30
30
  {
31
- ref: c,
31
+ ref: a,
32
32
  ...t && t,
33
33
  ...r,
34
34
  value: (t == null ? void 0 : t.value) || (r == null ? void 0 : r.value) || "",
35
- className: f((e == null ? void 0 : e.input) && e.input),
35
+ className: d(
36
+ "dark:bg-gray-950 dark:text-white",
37
+ (e == null ? void 0 : e.input) && e.input
38
+ ),
36
39
  readOnly: r.readOnly,
37
- id: a
40
+ id: x
38
41
  }
39
42
  ),
40
43
  u && /* @__PURE__ */ n(
41
44
  "div",
42
45
  {
43
- className: f(
46
+ className: d(
44
47
  "btn-after mr-2 flex h-9 items-center justify-center rounded-full text-gray-400"
45
48
  ),
46
49
  children: u
@@ -49,8 +52,8 @@ const y = ({ name: a, inputProps: t, inputBefore: i, inputAfter: u, className: e
49
52
  ]
50
53
  }
51
54
  );
52
- return l ? /* @__PURE__ */ n(h, { ...l, children: x() }) : x();
53
- }, g = d.forwardRef(y);
55
+ return l ? /* @__PURE__ */ n(v, { ...l, children: c() }) : c();
56
+ }, w = f.forwardRef(y);
54
57
  export {
55
- g as default
58
+ w as default
56
59
  };
@@ -1,62 +1,65 @@
1
- import { jsxs as m, jsx as d } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as f } from "react/jsx-runtime";
2
2
  import i from "react";
3
- import { t as f } from "../../bundle-mjs-SHnj3fHy.js";
4
- const v = ({ name: h, inputProps: n, inputBefore: u, inputAfter: c, className: t, ...e }, x) => {
5
- const a = i.useRef(null);
3
+ import { t as l } from "../../bundle-mjs-SHnj3fHy.js";
4
+ const v = ({ name: x, inputProps: n, inputBefore: u, inputAfter: h, className: t, ...e }, c) => {
5
+ const d = i.useRef(null);
6
6
  i.useImperativeHandle(
7
- x,
8
- () => a.current
7
+ c,
8
+ () => d.current
9
9
  );
10
10
  const g = (r) => {
11
- let l = (r.match(/\n/g) || []).length + 1;
12
- a.current.style.height = `${l * 1.25 + 1}em`;
11
+ let a = (r.match(/\n/g) || []).length + 1;
12
+ d.current.style.height = `${a * 1.25 + 1}em`;
13
13
  };
14
14
  return /* @__PURE__ */ m(
15
15
  "div",
16
16
  {
17
- className: f(
17
+ className: l(
18
18
  "flex w-full items-center",
19
19
  (t == null ? void 0 : t.container) && t.container
20
20
  ),
21
21
  children: [
22
- u && /* @__PURE__ */ d(
22
+ u && /* @__PURE__ */ f(
23
23
  "div",
24
24
  {
25
- className: f(
25
+ className: l(
26
26
  "btn-before mr-2 flex h-9 items-center justify-center rounded-full px-3 text-gray-400"
27
27
  ),
28
28
  children: u
29
29
  }
30
30
  ),
31
- /* @__PURE__ */ d(
31
+ /* @__PURE__ */ f(
32
32
  "textarea",
33
33
  {
34
- ref: a,
34
+ ref: d,
35
35
  ...n && n,
36
36
  ...e,
37
37
  value: (n == null ? void 0 : n.value) || (e == null ? void 0 : e.value) || "",
38
- className: f((t == null ? void 0 : t.input) && t.input),
38
+ className: l(
39
+ "dark:bg-gray-950 dark:text-white",
40
+ (t == null ? void 0 : t.input) && t.input
41
+ ),
39
42
  readOnly: e.readOnly,
40
- id: h,
43
+ id: x,
41
44
  onChange: (r) => {
42
- var l;
43
- (l = e == null ? void 0 : e.onChange) == null || l.call(e, r), g(r.target.value);
45
+ var a;
46
+ (a = e == null ? void 0 : e.onChange) == null || a.call(e, r), g(r.target.value);
44
47
  }
45
48
  }
46
49
  ),
47
- c && /* @__PURE__ */ d(
50
+ h && /* @__PURE__ */ f(
48
51
  "div",
49
52
  {
50
- className: f(
53
+ className: l(
51
54
  "btn-after mr-2 flex h-9 items-center justify-center rounded-full text-gray-400"
52
55
  ),
53
- children: c
56
+ children: h
54
57
  }
55
58
  )
56
59
  ]
57
60
  }
58
61
  );
59
- }, R = i.forwardRef(v);
62
+ }, w = i.forwardRef(v);
60
63
  export {
61
- R as default
64
+ w as default
62
65
  };
@@ -1,12 +1,12 @@
1
1
  import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
- import { t as d } from "../../bundle-mjs-SHnj3fHy.js";
2
+ import { t as o } from "../../bundle-mjs-SHnj3fHy.js";
3
3
  import { F as f } from "../../index-CBEJ8A3p.js";
4
- const h = ({
4
+ const g = ({
5
5
  label: l,
6
6
  className: s,
7
7
  htmlFor: i,
8
8
  isError: t = !1,
9
- errorMessage: o,
9
+ errorMessage: d,
10
10
  type: e = "border",
11
11
  variant: m = "md",
12
12
  children: c
@@ -14,7 +14,7 @@ const h = ({
14
14
  /* @__PURE__ */ r(
15
15
  "div",
16
16
  {
17
- className: d(
17
+ className: o(
18
18
  "relative flex w-full flex-col ",
19
19
  e === "border" && "rounded border border-gray-400 dark:border-gray-600 dark:bg-gray-950",
20
20
  e === "horizontal" ? "flex-row gap-2" : "form-group",
@@ -26,8 +26,8 @@ const h = ({
26
26
  l && /* @__PURE__ */ a(
27
27
  "label",
28
28
  {
29
- className: d(
30
- e === "border" && "hidden text-gray-600 opacity-0 dark:text-white",
29
+ className: o(
30
+ e === "border" && "hidden text-gray-600 opacity-0 dark:text-white dark:bg-gray-950",
31
31
  e === "horizontal" && "flex items-center justify-center",
32
32
  "mb-1 text-sm font-semibold"
33
33
  ),
@@ -39,11 +39,11 @@ const h = ({
39
39
  ]
40
40
  }
41
41
  ),
42
- t && o && /* @__PURE__ */ r("span", { className: "flex items-center text-sm text-red-600 gap-1", children: [
42
+ t && d && /* @__PURE__ */ r("span", { className: "flex items-center text-sm text-red-600 gap-1", children: [
43
43
  /* @__PURE__ */ a("div", { className: "w-4", children: /* @__PURE__ */ a(f, {}) }),
44
- o
44
+ d
45
45
  ] })
46
46
  ] });
47
47
  export {
48
- h as default
48
+ g as default
49
49
  };
@@ -1,35 +1,36 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
2
  import r from "react";
3
- import { t as d } from "../../bundle-mjs-SHnj3fHy.js";
4
- import { a as u, b as l } from "../../index-CBEJ8A3p.js";
5
- const p = ({ type: o = "password", ...a }, n) => {
6
- const t = r.useRef(null), [s, f] = r.useState(o !== "password");
3
+ import { t as o } from "../../bundle-mjs-SHnj3fHy.js";
4
+ import { a as l, b as u } from "../../index-CBEJ8A3p.js";
5
+ const c = ({ type: n = "password", ...t }, d) => {
6
+ const a = r.useRef(null), [s, i] = r.useState(n !== "password");
7
7
  return r.useImperativeHandle(
8
- n,
9
- () => t.current
10
- ), /* @__PURE__ */ i("div", { className: "flex w-full items-center", children: [
8
+ d,
9
+ () => a.current
10
+ ), /* @__PURE__ */ f("div", { className: "flex w-full items-center", children: [
11
11
  /* @__PURE__ */ e(
12
12
  "input",
13
13
  {
14
- ref: t,
14
+ ref: a,
15
15
  type: s ? "text" : "password",
16
- ...a
16
+ ...t,
17
+ className: o("dark:bg-gray-950 dark:text-white", t.className)
17
18
  }
18
19
  ),
19
20
  /* @__PURE__ */ e(
20
21
  "a",
21
22
  {
22
- className: d(
23
+ className: o(
23
24
  "mr-2 flex h-9 w-10 cursor-pointer items-center justify-center rounded-full text-gray-600",
24
25
  "hover:bg-gray-100 dark:hover:bg-gray-700 hover:duration-200",
25
26
  "btn-show-password"
26
27
  ),
27
- onClick: () => f(!s),
28
- children: s ? /* @__PURE__ */ e(u, { fontSize: 14 }) : /* @__PURE__ */ e(l, { fontSize: 14 })
28
+ onClick: () => i(!s),
29
+ children: s ? /* @__PURE__ */ e(l, { fontSize: 14 }) : /* @__PURE__ */ e(u, { fontSize: 14 })
29
30
  }
30
31
  )
31
32
  ] });
32
- }, x = r.forwardRef(p);
33
+ }, g = r.forwardRef(c);
33
34
  export {
34
- x as default
35
+ g as default
35
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anysystem-design",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",