@hai-dev/ui-kit 1.0.5 → 1.0.7

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 (55) hide show
  1. package/dist/Box-D8oKffw9.js +57 -0
  2. package/dist/{Button-DDlVTM6i.js → Button-BBF8hp7e.js} +30 -27
  3. package/dist/ButtonBase-T2KH9jsD.js +966 -0
  4. package/dist/CircularProgress-BQQkuSse.js +273 -0
  5. package/dist/{DialogTitle-KN1sayHD.js → Dialog-B97c7WYP.js} +910 -1401
  6. package/dist/DialogTitle-Du4tqTs0.js +254 -0
  7. package/dist/Typography-r_TXEM1e.js +257 -0
  8. package/dist/assets/circular-progress-loader.css +1 -0
  9. package/dist/assets/upload-dialog-errors.css +1 -0
  10. package/dist/assets/upload-dialog.css +1 -1
  11. package/dist/chainPropTypes-KIxDwPzf.js +387 -0
  12. package/dist/components/button/button.js +1 -1
  13. package/dist/components/circular-progress-loader/circular-progress-loader.d.ts +3 -0
  14. package/dist/components/circular-progress-loader/circular-progress-loader.js +44 -0
  15. package/dist/components/circular-progress-loader/circular-progress-loader.stories.d.ts +7 -0
  16. package/dist/components/circular-progress-loader/constants.d.ts +2 -0
  17. package/dist/components/circular-progress-loader/constants.js +5 -0
  18. package/dist/components/circular-progress-loader/index.d.ts +1 -0
  19. package/dist/components/circular-progress-loader/index.js +4 -0
  20. package/dist/components/circular-progress-loader/types.d.ts +6 -0
  21. package/dist/components/circular-progress-loader/types.js +1 -0
  22. package/dist/components/index.d.ts +1 -0
  23. package/dist/components/index.js +6 -4
  24. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +41 -39
  25. package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +22 -73
  26. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +17 -17
  27. package/dist/components/photo-crop-uploader/components/upload-dialog/types.d.ts +12 -1
  28. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.d.ts +3 -0
  29. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +10 -0
  30. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +152 -127
  31. package/dist/components/photo-crop-uploader/constants.d.ts +3 -0
  32. package/dist/components/photo-crop-uploader/constants.js +35 -32
  33. package/dist/components/photo-crop-uploader/locale.js +8 -2
  34. package/dist/components/photo-crop-uploader/photo-crop-uploader.js +169 -145
  35. package/dist/components/photo-crop-uploader/types.d.ts +4 -0
  36. package/dist/constants.d.ts +2 -0
  37. package/dist/constants.js +3 -1
  38. package/dist/createSimplePaletteValueFilter-nb0wSOzC.js +30 -0
  39. package/dist/{createTheme-DSHGFfg6.js → createTheme-RvzX1VSA.js} +4 -4
  40. package/dist/decorators/centered-decorator.d.ts +3 -0
  41. package/dist/decorators/centered-decorator.js +16 -0
  42. package/dist/decorators/index.d.ts +1 -0
  43. package/dist/decorators/index.js +4 -0
  44. package/dist/decorators/types.d.ts +4 -0
  45. package/dist/decorators/types.js +1 -0
  46. package/dist/extendSxProp-BW9e6LtL.js +36 -0
  47. package/dist/index.d.ts +1 -1
  48. package/dist/index.js +16 -14
  49. package/dist/upload-dialog-errors-ku54UrUb.js +365 -0
  50. package/dist/useId-CK6Kn3Tn.js +21 -0
  51. package/dist/useTheme-CsjkCBFJ.js +16 -0
  52. package/package.json +8 -8
  53. package/dist/ButtonBase-CXGZ-DBC.js +0 -1346
  54. package/dist/CircularProgress-CscJm1An.js +0 -291
  55. package/dist/extendSxProp-CzeED7BH.js +0 -49
