@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.
- package/CHANGELOG.md +53 -55
- package/dist/cjs/locales/vi-VN.d.ts +3 -0
- package/dist/cjs/locales/vi-VN.js +170 -0
- package/dist/cjs/packages/safearea/safearea.js +12 -3
- package/dist/cjs/packages/safearea/style/safearea.scss +6 -0
- package/dist/cjs/packages/safearea/style/style.css +2 -0
- package/dist/cjs/packages/safearea/style-jmapp/safearea.scss +6 -0
- package/dist/cjs/packages/safearea/style-jmapp/style.css +2 -0
- package/dist/cjs/packages/safearea/style-jrkf/safearea.scss +6 -0
- package/dist/cjs/packages/safearea/style-jrkf/style.css +2 -0
- package/dist/es/locales/vi-VN.d.ts +3 -0
- package/dist/es/locales/vi-VN.js +160 -0
- package/dist/es/packages/safearea/safearea.js +12 -3
- package/dist/es/packages/safearea/style/safearea.scss +6 -0
- package/dist/es/packages/safearea/style/style.css +2 -0
- package/dist/es/packages/safearea/style-jmapp/safearea.scss +6 -0
- package/dist/es/packages/safearea/style-jmapp/style.css +2 -0
- package/dist/es/packages/safearea/style-jrkf/safearea.scss +6 -0
- package/dist/es/packages/safearea/style-jrkf/style.css +2 -0
- package/dist/nutui.react.umd.js +9 -3
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +30 -30
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +36 -36
- package/dist/style.css +1 -1
- package/dist/style.scss +37 -37
- package/package.json +1 -1
- package/postinstall.js +9 -0
|
@@ -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
|
}
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -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
|
-
|
|
5244
|
-
className
|
|
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";
|