@nutui/nutui-react 1.3.0-beta.5 → 1.3.1-beta.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.
Files changed (159) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/esm/Audio/style/index.js +4 -0
  3. package/dist/esm/Audio.js +293 -0
  4. package/dist/esm/Calendar/style/index.js +1 -2
  5. package/dist/esm/Calendar.js +80 -33
  6. package/dist/esm/CalendarItem.js +429 -231
  7. package/dist/esm/Cascader/style/index.js +2 -0
  8. package/dist/esm/Cascader.js +788 -0
  9. package/dist/esm/ConfigProvider.js +16 -0
  10. package/dist/esm/DatePicker.js +37 -6
  11. package/dist/esm/Dialog.js +9 -16
  12. package/dist/esm/Elevator.js +16 -5
  13. package/dist/esm/Grid/style/index.js +2 -0
  14. package/dist/esm/Grid.js +91 -0
  15. package/dist/esm/GridItem/style/index.js +2 -0
  16. package/dist/esm/GridItem.js +99 -0
  17. package/dist/esm/ImagePreview/style/index.js +2 -0
  18. package/dist/esm/ImagePreview.js +257 -0
  19. package/dist/esm/Menu/style/index.js +3 -0
  20. package/dist/esm/Menu.js +153 -0
  21. package/dist/esm/MenuItem/style/index.js +3 -0
  22. package/dist/esm/MenuItem.js +197 -0
  23. package/dist/esm/NoticeBar.js +3 -2
  24. package/dist/esm/Notify.js +2 -1
  25. package/dist/esm/Popover.js +4 -11
  26. package/dist/esm/Range.js +2 -45
  27. package/dist/esm/Swipe/style/index.js +2 -0
  28. package/dist/esm/Swipe.js +265 -0
  29. package/dist/esm/Swiper.js +2 -1
  30. package/dist/esm/TabPane.js +5 -33
  31. package/dist/esm/Tabs.js +6 -196
  32. package/dist/esm/TextArea.js +45 -4
  33. package/dist/esm/Toast.js +2 -1
  34. package/dist/esm/nutui-react.es.js +8 -0
  35. package/dist/esm/render-4a3856cb.js +32 -0
  36. package/dist/esm/tabpane-c957ab14.js +33 -0
  37. package/dist/esm/tabs-a48583e9.js +196 -0
  38. package/dist/esm/useClientRect-839d18c5.js +44 -0
  39. package/dist/locales/base.d.ts +16 -0
  40. package/dist/locales/base.js +1 -1
  41. package/dist/locales/en-US.js +17 -1
  42. package/dist/locales/id-ID.js +17 -1
  43. package/dist/locales/zh-CN.js +17 -1
  44. package/dist/locales/zh-TW.js +17 -1
  45. package/dist/nutui.react.es.js +2338 -530
  46. package/dist/nutui.react.umd.js +2345 -529
  47. package/dist/packages/audio/audio.scss +80 -0
  48. package/dist/packages/calendar/calendar.scss +57 -36
  49. package/dist/packages/calendaritem/calendaritem.scss +0 -191
  50. package/dist/packages/cascader/cascader.scss +69 -0
  51. package/dist/packages/grid/grid.scss +10 -0
  52. package/dist/packages/griditem/griditem.scss +103 -0
  53. package/dist/packages/imagepreview/imagepreview.scss +51 -0
  54. package/dist/packages/menu/menu.scss +72 -0
  55. package/dist/packages/menuitem/menuitem.scss +90 -0
  56. package/dist/packages/popup/popup.scss +1 -1
  57. package/dist/packages/searchbar/searchbar.scss +1 -0
  58. package/dist/packages/shortpassword/shortpassword.scss +6 -1
  59. package/dist/packages/swipe/swipe.scss +33 -0
  60. package/dist/packages/textarea/textarea.scss +16 -1
  61. package/dist/style.css +1 -1
  62. package/dist/style.es.js +1 -1
  63. package/dist/styles/font/iconfont.js +20 -18
  64. package/dist/styles/themes/default.scss +8 -0
  65. package/dist/styles/variables.scss +59 -8
  66. package/dist/types/audio/__test__/audio.spec.d.ts +1 -0
  67. package/dist/types/audio/audio.d.ts +18 -0
  68. package/dist/types/audio/audio.taro.d.ts +18 -0
  69. package/dist/types/audio/demo.d.ts +4 -0
  70. package/dist/types/audio/index.d.ts +2 -0
  71. package/dist/types/audio/index.taro.d.ts +2 -0
  72. package/dist/types/backtop/__test__/backtop.spec.d.ts +1 -0
  73. package/dist/types/calendar/__tests__/calendar.spec.d.ts +1 -0
  74. package/dist/types/calendar/calendar.d.ts +22 -2
  75. package/dist/types/calendar/demo.d.ts +1 -0
  76. package/dist/types/calendaritem/calendaritem.d.ts +21 -3
  77. package/dist/types/cascader/__tests__/cascader.spec.d.ts +1 -0
  78. package/dist/types/cascader/cascader.d.ts +25 -0
  79. package/dist/types/cascader/cascader.taro.d.ts +25 -0
  80. package/dist/types/cascader/cascaderItem.d.ts +25 -0
  81. package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
  82. package/dist/types/cascader/demo.d.ts +3 -0
  83. package/dist/types/cascader/helper.d.ts +4 -0
  84. package/dist/types/cascader/index.d.ts +2 -0
  85. package/dist/types/cascader/index.taro.d.ts +2 -0
  86. package/dist/types/cascader/tree.d.ts +12 -0
  87. package/dist/types/cascader/types.d.ts +28 -0
  88. package/dist/types/checkbox/checkbox.d.ts +2 -2
  89. package/dist/types/checkbox/checkbox.taro.d.ts +2 -2
  90. package/dist/types/checkboxgroup/checkboxgroup.d.ts +2 -2
  91. package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  92. package/dist/types/dialog/__test__/dialog.spec.d.ts +1 -0
  93. package/dist/types/dialog/config.d.ts +3 -3
  94. package/dist/types/dialog/dialog.d.ts +2 -1
  95. package/dist/types/dialog/dialog.taro.d.ts +2 -1
  96. package/dist/types/fixednav/fixednav.d.ts +2 -2
  97. package/dist/types/grid/__test__/grid.spec.d.ts +1 -0
  98. package/dist/types/grid/demo.d.ts +3 -0
  99. package/dist/types/grid/grid.d.ts +16 -0
  100. package/dist/types/grid/grid.taro.d.ts +16 -0
  101. package/dist/types/grid/index.d.ts +2 -0
  102. package/dist/types/grid/index.taro.d.ts +2 -0
  103. package/dist/types/griditem/griditem.d.ts +20 -0
  104. package/dist/types/griditem/griditem.taro.d.ts +20 -0
  105. package/dist/types/griditem/index.d.ts +2 -0
  106. package/dist/types/griditem/index.taro.d.ts +2 -0
  107. package/dist/types/icon/icon.d.ts +1 -2
  108. package/dist/types/icon/icon.taro.d.ts +1 -2
  109. package/dist/types/imagepreview/__test__/imagepreview.spec.d.ts +1 -0
  110. package/dist/types/imagepreview/demo.d.ts +3 -0
  111. package/dist/types/imagepreview/imagepreview.d.ts +26 -0
  112. package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
  113. package/dist/types/imagepreview/index.d.ts +2 -0
  114. package/dist/types/imagepreview/index.taro.d.ts +2 -0
  115. package/dist/types/input/__test__/input.spec.d.ts +1 -0
  116. package/dist/types/menu/__test__/menu.spec.d.ts +1 -0
  117. package/dist/types/menu/demo.d.ts +4 -0
  118. package/dist/types/menu/index.d.ts +2 -0
  119. package/dist/types/menu/index.taro.d.ts +2 -0
  120. package/dist/types/menu/menu.d.ts +12 -0
  121. package/dist/types/menu/menu.taro.d.ts +12 -0
  122. package/dist/types/menuitem/index.d.ts +2 -0
  123. package/dist/types/menuitem/index.taro.d.ts +2 -0
  124. package/dist/types/menuitem/menuitem.d.ts +23 -0
  125. package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
  126. package/dist/types/notify/__test__/notify.spec.d.ts +1 -0
  127. package/dist/types/notify/notify.d.ts +13 -0
  128. package/dist/types/notify/notify.taro.d.ts +13 -0
  129. package/dist/types/nutui.react.d.ts +95 -1
  130. package/dist/types/picker/doc.en.d.ts +142 -0
  131. package/dist/types/picker/picker.d.ts +2 -2
  132. package/dist/types/picker/picker.taro.d.ts +2 -2
  133. package/dist/types/popup/popup.d.ts +1 -1
  134. package/dist/types/popup/popup.taro.d.ts +1 -1
  135. package/dist/types/shortpassword/shortpassword.taro.d.ts +3 -3
  136. package/dist/types/sidenavbar/sidenavbar.d.ts +14 -2
  137. package/dist/types/sidenavbar/sidenavbar.taro.d.ts +14 -2
  138. package/dist/types/sidenavbaritem/sidenavbaritem.d.ts +10 -2
  139. package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +10 -2
  140. package/dist/types/subsidenavbar/subsidenavbar.d.ts +13 -3
  141. package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -3
  142. package/dist/types/swipe/__tests__/swipe.spec.d.ts +1 -0
  143. package/dist/types/swipe/demo.d.ts +3 -0
  144. package/dist/types/swipe/index.d.ts +2 -0
  145. package/dist/types/swipe/index.taro.d.ts +2 -0
  146. package/dist/types/swipe/swipe.d.ts +41 -0
  147. package/dist/types/swipe/swipe.taro.d.ts +41 -0
  148. package/dist/types/swiper/swiper.d.ts +1 -2
  149. package/dist/types/swiperitem/swiperitem.d.ts +1 -2
  150. package/dist/types/table/table.d.ts +2 -1
  151. package/dist/types/table/table.taro.d.ts +2 -1
  152. package/dist/types/table/types.d.ts +1 -1
  153. package/dist/types/textarea/__test__/textarea.spec.d.ts +1 -0
  154. package/dist/types/toast/toast.d.ts +21 -0
  155. package/dist/types/toast/toast.taro.d.ts +18 -0
  156. package/dist/types/virtuallist/type.d.ts +1 -1
  157. package/dist/types/virtuallist/virtuallist.d.ts +2 -1
  158. package/dist/types/virtuallist/virtuallist.taro.d.ts +2 -1
  159. package/package.json +4 -4
