@smart-factor/gem-ui-components 0.0.153 → 0.0.154
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.
- package/dist/SignEditor.js +1 -1
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.stories.d.ts +1 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.stories.d.ts +1 -0
- package/dist/{index-BLSlZb7B.js → index-BQsdedc3.js} +10 -4
- package/dist/main.js +2 -2
- package/package.json +1 -1
package/dist/SignEditor.js
CHANGED
|
@@ -2,7 +2,7 @@ import './assets/SignEditor.css';var N4 = Object.defineProperty;
|
|
|
2
2
|
var I4 = (o, e, t) => e in o ? N4(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var Eu = (o, e, t) => I4(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { jsx as Vt, jsxs as ia, Fragment as o_ } from "react/jsx-runtime";
|
|
5
|
-
import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./index-
|
|
5
|
+
import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./index-BQsdedc3.js";
|
|
6
6
|
import { q as XE, s as Di, I as tu, J as r_, H as YE, S as lp } from "./Stack-hsHMA5b6.js";
|
|
7
7
|
import { createContext as U4, useContext as z4, useState as vl, useCallback as zu, useEffect as oc, useMemo as cp, useRef as K4 } from "react";
|
|
8
8
|
import "react-dom";
|
|
@@ -2,5 +2,6 @@ import { ButtonProps as ButtonPropsMUI } from '@mui/material';
|
|
|
2
2
|
export interface ButtonProps extends ButtonPropsMUI {
|
|
3
3
|
width?: string;
|
|
4
4
|
loading?: boolean;
|
|
5
|
+
tooltip?: React.ReactNode;
|
|
5
6
|
}
|
|
6
|
-
export declare function Button({ children, width, disabled, loading, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function Button({ children, width, disabled, loading, tooltip, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17085,27 +17085,33 @@ const useMediaQuery = unstable_createUseMediaQuery({
|
|
|
17085
17085
|
shouldForwardProp: (s0) => s0 !== "width"
|
|
17086
17086
|
})`
|
|
17087
17087
|
width: ${({ width: s0 }) => s0 || "auto"};
|
|
17088
|
+
&.Mui-disabled {
|
|
17089
|
+
pointer-events: auto;
|
|
17090
|
+
cursor: not-allowed;
|
|
17091
|
+
}
|
|
17088
17092
|
`;
|
|
17089
17093
|
function Button$1({
|
|
17090
17094
|
children: s0,
|
|
17091
17095
|
width: o0,
|
|
17092
17096
|
disabled: r0,
|
|
17093
17097
|
loading: l0,
|
|
17094
|
-
|
|
17098
|
+
tooltip: u0,
|
|
17099
|
+
...a0
|
|
17095
17100
|
}) {
|
|
17096
|
-
|
|
17101
|
+
const D0 = /* @__PURE__ */ jsxs(
|
|
17097
17102
|
StyledButton,
|
|
17098
17103
|
{
|
|
17099
|
-
...
|
|
17104
|
+
...a0,
|
|
17100
17105
|
disabled: r0 || l0,
|
|
17101
17106
|
width: o0,
|
|
17102
|
-
sx: { position: "relative", ...
|
|
17107
|
+
sx: { position: "relative", ...a0.sx },
|
|
17103
17108
|
children: [
|
|
17104
17109
|
/* @__PURE__ */ jsx(Box, { visibility: l0 ? "hidden" : "visible", children: s0 }),
|
|
17105
17110
|
l0 && /* @__PURE__ */ jsx(Box, { position: "absolute", sx: { translate: "0 3px" }, children: /* @__PURE__ */ jsx(CircularProgress, { size: 18 }) })
|
|
17106
17111
|
]
|
|
17107
17112
|
}
|
|
17108
17113
|
);
|
|
17114
|
+
return u0 ? /* @__PURE__ */ jsx(Tooltip, { title: u0, children: /* @__PURE__ */ jsx("span", { children: D0 }) }) : D0;
|
|
17109
17115
|
}
|
|
17110
17116
|
const AddIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
17111
17117
|
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as k, Fragment as Oe } from "react/jsx-runtime";
|
|
2
2
|
import { P as d, R as Ar, U as jr, V as kr, W as Ir, y as $r, X as Yr, q as Q, T as pe, Y as Nr, Z as zr, $ as Fr, c as dt, g as ut, e as Le, A as ge, k as Xe, s as Ae, l as Ke, o as at, t as Rr, a0 as er, J as me, a1 as Lt, K as Ee, H as tr, i as Qe, I as ce, S as rr, a2 as je, _ as Vr } from "./Stack-hsHMA5b6.js";
|
|
3
|
-
import { l as Br, r as Ur, L as _r, m as Hr, n as Ne, S as Gr, o as Wr, p as qr, q as Jr, B as we, j as Zr, d as At, t as Xr, v as or, w as Je, x as Kr, y as Qr, C as eo, E as to, H as jt, J as kt, M as ro, N as et, O as ft, P as ht, R as ye, V as oo, W as no, X as so, Y as ao, Z as nr, _ as io, $ as co, a0 as lo, a1 as A, a2 as he, z as sr, b as uo, e as fo, G as ho, a3 as mo, a4 as po, a5 as go, K as yo, a6 as be, a7 as bo, a8 as So, a9 as To, aa as Mo, ab as xo, F as Co, ac as tt, ad as vo, ae as wo, af as Eo, ag as ar, ah as Po, ai as ir, aj as cr, ak as ie, al as lr, am as Do, an as Oo, i as Lo, ao as Ao, ap as dr, aq as jo, ar as ko, as as Io, at as $o, au as Yo, av as No, aw as zo, ax as Fo, ay as Ro, az as Vo, aA as Bo, h as Uo, aB as _o, aC as mt, aD as pt, aE as gt, aF as ze, aG as Ho, aH as Go, aI as Wo } from "./index-
|
|
4
|
-
import { aW as al, b0 as il, A as cl, aJ as ll, aK as dl, D as ul, aX as fl, g as hl, aY as ml, aL as pl, I as gl, aM as yl, aN as bl, aO as Sl, aP as Tl, aQ as Ml, aR as xl, aT as Cl, T as vl, U as wl, aZ as El, a$ as Pl, aV as Dl, a_ as Ol, aU as Ll, aS as Al } from "./index-
|
|
3
|
+
import { l as Br, r as Ur, L as _r, m as Hr, n as Ne, S as Gr, o as Wr, p as qr, q as Jr, B as we, j as Zr, d as At, t as Xr, v as or, w as Je, x as Kr, y as Qr, C as eo, E as to, H as jt, J as kt, M as ro, N as et, O as ft, P as ht, R as ye, V as oo, W as no, X as so, Y as ao, Z as nr, _ as io, $ as co, a0 as lo, a1 as A, a2 as he, z as sr, b as uo, e as fo, G as ho, a3 as mo, a4 as po, a5 as go, K as yo, a6 as be, a7 as bo, a8 as So, a9 as To, aa as Mo, ab as xo, F as Co, ac as tt, ad as vo, ae as wo, af as Eo, ag as ar, ah as Po, ai as ir, aj as cr, ak as ie, al as lr, am as Do, an as Oo, i as Lo, ao as Ao, ap as dr, aq as jo, ar as ko, as as Io, at as $o, au as Yo, av as No, aw as zo, ax as Fo, ay as Ro, az as Vo, aA as Bo, h as Uo, aB as _o, aC as mt, aD as pt, aE as gt, aF as ze, aG as Ho, aH as Go, aI as Wo } from "./index-BQsdedc3.js";
|
|
4
|
+
import { aW as al, b0 as il, A as cl, aJ as ll, aK as dl, D as ul, aX as fl, g as hl, aY as ml, aL as pl, I as gl, aM as yl, aN as bl, aO as Sl, aP as Tl, aQ as Ml, aR as xl, aT as Cl, T as vl, U as wl, aZ as El, a$ as Pl, aV as Dl, a_ as Ol, aU as Ll, aS as Al } from "./index-BQsdedc3.js";
|
|
5
5
|
import * as P from "react";
|
|
6
6
|
import { useState as R, useCallback as le, useEffect as Z, useLayoutEffect as Pe, useMemo as K } from "react";
|
|
7
7
|
import { e as ur, P as qo, i as Jo } from "./Drawer-DqHgiVxL.js";
|