@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
@@ -1,39 +1,38 @@
1
- import { s as x, f as p, c as h, a as T, C as y, h as B, j as N, P as e } from "./createTheme-RvzX1VSA.js";
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-RRQUOQoF.js";
2
2
  import * as C from "react";
3
3
  import { jsx as b } from "react/jsx-runtime";
4
- import { u as g } from "./useTheme-CsjkCBFJ.js";
5
- import { e as j } from "./extendSxProp-BW9e6LtL.js";
6
- function v(n = {}) {
4
+ import { u as g, e as v } from "./extendSxProp-VC2-7DJw.js";
5
+ function E(n = {}) {
7
6
  const {
8
7
  themeId: t,
9
- defaultTheme: m,
8
+ defaultTheme: c,
10
9
  defaultClassName: a = "MuiBox-root",
11
10
  generateClassName: r
12
- } = n, c = x("div", {
11
+ } = n, m = i("div", {
13
12
  shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
14
13
  })(p);
15
- return /* @__PURE__ */ C.forwardRef(function(l, f) {
16
- const s = g(m), {
17
- className: d,
18
- component: i = "div",
19
- ...u
20
- } = j(l);
21
- return /* @__PURE__ */ b(c, {
22
- as: i,
23
- ref: f,
24
- className: h(d, r ? r(a) : a),
14
+ return /* @__PURE__ */ C.forwardRef(function(l, d) {
15
+ const s = g(c), {
16
+ className: f,
17
+ component: u = "div",
18
+ ...x
19
+ } = v(l);
20
+ return /* @__PURE__ */ b(m, {
21
+ as: u,
22
+ ref: d,
23
+ className: h(f, r ? r(a) : a),
25
24
  theme: t && s[t] || s,
26
- ...u
25
+ ...x
27
26
  });
28
27
  });
29
28
  }
30
- const E = T("MuiBox", ["root"]), O = N(), P = v({
29
+ const O = T("MuiBox", ["root"]), P = N(), j = E({
31
30
  themeId: B,
32
- defaultTheme: O,
33
- defaultClassName: E.root,
31
+ defaultTheme: P,
32
+ defaultClassName: O.root,
34
33
  generateClassName: y.generate
35
34
  });
36
- process.env.NODE_ENV !== "production" && (P.propTypes = {
35
+ process.env.NODE_ENV !== "production" && (j.propTypes = {
37
36
  // ┌────────────────────────────── Warning ──────────────────────────────┐
38
37
  // │ These PropTypes are generated from the TypeScript type definitions. │
39
38
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -53,5 +52,5 @@ process.env.NODE_ENV !== "production" && (P.propTypes = {
53
52
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
54
53
  });
55
54
  export {
56
- P as B
55
+ j as B
57
56
  };
@@ -1,11 +1,12 @@
1
1
  import * as y from "react";
2
- import { a as H, g as A, c as R, b as r, P as t } from "./createTheme-RvzX1VSA.js";
3
- import { d as q, u as J, s as f, c as K, r as Q } from "./chainPropTypes-KIxDwPzf.js";
4
- import { m as X, c as Y } from "./createSimplePaletteValueFilter-nb0wSOzC.js";
2
+ import { a as H, g as A, c as R, b as r, P as t } from "./createTheme-RRQUOQoF.js";
3
+ import { d as q, u as J, s as f, c as K, r as Q } from "./chainPropTypes-C04Ex8aP.js";
4
+ import { m as X } from "./memoTheme-5A7c_y33.js";
5
+ import { c as Y } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
6
  import { jsxs as Z, jsx as d } from "react/jsx-runtime";
6
7
  import { u as oo } from "./useId-CK6Kn3Tn.js";
7
- import { B as to } from "./ButtonBase-T2KH9jsD.js";
8
- import { C as no } from "./CircularProgress-BQQkuSse.js";
8
+ import { B as to } from "./ButtonBase-DPLf5-lz.js";
9
+ import { C as no } from "./CircularProgress-CrHaMZDC.js";
9
10
  function ao(o) {
10
11
  return A("MuiButton", o);
11
12
  }