@nutui/nutui-react 3.0.19 → 3.0.20-beta.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.
@@ -3,12 +3,18 @@
3
3
  width: 100%;
4
4
 
5
5
  &-position-top {
6
+ padding-top: calc(
7
+ constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
8
+ );
6
9
  padding-top: calc(
7
10
  env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
8
11
  );
9
12
  }
10
13
 
11
14
  &-position-bottom {
15
+ padding-bottom: calc(
16
+ constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
17
+ );
12
18
  padding-bottom: calc(
13
19
  env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
14
20
  );
@@ -7,8 +7,10 @@
7
7
  width: 100%;
8
8
  }
9
9
  .nut-safe-area-position-top {
10
+ padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
10
11
  padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
11
12
  }
12
13
  .nut-safe-area-position-bottom {
14
+ padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
13
15
  padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
14
16
  }
@@ -5240,9 +5240,15 @@ React keys must be passed directly to JSX without using spread:
5240
5240
  Row.displayName = "NutRow";
5241
5241
  var classPrefix$p = "nut-safe-area";
5242
5242
  var SafeArea = function(props) {
5243
- return /* @__PURE__ */ React.createElement("div", {
5244
- className: classNames(classPrefix$p, "".concat(classPrefix$p, "-position-").concat(props.position))
5245
- });
5243
+ var className = props.className, style = props.style, position2 = props.position, rest = _object_without_properties(props, [
5244
+ "className",
5245
+ "style",
5246
+ "position"
5247
+ ]);
5248
+ return /* @__PURE__ */ React.createElement("div", _object_spread_props(_object_spread({}, rest), {
5249
+ className: classNames(classPrefix$p, "".concat(classPrefix$p, "-position-").concat(position2), className),
5250
+ style
5251
+ }));
5246
5252
  };
5247
5253
  SafeArea.displayName = "NutSafeArea";
5248
5254
  var prefixCls$1 = "nut-space";