@@ -0,0 +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 +1 @@
1
- ._dialog_1d9zm_1 .MuiPaper-root{border-radius:24px;padding:48px;min-width:840px;max-width:100%}._dialog_1d9zm_1 .MuiPaper-root ._topActions_1d9zm_7{position:absolute;right:0;top:0;padding:32px}._dialog_1d9zm_1 .MuiPaper-root ._topActions_1d9zm_7 ._close_1d9zm_13{width:40px;height:40px}._dialog_1d9zm_1 .MuiPaper-root ._botActions_1d9zm_17{padding:0;display:flex;justify-content:space-between}._dialog_1d9zm_1 .MuiPaper-root ._botActions_1d9zm_17 ._button_1d9zm_22{width:100%;text-transform:none}._dialog_1d9zm_1 .MuiPaper-root ._title_1d9zm_26{padding:0;font-weight:600;font-size:32px;line-height:100%}._dialog_1d9zm_1 .MuiPaper-root ._content_1d9zm_32{margin:32px 0 24px;padding-bottom:0;display:flex;align-items:center;justify-content:center;overflow:visible}._dialog_1d9zm_1 .MuiPaper-root ._content_1d9zm_32._many_1d9zm_40{justify-content:space-between}._dialog_1d9zm_1 .MuiPaper-root ._content_1d9zm_32 ._photoList_1d9zm_43{display:flex;flex-direction:column}._dialog_1d9zm_1 .MuiPaper-root ._content_1d9zm_32 ._crop_1d9zm_47{max-height:670px}._dialog_1d9zm_1 .MuiPaper-root ._content_1d9zm_32 ._crop_1d9zm_47 .ReactCrop__child-wrapper,._dialog_1d9zm_1 .MuiPaper-root ._content_1d9zm_32 ._crop_1d9zm_47 .ReactCrop__crop-mask{border-radius:12px}._dialog_1d9zm_1 .MuiPaper-root ._dialogText_1d9zm_56{color:#e2402fe0}@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size: 12px;--rc-drag-handle-mobile-size: 24px;--rc-drag-handle-bg-colour: rgba(0, 0, 0, .2);--rc-drag-bar-size: 6px;--rc-border-color: rgba(255, 255, 255, .7);--rc-focus-color: #0088ff}.ReactCrop{position:relative;display:inline-block;cursor:crosshair;max-width:100%}.ReactCrop *,.ReactCrop *:before,.ReactCrop *:after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{overflow:hidden;max-height:inherit}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-width:100%;max-height:inherit}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video{touch-action:none}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{position:absolute;inset:0;pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px)}.ReactCrop__crop-selection{position:absolute;top:0;left:0;transform:translateZ(0);cursor:move}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";position:absolute;inset:-1px;border:1px solid var(--rc-border-color);opacity:.3}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed white}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){animation:marching-ants 1s;background-image:linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%);background-size:10px 1px,10px 1px,1px 10px,1px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;color:#fff;animation-play-state:running;animation-timing-function:linear;animation-iteration-count:infinite}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";display:block;position:absolute;background-color:#fff6}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333333333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6666666667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333333333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6666666667%}.ReactCrop__drag-handle{position:absolute;width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color)}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{top:0;left:0;transform:translate(-50%,-50%);cursor:nw-resize}.ReactCrop .ord-n{top:0;left:50%;transform:translate(-50%,-50%);cursor:n-resize}.ReactCrop .ord-ne{top:0;right:0;transform:translate(50%,-50%);cursor:ne-resize}.ReactCrop .ord-e{top:50%;right:0;transform:translate(50%,-50%);cursor:e-resize}.ReactCrop .ord-se{bottom:0;right:0;transform:translate(50%,50%);cursor:se-resize}.ReactCrop .ord-s{bottom:0;left:50%;transform:translate(-50%,50%);cursor:s-resize}.ReactCrop .ord-sw{bottom:0;left:0;transform:translate(-50%,50%);cursor:sw-resize}.ReactCrop .ord-w{top:50%;left:0;transform:translate(-50%,-50%);cursor:w-resize}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media (pointer: coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}
1
+ @keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size: 12px;--rc-drag-handle-mobile-size: 24px;--rc-drag-handle-bg-colour: rgba(0, 0, 0, .2);--rc-drag-bar-size: 6px;--rc-border-color: rgba(255, 255, 255, .7);--rc-focus-color: #0088ff}.ReactCrop{position:relative;display:inline-block;cursor:crosshair;max-width:100%}.ReactCrop *,.ReactCrop *:before,.ReactCrop *:after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{overflow:hidden;max-height:inherit}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-width:100%;max-height:inherit}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video{touch-action:none}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{position:absolute;inset:0;pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px)}.ReactCrop__crop-selection{position:absolute;top:0;left:0;transform:translateZ(0);cursor:move}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";position:absolute;inset:-1px;border:1px solid var(--rc-border-color);opacity:.3}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed white}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){animation:marching-ants 1s;background-image:linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%);background-size:10px 1px,10px 1px,1px 10px,1px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;color:#fff;animation-play-state:running;animation-timing-function:linear;animation-iteration-count:infinite}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";display:block;position:absolute;background-color:#fff6}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333333333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6666666667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333333333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6666666667%}.ReactCrop__drag-handle{position:absolute;width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color)}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{top:0;left:0;transform:translate(-50%,-50%);cursor:nw-resize}.ReactCrop .ord-n{top:0;left:50%;transform:translate(-50%,-50%);cursor:n-resize}.ReactCrop .ord-ne{top:0;right:0;transform:translate(50%,-50%);cursor:ne-resize}.ReactCrop .ord-e{top:50%;right:0;transform:translate(50%,-50%);cursor:e-resize}.ReactCrop .ord-se{bottom:0;right:0;transform:translate(50%,50%);cursor:se-resize}.ReactCrop .ord-s{bottom:0;left:50%;transform:translate(-50%,50%);cursor:s-resize}.ReactCrop .ord-sw{bottom:0;left:0;transform:translate(-50%,50%);cursor:sw-resize}.ReactCrop .ord-w{top:50%;left:0;transform:translate(-50%,-50%);cursor:w-resize}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media (pointer: coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}
@@ -0,0 +1,387 @@
1
+ import { r as U, k as Z, l as k, E as z, m as ee, n as q, o as O, e as te, p as re, s as ne, f as J, i as se, b as oe, c as ie, P as F, j as ae, h as ue } from "./createTheme-RvzX1VSA.js";
2
+ import * as D from "react";
3
+ import "react/jsx-runtime";
4
+ var V, X;
5
+ function ce() {
6
+ if (X) return V;
7
+ X = 1;
8
+ var e = U(), 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
+ }, r = {
21
+ name: !0,
22
+ length: !0,
23
+ prototype: !0,
24
+ caller: !0,
25
+ callee: !0,
26
+ arguments: !0,
27
+ arity: !0
28
+ }, n = {
29
+ $$typeof: !0,
30
+ render: !0,
31
+ defaultProps: !0,
32
+ displayName: !0,
33
+ propTypes: !0
34
+ }, o = {
35
+ $$typeof: !0,
36
+ compare: !0,
37
+ defaultProps: !0,
38
+ displayName: !0,
39
+ propTypes: !0,
40
+ type: !0
41
+ }, s = {};
42
+ s[e.ForwardRef] = n, s[e.Memo] = o;
43
+ function i(p) {
44
+ return e.isMemo(p) ? o : s[p.$$typeof] || t;
45
+ }
46
+ var a = Object.defineProperty, d = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, b = Object.getPrototypeOf, _ = Object.prototype;
47
+ function E(p, m, N) {
48
+ if (typeof m != "string") {
49
+ if (_) {
50
+ var R = b(m);
51
+ R && R !== _ && E(p, R, N);
52
+ }
53
+ var v = d(m);
54
+ u && (v = v.concat(u(m)));
55
+ for (var g = i(p), x = i(m), T = 0; T < v.length; ++T) {
56
+ var c = v[T];
57
+ if (!r[c] && !(N && N[c]) && !(x && x[c]) && !(g && g[c])) {
58
+ var l = f(m, c);
59
+ try {
60
+ a(p, c, l);
61
+ } catch {
62
+ }
63
+ }
64
+ }
65
+ }
66
+ return p;
67
+ }
68
+ return V = E, V;
69
+ }
70
+ ce();
71
+ var C = function(t, r) {
72
+ var n = arguments;
73
+ if (r == null || !k.call(r, "css"))
74
+ return D.createElement.apply(void 0, n);
75
+ var o = n.length, s = new Array(o);
76
+ s[0] = z, s[1] = ee(t, r);
77
+ for (var i = 2; i < o; i++)
78
+ s[i] = n[i];
79
+ return D.createElement.apply(null, s);
80
+ };
81
+ (function(e) {
82
+ var t;
83
+ t || (t = e.JSX || (e.JSX = {}));
84
+ })(C || (C = {}));
85
+ function le() {
86
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
87
+ t[r] = arguments[r];
88
+ return Z(t);
89
+ }
90
+ function xe() {
91
+ var e = le.apply(void 0, arguments), t = "animation-" + e.name;
92
+ return {
93
+ name: t,
94
+ styles: "@keyframes " + t + "{" + e.styles + "}",
95
+ anim: 1,
96
+ toString: function() {
97
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
98
+ }
99
+ };
100
+ }
101
+ function B(e, t = "") {
102
+ return e.displayName || e.name || t;
103
+ }
104
+ function K(e, t, r) {
105
+ const n = B(t);
106
+ return e.displayName || (n !== "" ? `${r}(${n})` : r);
107
+ }
108
+ function fe(e) {
109
+ if (e != null) {
110
+ if (typeof e == "string")
111
+ return e;
112
+ if (typeof e == "function")
113
+ return B(e, "Component");
114
+ if (typeof e == "object")
115
+ switch (e.$$typeof) {
116
+ case q.ForwardRef:
117
+ return K(e, e.render, "ForwardRef");
118
+ case q.Memo:
119
+ return K(e, e.type, "memo");
120
+ default:
121
+ return;
122
+ }
123
+ }
124
+ }
125
+ function ye(e) {
126
+ const {
127
+ variants: t,
128
+ ...r
129
+ } = e, n = {
130
+ variants: t,
131
+ style: O(r),
132
+ isProcessed: !0
133
+ };
134
+ return n.style === r || t && t.forEach((o) => {
135
+ typeof o.style != "function" && (o.style = O(o.style));
136
+ }), n;
137
+ }
138
+ const de = te();
139
+ function L(e) {
140
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
141
+ }
142
+ function w(e, t) {
143
+ return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
144
+ }
145
+ function me(e) {
146
+ return e ? (t, r) => r[e] : null;
147
+ }
148
+ function he(e, t, r) {
149
+ e.theme = Pe(e.theme) ? r : e.theme[t] || e.theme;
150
+ }
151
+ function $(e, t, r) {
152
+ const n = typeof t == "function" ? t(e) : t;
153
+ if (Array.isArray(n))
154
+ return n.flatMap((o) => $(e, o, r));
155
+ if (Array.isArray(n?.variants)) {
156
+ let o;
157
+ if (n.isProcessed)
158
+ o = r ? w(n.style, r) : n.style;
159
+ else {
160
+ const {
161
+ variants: s,
162
+ ...i
163
+ } = n;
164
+ o = r ? w(O(i), r) : i;
165
+ }
166
+ return Y(e, n.variants, [o], r);
167
+ }
168
+ return n?.isProcessed ? r ? w(O(n.style), r) : n.style : r ? w(O(n), r) : n;
169
+ }
170
+ function Y(e, t, r = [], n = void 0) {
171
+ let o;
172
+ e: for (let s = 0; s < t.length; s += 1) {
173
+ const i = t[s];
174
+ if (typeof i.props == "function") {
175
+ if (o ??= {
176
+ ...e,
177
+ ...e.ownerState,
178
+ ownerState: e.ownerState
179
+ }, !i.props(o))
180
+ continue;
181
+ } else
182
+ for (const a in i.props)
183
+ if (e[a] !== i.props[a] && e.ownerState?.[a] !== i.props[a])
184
+ continue e;
185
+ typeof i.style == "function" ? (o ??= {
186
+ ...e,
187
+ ...e.ownerState,
188
+ ownerState: e.ownerState
189
+ }, r.push(n ? w(O(i.style(o)), n) : i.style(o))) : r.push(n ? w(O(i.style), n) : i.style);
190
+ }
191
+ return r;
192
+ }
193
+ function pe(e = {}) {
194
+ const {
195
+ themeId: t,
196
+ defaultTheme: r = de,
197
+ rootShouldForwardProp: n = L,
198
+ slotShouldForwardProp: o = L
199
+ } = e;
200
+ function s(a) {
201
+ he(a, t, r);
202
+ }
203
+ return (a, d = {}) => {
204
+ re(a, (c) => c.filter((l) => l !== J));
205
+ const {
206
+ name: u,
207
+ slot: f,
208
+ skipVariantsResolver: b,
209
+ skipSx: _,
210
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
211
+ // For more details: https://github.com/mui/material-ui/pull/37908
212
+ overridesResolver: E = me(G(f)),
213
+ ...p
214
+ } = d, m = u && u.startsWith("Mui") || f ? "components" : "custom", N = b !== void 0 ? b : (
215
+ // TODO v6: remove `Root` in the next major release
216
+ // For more details: https://github.com/mui/material-ui/pull/37908
217
+ f && f !== "Root" && f !== "root" || !1
218
+ ), R = _ || !1;
219
+ let v = L;
220
+ f === "Root" || f === "root" ? v = n : f ? v = o : we(a) && (v = void 0);
221
+ const g = ne(a, {
222
+ shouldForwardProp: v,
223
+ label: Se(u, f),
224
+ ...p
225
+ }), x = (c) => {
226
+ if (c.__emotion_real === c)
227
+ return c;
228
+ if (typeof c == "function")
229
+ return function(P) {
230
+ return $(P, c, P.theme.modularCssLayers ? m : void 0);
231
+ };
232
+ if (se(c)) {
233
+ const l = ye(c);
234
+ return function(S) {
235
+ return l.variants ? $(S, l, S.theme.modularCssLayers ? m : void 0) : S.theme.modularCssLayers ? w(l.style, m) : l.style;
236
+ };
237
+ }
238
+ return c;
239
+ }, T = (...c) => {
240
+ const l = [], P = c.map(x), S = [];
241
+ if (l.push(s), u && E && S.push(function(y) {
242
+ const h = y.theme.components?.[u]?.styleOverrides;
243
+ if (!h)
244
+ return null;
245
+ const H = {};
246
+ for (const W in h)
247
+ H[W] = $(y, h[W], y.theme.modularCssLayers ? "theme" : void 0);
248
+ return E(y, H);
249
+ }), u && !N && S.push(function(y) {
250
+ const h = y.theme?.components?.[u]?.variants;
251
+ return h ? Y(y, h, [], y.theme.modularCssLayers ? "theme" : void 0) : null;
252
+ }), R || S.push(J), Array.isArray(P[0])) {
253
+ const A = P.shift(), y = new Array(l.length).fill(""), j = new Array(S.length).fill("");
254
+ let h;
255
+ h = [...y, ...A, ...j], h.raw = [...y, ...A.raw, ...j], l.unshift(h);
256
+ }
257
+ const Q = [...l, ...P, ...S], I = g(...Q);
258
+ return a.muiName && (I.muiName = a.muiName), process.env.NODE_ENV !== "production" && (I.displayName = ve(u, f, a)), I;
259
+ };
260
+ return g.withConfig && (T.withConfig = g.withConfig), T;
261
+ };
262
+ }
263
+ function ve(e, t, r) {
264
+ return e ? `${e}${oe(t || "")}` : `Styled(${fe(r)})`;
265
+ }
266
+ function Se(e, t) {
267
+ let r;
268
+ return process.env.NODE_ENV !== "production" && e && (r = `${e}-${G(t || "Root")}`), r;
269
+ }
270
+ function Pe(e) {
271
+ for (const t in e)
272
+ return !1;
273
+ return !0;
274
+ }
275
+ function we(e) {
276
+ return typeof e == "string" && // 96 is one less than the char code
277
+ // for "a" so this is checking that
278
+ // it's a lowercase character
279
+ e.charCodeAt(0) > 96;
280
+ }
281
+ function G(e) {
282
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
283
+ }
284
+ function M(e, t, r = !1) {
285
+ const n = {
286
+ ...t
287
+ };
288
+ for (const o in e)
289
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
290
+ const s = o;
291
+ if (s === "components" || s === "slots")
292
+ n[s] = {
293
+ ...e[s],
294
+ ...n[s]
295
+ };
296
+ else if (s === "componentsProps" || s === "slotProps") {
297
+ const i = e[s], a = t[s];
298
+ if (!a)
299
+ n[s] = i || {};
300
+ else if (!i)
301
+ n[s] = a;
302
+ else {
303
+ n[s] = {
304
+ ...a
305
+ };
306
+ for (const d in i)
307
+ if (Object.prototype.hasOwnProperty.call(i, d)) {
308
+ const u = d;
309
+ n[s][u] = M(i[u], a[u], r);
310
+ }
311
+ }
312
+ } else s === "className" && r && t.className ? n.className = ie(e?.className, t?.className) : s === "style" && r && t.style ? n.style = {
313
+ ...e?.style,
314
+ ...t?.style
315
+ } : n[s] === void 0 && (n[s] = e[s]);
316
+ }
317
+ return n;
318
+ }
319
+ const Oe = /* @__PURE__ */ D.createContext(void 0);
320
+ process.env.NODE_ENV !== "production" && (F.node, F.object);
321
+ function ge(e) {
322
+ const {
323
+ theme: t,
324
+ name: r,
325
+ props: n
326
+ } = e;
327
+ if (!t || !t.components || !t.components[r])
328
+ return n;
329
+ const o = t.components[r];
330
+ return o.defaultProps ? M(o.defaultProps, n, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? M(o, n, t.components.mergeClassNameAndStyle) : n;
331
+ }
332
+ function Te({
333
+ props: e,
334
+ name: t
335
+ }) {
336
+ const r = D.useContext(Oe);
337
+ return ge({
338
+ props: e,
339
+ name: t,
340
+ theme: {
341
+ components: r
342
+ }
343
+ });
344
+ }
345
+ function Ae(e, t, r = void 0) {
346
+ const n = {};
347
+ for (const o in e) {
348
+ const s = e[o];
349
+ let i = "", a = !0;
350
+ for (let d = 0; d < s.length; d += 1) {
351
+ const u = s[d];
352
+ u && (i += (a === !0 ? "" : " ") + t(u), a = !1, r && r[u] && (i += " " + r[u]));
353
+ }
354
+ n[o] = i;
355
+ }
356
+ return n;
357
+ }
358
+ const Ee = ae();
359
+ function Ne(e) {
360
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
361
+ }
362
+ const Re = (e) => Ne(e) && e !== "classes", je = pe({
363
+ themeId: ue,
364
+ defaultTheme: Ee,
365
+ rootShouldForwardProp: Re
366
+ });
367
+ process.env.NODE_ENV !== "production" && (F.node, F.object.isRequired);
368
+ function $e(e) {
369
+ return Te(e);
370
+ }
371
+ function Fe(e, t) {
372
+ return process.env.NODE_ENV === "production" ? () => null : function(...n) {
373
+ return e(...n) || t(...n);
374
+ };
375
+ }
376
+ export {
377
+ le as a,
378
+ Fe as b,
379
+ Ae as c,
380
+ M as d,
381
+ Ee as e,
382
+ xe as k,
383
+ ye as p,
384
+ Re as r,
385
+ je as s,
386
+ $e as u
387
+ };
@@ -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-CXGZ-DBC.js";
6
+ import { B as D } from "../../ButtonBase-T2KH9jsD.js";
7
7
  import { getButtonClassnames as L } from "./utils/get-button-classnames.js";
8
8
  const F = (m) => {
9
9
  const {
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { CircularProgressLoaderProps } from './types';
3
+ export declare const CircularProgressLoader: FC<CircularProgressLoaderProps>;
@@ -0,0 +1,44 @@
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) => {
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: [
20
+ /* @__PURE__ */ e(
21
+ C,
22
+ {
23
+ className: n(r.progress, t),
24
+ size: p,
25
+ enableTrackSlot: !0,
26
+ variant: "determinate",
27
+ value: o,
28
+ ...l
29
+ }
30
+ ),
31
+ /* @__PURE__ */ e(a, { className: r.labelContainer, children: /* @__PURE__ */ e(
32
+ d,
33
+ {
34
+ className: r.labelText,
35
+ variant: "caption",
36
+ component: "div",
37
+ children: c
38
+ }
39
+ ) })
40
+ ] });
41
+ };
42
+ export {
43
+ h as CircularProgressLoader
44
+ };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { CircularProgressLoader } from './';
3
+ type CircularProgressLoaderMeta = Meta<typeof CircularProgressLoader>;
4
+ type CircularProgressLoaderStory = StoryObj<typeof CircularProgressLoader>;
5
+ declare const meta: CircularProgressLoaderMeta;
6
+ export default meta;
7
+ export declare const Base: CircularProgressLoaderStory;
@@ -0,0 +1,2 @@
1
+ export declare const CIRCULAR_PROGRESS_SIZE = 100;
2
+ export declare const CIRCULAR_PROGRESS_DEFAULT_VALUE = 0;
@@ -0,0 +1,5 @@
1
+ const R = 100, E = 0;
2
+ export {
3
+ E as CIRCULAR_PROGRESS_DEFAULT_VALUE,
4
+ R as CIRCULAR_PROGRESS_SIZE
5
+ };
@@ -0,0 +1 @@
1
+ export { CircularProgressLoader } from './circular-progress-loader';
@@ -0,0 +1,4 @@
1
+ import { CircularProgressLoader as e } from "./circular-progress-loader.js";
2
+ export {
3
+ e as CircularProgressLoader
4
+ };
@@ -0,0 +1,6 @@
1
+ import { CircularProgressProps } from '@mui/material';
2
+ type CircularProgressLoaderCustomProps = {
3
+ value?: number;
4
+ };
5
+ export type CircularProgressLoaderProps = CircularProgressLoaderCustomProps & CircularProgressProps;
6
+ export {};
@@ -1,2 +1,3 @@
1
1
  export { PhotoCropUploader } from './photo-crop-uploader';
