@hai-dev/ui-kit 1.1.11 → 1.2.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 (65) hide show
  1. package/dist/{Box-TrgOqpYk.js → Box-BgNAyP2L.js} +2 -2
  2. package/dist/{Button-BN3fv8kr.js → Button-DTV8ztWw.js} +5 -5
  3. package/dist/{ButtonBase-CSWuFxUv.js → ButtonBase-C4krg_zd.js} +3 -3
  4. package/dist/{CircularProgress-sPARyPfh.js → CircularProgress-BoaEg4rF.js} +3 -3
  5. package/dist/{Dialog-Cf0d7zi7.js → Dialog-BK9lMUKV.js} +12 -11
  6. package/dist/{DialogTitle-BtvmXSZP.js → DialogTitle-ByUfLB5M.js} +4 -4
  7. package/dist/{Typography-Bjd6ZHeX.js → Typography-BMyz0ZCh.js} +4 -4
  8. package/dist/assets/button.css +1 -1
  9. package/dist/assets/circular-progress-loader.css +1 -1
  10. package/dist/assets/code-input.css +1 -1
  11. package/dist/assets/error-upload-dialog.css +1 -1
  12. package/dist/assets/inter.css +1 -0
  13. package/dist/assets/photo-list.css +1 -1
  14. package/dist/assets/upload-dialog-errors.css +1 -1
  15. package/dist/button.module-C0UNQnBk.js +40 -0
  16. package/dist/chainPropTypes-DgqFdXGi.js +532 -0
  17. package/dist/components/button/button-content.js +11 -11
  18. package/dist/components/button/button.d.ts +18 -0
  19. package/dist/components/button/button.js +42 -35
  20. package/dist/components/button/constants.d.ts +17 -0
  21. package/dist/components/button/constants.js +28 -11
  22. package/dist/components/button/types.d.ts +11 -8
  23. package/dist/components/button/utils/get-button-classnames.d.ts +6 -0
  24. package/dist/components/button/utils/get-button-classnames.js +22 -10
  25. package/dist/components/circular-progress-loader/circular-progress-loader.js +14 -13
  26. package/dist/components/code-input/code-input.js +114 -112
  27. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +37 -34
  28. package/dist/components/photo-crop-uploader/components/error-upload-dialog/types.d.ts +2 -1
  29. package/dist/components/photo-crop-uploader/components/photo-list/constants.d.ts +5 -1
  30. package/dist/components/photo-crop-uploader/components/photo-list/constants.js +6 -2
  31. package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +136 -33
  32. package/dist/components/photo-crop-uploader/components/photo-list/types.d.ts +2 -0
  33. package/dist/components/photo-crop-uploader/components/photo-list/use-container-size.d.ts +4 -0
  34. package/dist/components/photo-crop-uploader/components/photo-list/use-container-size.js +22 -0
  35. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +1 -1
  36. package/dist/components/photo-crop-uploader/components/upload-dialog/constants.d.ts +1 -1
  37. package/dist/components/photo-crop-uploader/components/upload-dialog/constants.js +1 -1
  38. package/dist/components/photo-crop-uploader/components/upload-dialog/types.d.ts +2 -1
  39. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +4 -3
  40. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +159 -147
  41. package/dist/components/photo-crop-uploader/components/upload-dialog/use-scaled-min-dimension.d.ts +4 -0
  42. package/dist/components/photo-crop-uploader/components/upload-dialog/use-scaled-min-dimension.js +31 -0
  43. package/dist/components/photo-crop-uploader/locale.js +6 -2
  44. package/dist/components/photo-crop-uploader/photo-crop-uploader.js +131 -128
  45. package/dist/components/photo-crop-uploader/types.d.ts +2 -1
  46. package/dist/constants.d.ts +2 -0
  47. package/dist/constants.js +5 -3
  48. package/dist/{createTheme-D8R2Cz2N.js → createTheme-BoOmbNvy.js} +426 -390
  49. package/dist/{extendSxProp-Cw_ym9sl.js → extendSxProp-BaUCVMKV.js} +2 -1
  50. package/dist/{index-CL3JU48X.js → index-h5oTv8GF.js} +3 -3
  51. package/dist/index.d.ts +3 -3
  52. package/dist/index.js +26 -24
  53. package/dist/{memoTheme-D5VCpQCz.js → memoTheme-BYBJ2Fe6.js} +1 -1
  54. package/dist/refType-CsohaiiT.js +60 -0
  55. package/dist/types.d.ts +2 -1
  56. package/dist/{upload-dialog-errors-Cyz6_7n4.js → upload-dialog-errors-CCRxzIZp.js} +69 -67
  57. package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
  58. package/dist/utils/debounce.d.ts +5 -0
  59. package/dist/utils/debounce.js +12 -0
  60. package/dist/utils/index.d.ts +1 -0
  61. package/dist/utils/index.js +4 -0
  62. package/package.json +10 -2
  63. package/dist/button.module-BZPPmSAS.js +0 -21
  64. package/dist/chainPropTypes-DiJb1lGa.js +0 -568
  65. package/dist/refType-CUEs_vK5.js +0 -61
