@rabex-kit/rabex-ui 0.1.54 → 0.1.56
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/Theme/getDesignTokens.d.ts +11 -0
- package/dist/hooks/useResponsive.d.ts +2 -0
- package/dist/rabex-ui.cjs.development.js +20 -1
- 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 +20 -1
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
@@ -4,5 +4,16 @@ export declare type themeTypes = {
|
|
4
4
|
direction?: Direction;
|
5
5
|
deviceType?: 'mobile' | 'desktop';
|
6
6
|
};
|
7
|
+
declare module '@mui/material/styles' {
|
8
|
+
interface BreakpointOverrides {
|
9
|
+
xs: true;
|
10
|
+
sm: true;
|
11
|
+
md: true;
|
12
|
+
lg: true;
|
13
|
+
xl: true;
|
14
|
+
xxl: true;
|
15
|
+
xxxl: true;
|
16
|
+
}
|
17
|
+
}
|
7
18
|
declare const getDesignTokens: ({ deviceType, mode, direction }: themeTypes) => ThemeOptions;
|
8
19
|
export default getDesignTokens;
|
@@ -652,6 +652,12 @@ function useResponsive() {
|
|
652
652
|
var isXL = useMediaQuery(function (theme) {
|
653
653
|
return "(min-width:" + theme.breakpoints.values.xl + "px)";
|
654
654
|
});
|
655
|
+
var isXXL = useMediaQuery(function (theme) {
|
656
|
+
return "(min-width:" + theme.breakpoints.values.xxl + "px)";
|
657
|
+
});
|
658
|
+
var isXXXL = useMediaQuery(function (theme) {
|
659
|
+
return "(min-width:" + theme.breakpoints.values.xxxl + "px)";
|
660
|
+
});
|
655
661
|
function matches(props) {
|
656
662
|
var result = _handleDefaultValue(props);
|
657
663
|
if (_hasValue(props.xs) && isXS) result = props.xs;
|
@@ -659,6 +665,8 @@ function useResponsive() {
|
|
659
665
|
if (_hasValue(props.md) && isMD) result = props.md;
|
660
666
|
if (_hasValue(props.lg) && isLG) result = props.lg;
|
661
667
|
if (_hasValue(props.xl) && isXL) result = props.xl;
|
668
|
+
if (_hasValue(props.xxl) && isXXL) result = props.xxl;
|
669
|
+
if (_hasValue(props.xxxl) && isXXXL) result = props.xxxl;
|
662
670
|
return result;
|
663
671
|
}
|
664
672
|
return {
|
@@ -4909,7 +4917,18 @@ var getDesignTokens = function getDesignTokens(_ref) {
|
|
4909
4917
|
MuiLoadingButton: RabexLoadingButton.components
|
4910
4918
|
}),
|
4911
4919
|
palette: _extends({}, mode === 'light' ? createPalette(RabexLightPalette) : createPalette(RabexDarkPalette)),
|
4912
|
-
typography: RabexTypography.typography
|
4920
|
+
typography: RabexTypography.typography,
|
4921
|
+
breakpoints: {
|
4922
|
+
values: {
|
4923
|
+
xs: 0,
|
4924
|
+
sm: 600,
|
4925
|
+
md: 900,
|
4926
|
+
lg: 1200,
|
4927
|
+
xl: 1440,
|
4928
|
+
xxl: 1536,
|
4929
|
+
xxxl: 1920
|
4930
|
+
}
|
4931
|
+
}
|
4913
4932
|
};
|
4914
4933
|
};
|
4915
4934
|
|