2
2
  export { Button } from './button';
3
+ export { CircularProgressLoader } from './circular-progress-loader';
@@ -1,6 +1,8 @@
1
- import { PhotoCropUploader as t } from "./photo-crop-uploader/photo-crop-uploader.js";
2
- import { Button as e } from "./button/button.js";
1
+ import { PhotoCropUploader as e } from "./photo-crop-uploader/photo-crop-uploader.js";
2
+ import { Button as p } from "./button/button.js";
3
+ import { CircularProgressLoader as f } from "./circular-progress-loader/circular-progress-loader.js";
3
4
  export {
4
- e as Button,
5
- t as PhotoCropUploader
5
+ p as Button,
6
+ f as CircularProgressLoader,
7
+ e as PhotoCropUploader
6
8
  };
@@ -1,52 +1,54 @@
1
- import { jsx as r, jsxs as u } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as f } from "react/jsx-runtime";
2
2
  import { c as p } from "../../../../index-B2JRaoNz.js";
3
- import { localizedText as d } from "../../locale.js";
4
- import { EN_LOCALE as f } from "../../../../constants.js";
5
- import { T as x, D as T, a as C, b as y, c as D } from "../../../../DialogTitle-KN1sayHD.js";
6
- import * as h from "react";
7
- import { g as E, a as N, b, P as o } from "../../../../createTheme-DSHGFfg6.js";
8
- import { u as _, s as P, c as j, r as v } from "../../../../ButtonBase-CXGZ-DBC.js";
9
- import { B as w } from "../../../../Button-DDlVTM6i.js";
10
- import '../../../../assets/error-upload-dialog.css';function O(s) {
11
- return E("MuiDialogContentText", s);
3
+ import { localizedText as m } from "../../locale.js";
4
+ import { EN_LOCALE as u } from "../../../../constants.js";
5
+ import { D as x } from "../../../../Dialog-B97c7WYP.js";
6
+ import { D as T, a as C, b as D } from "../../../../DialogTitle-Du4tqTs0.js";
7
+ import * as y from "react";
8
+ import { g as h, a as E, c as N, P as o } from "../../../../createTheme-RvzX1VSA.js";
9
+ import { u as _, s as b, c as P, r as j } from "../../../../chainPropTypes-KIxDwPzf.js";
10
+ import { T as v } from "../../../../Typography-r_TXEM1e.js";
11
+ import { B as w } from "../../../../Button-BBF8hp7e.js";
12
+ import '../../../../assets/error-upload-dialog.css';function O(t) {
13
+ return h("MuiDialogContentText", t);
12
14
  }
13
- N("MuiDialogContentText", ["root"]);
14
- const U = (s) => {
15
+ E("MuiDialogContentText", ["root"]);
16
+ const U = (t) => {
15
17
  const {
16
- classes: e
17
- } = s, t = j({
18
+ classes: r
19
+ } = t, s = P({
18
20
  root: ["root"]
19
- }, O, e);
21
+ }, O, r);
20
22
  return {
21
- ...e,
23
+ ...r,
22
24
  // forward classes to the Typography
23
- ...t
25
+ ...s
24
26
  };
25
- }, M = P(x, {
26
- shouldForwardProp: (s) => v(s) || s === "classes",
27
+ }, M = b(v, {
28
+ shouldForwardProp: (t) => j(t) || t === "classes",
27
29
  name: "MuiDialogContentText",
28
30
  slot: "Root"
29
- })({}), m = /* @__PURE__ */ h.forwardRef(function(e, a) {
30
- const t = _({
31
- props: e,
31
+ })({}), g = /* @__PURE__ */ y.forwardRef(function(r, a) {
32
+ const s = _({
33
+ props: r,
32
34
  name: "MuiDialogContentText"
33
35
  }), {
34
36
  children: n,
35
37
  className: l,
36
38
  ...i
37
- } = t, c = U(i);
38
- return /* @__PURE__ */ r(M, {
39
+ } = s, c = U(i);
40
+ return /* @__PURE__ */ e(M, {
39
41
  component: "p",
40
42
  variant: "body1",
41
43
  color: "textSecondary",
42
44
  ref: a,
43
45
  ownerState: i,
44
- className: b(c.root, l),
45
- ...t,
46
+ className: N(c.root, l),
47
+ ...s,
46
48
  classes: c
47
49
  });
48
50
  });
49
- process.env.NODE_ENV !== "production" && (m.propTypes = {
51
+ process.env.NODE_ENV !== "production" && (g.propTypes = {
50
52
  // ┌────────────────────────────── Warning ──────────────────────────────┐
51
53
  // │ These PropTypes are generated from the TypeScript type definitions. │
52
54
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -68,31 +70,31 @@ process.env.NODE_ENV !== "production" && (m.propTypes = {
68
70
  */
69
71
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
70
72
  });
71
- const R = "_dialog_lyvu5_1", S = "_dialogErrorText_lyvu5_1", g = {
73
+ const R = "_dialog_lyvu5_1", S = "_dialogErrorText_lyvu5_1", d = {
72
74
  dialog: R,
73
75
  dialogErrorText: S
74
- }, G = (s) => {
76
+ }, I = (t) => {
75
77
  const {
76
- photoError: e,
78
+ photoError: r,
77
79
  onCloseErrorDialog: a,
78
- locale: t = f,
80
+ locale: s = u,
79
81
  className: n,
80
82
  ...l
81
- } = s;
82
- return /* @__PURE__ */ u(
83
- T,
83
+ } = t;
84
+ return /* @__PURE__ */ f(
85
+ x,
84
86
  {
85
- className: p(g.dialog, n),
87
+ className: p(d.dialog, n),
86
88
  onClose: a,
87
89
  ...l,
88
90
  children: [
89
- /* @__PURE__ */ r(C, { children: d[t].error }),
90
- /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(m, { className: p(g.dialogErrorText), children: e }) }),
91
- /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(w, { onClick: a, children: d[t].back }) })
91
+ /* @__PURE__ */ e(T, { children: m[s].error }),
92
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(g, { className: p(d.dialogErrorText), children: r }) }),
93
+ /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(w, { onClick: a, children: m[s].back }) })
92
94
  ]
93
95
  }
94
96
  );
95
97
  };
96
98
  export {
97
- G as ErrorUploadDialog
99
+ I as ErrorUploadDialog
98
100
  };