@m4l/base 1.1.0-beta-feature-728-m4l-components-rhf-image-selector.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +1 -12
- package/extended/mui/Typography/Typography.d.ts.map +1 -1
- package/extended/mui/Typography/Typography.js +58 -52
- package/extended/mui/Typography/constants.d.ts +8 -0
- package/extended/mui/Typography/constants.d.ts.map +1 -1
- package/extended/mui/Typography/constants.js +16 -8
- package/extended/mui/Typography/typography.styles.d.ts.map +1 -1
- package/extended/mui/Typography/typography.styles.js +14 -7
- package/extended/mui/index.d.ts +0 -1
- package/extended/mui/index.d.ts.map +1 -1
- package/index.js +19 -30
- package/package.json +2 -2
- package/extended/mui/ButtonBase/ButtonBase.d.ts +0 -6
- package/extended/mui/ButtonBase/ButtonBase.d.ts.map +0 -1
- package/extended/mui/ButtonBase/ButtonBase.js +0 -38
- package/extended/mui/ButtonBase/ButtonBase.styles.d.ts +0 -3
- package/extended/mui/ButtonBase/ButtonBase.styles.d.ts.map +0 -1
- package/extended/mui/ButtonBase/ButtonBase.styles.js +0 -11
- package/extended/mui/ButtonBase/constants.d.ts +0 -2
- package/extended/mui/ButtonBase/constants.d.ts.map +0 -1
- package/extended/mui/ButtonBase/constants.js +0 -4
- package/extended/mui/ButtonBase/index.d.ts +0 -6
- package/extended/mui/ButtonBase/index.d.ts.map +0 -1
- package/extended/mui/ButtonBase/slots/ButtonBaseEnum.d.ts +0 -5
- package/extended/mui/ButtonBase/slots/ButtonBaseEnum.d.ts.map +0 -1
- package/extended/mui/ButtonBase/slots/ButtonBaseEnum.js +0 -4
- package/extended/mui/ButtonBase/slots/ButtonBaseSlots.d.ts +0 -7
- package/extended/mui/ButtonBase/slots/ButtonBaseSlots.d.ts.map +0 -1
- package/extended/mui/ButtonBase/slots/ButtonBaseSlots.js +0 -19
- package/extended/mui/ButtonBase/slots/index.d.ts +0 -3
- package/extended/mui/ButtonBase/slots/index.d.ts.map +0 -1
- package/extended/mui/ButtonBase/types.d.ts +0 -20
- package/extended/mui/ButtonBase/types.d.ts.map +0 -1
package/@types/types.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ComponentsOverrides, ComponentsVariants, Theme } from '@mui/material/styles';
|
|
2
2
|
import type { IconOwnerState, IconSlotsType } from '../components/Icon/types';
|
|
3
|
-
import type {
|
|
4
|
-
ButtonBaseOwnerState,
|
|
5
|
-
ButtonBaseSlotsType,
|
|
6
|
-
} from '../extended/mui/ButtonBase/types';
|
|
7
3
|
import type {
|
|
8
4
|
TooltipOwnerState,
|
|
9
5
|
TooltipSlotsType,
|
|
@@ -15,25 +11,18 @@ import type {
|
|
|
15
11
|
|
|
16
12
|
declare module '@mui/material/styles' {
|
|
17
13
|
interface ComponentNameToClassKey {
|
|
18
|
-
M4LButtonBase: ButtonBaseSlotsType;
|
|
19
14
|
M4LIcon: IconSlotsType;
|
|
20
15
|
M4LTooltip: TooltipSlotsType;
|
|
21
16
|
M4LTypography: TypographySlotsType;
|
|
22
17
|
}
|
|
23
18
|
|
|
24
19
|
interface ComponentsPropsList {
|
|
25
|
-
M4LButtonBase: Partial<ButtonBaseOwnerState>;
|
|
26
20
|
M4LIcon: Partial<IconOwnerState>;
|
|
27
21
|
M4LTooltip: Partial<TooltipOwnerState>;
|
|
28
22
|
M4LTypography: Partial<TypographyOwnerState>;
|
|
29
23
|
}
|
|
30
24
|
|
|
31
25
|
interface Components {
|
|
32
|
-
M4LButtonBase?: {
|
|
33
|
-
defaultProps?: ComponentsPropsList['M4LButtonBase'];
|
|
34
|
-
styleOverrides?: ComponentsOverrides<Theme>['M4LButtonBase'];
|
|
35
|
-
variants?: ComponentsVariants['M4LButtonBase'];
|
|
36
|
-
};
|
|
37
26
|
M4LIcon?: {
|
|
38
27
|
defaultProps?: ComponentsPropsList['M4LIcon'];
|
|
39
28
|
styleOverrides?: ComponentsOverrides<Theme>['M4LIcon'];
|
|
@@ -50,4 +39,4 @@ declare module '@mui/material/styles' {
|
|
|
50
39
|
variants?: ComponentsVariants['M4LTypography'];
|
|
51
40
|
};
|
|
52
41
|
}
|
|
53
|
-
}
|
|
42
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/Typography/Typography.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/Typography/Typography.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,eAAe,EAChB,MAAM,SAAS,CAAC;AAWjB;;GAEG;AACH,eAAO,MAAM,UAAU,0HA4DtB,CAAC"}
|
|
@@ -1,57 +1,63 @@
|
|
|
1
1
|
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import Y from "clsx";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { useModuleSkeleton as
|
|
5
|
-
import { TYPOGRAPHY_CLASSES as m, TYPOGRAPHY_KEY_COMPONENT as
|
|
6
|
-
import { TypographySlots as
|
|
7
|
-
import { StyledMUITypography as
|
|
8
|
-
import { getPropDataTestId as
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
skeleton: e,
|
|
30
|
-
ellipsis: h,
|
|
31
|
-
fontFamily: T
|
|
32
|
-
};
|
|
33
|
-
return /* @__PURE__ */ s(
|
|
34
|
-
N,
|
|
35
|
-
{
|
|
36
|
-
ref: i,
|
|
37
|
-
className: Y(d, g, m.root),
|
|
3
|
+
import { forwardRef as A } from "react";
|
|
4
|
+
import { useModuleSkeleton as _ } from "@m4l/core";
|
|
5
|
+
import { TYPOGRAPHY_FONTS as k, TYPOGRAPHY_CLASSES as m, TYPOGRAPHY_KEY_COMPONENT as N, TYPOGRAPHY_CLASS_NAME_SPECIFY as O } from "./constants.js";
|
|
6
|
+
import { TypographySlots as g } from "./slots/typographyEnum.js";
|
|
7
|
+
import { StyledMUITypography as w, StyledSkeleton as R } from "./slots/typographySlots.js";
|
|
8
|
+
import { getPropDataTestId as u } from "../../../utils/getNameDataTestId.js";
|
|
9
|
+
const L = A(
|
|
10
|
+
function(l, i) {
|
|
11
|
+
const {
|
|
12
|
+
skeletonWidth: n = "100%",
|
|
13
|
+
skeletonRows: o = 1,
|
|
14
|
+
variant: t = "body",
|
|
15
|
+
color: p = "text.primary",
|
|
16
|
+
size: S = "medium",
|
|
17
|
+
className: d,
|
|
18
|
+
dataTestid: f,
|
|
19
|
+
children: y,
|
|
20
|
+
disabled: c,
|
|
21
|
+
ellipsis: T = !1,
|
|
22
|
+
fontFamily: P = k.Inter,
|
|
23
|
+
...h
|
|
24
|
+
} = l, e = _(), r = {
|
|
25
|
+
disabled: c,
|
|
26
|
+
color: p,
|
|
27
|
+
size: S,
|
|
28
|
+
skeletonRows: o,
|
|
38
29
|
variant: t,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
30
|
+
skeleton: e,
|
|
31
|
+
ellipsis: T,
|
|
32
|
+
fontFamily: P
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ s(
|
|
35
|
+
w,
|
|
36
|
+
{
|
|
37
|
+
ref: i,
|
|
38
|
+
className: Y(
|
|
39
|
+
d,
|
|
40
|
+
O,
|
|
41
|
+
m.root
|
|
42
|
+
),
|
|
43
|
+
variant: t,
|
|
44
|
+
ownerState: { ...r },
|
|
45
|
+
...u(N, g.root, f),
|
|
46
|
+
...h,
|
|
47
|
+
children: e ? Array.from({ length: o }).map((x, a) => /* @__PURE__ */ s(
|
|
48
|
+
R,
|
|
49
|
+
{
|
|
50
|
+
width: a === o - 1 ? n : "100%",
|
|
51
|
+
variant: "text",
|
|
52
|
+
ownerState: { ...r },
|
|
53
|
+
className: m.skeleton
|
|
54
|
+
},
|
|
55
|
+
a
|
|
56
|
+
)) : y
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
55
61
|
export {
|
|
56
|
-
|
|
62
|
+
L as Typography
|
|
57
63
|
};
|
|
@@ -14,4 +14,12 @@ export declare const TYPOGRAPHY_FONTS: {
|
|
|
14
14
|
readonly Inter: "Inter";
|
|
15
15
|
readonly Jura: "Jura";
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Shared fallback stack used when the primary design-system font is unavailable.
|
|
19
|
+
*/
|
|
20
|
+
export declare const TYPOGRAPHY_FONT_FAMILY_FALLBACK = "\"Segoe UI\",Roboto,\"Helvetica Neue\",\"Open Sans\",sans-serif";
|
|
21
|
+
/**
|
|
22
|
+
* Concatenate the shared fallback stack for the supported design-system fonts.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getTypographyFontFamily(fontFamily: string): string;
|
|
17
25
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/Typography/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,6BAA6B,2BAA2B,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/Typography/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,6BAA6B,2BAA2B,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,kBAAkB,qCAG9B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,+BAA+B,oEACiB,CAAC;AAE9D;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,UAKzD"}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import { getComponentClasses as
|
|
2
|
-
import { TypographySlots as
|
|
3
|
-
const s = "M4LTypography",
|
|
1
|
+
import { getComponentClasses as t } from "../../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { TypographySlots as r } from "./slots/typographyEnum.js";
|
|
3
|
+
const s = "M4LTypography", P = "M4lclassCssSpecificity", A = t(
|
|
4
|
+
s,
|
|
5
|
+
r
|
|
6
|
+
), e = {
|
|
4
7
|
Inter: "Inter",
|
|
5
8
|
Jura: "Jura"
|
|
6
|
-
};
|
|
9
|
+
}, n = '"Segoe UI",Roboto,"Helvetica Neue","Open Sans",sans-serif';
|
|
10
|
+
function S(o) {
|
|
11
|
+
return o === e.Inter || o === e.Jura ? `${o},${n}` : o;
|
|
12
|
+
}
|
|
7
13
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
A as TYPOGRAPHY_CLASSES,
|
|
15
|
+
P as TYPOGRAPHY_CLASS_NAME_SPECIFY,
|
|
16
|
+
e as TYPOGRAPHY_FONTS,
|
|
17
|
+
n as TYPOGRAPHY_FONT_FAMILY_FALLBACK,
|
|
18
|
+
s as TYPOGRAPHY_KEY_COMPONENT,
|
|
19
|
+
S as getTypographyFontFamily
|
|
12
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.styles.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/Typography/typography.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typography.styles.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/Typography/typography.styles.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAwB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAOtE,eAAO,MAAM,gBAAgB,EAAE,gBA8C9B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { getPropertyByString as
|
|
1
|
+
import { getPropertyByString as o } from "@m4l/core";
|
|
2
2
|
import { getSizeStyles as e } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
|
-
import { getTypographyStyles as
|
|
4
|
-
|
|
3
|
+
import { getTypographyStyles as r } from "../../../utils/getTypographyStyles.js";
|
|
4
|
+
import { getTypographyFontFamily as s, TYPOGRAPHY_FONTS as t } from "./constants.js";
|
|
5
|
+
const d = {
|
|
5
6
|
/**
|
|
6
7
|
* Root slot styles for the Typography primitive.
|
|
7
8
|
*/
|
|
@@ -16,10 +17,16 @@ const p = {
|
|
|
16
17
|
...i?.disabled || i?.color === "text.disabled" ? {
|
|
17
18
|
color: l.vars.palette.text.disabled
|
|
18
19
|
} : {
|
|
19
|
-
color:
|
|
20
|
+
color: o(
|
|
21
|
+
l.vars.palette,
|
|
22
|
+
i?.color || "text.primary",
|
|
23
|
+
"text.primary"
|
|
24
|
+
)
|
|
20
25
|
},
|
|
21
|
-
fontFamily:
|
|
22
|
-
|
|
26
|
+
fontFamily: s(
|
|
27
|
+
i?.fontFamily ?? t.Inter
|
|
28
|
+
),
|
|
29
|
+
...r(
|
|
23
30
|
l.generalSettings.isMobile,
|
|
24
31
|
i?.size || "medium",
|
|
25
32
|
i?.variant || "bodyStandard"
|
|
@@ -40,5 +47,5 @@ const p = {
|
|
|
40
47
|
})
|
|
41
48
|
};
|
|
42
49
|
export {
|
|
43
|
-
|
|
50
|
+
d as typographyStyles
|
|
44
51
|
};
|
package/extended/mui/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/base/src/extended/mui/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/base/src/extended/mui/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAE;AAC3B,cAAc,cAAc,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { ICON_CLASSES as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { RootStyled as x, SkeletonStyled as A } from "./extended/mui/ButtonBase/slots/ButtonBaseSlots.js";
|
|
8
|
-
import { Tooltip as L } from "./extended/mui/Tooltip/Tooltip.js";
|
|
9
|
-
import { DEFAULT_TOOLTIP_OFFSET as l, TOOLTIP_CLASSES as F, TOOLTIP_KEY_COMPONENT as R } from "./extended/mui/Tooltip/constants.js";
|
|
10
|
-
import { Typography as s } from "./extended/mui/Typography/Typography.js";
|
|
11
|
-
import { TYPOGRAPHY_CLASSES as M, TYPOGRAPHY_CLASS_NAME_SPECIFY as a, TYPOGRAPHY_FONTS as G, TYPOGRAPHY_KEY_COMPONENT as H } from "./extended/mui/Typography/constants.js";
|
|
1
|
+
import { Icon as o } from "./components/Icon/Icon.js";
|
|
2
|
+
import { ICON_CLASSES as _, ICON_KEY_COMPONENT as E, ICON_PREFIX as S } from "./components/Icon/constants.js";
|
|
3
|
+
import { Tooltip as Y } from "./extended/mui/Tooltip/Tooltip.js";
|
|
4
|
+
import { DEFAULT_TOOLTIP_OFFSET as N, TOOLTIP_CLASSES as A, TOOLTIP_KEY_COMPONENT as p } from "./extended/mui/Tooltip/constants.js";
|
|
5
|
+
import { Typography as L } from "./extended/mui/Typography/Typography.js";
|
|
6
|
+
import { TYPOGRAPHY_CLASSES as e, TYPOGRAPHY_CLASS_NAME_SPECIFY as f, TYPOGRAPHY_FONTS as m, TYPOGRAPHY_KEY_COMPONENT as x } from "./extended/mui/Typography/constants.js";
|
|
12
7
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
a as TYPOGRAPHY_CLASS_NAME_SPECIFY,
|
|
27
|
-
G as TYPOGRAPHY_FONTS,
|
|
28
|
-
H as TYPOGRAPHY_KEY_COMPONENT,
|
|
29
|
-
L as Tooltip,
|
|
30
|
-
s as Typography,
|
|
31
|
-
p as buttonBaseStyles
|
|
8
|
+
N as DEFAULT_TOOLTIP_OFFSET,
|
|
9
|
+
_ as ICON_CLASSES,
|
|
10
|
+
E as ICON_KEY_COMPONENT,
|
|
11
|
+
S as ICON_PREFIX,
|
|
12
|
+
o as Icon,
|
|
13
|
+
A as TOOLTIP_CLASSES,
|
|
14
|
+
p as TOOLTIP_KEY_COMPONENT,
|
|
15
|
+
e as TYPOGRAPHY_CLASSES,
|
|
16
|
+
f as TYPOGRAPHY_CLASS_NAME_SPECIFY,
|
|
17
|
+
m as TYPOGRAPHY_FONTS,
|
|
18
|
+
x as TYPOGRAPHY_KEY_COMPONENT,
|
|
19
|
+
Y as Tooltip,
|
|
20
|
+
L as Typography
|
|
32
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/base",
|
|
3
|
-
"version": "1.1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"@emotion/react": "11.14.0",
|
|
35
35
|
"clsx": "2.1.1",
|
|
36
36
|
"react": "19.2.4",
|
|
37
|
-
"@mui/material": "
|
|
37
|
+
"@mui/material": "5.16.7"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ButtonBaseProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Render a ButtonBase that can swap its content for a skeleton placeholder.
|
|
4
|
-
*/
|
|
5
|
-
export declare const ButtonBase: import('react').ForwardRefExoticComponent<Omit<ButtonBaseProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
//# sourceMappingURL=ButtonBase.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBase.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/ButtonBase/ButtonBase.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,UAAU,4HAkCtB,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { forwardRef as f } from "react";
|
|
3
|
-
import { RootStyled as u, SkeletonStyled as c } from "./slots/ButtonBaseSlots.js";
|
|
4
|
-
const B = f(
|
|
5
|
-
function(n, r) {
|
|
6
|
-
const {
|
|
7
|
-
children: d,
|
|
8
|
-
disabled: i,
|
|
9
|
-
ownerState: e,
|
|
10
|
-
skeletonHeight: l = "100%",
|
|
11
|
-
skeletonVariant: s = "rounded",
|
|
12
|
-
skeletonWidth: a = "100%",
|
|
13
|
-
...h
|
|
14
|
-
} = n, t = e?.isSkeleton ?? !1;
|
|
15
|
-
return /* @__PURE__ */ o(
|
|
16
|
-
u,
|
|
17
|
-
{
|
|
18
|
-
ref: r,
|
|
19
|
-
disabled: t || i,
|
|
20
|
-
ownerState: e,
|
|
21
|
-
...h,
|
|
22
|
-
children: t ? /* @__PURE__ */ o(
|
|
23
|
-
c,
|
|
24
|
-
{
|
|
25
|
-
"aria-hidden": "true",
|
|
26
|
-
ownerState: e,
|
|
27
|
-
height: l,
|
|
28
|
-
variant: s,
|
|
29
|
-
width: a
|
|
30
|
-
}
|
|
31
|
-
) : d
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
export {
|
|
37
|
-
B as ButtonBase
|
|
38
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBase.styles.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/ButtonBase/ButtonBase.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,gBAAgB,EAAE,gBAO9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/ButtonBase/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,kBAAkB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { ButtonBase } from './ButtonBase';
|
|
2
|
-
export { buttonBaseStyles } from './ButtonBase.styles';
|
|
3
|
-
export { BUTTON_BASE_KEY_COMPONENT } from './constants';
|
|
4
|
-
export * from './slots';
|
|
5
|
-
export type { ButtonBaseOwnerState, ButtonBaseProps, ButtonBaseSlotsType, ButtonBaseStyles, } from './types';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/ButtonBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,cAAc,SAAS,CAAC;AACxB,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBaseEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/base/src/extended/mui/ButtonBase/slots/ButtonBaseEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "action" | "sx" | "classes" | "className" | "style" | "tabIndex" | "children" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
2
|
-
ownerState?: (Partial<import('..').ButtonBaseOwnerState> & Record<string, unknown>) | undefined;
|
|
3
|
-
}, {}, {}>;
|
|
4
|
-
export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "sx" | "classes" | "className" | "style" | "children" | "height" | "width" | "animation" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
5
|
-
ownerState?: (Partial<import('..').ButtonBaseOwnerState> & Record<string, unknown>) | undefined;
|
|
6
|
-
}, {}, {}>;
|
|
7
|
-
//# sourceMappingURL=ButtonBaseSlots.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBaseSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/base/src/extended/mui/ButtonBase/slots/ButtonBaseSlots.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU;;UAIE,CAAC;AAE1B,eAAO,MAAM,cAAc;;UAIE,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import s from "@mui/material/ButtonBase";
|
|
2
|
-
import l from "@mui/material/Skeleton";
|
|
3
|
-
import { styled as t } from "@mui/material/styles";
|
|
4
|
-
import { buttonBaseStyles as r } from "../ButtonBase.styles.js";
|
|
5
|
-
import { BUTTON_BASE_KEY_COMPONENT as e } from "../constants.js";
|
|
6
|
-
import { ButtonBaseSlots as m } from "./ButtonBaseEnum.js";
|
|
7
|
-
const f = t(s, {
|
|
8
|
-
name: e,
|
|
9
|
-
slot: m.root,
|
|
10
|
-
shouldForwardProp: (o) => o !== "ownerState"
|
|
11
|
-
})(r.root), i = t(l, {
|
|
12
|
-
name: e,
|
|
13
|
-
slot: m.skeleton,
|
|
14
|
-
shouldForwardProp: (o) => o !== "ownerState"
|
|
15
|
-
})(r.skeleton);
|
|
16
|
-
export {
|
|
17
|
-
f as RootStyled,
|
|
18
|
-
i as SkeletonStyled
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/base/src/extended/mui/ButtonBase/slots/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ButtonBaseProps as MUIButtonBaseProps } from '@mui/material/ButtonBase';
|
|
2
|
-
import { SkeletonProps as MUISkeletonProps } from '@mui/material/Skeleton';
|
|
3
|
-
import { Theme } from '@mui/material/styles';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
|
-
import { M4LOverridesStyleRules } from '../../../@types/augmentations';
|
|
6
|
-
import { BUTTON_BASE_KEY_COMPONENT } from './constants';
|
|
7
|
-
import { ButtonBaseSlots } from './slots/ButtonBaseEnum';
|
|
8
|
-
export interface ButtonBaseOwnerState extends Record<string, unknown> {
|
|
9
|
-
isSkeleton?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface ButtonBaseProps extends Omit<MUIButtonBaseProps, 'children'> {
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
ownerState?: ButtonBaseOwnerState;
|
|
14
|
-
skeletonHeight?: number | string;
|
|
15
|
-
skeletonVariant?: MUISkeletonProps['variant'];
|
|
16
|
-
skeletonWidth?: number | string;
|
|
17
|
-
}
|
|
18
|
-
export type ButtonBaseSlotsType = keyof typeof ButtonBaseSlots;
|
|
19
|
-
export type ButtonBaseStyles = M4LOverridesStyleRules<ButtonBaseSlotsType, typeof BUTTON_BASE_KEY_COMPONENT, Theme>;
|
|
20
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/base/src/extended/mui/ButtonBase/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,oBAAqB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IAC5C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,eAAe,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,eAAe,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CACnD,mBAAmB,EACnB,OAAO,yBAAyB,EAChC,KAAK,CACN,CAAC"}
|