@hai-dev/ui-kit 1.0.1 → 1.0.2

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.
@@ -1 +1 @@
1
- ._dialog_ujd1k_1 .MuiPaper-root{border-radius:24px;padding:48px;max-width:100%}._dialog_ujd1k_1 .MuiPaper-root ._topActions_ujd1k_6{position:absolute;right:0;top:0;padding:32px}._dialog_ujd1k_1 .MuiPaper-root ._topActions_ujd1k_6 ._close_ujd1k_12{width:40px;height:40px}._dialog_ujd1k_1 .MuiPaper-root ._botActions_ujd1k_16{padding:0}._dialog_ujd1k_1 .MuiPaper-root ._title_ujd1k_19{padding:0;font-weight:600;font-size:32px;line-height:100%}._dialog_ujd1k_1 .MuiPaper-root ._content_ujd1k_25{margin:32px 0 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:718px}._dialog_ujd1k_1 .MuiPaper-root ._content_ujd1k_25 ._crop_ujd1k_33{max-height:670px}._dialog_ujd1k_1 .MuiPaper-root ._content_ujd1k_25 ._crop_ujd1k_33 .ReactCrop__child-wrapper,._dialog_ujd1k_1 .MuiPaper-root ._content_ujd1k_25 ._crop_ujd1k_33 .ReactCrop__crop-mask{border-radius:12px}._dialog_ujd1k_1 .MuiPaper-root ._dialogText_ujd1k_42{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
+ ._dialog_wdj3q_1 .MuiPaper-root{border-radius:24px;padding:48px;max-width:100%}._dialog_wdj3q_1 .MuiPaper-root ._topActions_wdj3q_6{position:absolute;right:0;top:0;padding:32px}._dialog_wdj3q_1 .MuiPaper-root ._topActions_wdj3q_6 ._close_wdj3q_12{width:40px;height:40px}._dialog_wdj3q_1 .MuiPaper-root ._botActions_wdj3q_16{padding:0}._dialog_wdj3q_1 .MuiPaper-root ._botActions_wdj3q_16 ._button_wdj3q_19{text-transform:none}._dialog_wdj3q_1 .MuiPaper-root ._title_wdj3q_22{padding:0;font-weight:600;font-size:32px;line-height:100%}._dialog_wdj3q_1 .MuiPaper-root ._content_wdj3q_28{margin:32px 0 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:718px}._dialog_wdj3q_1 .MuiPaper-root ._content_wdj3q_28 ._crop_wdj3q_36{max-height:670px}._dialog_wdj3q_1 .MuiPaper-root ._content_wdj3q_28 ._crop_wdj3q_36 .ReactCrop__child-wrapper,._dialog_wdj3q_1 .MuiPaper-root ._content_wdj3q_28 ._crop_wdj3q_36 .ReactCrop__crop-mask{border-radius:12px}._dialog_wdj3q_1 .MuiPaper-root ._dialogText_wdj3q_45{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,18 +1,18 @@
1
- import { jsxs as T, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as B, jsx as n } from "react/jsx-runtime";
2
2
  import { S as j } from "../../../../index-BiffjjQq.js";
3
- import { c as r } from "../../../../index-B2JRaoNz.js";
3
+ import { c as i } from "../../../../index-B2JRaoNz.js";
4
4
  import { localizedText as b } from "../../locale.js";
5
- import { EN_LOCALE as w } from "../../../../constants.js";
6
- import { DEFAULT_MIN_DIMENSION as O, DEFAULT_ASPECT_RATIO as D } from "../../constants.js";
7
- import { D as P, d as z, a as E, b as M, c as U } from "../../../../DialogTitle-iOQ7wKEt.js";
8
- import * as x from "react";
9
- import { g as $, a as F, u as W, s as A, c as V, b as g, d as H, B as Y, P as t, f as Z } from "../../../../ButtonBase-Bw_3RZmN.js";
10
- import { u as q, m as N, c as R, C as G } from "../../../../CircularProgress-BD6BPlN2.js";
5
+ import { EN_LOCALE as O } from "../../../../constants.js";
6
+ import { DEFAULT_MIN_DIMENSION as D, DEFAULT_ASPECT_RATIO as P } from "../../constants.js";
7
+ import { D as E, d as N, a as k, b as M, c as q } from "../../../../DialogTitle-iOQ7wKEt.js";
8
+ import * as T from "react";
9
+ import { g as U, a as W, u as $, s as A, c as F, b as g, d as V, B as H, P as t, f as Y } from "../../../../ButtonBase-Bw_3RZmN.js";
10
+ import { u as Z, m as z, c as R, C as G } from "../../../../CircularProgress-BD6BPlN2.js";
11
11
  import { Button as J } from "../../../button/button.js";
12
12
  import '../../../../assets/upload-dialog.css';function K(o) {
13
- return F("MuiIconButton", o);
13
+ return W("MuiIconButton", o);
14
14
  }
15
- const L = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), Q = (o) => {
15
+ const L = U("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), Q = (o) => {
16
16
  const {
17
17
  classes: e,
18
18
  disabled: a,
@@ -25,8 +25,8 @@ const L = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
25
25
  loadingIndicator: ["loadingIndicator"],
26
26
  loadingWrapper: ["loadingWrapper"]
27
27
  };
28
- return H(p, K, e);
29
- }, X = A(Y, {
28
+ return V(p, K, e);
29
+ }, X = A(H, {
30
30
  name: "MuiIconButton",
31
31
  slot: "Root",
32
32
  overridesResolver: (o, e) => {
@@ -35,7 +35,7 @@ const L = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
35
35
  } = o;
36
36
  return [e.root, a.loading && e.loading, a.color !== "default" && e[`color${g(a.color)}`], a.edge && e[`edge${g(a.edge)}`], e[`size${g(a.size)}`]];
37
37
  }
38
- })(N(({
38
+ })(z(({
39
39
  theme: o
40
40
  }) => ({
41
41
  textAlign: "center",
@@ -90,7 +90,7 @@ const L = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
90
90
  marginRight: -3
91
91
  }
92
92
  }]
93
- })), N(({
93
+ })), z(({
94
94
  theme: o
95
95
  }) => ({
96
96
  variants: [{
@@ -159,8 +159,8 @@ const L = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
159
159
  display: "flex"
160
160
  }
161
161
  }]
162
- })), S = /* @__PURE__ */ x.forwardRef(function(e, a) {
163
- const l = W({
162
+ })), S = /* @__PURE__ */ T.forwardRef(function(e, a) {
163
+ const l = $({
164
164
  props: e,
165
165
  name: "MuiIconButton"
166
166
  }), {
@@ -168,46 +168,46 @@ const L = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
168
168
  children: u,
169
169
  className: m,
170
170
  color: p = "default",
171
- disabled: y = !1,
171
+ disabled: h = !1,
172
172
  disableFocusRipple: f = !1,
173
173
  size: C = "medium",
174
- id: i,
174
+ id: s,
175
175
  loading: c = null,
176
176
  loadingIndicator: v,
177
177
  ...I
178
- } = l, h = q(i), k = v ?? /* @__PURE__ */ n(G, {
179
- "aria-labelledby": h,
178
+ } = l, y = Z(s), x = v ?? /* @__PURE__ */ n(G, {
179
+ "aria-labelledby": y,
180
180
  color: "inherit",
181
181
  size: 16
182
182
  }), _ = {
183
183
  ...l,
184
184
  edge: d,
185
185
  color: p,
186
- disabled: y,
186
+ disabled: h,
187
187
  disableFocusRipple: f,
188
188
  loading: c,
189
- loadingIndicator: k,
189
+ loadingIndicator: x,
190
190
  size: C
191
- }, B = Q(_);
192
- return /* @__PURE__ */ T(X, {
193
- id: c ? h : i,
194
- className: V(B.root, m),
191
+ }, w = Q(_);
192
+ return /* @__PURE__ */ B(X, {
193
+ id: c ? y : s,
194
+ className: F(w.root, m),
195
195
  centerRipple: !0,
196
196
  focusRipple: !f,
197
- disabled: y || c,
197
+ disabled: h || c,
198
198
  ref: a,
199
199
  ...I,
200
200
  ownerState: _,
201
201
  children: [typeof c == "boolean" && // use plain HTML span to minimize the runtime overhead
202
202
  /* @__PURE__ */ n("span", {
203
- className: B.loadingWrapper,
203
+ className: w.loadingWrapper,
204
204
  style: {
205
205
  display: "contents"
206
206
  },
207
207
  children: /* @__PURE__ */ n(oo, {
208
- className: B.loadingIndicator,
208
+ className: w.loadingIndicator,
209
209
  ownerState: _,
210
- children: c && k
210
+ children: c && x
211
211
  })
212
212
  }), u]
213
213
  });
@@ -220,7 +220,7 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
220
220
  /**
221
221
  * The icon to display.
222
222
  */
223
- children: Z(t.node, (o) => x.Children.toArray(o.children).some((a) => /* @__PURE__ */ x.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
223
+ children: Y(t.node, (o) => T.Children.toArray(o.children).some((a) => /* @__PURE__ */ T.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
224
224
  `)) : null),
225
225
  /**
226
226
  * Override or extend the styles applied to the component.
@@ -291,16 +291,17 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
291
291
  */
292
292
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
293
293
  });
294
- const to = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.3434%2015.4595C16.8227%2014.9388%2015.9785%2014.9388%2015.4578%2015.4595C14.9371%2015.9802%2014.9371%2016.8244%2015.4578%2017.3451L21.1146%2023.002L15.4578%2028.6588C14.9371%2029.1795%2014.9371%2030.0237%2015.4578%2030.5444C15.9785%2031.0651%2016.8227%2031.0651%2017.3434%2030.5444L23.0002%2024.8876L28.6571%2030.5444C29.1778%2031.0651%2030.022%2031.0651%2030.5427%2030.5444C31.0634%2030.0237%2031.0634%2029.1795%2030.5427%2028.6588L24.8858%2023.002L30.5427%2017.3451C31.0634%2016.8244%2031.0634%2015.9802%2030.5427%2015.4595C30.022%2014.9388%2029.1778%2014.9388%2028.6571%2015.4595L23.0002%2021.1163L17.3434%2015.4595Z'%20fill='%233AA8FF'/%3e%3c/svg%3e", eo = "_dialog_ujd1k_1", ao = "_topActions_ujd1k_6", no = "_close_ujd1k_12", io = "_botActions_ujd1k_16", ro = "_title_ujd1k_19", so = "_content_ujd1k_25", lo = "_crop_ujd1k_33", co = "_dialogText_ujd1k_42", s = {
294
+ const to = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.3434%2015.4595C16.8227%2014.9388%2015.9785%2014.9388%2015.4578%2015.4595C14.9371%2015.9802%2014.9371%2016.8244%2015.4578%2017.3451L21.1146%2023.002L15.4578%2028.6588C14.9371%2029.1795%2014.9371%2030.0237%2015.4578%2030.5444C15.9785%2031.0651%2016.8227%2031.0651%2017.3434%2030.5444L23.0002%2024.8876L28.6571%2030.5444C29.1778%2031.0651%2030.022%2031.0651%2030.5427%2030.5444C31.0634%2030.0237%2031.0634%2029.1795%2030.5427%2028.6588L24.8858%2023.002L30.5427%2017.3451C31.0634%2016.8244%2031.0634%2015.9802%2030.5427%2015.4595C30.022%2014.9388%2029.1778%2014.9388%2028.6571%2015.4595L23.0002%2021.1163L17.3434%2015.4595Z'%20fill='%233AA8FF'/%3e%3c/svg%3e", eo = "_dialog_wdj3q_1", ao = "_topActions_wdj3q_6", no = "_close_wdj3q_12", io = "_botActions_wdj3q_16", ro = "_button_wdj3q_19", so = "_title_wdj3q_22", lo = "_content_wdj3q_28", co = "_crop_wdj3q_36", po = "_dialogText_wdj3q_45", r = {
295
295
  dialog: eo,
296
296
  topActions: ao,
297
297
  close: no,
298
298
  botActions: io,
299
- title: ro,
300
- content: so,
301
- crop: lo,
302
- dialogText: co
303
- }, Io = (o) => {
299
+ button: ro,
300
+ title: so,
301
+ content: lo,
302
+ crop: co,
303
+ dialogText: po
304
+ }, _o = (o) => {
304
305
  const {
305
306
  onCloseDialogHandler: e,
306
307
  photoSource: a,
@@ -310,45 +311,45 @@ const to = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
310
311
  onPhotoLoad: u,
311
312
  imageRef: m,
312
313
  photoError: p,
313
- onPhotoCrop: y,
314
- minDimension: f = O,
315
- aspectRatio: C = D,
316
- locale: i = w,
314
+ onPhotoCrop: h,
315
+ minDimension: f = D,
316
+ aspectRatio: C = P,
317
+ locale: s = O,
317
318
  circular: c,
318
319
  keepSelection: v = !0,
319
320
  className: I,
320
- ...h
321
+ ...y
321
322
  } = o;
322
- return /* @__PURE__ */ T(
323
- P,
323
+ return /* @__PURE__ */ B(
324
+ E,
324
325
  {
325
- className: r(s.dialog, I),
326
+ className: i(r.dialog, I),
326
327
  onClose: e,
327
- ...h,
328
+ ...y,
328
329
  children: [
329
- /* @__PURE__ */ n(z, { className: r(s.topActions), children: /* @__PURE__ */ n(
330
+ /* @__PURE__ */ n(N, { className: i(r.topActions), children: /* @__PURE__ */ n(
330
331
  S,
331
332
  {
332
333
  onClick: e,
333
- className: r(s.close),
334
- "aria-label": b[i].back,
334
+ className: i(r.close),
335
+ "aria-label": b[s].back,
335
336
  children: /* @__PURE__ */ n(
336
337
  "img",
337
338
  {
338
339
  width: 40,
339
340
  height: 40,
340
341
  src: to,
341
- alt: b[i].back
342
+ alt: b[s].back
342
343
  }
343
344
  )
344
345
  }
345
346
  ) }),
346
- /* @__PURE__ */ n(E, { className: r(s.title), children: b[i]["photo-crop"] }),
347
- /* @__PURE__ */ T(M, { className: r(s.content), children: [
347
+ /* @__PURE__ */ n(k, { className: i(r.title), children: b[s]["photo-crop"] }),
348
+ /* @__PURE__ */ B(M, { className: i(r.content), children: [
348
349
  a && /* @__PURE__ */ n(
349
350
  j,
350
351
  {
351
- className: r(s.crop),
352
+ className: i(r.crop),
352
353
  crop: l,
353
354
  circularCrop: c,
354
355
  keepSelection: v,
@@ -362,23 +363,25 @@ const to = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
362
363
  onLoad: u,
363
364
  src: a,
364
365
  ref: m,
365
- alt: b[i]["photo-crop"],
366
+ alt: b[s]["photo-crop"],
366
367
  draggable: !1
367
368
  }
368
369
  )
369
370
  }
370
371
  ),
371
- p && /* @__PURE__ */ n(U, { className: r(s.dialogText), children: p })
372
+ p && /* @__PURE__ */ n(q, { className: i(r.dialogText), children: p })
372
373
  ] }),
373
- /* @__PURE__ */ n(z, { className: r(s.botActions), children: /* @__PURE__ */ n(
374
+ /* @__PURE__ */ n(N, { className: i(r.botActions), children: /* @__PURE__ */ n(
374
375
  J,
375
376
  {
376
377
  minWidth: "100%",
377
378
  buttonSize: "small",
378
379
  buttonColor: "blue",
379
380
  buttonVariant: "filled",
380
- onClick: y,
381
- children: b[i].crop
381
+ buttonWeight: 500,
382
+ className: i(r.button),
383
+ onClick: h,
384
+ children: b[s].crop
382
385
  }
383
386
  ) })
384
387
  ]
@@ -386,5 +389,5 @@ const to = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
386
389
  );
387
390
  };
388
391
  export {
389
- Io as UploadDialog
392
+ _o as UploadDialog
390
393
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hai-dev/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "author": {
6
6
  "name": "Vladislav Knitrunov",
7
7
  "email": "kingvlad3008@gmail.com",