@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
package/dist/rabex-ui.esm.js
CHANGED
|
@@ -261,7 +261,7 @@ var AlertAction = function AlertAction(_ref) {
|
|
|
261
261
|
})));
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
var _excluded$1 = ["weight", "
|
|
264
|
+
var _excluded$1 = ["weight", "sx"];
|
|
265
265
|
var fontWeight = {
|
|
266
266
|
bold: '700',
|
|
267
267
|
semiBold: '600',
|
|
@@ -285,16 +285,13 @@ var fontWeight = {
|
|
|
285
285
|
*/
|
|
286
286
|
var Typography = function Typography(_ref) {
|
|
287
287
|
var weight = _ref.weight,
|
|
288
|
-
color = _ref.color,
|
|
289
288
|
sx = _ref.sx,
|
|
290
289
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
291
|
-
|
|
292
|
-
palette = _useTheme.palette;
|
|
290
|
+
// const { palette } = useTheme();
|
|
293
291
|
return React.createElement(MuiTypography, Object.assign({
|
|
294
292
|
sx: _extends({}, sx, {
|
|
295
293
|
fontWeight: weight ? fontWeight[weight] : 'regular'
|
|
296
|
-
})
|
|
297
|
-
color: color || palette.textColor[900]
|
|
294
|
+
})
|
|
298
295
|
}, props));
|
|
299
296
|
};
|
|
300
297
|
Typography.defaultProps = {
|