@m4l/components 9.1.53 → 9.1.55
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 +10 -1
- package/components/Chip/Chip.js +108 -0
- package/components/Chip/ChipStyles.js +533 -0
- package/components/Chip/constants.d.ts +4 -0
- package/components/Chip/constants.js +8 -0
- package/components/Chip/slots/ChipEnum.d.ts +7 -7
- package/components/Chip/slots/ChipEnum.js +11 -0
- package/components/Chip/slots/ChipSlots.js +35 -0
- package/components/Chip/slots/index.js +1 -0
- package/components/Chip/types.d.ts +41 -11
- package/components/DynamicFilter/types.d.ts +2 -2
- package/components/Label/Label.styles.js +28 -8
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +9 -21
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +24 -0
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +3 -5
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +161 -4
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.test.d.ts +1 -0
- package/components/hook-form/RHFAutocomplete/constants.d.ts +9 -0
- package/components/hook-form/RHFAutocomplete/constants.js +4 -0
- package/components/hook-form/RHFAutocomplete/oldTypes.d.ts +43 -0
- package/components/hook-form/RHFAutocomplete/slots/RHFAutocompleteEnum.d.ts +4 -0
- package/components/hook-form/RHFAutocomplete/slots/RHFAutocompleteEnum.js +8 -0
- package/components/hook-form/RHFAutocomplete/slots/RHFAutocompleteSlots.d.ts +6 -0
- package/components/hook-form/RHFAutocomplete/slots/RHFAutocompleteSlots.js +17 -0
- package/components/hook-form/RHFAutocomplete/slots/index.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/slots/index.js +1 -0
- package/components/hook-form/RHFAutocomplete/types.d.ts +63 -25
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +5 -8
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.js +105 -4
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsyncStyles.d.ts +2 -0
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsyncStyles.js +6 -0
- package/components/hook-form/RHFAutocompleteAsync/constants.d.ts +9 -0
- package/components/hook-form/RHFAutocompleteAsync/constants.js +4 -0
- package/components/hook-form/RHFAutocompleteAsync/slots/RHFAutocompleteEnumAsync.d.ts +3 -0
- package/components/hook-form/RHFAutocompleteAsync/slots/RHFAutocompleteEnumAsync.js +7 -0
- package/components/hook-form/RHFAutocompleteAsync/slots/RHFAutocompleteSlotsAsync.d.ts +1 -0
- package/components/hook-form/RHFAutocompleteAsync/slots/RHFAutocompleteSlotsAsync.js +12 -0
- package/components/hook-form/RHFAutocompleteAsync/slots/index.d.ts +2 -0
- package/components/hook-form/RHFAutocompleteAsync/slots/index.js +1 -0
- package/components/hook-form/RHFAutocompleteAsync/types.d.ts +19 -5
- package/components/mui_extended/Autocomplete/Autocomplete.d.ts +1 -1
- package/components/mui_extended/Autocomplete/Autocomplete.js +299 -0
- package/components/mui_extended/Autocomplete/AutocompleteStyles.js +136 -0
- package/components/mui_extended/Autocomplete/constants.js +4 -0
- package/components/mui_extended/Autocomplete/dictionary.d.ts +0 -2
- package/components/mui_extended/Autocomplete/index.js +1 -0
- package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +3 -0
- package/components/mui_extended/Autocomplete/renderOptions/index.js +24 -0
- package/components/mui_extended/Autocomplete/slots /AutocompleteEnum.d.ts +2 -1
- package/components/mui_extended/Autocomplete/slots /AutocompleteEnum.js +19 -0
- package/components/mui_extended/Autocomplete/slots /AutocompleteSlots.d.ts +3 -0
- package/components/mui_extended/Autocomplete/slots /AutocompleteSlots.js +72 -0
- package/components/mui_extended/Autocomplete/slots /index.js +1 -0
- package/components/mui_extended/Autocomplete/types.d.ts +2 -2
- package/components/mui_extended/CircularProgress/CircularProgress.js +1 -1
- package/components/mui_extended/MenuItem/MenuItem.js +11 -12
- package/components/mui_extended/MenuItem/MenuItem.styles.js +56 -66
- package/components/mui_extended/MenuItem/constants.d.ts +4 -0
- package/components/mui_extended/MenuItem/constants.js +5 -1
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.d.ts +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +3 -3
- package/components/mui_extended/MenuItem/types.d.ts +32 -11
- package/components/mui_extended/Pager/classes/index.d.ts +1 -1
- package/components/mui_extended/Popper/Popper.js +79 -0
- package/components/mui_extended/Popper/PopperStyles.js +265 -0
- package/components/mui_extended/Popper/constants.js +4 -0
- package/components/mui_extended/Popper/index.js +1 -0
- package/components/mui_extended/Popper/slots/PopperEnum.js +6 -0
- package/components/mui_extended/Popper/slots/PopperStlots.js +12 -0
- package/components/mui_extended/Popper/slots/index.js +1 -0
- package/components/mui_extended/Popper/types.js +1 -0
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/TextField/TextField.js +11 -11
- package/components/mui_extended/TextField/TextField.styles.js +108 -203
- package/components/mui_extended/TextField/constants.d.ts +10 -0
- package/components/mui_extended/TextField/constants.js +8 -3
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +4 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.js +7 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.js +1 -1
- package/components/mui_extended/TextField/types.d.ts +3 -4
- package/components/mui_extended/Typography/Typography.js +4 -3
- package/components/mui_extended/Typography/constants.d.ts +4 -0
- package/components/mui_extended/Typography/constants.js +5 -1
- package/components/mui_extended/Typography/slots/typographySlots.js +1 -1
- package/package.json +1 -1
- package/utils/getHeightSizeStyles.d.ts +12 -0
- package/utils/getHeightSizeStyles.js +13 -0
- package/components/hook-form/RHFAutocomplete/classes/constant.d.ts +0 -1
- package/components/hook-form/RHFAutocomplete/classes/constant.js +0 -4
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +0 -19
- package/components/hook-form/RHFAutocomplete/classes/index.js +0 -77
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +0 -26
- package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -1
- package/components/hook-form/RHFAutocomplete/styles.js +0 -7
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.d.ts +0 -5
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +0 -293
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.d.ts +0 -9
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.js +0 -281
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +0 -6
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.js +0 -25
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +0 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.js +0 -9
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/index.d.ts +0 -5
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/index.js +0 -28
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +0 -6
- package/components/hook-form/RHFAutocomplete/test/constants.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/test/constants.js +0 -6
- package/components/hook-form/RHFAutocomplete/test/utils.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/test/utils.js +0 -7
- package/components/hook-form/RHFAutocompleteAsync/classes/constant.d.ts +0 -1
- package/components/hook-form/RHFAutocompleteAsync/classes/constant.js +0 -4
- package/components/hook-form/RHFAutocompleteAsync/classes/index.d.ts +0 -9
- package/components/hook-form/RHFAutocompleteAsync/classes/index.js +0 -26
- package/components/hook-form/RHFAutocompleteAsync/classes/types.d.ts +0 -4
- package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +0 -4
- package/components/hook-form/RHFAutocompleteAsync/styles.js +0 -34
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +0 -10
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.js +0 -103
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +0 -9
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.js +0 -103
- package/components/hook-form/RHFAutocompleteAsync/tests/constants.d.ts +0 -1
- package/components/hook-form/RHFAutocompleteAsync/tests/constants.js +0 -4
- package/components/hook-form/RHFAutocompleteAsync/tests/utils.d.ts +0 -2
- package/components/hook-form/RHFAutocompleteAsync/tests/utils.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { MenuItem } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { a as MENUITEM_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { m as menuItemStyles } from "../MenuItem.styles.js";
|
|
5
5
|
import { M as MenuItemSlots } from "./MenuItemEnum.js";
|
|
6
6
|
import { T as Typography } from "../../Typography/Typography.js";
|
|
@@ -8,8 +8,8 @@ import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
|
8
8
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
9
9
|
const MenuItemRootStyled = styled(MenuItem, {
|
|
10
10
|
name: MENUITEM_KEY_COMPONENT,
|
|
11
|
-
slot: MenuItemSlots.
|
|
12
|
-
})(menuItemStyles?.
|
|
11
|
+
slot: MenuItemSlots.root
|
|
12
|
+
})(menuItemStyles?.root);
|
|
13
13
|
const MenuItemContainerStyled = styled("div", {
|
|
14
14
|
name: MENUITEM_KEY_COMPONENT,
|
|
15
15
|
slot: MenuItemSlots.menuItemContainer
|
|
@@ -5,27 +5,48 @@ import { MenuItemSlots } from './slots';
|
|
|
5
5
|
import { MENUITEM_KEY_COMPONENT } from './constants';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* Omit<MUIMenuItemProps, 'size' | 'color'>
|
|
10
|
-
* [startIcon] - Prop opcional para el ícono a la izquierda en el `MenuItem`.
|
|
11
|
-
* [endIcon] - Prop opcional para el ícono a la derecha en el `MenuItem`.
|
|
12
|
-
* label - Texto que describe el `MenuItem`.
|
|
13
|
-
* [selected] - Indica si el item está seleccionado.
|
|
14
|
-
* [componentPaletteColor] - Personalización del color de la paleta del componente.
|
|
15
|
-
* [color] - Define el color del `MenuItem` (solo 'primary' permitido).
|
|
16
|
-
* [disabled] - Indica si el `MenuItem` está deshabilitado.
|
|
17
|
-
* [size] - Tamaño del `MenuItem` (por defecto 'medium').
|
|
8
|
+
* Propiedades del componente `MenuItem`.
|
|
18
9
|
*/
|
|
19
10
|
export interface MenuItemProps extends Omit<MUIMenuItemProps, 'size' | 'color'> {
|
|
11
|
+
/**
|
|
12
|
+
* Prop opcional para el ícono a la izquierda en el `MenuItem`
|
|
13
|
+
*/
|
|
20
14
|
startIcon?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Prop opcional para el ícono a la derecha en el `MenuItem`
|
|
17
|
+
*/
|
|
21
18
|
endIcon?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Texto que describe el `MenuItem`
|
|
21
|
+
*/
|
|
22
22
|
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* Indica si el item está seleccionado
|
|
25
|
+
*/
|
|
23
26
|
selected?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Define el color del `MenuItem`
|
|
29
|
+
*/
|
|
24
30
|
color?: Extract<ComponentPalletColor, 'primary' | 'default' | 'error'>;
|
|
31
|
+
/**
|
|
32
|
+
* Personalización del color de la paleta del componente
|
|
33
|
+
*/
|
|
25
34
|
componentPaletteColor?: ComponentPalletColor;
|
|
35
|
+
/**
|
|
36
|
+
* Indica si el `MenuItem` está deshabilitado
|
|
37
|
+
*/
|
|
26
38
|
disabled?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Define el tamaño del `MenuItem`
|
|
41
|
+
*/
|
|
27
42
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
43
|
+
/**
|
|
44
|
+
* Define el with of skeleton mode
|
|
45
|
+
*/
|
|
28
46
|
skeletonWidth?: string | number;
|
|
47
|
+
/**
|
|
48
|
+
* Define si el ícono de check está activo
|
|
49
|
+
*/
|
|
29
50
|
checked?: boolean;
|
|
30
51
|
}
|
|
31
52
|
/**
|
|
@@ -43,4 +64,4 @@ export type MenuItemSlotsType = keyof typeof MenuItemSlots;
|
|
|
43
64
|
/**
|
|
44
65
|
* Estilos aplicables al `MenuItem` utilizando temas y slots personalizados.
|
|
45
66
|
*/
|
|
46
|
-
export type MenuItemStyles =
|
|
67
|
+
export type MenuItemStyles = OverridesStyleRules<MenuItemSlotsType, typeof MENUITEM_KEY_COMPONENT, Theme>;
|
|
@@ -7,7 +7,6 @@ export declare function getPagerUtilityClass(slot: string): string;
|
|
|
7
7
|
export declare const pagerUtilityClasses: () => {
|
|
8
8
|
select: string;
|
|
9
9
|
root: string;
|
|
10
|
-
skeletonRoot: string;
|
|
11
10
|
labelRowsPerPageContainer: string;
|
|
12
11
|
labelRowsPager: string;
|
|
13
12
|
selectMenuPopover: string;
|
|
@@ -19,6 +18,7 @@ export declare const pagerUtilityClasses: () => {
|
|
|
19
18
|
actionIconPrevious: string;
|
|
20
19
|
actionIconNextPage: string;
|
|
21
20
|
actionIconLastPage: string;
|
|
21
|
+
skeletonRoot: string;
|
|
22
22
|
skeletonRowsPerPage: string;
|
|
23
23
|
skeletonButtonContainer: string;
|
|
24
24
|
skeletonIconButton: string;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getPropertyByString } from "@m4l/core";
|
|
3
|
+
import { useTheme } from "@mui/material";
|
|
4
|
+
import { forwardRef, useRef } from "react";
|
|
5
|
+
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
6
|
+
import { P as PopperRootStyled } from "./slots/PopperStlots.js";
|
|
7
|
+
const Popper = forwardRef((props, ref) => {
|
|
8
|
+
const {
|
|
9
|
+
color = "default",
|
|
10
|
+
variant = "standard",
|
|
11
|
+
children,
|
|
12
|
+
anchorEl,
|
|
13
|
+
arrow = false,
|
|
14
|
+
placement,
|
|
15
|
+
initialPlacement = "top",
|
|
16
|
+
...others
|
|
17
|
+
} = props;
|
|
18
|
+
const theme = useTheme();
|
|
19
|
+
const arrowRef = useRef(null);
|
|
20
|
+
const paletteColor = getPropertyByString(
|
|
21
|
+
theme.vars.palette,
|
|
22
|
+
color || "default",
|
|
23
|
+
theme.vars.palette.default
|
|
24
|
+
);
|
|
25
|
+
const ownerState = {
|
|
26
|
+
paletteColor,
|
|
27
|
+
popperColor: color,
|
|
28
|
+
arrow
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
PopperRootStyled,
|
|
32
|
+
{
|
|
33
|
+
"aria-label": props.placement,
|
|
34
|
+
placement: props.placement || initialPlacement,
|
|
35
|
+
"data-testid": "popper-root",
|
|
36
|
+
className: getComponentSlotRoot("M4LPopperClass"),
|
|
37
|
+
variant,
|
|
38
|
+
ownerState: { ...ownerState },
|
|
39
|
+
anchorEl,
|
|
40
|
+
color,
|
|
41
|
+
ref,
|
|
42
|
+
modifiers: [
|
|
43
|
+
{
|
|
44
|
+
name: "flip",
|
|
45
|
+
options: {
|
|
46
|
+
// Se implementan los fallback placements, ya que esto obligara a que el Popper se muestre siguiendo las posiciones establecidas y no se las salte.ninguna posicion al rehubicarse.
|
|
47
|
+
fallbackPlacements: [
|
|
48
|
+
"bottom-start",
|
|
49
|
+
"bottom",
|
|
50
|
+
"bottom-end",
|
|
51
|
+
"top-start",
|
|
52
|
+
"top",
|
|
53
|
+
"top-end",
|
|
54
|
+
"left",
|
|
55
|
+
"left-start",
|
|
56
|
+
"left-end",
|
|
57
|
+
"right",
|
|
58
|
+
"right-start",
|
|
59
|
+
"right-end"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "arrow",
|
|
65
|
+
options: {
|
|
66
|
+
element: arrowRef.current,
|
|
67
|
+
padding: 8
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
...others,
|
|
72
|
+
children
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
Popper.displayName = "Popper";
|
|
77
|
+
export {
|
|
78
|
+
Popper as P
|
|
79
|
+
};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
const popperStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Styles for the root element of the popper component.
|
|
4
|
+
* @author SebastianM - automatic
|
|
5
|
+
* @createdAt 2024-12-06 10:20:25 - automatic
|
|
6
|
+
* @updatedAt 2024-12-23 10:04:43 - automatic
|
|
7
|
+
* @updatedUser SebastianM - automatic
|
|
8
|
+
*/
|
|
9
|
+
popperRoot: ({ theme, ownerState }) => ({
|
|
10
|
+
position: "relative",
|
|
11
|
+
display: "flex",
|
|
12
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
13
|
+
borderRadius: theme.vars.size.borderRadius.r1,
|
|
14
|
+
boxShadow: theme.vars.shadows[3],
|
|
15
|
+
...ownerState.arrow && {
|
|
16
|
+
// Top-Center
|
|
17
|
+
'&[data-popper-placement="top"]': {
|
|
18
|
+
"&.M4LPopperClass-root": {
|
|
19
|
+
marginBottom: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
20
|
+
},
|
|
21
|
+
"&::before": {
|
|
22
|
+
content: '""',
|
|
23
|
+
position: "absolute",
|
|
24
|
+
bottom: -12,
|
|
25
|
+
left: "50%",
|
|
26
|
+
transform: "translateX(-50%)",
|
|
27
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
28
|
+
zIndex: -1,
|
|
29
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
30
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
31
|
+
rotate: "45deg",
|
|
32
|
+
boxShadow: theme.vars.shadows[4],
|
|
33
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
34
|
+
clipPath: "polygon(100% 100%, 100% 0, 0 100%)"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
// Top-Start
|
|
38
|
+
'&[data-popper-placement="top-start"]': {
|
|
39
|
+
"&.M4LPopperClass-root": {
|
|
40
|
+
marginBottom: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
41
|
+
},
|
|
42
|
+
"&::before": {
|
|
43
|
+
content: '""',
|
|
44
|
+
position: "absolute",
|
|
45
|
+
bottom: -6,
|
|
46
|
+
left: 10,
|
|
47
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
48
|
+
zIndex: -1,
|
|
49
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
50
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
51
|
+
rotate: "45deg",
|
|
52
|
+
boxShadow: theme.vars.shadows[4],
|
|
53
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
54
|
+
clipPath: "polygon(100% 100%, 100% 0, 0 100%)"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
// Top-End
|
|
58
|
+
'&[data-popper-placement="top-end"]': {
|
|
59
|
+
"&.M4LPopperClass-root": {
|
|
60
|
+
marginBottom: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
61
|
+
},
|
|
62
|
+
"&::before": {
|
|
63
|
+
content: '""',
|
|
64
|
+
position: "absolute",
|
|
65
|
+
bottom: -6,
|
|
66
|
+
right: 10,
|
|
67
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
68
|
+
zIndex: -1,
|
|
69
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
70
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
71
|
+
rotate: "45deg",
|
|
72
|
+
boxShadow: theme.vars.shadows[4],
|
|
73
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
74
|
+
clipPath: "polygon(100% 100%, 100% 0, 0 100%)"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
// Bottom-Center
|
|
78
|
+
'&[data-popper-placement="bottom"]': {
|
|
79
|
+
"&.M4LPopperClass-root": {
|
|
80
|
+
marginTop: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
81
|
+
},
|
|
82
|
+
"&::before": {
|
|
83
|
+
content: '""',
|
|
84
|
+
position: "absolute",
|
|
85
|
+
top: 0,
|
|
86
|
+
left: "50%",
|
|
87
|
+
transform: "translateX(-50%)",
|
|
88
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
89
|
+
zIndex: -1,
|
|
90
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
91
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
92
|
+
rotate: "45deg",
|
|
93
|
+
boxShadow: theme.vars.shadows[4],
|
|
94
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
95
|
+
clipPath: "polygon(0 0, 100% 0, 0 100%)"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
// Bottom-Start
|
|
99
|
+
'&[data-popper-placement="bottom-start"]': {
|
|
100
|
+
"&.M4LPopperClass-root": {
|
|
101
|
+
marginTop: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
102
|
+
},
|
|
103
|
+
"&::before": {
|
|
104
|
+
content: '""',
|
|
105
|
+
position: "absolute",
|
|
106
|
+
top: -5,
|
|
107
|
+
left: 10,
|
|
108
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
109
|
+
zIndex: -1,
|
|
110
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
111
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
112
|
+
rotate: "45deg",
|
|
113
|
+
boxShadow: theme.vars.shadows[4],
|
|
114
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
115
|
+
clipPath: "polygon(0 0, 100% 0, 0 100%)"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
// Bottom-End
|
|
119
|
+
'&[data-popper-placement="bottom-end"]': {
|
|
120
|
+
"&.M4LPopperClass-root": {
|
|
121
|
+
marginTop: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
122
|
+
},
|
|
123
|
+
"&::before": {
|
|
124
|
+
content: '""',
|
|
125
|
+
position: "absolute",
|
|
126
|
+
top: -5,
|
|
127
|
+
right: 10,
|
|
128
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
129
|
+
zIndex: -1,
|
|
130
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
131
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
132
|
+
rotate: "45deg",
|
|
133
|
+
boxShadow: theme.vars.shadows[4],
|
|
134
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
135
|
+
clipPath: "polygon(0 0, 100% 0, 0 100%)"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
// Left-Center
|
|
139
|
+
'&[data-popper-placement="left"]': {
|
|
140
|
+
"&.M4LPopperClass-root": {
|
|
141
|
+
marginRight: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
142
|
+
},
|
|
143
|
+
"&::before": {
|
|
144
|
+
content: '""',
|
|
145
|
+
position: "absolute",
|
|
146
|
+
right: -0,
|
|
147
|
+
top: "50%",
|
|
148
|
+
transform: "translateY(-50%)",
|
|
149
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
150
|
+
zIndex: -1,
|
|
151
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
152
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
153
|
+
rotate: "45deg",
|
|
154
|
+
boxShadow: theme.vars.shadows[4],
|
|
155
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
156
|
+
clipPath: "polygon(0 0, 100% 100%, 100% 0)"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
// Left-Start
|
|
160
|
+
'&[data-popper-placement="left-start"]': {
|
|
161
|
+
"&.M4LPopperClass-root": {
|
|
162
|
+
marginRight: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
163
|
+
},
|
|
164
|
+
"&::before": {
|
|
165
|
+
content: '""',
|
|
166
|
+
position: "absolute",
|
|
167
|
+
right: -5,
|
|
168
|
+
top: 10,
|
|
169
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
170
|
+
zIndex: -1,
|
|
171
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
172
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
173
|
+
rotate: "45deg",
|
|
174
|
+
boxShadow: theme.vars.shadows[4],
|
|
175
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
176
|
+
clipPath: "polygon(0 0, 100% 100%, 100% 0)"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
// Left-end
|
|
180
|
+
'&[data-popper-placement="left-end"]': {
|
|
181
|
+
"&.M4LPopperClass-root": {
|
|
182
|
+
marginRight: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
183
|
+
},
|
|
184
|
+
"&::before": {
|
|
185
|
+
content: '""',
|
|
186
|
+
position: "absolute",
|
|
187
|
+
right: -5,
|
|
188
|
+
bottom: 10,
|
|
189
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
190
|
+
zIndex: -1,
|
|
191
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
192
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
193
|
+
rotate: "45deg",
|
|
194
|
+
boxShadow: theme.vars.shadows[4],
|
|
195
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
196
|
+
clipPath: "polygon(0 0, 100% 100%, 100% 0)"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
// Right-Center
|
|
200
|
+
'&[data-popper-placement="right"]': {
|
|
201
|
+
"&.M4LPopperClass-root": {
|
|
202
|
+
marginLeft: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
203
|
+
},
|
|
204
|
+
"&::before": {
|
|
205
|
+
content: '""',
|
|
206
|
+
position: "absolute",
|
|
207
|
+
left: -1,
|
|
208
|
+
top: "50%",
|
|
209
|
+
transform: "translateY(-50%)",
|
|
210
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
211
|
+
zIndex: -1,
|
|
212
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
213
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
214
|
+
rotate: "315deg",
|
|
215
|
+
boxShadow: theme.vars.shadows[4],
|
|
216
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
217
|
+
clipPath: "polygon(0 0, 100% 0, 0 100%)"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
// Right-Start
|
|
221
|
+
'&[data-popper-placement="right-start"]': {
|
|
222
|
+
"&.M4LPopperClass-root": {
|
|
223
|
+
marginLeft: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
224
|
+
},
|
|
225
|
+
"&::before": {
|
|
226
|
+
content: '""',
|
|
227
|
+
position: "absolute",
|
|
228
|
+
left: -6,
|
|
229
|
+
top: 10,
|
|
230
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
231
|
+
zIndex: -1,
|
|
232
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
233
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
234
|
+
rotate: "315deg",
|
|
235
|
+
boxShadow: theme.vars.shadows[4],
|
|
236
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
237
|
+
clipPath: "polygon(0 0, 100% 0, 0 100%)"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
// Right-End
|
|
241
|
+
'&[data-popper-placement="right-end"]': {
|
|
242
|
+
"&.M4LPopperClass-root": {
|
|
243
|
+
marginLeft: theme.vars.size.baseSpacings.sp2 + "!important"
|
|
244
|
+
},
|
|
245
|
+
"&::before": {
|
|
246
|
+
content: '""',
|
|
247
|
+
position: "absolute",
|
|
248
|
+
left: -6,
|
|
249
|
+
bottom: 10,
|
|
250
|
+
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
251
|
+
zIndex: -1,
|
|
252
|
+
width: theme.vars.size.baseSpacings.sp4,
|
|
253
|
+
height: theme.vars.size.baseSpacings.sp4,
|
|
254
|
+
rotate: "315deg",
|
|
255
|
+
boxShadow: theme.vars.shadows[4],
|
|
256
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
257
|
+
clipPath: "polygon(0 0, 100% 0, 0 100%)"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
})
|
|
262
|
+
};
|
|
263
|
+
export {
|
|
264
|
+
popperStyles as p
|
|
265
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Popper } from "@mui/material";
|
|
2
|
+
import { styled } from "@mui/material/styles";
|
|
3
|
+
import { P as POPPER_KEY_COMPONENT } from "../constants.js";
|
|
4
|
+
import { p as popperStyles } from "../PopperStyles.js";
|
|
5
|
+
import { P as PopperSlots } from "./PopperEnum.js";
|
|
6
|
+
const PopperRootStyled = styled(Popper, {
|
|
7
|
+
name: POPPER_KEY_COMPONENT,
|
|
8
|
+
slot: PopperSlots.popperRoot
|
|
9
|
+
})(popperStyles?.popperRoot);
|
|
10
|
+
export {
|
|
11
|
+
PopperRootStyled as P
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SelectRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SelectProps<unknown>, "children" | "value" | "ref" | "onClose" | "title" | "size" | "name" | "error" | "input" | "rows" | "id" | "type" | "components" | "hidden" | "color" | "content" | "style" | "open" | "multiple" | "disabled" | "variant" | "margin" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "onOpen" | "slotProps" | "slots" | "label" | "autoComplete" | "placeholder" | "readOnly" | "required" | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "
|
|
1
|
+
export declare const SelectRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SelectProps<unknown>, "children" | "value" | "ref" | "onClose" | "title" | "size" | "name" | "error" | "input" | "rows" | "id" | "type" | "components" | "hidden" | "color" | "content" | "style" | "open" | "multiple" | "disabled" | "variant" | "margin" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "onOpen" | "slotProps" | "slots" | "label" | "autoComplete" | "placeholder" | "readOnly" | "required" | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "native" | "renderValue" | "SelectDisplayProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
|
|
3
3
|
}, {}, {}>;
|
|
4
4
|
export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "selected" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "placement" | "form" | "src" | "rotationAngle" | "tooltipContent" | "instaceDataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "componentPaletteColor" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
|
|
@@ -4,9 +4,9 @@ import { S as SELECT_KEY_COMPONENT } from "../constants.js";
|
|
|
4
4
|
import { s as selectStyles } from "../Select.styles.js";
|
|
5
5
|
import { S as SelectSlots } from "./SelectEnum.js";
|
|
6
6
|
import { I as IconButton } from "../../IconButton/IconButton.js";
|
|
7
|
-
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
8
7
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
9
8
|
import { T as Typography } from "../../Typography/Typography.js";
|
|
9
|
+
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
10
10
|
const SelectRootStyled = styled(Select, {
|
|
11
11
|
name: SELECT_KEY_COMPONENT,
|
|
12
12
|
slot: SelectSlots.selectRoot
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import { S as SkeletonStyled, T as TextFieldRootStyled } from "./slots/TextFieldSlots.js";
|
|
5
5
|
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
6
|
-
import { T as TEXT_FIELD_KEY_COMPONENT } from "./constants.js";
|
|
6
|
+
import { T as TEXT_FIELD_CLASSES, a as TEXT_FIELD_KEY_COMPONENT } from "./constants.js";
|
|
7
7
|
import { T as TextFieldSlots } from "./slots/TextFieldEnum.js";
|
|
8
|
-
import {
|
|
9
|
-
import clsx from "clsx";
|
|
8
|
+
import { useTheme } from "@mui/material";
|
|
10
9
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
11
10
|
const TextField = (props) => {
|
|
12
11
|
const {
|
|
12
|
+
value,
|
|
13
13
|
dataTestId,
|
|
14
14
|
variant = "outlined",
|
|
15
15
|
size = "medium",
|
|
16
16
|
disabled = false,
|
|
17
|
-
color = "default",
|
|
18
17
|
error,
|
|
19
18
|
inputProps,
|
|
20
19
|
autoComplete = "off",
|
|
@@ -24,12 +23,12 @@ const TextField = (props) => {
|
|
|
24
23
|
const { currentSize } = useComponentSize(size);
|
|
25
24
|
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
26
25
|
const theme = useTheme();
|
|
27
|
-
const paletteColor =
|
|
26
|
+
const paletteColor = error && theme.palette.error || theme.palette.primary;
|
|
28
27
|
const ownerState = {
|
|
29
28
|
size: adjustedSize,
|
|
30
29
|
disabled,
|
|
31
30
|
paletteColor,
|
|
32
|
-
|
|
31
|
+
TextFieldvariant: variant,
|
|
33
32
|
error
|
|
34
33
|
};
|
|
35
34
|
const isSkeleton = useModuleSkeleton();
|
|
@@ -37,22 +36,23 @@ const TextField = (props) => {
|
|
|
37
36
|
return /* @__PURE__ */ jsx(
|
|
38
37
|
SkeletonStyled,
|
|
39
38
|
{
|
|
40
|
-
className:
|
|
39
|
+
className: TEXT_FIELD_CLASSES.skeleton,
|
|
41
40
|
...getPropDataTestId(TEXT_FIELD_KEY_COMPONENT, TextFieldSlots.skeleton, dataTestId),
|
|
42
41
|
variant: "rounded",
|
|
43
|
-
ownerState: {}
|
|
42
|
+
ownerState: { size: adjustedSize }
|
|
44
43
|
}
|
|
45
44
|
);
|
|
46
45
|
}
|
|
47
|
-
const classRoot = getComponentSlotRoot(TEXT_FIELD_KEY_COMPONENT);
|
|
48
46
|
return /* @__PURE__ */ jsx(
|
|
49
47
|
TextFieldRootStyled,
|
|
50
48
|
{
|
|
51
|
-
className: clsx(classRoot, className),
|
|
52
49
|
ownerState: { ...ownerState },
|
|
50
|
+
className: clsx(TEXT_FIELD_CLASSES.root, TEXT_FIELD_CLASSES.variant, className),
|
|
53
51
|
...getPropDataTestId(TEXT_FIELD_KEY_COMPONENT, TextFieldSlots.root, dataTestId),
|
|
54
52
|
autoComplete,
|
|
53
|
+
value,
|
|
55
54
|
inputMode: "numeric",
|
|
55
|
+
disabled,
|
|
56
56
|
inputProps: {
|
|
57
57
|
...inputProps,
|
|
58
58
|
disabled,
|