@hai-dev/ui-kit 1.0.2 → 1.0.4
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/{Button-0AB7oP6Y.js → Button-DDlVTM6i.js} +3 -2
- package/dist/ButtonBase-CXGZ-DBC.js +1346 -0
- package/dist/{CircularProgress-BD6BPlN2.js → CircularProgress-CscJm1An.js} +9 -8
- package/dist/{DialogTitle-iOQ7wKEt.js → DialogTitle-KN1sayHD.js} +453 -555
- package/dist/assets/photo-list.css +1 -0
- package/dist/assets/upload-dialog.css +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +87 -23
- package/dist/components/photo-crop-uploader/components/photo-list/constants.d.ts +1 -0
- package/dist/components/photo-crop-uploader/components/photo-list/constants.js +4 -0
- package/dist/components/photo-crop-uploader/components/photo-list/index.d.ts +1 -0
- package/dist/components/photo-crop-uploader/components/photo-list/index.js +4 -0
- package/dist/components/photo-crop-uploader/components/photo-list/photo-list.d.ts +3 -0
- package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +88 -0
- package/dist/components/photo-crop-uploader/components/photo-list/types.d.ts +8 -0
- package/dist/components/photo-crop-uploader/components/photo-list/types.js +1 -0
- package/dist/components/photo-crop-uploader/components/upload-button/types.d.ts +3 -1
- package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +72 -62
- package/dist/components/photo-crop-uploader/components/upload-dialog/constants.d.ts +1 -0
- package/dist/components/photo-crop-uploader/components/upload-dialog/constants.js +4 -0
- package/dist/components/photo-crop-uploader/components/upload-dialog/types.d.ts +5 -2
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +170 -136
- package/dist/components/photo-crop-uploader/constants.d.ts +3 -0
- package/dist/components/photo-crop-uploader/constants.js +36 -33
- package/dist/components/photo-crop-uploader/locale.js +8 -2
- package/dist/components/photo-crop-uploader/photo-crop-uploader.js +163 -112
- package/dist/components/photo-crop-uploader/types.d.ts +3 -1
- package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.d.ts +3 -0
- package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.js +32 -0
- package/dist/components/photo-crop-uploader/utils/get-photo-crop.d.ts +1 -1
- package/dist/components/photo-crop-uploader/utils/get-photo-crop.js +12 -12
- package/dist/components/photo-crop-uploader/utils/index.d.ts +1 -0
- package/dist/components/photo-crop-uploader/utils/index.js +4 -2
- package/dist/components/photo-crop-uploader/utils/read-photo.js +33 -30
- package/dist/createTheme-DSHGFfg6.js +4124 -0
- package/dist/extendSxProp-CzeED7BH.js +49 -0
- package/package.json +1 -1
- package/dist/ButtonBase-Bw_3RZmN.js +0 -5453
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { g as N, a as U, b as E, e as f, P as t } from "./createTheme-DSHGFfg6.js";
|
|
3
|
+
import { p as V, u as j, s as k, c as z, d as D, k as I, b as F } from "./ButtonBase-CXGZ-DBC.js";
|
|
3
4
|
import { jsx as y } from "react/jsx-runtime";
|
|
4
5
|
let x = 0;
|
|
5
6
|
function A(e) {
|
|
@@ -11,7 +12,7 @@ function A(e) {
|
|
|
11
12
|
const G = {
|
|
12
13
|
...u
|
|
13
14
|
}, w = G.useId;
|
|
14
|
-
function
|
|
15
|
+
function se(e) {
|
|
15
16
|
if (w !== void 0) {
|
|
16
17
|
const r = w();
|
|
17
18
|
return e ?? r;
|
|
@@ -25,7 +26,7 @@ function K(e) {
|
|
|
25
26
|
let r, s;
|
|
26
27
|
return function(i) {
|
|
27
28
|
let a = r;
|
|
28
|
-
return (a === void 0 || i.theme !== s) && ($.theme = i.theme, a =
|
|
29
|
+
return (a === void 0 || i.theme !== s) && ($.theme = i.theme, a = V(e($)), r = a, s = i.theme), a;
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
const M = K;
|
|
@@ -44,9 +45,9 @@ function W(e = []) {
|
|
|
44
45
|
return ([, r]) => r && B(r, e);
|
|
45
46
|
}
|
|
46
47
|
function Y(e) {
|
|
47
|
-
return
|
|
48
|
+
return N("MuiCircularProgress", e);
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
+
U("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
50
51
|
const n = 44, g = I`
|
|
51
52
|
0% {
|
|
52
53
|
transform: rotate(0deg);
|
|
@@ -167,7 +168,7 @@ const n = 44, g = I`
|
|
|
167
168
|
}
|
|
168
169
|
}]
|
|
169
170
|
}))), X = /* @__PURE__ */ u.forwardRef(function(r, s) {
|
|
170
|
-
const o =
|
|
171
|
+
const o = j({
|
|
171
172
|
props: r,
|
|
172
173
|
name: "MuiCircularProgress"
|
|
173
174
|
}), {
|
|
@@ -194,7 +195,7 @@ const n = 44, g = I`
|
|
|
194
195
|
h.strokeDasharray = P.toFixed(3), C["aria-valuenow"] = Math.round(d), h.strokeDashoffset = `${((100 - d) / 100 * P).toFixed(3)}px`, S.transform = "rotate(-90deg)";
|
|
195
196
|
}
|
|
196
197
|
return /* @__PURE__ */ y(J, {
|
|
197
|
-
className:
|
|
198
|
+
className: E(p.root, i),
|
|
198
199
|
style: {
|
|
199
200
|
width: m,
|
|
200
201
|
height: m,
|
|
@@ -286,5 +287,5 @@ export {
|
|
|
286
287
|
X as C,
|
|
287
288
|
W as c,
|
|
288
289
|
M as m,
|
|
289
|
-
|
|
290
|
+
se as u
|
|
290
291
|
};
|