@@ -0,0 +1,32 @@
1
+ import * as ReactDOM from 'react-dom';
2
+ var createRoot;
3
+
4
+ try {
5
+ var mainVersion = Number((ReactDOM.version || '').split('.')[0]);
6
+
7
+ if (mainVersion >= 18 && ReactDOM.createRoot) {
8
+ createRoot = ReactDOM.createRoot;
9
+ }
10
+ } catch (e) {
11
+ console.log(e);
12
+ }
13
+
14
+ function legacyRender(node, container) {
15
+ ReactDOM.render(node, container);
16
+ }
17
+
18
+ function concurrentRender(node, container) {
19
+ var root = ReactDOM.createRoot(container);
20
+ root.render(node);
21
+ }
22
+
23
+ function render(node, container) {
24
+ if (createRoot) {
25
+ concurrentRender(node, container);
26
+ return;
27
+ }
28
+
29
+ legacyRender(node, container);
30
+ }
31
+
32
+ export { render as r };
@@ -0,0 +1,33 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+
7
+ import React__default from 'react';
8
+ import classNames from 'classnames';
9
+ import { c as cn } from './bem-893ad28d.js';
10
+ var defaultProps = {
11
+ title: '',
12
+ paneKey: '',
13
+ activeKey: '',
14
+ disabled: false
15
+ };
16
+
17
+ var TabPane = function TabPane(props) {
18
+ var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
19
+ children = _defaultProps$props.children,
20
+ paneKey = _defaultProps$props.paneKey,
21
+ activeKey = _defaultProps$props.activeKey,
22
+ autoHeightClassName = _defaultProps$props.autoHeightClassName;
23
+
24
+ var b = cn('tabpane');
25
+ var classes = classNames({
26
+ active: paneKey === activeKey
27
+ }, b(''), autoHeightClassName);
28
+ return React__default.createElement("div", {
29
+ className: classes
30
+ }, children);
31
+ };
32
+
33
+ export { TabPane as T };
@@ -0,0 +1,196 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ import _createClass from "@babel/runtime/helpers/createClass";
4
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
+ var _excluded = ["value", "color", "background", "direction", "type", "titleScroll", "ellipsis", "animatedTime", "titleGutter", "size", "titleNode", "children", "onClick", "onChange", "className", "autoHeight"];
7
+
8
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
+
10
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11
+
12
+ import React__default, { useState, useRef, useEffect } from 'react';
13
+ import classNames from 'classnames';
14
+ import { c as cn } from './bem-893ad28d.js';
15
+ import Icon from './Icon.js';
16
+
17
+ var Title = /*#__PURE__*/_createClass( // eslint-disable-next-line no-useless-constructor
18
+ function Title() {
19
+ _classCallCheck(this, Title);
20
+
21
+ _defineProperty(this, "title", '');
22
+
23
+ _defineProperty(this, "paneKey", '');
24
+
25
+ _defineProperty(this, "disabled", false);
26
+
27
+ _defineProperty(this, "index", 0);
28
+ });
29
+
30
+ var defaultProps = {
31
+ value: 0,
32
+ color: '',
33
+ background: '',
34
+ direction: 'horizontal',
35
+ type: 'line',
36
+ titleScroll: false,
37
+ ellipsis: true,
38
+ animatedTime: 300,
39
+ titleGutter: 0,
40
+ size: 'normal',
41
+ autoHeight: false
42
+ };
43
+
44
+ var pxCheck = function pxCheck(value) {
45
+ return Number.isNaN(Number(value)) ? String(value) : "".concat(value, "px");
46
+ };
47
+
48
+ var Tabs = function Tabs(props) {
49
+ var _classNames;
50
+
51
+ var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
52
+ value = _defaultProps$props.value,
53
+ color = _defaultProps$props.color,
54
+ background = _defaultProps$props.background,
55
+ direction = _defaultProps$props.direction,
56
+ type = _defaultProps$props.type,
57
+ titleScroll = _defaultProps$props.titleScroll,
58
+ ellipsis = _defaultProps$props.ellipsis,
59
+ animatedTime = _defaultProps$props.animatedTime,
60
+ titleGutter = _defaultProps$props.titleGutter,
61
+ size = _defaultProps$props.size,
62
+ titleNode = _defaultProps$props.titleNode,
63
+ children = _defaultProps$props.children,
64
+ onClick = _defaultProps$props.onClick,
65
+ onChange = _defaultProps$props.onChange,
66
+ className = _defaultProps$props.className,
67
+ autoHeight = _defaultProps$props.autoHeight,
68
+ rest = _objectWithoutProperties(_defaultProps$props, _excluded);
69
+
70
+ var _useState = useState({
71
+ index: 0
72
+ }),
73
+ _useState2 = _slicedToArray(_useState, 2),
74
+ currentItem = _useState2[0],
75
+ setCurrentItem = _useState2[1];
76
+
77
+ var titles = useRef([]);
78
+ useEffect(function () {
79
+ var currentIndex = 0;
80
+ titles.current = []; // eslint-disable-next-line consistent-return
81
+
82
+ React__default.Children.forEach(children, function (child, idx) {
83
+ var _child$props, _child$props2;
84
+
85
+ if (!React__default.isValidElement(child)) {
86
+ return null;
87
+ }
88
+
89
+ var title = new Title();
90
+
91
+ if ((_child$props = child.props) !== null && _child$props !== void 0 && _child$props.title || (_child$props2 = child.props) !== null && _child$props2 !== void 0 && _child$props2.paneKey) {
92
+ var _child$props3, _child$props4, _child$props5;
93
+
94
+ title.title = (_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.title;
95
+ title.paneKey = ((_child$props4 = child.props) === null || _child$props4 === void 0 ? void 0 : _child$props4.paneKey) || idx;
96
+ title.disabled = (_child$props5 = child.props) === null || _child$props5 === void 0 ? void 0 : _child$props5.disabled;
97
+ title.index = idx;
98
+
99
+ if (title.paneKey === value) {
100
+ currentIndex = idx;
101
+ }
102
+ }
103
+
104
+ titles.current.push(title);
105
+ });
106
+ setCurrentItem(titles.current[currentIndex]);
107
+ }, [children]);
108
+ var b = cn('tabs');
109
+ var classes = classNames(direction, b(''), className);
110
+ var classesTitle = classNames((_classNames = {}, _defineProperty(_classNames, type, type), _defineProperty(_classNames, "scrollable", titleScroll), _defineProperty(_classNames, size, size), _classNames), "".concat(b(''), "__titles"));
111
+ var titleStyle = {
112
+ marginLeft: pxCheck(titleGutter),
113
+ marginRight: pxCheck(titleGutter)
114
+ };
115
+ var tabsActiveStyle = {
116
+ color: type === 'smile' ? color : '',
117
+ background: type === 'line' ? color : ''
118
+ };
119
+ var index = titles.current.findIndex(function (t) {
120
+ return t.paneKey === value;
121
+ });
122
+ var contentStyle = {
123
+ transform: direction === 'horizontal' ? "translate3d(-".concat(index * 100, "%, 0, 0)") : "translate3d( 0,-".concat(index * 100, "%, 0)"),
124
+ transitionDuration: "".concat(animatedTime, "ms")
125
+ };
126
+
127
+ var tabChange = function tabChange(item, index) {
128
+ onClick && onClick(item);
129
+
130
+ if (item.disabled) {
131
+ return;
132
+ }
133
+
134
+ setCurrentItem(item);
135
+ onChange && onChange(item);
136
+ };
137
+
138
+ return React__default.createElement("div", _objectSpread({
139
+ className: classes
140
+ }, rest), React__default.createElement("div", {
141
+ className: classesTitle,
142
+ style: {
143
+ background: background
144
+ }
145
+ }, !!titleNode && typeof titleNode === 'function' ? titleNode() : titles.current.map(function (item, index) {
146
+ return React__default.createElement("div", {
147
+ style: titleStyle,
148
+ onClick: function onClick(e) {
149
+ return tabChange(item);
150
+ },
151
+ className: classNames({
152
+ active: String(item.paneKey) === String(value),
153
+ disabled: item.disabled
154
+ }, "".concat(b(''), "__titles-item")),
155
+ key: item.paneKey
156
+ }, type === 'line' && React__default.createElement("div", {
157
+ className: "".concat(b(''), "__titles-item__line"),
158
+ style: tabsActiveStyle
159
+ }), type === 'smile' && React__default.createElement("div", {
160
+ className: "".concat(b(''), "__titles-item__smile"),
161
+ style: tabsActiveStyle
162
+ }, React__default.createElement(Icon, {
163
+ color: color,
164
+ name: "joy-smile"
165
+ })), React__default.createElement("div", {
166
+ className: classNames({
167
+ ellipsis: ellipsis && !titleScroll && direction === 'horizontal'
168
+ }, "".concat(b(''), "__titles-item__text"))
169
+ }, item.title));
170
+ })), React__default.createElement("div", {
171
+ className: "".concat(b(''), "__content"),
172
+ style: contentStyle
173
+ }, React__default.Children.map(children, function (child, idx) {
174
+ var _child$props6;
175
+
176
+ if (!React__default.isValidElement(child)) {
177
+ return null;
178
+ }
179
+
180
+ var childProps = _objectSpread(_objectSpread({}, child.props), {}, {
181
+ activeKey: value
182
+ });
183
+
184
+ if (String(value) !== String(((_child$props6 = child.props) === null || _child$props6 === void 0 ? void 0 : _child$props6.paneKey) || idx) && autoHeight) {
185
+ childProps = _objectSpread(_objectSpread({}, childProps), {}, {
186
+ autoHeightClassName: 'inactive'
187
+ });
188
+ }
189
+
190
+ return React__default.cloneElement(child, childProps);
191
+ })));
192
+ };
193
+
194
+ Tabs.defaultProps = defaultProps;
195
+ Tabs.displayName = 'NutTabs';
196
+ export { Tabs as T };
@@ -0,0 +1,44 @@
1
+ /**
2
+ 获取元素的大小及其相对于视口的位置,等价于 Element.getBoundingClientRect。
3
+ width 宽度 number
4
+ height 高度 number
5
+ top 顶部与视图窗口左上角的距离 number
6
+ left 左侧与视图窗口左上角的距离 number
7
+ right 右侧与视图窗口左上角的距离 number
8
+ bottom 底部与视图窗口左上角的距离 number
9
+ */
10
+ function isWindow(val) {
11
+ return val === window;
12
+ }
13
+
14
+ var getRect = function getRect(elementRef) {
15
+ var element = elementRef;
16
+
17
+ if (isWindow(element)) {
18
+ var width = element.innerWidth;
19
+ var height = element.innerHeight;
20
+ return {
21
+ top: 0,
22
+ left: 0,
23
+ right: width,
24
+ bottom: height,
25
+ width: width,
26
+ height: height
27
+ };
28
+ }
29
+
30
+ if (element && element.getBoundingClientRect) {
31
+ return element.getBoundingClientRect();
32
+ }
33
+
34
+ return {
35
+ top: 0,
36
+ left: 0,
37
+ right: 0,
38
+ bottom: 0,
39
+ width: 0,
40
+ height: 0
41
+ };
42
+ };
43
+
44
+ export { getRect as g };
@@ -100,4 +100,20 @@ export interface BaseLang {
100
100
  title5: string;
101
101
  title6: string;
102
102
  };
103
+ audio: {
104
+ back: string;
105
+ forward: string;
106
+ pause: string;
107
+ start: string;
108
+ mute: string;
109
+ tips: string;
110
+ };
111
+ datepicker: {
112
+ year: string;
113
+ month: string;
114
+ day: string;
115
+ hour: string;
116
+ min: string;
117
+ seconds: string;
118
+ };
103
119
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.1-beta.1 Wed Aug 31 2022 14:14:37 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.1-beta.1 Wed Aug 31 2022 14:14:37 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -102,6 +102,22 @@ const enUS = {
102
102
  title4: "search box text settings",
103
103
  title5: "custom icon settings",
104
104
  title6: "data change monitoring"
105
+ },
106
+ audio: {
107
+ back: "fastBack",
108
+ forward: "forward",
109
+ pause: "pause",
110
+ start: "start",
111
+ mute: "mute",
112
+ tips: "The onplayend event will only be triggered when loop = false"
113
+ },
114
+ datepicker: {
115
+ year: "Year",
116
+ month: "Month",
117
+ day: "Day",
118
+ hour: "Hour",
119
+ min: "Minute",
120
+ seconds: "Second"
105
121
  }
106
122
  };
