@dimasbaguspm/versaur 0.0.38 → 0.0.39

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.
@@ -1643,7 +1643,7 @@ const fr = ({
1643
1643
  variant: c,
1644
1644
  inputMode: "numeric",
1645
1645
  autoComplete: "off",
1646
- pattern: o ? "^-?\\d{1,3}(\\.\\d{3})*(,\\d{1,2})?$" : "^\\d{1,3}(\\.\\d{3})*(,\\d{1,2})?$",
1646
+ pattern: "[0-9.,-]*",
1647
1647
  ...a,
1648
1648
  ...s
1649
1649
  }
@@ -1,4 +1,4 @@
1
- import { B as a, C as n, b as p, a as u, D as s, k as I, E as i, M as l, P as S, R as c, d as r, c as g, S as h, e as o, j as m, i as M, h as b, f as k, T as x, g as C } from "../bottom-sheet-input-DnDTMRzo.js";
1
+ import { B as a, C as n, b as p, a as u, D as s, k as I, E as i, M as l, P as S, R as c, d as r, c as g, S as h, e as o, j as m, i as M, h as b, f as k, T as x, g as C } from "../bottom-sheet-input-Ch9h_vZC.js";
2
2
  export {
3
3
  a as BottomSheetInput,
4
4
  n as CheckboxInput,
package/dist/js/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { L as e, P as s, S as r } from "./skeleton-BNZyaRjo.js";
2
2
  import { A as n, a as u, B as p, b as i, F as l, e as I, P as c, c as S, d as m, S as B, T as g } from "./top-bar-CKFu3xrL.js";
3
- import { B as b, C as T, b as x, a as h, D as f, k as C, E as M, M as P, P as A, R as k, d as F, c as D, S as L, e as H, j as R, i as w, h as G, f as j, T as q, g as v } from "./bottom-sheet-input-DnDTMRzo.js";
3
+ import { B as b, C as T, b as x, a as h, D as f, k as C, E as M, M as P, P as A, R as k, d as F, c as D, S as L, e as H, j as R, i as w, h as G, f as j, T as q, g as v } from "./bottom-sheet-input-Ch9h_vZC.js";
4
4
  import { B as E, D as N, M as z } from "./bottom-sheet-B9Knzg2N.js";
5
5
  import { A as K, a as O, b as Q, c as U, d as V, e as W, B as X, s as Y, f as Z, g as _, j as $, k as aa, h as ta, i as ea, C as sa, l as ra, F as oa, H as na, m as ua, I as pa, p as ia, r as la, q as Ia, M as ca, N as Sa, T as ma, n as Ba, o as ga } from "./image-rectangle-C1ydvFGL.js";
6
6
  import { T as ba } from "./tooltip-CvOzRRkS.js";
7
7
  import { S as xa } from "./snackbar-DH8jCh2V.js";
8
8
  import { B as fa, T as Ca } from "./tabs-38zAflsT.js";
9
- import { S as Pa, u as Aa } from "./use-snackbars-B0MaRlg1.js";
9
+ import { S as Pa, u as Aa } from "./use-snackbars-CKi6BQDT.js";
10
10
  export {
11
11
  K as Accordion,
12
12
  O as Alert,
@@ -1,4 +1,4 @@
1
- import { S as s, u as e } from "../use-snackbars-B0MaRlg1.js";
1
+ import { S as s, u as e } from "../use-snackbars-CKi6BQDT.js";
2
2
  export {
3
3
  s as SnackbarsProvider,
4
4
  e as useSnackbars
@@ -1,12 +1,12 @@
1
1
  import { c as d, j as c } from "./index-DOdDlCoL.js";
2
- import { createContext as x, useState as k, useRef as p, useCallback as m, useEffect as S, useMemo as v, useContext as h } from "react";
3
- import { S as w } from "./snackbar-DH8jCh2V.js";
2
+ import { createContext as x, useState as p, useRef as k, useCallback as m, useEffect as S, useMemo as v, useContext as w } from "react";
3
+ import { S as h } from "./snackbar-DH8jCh2V.js";
4
4
  const f = x(
5
5
  null
6
6
  ), j = d(
7
7
  [
8
8
  "fixed z-100 flex flex-col gap-2 px-0 pb-2",
9
- "w-screen left-0 bottom-0",
9
+ "w-[80vw] left-0 top-4",
10
10
  // mobile: full width
11
11
  "sm:w-auto sm:left-4 sm:bottom-4 sm:max-w-sm"
12
12
  // desktop/tablet
@@ -23,7 +23,7 @@ const f = x(
23
23
  }
24
24
  }), C = 4e3;
25
25
  function E() {
26
- const [a, s] = k([]), t = p({}), n = m((e) => {
26
+ const [a, s] = p([]), t = k({}), n = m((e) => {
27
27
  s((r) => r.filter((o) => o.id !== e)), t.current[e] && (clearTimeout(t.current[e]), delete t.current[e]);
28
28
  }, []), i = m(
29
29
  (e, r, o) => {
@@ -65,7 +65,7 @@ const V = ({ children: a }) => {
65
65
  }),
66
66
  style: { transitionDelay: `${r * 60}ms` },
67
67
  children: /* @__PURE__ */ c.jsx(
68
- w,
68
+ h,
69
69
  {
70
70
  color: e.color,
71
71
  action: e.action,
@@ -83,7 +83,7 @@ const V = ({ children: a }) => {
83
83
  ] });
84
84
  };
85
85
  function N() {
86
- const a = h(f);
86
+ const a = w(f);
87
87
  if (!a)
88
88
  throw new Error("useSnackbars must be used within a SnackbarsProvider");
89
89
  return a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimasbaguspm/versaur",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "React UI library with Tailwind CSS",
5
5
  "author": "Dimas Bagus Prayogo Mukti<dimas.bagus.pm@gmail.com>",
6
6
  "license": "MIT",