@hai-dev/ui-kit 1.0.11 → 1.1.0

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.
Files changed (73) hide show
  1. package/dist/{Box-D8oKffw9.js → Box-CykjCaXY.js} +21 -22
  2. package/dist/{Button-BBF8hp7e.js → Button-CcvrOEKV.js} +6 -5
  3. package/dist/{ButtonBase-T2KH9jsD.js → ButtonBase-DPLf5-lz.js} +226 -279
  4. package/dist/{CircularProgress-BQQkuSse.js → CircularProgress-CrHaMZDC.js} +4 -3
  5. package/dist/{Dialog-B97c7WYP.js → Dialog-DqFOpJyx.js} +118 -125
  6. package/dist/{DialogTitle-Du4tqTs0.js → DialogTitle-CeM_Z851.js} +4 -4
  7. package/dist/{Typography-r_TXEM1e.js → Typography-DDVoglvI.js} +38 -40
  8. package/dist/assets/centered-decorator.css +1 -0
  9. package/dist/assets/circular-progress-loader.css +1 -1
  10. package/dist/assets/code-input.css +1 -0
  11. package/dist/assets/dark-decorator.css +1 -0
  12. package/dist/assets/upload-dialog-errors.css +1 -1
  13. package/dist/chainPropTypes-C04Ex8aP.js +413 -0
  14. package/dist/components/button/button.js +1 -1
  15. package/dist/components/circular-progress-loader/circular-progress-loader.js +29 -27
  16. package/dist/components/circular-progress-loader/constants.d.ts +3 -1
  17. package/dist/components/circular-progress-loader/constants.js +4 -2
  18. package/dist/components/code-input/code-input.d.ts +3 -0
  19. package/dist/components/code-input/code-input.js +934 -0
  20. package/dist/components/code-input/code-input.stories.d.ts +7 -0
  21. package/dist/components/code-input/constants.d.ts +8 -0
  22. package/dist/components/code-input/constants.js +11 -0
  23. package/dist/components/code-input/index.d.ts +1 -0
  24. package/dist/components/code-input/index.js +4 -0
  25. package/dist/components/code-input/types.d.ts +11 -0
  26. package/dist/components/code-input/utils/get-code-input-label.d.ts +2 -0
  27. package/dist/components/code-input/utils/get-code-input-label.js +5 -0
  28. package/dist/components/code-input/utils/index.d.ts +2 -0
  29. package/dist/components/code-input/utils/index.js +6 -0
  30. package/dist/components/code-input/utils/slide-down-animate.d.ts +1 -0
  31. package/dist/components/code-input/utils/slide-down-animate.js +10 -0
  32. package/dist/components/index.d.ts +1 -0
  33. package/dist/components/index.js +4 -2
  34. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +6 -6
  35. package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +1 -1
  36. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +1 -1
  37. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +2 -2
  38. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +12 -10
  39. package/dist/components/photo-crop-uploader/photo-crop-uploader.d.ts +2 -2
  40. package/dist/components/photo-crop-uploader/photo-crop-uploader.js +183 -168
  41. package/dist/components/photo-crop-uploader/types.d.ts +8 -7
  42. package/dist/components/photo-crop-uploader/utils/draw-cropped-image.js +28 -29
  43. package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.d.ts +4 -2
  44. package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.js +34 -32
  45. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
  46. package/dist/{createTheme-RvzX1VSA.js → createTheme-RRQUOQoF.js} +182 -178
  47. package/dist/decorators/centered-decorator/centered-decorator.js +7 -0
  48. package/dist/decorators/centered-decorator/index.d.ts +2 -0
  49. package/dist/decorators/centered-decorator/index.js +4 -0
  50. package/dist/decorators/centered-decorator/types.js +1 -0
  51. package/dist/decorators/dark-decorator/dark-decorator.d.ts +3 -0
  52. package/dist/decorators/dark-decorator/dark-decorator.js +7 -0
  53. package/dist/decorators/dark-decorator/index.d.ts +2 -0
  54. package/dist/decorators/dark-decorator/index.js +4 -0
  55. package/dist/decorators/dark-decorator/types.d.ts +4 -0
  56. package/dist/decorators/dark-decorator/types.js +1 -0
  57. package/dist/decorators/index.d.ts +2 -1
  58. package/dist/decorators/index.js +4 -2
  59. package/dist/extendSxProp-VC2-7DJw.js +49 -0
  60. package/dist/index-BMkXyDFs.js +91 -0
  61. package/dist/isHostComponent-Dm_U9uOy.js +14 -0
  62. package/dist/memoTheme-5A7c_y33.js +15 -0
  63. package/dist/refType-CCKoQjVR.js +61 -0
  64. package/dist/{upload-dialog-errors-ku54UrUb.js → upload-dialog-errors-Bxun25O-.js} +41 -41
  65. package/package.json +1 -1
  66. package/dist/chainPropTypes-KIxDwPzf.js +0 -387
  67. package/dist/createSimplePaletteValueFilter-nb0wSOzC.js +0 -30
  68. package/dist/decorators/centered-decorator.js +0 -16
  69. package/dist/extendSxProp-BW9e6LtL.js +0 -36
  70. package/dist/useTheme-CsjkCBFJ.js +0 -16
  71. /package/dist/{decorators → components/code-input}/types.js +0 -0
  72. /package/dist/decorators/{centered-decorator.d.ts → centered-decorator/centered-decorator.d.ts} +0 -0
  73. /package/dist/decorators/{types.d.ts → centered-decorator/types.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ ._codeInput_4y25h_1{display:flex;gap:12px}._codeInput_4y25h_1 ._codeInputItem_4y25h_5{width:50px;height:50px;background-color:#f2f3f51a;border:1px solid;border-color:#e6e6e61a;color:#fff;border-radius:12px;font-size:20px;line-height:150%;font-weight:600;transition:border-color .3s ease}._codeInput_4y25h_1 ._codeInputItem_4y25h_5 input{text-align:center}._codeInput_4y25h_1 ._codeInputItem_4y25h_5.Mui-focused{border-color:#e6e6e6}
@@ -0,0 +1 @@
1
+ ._darkDecorator_t4qed_1{padding:32px;background-color:#1a1a27;display:flex;align-items:center;justify-content:center}
@@ -1 +1 @@
1
- ._dialog_1mcfu_1 .MuiPaper-root{border-radius:24px;padding:48px;min-width:840px;max-width:100%}._dialog_1mcfu_1 .MuiPaper-root ._errorContent_1mcfu_7::-webkit-scrollbar{height:8px;width:8px}._dialog_1mcfu_1 .MuiPaper-root ._errorContent_1mcfu_7::-webkit-scrollbar-track{background:#f2f3f5;border-radius:16px}._dialog_1mcfu_1 .MuiPaper-root ._errorContent_1mcfu_7::-webkit-scrollbar-thumb{background-color:#e6e6e6;border-radius:16px}._dialog_1mcfu_1 .MuiPaper-root ._errorContent_1mcfu_7{margin:32px 0 24px}._dialog_1mcfu_1 .MuiPaper-root ._errorContent_1mcfu_7 ._errorItem_1mcfu_22{font-weight:500;font-size:22px;line-height:150%;color:#e2402fe0}._dialog_1mcfu_1 .MuiPaper-root ._errorContent_1mcfu_7 ._errorItem_1mcfu_22 ._fileName_1mcfu_28{font-weight:700}._dialog_1mcfu_1 .MuiPaper-root ._errorContent_1mcfu_7 *+*{margin-top:16px}._dialog_1mcfu_1 .MuiPaper-root ._topActions_1mcfu_34{position:absolute;right:0;top:0;padding:32px}._dialog_1mcfu_1 .MuiPaper-root ._topActions_1mcfu_34 ._close_1mcfu_40{width:40px;height:40px}._dialog_1mcfu_1 .MuiPaper-root ._botActions_1mcfu_44{padding:0;display:flex;justify-content:space-between}._dialog_1mcfu_1 .MuiPaper-root ._botActions_1mcfu_44 ._button_1mcfu_49{width:100%;text-transform:none}._dialog_1mcfu_1 .MuiPaper-root ._title_1mcfu_53{padding:0;font-weight:600;font-size:32px;line-height:100%}._dialog_1mcfu_1 .MuiPaper-root ._content_1mcfu_59{margin:32px 0 24px;padding-bottom:0;display:flex;align-items:center;justify-content:center;overflow:visible}._dialog_1mcfu_1 .MuiPaper-root ._content_1mcfu_59._many_1mcfu_67{justify-content:space-between}._dialog_1mcfu_1 .MuiPaper-root ._content_1mcfu_59 ._photoList_1mcfu_70{display:flex;flex-direction:column}._dialog_1mcfu_1 .MuiPaper-root ._content_1mcfu_59 ._crop_1mcfu_74{max-height:670px}._dialog_1mcfu_1 .MuiPaper-root ._content_1mcfu_59 ._crop_1mcfu_74 .ReactCrop__child-wrapper,._dialog_1mcfu_1 .MuiPaper-root ._content_1mcfu_59 ._crop_1mcfu_74 .ReactCrop__crop-mask{border-radius:12px}._dialog_1mcfu_1 .MuiPaper-root ._dialogText_1mcfu_83{color:#e2402fe0}
1
+ ._dialog_1h5av_1 .MuiPaper-root{border-radius:24px;padding:48px;min-width:840px;max-width:100%}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7::-webkit-scrollbar{height:8px;width:8px}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7::-webkit-scrollbar-track{background:#f2f3f5;border-radius:16px}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7::-webkit-scrollbar-thumb{background-color:#e6e6e6;border-radius:16px}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7{margin:32px 0 24px}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7 ._errorItem_1h5av_22{font-size:22px;letter-spacing:0%;line-height:150%;font-weight:500;color:#e2402fe0}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7 ._errorItem_1h5av_22 ._fileName_1h5av_29{font-weight:700}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7 *+*{margin-top:16px}._dialog_1h5av_1 .MuiPaper-root ._topActions_1h5av_35{position:absolute;right:0;top:0;padding:32px}._dialog_1h5av_1 .MuiPaper-root ._topActions_1h5av_35 ._close_1h5av_41{width:40px;height:40px}._dialog_1h5av_1 .MuiPaper-root ._botActions_1h5av_45{padding:0;display:flex;justify-content:space-between}._dialog_1h5av_1 .MuiPaper-root ._botActions_1h5av_45 ._button_1h5av_50{width:100%;text-transform:none}._dialog_1h5av_1 .MuiPaper-root ._title_1h5av_54{padding:0;font-weight:600;font-size:32px;line-height:100%}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60{margin:32px 0 24px;padding-bottom:0;display:flex;align-items:center;justify-content:center;overflow:visible}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60._many_1h5av_68{justify-content:space-between}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60 ._photoList_1h5av_71{display:flex;flex-direction:column}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60 ._crop_1h5av_75{max-height:670px}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60 ._crop_1h5av_75 .ReactCrop__child-wrapper,._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60 ._crop_1h5av_75 .ReactCrop__crop-mask{border-radius:12px}._dialog_1h5av_1 .MuiPaper-root ._dialogText_1h5av_84{color:#e2402fe0}
@@ -0,0 +1,413 @@
1
+ import { r as Z, m as G, w as z, f as ee, u as W, n as te, o as re, E as ne, p as se, q as H, k as P, h as oe, t as ie, s as ae, d as J, i as ue, b as le, c as fe, P as D, e as ce, T as ye } from "./createTheme-RRQUOQoF.js";
2
+ import * as E from "react";
3
+ import "react/jsx-runtime";
4
+ var L, X;
5
+ function de() {
6
+ if (X) return L;
7
+ X = 1;
8
+ var e = Z(), t = {
9
+ childContextTypes: !0,
10
+ contextType: !0,
11
+ contextTypes: !0,
12
+ defaultProps: !0,
13
+ displayName: !0,
14
+ getDefaultProps: !0,
15
+ getDerivedStateFromError: !0,
16
+ getDerivedStateFromProps: !0,
17
+ mixins: !0,
18
+ propTypes: !0,
19
+ type: !0
20
+ }, n = {
21
+ name: !0,
22
+ length: !0,
23
+ prototype: !0,
24
+ caller: !0,
25
+ callee: !0,
26
+ arguments: !0,
27
+ arity: !0
28
+ }, r = {
29
+ $$typeof: !0,
30
+ render: !0,
31
+ defaultProps: !0,
32
+ displayName: !0,
33
+ propTypes: !0
34
+ }, i = {
35
+ $$typeof: !0,
36
+ compare: !0,
37
+ defaultProps: !0,
38
+ displayName: !0,
39
+ propTypes: !0,
40
+ type: !0
41
+ }, s = {};
42
+ s[e.ForwardRef] = r, s[e.Memo] = i;
43
+ function o(p) {
44
+ return e.isMemo(p) ? i : s[p.$$typeof] || t;
45
+ }
46
+ var a = Object.defineProperty, f = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, y = Object.getOwnPropertyDescriptor, N = Object.getPrototypeOf, A = Object.prototype;
47
+ function b(p, m, R) {
48
+ if (typeof m != "string") {
49
+ if (A) {
50
+ var x = N(m);
51
+ x && x !== A && b(p, x, R);
52
+ }
53
+ var v = f(m);
54
+ u && (v = v.concat(u(m)));
55
+ for (var O = o(p), _ = o(m), T = 0; T < v.length; ++T) {
56
+ var l = v[T];
57
+ if (!n[l] && !(R && R[l]) && !(_ && _[l]) && !(O && O[l])) {
58
+ var c = y(m, l);
59
+ try {
60
+ a(p, l, c);
61
+ } catch {
62
+ }
63
+ }
64
+ }
65
+ }
66
+ return p;
67
+ }
68
+ return L = b, L;
69
+ }
70
+ de();
71
+ var k = function(t, n) {
72
+ var r = arguments;
73
+ if (n == null || !re.call(n, "css"))
74
+ return E.createElement.apply(void 0, r);
75
+ var i = r.length, s = new Array(i);
76
+ s[0] = ne, s[1] = se(t, n);
77
+ for (var o = 2; o < i; o++)
78
+ s[o] = r[o];
79
+ return E.createElement.apply(null, s);
80
+ };
81
+ (function(e) {
82
+ var t;
83
+ t || (t = e.JSX || (e.JSX = {}));
84
+ })(k || (k = {}));
85
+ var Fe = /* @__PURE__ */ z(function(e, t) {
86
+ var n = e.styles, r = G([n], void 0, E.useContext(ee)), i = E.useRef();
87
+ return W(function() {
88
+ var s = t.key + "-global", o = new t.sheet.constructor({
89
+ key: s,
90
+ nonce: t.sheet.nonce,
91
+ container: t.sheet.container,
92
+ speedy: t.sheet.isSpeedy
93
+ }), a = !1, f = document.querySelector('style[data-emotion="' + s + " " + r.name + '"]');
94
+ return t.sheet.tags.length && (o.before = t.sheet.tags[0]), f !== null && (a = !0, f.setAttribute("data-emotion", s), o.hydrate([f])), i.current = [o, a], function() {
95
+ o.flush();
96
+ };
97
+ }, [t]), W(function() {
98
+ var s = i.current, o = s[0], a = s[1];
99
+ if (a) {
100
+ s[1] = !1;
101
+ return;
102
+ }
103
+ if (r.next !== void 0 && te(t, r.next, !0), o.tags.length) {
104
+ var f = o.tags[o.tags.length - 1].nextElementSibling;
105
+ o.before = f, o.flush();
106
+ }
107
+ t.insert("", r, o, !1);
108
+ }, [t, r.name]), null;
109
+ });
110
+ function me() {
111
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
112
+ t[n] = arguments[n];
113
+ return G(t);
114
+ }
115
+ function De() {
116
+ var e = me.apply(void 0, arguments), t = "animation-" + e.name;
117
+ return {
118
+ name: t,
119
+ styles: "@keyframes " + t + "{" + e.styles + "}",
120
+ anim: 1,
121
+ toString: function() {
122
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
123
+ }
124
+ };
125
+ }
126
+ function B(e, t = "") {
127
+ return e.displayName || e.name || t;
128
+ }
129
+ function K(e, t, n) {
130
+ const r = B(t);
131
+ return e.displayName || (r !== "" ? `${n}(${r})` : n);
132
+ }
133
+ function he(e) {
134
+ if (e != null) {
135
+ if (typeof e == "string")
136
+ return e;
137
+ if (typeof e == "function")
138
+ return B(e, "Component");
139
+ if (typeof e == "object")
140
+ switch (e.$$typeof) {
141
+ case H.ForwardRef:
142
+ return K(e, e.render, "ForwardRef");
143
+ case H.Memo:
144
+ return K(e, e.type, "memo");
145
+ default:
146
+ return;
147
+ }
148
+ }
149
+ }
150
+ function pe(e) {
151
+ const {
152
+ variants: t,
153
+ ...n
154
+ } = e, r = {
155
+ variants: t,
156
+ style: P(n),
157
+ isProcessed: !0
158
+ };
159
+ return r.style === n || t && t.forEach((i) => {
160
+ typeof i.style != "function" && (i.style = P(i.style));
161
+ }), r;
162
+ }
163
+ const ve = oe();
164
+ function V(e) {
165
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
166
+ }
167
+ function w(e, t) {
168
+ return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
169
+ }
170
+ function Se(e) {
171
+ return e ? (t, n) => n[e] : null;
172
+ }
173
+ function ge(e, t, n) {
174
+ e.theme = Te(e.theme) ? n : e.theme[t] || e.theme;
175
+ }
176
+ function F(e, t, n) {
177
+ const r = typeof t == "function" ? t(e) : t;
178
+ if (Array.isArray(r))
179
+ return r.flatMap((i) => F(e, i, n));
180
+ if (Array.isArray(r?.variants)) {
181
+ let i;
182
+ if (r.isProcessed)
183
+ i = n ? w(r.style, n) : r.style;
184
+ else {
185
+ const {
186
+ variants: s,
187
+ ...o
188
+ } = r;
189
+ i = n ? w(P(o), n) : o;
190
+ }
191
+ return Y(e, r.variants, [i], n);
192
+ }
193
+ return r?.isProcessed ? n ? w(P(r.style), n) : r.style : n ? w(P(r), n) : r;
194
+ }
195
+ function Y(e, t, n = [], r = void 0) {
196
+ let i;
197
+ e: for (let s = 0; s < t.length; s += 1) {
198
+ const o = t[s];
199
+ if (typeof o.props == "function") {
200
+ if (i ??= {
201
+ ...e,
202
+ ...e.ownerState,
203
+ ownerState: e.ownerState
204
+ }, !o.props(i))
205
+ continue;
206
+ } else
207
+ for (const a in o.props)
208
+ if (e[a] !== o.props[a] && e.ownerState?.[a] !== o.props[a])
209
+ continue e;
210
+ typeof o.style == "function" ? (i ??= {
211
+ ...e,
212
+ ...e.ownerState,
213
+ ownerState: e.ownerState
214
+ }, n.push(r ? w(P(o.style(i)), r) : o.style(i))) : n.push(r ? w(P(o.style), r) : o.style);
215
+ }
216
+ return n;
217
+ }
218
+ function we(e = {}) {
219
+ const {
220
+ themeId: t,
221
+ defaultTheme: n = ve,
222
+ rootShouldForwardProp: r = V,
223
+ slotShouldForwardProp: i = V
224
+ } = e;
225
+ function s(a) {
226
+ ge(a, t, n);
227
+ }
228
+ return (a, f = {}) => {
229
+ ie(a, (l) => l.filter((c) => c !== J));
230
+ const {
231
+ name: u,
232
+ slot: y,
233
+ skipVariantsResolver: N,
234
+ skipSx: A,
235
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
236
+ // For more details: https://github.com/mui/material-ui/pull/37908
237
+ overridesResolver: b = Se(Q(y)),
238
+ ...p
239
+ } = f, m = u && u.startsWith("Mui") || y ? "components" : "custom", R = N !== void 0 ? N : (
240
+ // TODO v6: remove `Root` in the next major release
241
+ // For more details: https://github.com/mui/material-ui/pull/37908
242
+ y && y !== "Root" && y !== "root" || !1
243
+ ), x = A || !1;
244
+ let v = V;
245
+ y === "Root" || y === "root" ? v = r : y ? v = i : Ee(a) && (v = void 0);
246
+ const O = ae(a, {
247
+ shouldForwardProp: v,
248
+ label: Oe(u, y),
249
+ ...p
250
+ }), _ = (l) => {
251
+ if (l.__emotion_real === l)
252
+ return l;
253
+ if (typeof l == "function")
254
+ return function(g) {
255
+ return F(g, l, g.theme.modularCssLayers ? m : void 0);
256
+ };
257
+ if (ue(l)) {
258
+ const c = pe(l);
259
+ return function(S) {
260
+ return c.variants ? F(S, c, S.theme.modularCssLayers ? m : void 0) : S.theme.modularCssLayers ? w(c.style, m) : c.style;
261
+ };
262
+ }
263
+ return l;
264
+ }, T = (...l) => {
265
+ const c = [], g = l.map(_), S = [];
266
+ if (c.push(s), u && b && S.push(function(d) {
267
+ const h = d.theme.components?.[u]?.styleOverrides;
268
+ if (!h)
269
+ return null;
270
+ const C = {};
271
+ for (const q in h)
272
+ C[q] = F(d, h[q], d.theme.modularCssLayers ? "theme" : void 0);
273
+ return b(d, C);
274
+ }), u && !R && S.push(function(d) {
275
+ const h = d.theme?.components?.[u]?.variants;
276
+ return h ? Y(d, h, [], d.theme.modularCssLayers ? "theme" : void 0) : null;
277
+ }), x || S.push(J), Array.isArray(g[0])) {
278
+ const $ = g.shift(), d = new Array(c.length).fill(""), j = new Array(S.length).fill("");
279
+ let h;
280
+ h = [...d, ...$, ...j], h.raw = [...d, ...$.raw, ...j], c.unshift(h);
281
+ }
282
+ const U = [...c, ...g, ...S], I = O(...U);
283
+ return a.muiName && (I.muiName = a.muiName), process.env.NODE_ENV !== "production" && (I.displayName = Pe(u, y, a)), I;
284
+ };
285
+ return O.withConfig && (T.withConfig = O.withConfig), T;
286
+ };
287
+ }
288
+ function Pe(e, t, n) {
289
+ return e ? `${e}${le(t || "")}` : `Styled(${he(n)})`;
290
+ }
291
+ function Oe(e, t) {
292
+ let n;
293
+ return process.env.NODE_ENV !== "production" && e && (n = `${e}-${Q(t || "Root")}`), n;
294
+ }
295
+ function Te(e) {
296
+ for (const t in e)
297
+ return !1;
298
+ return !0;
299
+ }
300
+ function Ee(e) {
301
+ return typeof e == "string" && // 96 is one less than the char code
302
+ // for "a" so this is checking that
303
+ // it's a lowercase character
304
+ e.charCodeAt(0) > 96;
305
+ }
306
+ function Q(e) {
307
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
308
+ }
309
+ function M(e, t, n = !1) {
310
+ const r = {
311
+ ...t
312
+ };
313
+ for (const i in e)
314
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
315
+ const s = i;
316
+ if (s === "components" || s === "slots")
317
+ r[s] = {
318
+ ...e[s],
319
+ ...r[s]
320
+ };
321
+ else if (s === "componentsProps" || s === "slotProps") {
322
+ const o = e[s], a = t[s];
323
+ if (!a)
324
+ r[s] = o || {};
325
+ else if (!o)
326
+ r[s] = a;
327
+ else {
328
+ r[s] = {
329
+ ...a
330
+ };
331
+ for (const f in o)
332
+ if (Object.prototype.hasOwnProperty.call(o, f)) {
333
+ const u = f;
334
+ r[s][u] = M(o[u], a[u], n);
335
+ }
336
+ }
337
+ } else s === "className" && n && t.className ? r.className = fe(e?.className, t?.className) : s === "style" && n && t.style ? r.style = {
338
+ ...e?.style,
339
+ ...t?.style
340
+ } : r[s] === void 0 && (r[s] = e[s]);
341
+ }
342
+ return r;
343
+ }
344
+ const be = /* @__PURE__ */ E.createContext(void 0);
345
+ process.env.NODE_ENV !== "production" && (D.node, D.object);
346
+ function Re(e) {
347
+ const {
348
+ theme: t,
349
+ name: n,
350
+ props: r
351
+ } = e;
352
+ if (!t || !t.components || !t.components[n])
353
+ return r;
354
+ const i = t.components[n];
355
+ return i.defaultProps ? M(i.defaultProps, r, t.components.mergeClassNameAndStyle) : !i.styleOverrides && !i.variants ? M(i, r, t.components.mergeClassNameAndStyle) : r;
356
+ }
357
+ function xe({
358
+ props: e,
359
+ name: t
360
+ }) {
361
+ const n = E.useContext(be);
362
+ return Re({
363
+ props: e,
364
+ name: t,
365
+ theme: {
366
+ components: n
367
+ }
368
+ });
369
+ }
370
+ function Ie(e, t, n = void 0) {
371
+ const r = {};
372
+ for (const i in e) {
373
+ const s = e[i];
374
+ let o = "", a = !0;
375
+ for (let f = 0; f < s.length; f += 1) {
376
+ const u = s[f];
377
+ u && (o += (a === !0 ? "" : " ") + t(u), a = !1, n && n[u] && (o += " " + n[u]));
378
+ }
379
+ r[i] = o;
380
+ }
381
+ return r;
382
+ }
383
+ const Ne = ce();
384
+ function Ae(e) {
385
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
386
+ }
387
+ const _e = (e) => Ae(e) && e !== "classes", Le = we({
388
+ themeId: ye,
389
+ defaultTheme: Ne,
390
+ rootShouldForwardProp: _e
391
+ });
392
+ process.env.NODE_ENV !== "production" && (D.node, D.object.isRequired);
393
+ function Ve(e) {
394
+ return xe(e);
395
+ }
396
+ function Me(e, t) {
397
+ return process.env.NODE_ENV === "production" ? () => null : function(...r) {
398
+ return e(...r) || t(...r);
399
+ };
400
+ }
401
+ export {
402
+ Fe as G,
403
+ me as a,
404
+ Me as b,
405
+ Ie as c,
406
+ M as d,
407
+ Ne as e,
408
+ De as k,
409
+ pe as p,
410
+ _e as r,
411
+ Le as s,
412
+ Ve as u
413
+ };
@@ -3,7 +3,7 @@ import { c as U } from "../../index-B2JRaoNz.js";
3
3
  import { ButtonContent as a } from "./button-content.js";
4
4
  import { BUTTON_COLOR_GRAY as h, BUTTON_SIZE_DEFAULT as I, BUTTON_VARIANT_OUTLINED as x, MIN_WIDTH_DEFAULT as C, BUTTON_WEIGHT_MEDIUM as E } from "./constants.js";
5
5
  import { s as A } from "../../button.module-BZPPmSAS.js";
6
- import { B as D } from "../../ButtonBase-T2KH9jsD.js";
6
+ import { B as D } from "../../ButtonBase-DPLf5-lz.js";
7
7
  import { getButtonClassnames as L } from "./utils/get-button-classnames.js";
8
8
  const F = (m) => {
9
9
  const {
@@ -1,44 +1,46 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { c as n } from "../../index-B2JRaoNz.js";
3
- import { PRECENT_SYMBOL as m } from "../../constants.js";
4
- import { CIRCULAR_PROGRESS_DEFAULT_VALUE as _, CIRCULAR_PROGRESS_SIZE as p } from "./constants.js";
5
- import { B as a } from "../../Box-D8oKffw9.js";
6
- import { C } from "../../CircularProgress-BQQkuSse.js";
7
- import { T as d } from "../../Typography-r_TXEM1e.js";
8
- import '../../assets/circular-progress-loader.css';const g = "_circularProgressLoader_ric36_1", b = "_progress_ric36_7", u = "_labelContainer_ric36_10", x = "_labelText_ric36_20", r = {
9
- circularProgressLoader: g,
10
- progress: b,
11
- labelContainer: u,
12
- labelText: x
13
- }, h = (s) => {
1
+ import { jsxs as _, jsx as e } from "react/jsx-runtime";
2
+ import { c as m } from "../../index-B2JRaoNz.js";
3
+ import { PRECENT_SYMBOL as T } from "../../constants.js";
4
+ import { CIRCULAR_PROGRESS_DEFAULT_VALUE as R, PROGRESS_VARIANT_DETERMINATE as a, CIRCULAR_PROGRESS_DEFAULT_SIZE as C } from "./constants.js";
5
+ import { B as l } from "../../Box-CykjCaXY.js";
6
+ import { C as E } from "../../CircularProgress-CrHaMZDC.js";
7
+ import { T as g } from "../../Typography-DDVoglvI.js";
8
+ import '../../assets/circular-progress-loader.css';const L = "_circularProgressLoader_knl3p_1", P = "_progress_knl3p_5", b = "_labelContainer_knl3p_8", d = "_labelText_knl3p_18", r = {
9
+ circularProgressLoader: L,
10
+ progress: P,
11
+ labelContainer: b,
12
+ labelText: d
13
+ }, k = (t) => {
14
14
  const {
15
- value: o = _,
16
- className: t,
17
- ...l
18
- } = s, c = `${Math.round(o)}${m}`;
19
- return /* @__PURE__ */ i(a, { className: r.circularProgressLoader, children: [
15
+ value: o = R,
16
+ variant: s = a,
17
+ size: c = C,
18
+ className: n,
19
+ ...i
20
+ } = t, p = `${Math.round(o)}${T}`;
21
+ return /* @__PURE__ */ _(l, { className: r.circularProgressLoader, children: [
20
22
  /* @__PURE__ */ e(
21
- C,
23
+ E,
22
24
  {
23
- className: n(r.progress, t),
24
- size: p,
25
+ className: m(r.progress, n),
25
26
  enableTrackSlot: !0,
26
- variant: "determinate",
27
+ variant: s,
27
28
  value: o,
28
- ...l
29
+ size: c,
30
+ ...i
29
31
  }
30
32
  ),
31
- /* @__PURE__ */ e(a, { className: r.labelContainer, children: /* @__PURE__ */ e(
32
- d,
33
+ s === a && /* @__PURE__ */ e(l, { className: r.labelContainer, children: /* @__PURE__ */ e(
34
+ g,
33
35
  {
34
36
  className: r.labelText,
35
37
  variant: "caption",
36
38
  component: "div",
37
- children: c
39
+ children: p
38
40
  }
39
41
  ) })
40
42
  ] });
41
43
  };
42
44
  export {
43
- h as CircularProgressLoader
45
+ k as CircularProgressLoader
44
46
  };
@@ -1,2 +1,4 @@
1
- export declare const CIRCULAR_PROGRESS_SIZE = 100;
1
+ export declare const CIRCULAR_PROGRESS_DEFAULT_SIZE = 100;
2
2
  export declare const CIRCULAR_PROGRESS_DEFAULT_VALUE = 0;
3
+ export declare const PROGRESS_VARIANT_DETERMINATE = "determinate";
4
+ export declare const PROGRESS_VARIANT_INDETERMINATE = "indeterminate";
@@ -1,5 +1,7 @@
1
- const R = 100, E = 0;
1
+ const R = 100, E = 0, A = "determinate", _ = "indeterminate";
2
2
  export {
3
+ R as CIRCULAR_PROGRESS_DEFAULT_SIZE,
3
4
  E as CIRCULAR_PROGRESS_DEFAULT_VALUE,
4
- R as CIRCULAR_PROGRESS_SIZE
5
+ A as PROGRESS_VARIANT_DETERMINATE,
6
+ _ as PROGRESS_VARIANT_INDETERMINATE
5
7
  };
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { CodeInputProps } from './types';
3
+ export declare const CodeInput: FC<CodeInputProps>;