@@ -1 +1 @@
1
- ._photoList_rrp1z_1{display:flex;flex-direction:column;margin-left:12px}._photoList_rrp1z_1 ._item_rrp1z_6{width:80px;height:80px;border-radius:12px;background-color:#f2f3f5;display:flex;align-items:center;justify-content:center;text-align:center;color:#303030}._photoList_rrp1z_1 ._item_rrp1z_6._image_rrp1z_17{object-fit:cover;object-position:center}._photoList_rrp1z_1 ._item_rrp1z_6+._item_rrp1z_6{margin-top:16px}
1
+ ._photoList_1j5k1_1{display:flex;flex-direction:column;justify-content:center;gap:8px}._photoList_1j5k1_1 ._item_1j5k1_7{width:80px;height:80px;border-radius:12px;background-color:#3aa8ff1a;display:flex;align-items:center;justify-content:center;text-align:center;color:#3aa8ff;font-size:14px;line-height:150%;font-weight:500}._photoList_1j5k1_1 ._item_1j5k1_7._image_1j5k1_21{object-fit:cover;object-position:center}@media(max-width:767px){._photoList_1j5k1_1{flex-direction:row}._photoList_1j5k1_1 ._item_1j5k1_7{width:70px;height:70px}}
@@ -1 +1 @@
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}
1
+ ._dialog_1y4gd_1{font-family:inter}._dialog_1y4gd_1._dark_1y4gd_4 .MuiPaper-root{background-color:#191b28;color:#fff}._dialog_1y4gd_1._dark_1y4gd_4 .MuiPaper-root ._errorContent_1y4gd_8::-webkit-scrollbar{height:8px;width:8px}._dialog_1y4gd_1._dark_1y4gd_4 .MuiPaper-root ._errorContent_1y4gd_8::-webkit-scrollbar-track{background:#070e1d;border-radius:16px}._dialog_1y4gd_1._dark_1y4gd_4 .MuiPaper-root ._errorContent_1y4gd_8::-webkit-scrollbar-thumb{background-color:#ffffff24;border-radius:16px}._dialog_1y4gd_1 .MuiPaper-root{border-radius:24px;padding:48px;max-width:100%;max-height:100%;display:flex;flex-direction:column;overflow:hidden}._dialog_1y4gd_1 .MuiPaper-root::-webkit-scrollbar{height:8px;width:8px}._dialog_1y4gd_1 .MuiPaper-root::-webkit-scrollbar-track{background:#070e1d;border-radius:16px}._dialog_1y4gd_1 .MuiPaper-root::-webkit-scrollbar-thumb{background-color:#ffffff24;border-radius:16px}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8::-webkit-scrollbar{height:8px;width:8px}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8::-webkit-scrollbar-track{background:#070e1d;border-radius:16px}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8::-webkit-scrollbar-thumb{background-color:#ffffff24;border-radius:16px}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8{margin:32px 0 24px;display:flex;flex-direction:column;padding:0;gap:16px}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8 ._errorItem_1y4gd_60{font-size:22px;letter-spacing:0%;line-height:150%;font-weight:500;color:#e2402fe0}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8 ._errorItem_1y4gd_60 ._fileName_1y4gd_67{font-weight:700}._dialog_1y4gd_1 .MuiPaper-root ._topActions_1y4gd_70{position:absolute;right:0;top:0;padding:32px}._dialog_1y4gd_1 .MuiPaper-root ._topActions_1y4gd_70 ._close_1y4gd_76{width:40px;height:40px}._dialog_1y4gd_1 .MuiPaper-root ._topActions_1y4gd_70 ._close_1y4gd_76 img{width:22px;height:22px}._dialog_1y4gd_1 .MuiPaper-root ._botActions_1y4gd_84{padding:0;display:flex;justify-content:space-between;gap:8px}._dialog_1y4gd_1 .MuiPaper-root ._botActions_1y4gd_84 ._button_1y4gd_90{width:100%;text-transform:none;margin-left:0}._dialog_1y4gd_1 .MuiPaper-root ._title_1y4gd_95{padding:0;font-weight:600;font-size:32px;line-height:100%;margin-right:40px}._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102{max-height:100%;margin:32px 0 24px;padding:0;display:flex;flex:1;gap:12px;align-items:center;justify-content:center}._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102::-webkit-scrollbar{height:8px;width:8px}._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102::-webkit-scrollbar-track{background:#070e1d;border-radius:16px}._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102::-webkit-scrollbar-thumb{background-color:#ffffff24;border-radius:16px}._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102._many_1y4gd_124{justify-content:space-between;align-items:stretch}._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102 ._crop_1y4gd_128{max-height:670px;overflow:hidden}._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102 ._crop_1y4gd_128 .ReactCrop__child-wrapper,._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102 ._crop_1y4gd_128 .ReactCrop__crop-mask{border-radius:12px}@media(max-width:767px){._dialog_1y4gd_1 .MuiPaper-root{padding:24px;margin:12px}._dialog_1y4gd_1 .MuiPaper-root ._topActions_1y4gd_70{position:absolute;right:0;top:0;padding:24px}._dialog_1y4gd_1 .MuiPaper-root ._topActions_1y4gd_70 ._close_1y4gd_76{width:36px;height:36px}._dialog_1y4gd_1 .MuiPaper-root ._topActions_1y4gd_70 ._close_1y4gd_76 img{width:20px;height:20px}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8{margin:16px 0 12px;gap:8px}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8 ._errorItem_1y4gd_60{font-size:18px}._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102{flex-direction:column;margin:20px}._dialog_1y4gd_1 .MuiPaper-root ._botActions_1y4gd_84{flex-direction:column-reverse}._dialog_1y4gd_1 .MuiPaper-root ._title_1y4gd_95{font-size:20px;margin-right:36px}}._dialog_1y4gd_1 .MuiPaper-root ._dialogText_1y4gd_176{color:#e2402fe0}@media(max-width:575px){._dialog_1y4gd_1 .MuiPaper-root{padding:16px;margin:8px}._dialog_1y4gd_1 .MuiPaper-root ._content_1y4gd_102{margin:12px}._dialog_1y4gd_1 .MuiPaper-root ._topActions_1y4gd_70{position:absolute;right:0;top:0;padding:8px}._dialog_1y4gd_1 .MuiPaper-root ._topActions_1y4gd_70 ._close_1y4gd_76{width:32px;height:32px}._dialog_1y4gd_1 .MuiPaper-root ._topActions_1y4gd_70 ._close_1y4gd_76 img{width:18px;height:18px}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8{margin:8px 0;gap:4px}._dialog_1y4gd_1 .MuiPaper-root ._errorContent_1y4gd_8 ._errorItem_1y4gd_60{font-size:16px}._dialog_1y4gd_1 .MuiPaper-root ._title_1y4gd_95{font-size:16px;margin-right:32px}}
@@ -0,0 +1,40 @@
1
+ import './assets/button.css';const i = "_button_1idvi_1", t = "_startContent_1idvi_9", _ = "_text_1idvi_16", e = "_endContent_1idvi_19", n = "_link_1idvi_26", d = "_description_1idvi_35", s = "_withDescription_1idvi_50", r = "_specific_1idvi_53", l = "_medium_1idvi_70", o = "_smallMedium_1idvi_83", a = "_small_1idvi_83", c = "_smaller_1idvi_107", v = "_smallest_1idvi_119", u = "_tiny_1idvi_131", m = "_filled_1idvi_143", g = "_white_1idvi_143", k = "_dark_1idvi_153", p = "_darkerBlue_1idvi_163", h = "_blue_1idvi_170", f = "_red_1idvi_177", y = "_lightRed_1idvi_184", b = "_gray_1idvi_188", G = "_darkGray_1idvi_192", x = "_lightGray_1idvi_196", w = "_darkBlue_1idvi_200", B = "_lightGreen_1idvi_207", C = "_green_1idvi_211", T = "_orange_1idvi_215", D = "_darkOrange_1idvi_219", M = "_outlined_1idvi_223", O = "_disabled_1idvi_313", R = "_noTextTransform_1idvi_316", S = "_uppercase_1idvi_319", j = "_leftSide_1idvi_322", q = {
2
+ button: i,
3
+ startContent: t,
4
+ text: _,
5
+ endContent: e,
6
+ link: n,
7
+ description: d,
8
+ withDescription: s,
9
+ specific: r,
10
+ default: "_default_1idvi_57",
11
+ medium: l,
12
+ smallMedium: o,
13
+ small: a,
14
+ smaller: c,
15
+ smallest: v,
16
+ tiny: u,
17
+ filled: m,
18
+ white: g,
19
+ dark: k,
20
+ darkerBlue: p,
21
+ blue: h,
22
+ red: f,
23
+ lightRed: y,
24
+ gray: b,
25
+ darkGray: G,
26
+ lightGray: x,
27
+ darkBlue: w,
28
+ lightGreen: B,
29
+ green: C,
30
+ orange: T,
31
+ darkOrange: D,
32
+ outlined: M,
33
+ disabled: O,
34
+ noTextTransform: R,
35
+ uppercase: S,
36
+ leftSide: j
37
+ };
38
+ export {
39
+ q as s
40
+ };
@@ -0,0 +1,532 @@
1
+ import { m as ae, w as _e, f as Re, u as K, n as be, o as xe, E as $e, p as Ae, q as B, k as M, t as ge, s as Ce, h as we, d as Z, i as Oe, b as Me, r as Q, P as z, e as Fe, T as Ne } from "./createTheme-BoOmbNvy.js";
2
+ import * as I from "react";
3
+ import "react/jsx-runtime";
4
+ var V = { exports: {} }, f = {};
5
+ var ee;
6
+ function Ie() {
7
+ if (ee) return f;
8
+ ee = 1;
9
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, v = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, T = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, P = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, h = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, _ = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, g = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, R = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
10
+ function p(r) {
11
+ if (typeof r == "object" && r !== null) {
12
+ var y = r.$$typeof;
13
+ switch (y) {
14
+ case t:
15
+ switch (r = r.type, r) {
16
+ case v:
17
+ case d:
18
+ case o:
19
+ case u:
20
+ case i:
21
+ case T:
22
+ return r;
23
+ default:
24
+ switch (r = r && r.$$typeof, r) {
25
+ case c:
26
+ case m:
27
+ case h:
28
+ case P:
29
+ case a:
30
+ return r;
31
+ default:
32
+ return y;
33
+ }
34
+ }
35
+ case n:
36
+ return y;
37
+ }
38
+ }
39
+ }
40
+ function S(r) {
41
+ return p(r) === d;
42
+ }
43
+ return f.AsyncMode = v, f.ConcurrentMode = d, f.ContextConsumer = c, f.ContextProvider = a, f.Element = t, f.ForwardRef = m, f.Fragment = o, f.Lazy = h, f.Memo = P, f.Portal = n, f.Profiler = u, f.StrictMode = i, f.Suspense = T, f.isAsyncMode = function(r) {
44
+ return S(r) || p(r) === v;
45
+ }, f.isConcurrentMode = S, f.isContextConsumer = function(r) {
46
+ return p(r) === c;
47
+ }, f.isContextProvider = function(r) {
48
+ return p(r) === a;
49
+ }, f.isElement = function(r) {
50
+ return typeof r == "object" && r !== null && r.$$typeof === t;
51
+ }, f.isForwardRef = function(r) {
52
+ return p(r) === m;
53
+ }, f.isFragment = function(r) {
54
+ return p(r) === o;
55
+ }, f.isLazy = function(r) {
56
+ return p(r) === h;
57
+ }, f.isMemo = function(r) {
58
+ return p(r) === P;
59
+ }, f.isPortal = function(r) {
60
+ return p(r) === n;
61
+ }, f.isProfiler = function(r) {
62
+ return p(r) === u;
63
+ }, f.isStrictMode = function(r) {
64
+ return p(r) === i;
65
+ }, f.isSuspense = function(r) {
66
+ return p(r) === T;
67
+ }, f.isValidElementType = function(r) {
68
+ return typeof r == "string" || typeof r == "function" || r === o || r === d || r === u || r === i || r === T || r === w || typeof r == "object" && r !== null && (r.$$typeof === h || r.$$typeof === P || r.$$typeof === a || r.$$typeof === c || r.$$typeof === m || r.$$typeof === g || r.$$typeof === C || r.$$typeof === R || r.$$typeof === _);
69
+ }, f.typeOf = p, f;
70
+ }
71
+ var l = {};
72
+ var te;
73
+ function De() {
74
+ return te || (te = 1, process.env.NODE_ENV !== "production" && (function() {
75
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, v = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, T = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, P = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, h = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, _ = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, g = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, R = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
76
+ function p(s) {
77
+ return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
78
+ s === o || s === d || s === u || s === i || s === T || s === w || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === P || s.$$typeof === a || s.$$typeof === c || s.$$typeof === m || s.$$typeof === g || s.$$typeof === C || s.$$typeof === R || s.$$typeof === _);
79
+ }
80
+ function S(s) {
81
+ if (typeof s == "object" && s !== null) {
82
+ var k = s.$$typeof;
83
+ switch (k) {
84
+ case t:
85
+ var j = s.type;
86
+ switch (j) {
87
+ case v:
88
+ case d:
89
+ case o:
90
+ case u:
91
+ case i:
92
+ case T:
93
+ return j;
94
+ default:
95
+ var G = j && j.$$typeof;
96
+ switch (G) {
97
+ case c:
98
+ case m:
99
+ case h:
100
+ case P:
101
+ case a:
102
+ return G;
103
+ default:
104
+ return k;
105
+ }
106
+ }
107
+ case n:
108
+ return k;
109
+ }
110
+ }
111
+ }
112
+ var r = v, y = d, E = c, A = a, $ = t, W = m, D = o, F = h, b = P, N = n, x = u, L = i, Y = T, X = !1;
113
+ function fe(s) {
114
+ return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), J(s) || S(s) === v;
115
+ }
116
+ function J(s) {
117
+ return S(s) === d;
118
+ }
119
+ function le(s) {
120
+ return S(s) === c;
121
+ }
122
+ function de(s) {
123
+ return S(s) === a;
124
+ }
125
+ function ye(s) {
126
+ return typeof s == "object" && s !== null && s.$$typeof === t;
127
+ }
128
+ function me(s) {
129
+ return S(s) === m;
130
+ }
131
+ function pe(s) {
132
+ return S(s) === o;
133
+ }
134
+ function ve(s) {
135
+ return S(s) === h;
136
+ }
137
+ function Se(s) {
138
+ return S(s) === P;
139
+ }
140
+ function he(s) {
141
+ return S(s) === n;
142
+ }
143
+ function Ee(s) {
144
+ return S(s) === u;
145
+ }
146
+ function Pe(s) {
147
+ return S(s) === i;
148
+ }
149
+ function Te(s) {
150
+ return S(s) === T;
151
+ }
152
+ l.AsyncMode = r, l.ConcurrentMode = y, l.ContextConsumer = E, l.ContextProvider = A, l.Element = $, l.ForwardRef = W, l.Fragment = D, l.Lazy = F, l.Memo = b, l.Portal = N, l.Profiler = x, l.StrictMode = L, l.Suspense = Y, l.isAsyncMode = fe, l.isConcurrentMode = J, l.isContextConsumer = le, l.isContextProvider = de, l.isElement = ye, l.isForwardRef = me, l.isFragment = pe, l.isLazy = ve, l.isMemo = Se, l.isPortal = he, l.isProfiler = Ee, l.isStrictMode = Pe, l.isSuspense = Te, l.isValidElementType = p, l.typeOf = S;
153
+ })()), l;
154
+ }
155
+ var re;
156
+ function Le() {
157
+ return re || (re = 1, process.env.NODE_ENV === "production" ? V.exports = Ie() : V.exports = De()), V.exports;
158
+ }
159
+ var H, ne;
160
+ function Ye() {
161
+ if (ne) return H;
162
+ ne = 1;
163
+ var e = Le(), t = {
164
+ childContextTypes: !0,
165
+ contextType: !0,
166
+ contextTypes: !0,
167
+ defaultProps: !0,
168
+ displayName: !0,
169
+ getDefaultProps: !0,
170
+ getDerivedStateFromError: !0,
171
+ getDerivedStateFromProps: !0,
172
+ mixins: !0,
173
+ propTypes: !0,
174
+ type: !0
175
+ }, n = {
176
+ name: !0,
177
+ length: !0,
178
+ prototype: !0,
179
+ caller: !0,
180
+ callee: !0,
181
+ arguments: !0,
182
+ arity: !0
183
+ }, o = {
184
+ $$typeof: !0,
185
+ render: !0,
186
+ defaultProps: !0,
187
+ displayName: !0,
188
+ propTypes: !0
189
+ }, i = {
190
+ $$typeof: !0,
191
+ compare: !0,
192
+ defaultProps: !0,
193
+ displayName: !0,
194
+ propTypes: !0,
195
+ type: !0
196
+ }, u = {};
197
+ u[e.ForwardRef] = o, u[e.Memo] = i;
198
+ function a(h) {
199
+ return e.isMemo(h) ? i : u[h.$$typeof] || t;
200
+ }
201
+ var c = Object.defineProperty, v = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, m = Object.getOwnPropertyDescriptor, T = Object.getPrototypeOf, w = Object.prototype;
202
+ function P(h, _, g) {
203
+ if (typeof _ != "string") {
204
+ if (w) {
205
+ var C = T(_);
206
+ C && C !== w && P(h, C, g);
207
+ }
208
+ var R = v(_);
209
+ d && (R = R.concat(d(_)));
210
+ for (var p = a(h), S = a(_), r = 0; r < R.length; ++r) {
211
+ var y = R[r];
212
+ if (!n[y] && !(g && g[y]) && !(S && S[y]) && !(p && p[y])) {
213
+ var E = m(_, y);
214
+ try {
215
+ c(h, y, E);
216
+ } catch {
217
+ }
218
+ }
219
+ }
220
+ }
221
+ return h;
222
+ }
223
+ return H = P, H;
224
+ }
225
+ Ye();
226
+ var oe = function(t, n) {
227
+ var o = arguments;
228
+ if (n == null || !xe.call(n, "css"))
229
+ return I.createElement.apply(void 0, o);
230
+ var i = o.length, u = new Array(i);
231
+ u[0] = $e, u[1] = Ae(t, n);
232
+ for (var a = 2; a < i; a++)
233
+ u[a] = o[a];
234
+ return I.createElement.apply(null, u);
235
+ };
236
+ (function(e) {
237
+ var t;
238
+ t || (t = e.JSX || (e.JSX = {}));
239
+ })(oe || (oe = {}));
240
+ var ot = /* @__PURE__ */ _e(function(e, t) {
241
+ var n = e.styles, o = ae([n], void 0, I.useContext(Re)), i = I.useRef();
242
+ return K(function() {
243
+ var u = t.key + "-global", a = new t.sheet.constructor({
244
+ key: u,
245
+ nonce: t.sheet.nonce,
246
+ container: t.sheet.container,
247
+ speedy: t.sheet.isSpeedy
248
+ }), c = !1, v = document.querySelector('style[data-emotion="' + u + " " + o.name + '"]');
249
+ return t.sheet.tags.length && (a.before = t.sheet.tags[0]), v !== null && (c = !0, v.setAttribute("data-emotion", u), a.hydrate([v])), i.current = [a, c], function() {
250
+ a.flush();
251
+ };
252
+ }, [t]), K(function() {
253
+ var u = i.current, a = u[0], c = u[1];
254
+ if (c) {
255
+ u[1] = !1;
256
+ return;
257
+ }
258
+ if (o.next !== void 0 && be(t, o.next, !0), a.tags.length) {
259
+ var v = a.tags[a.tags.length - 1].nextElementSibling;
260
+ a.before = v, a.flush();
261
+ }
262
+ t.insert("", o, a, !1);
263
+ }, [t, o.name]), null;
264
+ });
265
+ function je() {
266
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
267
+ t[n] = arguments[n];
268
+ return ae(t);
269
+ }
270
+ function st() {
271
+ var e = je.apply(void 0, arguments), t = "animation-" + e.name;
272
+ return {
273
+ name: t,
274
+ styles: "@keyframes " + t + "{" + e.styles + "}",
275
+ anim: 1,
276
+ toString: function() {
277
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
278
+ }
279
+ };
280
+ }
281
+ function ie(e, t = "") {
282
+ return e.displayName || e.name || t;
283
+ }
284
+ function se(e, t, n) {
285
+ const o = ie(t);
286
+ return e.displayName || (o !== "" ? `${n}(${o})` : n);
287
+ }
288
+ function Ve(e) {
289
+ if (e != null) {
290
+ if (typeof e == "string")
291
+ return e;
292
+ if (typeof e == "function")
293
+ return ie(e, "Component");
294
+ if (typeof e == "object")
295
+ switch (e.$$typeof) {
296
+ case B.ForwardRef:
297
+ return se(e, e.render, "ForwardRef");
298
+ case B.Memo:
299
+ return se(e, e.type, "memo");
300
+ default:
301
+ return;
302
+ }
303
+ }
304
+ }
305
+ function qe(e) {
306
+ const {
307
+ variants: t,
308
+ ...n
309
+ } = e, o = {
310
+ variants: t,
311
+ style: M(n),
312
+ isProcessed: !0
313
+ };
314
+ return o.style === n || t && t.forEach((i) => {
315
+ typeof i.style != "function" && (i.style = M(i.style));
316
+ }), o;
317
+ }
318
+ const ze = we();
319
+ function U(e) {
320
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
321
+ }
322
+ function O(e, t) {
323
+ return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
324
+ }
325
+ function We(e) {
326
+ return e ? (t, n) => n[e] : null;
327
+ }
328
+ function ke(e, t, n) {
329
+ e.theme = Je(e.theme) ? n : e.theme[t] || e.theme;
330
+ }
331
+ function q(e, t, n) {
332
+ const o = typeof t == "function" ? t(e) : t;
333
+ if (Array.isArray(o))
334
+ return o.flatMap((i) => q(e, i, n));
335
+ if (Array.isArray(o?.variants)) {
336
+ let i;
337
+ if (o.isProcessed)
338
+ i = n ? O(o.style, n) : o.style;
339
+ else {
340
+ const {
341
+ variants: u,
342
+ ...a
343
+ } = o;
344
+ i = n ? O(M(a), n) : a;
345
+ }
346
+ return ue(e, o.variants, [i], n);
347
+ }
348
+ return o?.isProcessed ? n ? O(M(o.style), n) : o.style : n ? O(M(o), n) : o;
349
+ }
350
+ function ue(e, t, n = [], o = void 0) {
351
+ let i;
352
+ e: for (let u = 0; u < t.length; u += 1) {
353
+ const a = t[u];
354
+ if (typeof a.props == "function") {
355
+ if (i ??= {
356
+ ...e,
357
+ ...e.ownerState,
358
+ ownerState: e.ownerState
359
+ }, !a.props(i))
360
+ continue;
361
+ } else
362
+ for (const c in a.props)
363
+ if (e[c] !== a.props[c] && e.ownerState?.[c] !== a.props[c])
364
+ continue e;
365
+ typeof a.style == "function" ? (i ??= {
366
+ ...e,
367
+ ...e.ownerState,
368
+ ownerState: e.ownerState
369
+ }, n.push(o ? O(M(a.style(i)), o) : a.style(i))) : n.push(o ? O(M(a.style), o) : a.style);
370
+ }
371
+ return n;
372
+ }
373
+ function He(e = {}) {
374
+ const {
375
+ themeId: t,
376
+ defaultTheme: n = ze,
377
+ rootShouldForwardProp: o = U,
378
+ slotShouldForwardProp: i = U
379
+ } = e;
380
+ function u(c) {
381
+ ke(c, t, n);
382
+ }
383
+ return (c, v = {}) => {
384
+ ge(c, (y) => y.filter((E) => E !== Z));
385
+ const {
386
+ name: d,
387
+ slot: m,
388
+ skipVariantsResolver: T,
389
+ skipSx: w,
390
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
391
+ // For more details: https://github.com/mui/material-ui/pull/37908
392
+ overridesResolver: P = We(ce(m)),
393
+ ...h
394
+ } = v, _ = d && d.startsWith("Mui") || m ? "components" : "custom", g = T !== void 0 ? T : (
395
+ // TODO v6: remove `Root` in the next major release
396
+ // For more details: https://github.com/mui/material-ui/pull/37908
397
+ m && m !== "Root" && m !== "root" || !1
398
+ ), C = w || !1;
399
+ let R = U;
400
+ m === "Root" || m === "root" ? R = o : m ? R = i : Ge(c) && (R = void 0);
401
+ const p = Ce(c, {
402
+ shouldForwardProp: R,
403
+ label: Xe(d, m),
404
+ ...h
405
+ }), S = (y) => {
406
+ if (y.__emotion_real === y)
407
+ return y;
408
+ if (typeof y == "function")
409
+ return function(A) {
410
+ return q(A, y, A.theme.modularCssLayers ? _ : void 0);
411
+ };
412
+ if (Oe(y)) {
413
+ const E = qe(y);
414
+ return function($) {
415
+ return E.variants ? q($, E, $.theme.modularCssLayers ? _ : void 0) : $.theme.modularCssLayers ? O(E.style, _) : E.style;
416
+ };
417
+ }
418
+ return y;
419
+ }, r = (...y) => {
420
+ const E = [], A = y.map(S), $ = [];
421
+ if (E.push(u), d && P && $.push(function(b) {
422
+ const x = b.theme.components?.[d]?.styleOverrides;
423
+ if (!x)
424
+ return null;
425
+ const L = {};
426
+ for (const Y in x)
427
+ L[Y] = q(b, x[Y], b.theme.modularCssLayers ? "theme" : void 0);
428
+ return P(b, L);
429
+ }), d && !g && $.push(function(b) {
430
+ const x = b.theme?.components?.[d]?.variants;
431
+ return x ? ue(b, x, [], b.theme.modularCssLayers ? "theme" : void 0) : null;
432
+ }), C || $.push(Z), Array.isArray(A[0])) {
433
+ const F = A.shift(), b = new Array(E.length).fill(""), N = new Array($.length).fill("");
434
+ let x;
435
+ x = [...b, ...F, ...N], x.raw = [...b, ...F.raw, ...N], E.unshift(x);
436
+ }
437
+ const W = [...E, ...A, ...$], D = p(...W);
438
+ return c.muiName && (D.muiName = c.muiName), process.env.NODE_ENV !== "production" && (D.displayName = Ue(d, m, c)), D;
439
+ };
440
+ return p.withConfig && (r.withConfig = p.withConfig), r;
441
+ };
442
+ }
443
+ function Ue(e, t, n) {
444
+ return e ? `${e}${Me(t || "")}` : `Styled(${Ve(n)})`;
445
+ }
446
+ function Xe(e, t) {
447
+ let n;
448
+ return process.env.NODE_ENV !== "production" && e && (n = `${e}-${ce(t || "Root")}`), n;
449
+ }
450
+ function Je(e) {
451
+ for (const t in e)
452
+ return !1;
453
+ return !0;
454
+ }
455
+ function Ge(e) {
456
+ return typeof e == "string" && // 96 is one less than the char code
457
+ // for "a" so this is checking that
458
+ // it's a lowercase character
459
+ e.charCodeAt(0) > 96;
460
+ }
461
+ function ce(e) {
462
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
463
+ }
464
+ const Ke = /* @__PURE__ */ I.createContext(void 0);
465
+ process.env.NODE_ENV !== "production" && (z.node, z.object);
466
+ function Be(e) {
467
+ const {
468
+ theme: t,
469
+ name: n,
470
+ props: o
471
+ } = e;
472
+ if (!t || !t.components || !t.components[n])
473
+ return o;
474
+ const i = t.components[n];
475
+ return i.defaultProps ? Q(i.defaultProps, o, t.components.mergeClassNameAndStyle) : !i.styleOverrides && !i.variants ? Q(i, o, t.components.mergeClassNameAndStyle) : o;
476
+ }
477
+ function Ze({
478
+ props: e,
479
+ name: t
480
+ }) {
481
+ const n = I.useContext(Ke);
482
+ return Be({
483
+ props: e,
484
+ name: t,
485
+ theme: {
486
+ components: n
487
+ }
488
+ });
489
+ }
490
+ function at(e, t, n = void 0) {
491
+ const o = {};
492
+ for (const i in e) {
493
+ const u = e[i];
494
+ let a = "", c = !0;
495
+ for (let v = 0; v < u.length; v += 1) {
496
+ const d = u[v];
497
+ d && (a += (c === !0 ? "" : " ") + t(d), c = !1, n && n[d] && (a += " " + n[d]));
498
+ }
499
+ o[i] = a;
500
+ }
501
+ return o;
502
+ }
503
+ const Qe = Fe();
504
+ function et(e) {
505
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
506
+ }
507
+ const tt = (e) => et(e) && e !== "classes", it = He({
508
+ themeId: Ne,
509
+ defaultTheme: Qe,
510
+ rootShouldForwardProp: tt
511
+ });
512
+ process.env.NODE_ENV !== "production" && (z.node, z.object.isRequired);
513
+ function ut(e) {
514
+ return Ze(e);
515
+ }
516
+ function ct(e, t) {
517
+ return process.env.NODE_ENV === "production" ? () => null : function(...o) {
518
+ return e(...o) || t(...o);
519
+ };
520
+ }
521
+ export {
522
+ ot as G,
523
+ je as a,
524
+ ct as b,
525
+ at as c,
526
+ Qe as d,
527
+ st as k,
528
+ qe as p,
529
+ tt as r,
530
+ it as s,
531
+ ut as u
532
+ };
@@ -1,15 +1,15 @@
1
- import { jsxs as a, Fragment as d, jsx as n } from "react/jsx-runtime";
2
- import { c as s } from "../../index-YnD2EP-S.js";
3
- import { s as t } from "../../button.module-BZPPmSAS.js";
4
- const h = (c) => {
5
- const { children: i, description: e, startContent: r, endContent: o } = c;
6
- return /* @__PURE__ */ a(d, { children: [
7
- /* @__PURE__ */ a("div", { className: s(t.text, e && t.withDescription), children: [
8
- r && /* @__PURE__ */ n("span", { className: s(t.startContent), children: r }),
9
- /* @__PURE__ */ n("span", { children: i }),
10
- o && /* @__PURE__ */ n("span", { className: s(t.endContent), children: o })
1
+ import { jsxs as r, Fragment as p, jsx as s } from "react/jsx-runtime";
2
+ import { c as n } from "../../index-YnD2EP-S.js";
3
+ import { s as t } from "../../button.module-C0UNQnBk.js";
4
+ const h = (a) => {
5
+ const { children: o, description: e, startContent: c, endContent: i } = a;
6
+ return /* @__PURE__ */ r(p, { children: [
7
+ /* @__PURE__ */ r("div", { className: n(t.text, e && t.withDescription), children: [
8
+ c && /* @__PURE__ */ s("span", { className: n(t.startContent, t.specific), children: c }),
9
+ /* @__PURE__ */ s("span", { className: t.text, children: o }),
10
+ i && /* @__PURE__ */ s("span", { className: n(t.endContent, t.specific), children: i })
11
11
  ] }),
12
- /* @__PURE__ */ n("span", { className: s(t.description), children: e })
12
+ /* @__PURE__ */ s("span", { className: n(t.description), children: e })
13
13
  ] });
14
14
  };
15
15
  export {
@@ -1,3 +1,21 @@
1
1
  import { FC } from 'react';
2
2
  import { ButtonProps } from './types';
3
+ /**
4
+ * Компонент кнопки
5
+ *
6
+ * @param {ButtonProps} props
7
+ * @param {import('./types').ButtonColor} props.buttonColor - Цвет кнопки (white/gray/blue)
8
+ * @param {import('./types').ButtonSize} props.buttonSize - Размер кнопки (default/small)
9
+ * @param {import('./types').ButtonVariant} props.buttonVariant - Вариант кнопки (filled/outlined/text)
10
+ * @param {boolean} props.isLink - Если true, то кнопка представляет собой ссылку
11
+ * @param {string} props.href - Адрес ссылки
12
+ * @param {string} props.description - Дополнительный текст в кнопке
13
+ * @param {import('react').ReactNode} props.children - Основной контент в кнопке
14
+ * @param {import('./types').ButtonWidth} props.minWidth - Минимальная длина кнопки
15
+ * @param {import('./types').ButtonWeight} props.buttonWeight - Ширина текста в кнопке (500/600/700)
16
+ * @param {import('react').ReactNode} props.startContent - Элемент перед основным контентом кнопки
17
+ * @param {import('react').ReactNode} props.endContent - Элемент после основного контента кнопки
18
+ * @param {boolean} props.leftSide - Если true, текст будет позиционироваться слева
19
+ * @returns {import('react').JSX.Element}
20
+ */
3
21
  export declare const Button: FC<ButtonProps>;