@nutui/nutui-react 2.7.0 → 2.7.1
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 +23 -10
- package/dist/esm/TextArea.js +2 -2
- package/dist/esm/Toast/style/index.js +1 -1
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +2 -3
- package/dist/nutui.react.umd.js +2 -3
- package/dist/packages/toast/toast.scss +1 -0
- package/dist/types/packages/infiniteloading/infiniteloading.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
|
-
# v2.7.
|
|
2
|
-
`2024-11-
|
|
1
|
+
# v2.7.1
|
|
2
|
+
`2024-11-22`
|
|
3
|
+
|
|
4
|
+
* :bug: fix(popup): display should not trigger the scrollview to update (#2773)
|
|
5
|
+
* :bug: fix(toast): load dependent CSS (#2776)
|
|
6
|
+
* :bug: fix(Form): Form 组件文档 demo 中 Switch 组件使用问题 (#2774)
|
|
7
|
+
* :bug: fix(textarea): handle undefined placeholder explicitly (#2748)
|
|
8
|
+
* 🏡 chore: jdesign 主题 (#2703)
|
|
9
|
+
* 🏡 chore: ci optimize (#2692)
|
|
10
|
+
* 🏡 chore: ci (#2690)
|
|
11
|
+
* 📖 docs(infiniteLoading): optimize target description (#2770)
|
|
12
|
+
* 📖 docs: 官方主题入口 (#2634)
|
|
3
13
|
|
|
4
14
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* :sparkles: feat: add plugin to replace icons (#2671)
|
|
9
|
-
* :bug: fix(tabs): clicked tabs should be entirely visible (#2685)
|
|
10
|
-
* :bug: fix(avatarcropper): multi-language support (#2666)
|
|
11
|
-
* :bug: fix: optimize vertical type syntax for divider (#2664)
|
|
12
|
-
* :bug: fix: @nutui/icons-react changed to @nutui/icons-react-taro (#2651)
|
|
15
|
+
# v2.7.0
|
|
16
|
+
|
|
17
|
+
`2024-11-01`
|
|
13
18
|
|
|
19
|
+
- :sparkles: feat: add plugin to remove rtl (#2673)
|
|
20
|
+
- :sparkles: feat: replacing the css paths imported from a specified package (#2675)
|
|
21
|
+
- :sparkles: feat(replace icon): jmapp icon (#2672)
|
|
22
|
+
- :sparkles: feat: add plugin to replace icons (#2671)
|
|
23
|
+
- :bug: fix(tabs): clicked tabs should be entirely visible (#2685)
|
|
24
|
+
- :bug: fix(avatarcropper): multi-language support (#2666)
|
|
25
|
+
- :bug: fix: optimize vertical type syntax for divider (#2664)
|
|
26
|
+
- :bug: fix: @nutui/icons-react changed to @nutui/icons-react-taro (#2651)
|
|
14
27
|
|
|
15
28
|
# v2.6.23
|
|
16
29
|
|
package/dist/esm/TextArea.js
CHANGED
|
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { useConfig } from "./ConfigProvider.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings.js";
|
|
6
6
|
import { u as usePropsValue } from "./use-props-value.js";
|
|
7
|
-
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: "", showCount: false, rows: 2, maxLength: 140,
|
|
7
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: "", showCount: false, rows: 2, maxLength: 140, readOnly: false, disabled: false, autoSize: false });
|
|
8
8
|
const TextArea = (props) => {
|
|
9
9
|
const { locale } = useConfig();
|
|
10
10
|
const _a = Object.assign(Object.assign({}, defaultProps), props), { className, value, defaultValue, showCount, maxLength, rows, placeholder, readOnly, disabled, autoSize, style, onChange, onBlur, onFocus } = _a, rest = __rest(_a, ["className", "value", "defaultValue", "showCount", "maxLength", "rows", "placeholder", "readOnly", "disabled", "autoSize", "style", "onChange", "onBlur", "onFocus"]);
|
|
@@ -66,7 +66,7 @@ const TextArea = (props) => {
|
|
|
66
66
|
compositionRef.current = false;
|
|
67
67
|
}, onCompositionStart: () => {
|
|
68
68
|
compositionRef.current = true;
|
|
69
|
-
}, rows, maxLength: maxLength === -1 ? void 0 : maxLength, placeholder: placeholder
|
|
69
|
+
}, rows, maxLength: maxLength === -1 ? void 0 : maxLength, placeholder: placeholder === void 0 ? locale.placeholder : placeholder }, rest)),
|
|
70
70
|
showCount && React__default.createElement(
|
|
71
71
|
"div",
|
|
72
72
|
{ className: `${classPrefix}-limit` },
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import '../../Overlay/style'
|
|
2
2
|
import '../../../packages/toast/toast.scss'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.nut-toast{position:fixed;left:0;top:0;width:100%;height:100%;text-align:center;pointer-events:none;z-index:1300}.nut-toast-overlay-default{--nutui-overlay-bg-color: rgba(0, 0, 0, 0);--nutui-overlay-zIndex: 1300}.nut-toast-small .nut-toast-inner{font-size:var(--nutui-font-size-2, 12px)}.nut-toast-large .nut-toast-inner{font-size:var(--nutui-font-size-4, 16px)}.nut-toast-inner{display:inline-block;position:absolute;left:50%;top:var(--nutui-toast-inner-top, 50%);min-width:30%;max-width:95.7%;font-size:var(--nutui-toast-text-font-size, 14px);text-align:var(--nutui-toast-inner-text-align, center);padding:var(--nutui-toast-inner-padding, 16px 24px);word-break:break-all;background:var(--nutui-toast-inner-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));border-radius:var(--nutui-toast-inner-border-radius, 16px);color:var(--nutui-toast-font-color, #ffffff);transform:translate(-50%,-50%)}.nut-toast-inner.normal{word-break:normal;word-wrap:normal}.nut-toast-inner.break-word{word-break:normal;word-wrap:break-word}.nut-toast-center{top:var(--nutui-toast-inner-top, 50%)}.nut-toast-bottom{top:var(--nutui-toast-inner-top, 80%)}.nut-toast-top{top:var(--nutui-toast-inner-top, 20%)}.nut-toast-text:empty{margin-bottom:-8px}.nut-toast-title{font-size:var(--nutui-toast-title-font-size, 16px);font-weight:500}.nut-toast-title:empty{margin-bottom:-8px}.nut-toast-has-icon .nut-toast-icon-wrapper{width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.nut-toast-has-icon .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}.nut-toast-loading .nut-toast-inner{display:inline-flex;flex-direction:column;justify-content:center;align-items:center}.nut-toast-loading .nut-toast-icon-wrapper{animation:rotation 2s linear infinite}.nut-toast-loading .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}[dir=rtl] .nut-toast,.nut-rtl .nut-toast{left:auto;right:0}[dir=rtl] .nut-toast-inner,.nut-rtl .nut-toast-inner{left:auto;right:50%;transform:translate(50%,-50%)}.toast-fade-enter-active,.toast-fade-leave-active{transition:opacity .3s}.toast-fade-enter-from,.toast-fade-leave-to{opacity:0}
|
|
1
|
+
.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-7, #1a1a1a))}[dir=rtl] .nut-overlay,.nut-rtl .nut-overlay{left:auto;right:0}.nut-overflow-hidden{overflow:hidden!important}@keyframes nut-fade-in{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}1%{opacity:1}to{opacity:0}}.nut-overlay-slide-enter-active,.nut-overlay-slide-appear-active{animation-fill-mode:both;animation-name:nut-fade-in;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-overlay-slide-exit-active{animation-fill-mode:both;animation-name:nut-fade-out;animation-duration:var(--nutui-overlay-animation-duration, .3s)}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.nut-toast{position:fixed;left:0;top:0;width:100%;height:100%;text-align:center;pointer-events:none;z-index:1300}.nut-toast-overlay-default{--nutui-overlay-bg-color: rgba(0, 0, 0, 0);--nutui-overlay-zIndex: 1300}.nut-toast-small .nut-toast-inner{font-size:var(--nutui-font-size-2, 12px)}.nut-toast-large .nut-toast-inner{font-size:var(--nutui-font-size-4, 16px)}.nut-toast-inner{display:inline-block;position:absolute;left:50%;top:var(--nutui-toast-inner-top, 50%);min-width:30%;max-width:95.7%;font-size:var(--nutui-toast-text-font-size, 14px);text-align:var(--nutui-toast-inner-text-align, center);padding:var(--nutui-toast-inner-padding, 16px 24px);word-break:break-all;background:var(--nutui-toast-inner-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));border-radius:var(--nutui-toast-inner-border-radius, 16px);color:var(--nutui-toast-font-color, #ffffff);transform:translate(-50%,-50%)}.nut-toast-inner.normal{word-break:normal;word-wrap:normal}.nut-toast-inner.break-word{word-break:normal;word-wrap:break-word}.nut-toast-center{top:var(--nutui-toast-inner-top, 50%)}.nut-toast-bottom{top:var(--nutui-toast-inner-top, 80%)}.nut-toast-top{top:var(--nutui-toast-inner-top, 20%)}.nut-toast-text:empty{margin-bottom:-8px}.nut-toast-title{font-size:var(--nutui-toast-title-font-size, 16px);font-weight:500}.nut-toast-title:empty{margin-bottom:-8px}.nut-toast-has-icon .nut-toast-icon-wrapper{width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.nut-toast-has-icon .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}.nut-toast-loading .nut-toast-inner{display:inline-flex;flex-direction:column;justify-content:center;align-items:center}.nut-toast-loading .nut-toast-icon-wrapper{animation:rotation 2s linear infinite}.nut-toast-loading .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}[dir=rtl] .nut-toast,.nut-rtl .nut-toast{left:auto;right:0}[dir=rtl] .nut-toast-inner,.nut-rtl .nut-toast-inner{left:auto;right:50%;transform:translate(50%,-50%)}.toast-fade-enter-active,.toast-fade-leave-active{transition:opacity .3s}.toast-fade-enter-from,.toast-fade-leave-to{opacity:0}
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.7.
|
|
2
|
+
* @nutui/nutui-react v2.7.1 Fri Nov 22 2024 15:44:59 GMT+0800 (Central Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -16284,7 +16284,6 @@ const defaultProps$I = {
|
|
|
16284
16284
|
showCount: false,
|
|
16285
16285
|
rows: 2,
|
|
16286
16286
|
maxLength: 140,
|
|
16287
|
-
placeholder: "",
|
|
16288
16287
|
readOnly: false,
|
|
16289
16288
|
disabled: false,
|
|
16290
16289
|
autoSize: false
|
|
@@ -16384,7 +16383,7 @@ const TextArea = (props) => {
|
|
|
16384
16383
|
},
|
|
16385
16384
|
rows,
|
|
16386
16385
|
maxLength: maxLength === -1 ? void 0 : maxLength,
|
|
16387
|
-
placeholder: placeholder
|
|
16386
|
+
placeholder: placeholder === void 0 ? locale.placeholder : placeholder,
|
|
16388
16387
|
...rest
|
|
16389
16388
|
}
|
|
16390
16389
|
),
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.nutui = {}, global2.React, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react v2.7.
|
|
5
|
+
* @nutui/nutui-react v2.7.1 Fri Nov 22 2024 15:44:59 GMT+0800 (Central Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -16302,7 +16302,6 @@
|
|
|
16302
16302
|
showCount: false,
|
|
16303
16303
|
rows: 2,
|
|
16304
16304
|
maxLength: 140,
|
|
16305
|
-
placeholder: "",
|
|
16306
16305
|
readOnly: false,
|
|
16307
16306
|
disabled: false,
|
|
16308
16307
|
autoSize: false
|
|
@@ -16402,7 +16401,7 @@
|
|
|
16402
16401
|
},
|
|
16403
16402
|
rows,
|
|
16404
16403
|
maxLength: maxLength === -1 ? void 0 : maxLength,
|
|
16405
|
-
placeholder: placeholder
|
|
16404
|
+
placeholder: placeholder === void 0 ? locale.placeholder : placeholder,
|
|
16406
16405
|
...rest
|
|
16407
16406
|
}
|
|
16408
16407
|
),
|