@m4l/components 0.1.25 → 0.1.27

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 (43) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.9cfffe65.js → index.431160ba.js} +1 -1
  2. package/components/CommonActions/components/ActionFormCancel/{index.ef60c2ee.js → index.6a0f34aa.js} +2 -2
  3. package/components/CommonActions/components/ActionIntro/{index.f8403e8e.js → index.85557b90.js} +1 -1
  4. package/components/CommonActions/components/Actions/{index.309d3b6f.js → index.edeb05c2.js} +9 -9
  5. package/components/DataGrid/{index.fe073438.js → index.2ce9da7d.js} +3 -3
  6. package/components/DynamicFilter/{index.d0753667.js → index.e1d4a948.js} +12 -12
  7. package/components/Icon/{index.f569765b.js → index.619c31c4.js} +27 -25
  8. package/components/Icon/types.d.ts +2 -1
  9. package/components/LanguagePopover/styles.d.ts +2 -0
  10. package/components/ModalDialog/{index.a24ca508.js → index.ad61757f.js} +3 -3
  11. package/components/ObjectLogs/{index.a7d36267.js → index.6ebaec71.js} +5 -5
  12. package/components/Page/index.4237c241.js +25 -0
  13. package/components/PaperForm/{index.3f8c7ef2.js → index.ec9cb8c9.js} +1 -1
  14. package/components/Period/{index.080a987d.js → index.81de7941.js} +24 -24
  15. package/components/PropertyValue/{index.ab3dd7e9.js → index.dfcfe1ba.js} +26 -25
  16. package/components/PropertyValue/styles.d.ts +2 -1
  17. package/components/PropertyValue/types.d.ts +3 -3
  18. package/components/formatters/BooleanFormatter/{index.3ec56305.js → index.8da35c9c.js} +1 -1
  19. package/components/formatters/DateFormatter/{index.08d8823b.js → index.1b9baacc.js} +1 -1
  20. package/components/formatters/{index.6959c2de.js → index.c2a9b55d.js} +1 -1
  21. package/components/hook-form/RHFPeriod/{index.067790c9.js → index.e08fb1ab.js} +1 -1
  22. package/components/hook-form/RHFTextField/{index.ba2a8f67.js → index.f9aaaa90.js} +1 -1
  23. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/index.d.ts +0 -0
  24. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/styles.d.ts +4 -3
  25. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/index.d.ts +0 -0
  26. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -0
  27. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/types.d.ts +0 -0
  28. package/components/hook-form/RHFUpload/{index.6347159a.js → index.ec4d5326.js} +79 -73
  29. package/components/mui_extended/Accordion/{index.49f5df8e.js → index.a02ac6ae.js} +2 -2
  30. package/components/mui_extended/Avatar/index.fe06afd7.js +41 -0
  31. package/components/mui_extended/Button/{index.2afaa420.js → index.51dae0bb.js} +2 -2
  32. package/components/mui_extended/IconButton/index.a321e5cb.js +105 -0
  33. package/components/mui_extended/IconButton/index.d.ts +1 -1
  34. package/components/mui_extended/Pager/{index.a23cf8de.js → index.1dc45f5e.js} +1 -1
  35. package/components/mui_extended/Popover/index.cb2ccc66.js +252 -0
  36. package/contexts/ModalContext/{index.f17b3653.js → index.9ebc793c.js} +3 -3
  37. package/hooks/useModal/{index.b1f96279.js → index.34f5978e.js} +1 -1
  38. package/index.js +27 -27
  39. package/package.json +1 -1
  40. package/components/Page/index.fc660ee5.js +0 -27
  41. package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
  42. package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
  43. package/components/mui_extended/Popover/index.12b0ab55.js +0 -218
@@ -1,7 +1,7 @@
1
1
  import { useModuleSkeleton as y, useEnvironment as C } from "@m4l/core";
2
2
  import { styled as H, Skeleton as h, TextField as R, InputAdornment as S } from "@mui/material";
3
3
  import { forwardRef as I, useState as T } from "react";
4
- import { I as b } from "../../mui_extended/IconButton/index.4b5ce8b5.js";
4
+ import { I as b } from "../../mui_extended/IconButton/index.a321e5cb.js";
5
5
  import { useFormContext as W, Controller as $ } from "react-hook-form";
6
6
  import { jsx as e, jsxs as P } from "react/jsx-runtime";
