@nutui/nutui-react 1.3.13 → 1.3.14-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 +19 -2
- package/README.md +54 -43
- package/dist/esm/Collapse.js +1 -1
- package/dist/esm/CollapseItem.js +9 -5
- package/dist/esm/Grid.js +9 -3
- package/dist/esm/GridItem.js +19 -1
- package/dist/esm/ImagePreview.js +27 -23
- package/dist/esm/NoticeBar.js +8 -5
- package/dist/esm/Notify.js +1 -1
- package/dist/esm/Toast.js +3 -3
- package/dist/esm/TrendArrow/style/index.js +1 -1
- package/dist/esm/TrendArrow.js +1 -1
- package/dist/esm/grid.context-e2f1ee97.js +6 -0
- package/dist/esm/render-f8746530.js +81 -0
- package/dist/esm/types/src/packages/formitem/index.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/grid/grid.context.d.ts +6 -0
- package/dist/esm/types/src/packages/grid/grid.d.ts +3 -1
- package/dist/esm/types/src/packages/grid/grid.taro.context.d.ts +6 -0
- package/dist/esm/types/src/utils/render.d.ts +8 -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/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/nutui.react.es.js +91 -35
- package/dist/nutui.react.umd.js +91 -35
- package/dist/packages/noticebar/noticebar.scss +0 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/font/config.json +5 -1
- package/dist/styles/font/demo_index.html +118 -26
- package/dist/styles/font/iconfont.css +23 -7
- package/dist/styles/font/iconfont.js +6 -6
- package/dist/styles/font/iconfont.json +35 -7
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/types/index.d.ts +16 -15
- package/package.json +1 -1
- package/dist/esm/render-18227751.js +0 -32
|
@@ -5,6 +5,41 @@
|
|
|
5
5
|
"css_prefix_text": "nut-icon-",
|
|
6
6
|
"description": "nutui 3.0字体管理",
|
|
7
7
|
"glyphs": [
|
|
8
|
+
{
|
|
9
|
+
"icon_id": "257405",
|
|
10
|
+
"name": "close_fill",
|
|
11
|
+
"font_class": "mask-close",
|
|
12
|
+
"unicode": "e6cd",
|
|
13
|
+
"unicode_decimal": 59085
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"icon_id": "24330526",
|
|
17
|
+
"name": "常用_返回",
|
|
18
|
+
"font_class": "rect-left",
|
|
19
|
+
"unicode": "e6c9",
|
|
20
|
+
"unicode_decimal": 59081
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"icon_id": "24330528",
|
|
24
|
+
"name": "常用_收起",
|
|
25
|
+
"font_class": "rect-up",
|
|
26
|
+
"unicode": "e6ca",
|
|
27
|
+
"unicode_decimal": 59082
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"icon_id": "24330529",
|
|
31
|
+
"name": "常用_更多",
|
|
32
|
+
"font_class": "rect-right",
|
|
33
|
+
"unicode": "e6cb",
|
|
34
|
+
"unicode_decimal": 59083
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"icon_id": "24330530",
|
|
38
|
+
"name": "常用_展开",
|
|
39
|
+
"font_class": "rect-down",
|
|
40
|
+
"unicode": "e6cc",
|
|
41
|
+
"unicode_decimal": 59084
|
|
42
|
+
},
|
|
8
43
|
{
|
|
9
44
|
"icon_id": "4175511",
|
|
10
45
|
"name": "下箭头",
|
|
@@ -418,13 +453,6 @@
|
|
|
418
453
|
"unicode": "e69b",
|
|
419
454
|
"unicode_decimal": 59035
|
|
420
455
|
},
|
|
421
|
-
{
|
|
422
|
-
"icon_id": "18193248",
|
|
423
|
-
"name": "mask-close",
|
|
424
|
-
"font_class": "mask-close",
|
|
425
|
-
"unicode": "e69a",
|
|
426
|
-
"unicode_decimal": 59034
|
|
427
|
-
},
|
|
428
456
|
{
|
|
429
457
|
"icon_id": "18193089",
|
|
430
458
|
"name": "circle-close",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/types/index.d.ts
CHANGED
|
@@ -306,7 +306,14 @@ interface DividerProps {
|
|
|
306
306
|
declare const Divider: FunctionComponent<Partial<DividerProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
307
307
|
|
|
308
308
|
declare type GridDirection$1 = 'horizontal' | 'vertical';
|
|
309
|
-
interface
|
|
309
|
+
interface GridItemProps extends BasicComponent {
|
|
310
|
+
text: string | ReactNode;
|
|
311
|
+
icon: string | ReactNode;
|
|
312
|
+
iconSize?: string | number;
|
|
313
|
+
iconColor?: string;
|
|
314
|
+
parentIconSize?: string | number;
|
|
315
|
+
parentIconColor?: string;
|
|
316
|
+
index: number;
|
|
310
317
|
columnNum: string | number;
|
|
311
318
|
border: boolean;
|
|
312
319
|
gutter: string | number;
|
|
@@ -314,22 +321,11 @@ interface GridProps {
|
|
|
314
321
|
square: boolean;
|
|
315
322
|
reverse: boolean;
|
|
316
323
|
direction: GridDirection$1;
|
|
317
|
-
className?: string;
|
|
318
|
-
iconSize?: string | number;
|
|
319
|
-
iconColor?: string;
|
|
320
|
-
style?: CSSProperties;
|
|
321
324
|
}
|
|
322
|
-
declare const
|
|
325
|
+
declare const GridItem: FunctionComponent<Partial<GridItemProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
323
326
|
|
|
324
327
|
declare type GridDirection = 'horizontal' | 'vertical';
|
|
325
|
-
interface
|
|
326
|
-
text: string | ReactNode;
|
|
327
|
-
icon: string | ReactNode;
|
|
328
|
-
iconSize?: string | number;
|
|
329
|
-
iconColor?: string;
|
|
330
|
-
parentIconSize?: string | number;
|
|
331
|
-
parentIconColor?: string;
|
|
332
|
-
index: number;
|
|
328
|
+
interface GridProps {
|
|
333
329
|
columnNum: string | number;
|
|
334
330
|
border: boolean;
|
|
335
331
|
gutter: string | number;
|
|
@@ -337,8 +333,13 @@ interface GridItemProps extends BasicComponent {
|
|
|
337
333
|
square: boolean;
|
|
338
334
|
reverse: boolean;
|
|
339
335
|
direction: GridDirection;
|
|
336
|
+
className?: string;
|
|
337
|
+
iconSize?: string | number;
|
|
338
|
+
iconColor?: string;
|
|
339
|
+
style?: CSSProperties;
|
|
340
|
+
onClick: (item: GridItemProps, index: number) => void;
|
|
340
341
|
}
|
|
341
|
-
declare const
|
|
342
|
+
declare const Grid: FunctionComponent<Partial<GridProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
342
343
|
|
|
343
344
|
interface StickyProps extends BasicComponent {
|
|
344
345
|
container?: React__default.RefObject<HTMLElement>;
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
import * as ReactDOM from 'react-dom';
|
|
5
|
-
var createRoot;
|
|
6
|
-
var version = ReactDOM.version;
|
|
7
|
-
var reactDOMClone = _objectSpread({}, ReactDOM);
|
|
8
|
-
try {
|
|
9
|
-
var mainVersion = Number((version || '').split('.')[0]);
|
|
10
|
-
if (mainVersion >= 18) {
|
|
11
|
-
createRoot = reactDOMClone.createRoot;
|
|
12
|
-
}
|
|
13
|
-
} catch (e) {
|
|
14
|
-
console.log(e);
|
|
15
|
-
}
|
|
16
|
-
function legacyRender(node, container) {
|
|
17
|
-
ReactDOM.render(node, container);
|
|
18
|
-
}
|
|
19
|
-
function concurrentRender(node, container) {
|
|
20
|
-
if (createRoot) {
|
|
21
|
-
var root = createRoot(container);
|
|
22
|
-
root.render(node);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function render(node, container) {
|
|
26
|
-
if (createRoot) {
|
|
27
|
-
concurrentRender(node, container);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
legacyRender(node, container);
|
|
31
|
-
}
|
|
32
|
-
export { render as r };
|