107
123
  export { enUS as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.1-beta.1 Wed Aug 31 2022 14:14:37 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -102,6 +102,22 @@ const idID = {
102
102
  title4: "tetapan teks kotak pencarian",
103
103
  title5: "pengaturan ikon suai",
104
104
  title6: "Monitor perubahan data"
105
+ },
106
+ audio: {
107
+ back: "Fastback",
108
+ forward: "maju",
109
+ pause: "berhenti sebentar",
110
+ start: "Mulailah",
111
+ mute: "bisu",
112
+ tips: "Acara Onplayend hanya akan dipicu saat loop = false"
113
+ },
114
+ datepicker: {
115
+ year: "Tahun",
116
+ month: "Bulan",
117
+ day: "Hari",
118
+ hour: "Jam",
119
+ min: "Menit",
120
+ seconds: "Detik"
105
121
  }
106
122
  };
107
123
  export { idID as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.1-beta.1 Wed Aug 31 2022 14:14:37 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -104,6 +104,22 @@ const zhCN = {
104
104
  title4: "\u641C\u7D22\u6846\u6587\u672C\u8BBE\u7F6E",
105
105
  title5: "\u81EA\u5B9A\u4E49\u56FE\u6807\u8BBE\u7F6E",
106
106
  title6: "\u6570\u636E\u6539\u53D8\u76D1\u542C"
107
+ },
108
+ audio: {
109
+ back: "\u5FEB\u9000",
110
+ forward: "\u5FEB\u8FDB",
111
+ pause: "\u6682\u505C",
112
+ start: "\u5F00\u59CB",
113
+ mute: "\u9759\u97F3",
114
+ tips: "onPlayEnd\u4E8B\u4EF6\u5728loop=false\u65F6\u624D\u4F1A\u89E6\u53D1"
115
+ },
116
+ datepicker: {
117
+ year: "\u5E74",
118
+ month: "\u6708",
119
+ day: "\u65E5",
120
+ hour: "\u65F6",
121
+ min: "\u5206",
122
+ seconds: "\u79D2"
107
123
  }
108
124
  };
109
125
  export { zhCN as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.1-beta.1 Wed Aug 31 2022 14:14:37 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -102,6 +102,22 @@ const zhTW = {
102
102
  title4: "\u8490\u7D22\u6846\u6587\u5B57\u8A2D\u5B9A",
103
103
  title5: "\u81EA\u5B9A\u7FA9\u5716\u6A19\u8A2D\u5B9A",
104
104
  title6: "\u6578\u64DA\u6539\u8B8A\u76E3\u807D"
105
+ },
106
+ audio: {
107
+ back: "\u5FEB\u9000",
108
+ forward: "\u5FEB\u9032",
109
+ pause: "\u66AB\u505C",
110
+ start: "\u958B\u59CB",
111
+ mute: "\u975C\u97F3",
112
+ tips: "onPlayEnd\u4E8B\u4EF6\u5728loop=false\u6642\u624D\u6703\u89F8\u767C"
113
+ },
114
+ datepicker: {
115
+ year: "\u5E74",
116
+ month: "\u6708",
117
+ day: "\u65E5",
118
+ hour: "\u6642",
119
+ min: "\u5206",
120
+ seconds: "\u79D2"
105
121
  }
106
122
  };
107
123
  export { zhTW as default };