@mcurros2/microm 1.1.108-0 → 1.1.109-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/index.js CHANGED
@@ -3492,6 +3492,8 @@ var $8tnwL = parcelRequire("8tnwL");
3492
3492
  var $8SZSR = parcelRequire("8SZSR");
3493
3493
 
3494
3494
  var $lwxCY = parcelRequire("lwxCY");
3495
+
3496
+ var $4Hta3 = parcelRequire("4Hta3");
3495
3497
  $parcel$exportWildcard(module.exports, $d50o9);
3496
3498
  $parcel$exportWildcard(module.exports, $i6yJ4);
3497
3499
  $parcel$exportWildcard(module.exports, $gLcPf);
@@ -3561,6 +3563,7 @@ $parcel$exportWildcard(module.exports, $jNUqj);
3561
3563
  $parcel$exportWildcard(module.exports, $8tnwL);
3562
3564
  $parcel$exportWildcard(module.exports, $8SZSR);
3563
3565
  $parcel$exportWildcard(module.exports, $lwxCY);
3566
+ $parcel$exportWildcard(module.exports, $4Hta3);
3564
3567
 
3565
3568
  });
3566
3569
  parcelRegister("d50o9", function(module, exports) {
@@ -47940,6 +47943,31 @@ function $fab6abe4da65ff17$export$d994cf386c6f1d98(minSize = {
47940
47943
 
47941
47944
  });
47942
47945
 
47946
+ parcelRegister("4Hta3", function(module, exports) {
47947
+
47948
+ $parcel$export(module.exports, "useResponsiveWidth", function () { return $36c1cc5fa1af387c$export$7dfb35d99dc3ea4e; });
47949
+
47950
+
47951
+
47952
+ function $36c1cc5fa1af387c$export$7dfb35d99dc3ea4e(maxWidthRem, padding) {
47953
+ const viewportSize = (0, $b4te3$mantinehooks.useViewportSize)();
47954
+ const [width, setWidth] = (0, $b4te3$react.useState)(maxWidthRem);
47955
+ (0, $b4te3$react.useEffect)(()=>{
47956
+ const desiredWidth = (0, $b4te3$mantinecore.px)(maxWidthRem);
47957
+ const totalPadding = (0, $b4te3$mantinecore.px)(padding) * 2;
47958
+ const availableWidth = viewportSize.width - totalPadding;
47959
+ if (availableWidth < desiredWidth) setWidth((0, $b4te3$mantinecore.rem)(availableWidth));
47960
+ else setWidth(maxWidthRem);
47961
+ }, [
47962
+ maxWidthRem,
47963
+ padding,
47964
+ viewportSize.width
47965
+ ]);
47966
+ return width;
47967
+ }
47968
+
47969
+ });
47970
+
47943
47971
 
47944
47972
 
47945
47973
  parcelRegister("8xtCs", function(module, exports) {