@m4l/components 0.1.18 → 0.1.20

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 (129) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.7e947996.js → index.3775989f.js} +1 -1
  2. package/components/CommonActions/components/ActionFormCancel/{index.63405f6c.js → index.d69d9e0f.js} +2 -2
  3. package/components/CommonActions/components/ActionIntro/{index.bac90f39.js → index.ca7b6952.js} +1 -1
  4. package/components/CommonActions/components/Actions/{index.6b25caed.js → index.a908e4b9.js} +170 -171
  5. package/components/DataGrid/{index.091572bf.js → index.5cbf0dd8.js} +3 -3
  6. package/components/DynamicFilter/{index.7efecd5d.js → index.8a571617.js} +80 -82
  7. package/components/HelmetPage/index.d.ts +6 -0
  8. package/components/{Page → HelmetPage}/types.d.ts +2 -2
  9. package/components/Icon/{index.cbca79b0.js → index.f569765b.js} +41 -29
  10. package/components/Icon/types.d.ts +1 -0
  11. package/components/Image/index.c9da2d5a.js +152 -0
  12. package/components/Image/index.d.ts +2 -2
  13. package/components/Image/styles.d.ts +2 -4
  14. package/components/Image/subcomponents/BasicIntersectComponent/index.d.ts +3 -0
  15. package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +3 -0
  16. package/components/Image/subcomponents/Skeleton/index.d.ts +3 -0
  17. package/components/Image/subcomponents/Skeleton/styles.d.ts +2 -0
  18. package/components/Image/subcomponents/Skeleton/types.d.ts +4 -0
  19. package/components/Image/types.d.ts +30 -15
  20. package/components/Image/utils/isIntersectionObserverAvailable.d.ts +1 -0
  21. package/components/LanguagePopover/styles.d.ts +1 -1
  22. package/components/ModalDialog/{index.0ddffae6.js → index.16024a4e.js} +3 -3
  23. package/components/NoItemSelected/{index.12f0ca67.js → index.9609a7f7.js} +1 -1
  24. package/components/NoItemSelected/styles.d.ts +1 -1
  25. package/components/ObjectLogs/{index.64f06b3d.js → index.ac2bfa48.js} +5 -5
  26. package/components/Page/index.fc660ee5.js +27 -0
  27. package/components/PaperForm/{index.d7c74064.js → index.3f8c7ef2.js} +1 -1
  28. package/components/Period/{index.8423f865.js → index.497b8df4.js} +7 -8
  29. package/components/animate/IconButtonAnimate/index.d.ts +1 -1
  30. package/components/animate/features.d.ts +2 -0
  31. package/components/animate/variants/bounce.d.ts +10 -10
  32. package/components/animate/variants/container.d.ts +1 -1
  33. package/components/animate/variants/fade.d.ts +21 -21
  34. package/components/animate/variants/transition.d.ts +6 -6
  35. package/components/{hook-form/FormProvider/index.936cbb98.js → contexts/RHFormContext/index.f8241292.js} +17 -16
  36. package/components/formatters/BooleanFormatter/{index.cca53b7f.js → index.3ec56305.js} +1 -1
  37. package/components/formatters/DateFormatter/{index.ad8d9b8e.js → index.08d8823b.js} +1 -1
  38. package/components/formatters/{index.55856d65.js → index.6959c2de.js} +1 -1
  39. package/components/hook-form/RHFAutocomplete/index.b7f11146.js +146 -0
  40. package/components/hook-form/RHFAutocomplete/index.d.ts +1 -2
  41. package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -1
  42. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +3 -0
  43. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +2 -0
  44. package/components/hook-form/RHFAutocomplete/types.d.ts +13 -7
  45. package/components/hook-form/RHFAutocompleteAsync/index.97a5a66e.js +51 -0
  46. package/components/hook-form/RHFAutocompleteAsync/index.d.ts +1 -2
  47. package/components/hook-form/RHFAutocompleteAsync/types.d.ts +3 -11
  48. package/components/hook-form/RHFCheckbox/index.6a40e25f.js +55 -0
  49. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/index.d.ts +2 -0
  50. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +2 -0
  51. package/components/hook-form/RHFDateTime/{index.fc5cbafe.js → index.5ed774e3.js} +24 -26
  52. package/components/hook-form/RHFDateTime/types.d.ts +2 -5
  53. package/components/hook-form/RHFPeriod/{index.0b982ae8.js → index.e17b1c72.js} +1 -1
  54. package/components/hook-form/RHFTextField/index.bab2a2cf.js +113 -0
  55. package/components/hook-form/RHFTextField/index.d.ts +1 -1
  56. package/components/hook-form/RHFTextField/subcomponents/Skeleton/index.d.ts +3 -0
  57. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +2 -0
  58. package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +4 -0
  59. package/components/hook-form/RHFTextField/types.d.ts +2 -5
  60. package/components/hook-form/RHFTextFieldPassword/index.d.ts +3 -0
  61. package/components/hook-form/RHFTextFieldPassword/types.d.ts +4 -0
  62. package/components/hook-form/RHFUpload/{index.ed3d739f.js → index.cbf11b68.js} +31 -36
  63. package/components/hook-form/index.d.ts +1 -2
  64. package/components/index.d.ts +2 -3
  65. package/components/mui_extended/Accordion/{index.2116e423.js → index.49f5df8e.js} +2 -2
  66. package/components/mui_extended/Avatar/index.d.ts +1 -1
  67. package/components/mui_extended/Avatar/index.dadb0528.js +37 -0
  68. package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +2 -0
  69. package/components/mui_extended/Button/index.16591787.js +144 -0
  70. package/components/mui_extended/IconButton/index.4b5ce8b5.js +103 -0
  71. package/components/mui_extended/IconButton/index.d.ts +1 -1
  72. package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +2 -0
  73. package/components/mui_extended/ImageButton/index.d.ts +3 -0
  74. package/components/mui_extended/ImageButton/types.d.ts +7 -0
  75. package/components/mui_extended/LinkWithRoute/index.16436ab8.js +26 -0
  76. package/components/mui_extended/LinkWithRoute/types.d.ts +2 -6
  77. package/components/mui_extended/LoadingButton/subcomponents/Skeleton/index.d.ts +2 -0
  78. package/components/mui_extended/LoadingButton/subcomponents/Skeleton/styles.d.ts +2 -0
  79. package/components/mui_extended/LoadingButton/types.d.ts +2 -2
  80. package/components/mui_extended/MenuActions/styles.d.ts +2 -2
  81. package/components/mui_extended/MenuActions/types.d.ts +2 -2
  82. package/components/mui_extended/Pager/{index.f0911163.js → index.80c2f8a0.js} +1 -1
  83. package/components/mui_extended/Popover/index.305f2ea5.js +218 -0
  84. package/components/mui_extended/Popover/index.d.ts +4 -0
  85. package/components/mui_extended/Popover/types.d.ts +9 -0
  86. package/components/mui_extended/Typography/index.e5494696.js +31 -0
  87. package/components/mui_extended/Typography/subcomponents/index.d.ts +3 -0
  88. package/components/mui_extended/Typography/subcomponents/types.d.ts +2 -0
  89. package/components/mui_extended/Typography/types.d.ts +3 -5
  90. package/components/mui_extended/index.d.ts +1 -1
  91. package/contexts/ModalContext/{index.1688a07c.js → index.699767c7.js} +3 -3
  92. package/contexts/RHFormContext/index.d.ts +3 -0
  93. package/{components/hook-form/FormProvider → contexts/RHFormContext}/styles.d.ts +0 -0
  94. package/{components/hook-form/FormProvider → contexts/RHFormContext}/types.d.ts +0 -0
  95. package/contexts/index.d.ts +2 -0
  96. package/hooks/useFormAddEdit/index.d.ts +1 -1
  97. package/hooks/useFormAddEdit/types.d.ts +1 -1
  98. package/hooks/useModal/{index.cdd84702.js → index.8201ccec.js} +1 -1
  99. package/index.js +148 -151
  100. package/package.json +3 -1
  101. package/utils/index.d.ts +1 -1
  102. package/components/CompanyLogo/index.d.ts +0 -3
  103. package/components/CompanyLogo/index.f81c179c.js +0 -75
  104. package/components/CompanyLogo/styles.d.ts +0 -5
  105. package/components/CompanyLogo/types.d.ts +0 -6
  106. package/components/Image/index.e790b50b.js +0 -122
  107. package/components/LanguagePopover/index.15f7dea7.js +0 -87
  108. package/components/Page/index.6d69977e.js +0 -35
  109. package/components/Page/index.d.ts +0 -3
  110. package/components/hook-form/FormProvider/index.d.ts +0 -3
  111. package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
  112. package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
  113. package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +0 -4
  114. package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
  115. package/components/hook-form/RHFCheckbox/styles.d.ts +0 -13
  116. package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
  117. package/components/hook-form/RHFTextField/styles.d.ts +0 -2
  118. package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
  119. package/components/mui_extended/Button/index.3debb608.js +0 -110
  120. package/components/mui_extended/Button/styles.d.ts +0 -12
  121. package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
  122. package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
  123. package/components/mui_extended/LoadingButton/skeleton.d.ts +0 -2
  124. package/components/mui_extended/LoadingButton/styles.d.ts +0 -2
  125. package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
  126. package/components/mui_extended/MenuPopover/index.d.ts +0 -4
  127. package/components/mui_extended/MenuPopover/types.d.ts +0 -9
  128. package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
  129. package/react-lazy-load-image-component.45b56650.js +0 -784
