@m4l/components 9.1.46 → 9.1.48
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 +36 -27
- package/components/Label/Label.styles.js +10 -12
- package/components/PropertyValue/PropertyValue.d.ts +5 -1
- package/components/PropertyValue/PropertyValue.js +53 -166
- package/components/PropertyValue/PropertyValue.styles.d.ts +2 -0
- package/components/PropertyValue/PropertyValue.styles.js +99 -0
- package/components/PropertyValue/constants.d.ts +1 -0
- package/components/PropertyValue/constants.js +2 -0
- package/components/PropertyValue/slots/PropertyValueEnum.d.ts +5 -0
- package/components/PropertyValue/slots/PropertyValueEnum.js +9 -0
- package/components/PropertyValue/slots/PropertyValueSlots.d.ts +9 -0
- package/components/PropertyValue/slots/PropertyValueSlots.js +21 -0
- package/components/PropertyValue/slots/index.d.ts +2 -0
- package/components/PropertyValue/tests/PropertyValue.test.d.ts +1 -0
- package/components/PropertyValue/types.d.ts +77 -3
- package/components/WindowConfirm/WindowConfirm.styles.js +18 -33
- package/components/mui_extended/Button/Button.js +1 -1
- package/components/mui_extended/TextField/TextField.js +1 -1
- package/components/mui_extended/TextField/TextField.styles.js +169 -172
- package/components/mui_extended/TextField/types.d.ts +1 -1
- package/package.json +1 -1
- package/components/PropertyValue/classes/constants.d.ts +0 -1
- package/components/PropertyValue/classes/constants.js +0 -4
- package/components/PropertyValue/classes/index.d.ts +0 -13
- package/components/PropertyValue/classes/index.js +0 -40
- package/components/PropertyValue/classes/types.d.ts +0 -12
- package/components/PropertyValue/styles.js +0 -7
- package/components/PropertyValue/tests/constants.d.ts +0 -1
- package/components/PropertyValue/tests/utils.d.ts +0 -5
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PropertyValueClassesType } from './types';
|
|
2
|
-
import { OwnerState } from '../types';
|
|
3
|
-
export declare const propertyValueClasses: PropertyValueClassesType;
|
|
4
|
-
export declare function getPropertyValueUtilityClass(slot: string): string;
|
|
5
|
-
/**
|
|
6
|
-
* TODO: Documentar
|
|
7
|
-
*/
|
|
8
|
-
export declare const propertyValueUtilityClasses: (ownerState: OwnerState) => {
|
|
9
|
-
value: string;
|
|
10
|
-
root: string;
|
|
11
|
-
property: string;
|
|
12
|
-
iconProperty: string;
|
|
13
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
-
import { c as componentName } from "./constants.js";
|
|
4
|
-
generateUtilityClasses(
|
|
5
|
-
componentName,
|
|
6
|
-
[
|
|
7
|
-
/* elements */
|
|
8
|
-
"root",
|
|
9
|
-
"property",
|
|
10
|
-
"iconProperty",
|
|
11
|
-
"value",
|
|
12
|
-
/* states or variants of elements */
|
|
13
|
-
"isDisabled",
|
|
14
|
-
"variantIsForm",
|
|
15
|
-
"isMobile"
|
|
16
|
-
]
|
|
17
|
-
);
|
|
18
|
-
function getPropertyValueUtilityClass(slot) {
|
|
19
|
-
return generateUtilityClass(componentName, slot);
|
|
20
|
-
}
|
|
21
|
-
const propertyValueUtilityClasses = (ownerState) => {
|
|
22
|
-
const slots = {
|
|
23
|
-
root: [
|
|
24
|
-
"root",
|
|
25
|
-
ownerState.disabled && "isDisabled",
|
|
26
|
-
ownerState.isForm && "variantIsForm",
|
|
27
|
-
ownerState.isMobile && "isMobile"
|
|
28
|
-
],
|
|
29
|
-
property: ["property"],
|
|
30
|
-
iconProperty: ["iconProperty"],
|
|
31
|
-
value: ["value"]
|
|
32
|
-
};
|
|
33
|
-
const composedClasses = unstable_composeClasses(slots, getPropertyValueUtilityClass, {});
|
|
34
|
-
return {
|
|
35
|
-
...composedClasses
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
propertyValueUtilityClasses as p
|
|
40
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { propertyValueUtilityClasses } from '.';
|
|
2
|
-
export interface PropertyValueClassesType {
|
|
3
|
-
root: string;
|
|
4
|
-
property: string;
|
|
5
|
-
value: string;
|
|
6
|
-
iconProperty: string;
|
|
7
|
-
isDisabled: string;
|
|
8
|
-
variantIsForm: string;
|
|
9
|
-
isMobile: string;
|
|
10
|
-
}
|
|
11
|
-
export type PropertyValueClassesKey = keyof PropertyValueClassesType;
|
|
12
|
-
export type Classes = ReturnType<typeof propertyValueUtilityClasses>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ICON_PREFIX = "M4LPropertyValue";
|