@xola/ui-kit 3.4.3 → 3.4.5

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.
@@ -8,12 +8,12 @@ const k = {
8
8
  medium: "px-3 py-2.5 text-base leading-base",
9
9
  large: "px-5 py-3.5 text-md leading-md"
10
10
  }, w = u(
11
- ({ as: t = "input", size: d = "medium", isError: n, isRequired: c, value: r, prefix: a, suffix: o, className: g, ...p }, m) => {
12
- const b = () => {
11
+ ({ as: t = "input", size: d = "medium", isError: c, isRequired: g, value: r, prefix: a, suffix: o, className: n, ...p }, m) => {
12
+ const f = () => {
13
13
  if (!i(r)) return;
14
14
  let e = r;
15
15
  return a && (e = e.replace(new RegExp(`^${a}`), "")), o && (e = e.replace(new RegExp(`${o}$`), "")), e.replaceAll(/[^.\S]+/g, "").replace(/[\p{Sc}]/u, "");
16
- }, f = i(r) ? l(b()) : l(r == null ? void 0 : r.toString());
16
+ }, b = i(r) ? l(f()) : l(r == null ? void 0 : r.toString());
17
17
  return /* @__PURE__ */ x("div", { className: "relative flex w-full items-center", children: [
18
18
  /* @__PURE__ */ s(
19
19
  t,
@@ -21,17 +21,17 @@ const k = {
21
21
  ref: m,
22
22
  className: y(
23
23
  "w-full rounded text-gray-darker placeholder-gray-dark hover:placeholder-gray-darker disabled:text-gray",
24
- "border border-transparent hover:border-black hover:bg-gray-lighter focus:text-black active:text-black disabled:bg-gray-lighter",
24
+ "border hover:border-black hover:bg-gray-lighter focus:text-black active:text-black disabled:bg-gray-lighter",
25
25
  k[d],
26
26
  t === "select" && "pr-8",
27
- n ? "!focus:border-danger !border-danger focus:ring-0 focus:ring-danger" : "border-gray-light focus:border-primary focus:ring-0 focus:ring-primary",
28
- g
27
+ c ? "!focus:border-danger !border-danger focus:ring-0 focus:ring-danger" : "border-gray-light focus:border-primary focus:ring-0 focus:ring-primary",
28
+ n
29
29
  ),
30
30
  value: r,
31
31
  ...p
32
32
  }
33
33
  ),
34
- c && f && /* @__PURE__ */ s(h, { className: "absolute right-3", color: "danger" })
34
+ g && b && /* @__PURE__ */ s(h, { className: "absolute right-3", color: "danger" })
35
35
  ] });
36
36
  }
37
37
  );
@@ -15,7 +15,7 @@ const j = ({
15
15
  const e = g(null), [a, m] = l(!0), [x, y] = l(!0);
16
16
  return w(() => {
17
17
  const c = () => {
18
- e.current && (m(e.current.offsetWidth >= 140), y(e.current.offsetWidth > 174 || e.current.offsetWidth < 140));
18
+ e.current && (m(e.current.offsetWidth >= 140), y(e.current.offsetWidth >= 140 || e.current.offsetWidth < 100));
19
19
  };
20
20
  c();
21
21
  const f = new ResizeObserver(c);
@@ -184,7 +184,8 @@ const C = {
184
184
  /* @__PURE__ */ d("div", { className: s("flex-grow space-y-2", G && "overflow-y-auto overflow-x-hidden"), children: [
185
185
  e > 60 && /* @__PURE__ */ i("div", { className: "text-center", children: r ? $.cloneElement(r, {
186
186
  className: s(
187
- "inline-block h-12 w-12",
187
+ "inline-block",
188
+ "h-12 w-12",
188
189
  e > 160 && "h-30 w-30",
189
190
  r.props.className
190
191
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xola/ui-kit",
3
- "version": "3.4.3",
3
+ "version": "3.4.5",
4
4
  "description": "Xola UI Kit",
5
5
  "type": "module",
6
6
  "license": "MIT",