@rabex-kit/rabex-ui 0.1.55 → 0.2.0

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.
@@ -647,6 +647,12 @@ function useResponsive() {
647
647
  var isXL = useMediaQuery(function (theme) {
648
648
  return "(min-width:" + theme.breakpoints.values.xl + "px)";
649
649
  });
650
+ var isXXL = useMediaQuery(function (theme) {
651
+ return "(min-width:" + theme.breakpoints.values.xxl + "px)";
652
+ });
653
+ var isXXXL = useMediaQuery(function (theme) {
654
+ return "(min-width:" + theme.breakpoints.values.xxxl + "px)";
655
+ });
650
656
  function matches(props) {
651
657
  var result = _handleDefaultValue(props);
652
658
  if (_hasValue(props.xs) && isXS) result = props.xs;
@@ -654,10 +660,24 @@ function useResponsive() {
654
660
  if (_hasValue(props.md) && isMD) result = props.md;
655
661
  if (_hasValue(props.lg) && isLG) result = props.lg;
656
662
  if (_hasValue(props.xl) && isXL) result = props.xl;
663
+ if (_hasValue(props.xxl) && isXXL) result = props.xxl;
664
+ if (_hasValue(props.xxxl) && isXXXL) result = props.xxxl;
657
665
  return result;
658
666
  }
667
+ // Determine current breakpoint from media queries
668
+ var getCurrentBreakpoint = function getCurrentBreakpoint() {
669
+ if (isXXXL) return 'xxxl';
670
+ if (isXXL) return 'xxl';
671
+ if (isXL) return 'xl';
672
+ if (isLG) return 'lg';
673
+ if (isMD) return 'md';
674
+ if (isSM) return 'sm';
675
+ return 'xs';
676
+ };
677
+ var currentBreakpoint = getCurrentBreakpoint();
659
678
  return {
660
- matches: matches
679
+ matches: matches,
680
+ currentBreakpoint: currentBreakpoint
661
681
  };
662
682
  }
663
683