@m4l/components 7.3.1 → 8.0.1
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 +8 -0
- package/components/DynamicFilter/DynamicFIlter.styles.js +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
- package/components/HelperError/HelperError.js +2 -3
- package/components/HelperError/types.d.ts +1 -1
- package/components/Label/Label.js +9 -1
- package/components/Label/Label.styles.js +1 -1
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/NavLink/NavLink.js +2 -3
- package/components/NavLink/types.d.ts +1 -1
- package/components/Period/Period.js +2 -2
- package/components/PropertyValue/classes/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/styles.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
- package/components/extended/react-resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
- package/components/extended/react-resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +1 -1
- package/components/hook-form/RHFInputNumberSpinner/useRHFInputNumberSpinner.d.ts +2 -2
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFormContext/classes/index.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +0 -2
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/Button/styles.d.ts +1 -1
- package/components/mui_extended/IconButton/IconButton.styles.js +7 -7
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +2 -2
- package/components/mui_extended/LoadingButton/index.js +1 -1
- package/components/mui_extended/LoadingButton/types.d.ts +1 -2
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +3 -2
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.js +2 -2
- package/components/mui_extended/Skeleton/skeleton.styles.d.ts +1 -1
- package/components/mui_extended/Skeleton/skeleton.styles.js +2 -2
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/Typography/Typography.d.ts +17 -1
- package/components/mui_extended/Typography/Typography.js +34 -13
- package/components/mui_extended/Typography/constants.d.ts +9 -0
- package/components/mui_extended/Typography/constants.js +6 -0
- package/components/mui_extended/Typography/slots/typographyEnum.d.ts +7 -0
- package/components/mui_extended/Typography/slots/typographyEnum.js +8 -0
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +14 -0
- package/components/mui_extended/Typography/slots/typographySlots.js +18 -0
- package/components/mui_extended/Typography/types.d.ts +53 -4
- package/components/mui_extended/Typography/typography.styles.d.ts +2 -0
- package/components/mui_extended/Typography/typography.styles.js +332 -0
- package/package.json +2 -2
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Circular/skeleton.defaultCircular.stories.d.ts +14 -0
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Rectangular/skeleton.defaultRectangular.stories.d.ts +14 -0
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Rounded/skeleton.defaultRounded.stories.d.ts +15 -0
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Text/skeleton.defaultText.stories.d.ts +15 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/body/Estados/typography.body.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/bodyDens/Estados/typography.bodyDens.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h1/Estados/typography.h1.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h2/Estados/typography.h2.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h3/Estados/typography.h3.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h5/Estados/typography.h5.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/paragraph/Estados/typography.paragraph.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/paragraphDens/Estados/typography.paragraphDens.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/subtitle/Estados/typography.subtitle.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/subtitleDens/Estados/typography.subtitleDens.estados.stories.d.ts +23 -0
- package/test/mocks.d.ts +7 -7
- package/utils/index.d.ts +1 -1
- package/components/mui_extended/Typography/styles.d.ts +0 -1
- package/components/mui_extended/Typography/styles.js +0 -7
- package/components/mui_extended/Typography/subcomponents/index.d.ts +0 -5
- package/components/mui_extended/Typography/subcomponents/index.js +0 -9
- package/components/mui_extended/Typography/subcomponents/types.d.ts +0 -2
- package/components/mui_extended/Typography/tests/constants.d.ts +0 -1
- package/components/mui_extended/Typography/tests/constants.js +0 -4
- package/components/mui_extended/Typography/tests/index.test.d.ts +0 -1
- package/components/mui_extended/Typography/tests/utils.d.ts +0 -2
- package/components/mui_extended/Typography/tests/utils.js +0 -7
- package/components/mui_extended/Typography/utils/Clases/index.d.ts +0 -9
- package/components/mui_extended/Typography/utils/Clases/index.js +0 -22
- package/components/mui_extended/Typography/utils/Clases/types.d.ts +0 -4
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
const typographyStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Slot: root
|
|
4
|
+
* Componente extendido de MUI Typography, que permite personalizar los estilos del componente.
|
|
5
|
+
*/
|
|
6
|
+
root: ({ ownerState, theme }) => ({
|
|
7
|
+
"&.M4lclassCssSpecificity": {
|
|
8
|
+
// Estilos generales 🌐
|
|
9
|
+
// skeleton spacing when multiple rows 🦴
|
|
10
|
+
fontFamily: theme.typography.fontFamily,
|
|
11
|
+
...ownerState.typographyskeletonRows && ownerState.typographyskeletonRows > 1 && {
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column"
|
|
14
|
+
},
|
|
15
|
+
// Override de estilos generales de MUI 🚫
|
|
16
|
+
// color text.primary 🎨
|
|
17
|
+
...ownerState.typographyColor === "text.primary" && {
|
|
18
|
+
color: theme.vars.palette.text.primary
|
|
19
|
+
},
|
|
20
|
+
// color text.secondary 🎨
|
|
21
|
+
...ownerState.typographyColor === "text.secondary" && {
|
|
22
|
+
color: theme.vars.palette.text.secondary
|
|
23
|
+
},
|
|
24
|
+
// color text.disabled 🎨
|
|
25
|
+
...ownerState.typographyColor === "text.disabled" && {
|
|
26
|
+
color: theme.vars.palette.text.disabled
|
|
27
|
+
},
|
|
28
|
+
// Dispositivo »mobile 📱
|
|
29
|
+
...theme.generalSettings.isMobile === true && {
|
|
30
|
+
// mobile - »small
|
|
31
|
+
...ownerState.typographySize === "small" && {
|
|
32
|
+
// mobile - »small - »variant (h1) 💅
|
|
33
|
+
...ownerState.typographyVariant === "h1" && {
|
|
34
|
+
fontSize: theme.vars.size.typography.mobile.small.h1.fontSize,
|
|
35
|
+
fontWeight: theme.vars.size.typography.mobile.small.h1.weight,
|
|
36
|
+
lineHeight: theme.vars.size.typography.mobile.small.h1.lineHeight,
|
|
37
|
+
letterSpacing: theme.vars.size.typography.mobile.small.h1.letterSpacing
|
|
38
|
+
},
|
|
39
|
+
// mobile - »small - »variant (h2) 💅
|
|
40
|
+
...ownerState.typographyVariant === "h2" && {
|
|
41
|
+
fontSize: theme.vars.size.typography.mobile.small.h2.fontSize,
|
|
42
|
+
fontWeight: theme.vars.size.typography.mobile.small.h2.weight,
|
|
43
|
+
lineHeight: theme.vars.size.typography.mobile.small.h2.lineHeight,
|
|
44
|
+
letterSpacing: theme.vars.size.typography.mobile.small.h2.letterSpacing
|
|
45
|
+
},
|
|
46
|
+
// mobile - »small - »variant (h3) 💅
|
|
47
|
+
...ownerState.typographyVariant === "h3" && {
|
|
48
|
+
fontSize: theme.vars.size.typography.mobile.small.h3.fontSize,
|
|
49
|
+
fontWeight: theme.vars.size.typography.mobile.small.h3.weight,
|
|
50
|
+
lineHeight: theme.vars.size.typography.mobile.small.h3.lineHeight,
|
|
51
|
+
letterSpacing: theme.vars.size.typography.mobile.small.h3.letterSpacing
|
|
52
|
+
},
|
|
53
|
+
// mobile - »small - »variant(h5) 💅
|
|
54
|
+
...ownerState.typographyVariant === "h5" && {
|
|
55
|
+
fontSize: theme.vars.size.typography.mobile.small.h5.fontSize,
|
|
56
|
+
fontWeight: theme.vars.size.typography.mobile.small.h5.weight,
|
|
57
|
+
lineHeight: theme.vars.size.typography.mobile.small.h5.lineHeight,
|
|
58
|
+
letterSpacing: theme.vars.size.typography.mobile.small.h5.letterSpacing
|
|
59
|
+
},
|
|
60
|
+
// mobile - »small - »variant (subtitle) 💅
|
|
61
|
+
...ownerState.typographyVariant === "subtitle" && {
|
|
62
|
+
fontSize: theme.vars.size.typography.mobile.small.subtitle.fontSize,
|
|
63
|
+
fontWeight: theme.vars.size.typography.mobile.small.subtitle.weight,
|
|
64
|
+
lineHeight: theme.vars.size.typography.mobile.small.subtitle.lineHeight,
|
|
65
|
+
letterSpacing: theme.vars.size.typography.mobile.small.subtitle.letterSpacing
|
|
66
|
+
},
|
|
67
|
+
// mobile - »small - »variant (subtitleDens) 💅
|
|
68
|
+
...ownerState.typographyVariant === "subtitleDens" && {
|
|
69
|
+
fontSize: theme.vars.size.typography.mobile.small.subtitleDens.fontSize,
|
|
70
|
+
fontWeight: theme.vars.size.typography.mobile.small.subtitleDens.weight,
|
|
71
|
+
lineHeight: theme.vars.size.typography.mobile.small.subtitleDens.lineHeight,
|
|
72
|
+
letterSpacing: theme.vars.size.typography.mobile.small.subtitleDens.letterSpacing
|
|
73
|
+
},
|
|
74
|
+
// mobile - »small - »variant (paragraph) 💅
|
|
75
|
+
...ownerState.typographyVariant === "paragraph" && {
|
|
76
|
+
fontSize: theme.vars.size.typography.mobile.small.paragraph.fontSize,
|
|
77
|
+
fontWeight: theme.vars.size.typography.mobile.small.paragraph.weight,
|
|
78
|
+
lineHeight: theme.vars.size.typography.mobile.small.paragraph.lineHeight,
|
|
79
|
+
letterSpacing: theme.vars.size.typography.mobile.small.paragraph.letterSpacing
|
|
80
|
+
},
|
|
81
|
+
// mobile - »small - »variant (paragraphDens) 💅
|
|
82
|
+
...ownerState.typographyVariant === "paragraphDens" && {
|
|
83
|
+
fontSize: theme.vars.size.typography.mobile.small.paragraphDens.fontSize,
|
|
84
|
+
fontWeight: theme.vars.size.typography.mobile.small.paragraphDens.weight,
|
|
85
|
+
lineHeight: theme.vars.size.typography.mobile.small.paragraphDens.lineHeight,
|
|
86
|
+
letterSpacing: theme.vars.size.typography.mobile.small.paragraphDens.letterSpacing
|
|
87
|
+
},
|
|
88
|
+
// mobile - »small - »variant (body) 💅
|
|
89
|
+
...ownerState.typographyVariant === "body" && {
|
|
90
|
+
fontSize: theme.vars.size.typography.mobile.small.body.fontSize,
|
|
91
|
+
fontWeight: theme.vars.size.typography.mobile.small.body.weight,
|
|
92
|
+
lineHeight: theme.vars.size.typography.mobile.small.body.lineHeight,
|
|
93
|
+
letterSpacing: theme.vars.size.typography.mobile.small.body.letterSpacing
|
|
94
|
+
},
|
|
95
|
+
// mobile - »small - »variant (bodyDens) 💅
|
|
96
|
+
...ownerState.typographyVariant === "body" && {
|
|
97
|
+
fontSize: theme.vars.size.typography.mobile.small.bodyDens.fontSize,
|
|
98
|
+
fontWeight: theme.vars.size.typography.mobile.small.bodyDens.weight,
|
|
99
|
+
lineHeight: theme.vars.size.typography.mobile.small.bodyDens.lineHeight,
|
|
100
|
+
letterSpacing: theme.vars.size.typography.mobile.small.bodyDens.letterSpacing
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
// mobile - »medium - 👑 Predeterminado
|
|
104
|
+
...ownerState.typographySize === "medium" && {
|
|
105
|
+
// mobile - medium - »variant (h1) 💅
|
|
106
|
+
...ownerState.typographyVariant === "h1" && {
|
|
107
|
+
fontSize: theme.vars.size.typography.mobile.medium.h1.fontSize,
|
|
108
|
+
fontWeight: theme.vars.size.typography.mobile.medium.h1.weight,
|
|
109
|
+
lineHeight: theme.vars.size.typography.mobile.medium.h1.lineHeight,
|
|
110
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.h1.letterSpacing
|
|
111
|
+
},
|
|
112
|
+
// mobile - medium - »variant (h2) 💅
|
|
113
|
+
...ownerState.typographyVariant === "h2" && {
|
|
114
|
+
fontSize: theme.vars.size.typography.mobile.medium.h2.fontSize,
|
|
115
|
+
fontWeight: theme.vars.size.typography.mobile.medium.h2.weight,
|
|
116
|
+
lineHeight: theme.vars.size.typography.mobile.medium.h2.lineHeight,
|
|
117
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.h2.letterSpacing
|
|
118
|
+
},
|
|
119
|
+
// mobile - medium - »variant (h3) 💅
|
|
120
|
+
...ownerState.typographyVariant === "h3" && {
|
|
121
|
+
fontSize: theme.vars.size.typography.mobile.medium.h3.fontSize,
|
|
122
|
+
fontWeight: theme.vars.size.typography.mobile.medium.h3.weight,
|
|
123
|
+
lineHeight: theme.vars.size.typography.mobile.medium.h3.lineHeight,
|
|
124
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.h3.letterSpacing
|
|
125
|
+
},
|
|
126
|
+
// mobile - medium - »variant(h5) 💅
|
|
127
|
+
...ownerState.typographyVariant === "h5" && {
|
|
128
|
+
fontSize: theme.vars.size.typography.mobile.medium.h5.fontSize,
|
|
129
|
+
fontWeight: theme.vars.size.typography.mobile.medium.h5.weight,
|
|
130
|
+
lineHeight: theme.vars.size.typography.mobile.medium.h5.lineHeight,
|
|
131
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.h5.letterSpacing
|
|
132
|
+
},
|
|
133
|
+
// mobile - medium - »variant (subtitle) 💅
|
|
134
|
+
...ownerState.typographyVariant === "subtitle" && {
|
|
135
|
+
fontSize: theme.vars.size.typography.mobile.medium.subtitle.fontSize,
|
|
136
|
+
fontWeight: theme.vars.size.typography.mobile.medium.subtitle.weight,
|
|
137
|
+
lineHeight: theme.vars.size.typography.mobile.medium.subtitle.lineHeight,
|
|
138
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.subtitle.letterSpacing
|
|
139
|
+
},
|
|
140
|
+
// mobile - medium - »variant (subtitleDens) 💅
|
|
141
|
+
...ownerState.typographyVariant === "subtitleDens" && {
|
|
142
|
+
fontSize: theme.vars.size.typography.mobile.medium.subtitleDens.fontSize,
|
|
143
|
+
fontWeight: theme.vars.size.typography.mobile.medium.subtitleDens.weight,
|
|
144
|
+
lineHeight: theme.vars.size.typography.mobile.medium.subtitleDens.lineHeight,
|
|
145
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.subtitleDens.letterSpacing
|
|
146
|
+
},
|
|
147
|
+
// mobile - medium - »variant (paragraph) 💅
|
|
148
|
+
...ownerState.typographyVariant === "paragraph" && {
|
|
149
|
+
fontSize: theme.vars.size.typography.mobile.medium.paragraph.fontSize,
|
|
150
|
+
fontWeight: theme.vars.size.typography.mobile.medium.paragraph.weight,
|
|
151
|
+
lineHeight: theme.vars.size.typography.mobile.medium.paragraph.lineHeight,
|
|
152
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.paragraph.letterSpacing
|
|
153
|
+
},
|
|
154
|
+
// mobile - medium - »variant (paragraphDens) 💅
|
|
155
|
+
...ownerState.typographyVariant === "paragraphDens" && {
|
|
156
|
+
fontSize: theme.vars.size.typography.mobile.medium.paragraphDens.fontSize,
|
|
157
|
+
fontWeight: theme.vars.size.typography.mobile.medium.paragraphDens.weight,
|
|
158
|
+
lineHeight: theme.vars.size.typography.mobile.medium.paragraphDens.lineHeight,
|
|
159
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.paragraphDens.letterSpacing
|
|
160
|
+
},
|
|
161
|
+
// mobile - medium - »variant (body) 💅
|
|
162
|
+
...ownerState.typographyVariant === "body" && {
|
|
163
|
+
fontSize: theme.vars.size.typography.mobile.medium.body.fontSize,
|
|
164
|
+
fontWeight: theme.vars.size.typography.mobile.medium.body.weight,
|
|
165
|
+
lineHeight: theme.vars.size.typography.mobile.medium.body.lineHeight,
|
|
166
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.body.letterSpacing
|
|
167
|
+
},
|
|
168
|
+
// mobile - medium - »variant (bodyDens) 💅
|
|
169
|
+
...ownerState.typographyVariant === "body" && {
|
|
170
|
+
fontSize: theme.vars.size.typography.mobile.medium.bodyDens.fontSize,
|
|
171
|
+
fontWeight: theme.vars.size.typography.mobile.medium.bodyDens.weight,
|
|
172
|
+
lineHeight: theme.vars.size.typography.mobile.medium.bodyDens.lineHeight,
|
|
173
|
+
letterSpacing: theme.vars.size.typography.mobile.medium.bodyDens.letterSpacing
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
// Dispositivo »desktop 💻
|
|
178
|
+
...theme.generalSettings.isMobile === false && {
|
|
179
|
+
// desktop - »small
|
|
180
|
+
...ownerState.typographySize === "small" && {
|
|
181
|
+
// desktop - »small - »variant (h1) 💅
|
|
182
|
+
...ownerState.typographyVariant === "h1" && {
|
|
183
|
+
fontSize: theme.vars.size.typography.desktop.small.h1.fontSize,
|
|
184
|
+
fontWeight: theme.vars.size.typography.desktop.small.h1.weight,
|
|
185
|
+
lineHeight: theme.vars.size.typography.desktop.small.h1.lineHeight,
|
|
186
|
+
letterSpacing: theme.vars.size.typography.desktop.small.h1.letterSpacing
|
|
187
|
+
},
|
|
188
|
+
// desktop - »small - »variant (h2) 💅
|
|
189
|
+
...ownerState.typographyVariant === "h2" && {
|
|
190
|
+
fontSize: theme.vars.size.typography.desktop.small.h2.fontSize,
|
|
191
|
+
fontWeight: theme.vars.size.typography.desktop.small.h2.weight,
|
|
192
|
+
lineHeight: theme.vars.size.typography.desktop.small.h2.lineHeight,
|
|
193
|
+
letterSpacing: theme.vars.size.typography.desktop.small.h2.letterSpacing
|
|
194
|
+
},
|
|
195
|
+
// desktop - »small - »variant (h3) 💅
|
|
196
|
+
...ownerState.typographyVariant === "h3" && {
|
|
197
|
+
fontSize: theme.vars.size.typography.desktop.small.h3.fontSize,
|
|
198
|
+
fontWeight: theme.vars.size.typography.desktop.small.h3.weight,
|
|
199
|
+
lineHeight: theme.vars.size.typography.desktop.small.h3.lineHeight,
|
|
200
|
+
letterSpacing: theme.vars.size.typography.desktop.small.h3.letterSpacing
|
|
201
|
+
},
|
|
202
|
+
// desktop - »small - »variant(h5) 💅
|
|
203
|
+
...ownerState.typographyVariant === "h5" && {
|
|
204
|
+
fontSize: theme.vars.size.typography.desktop.small.h5.fontSize,
|
|
205
|
+
fontWeight: theme.vars.size.typography.desktop.small.h5.weight,
|
|
206
|
+
lineHeight: theme.vars.size.typography.desktop.small.h5.lineHeight,
|
|
207
|
+
letterSpacing: theme.vars.size.typography.desktop.small.h5.letterSpacing
|
|
208
|
+
},
|
|
209
|
+
// desktop - »small - »variant (subtitle) 💅
|
|
210
|
+
...ownerState.typographyVariant === "subtitle" && {
|
|
211
|
+
fontSize: theme.vars.size.typography.desktop.small.subtitle.fontSize,
|
|
212
|
+
fontWeight: theme.vars.size.typography.desktop.small.subtitle.weight,
|
|
213
|
+
lineHeight: theme.vars.size.typography.desktop.small.subtitle.lineHeight,
|
|
214
|
+
letterSpacing: theme.vars.size.typography.desktop.small.subtitle.letterSpacing
|
|
215
|
+
},
|
|
216
|
+
// desktop - »small - »variant (subtitleDens) 💅
|
|
217
|
+
...ownerState.typographyVariant === "subtitleDens" && {
|
|
218
|
+
fontSize: theme.vars.size.typography.desktop.small.subtitleDens.fontSize,
|
|
219
|
+
fontWeight: theme.vars.size.typography.desktop.small.subtitleDens.weight,
|
|
220
|
+
lineHeight: theme.vars.size.typography.desktop.small.subtitleDens.lineHeight,
|
|
221
|
+
letterSpacing: theme.vars.size.typography.desktop.small.subtitleDens.letterSpacing
|
|
222
|
+
},
|
|
223
|
+
// desktop - »small - »variant (paragraph) 💅
|
|
224
|
+
...ownerState.typographyVariant === "paragraph" && {
|
|
225
|
+
fontSize: theme.vars.size.typography.desktop.small.paragraph.fontSize,
|
|
226
|
+
fontWeight: theme.vars.size.typography.desktop.small.paragraph.weight,
|
|
227
|
+
lineHeight: theme.vars.size.typography.desktop.small.paragraph.lineHeight,
|
|
228
|
+
letterSpacing: theme.vars.size.typography.desktop.small.paragraph.letterSpacing
|
|
229
|
+
},
|
|
230
|
+
// desktop - »small - »variant (paragraphDens) 💅
|
|
231
|
+
...ownerState.typographyVariant === "paragraphDens" && {
|
|
232
|
+
fontSize: theme.vars.size.typography.desktop.small.paragraphDens.fontSize,
|
|
233
|
+
fontWeight: theme.vars.size.typography.desktop.small.paragraphDens.weight,
|
|
234
|
+
lineHeight: theme.vars.size.typography.desktop.small.paragraphDens.lineHeight,
|
|
235
|
+
letterSpacing: theme.vars.size.typography.desktop.small.paragraphDens.letterSpacing
|
|
236
|
+
},
|
|
237
|
+
// desktop - »small - »variant (body) 💅
|
|
238
|
+
...ownerState.typographyVariant === "body" && {
|
|
239
|
+
fontSize: theme.vars.size.typography.desktop.small.body.fontSize,
|
|
240
|
+
fontWeight: theme.vars.size.typography.desktop.small.body.weight,
|
|
241
|
+
lineHeight: theme.vars.size.typography.desktop.small.body.lineHeight,
|
|
242
|
+
letterSpacing: theme.vars.size.typography.desktop.small.body.letterSpacing
|
|
243
|
+
},
|
|
244
|
+
// desktop - »small - »variant (bodyDens) 💅
|
|
245
|
+
...ownerState.typographyVariant === "bodyDens" && {
|
|
246
|
+
fontSize: theme.vars.size.typography.desktop.small.bodyDens.fontSize,
|
|
247
|
+
fontWeight: theme.vars.size.typography.desktop.small.bodyDens.weight,
|
|
248
|
+
lineHeight: theme.vars.size.typography.desktop.small.bodyDens.lineHeight,
|
|
249
|
+
letterSpacing: theme.vars.size.typography.desktop.small.bodyDens.letterSpacing
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
// desktop - »medium - 👑 Predeterminado
|
|
253
|
+
...ownerState.typographySize === "medium" && {
|
|
254
|
+
// desktop - medium - »variant (h1) 💅
|
|
255
|
+
...ownerState.typographyVariant === "h1" && {
|
|
256
|
+
fontSize: theme.vars.size.typography.desktop.medium.h1.fontSize,
|
|
257
|
+
fontWeight: theme.vars.size.typography.desktop.medium.h1.weight,
|
|
258
|
+
lineHeight: theme.vars.size.typography.desktop.medium.h1.lineHeight,
|
|
259
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.h1.letterSpacing
|
|
260
|
+
},
|
|
261
|
+
// desktop - medium - »variant (h2) 💅
|
|
262
|
+
...ownerState.typographyVariant === "h2" && {
|
|
263
|
+
fontSize: theme.vars.size.typography.desktop.medium.h2.fontSize,
|
|
264
|
+
fontWeight: theme.vars.size.typography.desktop.medium.h2.weight,
|
|
265
|
+
lineHeight: theme.vars.size.typography.desktop.medium.h2.lineHeight,
|
|
266
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.h2.letterSpacing
|
|
267
|
+
},
|
|
268
|
+
// desktop - medium - »variant (h3) 💅
|
|
269
|
+
...ownerState.typographyVariant === "h3" && {
|
|
270
|
+
fontSize: theme.vars.size.typography.desktop.medium.h3.fontSize,
|
|
271
|
+
fontWeight: theme.vars.size.typography.desktop.medium.h3.weight,
|
|
272
|
+
lineHeight: theme.vars.size.typography.desktop.medium.h3.lineHeight,
|
|
273
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.h3.letterSpacing
|
|
274
|
+
},
|
|
275
|
+
// desktop - medium - »variant(h5) 💅
|
|
276
|
+
...ownerState.typographyVariant === "h5" && {
|
|
277
|
+
fontSize: theme.vars.size.typography.desktop.medium.h5.fontSize,
|
|
278
|
+
fontWeight: theme.vars.size.typography.desktop.medium.h5.weight,
|
|
279
|
+
lineHeight: theme.vars.size.typography.desktop.medium.h5.lineHeight,
|
|
280
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.h5.letterSpacing
|
|
281
|
+
},
|
|
282
|
+
// desktop - medium - »variant (subtitle) 💅
|
|
283
|
+
...ownerState.typographyVariant === "subtitle" && {
|
|
284
|
+
fontSize: theme.vars.size.typography.desktop.medium.subtitle.fontSize,
|
|
285
|
+
fontWeight: theme.vars.size.typography.desktop.medium.subtitle.weight,
|
|
286
|
+
lineHeight: theme.vars.size.typography.desktop.medium.subtitle.lineHeight,
|
|
287
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.subtitle.letterSpacing
|
|
288
|
+
},
|
|
289
|
+
// desktop - medium - »variant (subtitleDens) 💅
|
|
290
|
+
...ownerState.typographyVariant === "subtitleDens" && {
|
|
291
|
+
fontSize: theme.vars.size.typography.desktop.medium.subtitleDens.fontSize,
|
|
292
|
+
fontWeight: theme.vars.size.typography.desktop.medium.subtitleDens.weight,
|
|
293
|
+
lineHeight: theme.vars.size.typography.desktop.medium.subtitleDens.lineHeight,
|
|
294
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.subtitleDens.letterSpacing
|
|
295
|
+
},
|
|
296
|
+
// desktop - medium - »variant (paragraph) 💅
|
|
297
|
+
...ownerState.typographyVariant === "paragraph" && {
|
|
298
|
+
fontSize: theme.vars.size.typography.desktop.medium.paragraph.fontSize,
|
|
299
|
+
fontWeight: theme.vars.size.typography.desktop.medium.paragraph.weight,
|
|
300
|
+
lineHeight: theme.vars.size.typography.desktop.medium.paragraph.lineHeight,
|
|
301
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.paragraph.letterSpacing
|
|
302
|
+
},
|
|
303
|
+
// desktop - medium - »variant (paragraphDens) 💅
|
|
304
|
+
...ownerState.typographyVariant === "paragraphDens" && {
|
|
305
|
+
fontSize: theme.vars.size.typography.desktop.medium.paragraphDens.fontSize,
|
|
306
|
+
fontWeight: theme.vars.size.typography.desktop.medium.paragraphDens.weight,
|
|
307
|
+
lineHeight: theme.vars.size.typography.desktop.medium.paragraphDens.lineHeight,
|
|
308
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.paragraphDens.letterSpacing
|
|
309
|
+
},
|
|
310
|
+
// desktop - medium - »variant (body) 💅
|
|
311
|
+
...ownerState.typographyVariant === "body" && {
|
|
312
|
+
fontSize: theme.vars.size.typography.desktop.medium.body.fontSize,
|
|
313
|
+
fontWeight: theme.vars.size.typography.desktop.medium.body.weight,
|
|
314
|
+
lineHeight: theme.vars.size.typography.desktop.medium.body.lineHeight,
|
|
315
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.body.letterSpacing
|
|
316
|
+
},
|
|
317
|
+
// desktop - medium - »variant (bodyDens) 💅
|
|
318
|
+
...ownerState.typographyVariant === "bodyDens" && {
|
|
319
|
+
fontSize: theme.vars.size.typography.desktop.medium.bodyDens.fontSize,
|
|
320
|
+
fontWeight: theme.vars.size.typography.desktop.medium.bodyDens.weight,
|
|
321
|
+
lineHeight: theme.vars.size.typography.desktop.medium.bodyDens.lineHeight,
|
|
322
|
+
letterSpacing: theme.vars.size.typography.desktop.medium.bodyDens.letterSpacing
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}),
|
|
328
|
+
skeleton: {}
|
|
329
|
+
};
|
|
330
|
+
export {
|
|
331
|
+
typographyStyles as t
|
|
332
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"lint-staged": {
|
|
6
6
|
"*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"zustand": "4.3.6"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@m4l/core": "^2.0.
|
|
55
|
+
"@m4l/core": "^2.0.12",
|
|
56
56
|
"@m4l/graphics": "^7.0.2",
|
|
57
57
|
"@m4l/styles": "^7.0.1",
|
|
58
58
|
"@mui/lab": "5.0.0-alpha.173",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Skeleton } from '../../../../../../../../../src/components/mui_extended/Skeleton';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Skeleton>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof Skeleton>;
|
|
9
|
+
/**
|
|
10
|
+
* El componente Skeleton de Material UI en su variante circular se utiliza para mostrar un marcador de posición redondo,
|
|
11
|
+
* ideal para elementos con formas circulares, como avatares, iconos o imágenes de perfil, mientras se cargan los datos reales.
|
|
12
|
+
* Esta variante ofrece una forma circular perfecta que se adapta a componentes que tienen proporciones iguales de altura y ancho.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Base: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Skeleton } from '../../../../../../../../../src/components/mui_extended/Skeleton';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Skeleton>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof Skeleton>;
|
|
9
|
+
/**
|
|
10
|
+
* El componente Skeleton de Material UI en su variante rectangular se utiliza para mostrar un marcador de posición con forma de rectángulo,
|
|
11
|
+
* ideal para simular la carga de elementos como contenedores, tarjetas, imágenes o cualquier contenido con proporciones rectangulares.
|
|
12
|
+
* Es una de las variantes más comunes para representar áreas de contenido mientras se carga la información.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Base: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Skeleton } from '../../../../../../../../../src/components/mui_extended/Skeleton';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Skeleton>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof Skeleton>;
|
|
9
|
+
/**
|
|
10
|
+
* El componente Skeleton en Material UI se utiliza para mostrar un marcador de posición mientras se
|
|
11
|
+
* cargan los datos reales. Es ideal para mejorar la percepción de rendimiento al proporcionar una interfaz
|
|
12
|
+
* visible y estructurada durante la carga de contenido. La variante rounded agrega un borde suavemente redondeado al esqueleto,
|
|
13
|
+
* lo que lo hace más acorde con las interfaces modernas y suaves.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Skeleton } from '../../../../../../../../../src/components/mui_extended/Skeleton';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Skeleton>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof Skeleton>;
|
|
9
|
+
/**
|
|
10
|
+
* El componente Skeleton de Material UI en su variante text se utiliza para simular la carga de texto,
|
|
11
|
+
* imitando líneas de texto o párrafos mientras los datos reales se están recuperando.
|
|
12
|
+
* Esta variante es ideal para mantener la estructura visual de bloques de texto, como encabezados, párrafos o listas,
|
|
13
|
+
* durante el tiempo de carga.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../../../../../../../../src/components/mui_extended/Typography';
|
|
3
|
+
/**
|
|
4
|
+
* La variante body en typography establece estilos predeterminados para los textos del cuerpo,
|
|
5
|
+
* incluyendo el tamaño de fuente, peso, espaciado de letra y márgenes, optimizados para resaltar títulos
|
|
6
|
+
* importantes en la interfaz. Es personalizable según los requisitos del tema para adaptarse a diferentes
|
|
7
|
+
* diseños y dispositivos.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Typography>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof Typography>;
|
|
12
|
+
/**
|
|
13
|
+
* Estado enabled del componente Typography con la variante body.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Estado skeleton de una sola linea del componente Typography con la variante body.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Skeleton: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Estado skeleton de varias líneas del componente Typography con la variante body.
|
|
22
|
+
*/
|
|
23
|
+
export declare const skeletonRows: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../../../../../../../../src/components/mui_extended/Typography';
|
|
3
|
+
/**
|
|
4
|
+
* La variante bodyDens en typography establece estilos predeterminados para los textos del cuerpo densos,
|
|
5
|
+
* incluyendo el tamaño de fuente, peso, espaciado de letra y márgenes, optimizados para resaltar títulos
|
|
6
|
+
* importantes en la interfaz. Es personalizable según los requisitos del tema para adaptarse a diferentes
|
|
7
|
+
* diseños y dispositivos.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Typography>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof Typography>;
|
|
12
|
+
/**
|
|
13
|
+
* Estado enabled del componente Typography con la variante bodyDens.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Estado skeleton de una sola linea del componente Typography con la variante bodyDens.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Skeleton: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Estado skeleton de varias líneas del componente Typography con la variante bodyDens.
|
|
22
|
+
*/
|
|
23
|
+
export declare const skeletonRows: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../../../../../../../../src/components/mui_extended/Typography';
|
|
3
|
+
/**
|
|
4
|
+
* La variante h1 en typography establece estilos predeterminados para encabezados principales,
|
|
5
|
+
* incluyendo el tamaño de fuente, peso, espaciado de letra y márgenes, optimizados para resaltar títulos
|
|
6
|
+
* importantes en la interfaz. Es personalizable según los requisitos del tema para adaptarse a diferentes
|
|
7
|
+
* diseños y dispositivos.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Typography>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof Typography>;
|
|
12
|
+
/**
|
|
13
|
+
* Estado enabled del componente Typography con la variante h1.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Estado skeleton de una sola linea del componente Typography con la variante h1.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Skeleton: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Estado skeleton de varias líneas del componente Typography con la variante h1.
|
|
22
|
+
*/
|
|
23
|
+
export declare const skeletonRows: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../../../../../../../../src/components/mui_extended/Typography';
|
|
3
|
+
/**
|
|
4
|
+
* La variante h2 en typography establece estilos predeterminados para encabezados de segundo nivel,
|
|
5
|
+
* incluyendo el tamaño de fuente, peso, espaciado de letra y márgenes, optimizados para resaltar títulos
|
|
6
|
+
* importantes en la interfaz. Es personalizable según los requisitos del tema para adaptarse a diferentes
|
|
7
|
+
* diseños y dispositivos.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Typography>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof Typography>;
|
|
12
|
+
/**
|
|
13
|
+
* Estado enabled del componente Typography con la variante h2.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Estado skeleton de una sola linea del componente Typography con la variante h2.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Skeleton: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Estado skeleton de varias líneas del componente Typography con la variante h2.
|
|
22
|
+
*/
|
|
23
|
+
export declare const skeletonRows: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../../../../../../../../src/components/mui_extended/Typography';
|
|
3
|
+
/**
|
|
4
|
+
* La variante h3 en typography establece estilos predeterminados para encabezados de tercer nivel,
|
|
5
|
+
* incluyendo el tamaño de fuente, peso, espaciado de letra y márgenes, optimizados para resaltar títulos
|
|
6
|
+
* importantes en la interfaz. Es personalizable según los requisitos del tema para adaptarse a diferentes
|
|
7
|
+
* diseños y dispositivos.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Typography>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof Typography>;
|
|
12
|
+
/**
|
|
13
|
+
* Estado enabled del componente Typography con la variante h3.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Estado skeleton de una sola linea del componente Typography con la variante h3.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Skeleton: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Estado skeleton de varias líneas del componente Typography con la variante h3.
|
|
22
|
+
*/
|
|
23
|
+
export declare const skeletonRows: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../../../../../../../../src/components/mui_extended/Typography';
|
|
3
|
+
/**
|
|
4
|
+
* La variante h5 en typography establece estilos predeterminados para encabezados de quinto nivel,
|
|
5
|
+
* incluyendo el tamaño de fuente, peso, espaciado de letra y márgenes, optimizados para resaltar títulos
|
|
6
|
+
* importantes en la interfaz. Es personalizable según los requisitos del tema para adaptarse a diferentes
|
|
7
|
+
* diseños y dispositivos.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Typography>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof Typography>;
|
|
12
|
+
/**
|
|
13
|
+
* Estado enabled del componente Typography con la variante h5.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Estado skeleton de una sola linea del componente Typography con la variante h5.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Skeleton: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Estado skeleton de varias líneas del componente Typography con la variante h5.
|
|
22
|
+
*/
|
|
23
|
+
export declare const skeletonRows: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../../../../../../../../src/components/mui_extended/Typography';
|
|
3
|
+
/**
|
|
4
|
+
* La variante paragraph en typography establece estilos predeterminados para los párrafos,
|
|
5
|
+
* incluyendo el tamaño de fuente, peso, espaciado de letra y márgenes, optimizados para resaltar títulos
|
|
6
|
+
* importantes en la interfaz. Es personalizable según los requisitos del tema para adaptarse a diferentes
|
|
7
|
+
* diseños y dispositivos.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Typography>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof Typography>;
|
|
12
|
+
/**
|
|
13
|
+
* Estado enabled del componente Typography con la variante paragraph.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Estado skeleton de una sola linea del componente Typography con la variante paragraph.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Skeleton: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Estado skeleton de varias líneas del componente Typography con la variante paragraph.
|
|
22
|
+
*/
|
|
23
|
+
export declare const skeletonRows: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../../../../../../../../src/components/mui_extended/Typography';
|
|
3
|
+
/**
|
|
4
|
+
* La variante paragraphDens en typography establece estilos predeterminados para los parráfos densos,
|
|
5
|
+
* incluyendo el tamaño de fuente, peso, espaciado de letra y márgenes, optimizados para resaltar títulos
|
|
6
|
+
* importantes en la interfaz. Es personalizable según los requisitos del tema para adaptarse a diferentes
|
|
7
|
+
* diseños y dispositivos.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Typography>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof Typography>;
|
|
12
|
+
/**
|
|
13
|
+
* Estado enabled del componente Typography con la variante paragraphDens.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Estado skeleton de una sola linea del componente Typography con la variante paragraphDens.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Skeleton: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Estado skeleton de varias líneas del componente Typography con la variante paragraphDens.
|
|
22
|
+
*/
|
|
23
|
+
export declare const skeletonRows: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../../../../../../../../src/components/mui_extended/Typography';
|
|
3
|
+
/**
|
|
4
|
+
* La variante subtitle en typography establece estilos predeterminados para sub títulos,
|
|
5
|
+
* incluyendo el tamaño de fuente, peso, espaciado de letra y márgenes, optimizados para resaltar títulos
|
|
6
|
+
* importantes en la interfaz. Es personalizable según los requisitos del tema para adaptarse a diferentes
|
|
7
|
+
* diseños y dispositivos.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Typography>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof Typography>;
|
|
12
|
+
/**
|
|
13
|
+
* Estado enabled del componente Typography con la variante subtitle.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Base: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Estado skeleton de una sola linea del componente Typography con la variante subtitle.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Skeleton: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Estado skeleton de varias líneas del componente Typography con la variante subtitle.
|
|
22
|
+
*/
|
|
23
|
+
export declare const skeletonRows: Story;
|