@rabex-kit/rabex-ui 0.1.56 → 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.
- package/dist/hooks/useResponsive.d.ts +1 -0
- package/dist/rabex-ui.cjs.development.js +13 -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 +13 -1
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
@@ -664,8 +664,20 @@ function useResponsive() {
|
|
664
664
|
if (_hasValue(props.xxxl) && isXXXL) result = props.xxxl;
|
665
665
|
return result;
|
666
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();
|
667
678
|
return {
|
668
|
-
matches: matches
|
679
|
+
matches: matches,
|
680
|
+
currentBreakpoint: currentBreakpoint
|
669
681
|
};
|
670
682
|
}
|
671
683
|
|