@@ -1,77 +0,0 @@
1
- import { useFormContext as R, Controller as T } from "react-hook-form";
2
- import { Skeleton as k, TextField as C } from "@mui/material";
3
- import { styled as S } from "@mui/material/styles";
4
- import { forwardRef as b } from "react";
5
- import { useModuleSkeleton as y } from "@m4l/core";
6
- import { jsx as t } from "react/jsx-runtime";
7
- const H = S("div")(({
8
- theme: e
9
- }) => ({
10
- display: "flex",
11
- width: "100%",
12
- alignItems: "center",
13
- border: `1px solid ${e.palette.divider}`,
14
- padding: "12px 14px",
15
- borderRadius: e.spacing(1)
16
- })), v = b((e, l) => {
17
- const {
18
- name: a,
19
- autoComplete: d = "off",
20
- skeletonProps: s = {},
21
- type: o,
22
- ...p
23
- } = e, {
24
- width: m = "100%",
25
- height: f = 14
26
- } = s, u = y(), {
27
- control: x
28
- } = R();
29
- return u ? /* @__PURE__ */ t(H, {
30
- children: /* @__PURE__ */ t(k, {
31
- variant: "text",
32
- width: m,
33
- height: f
34
- })
35
- }) : /* @__PURE__ */ t(T, {
36
- name: a,
37
- control: x,
38
- render: ({
39
- field: {
40
- onChange: n,
41
- onBlur: c,
42
- value: g,
43
- name: h,
44
- ref: F
45
- },
46
- fieldState: {
47
- error: i
48
- }
49
- }) => /* @__PURE__ */ t(
50
- C,
51
- {
52
- inputRef: l,
53
- autoComplete: d,
54
- onChange: (r) => {
55
- if (o === "number" && r.target.value) {
56
- n(Number(r.target.value));
57
- return;
58
- }
59
- n(r);
60
- },
61
- onBlur: c,
62
- value: g,
63
- name: h,
64
- ref: F,
65
- fullWidth: !0,
66
- error: !!i,
67
- helperText: i?.message,
68
- type: o,
69
- ...p
70
- }
71
- )
72
- });
73
- });
74
- v.displayName = "RHFTextField";
75
- export {
76
- v as R
77
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SKTRHFWrapperTextField: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,32 +0,0 @@
1
- import { forwardRef as i } from "react";
2
- import { useTheme as n } from "@mui/material/styles";
3
- import { Avatar as f } from "@mui/material";
4
- import { jsx as p } from "react/jsx-runtime";
5
- const s = i(({
6
- color: t = "default",
7
- children: r,
8
- sx: e,
9
- ...o
10
- }, m) => {
11
- const a = n();
12
- return t === "default" ? /* @__PURE__ */ p(f, {
13
- ref: m,
14
- sx: e,
15
- ...o,
16
- children: r
17
- }) : /* @__PURE__ */ p(f, {
18
- ref: m,
19
- sx: {
20
- fontWeight: a.typography.fontWeightMedium,
21
- color: a.palette[t].contrastText,
22
- backgroundColor: a.palette[t].main,
23
- ...e
24
- },
25
- ...o,
26
- children: r
27
- });
28
- });
29
- s.displayName = "Avatar";
30
- export {
31
- s as A
32
- };
@@ -1,110 +0,0 @@
1
- import { useModuleSkeleton as u, useEnvironment as p } from "@m4l/core";
2
- import m from "@mui/material/Button";
3
- import { styled as f, Skeleton as a } from "@mui/material";
4
- import { jsx as i } from "react/jsx-runtime";
5
- import { LoadingButton as h } from "@mui/lab";
6
- import { styled as s, alpha as g } from "@mui/material/styles";
7
- import { I as y } from "../IconButton/index.88f3aadb.js";
8
- import { u as B } from "../../DynamicFilter/index.7efecd5d.js";
9
- import { useMemo as v } from "react";
10
- const S = f(a)(({
11
- theme: t
12
- }) => ({
13
- borderRadius: t.spacing(0.5)
14
- })), E = (t) => u() ? /* @__PURE__ */ i(S, {
15
- variant: "rectangular",
16
- width: "100px",
17
- height: "36px"
18
- }) : /* @__PURE__ */ i(m, {
19
- ...t
20
- }), k = s("div")(({
21
- theme: t
22
- }) => ({
23
- display: "flex",
24
- width: "100%",
25
- borderRadius: t.spacing(1),
26
- overflow: "hidden"
27
- })), x = () => /* @__PURE__ */ i(k, {
28
- id: "WrapperSKTLoadingButton",
29
- children: /* @__PURE__ */ i(a, {
30
- variant: "rectangular",
31
- width: "100%",
32
- height: "48px"
33
- })
34
- }), I = (t) => {
35
- const {
36
- isSkeleton: o,
37
- children: r,
38
- ...n
39
- } = t;
40
- return o ? /* @__PURE__ */ i(x, {}) : /* @__PURE__ */ i(h, {
41
- ...n,
42
- children: r
43
- });
44
- }, F = s("div")(({
45
- theme: t
46
- }) => ({
47
- display: "flex",
48
- justifyContent: "center",
49
- alignItems: "center",
50
- minWidth: t.spacing(3.75),
51
- height: t.spacing(3.75),
52
- background: g(t.palette.primary.main, 0.3)
53
- })), L = s("div")(() => ({
54
- "&.isDirty": {
55
- animationName: "dirtyEffect",
56
- animationDuration: "1s",
57
- animationFillMode: "both",
58
- animationIterationCount: "infinite",
59
- transition: "all .3s",
60
- "@keyframes dirtyEffect": {
61
- "20%": {
62
- opacity: 1
63
- },
64
- "50%": {
65
- opacity: 0.5
66
- },
67
- "100%": {
68
- opacity: 1
69
- }
70
- }
71
- },
72
- "&.isDirtyError": {}
73
- }));
74
- function M() {
75
- const {
76
- isSkeleton: t,
77
- fireOnChangeFilters: o,
78
- automatic: r,
79
- isDirty: n,
80
- isValid: e
81
- } = B(), {
82
- host_static_assets: c,
83
- environment_assets: l
84
- } = p();
85
- if (t)
86
- return /* @__PURE__ */ i(F, {
87
- children: /* @__PURE__ */ i(a, {
88
- variant: "circular",
89
- width: 20,
90
- height: 20
91
- })
92
- });
93
- const d = v(() => r || !n ? "action.active" : e ? "primary.main" : "error.main", [r, e, n]);
94
- return /* @__PURE__ */ i(L, {
95
- id: "WrapperFilterButton",
96
- className: n && e ? "isDirty" : "",
97
- children: /* @__PURE__ */ i(y, {
98
- bgColor: d,
99
- dictionaryTooltip: "dynamic_filter.filter_tooltip",
100
- onClick: () => o(),
101
- "aria-label": "settings",
102
- src: `${c}/${l}/frontend/components/dynamic_filter/assets/icons/${r ? "refresh" : "search"}.svg`
103
- })
104
- });
105
- }
106
- export {
107
- E as B,
108
- M as F,
109
- I as L
110
- };
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SKTButton: import("@emotion/styled").StyledComponent<{
3
- animation?: false | "wave" | "pulse" | undefined;
4
- children?: import("react").ReactNode;
5
- classes?: Partial<import("@mui/material").SkeletonClasses> | undefined;
6
- height?: string | number | undefined;
7
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
8
- variant?: "text" | "rectangular" | "rounded" | "circular" | undefined;
9
- width?: string | number | undefined;
10
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
11
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
12
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "width" | "height" | "animation" | "children" | "sx" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,98 +0,0 @@
1
- import { m as u } from "framer-motion";
2
- import { forwardRef as p, useMemo as f } from "react";
3
- import { IconButton as l, Box as v, Skeleton as h, Tooltip as I } from "@mui/material";
4
- import { jsx as e } from "react/jsx-runtime";
5
- import { useModuleDictionary as x, useModuleSkeleton as b } from "@m4l/core";
6
- import { I as m } from "../../Icon/index.cbca79b0.js";
7
- const g = {
8
- hover: {
9
- scale: 1.1
10
- },
11
- tap: {
12
- scale: 0.95
13
- }
14
- }, B = {
15
- hover: {
16
- scale: 1.09
17
- },
18
- tap: {
19
- scale: 0.97
20
- }
21
- }, S = {
22
- hover: {
23
- scale: 1.08
24
- },
25
- tap: {
26
- scale: 0.99
27
- }
28
- };
29
- function w({
30
- size: o,
31
- children: a
32
- }) {
33
- const n = o === "small", t = o === "large";
34
- return /* @__PURE__ */ e(v, {
35
- component: u.div,
36
- whileTap: "tap",
37
- whileHover: "hover",
38
- variants: n && g || t && S || B,
39
- sx: {
40
- display: "inline-flex"
41
- },
42
- children: a
43
- });
44
- }
45
- const M = p(({
46
- children: o,
47
- size: a = "medium",
48
- ...n
49
- }, t) => /* @__PURE__ */ e(w, {
50
- size: a,
51
- children: /* @__PURE__ */ e(l, {
52
- size: a,
53
- ref: t,
54
- ...n,
55
- children: o
56
- })
57
- }));
58
- M.displayName = "IconButtonAnimate";
59
- function D({
60
- src: o,
61
- tooltip: a,
62
- size: n = "small",
63
- dictionaryTooltip: t,
64
- bgColor: c = "primary.active",
65
- ...r
66
- }) {
67
- const {
68
- getLabel: i
69
- } = x(), d = b(), s = f(() => t && i ? i(t) : a, [t, i]);
70
- return d ? /* @__PURE__ */ e(h, {
71
- variant: "circular",
72
- width: "30px",
73
- height: "30px"
74
- }) : s ? /* @__PURE__ */ e(I, {
75
- title: s || "",
76
- children: /* @__PURE__ */ e("div", {
77
- children: /* @__PURE__ */ e(l, {
78
- size: n,
79
- ...r,
80
- children: /* @__PURE__ */ e(m, {
81
- src: o,
82
- bgColor: r.disabled ? "action.disabled" : c
83
- })
84
- })
85
- })
86
- }) : /* @__PURE__ */ e(l, {
87
- size: n,
88
- ...r,
89
- children: /* @__PURE__ */ e(m, {
90
- src: o,
91
- bgColor: r.disabled ? "action.disabled" : c
92
- })
93
- });
94
- }
95
- export {
96
- D as I,
97
- M as a
98
- };
@@ -1,28 +0,0 @@
1
- import { Link as p } from "react-router-dom";
2
- import { Skeleton as h, Link as a } from "@mui/material";
3
- import { jsx as t } from "react/jsx-runtime";
4
- const L = (o) => {
5
- const {
6
- to: e,
7
- children: n,
8
- skeletonProps: r = {},
9
- ...i
10
- } = o, {
11
- isSkeleton: s = !1,
12
- width: k = "100%",
13
- height: m = "14px"
14
- } = r;
15
- return s ? /* @__PURE__ */ t(h, {
16
- variant: "text",
17
- width: k,
18
- height: m
19
- }) : /* @__PURE__ */ t(a, {
20
- component: p,
21
- to: e,
22
- ...i,
23
- children: n
24
- });
25
- };
26
- export {
27
- L
28
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SKTLoadingButton: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WrapperSKTLoadingButton: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,131 +0,0 @@
1
- import { styled as s } from "@mui/material/styles";
2
- import { Popover as d } from "@mui/material";
3
- import { jsxs as g, jsx as m } from "react/jsx-runtime";
4
- const h = s("span")(({
5
- arrow: t,
6
- theme: e
7
- }) => {
8
- const o = `solid 1px ${e.palette.grey[50012]}`, r = {
9
- borderRadius: "0 0 3px 0",
10
- top: -6,
11
- borderBottom: o,
12
- borderRight: o
13
- }, i = {
14
- borderRadius: "3px 0 0 0",
15
- bottom: -6,
16
- borderTop: o,
17
- borderLeft: o
18
- }, n = {
19
- borderRadius: "0 3px 0 0",
20
- left: -6,
21
- borderTop: o,
22
- borderRight: o
23
- }, p = {
24
- borderRadius: "0 0 0 3px",
25
- right: -6,
26
- borderBottom: o,
27
- borderLeft: o
28
- };
29
- return {
30
- display: "none",
31
- [e.breakpoints.up("sm")]: {
32
- zIndex: 1,
33
- width: 12,
34
- height: 12,
35
- content: "''",
36
- position: "absolute",
37
- display: "block",
38
- transform: "rotate(-135deg)",
39
- background: e.palette.background.paper
40
- },
41
- ...t === "top-left" && {
42
- ...r,
43
- left: 20
44
- },
45
- ...t === "top-center" && {
46
- ...r,
47
- left: 0,
48
- right: 0,
49
- margin: "auto"
50
- },
51
- ...t === "top-right" && {
52
- ...r,
53
- right: 20
54
- },
55
- ...t === "bottom-left" && {
56
- ...i,
57
- left: 20
58
- },
59
- ...t === "bottom-center" && {
60
- ...i,
61
- left: 0,
62
- right: 0,
63
- margin: "auto"
64
- },
65
- ...t === "bottom-right" && {
66
- ...i,
67
- right: 20
68
- },
69
- ...t === "left-top" && {
70
- ...n,
71
- top: 20
72
- },
73
- ...t === "left-center" && {
74
- ...n,
75
- top: 0,
76
- bottom: 0,
77
- margin: "auto"
78
- },
79
- ...t === "left-bottom" && {
80
- ...n,
81
- bottom: 20
82
- },
83
- ...t === "right-top" && {
84
- ...p,
85
- top: 20
86
- },
87
- ...t === "right-center" && {
88
- ...p,
89
- top: 0,
90
- bottom: 0,
91
- margin: "auto"
92
- },
93
- ...t === "right-bottom" && {
94
- ...p,
95
- bottom: 20
96
- }
97
- };
98
- });
99
- function u({
100
- children: t,
101
- arrow: e = "top-right",
102
- disabledArrow: l,
103
- sx: b,
104
- ...o
105
- }) {
106
- return /* @__PURE__ */ g(d, {
107
- anchorOrigin: {
108
- vertical: "bottom",
109
- horizontal: "right"
110
- },
111
- transformOrigin: {
112
- vertical: "top",
113
- horizontal: "right"
114
- },
115
- PaperProps: {
116
- sx: {
117
- p: 1,
118
- width: 200,
119
- overflow: "inherit",
120
- ...b
121
- }
122
- },
123
- ...o,
124
- children: [!l && /* @__PURE__ */ m(h, {
125
- arrow: e
126
- }), t]
127
- });
128
- }
129
- export {
130
- u as M
131
- };
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { MenuPopoverProps } from './types';
3
- export declare function MenuPopover({ children, arrow, disabledArrow, sx, ...other }: MenuPopoverProps): JSX.Element;
4
- export default MenuPopover;
@@ -1,9 +0,0 @@
1
- import { PopoverProps } from '@mui/material';
2
- export declare type Arrow = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'left-top' | 'left-center' | 'left-bottom' | 'right-top' | 'right-center' | 'right-bottom';
3
- export declare type ArrowStyleProps = {
4
- arrow: Arrow;
5
- };
6
- export interface MenuPopoverProps extends PopoverProps {
7
- arrow?: Arrow;
8
- disabledArrow?: boolean;
9
- }
@@ -1,22 +0,0 @@
1
- import { Skeleton as a, Typography as h } from "@mui/material";
2
- import { jsx as o } from "react/jsx-runtime";
3
- function f(t) {
4
- const {
5
- skeletonProps: r = {},
6
- ...e
7
- } = t, {
8
- isSkeleton: p = "false",
9
- width: n = "100%",
10
- height: s = "14px"
11
- } = r;
12
- return p ? /* @__PURE__ */ o(a, {
13
- variant: "text",
14
- width: n,
15
- height: s
16
- }) : /* @__PURE__ */ o(h, {
17
- ...e
18
- });
19
- }
20
- export {
21
- f as T
22
- };