7
7
  const u = H("div")(({
@@ -4,8 +4,9 @@ export declare const DropZoneStyle: import("@emotion/styled").StyledComponent<im
4
4
  export declare const PlaceholderStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
5
  export declare const ContainerUploadBody: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const Containermessage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
- export declare const ContainerTitle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
8
- export declare const ContainerDescription: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
9
- export declare const ContainerConditions: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
7
+ export declare const ContainerTitle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const ContainerDescription: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const ContainerConditions: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
10
  export declare const WrapperImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
11
  export declare const ContainerPlaceHolder: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const WrapperFileImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,10 +1,10 @@
1
1
  import { styled as w, Skeleton as p, FormHelperText as I } from "@mui/material";
2
2
  import { useCallback as D } from "react";
3
- import { useFormContext as y, Controller as N } from "react-hook-form";
4
- import S from "lodash/isString";
5
- import { useDropzone as m } from "react-dropzone";
6
- import { styled as e, alpha as x } from "@mui/material/styles";
7
- import { I as l } from "../../Image/index.c9da2d5a.js";
3
+ import { useFormContext as y, Controller as m } from "react-hook-form";
4
+ import N from "lodash/isString";
5
+ import { useDropzone as x } from "react-dropzone";
6
+ import { styled as e, alpha as S } from "@mui/material/styles";
7
+ import { I as d } from "../../Image/index.c9da2d5a.js";
8
8
  import { useEnvironment as z, useModuleDictionary as h, useModuleSkeleton as A } from "@m4l/core";
9
9
  import { jsx as i, jsxs as n, Fragment as b } from "react/jsx-runtime";
10
10
  const j = e("div")(({
@@ -12,6 +12,7 @@ const j = e("div")(({
12
12
  }) => ({
13
13
  width: "inherit",
14
14
  height: "100%",
15
+ minHeight: "200px",
15
16
  minWidth: t.spacing(20),
16
17
  margin: "auto",
17
18
  borderRadius: t.spacing(1),
@@ -61,7 +62,7 @@ const j = e("div")(({
61
62
  }) => ({
62
63
  padding: t.spacing(3, 5),
63
64
  display: "flex",
64
- flexWrap: "wrap",
65
+ flexDirection: "column",
65
66
  justifyContent: "center",
66
67
  width: "100%",
67
68
  height: "100%",
@@ -72,28 +73,25 @@ const j = e("div")(({
72
73
  display: "flex",
73
74
  justifyContent: "center",
74
75
  flexDirection: "column",
75
- gap: t.spacing(3)
76
- })), Y = e("span")(({
76
+ gap: t.spacing(1)
77
+ })), H = e("div")(({
77
78
  theme: t
78
79
  }) => ({
79
- ...t.typography.subtitle2,
80
- width: "fit-content"
81
- })), H = e("span")(({
80
+ ...t.typography.subtitle1,
81
+ textAlign: "center"
82
+ })), Y = e("div")(({
82
83
  theme: t
83
84
  }) => ({
84
85
  ...t.typography.body2,
85
- minWidth: t.spacing(20)
86
- })), k = e("span")(({
86
+ textAlign: "center"
87
+ })), k = e("div")(({
87
88
  theme: t
88
89
  }) => ({
89
90
  ...t.typography.caption,
90
- width: "fit-content"
91
- })), G = e("div")(({
92
- theme: t
93
- }) => ({
91
+ textAlign: "center"
92
+ })), G = e("div")(() => ({
94
93
  display: "flex",
95
- alignItems: "center",
96
- maxWidth: t.spacing(20)
94
+ justifyContent: "center"
97
95
  }));
98
96
  e("div")(() => ({
99
97
  width: "100%",
@@ -104,7 +102,13 @@ e("div")(() => ({
104
102
  justifyContent: "center",
105
103
  alignItems: "center"
106
104
  }));
107
- const Q = w("div")(({
105
+ const Q = e("div")(() => ({
106
+ "& .m4l_image > img": {
107
+ objectFit: "cover",
108
+ width: "auto",
109
+ margin: "0 auto"
110
+ }
111
+ })), f = w("div")(({
108
112
  theme: t
109
113
  }) => ({
110
114
  maskPosition: "center!important",
@@ -115,8 +119,8 @@ const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i4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==')"
118
- })), f = () => /* @__PURE__ */ i(j, {
119
- children: /* @__PURE__ */ i(Q, {
122
+ })), Z = () => /* @__PURE__ */ i(j, {
123
+ children: /* @__PURE__ */ i(f, {
120
124
  children: /* @__PURE__ */ i(p, {
121
125
  variant: "rectangular",
122
126
  width: "100%",
@@ -124,61 +128,63 @@ const Q = w("div")(({
124
128
  })
125
129
  })
126
130
  });
127
- function Z({
131
+ function W({
128
132
  error: t,
129
- file: M,
133
+ file: o,
130
134
  helperText: s,
131
- sx: a,
132
- ...c
135
+ sx: r,
136
+ ...a
133
137
  }) {
134
138
  const {
135
139
  getRootProps: L,
136
- getInputProps: o,
137
- isDragActive: r,
138
- isDragReject: d
139
- } = m({
140
+ getInputProps: M,
141
+ isDragActive: u,
142
+ isDragReject: l
143
+ } = x({
140
144
  multiple: !1,
141
- ...c
145
+ ...a
142
146
  }), {
143
147
  host_static_assets: C,
144
148
  environment_assets: g
145
149
  } = z(), {
146
- getLabel: u
150
+ getLabel: c
147
151
  } = h();
148
- return A() ? /* @__PURE__ */ i(f, {}) : /* @__PURE__ */ n(b, {
152
+ return A() ? /* @__PURE__ */ i(Z, {}) : /* @__PURE__ */ n(b, {
149
153
  children: [/* @__PURE__ */ i(j, {
150
154
  sx: {
151
- ...(d || t) && {
155
+ ...(l || t) && {
152
156
  borderColor: "error.light"
153
157
  },
154
- ...a
158
+ ...r
155
159
  },
156
160
  children: /* @__PURE__ */ n(T, {
157
- id: "DropZoneStyle",
158
161
  ...L(),
159
162
  sx: {
160
- ...r && {
163
+ ...u && {
161
164
  opacity: 0.72
162
165
  }
163
166
  },
164
167
  children: [/* @__PURE__ */ i("input", {
165
- ...o()
166
- }), M && /* @__PURE__ */ i(l, {
167
- alt: "avatar",
168
- src: S(M) ? M : M.preview || "",
169
- width: "100%"
168
+ ...M()
169
+ }), o && /* @__PURE__ */ i(Q, {
170
+ children: /* @__PURE__ */ i(d, {
171
+ alt: "avatar",
172
+ src: N(o) ? o : o.preview || "",
173
+ width: "auto",
174
+ height: "100%"
175
+ })
170
176
  }), /* @__PURE__ */ i(E, {
171
177
  id: "PlaceholderStyle",
172
178
  className: "placeholder",
173
179
  sx: {
174
- ...M ? {
175
- bgcolor: x("#161C24", 0.72),
180
+ ...o ? {
181
+ bgcolor: S("#161C24", 0.72),
176
182
  color: "common.white",
177
183
  opacity: 0
178
184
  } : {
179
185
  opacity: 1
180
186
  },
181
- ...(d || t) && {
187
+ ...(l || t) && {
182
188
  bgcolor: "error.lighter",
183
189
  borderColor: "error.light",
184
190
  color: "error.main"
@@ -187,18 +193,18 @@ function Z({
187
193
  children: /* @__PURE__ */ n(v, {
188
194
  className: "ContainerUploadBody",
189
195
  children: [/* @__PURE__ */ i(G, {
190
- children: /* @__PURE__ */ i(l, {
196
+ children: /* @__PURE__ */ i(d, {
191
197
  src: `${C}/${g}/frontend/components/upload_image/assets/img/upload_image_illustration.svg`,
192
- width: "100%",
193
- height: "auto"
198
+ width: "100px",
199
+ height: "100px"
194
200
  })
195
201
  }), /* @__PURE__ */ n(U, {
196
- children: [/* @__PURE__ */ i(Y, {
197
- children: u(M ? "upload_image.title_update" : "upload_image.title_upload")
198
- }), /* @__PURE__ */ i(H, {
199
- children: u("upload_image.description")
202
+ children: [/* @__PURE__ */ i(H, {
203
+ children: c("upload_image.title_upload")
204
+ }), /* @__PURE__ */ i(Y, {
205
+ children: c("upload_image.description")
200
206
  }), /* @__PURE__ */ i(k, {
201
- children: u("upload_image.conditions")
207
+ children: c("upload_image.conditions")
202
208
  })]
203
209
  })]
204
210
  })
@@ -207,52 +213,52 @@ function Z({
207
213
  }), s && s]
208
214
  });
209
215
  }
210
- const W = w("div")(() => ({
216
+ const P = w("div")(() => ({
211
217
  width: "inherit",
212
218
  height: "inherit",
213
219
  padding: "1px"
214
220
  }));
215
- function $({
221
+ function q({
216
222
  name: t,
217
- ...M
223
+ ...o
218
224
  }) {
219
225
  const {
220
226
  control: s,
221
- setValue: a
222
- } = y(), c = D((L) => {
223
- const o = L[0];
224
- o && a(t, Object.assign(o, {
225
- preview: URL.createObjectURL(o)
227
+ setValue: r
228
+ } = y(), a = D((L) => {
229
+ const M = L[0];
230
+ M && r(t, Object.assign(M, {
231
+ preview: URL.createObjectURL(M)
226
232
  }));
227
- }, [a]);
228
- return /* @__PURE__ */ i(N, {
233
+ }, [r]);
234
+ return /* @__PURE__ */ i(m, {
229
235
  name: t,
230
236
  control: s,
231
237
  render: ({
232
238
  field: L,
233
239
  fieldState: {
234
- error: o
240
+ error: M
235
241
  }
236
242
  }) => {
237
- const r = !!o && !L.value;
238
- return /* @__PURE__ */ n(W, {
239
- children: [/* @__PURE__ */ i(Z, {
240
- onDrop: c,
241
- error: r,
242
- ...M,
243
+ const u = !!M && !L.value;
244
+ return /* @__PURE__ */ n(P, {
245
+ children: [/* @__PURE__ */ i(W, {
246
+ onDrop: a,
247
+ error: u,
248
+ ...o,
243
249
  file: L.value
244
- }), r && /* @__PURE__ */ i(I, {
250
+ }), u && /* @__PURE__ */ i(I, {
245
251
  error: !0,
246
252
  sx: {
247
253
  px: 2,
248
254
  textAlign: "center"
249
255
  },
250
- children: o.message
256
+ children: M.message
251
257
  })]
252
258
  });
253
259
  }
254
260
  });
255
261
  }
256
262
  export {
257
- $ as R
263
+ q as R
258
264
  };
@@ -1,7 +1,7 @@
1
1
  import { Skeleton as d, Accordion as f, AccordionSummary as x, AccordionDetails as b } from "@mui/material";
2
- import { I as v } from "../IconButton/index.4b5ce8b5.js";
2
+ import { I as v } from "../IconButton/index.a321e5cb.js";
3
3
  import { useEnvironment as y, useModuleSkeleton as I } from "@m4l/core";
4
- import { I as S } from "../../Icon/index.f569765b.js";
4
+ import { I as S } from "../../Icon/index.619c31c4.js";
5
5
  import { styled as c } from "@mui/material/styles";
6
6
  import { jsx as t, jsxs as s } from "react/jsx-runtime";
7
7
  c("div")(({
@@ -0,0 +1,41 @@
1
+ import { forwardRef as m } from "react";
2
+ import { useTheme as p } from "@mui/material/styles";
3
+ import { Skeleton as u, Avatar as s } from "@mui/material";
4
+ import { useModuleSkeleton as f } from "@m4l/core";
5
+ import { jsx as t } from "react/jsx-runtime";
6
+ const l = () => /* @__PURE__ */ t(u, {
7
+ variant: "circular",
8
+ width: "32px",
9
+ height: "32px"
10
+ }), c = m(({
11
+ color: r = "default",
12
+ children: o,
13
+ sx: a,
14
+ ...n
15
+ }, i) => {
16
+ const e = p();
17
+ return f() ? /* @__PURE__ */ t(l, {}) : r === "default" ? /* @__PURE__ */ t(s, {
18
+ ref: i,
19
+ sx: {
20
+ cursor: "pointer",
21
+ ...a
22
+ },
23
+ ...n,
24
+ children: o
25
+ }) : /* @__PURE__ */ t(s, {
26
+ ref: i,
27
+ sx: {
28
+ fontWeight: e.typography.fontWeightMedium,
29
+ color: e.palette[r].contrastText,
30
+ backgroundColor: e.palette[r].main,
31
+ cursor: "pointer",
32
+ ...a
33
+ },
34
+ ...n,
35
+ children: o
36
+ });
37
+ });
38
+ c.displayName = "Avatar";
39
+ export {
40
+ c as A
41
+ };
@@ -3,9 +3,9 @@ import { Skeleton as m, styled as S, IconButton as v, Tooltip as I } from "@mui/
3
3
  import _ from "@mui/material/Button";
4
4
  import { jsx as i } from "react/jsx-runtime";
5
5
  import { LoadingButton as b } from "@mui/lab";
6
- import { I as x } from "../IconButton/index.4b5ce8b5.js";
6
+ import { I as x } from "../IconButton/index.a321e5cb.js";
7
7
  import { styled as h, alpha as F } from "@mui/material/styles";
8
- import { u as L } from "../../DynamicFilter/index.d0753667.js";
8
+ import { u as L } from "../../DynamicFilter/index.e1d4a948.js";
9
9
  import { useMemo as u } from "react";
10
10
  import { I as $ } from "../../Image/index.c9da2d5a.js";
11
11
  const G = (t) => g() ? /* @__PURE__ */ i(m, {
@@ -0,0 +1,105 @@
1
+ import { m as f } from "framer-motion";
2
+ import { forwardRef as v, useMemo as I } from "react";
3
+ import { IconButton as l, Box as b, Skeleton as h, Tooltip as x } from "@mui/material";
4
+ import { jsx as e } from "react/jsx-runtime";
5
+ import { useModuleDictionary as B, useModuleSkeleton as S } from "@m4l/core";
6
+ import { I as d } from "../../Icon/index.619c31c4.js";
7
+ const g = {
8
+ hover: {
9
+ scale: 1.1
10
+ },
11
+ tap: {
12
+ scale: 0.95
13
+ }
14
+ }, k = {
15
+ hover: {
16
+ scale: 1.09
17
+ },
18
+ tap: {
19
+ scale: 0.97
20
+ }
21
+ }, w = {
22
+ hover: {
23
+ scale: 1.08
24
+ },
25
+ tap: {
26
+ scale: 0.99
27
+ }
28
+ };
29
+ function M({
30
+ size: t,
31
+ children: o
32
+ }) {
33
+ const a = t === "small", n = t === "large";
34
+ return /* @__PURE__ */ e(b, {
35
+ component: f.div,
36
+ whileTap: "tap",
37
+ whileHover: "hover",
38
+ variants: a && g || n && w || k,
39
+ sx: {
40
+ display: "inline-flex"
41
+ },
42
+ children: o
43
+ });
44
+ }
45
+ const L = v(({
46
+ children: t,
47
+ size: o = "medium",
48
+ ...a
49
+ }, n) => /* @__PURE__ */ e(M, {
50
+ size: o,
51
+ children: /* @__PURE__ */ e(l, {
52
+ size: o,
53
+ ref: n,
54
+ ...a,
55
+ children: t
56
+ })
57
+ }));
58
+ L.displayName = "IconButtonAnimate";
59
+ const y = () => /* @__PURE__ */ e(h, {
60
+ variant: "circular",
61
+ width: "30px",
62
+ height: "30px"
63
+ });
64
+ function R({
65
+ src: t,
66
+ tooltip: o,
67
+ size: a = "small",
68
+ dictionaryTooltip: n,
69
+ bgColor: s = "primary.active",
70
+ rotationAngle: c,
71
+ angleTransition: u,
72
+ ...r
73
+ }) {
74
+ const {
75
+ getLabel: i
76
+ } = B(), p = S(), m = I(() => {
77
+ if (!r.disabled)
78
+ return n && i ? i(n) : o;
79
+ }, [n, i, r.disabled]);
80
+ return p ? /* @__PURE__ */ e(y, {}) : m ? /* @__PURE__ */ e(x, {
81
+ title: m || "",
82
+ children: /* @__PURE__ */ e(l, {
83
+ size: a,
84
+ ...r,
85
+ children: /* @__PURE__ */ e(d, {
86
+ src: t,
87
+ bgColor: r.disabled ? "action.disabled" : s,
88
+ rotationAngle: c
89
+ })
90
+ })
91
+ }) : /* @__PURE__ */ e(l, {
92
+ size: a,
93
+ ...r,
94
+ children: /* @__PURE__ */ e(d, {
95
+ src: t,
96
+ bgColor: r.disabled ? "action.disabled" : s,
97
+ rotationAngle: c,
98
+ angleTransition: u
99
+ })
100
+ });
101
+ }
102
+ export {
103
+ R as I,
104
+ L as a
105
+ };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
3
3
  import { IconButtonProps } from './types';
4
- export declare function IconButton({ src, tooltip, size, dictionaryTooltip, bgColor, rotate, ...other }: IconButtonProps & MUIIconButtonProps): JSX.Element;
4
+ export declare function IconButton({ src, tooltip, size, dictionaryTooltip, bgColor, rotationAngle, angleTransition, ...other }: IconButtonProps & MUIIconButtonProps): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { useMemo as y } from "react";
2
2
  import { Skeleton as i, TablePagination as R } from "@mui/material";
3
- import { P as S } from "../../CommonActions/components/Actions/index.309d3b6f.js";
3
+ import { P as S } from "../../CommonActions/components/Actions/index.edeb05c2.js";
4
4
  import { styled as a } from "@mui/material/styles";
5
5
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
6
6
  a("div")(() => ({