@rabex-kit/rabex-ui 0.1.56 → 0.2.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.
@@ -8,7 +8,7 @@ export declare type ContainerProps = MuiContainerProps;
8
8
  * You can read Material-UI Container Documentation [here](https://mui.com/material-ui/api/Container/).
9
9
  *
10
10
  * ```typescript
11
- * import { Container } from '@rabex-kit/core';
11
+ * import { Container } from '@rabex-kit/rabex-ui';
12
12
  * ```
13
13
  *
14
14
  *
@@ -5,6 +5,18 @@ declare const _default: {
5
5
  '&.MuiContainer-root': {
6
6
  padding: number;
7
7
  };
8
+ '@media (min-width: 1200px)': {
9
+ maxWidth: string;
10
+ };
11
+ '@media (min-width: 1440px)': {
12
+ maxWidth: string;
13
+ };
14
+ '@media (min-width: 1536px)': {
15
+ maxWidth: string;
16
+ };
17
+ '@media (min-width: 1920px)': {
18
+ maxWidth: string;
19
+ };
8
20
  };
9
21
  };
10
22
  };
@@ -8,4 +8,5 @@ export default function useResponsive(): {
8
8
  xxl?: any;
9
9
  xxxl?: any;
10
10
  }) => any;
11
+ currentBreakpoint: string;
11
12
  };
@@ -669,8 +669,20 @@ function useResponsive() {
669
669
  if (_hasValue(props.xxxl) && isXXXL) result = props.xxxl;
670
670
  return result;
671
671
  }
672
+ // Determine current breakpoint from media queries
673
+ var getCurrentBreakpoint = function getCurrentBreakpoint() {
674
+ if (isXXXL) return 'xxxl';
675
+ if (isXXL) return 'xxl';
676
+ if (isXL) return 'xl';
677
+ if (isLG) return 'lg';
678
+ if (isMD) return 'md';
679
+ if (isSM) return 'sm';
680
+ return 'xs';
681
+ };
682
+ var currentBreakpoint = getCurrentBreakpoint();
672
683
  return {
673
- matches: matches
684
+ matches: matches,
685
+ currentBreakpoint: currentBreakpoint
674
686
  };
675
687
  }
676
688
 
@@ -4806,6 +4818,19 @@ var RabexContainer = {
4806
4818
  root: {
4807
4819
  '&.MuiContainer-root': {
4808
4820
  padding: 0
4821
+ },
4822
+ // These styles will apply to all containers
4823
+ '@media (min-width: 1200px)': {
4824
+ maxWidth: '928px'
4825
+ },
4826
+ '@media (min-width: 1440px)': {
4827
+ maxWidth: '1168px'
4828
+ },
4829
+ '@media (min-width: 1536px)': {
4830
+ maxWidth: '1264px'
4831
+ },
4832
+ '@media (min-width: 1920px)': {
4833
+ maxWidth: '1376px'
4809
4834
  }
4810
4835
  }
4811
4836
  }
@@ -5082,7 +5107,7 @@ var Collapse = function Collapse(_ref) {
5082
5107
  * You can read Material-UI Container Documentation [here](https://mui.com/material-ui/api/Container/).
5083
5108
  *
5084
5109
  * ```typescript
5085
- * import { Container } from '@rabex-kit/core';
5110
+ * import { Container } from '@rabex-kit/rabex-ui';
5086
5111
  * ```
5087
5112
  *
5088
5113
  *