@mcurros2/microm 1.1.109-0 → 1.1.110-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
@@ -47949,18 +47949,18 @@ $parcel$export(module.exports, "useResponsiveWidth", function () { return $36c1c
47949
47949
 
47950
47950
 
47951
47951
 
47952
- function $36c1cc5fa1af387c$export$7dfb35d99dc3ea4e(maxWidthRem, padding) {
47952
+ function $36c1cc5fa1af387c$export$7dfb35d99dc3ea4e(maxWidthRem, paddingRem) {
47953
47953
  const viewportSize = (0, $b4te3$mantinehooks.useViewportSize)();
47954
47954
  const [width, setWidth] = (0, $b4te3$react.useState)(maxWidthRem);
47955
47955
  (0, $b4te3$react.useEffect)(()=>{
47956
47956
  const desiredWidth = (0, $b4te3$mantinecore.px)(maxWidthRem);
47957
- const totalPadding = (0, $b4te3$mantinecore.px)(padding) * 2;
47957
+ const totalPadding = (0, $b4te3$mantinecore.px)(paddingRem) * 2;
47958
47958
  const availableWidth = viewportSize.width - totalPadding;
47959
47959
  if (availableWidth < desiredWidth) setWidth((0, $b4te3$mantinecore.rem)(availableWidth));
47960
47960
  else setWidth(maxWidthRem);
47961
47961
  }, [
47962
47962
  maxWidthRem,
47963
- padding,
47963
+ paddingRem,
47964
47964
  viewportSize.width
47965
47965
  ]);
47966
47966
  return width;