@rabex-kit/rabex-ui 0.2.64 → 0.2.66
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/dist/rabex-ui.cjs.development.js +3 -6
- package/dist/rabex-ui.cjs.development.js.map +1 -1
- package/dist/rabex-ui.cjs.production.min.js +1 -1
- package/dist/rabex-ui.cjs.production.min.js.map +1 -1
- package/dist/rabex-ui.esm.js +3 -6
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -265,7 +265,7 @@ var AlertAction = function AlertAction(_ref) {
|
|
|
265
265
|
})));
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
var _excluded$1 = ["weight", "
|
|
268
|
+
var _excluded$1 = ["weight", "sx"];
|
|
269
269
|
var fontWeight = {
|
|
270
270
|
bold: '700',
|
|
271
271
|
semiBold: '600',
|
|
@@ -289,16 +289,13 @@ var fontWeight = {
|
|
|
289
289
|
*/
|
|
290
290
|
var Typography = function Typography(_ref) {
|
|
291
291
|
var weight = _ref.weight,
|
|
292
|
-
color = _ref.color,
|
|
293
292
|
sx = _ref.sx,
|
|
294
293
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
295
|
-
|
|
296
|
-
palette = _useTheme.palette;
|
|
294
|
+
// const { palette } = useTheme();
|
|
297
295
|
return React__default.createElement(MuiTypography, Object.assign({
|
|
298
296
|
sx: _extends({}, sx, {
|
|
299
297
|
fontWeight: weight ? fontWeight[weight] : 'regular'
|
|
300
|
-
})
|
|
301
|
-
color: color || palette.textColor[900]
|
|
298
|
+
})
|
|
302
299
|
}, props));
|
|
303
300
|
};
|
|
304
301
|
Typography.defaultProps = {
|