@hai-dev/ui-kit 1.0.2 → 1.0.3

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 (38) hide show
  1. package/dist/{Button-0AB7oP6Y.js → Button-DDlVTM6i.js} +3 -2
  2. package/dist/ButtonBase-CXGZ-DBC.js +1346 -0
  3. package/dist/{CircularProgress-BD6BPlN2.js → CircularProgress-CscJm1An.js} +9 -8
  4. package/dist/{DialogTitle-iOQ7wKEt.js → DialogTitle-KN1sayHD.js} +453 -555
  5. package/dist/assets/photo-list.css +1 -0
  6. package/dist/assets/upload-dialog.css +1 -1
  7. package/dist/components/button/button.js +1 -1
  8. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +87 -23
  9. package/dist/components/photo-crop-uploader/components/photo-list/constants.d.ts +1 -0
  10. package/dist/components/photo-crop-uploader/components/photo-list/constants.js +4 -0
  11. package/dist/components/photo-crop-uploader/components/photo-list/index.d.ts +1 -0
  12. package/dist/components/photo-crop-uploader/components/photo-list/index.js +4 -0
  13. package/dist/components/photo-crop-uploader/components/photo-list/photo-list.d.ts +3 -0
  14. package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +88 -0
  15. package/dist/components/photo-crop-uploader/components/photo-list/types.d.ts +8 -0
  16. package/dist/components/photo-crop-uploader/components/photo-list/types.js +1 -0
  17. package/dist/components/photo-crop-uploader/components/upload-button/types.d.ts +3 -1
  18. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +72 -62
  19. package/dist/components/photo-crop-uploader/components/upload-dialog/constants.d.ts +1 -0
  20. package/dist/components/photo-crop-uploader/components/upload-dialog/constants.js +4 -0
  21. package/dist/components/photo-crop-uploader/components/upload-dialog/types.d.ts +5 -2
  22. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +170 -136
  23. package/dist/components/photo-crop-uploader/constants.d.ts +3 -0
  24. package/dist/components/photo-crop-uploader/constants.js +36 -33
  25. package/dist/components/photo-crop-uploader/locale.js +8 -2
  26. package/dist/components/photo-crop-uploader/photo-crop-uploader.js +163 -112
  27. package/dist/components/photo-crop-uploader/types.d.ts +3 -1
  28. package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.d.ts +3 -0
  29. package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.js +32 -0
  30. package/dist/components/photo-crop-uploader/utils/get-photo-crop.d.ts +1 -1
  31. package/dist/components/photo-crop-uploader/utils/get-photo-crop.js +12 -12
  32. package/dist/components/photo-crop-uploader/utils/index.d.ts +1 -0
  33. package/dist/components/photo-crop-uploader/utils/index.js +4 -2
  34. package/dist/components/photo-crop-uploader/utils/read-photo.js +33 -30
  35. package/dist/createTheme-DSHGFfg6.js +4124 -0
  36. package/dist/extendSxProp-CzeED7BH.js +49 -0
  37. package/package.json +1 -1
  38. package/dist/ButtonBase-Bw_3RZmN.js +0 -5453
@@ -1,5 +1,6 @@
1
1
  import * as u from "react";
2
- import { p as N, a as U, g as E, u as V, s as k, c as j, b as f, d as z, h as D, k as I, P as t, f as F } from "./ButtonBase-Bw_3RZmN.js";
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 te(e) {
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 = N(e($)), r = a, s = 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 U("MuiCircularProgress", e);
48
+ return N("MuiCircularProgress", e);
48
49
  }
49
- E("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
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 = V({
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: j(p.root, i),
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
- te as u
290
+ se as u
290
291
  };