@superdispatch/ui 0.19.0 → 0.20.4
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-node/index.js +16 -0
- package/dist-node/index.js.map +1 -1
- package/dist-src/index.js +1 -0
- package/dist-src/responsive/MinBreakpoint.js +15 -0
- package/dist-types/index.d.ts +4 -1
- package/dist-web/index.js +16 -1
- package/dist-web/index.js.map +1 -1
- package/package.json +2 -2
package/dist-node/index.js
CHANGED
|
@@ -1787,6 +1787,21 @@ function useCollapseBreakpoint(collapseBreakpoint) {
|
|
|
1787
1787
|
return breakpointIDX < collapseBreakpointIDX;
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
+
var BREAKPOINTS$1 = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
1791
|
+
function useMinBreakpoint(minBreakpoint) {
|
|
1792
|
+
var {
|
|
1793
|
+
breakpoint = 'xs'
|
|
1794
|
+
} = useResponsiveContext();
|
|
1795
|
+
|
|
1796
|
+
if (minBreakpoint == null) {
|
|
1797
|
+
return false;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
var breakpointIDX = BREAKPOINTS$1.indexOf(breakpoint);
|
|
1801
|
+
var minBreakpointIDX = BREAKPOINTS$1.indexOf(minBreakpoint);
|
|
1802
|
+
return minBreakpointIDX < breakpointIDX;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1790
1805
|
var _excluded$j = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
1791
1806
|
_excluded2$3 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
1792
1807
|
var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
@@ -3728,6 +3743,7 @@ exports.parseResponsiveProp = parseResponsiveProp;
|
|
|
3728
3743
|
exports.parseSpaceProp = parseSpaceProp;
|
|
3729
3744
|
exports.renderChildren = renderChildren;
|
|
3730
3745
|
exports.useCollapseBreakpoint = useCollapseBreakpoint;
|
|
3746
|
+
exports.useMinBreakpoint = useMinBreakpoint;
|
|
3731
3747
|
exports.useResizeObserver = useResizeObserver;
|
|
3732
3748
|
exports.useResponsiveContext = useResponsiveContext;
|
|
3733
3749
|
exports.useResponsiveProp = useResponsiveProp;
|