@smart-factor/gem-ui-components 0.0.107 → 0.0.109

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,12 +1,13 @@
1
1
  import * as r from "react";
2
- import { r as h, m, u as E, a as g, b as v, d as w, T as S } from "./Stack-CdVfRhco.js";
3
- function $(e, o, n, s, t) {
2
+ import { r as C, m as E, u as g, a as v, b as S, d as b, T as w, c as p } from "./Stack-CP81SpOh.js";
3
+ import { jsx as m } from "react/jsx-runtime";
4
+ function y(e, o, n, s, t) {
4
5
  if (process.env.NODE_ENV === "production")
5
6
  return null;
6
7
  const c = t || o;
7
8
  return typeof e[o] < "u" ? new Error(`The prop \`${c}\` is not supported. Please remove it.`) : null;
8
9
  }
9
- function O({
10
+ function M({
10
11
  controlled: e,
11
12
  default: o,
12
13
  name: n,
@@ -14,7 +15,7 @@ function O({
14
15
  }) {
15
16
  const {
16
17
  current: t
17
- } = r.useRef(e !== void 0), [c, i] = r.useState(o), u = t ? e : c;
18
+ } = r.useRef(e !== void 0), [c, i] = r.useState(o), a = t ? e : c;
18
19
  if (process.env.NODE_ENV !== "production") {
19
20
  r.useEffect(() => {
20
21
  t !== (e !== void 0) && console.error([`MUI: A component is changing the ${t ? "" : "un"}controlled ${s} state of ${n} to be ${t ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
@@ -28,12 +29,12 @@ function O({
28
29
  `));
29
30
  }, [JSON.stringify(o)]);
30
31
  }
31
- const a = r.useCallback((l) => {
32
+ const u = r.useCallback((l) => {
32
33
  t || i(l);
33
34
  }, []);
34
- return [u, a];
35
+ return [a, u];
35
36
  }
36
- function T(e) {
37
+ function $(e) {
37
38
  var f;
38
39
  const {
39
40
  elementType: o,
@@ -41,36 +42,40 @@ function T(e) {
41
42
  ownerState: s,
42
43
  skipResolvingSlotProps: t = !1,
43
44
  ...c
44
- } = e, i = t ? {} : h(n, s), {
45
- props: u,
46
- internalRef: a
47
- } = m({
45
+ } = e, i = t ? {} : C(n, s), {
46
+ props: a,
47
+ internalRef: u
48
+ } = E({
48
49
  ...c,
49
50
  externalSlotProps: i
50
- }), l = E(a, i == null ? void 0 : i.ref, (f = e.additionalProps) == null ? void 0 : f.ref);
51
- return g(o, {
52
- ...u,
51
+ }), l = g(u, i == null ? void 0 : i.ref, (f = e.additionalProps) == null ? void 0 : f.ref);
52
+ return v(o, {
53
+ ...a,
53
54
  ref: l
54
55
  }, s);
55
56
  }
56
- function b({
57
+ function T({
57
58
  props: e,
58
59
  name: o
59
60
  }) {
60
- return v({
61
+ return S({
61
62
  props: e,
62
63
  name: o,
63
- defaultTheme: w,
64
- themeId: S
64
+ defaultTheme: b,
65
+ themeId: w
65
66
  });
66
67
  }
67
- const p = /* @__PURE__ */ r.createContext(void 0);
68
- process.env.NODE_ENV !== "production" && (p.displayName = "FormControlContext");
69
- function P() {
70
- return r.useContext(p);
68
+ const h = /* @__PURE__ */ r.createContext(void 0);
69
+ process.env.NODE_ENV !== "production" && (h.displayName = "FormControlContext");
70
+ function x() {
71
+ return r.useContext(h);
71
72
  }
72
- const d = /* @__PURE__ */ new Set();
73
- function x(e, o = "warning") {
73
+ const P = p(/* @__PURE__ */ m("path", {
74
+ d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
75
+ }), "Visibility"), I = p(/* @__PURE__ */ m("path", {
76
+ d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
77
+ }), "VisibilityOff"), d = /* @__PURE__ */ new Set();
78
+ function D(e, o = "warning") {
74
79
  if (process.env.NODE_ENV === "production")
75
80
  return;
76
81
  const n = Array.isArray(e) ? e.join(`
@@ -78,11 +83,13 @@ function x(e, o = "warning") {
78
83
  d.has(n) || (d.add(n), o === "error" ? console.error(n) : console.warn(n));
79
84
  }
80
85
  export {
81
- p as F,
82
- P as a,
83
- b,
84
- T as c,
85
- $ as d,
86
- O as u,
87
- x as w
86
+ h as F,
87
+ P as V,
88
+ x as a,
89
+ T as b,
90
+ $ as c,
91
+ y as d,
92
+ I as e,
93
+ M as u,
94
+ D as w
88
95
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-factor/gem-ui-components",
3
- "version": "0.0.107",
3
+ "version": "0.0.109",
4
4
  "private": false,
5
5
  "description": "Gem UI Components",
6
6
  "type": "module",
@@ -108,6 +108,7 @@
108
108
  "prettier": "^3.5.3",
109
109
  "qs": "^6.14.0",
110
110
  "react-dropzone": "^14.3.8",
111
+ "react-error-boundary": "^6.0.0",
111
112
  "react-hook-form": "7.56.2",
112
113
  "react-hot-toast": "^2.5.2",
113
114
  "react-intersection-observer": "^9.16.0",