@hai-dev/ui-kit 1.1.12 → 1.2.1
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/{Box-TrgOqpYk.js → Box-BgNAyP2L.js} +2 -2
- package/dist/{Button-BN3fv8kr.js → Button-DTV8ztWw.js} +5 -5
- package/dist/{ButtonBase-CSWuFxUv.js → ButtonBase-C4krg_zd.js} +3 -3
- package/dist/{CircularProgress-sPARyPfh.js → CircularProgress-BoaEg4rF.js} +3 -3
- package/dist/{Dialog-Cf0d7zi7.js → Dialog-BK9lMUKV.js} +12 -11
- package/dist/{DialogTitle-BtvmXSZP.js → DialogTitle-ByUfLB5M.js} +4 -4
- package/dist/{Typography-Bjd6ZHeX.js → Typography-BMyz0ZCh.js} +4 -4
- package/dist/assets/button.css +1 -1
- package/dist/assets/circular-progress-loader.css +1 -1
- package/dist/assets/code-input.css +1 -1
- package/dist/assets/error-upload-dialog.css +1 -1
- package/dist/assets/inter.css +1 -0
- package/dist/assets/photo-list.css +1 -1
- package/dist/assets/upload-dialog-errors.css +1 -1
- package/dist/button.module-C0UNQnBk.js +40 -0
- package/dist/chainPropTypes-DgqFdXGi.js +532 -0
- package/dist/components/button/button-content.js +11 -11
- package/dist/components/button/button.d.ts +18 -0
- package/dist/components/button/button.js +42 -35
- package/dist/components/button/constants.d.ts +17 -0
- package/dist/components/button/constants.js +28 -11
- package/dist/components/button/types.d.ts +11 -8
- package/dist/components/button/utils/get-button-classnames.d.ts +6 -0
- package/dist/components/button/utils/get-button-classnames.js +22 -10
- package/dist/components/circular-progress-loader/circular-progress-loader.js +14 -13
- package/dist/components/code-input/code-input.js +114 -112
- package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +39 -38
- package/dist/components/photo-crop-uploader/components/photo-list/constants.d.ts +5 -1
- package/dist/components/photo-crop-uploader/components/photo-list/constants.js +6 -2
- package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +136 -33
- package/dist/components/photo-crop-uploader/components/photo-list/types.d.ts +2 -0
- package/dist/components/photo-crop-uploader/components/photo-list/use-container-size.d.ts +4 -0
- package/dist/components/photo-crop-uploader/components/photo-list/use-container-size.js +22 -0
- package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +1 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/constants.d.ts +1 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/constants.js +1 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +4 -3
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +156 -145
- package/dist/components/photo-crop-uploader/components/upload-dialog/use-scaled-min-dimension.d.ts +4 -0
- package/dist/components/photo-crop-uploader/components/upload-dialog/use-scaled-min-dimension.js +31 -0
- package/dist/components/photo-crop-uploader/locale.js +6 -2
- package/dist/{createTheme-D8R2Cz2N.js → createTheme-BoOmbNvy.js} +426 -390
- package/dist/{extendSxProp-Cw_ym9sl.js → extendSxProp-BaUCVMKV.js} +2 -1
- package/dist/{index-CL3JU48X.js → index-h5oTv8GF.js} +3 -3
- package/dist/{memoTheme-D5VCpQCz.js → memoTheme-BYBJ2Fe6.js} +1 -1
- package/dist/refType-CsohaiiT.js +60 -0
- package/dist/{upload-dialog-errors-DHl0bh1n.js → upload-dialog-errors-BwQsTOc3.js} +46 -46
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/utils/debounce.d.ts +5 -0
- package/dist/utils/debounce.js +12 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -0
- package/package.json +10 -2
- package/dist/button.module-BZPPmSAS.js +0 -21
- package/dist/chainPropTypes-DiJb1lGa.js +0 -568
- package/dist/refType-CUEs_vK5.js +0 -61
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as i, d as p, c as h, a as T, C as y, T as B, e as N, P as e } from "./createTheme-
|
|
1
|
+
import { s as i, d as p, c as h, a as T, C as y, T as B, e as N, P as e } from "./createTheme-BoOmbNvy.js";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import { jsx as b } from "react/jsx-runtime";
|
|
4
|
-
import { u as g, e as v } from "./extendSxProp-
|
|
4
|
+
import { u as g, e as v } from "./extendSxProp-BaUCVMKV.js";
|
|
5
5
|
function E(n = {}) {
|
|
6
6
|
const {
|
|
7
7
|
themeId: t,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as y from "react";
|
|
2
|
-
import { g as H, a as A, c as R, b as r, P as t } from "./createTheme-
|
|
3
|
-
import {
|
|
4
|
-
import { m as X } from "./memoTheme-
|
|
2
|
+
import { g as H, a as A, r as q, c as R, b as r, P as t } from "./createTheme-BoOmbNvy.js";
|
|
3
|
+
import { u as J, c as K, s as f, r as Q } from "./chainPropTypes-DgqFdXGi.js";
|
|
4
|
+
import { m as X } from "./memoTheme-BYBJ2Fe6.js";
|
|
5
5
|
import { c as Y } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
6
6
|
import { jsxs as Z, jsx as d } from "react/jsx-runtime";
|
|
7
7
|
import { u as oo } from "./useId-CK6Kn3Tn.js";
|
|
8
|
-
import { B as to } from "./ButtonBase-
|
|
9
|
-
import { C as no } from "./CircularProgress-
|
|
8
|
+
import { B as to } from "./ButtonBase-C4krg_zd.js";
|
|
9
|
+
import { C as no } from "./CircularProgress-BoaEg4rF.js";
|
|
10
10
|
function ao(o) {
|
|
11
11
|
return H("MuiButton", o);
|
|
12
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
2
|
import X, { isValidElement as H, cloneElement as G, Children as Ie } from "react";
|
|
3
|
-
import { _ as Be, P as n, c as C, a as fe, g as Le } from "./createTheme-
|
|
3
|
+
import { _ as Be, P as n, c as C, a as fe, g as Le } from "./createTheme-BoOmbNvy.js";
|
|
4
4
|
import { jsx as U, jsxs as je } from "react/jsx-runtime";
|
|
5
|
-
import { u as de, s as ne, k as oe, c as ke } from "./chainPropTypes-
|
|
6
|
-
import { u as ae, a as Z, e as Fe, r as Ue } from "./refType-
|
|
5
|
+
import { u as de, s as ne, k as oe, c as ke } from "./chainPropTypes-DgqFdXGi.js";
|
|
6
|
+
import { u as ae, a as Z, e as Fe, r as Ue } from "./refType-CsohaiiT.js";
|
|
7
7
|
function _e(e, t) {
|
|
8
8
|
if (e == null) return {};
|
|
9
9
|
var o = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
|
-
import { g as N, a as j, c as R, b as l, P as e } from "./createTheme-
|
|
3
|
-
import { m as g } from "./memoTheme-
|
|
2
|
+
import { g as N, a as j, c as R, b as l, P as e } from "./createTheme-BoOmbNvy.js";
|
|
3
|
+
import { m as g } from "./memoTheme-BYBJ2Fe6.js";
|
|
4
4
|
import { c as U } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
5
5
|
import { jsx as y, jsxs as E } from "react/jsx-runtime";
|
|
6
|
-
import { u as I, c as z, s as p, k as w, a as T, b as F } from "./chainPropTypes-
|
|
6
|
+
import { u as I, c as z, s as p, k as w, a as T, b as F } from "./chainPropTypes-DgqFdXGi.js";
|
|
7
7
|
function V(r) {
|
|
8
8
|
return N("MuiCircularProgress", r);
|
|
9
9
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import * as h from "react";
|
|
2
2
|
import Y from "react";
|
|
3
|
-
import { T as lt, P as e, g as ge, a as he,
|
|
4
|
-
import { c as ct } from "./DialogTitle-
|
|
5
|
-
import { d as ut, u as be, c as ve, s as H, b as we } from "./chainPropTypes-
|
|
6
|
-
import { u as dt } from "./extendSxProp-
|
|
3
|
+
import { T as lt, P as e, g as ge, a as he, v as Le, c as B, x as Fe, b as X } from "./createTheme-BoOmbNvy.js";
|
|
4
|
+
import { c as ct } from "./DialogTitle-ByUfLB5M.js";
|
|
5
|
+
import { d as ut, u as be, c as ve, s as H, b as we } from "./chainPropTypes-DgqFdXGi.js";
|
|
6
|
+
import { u as dt } from "./extendSxProp-BaUCVMKV.js";
|
|
7
7
|
import { jsx as M, jsxs as Ze } from "react/jsx-runtime";
|
|
8
|
-
import { m as _e } from "./memoTheme-
|
|
9
|
-
import { u as ie,
|
|
8
|
+
import { m as _e } from "./memoTheme-BYBJ2Fe6.js";
|
|
9
|
+
import { u as ie, a as je } from "./refType-CsohaiiT.js";
|
|
10
10
|
import { i as pt, o as pe, a as Z } from "./isHostComponent-Dm_U9uOy.js";
|
|
11
|
-
import { _ as ft, a as mt, T as Je } from "./ButtonBase-
|
|
11
|
+
import { _ as ft, a as mt, T as Je } from "./ButtonBase-C4krg_zd.js";
|
|
12
12
|
import { g as yt } from "./index-YnD2EP-S.js";
|
|
13
13
|
import { u as gt } from "./useId-CK6Kn3Tn.js";
|
|
14
|
+
import { u as $e } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
14
15
|
const ht = "exact-prop: ";
|
|
15
16
|
function Qe(t) {
|
|
16
17
|
return process.env.NODE_ENV === "production" ? t : {
|
|
@@ -1048,9 +1049,9 @@ const fe = /* @__PURE__ */ h.forwardRef(function(n, i) {
|
|
|
1048
1049
|
container: a,
|
|
1049
1050
|
disablePortal: s = !1
|
|
1050
1051
|
} = n, [d, p] = h.useState(null), u = ie(/* @__PURE__ */ h.isValidElement(r) ? Ie(r) : null, i);
|
|
1051
|
-
if (
|
|
1052
|
+
if ($e(() => {
|
|
1052
1053
|
s || p(Ct(a) || document.body);
|
|
1053
|
-
}, [a, s]),
|
|
1054
|
+
}, [a, s]), $e(() => {
|
|
1054
1055
|
if (d && !s)
|
|
1055
1056
|
return He(i, d), () => {
|
|
1056
1057
|
He(i, null);
|
|
@@ -1774,10 +1775,10 @@ function Jt(t) {
|
|
|
1774
1775
|
de.mount(T(), {
|
|
1775
1776
|
disableScrollLock: r
|
|
1776
1777
|
}), f.current && (f.current.scrollTop = 0);
|
|
1777
|
-
}, D =
|
|
1778
|
+
}, D = je(() => {
|
|
1778
1779
|
const v = Xt(n) || g().body;
|
|
1779
1780
|
de.add(T(), v), f.current && N();
|
|
1780
|
-
}), P = () => de.isTopModal(T()), _ =
|
|
1781
|
+
}), P = () => de.isTopModal(T()), _ = je((v) => {
|
|
1781
1782
|
o.current = v, v && (l && P() ? N() : f.current && oe(f.current, R));
|
|
1782
1783
|
}), C = h.useCallback(() => {
|
|
1783
1784
|
de.remove(T(), R);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import { g as d, a as g, c as u, P as o } from "./createTheme-
|
|
2
|
+
import { g as d, a as g, c as u, P as o } from "./createTheme-BoOmbNvy.js";
|
|
3
3
|
import { jsx as f } from "react/jsx-runtime";
|
|
4
|
-
import { u as m, c as D, s as v } from "./chainPropTypes-
|
|
5
|
-
import { m as b } from "./memoTheme-
|
|
6
|
-
import { T as x } from "./Typography-
|
|
4
|
+
import { u as m, c as D, s as v } from "./chainPropTypes-DgqFdXGi.js";
|
|
5
|
+
import { m as b } from "./memoTheme-BYBJ2Fe6.js";
|
|
6
|
+
import { T as x } from "./Typography-BMyz0ZCh.js";
|
|
7
7
|
const y = /* @__PURE__ */ p.createContext({});
|
|
8
8
|
process.env.NODE_ENV !== "production" && (y.displayName = "DialogContext");
|
|
9
9
|
function C(t) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
|
-
import { g as j, a as B, c as S, b as c, P as r } from "./createTheme-
|
|
3
|
-
import { i as w } from "./index-
|
|
4
|
-
import { m as C } from "./memoTheme-
|
|
2
|
+
import { g as j, a as B, c as S, b as c, P as r } from "./createTheme-BoOmbNvy.js";
|
|
3
|
+
import { i as w } from "./index-h5oTv8GF.js";
|
|
4
|
+
import { m as C } from "./memoTheme-BYBJ2Fe6.js";
|
|
5
5
|
import { c as P } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
6
6
|
import { jsx as W } from "react/jsx-runtime";
|
|
7
|
-
import { u as M, c as R, s as N } from "./chainPropTypes-
|
|
7
|
+
import { u as M, c as R, s as N } from "./chainPropTypes-DgqFdXGi.js";
|
|
8
8
|
function D(o) {
|
|
9
9
|
return j("MuiTypography", o);
|
|
10
10
|
}
|
package/dist/assets/button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_1idvi_1{display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--font-inter);transition:opacity .3s}._button_1idvi_1 ._startContent_1idvi_9{width:auto!important;margin-right:8px;display:flex;align-items:center;justify-content:center}._button_1idvi_1 ._text_1idvi_16{width:auto!important}._button_1idvi_1 ._endContent_1idvi_19{width:auto!important;margin-left:8px;display:flex;align-items:center;justify-content:center}._button_1idvi_1 ._link_1idvi_26{color:#fff;height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._button_1idvi_1 ._description_1idvi_35{font-size:14px;color:#fff;align-self:flex-end}@media(max-width:1280px){._button_1idvi_1 ._description_1idvi_35{font-size:14px}}._button_1idvi_1 ._text_1idvi_16{width:auto!important;display:flex;align-items:center}._button_1idvi_1 ._text_1idvi_16._withDescription_1idvi_50{margin-right:32px}._button_1idvi_1._specific_1idvi_53{color:#fff;border-radius:12px}._button_1idvi_1._default_1idvi_57{height:70px;padding:0 12px;font-size:24px;letter-spacing:2%}@media(max-width:1280px){._button_1idvi_1._default_1idvi_57{height:36px;padding:0 4px;font-size:14px}}._button_1idvi_1._medium_1idvi_70{height:65px;padding:0 12px;font-size:28px;letter-spacing:2%}@media(max-width:1280px){._button_1idvi_1._medium_1idvi_70{height:36px;padding:0 4px;font-size:14px}}._button_1idvi_1._smallMedium_1idvi_83{height:60px;padding:0 12px;font-size:16px}@media(max-width:1280px){._button_1idvi_1._smallMedium_1idvi_83{min-height:36px;padding:0 4px;font-size:14px}}._button_1idvi_1._small_1idvi_83{height:48px;padding:0 8px;font-size:16px}@media(max-width:1280px){._button_1idvi_1._small_1idvi_83{min-height:36px;padding:0 4px;font-size:14px}}._button_1idvi_1._smaller_1idvi_107{height:40px;padding:0 8px;font-size:16px}@media(max-width:1280px){._button_1idvi_1._smaller_1idvi_107{min-height:36px;padding:0 4px;font-size:14px}}._button_1idvi_1._smallest_1idvi_119{height:34px;padding:0 8px;font-size:16px}@media(max-width:1280px){._button_1idvi_1._smallest_1idvi_119{min-height:30px;padding:0 4px;font-size:14px}}._button_1idvi_1._tiny_1idvi_131{height:28px;padding:0 8px;font-size:16px}@media(max-width:1280px){._button_1idvi_1._tiny_1idvi_131{min-height:24px;padding:0 4px;font-size:14px}}._button_1idvi_1._filled_1idvi_143._white_1idvi_143{background-color:#fff;color:#1a1a1a}._button_1idvi_1._filled_1idvi_143._white_1idvi_143 ._link_1idvi_26{color:#1a1a1a}._button_1idvi_1._filled_1idvi_143._white_1idvi_143 ._description_1idvi_35{color:#303030cc}._button_1idvi_1._filled_1idvi_143._dark_1idvi_153{background-color:#22202a;color:#fff}._button_1idvi_1._filled_1idvi_143._dark_1idvi_153 ._link_1idvi_26,._button_1idvi_1._filled_1idvi_143._dark_1idvi_153 ._description_1idvi_35{color:#fff}._button_1idvi_1._filled_1idvi_143._darkerBlue_1idvi_163{background-color:#3aa8ff1a;color:#3aa8ff}._button_1idvi_1._filled_1idvi_143._darkerBlue_1idvi_163 ._link_1idvi_26{color:#3aa8ff}._button_1idvi_1._filled_1idvi_143._blue_1idvi_170{background-color:#3aa8ff;color:#fff}._button_1idvi_1._filled_1idvi_143._blue_1idvi_170 ._description_1idvi_35{color:#fff}._button_1idvi_1._filled_1idvi_143._red_1idvi_177{background-color:#e2402fe0;color:#fff}._button_1idvi_1._filled_1idvi_143._red_1idvi_177 ._link_1idvi_26{color:#fff}._button_1idvi_1._filled_1idvi_143._lightRed_1idvi_184{background-color:#e2402f4d;color:#e2402f}._button_1idvi_1._filled_1idvi_143._gray_1idvi_188{background-color:#ffffff24;color:#fff}._button_1idvi_1._filled_1idvi_143._darkGray_1idvi_192{background-color:#8b97a81a;color:#fff}._button_1idvi_1._filled_1idvi_143._lightGray_1idvi_196{background-color:#f2f3f5;color:#1a1a1a}._button_1idvi_1._filled_1idvi_143._darkBlue_1idvi_200{background-color:#0072b7;color:#fff}._button_1idvi_1._filled_1idvi_143._darkBlue_1idvi_200 ._description_1idvi_35{color:#fff}._button_1idvi_1._filled_1idvi_143._lightGreen_1idvi_207{background-color:#24b8304d;color:#24b830}._button_1idvi_1._filled_1idvi_143._green_1idvi_211{background-color:#26cc311a;color:#26cc31e0}._button_1idvi_1._filled_1idvi_143._orange_1idvi_215{background-color:#e28e2f;color:#000}._button_1idvi_1._filled_1idvi_143._darkOrange_1idvi_219{background-color:#ffa33a1a;color:#ffa33a}._button_1idvi_1._outlined_1idvi_223{color:#fff}._button_1idvi_1._outlined_1idvi_223._white_1idvi_143{border:1px solid #ffffff}._button_1idvi_1._outlined_1idvi_223._dark_1idvi_153{border:1px solid #22202a}._button_1idvi_1._outlined_1idvi_223._gray_1idvi_188{border:1px solid rgba(255,255,255,.14)}._button_1idvi_1._outlined_1idvi_223._blue_1idvi_170{color:#6bbeff;border:1px solid #6bbeff;box-shadow:0 0 20px #3aa8ff33}._button_1idvi_1._outlined_1idvi_223._blue_1idvi_170 ._link_1idvi_26{color:#6bbeff}._button_1idvi_1._outlined_1idvi_223._blue_1idvi_170 ._text_1idvi_16,._button_1idvi_1._outlined_1idvi_223._blue_1idvi_170 ._startContent_1idvi_9,._button_1idvi_1._outlined_1idvi_223._blue_1idvi_170 ._endContent_1idvi_19{filter:drop-shadow(0 0 10px rgba(58,168,255,.2))}._button_1idvi_1._outlined_1idvi_223._orange_1idvi_215{border:1px solid #ef842b;color:#ef842b;box-shadow:0 0 20px #ef842b33}._button_1idvi_1._outlined_1idvi_223._orange_1idvi_215 ._link_1idvi_26{color:#ef842b}._button_1idvi_1._outlined_1idvi_223._orange_1idvi_215 ._text_1idvi_16,._button_1idvi_1._outlined_1idvi_223._orange_1idvi_215 ._startContent_1idvi_9,._button_1idvi_1._outlined_1idvi_223._orange_1idvi_215 ._endContent_1idvi_19{filter:drop-shadow(0 0 10px rgba(239,132,43,.2))}._button_1idvi_1._outlined_1idvi_223._red_1idvi_177{color:#e2402fe0;border:1px solid rgba(226,64,47,.88);box-shadow:0 0 20px #e2402f33}._button_1idvi_1._outlined_1idvi_223._red_1idvi_177 ._text_1idvi_16,._button_1idvi_1._outlined_1idvi_223._red_1idvi_177 ._startContent_1idvi_9,._button_1idvi_1._outlined_1idvi_223._red_1idvi_177 ._endContent_1idvi_19{filter:drop-shadow(0 0 10px rgba(226,64,47,.2))}._button_1idvi_1._outlined_1idvi_223._darkBlue_1idvi_200{color:#0072b7;border:1px solid #0072b7}._button_1idvi_1._outlined_1idvi_223._darkBlue_1idvi_200 ._link_1idvi_26{color:#0072b7}._button_1idvi_1._outlined_1idvi_223._red_1idvi_177{color:#e2402fe0;border:1px solid rgba(226,64,47,.88)}._button_1idvi_1._outlined_1idvi_223._red_1idvi_177 ._link_1idvi_26{color:#e2402fe0}._button_1idvi_1._text_1idvi_16._white_1idvi_143{color:#ffffffe0}._button_1idvi_1._text_1idvi_16._dark_1idvi_153{color:#22202a}._button_1idvi_1._text_1idvi_16._gray_1idvi_188{color:#fff}._button_1idvi_1._text_1idvi_16._blue_1idvi_170{color:#3aa8ff}._button_1idvi_1._text_1idvi_16._darkBlue_1idvi_200{color:#0072b7}._button_1idvi_1._text_1idvi_16._red_1idvi_177{color:#e2402fe0}._button_1idvi_1._disabled_1idvi_313{opacity:.6}._button_1idvi_1._noTextTransform_1idvi_316{text-transform:none}._button_1idvi_1._uppercase_1idvi_319{text-transform:uppercase}._button_1idvi_1._leftSide_1idvi_322{align-items:flex-start;justify-content:center;padding-left:12px}._button_1idvi_1._leftSide_1idvi_322 ._link_1idvi_26{align-items:flex-start;justify-content:center}
|