@daoyi/nmtl-ui 2.0.1-beta.85 → 2.0.1-beta.87
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/README.md +45 -45
- package/lib/components/{Autocomplete-18e0fd14.js → Autocomplete-2b5732e8.js} +3 -3
- package/lib/components/Autocomplete.js +4 -4
- package/lib/components/Avatar.js +1 -1
- package/lib/components/BackTop.js +2 -2
- package/lib/components/BarChart.js +1 -1
- package/lib/components/Breadcrumbs.js +1 -1
- package/lib/components/{Button-ef7dd575.js → Button-305b69a0.js} +1 -1
- package/lib/components/Button.js +2 -2
- package/lib/components/Carousel.js +1 -1
- package/lib/components/CollapseContent.js +2 -2
- package/lib/components/{ContactModal-75da5f05.js → ContactModal-f33af93a.js} +4 -4
- package/lib/components/ContactModal.js +8 -8
- package/lib/components/{Drawer-b03f093b.js → Drawer-f6842ba3.js} +1 -1
- package/lib/components/Drawer.js +4 -4
- package/lib/components/Dropdown.js +1 -1
- package/lib/components/{Empty-ab663853.js → Empty-bf77164f.js} +1 -1
- package/lib/components/Empty.js +2 -2
- package/lib/components/ExportButton.js +1 -1
- package/lib/components/{ExtraTools-7ca77e1a.js → ExtraTools-b9cbb205.js} +2 -2
- package/lib/components/ExtraTools.js +3 -3
- package/lib/components/Filter.js +2 -2
- package/lib/components/Footer.js +8 -8
- package/lib/components/{ForwardLink-ec844c9c.js → ForwardLink-f80fdf67.js} +5 -5
- package/lib/components/ForwardLink.js +2 -2
- package/lib/components/Header.js +7 -7
- package/lib/components/Image.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputMethod.js +196 -186
- package/lib/components/{KeywordSearch-18b49195.js → KeywordSearch-1883b67f.js} +2 -2
- package/lib/components/KeywordSearch.js +5 -5
- package/lib/components/KeywordTicker.js +3 -3
- package/lib/components/Keywords.js +5 -5
- package/lib/components/Loading.js +1 -1
- package/lib/components/{Modal-a7fd17d8.js → Modal-7f799c2e.js} +3 -3
- package/lib/components/Modal.js +4 -4
- package/lib/components/{MoreButton-efbc5181.js → MoreButton-44d3b4fe.js} +1 -1
- package/lib/components/MoreButton.js +2 -2
- package/lib/components/Pagination.js +2 -2
- package/lib/components/SNA.js +3 -3
- package/lib/components/{Select-38a08b3f.js → Select-7b672be8.js} +2 -2
- package/lib/components/Select.js +3 -3
- package/lib/components/{Spin-5eb597a1.js → Spin-8dc60bfe.js} +1 -1
- package/lib/components/Spin.js +2 -2
- package/lib/components/{Tooltip-cb531c8d.js → Tooltip-6ebfa9c1.js} +1 -1
- package/lib/components/Tooltip.js +2 -2
- package/lib/components/globalConfig.js +3 -3
- package/lib/configs/config.selector.js +151 -0
- package/lib/configs/index.d.ts +1 -0
- package/lib/configs/index.js +1 -0
- package/lib/utils/arrayMerge.js +20 -20
- package/package.json +125 -125
- /package/lib/components/{createSvgIcon-d48cdd8c.js → createSvgIcon-e3803ee1.js} +0 -0
- /package/lib/components/{index-a5d56b0c.js → index-b47819f3.js} +0 -0
- /package/lib/components/{index-195d1b27.js → index-b76a85f4.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { M as default } from './MoreButton-
|
|
1
|
+
export { M as default } from './MoreButton-44d3b4fe.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-b76a85f4.js';
|
|
5
5
|
import '@material-ui/icons';
|
|
6
6
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -3,14 +3,14 @@ import * as React$2 from 'react';
|
|
|
3
3
|
import React__default, { Children, isValidElement, cloneElement } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { d as defaultTheme, k as _objectWithoutProperties, o as _slicedToArray, _ as _extends, q as _objectWithoutPropertiesLoose, r as alpha, j as formatMuiErrorMessage } from './defaultTheme-ed7746fe.js';
|
|
6
|
-
import { u as useControlled, c as clsx, b as useEventCallback, w as withStyles, d as useIsFocusVisible, e as useForkRef, f as createSvgIcon, g as capitalize, h as debounce, r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-
|
|
6
|
+
import { u as useControlled, c as clsx, b as useEventCallback, w as withStyles, d as useIsFocusVisible, e as useForkRef, f as createSvgIcon, g as capitalize, h as debounce, r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-e3803ee1.js';
|
|
7
7
|
import 'react-is';
|
|
8
8
|
import { useTheme as useTheme$1 } from '@material-ui/styles';
|
|
9
9
|
import './withTheme-2d778133.js';
|
|
10
10
|
import { _ as _toConsumableArray } from './toConsumableArray-dbe8af76.js';
|
|
11
11
|
import * as ReactDOM from 'react-dom';
|
|
12
12
|
import ReactDOM__default from 'react-dom';
|
|
13
|
-
import { c as classNames } from './index-
|
|
13
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
14
14
|
import { IconButton } from '@material-ui/core';
|
|
15
15
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
16
16
|
import './_commonjsHelpers-70de2c37.js';
|
package/lib/components/SNA.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React__default, { useMemo, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
4
4
|
import { e as event, d as d3Select, a as dispatch, c as customEvent, D as DragEvent, q as quadtree, m as map, t as timer, T as Transform, i as identity, b as interrupt, o as ordinal, f as category10 } from './transform-3a04288b.js';
|
|
5
|
-
import { E as ExtraTools } from './ExtraTools-
|
|
5
|
+
import { E as ExtraTools } from './ExtraTools-b9cbb205.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
8
8
|
import './_commonjsHelpers-70de2c37.js';
|
|
9
9
|
import '@material-ui/core';
|
|
10
|
-
import './Tooltip-
|
|
10
|
+
import './Tooltip-6ebfa9c1.js';
|
|
11
11
|
import './dataExport-d55d6fa3.js';
|
|
12
12
|
|
|
13
13
|
function sourceEvent() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as _objectSpread2, d as _typeof } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
5
5
|
import { FormControl, Select as Select$1, CircularProgress, MenuItem } from '@material-ui/core';
|
|
6
|
-
import { E as Empty } from './Empty-
|
|
6
|
+
import { E as Empty } from './Empty-bf77164f.js';
|
|
7
7
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
8
8
|
|
|
9
9
|
var css_248z = ".select__placeholder {\n color: #999;\n}\n.select--small {\n width: 100%;\n}\n.select--small .MuiSelect-root {\n padding: 0.5rem 1.5rem 0.25rem;\n color: white;\n}\n.select--small .MuiSelect-root .select__placeholder {\n color: white;\n}\n.select--small .MuiSelect-root:hover, .select--small .MuiSelect-root:focus {\n background: transparent;\n}\n.select--small .MuiSvgIcon-root {\n color: white;\n}\n.select--small .MuiOutlinedInput-root {\n border-radius: 45px;\n}";
|
package/lib/components/Select.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { S as default } from './Select-
|
|
1
|
+
export { S as default } from './Select-7b672be8.js';
|
|
2
2
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-b76a85f4.js';
|
|
6
6
|
import '@material-ui/core';
|
|
7
|
-
import './Empty-
|
|
7
|
+
import './Empty-bf77164f.js';
|
|
8
8
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
4
4
|
import { Fade, CircularProgress } from '@material-ui/core';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
package/lib/components/Spin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { S as default } from './Spin-
|
|
1
|
+
export { S as default } from './Spin-8dc60bfe.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-b76a85f4.js';
|
|
5
5
|
import '@material-ui/core';
|
|
6
6
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Tooltip as Tooltip$1 } from '@material-ui/core';
|
|
4
4
|
import { _ as _extends } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
5
|
-
import { c as classNames } from './index-
|
|
5
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
|
|
8
8
|
const TooltipContent = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { T as default, p as placements } from './Tooltip-
|
|
1
|
+
export { T as default, p as placements } from './Tooltip-6ebfa9c1.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import '@material-ui/core';
|
|
5
5
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-b76a85f4.js';
|
|
7
7
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -151,9 +151,9 @@ var ZH_TW = 'zh-tw';
|
|
|
151
151
|
var ZH_CN = 'zh-cn';
|
|
152
152
|
var EN_US = 'en-us';
|
|
153
153
|
|
|
154
|
-
/**
|
|
155
|
-
* 全域i18n
|
|
156
|
-
* 讓元件擁有自己的i18n
|
|
154
|
+
/**
|
|
155
|
+
* 全域i18n
|
|
156
|
+
* 讓元件擁有自己的i18n
|
|
157
157
|
*/
|
|
158
158
|
var lang;
|
|
159
159
|
var languages = (_languages = {}, _defineProperty(_languages, ZH_TW, zhtw), _defineProperty(_languages, ZH_CN, zhcn), _defineProperty(_languages, EN_US, enus), _languages);
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
//
|
|
2
|
+
const AvatarSelectors = {
|
|
3
|
+
// title: 'example-info-title',
|
|
4
|
+
};
|
|
5
|
+
const AutocompleteSelectors = {
|
|
6
|
+
// title: 'example-info-title',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
// please add more selectors if needed
|
|
10
|
+
const ButtonSelectors = {
|
|
11
|
+
// title: 'example-info-title',
|
|
12
|
+
};
|
|
13
|
+
const BackTopSelectors = {
|
|
14
|
+
// title: 'example-info-title',
|
|
15
|
+
};
|
|
16
|
+
const CarouselSelectors = {
|
|
17
|
+
// title: 'example-info-title',
|
|
18
|
+
};
|
|
19
|
+
const CheckboxSelectors = {
|
|
20
|
+
// title: 'example-info-title',
|
|
21
|
+
};
|
|
22
|
+
const DrawerSelectors = {
|
|
23
|
+
// title: 'example-info-title',
|
|
24
|
+
};
|
|
25
|
+
const EmptySelectors = {
|
|
26
|
+
// title: 'example-info-title',
|
|
27
|
+
};
|
|
28
|
+
const ImageSelectors = {
|
|
29
|
+
// title: 'example-info-title',
|
|
30
|
+
};
|
|
31
|
+
const InputMethodSelectors = {
|
|
32
|
+
// title: 'example-info-title',
|
|
33
|
+
};
|
|
34
|
+
const LoadingSelectors = {
|
|
35
|
+
// title: 'example-info-title',
|
|
36
|
+
};
|
|
37
|
+
const ModalSelectors = {
|
|
38
|
+
// title: 'example-info-title',
|
|
39
|
+
};
|
|
40
|
+
const RadioSelectors = {
|
|
41
|
+
// title: 'example-info-title',
|
|
42
|
+
};
|
|
43
|
+
const SelectSelectors = {
|
|
44
|
+
// title: 'example-info-title',
|
|
45
|
+
};
|
|
46
|
+
const SpinSelectors = {
|
|
47
|
+
// title: 'example-info-title',
|
|
48
|
+
};
|
|
49
|
+
const TableSelectors = {
|
|
50
|
+
// title: 'example-info-title',
|
|
51
|
+
};
|
|
52
|
+
const TooltipSelectors = {
|
|
53
|
+
// title: 'example-info-title',
|
|
54
|
+
};
|
|
55
|
+
const InputSelectors = {
|
|
56
|
+
// title: 'example-info-title',
|
|
57
|
+
};
|
|
58
|
+
const DropdownSelectors = {
|
|
59
|
+
// title: 'example-info-title',
|
|
60
|
+
};
|
|
61
|
+
const BreadcrumbsSelectors = {
|
|
62
|
+
// title: 'example-info-title',
|
|
63
|
+
};
|
|
64
|
+
const ExportButtonSelectors = {
|
|
65
|
+
// title: 'example-info-title',
|
|
66
|
+
};
|
|
67
|
+
const SNASelectors = {
|
|
68
|
+
// title: 'example-info-title',
|
|
69
|
+
};
|
|
70
|
+
const BarChartSelectors = {
|
|
71
|
+
// title: 'example-info-title',
|
|
72
|
+
};
|
|
73
|
+
const ForwardLinkSelectors = {
|
|
74
|
+
// title: 'example-info-title',
|
|
75
|
+
};
|
|
76
|
+
const PaginationSelectors = {
|
|
77
|
+
// title: 'example-info-title',
|
|
78
|
+
};
|
|
79
|
+
const ContactModalSelectors = {
|
|
80
|
+
// title: 'example-info-title',
|
|
81
|
+
};
|
|
82
|
+
const KeywordSearchSelectors = {
|
|
83
|
+
// title: 'example-info-title',
|
|
84
|
+
};
|
|
85
|
+
const MUIThemeSelectors = {
|
|
86
|
+
// title: 'example-info-title',
|
|
87
|
+
};
|
|
88
|
+
const HeaderSelectors = {
|
|
89
|
+
// title: 'example-info-title',
|
|
90
|
+
};
|
|
91
|
+
const FooterSelectors = {
|
|
92
|
+
// title: 'example-info-title',
|
|
93
|
+
};
|
|
94
|
+
const KeywordsSelectors = {
|
|
95
|
+
// title: 'example-info-title',
|
|
96
|
+
};
|
|
97
|
+
const CollapseContentSelectors = {
|
|
98
|
+
// title: 'example-info-title',
|
|
99
|
+
};
|
|
100
|
+
const MoreButtonSelectors = {
|
|
101
|
+
// title: 'example-info-title',
|
|
102
|
+
};
|
|
103
|
+
const KeywordTickerSelectors = {
|
|
104
|
+
// title: 'example-info-title',
|
|
105
|
+
};
|
|
106
|
+
const ExtraToolsSelectors = {
|
|
107
|
+
// title: 'example-info-title',
|
|
108
|
+
};
|
|
109
|
+
const FilterSelectors = {
|
|
110
|
+
// title: 'example-info-title',
|
|
111
|
+
};
|
|
112
|
+
const SELECTORS = {
|
|
113
|
+
avatar: AvatarSelectors,
|
|
114
|
+
autocomplete: AutocompleteSelectors,
|
|
115
|
+
button: ButtonSelectors,
|
|
116
|
+
backTop: BackTopSelectors,
|
|
117
|
+
carousel: CarouselSelectors,
|
|
118
|
+
checkbox: CheckboxSelectors,
|
|
119
|
+
drawer: DrawerSelectors,
|
|
120
|
+
empty: EmptySelectors,
|
|
121
|
+
image: ImageSelectors,
|
|
122
|
+
inputMethod: InputMethodSelectors,
|
|
123
|
+
loading: LoadingSelectors,
|
|
124
|
+
modal: ModalSelectors,
|
|
125
|
+
radio: RadioSelectors,
|
|
126
|
+
select: SelectSelectors,
|
|
127
|
+
spin: SpinSelectors,
|
|
128
|
+
table: TableSelectors,
|
|
129
|
+
tooltip: TooltipSelectors,
|
|
130
|
+
input: InputSelectors,
|
|
131
|
+
dropdown: DropdownSelectors,
|
|
132
|
+
breadcrumbs: BreadcrumbsSelectors,
|
|
133
|
+
exportButton: ExportButtonSelectors,
|
|
134
|
+
sna: SNASelectors,
|
|
135
|
+
barChart: BarChartSelectors,
|
|
136
|
+
forwardLink: ForwardLinkSelectors,
|
|
137
|
+
pagination: PaginationSelectors,
|
|
138
|
+
contactModal: ContactModalSelectors,
|
|
139
|
+
keywordSearch: KeywordSearchSelectors,
|
|
140
|
+
muiTheme: MUIThemeSelectors,
|
|
141
|
+
header: HeaderSelectors,
|
|
142
|
+
footer: FooterSelectors,
|
|
143
|
+
keywords: KeywordsSelectors,
|
|
144
|
+
collapseContent: CollapseContentSelectors,
|
|
145
|
+
moreButton: MoreButtonSelectors,
|
|
146
|
+
keywordTicker: KeywordTickerSelectors,
|
|
147
|
+
extraTools: ExtraToolsSelectors,
|
|
148
|
+
filter: FilterSelectors
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export { AutocompleteSelectors, AvatarSelectors, BackTopSelectors, BarChartSelectors, BreadcrumbsSelectors, ButtonSelectors, CarouselSelectors, CheckboxSelectors, CollapseContentSelectors, ContactModalSelectors, DrawerSelectors, DropdownSelectors, EmptySelectors, ExportButtonSelectors, ExtraToolsSelectors, FilterSelectors, FooterSelectors, ForwardLinkSelectors, HeaderSelectors, ImageSelectors, InputMethodSelectors, InputSelectors, KeywordSearchSelectors, KeywordTickerSelectors, KeywordsSelectors, LoadingSelectors, MUIThemeSelectors, ModalSelectors, MoreButtonSelectors, PaginationSelectors, RadioSelectors, SELECTORS, SNASelectors, SelectSelectors, SpinSelectors, TableSelectors, TooltipSelectors, SELECTORS as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as muiSelectorConfig } from './muiSelectorConfig';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as muiSelectorConfig } from './muiSelectorConfig';
|
package/lib/utils/arrayMerge.js
CHANGED
|
@@ -4891,26 +4891,26 @@ var arrayMergeTimeline = function arrayMergeTimeline(input, keys, mergeKeys) {
|
|
|
4891
4891
|
}, []);
|
|
4892
4892
|
};
|
|
4893
4893
|
|
|
4894
|
-
/**
|
|
4895
|
-
* arrayMergeBySingleKey 函式功能說明。
|
|
4896
|
-
* 根據 id 合併其它所有鍵值為 array
|
|
4897
|
-
*
|
|
4898
|
-
* params example:
|
|
4899
|
-
* arrayMergeBySingleKey(data, 'id', {
|
|
4900
|
-
* targetKeys: ['oriImgUrl'],
|
|
4901
|
-
* newMergedKeys: ['oriImgUrls'],
|
|
4902
|
-
* isShowIndex: true,
|
|
4903
|
-
* omitKeys: ['oriImgUrl'],
|
|
4904
|
-
* })
|
|
4905
|
-
*
|
|
4906
|
-
* @param {Array} input - 傳入的data。
|
|
4907
|
-
* @param {String} sameKey - data中相同的key(id)。
|
|
4908
|
-
* @param {Object} targetKeys {Array} - 欲merge的key。
|
|
4909
|
-
* newMergedKeys {Array} - merged後的新key名稱【與targetKeys位置對應】
|
|
4910
|
-
* isShowIndex {Boolean} - 該筆data是否顯示index
|
|
4911
|
-
* omitKeys {Array} - 移除此筆data中的key
|
|
4912
|
-
* @return {[object]} 回傳範例:
|
|
4913
|
-
* [{id:1,source:["賴和"],images:[{image:xxxxxxx},{image:xxxxxxx}]},{id:2,source:"賴和",images:[{image:xxxxxxx},{image:xxxxxxx}]}]。
|
|
4894
|
+
/**
|
|
4895
|
+
* arrayMergeBySingleKey 函式功能說明。
|
|
4896
|
+
* 根據 id 合併其它所有鍵值為 array
|
|
4897
|
+
*
|
|
4898
|
+
* params example:
|
|
4899
|
+
* arrayMergeBySingleKey(data, 'id', {
|
|
4900
|
+
* targetKeys: ['oriImgUrl'],
|
|
4901
|
+
* newMergedKeys: ['oriImgUrls'],
|
|
4902
|
+
* isShowIndex: true,
|
|
4903
|
+
* omitKeys: ['oriImgUrl'],
|
|
4904
|
+
* })
|
|
4905
|
+
*
|
|
4906
|
+
* @param {Array} input - 傳入的data。
|
|
4907
|
+
* @param {String} sameKey - data中相同的key(id)。
|
|
4908
|
+
* @param {Object} targetKeys {Array} - 欲merge的key。
|
|
4909
|
+
* newMergedKeys {Array} - merged後的新key名稱【與targetKeys位置對應】
|
|
4910
|
+
* isShowIndex {Boolean} - 該筆data是否顯示index
|
|
4911
|
+
* omitKeys {Array} - 移除此筆data中的key
|
|
4912
|
+
* @return {[object]} 回傳範例:
|
|
4913
|
+
* [{id:1,source:["賴和"],images:[{image:xxxxxxx},{image:xxxxxxx}]},{id:2,source:"賴和",images:[{image:xxxxxxx},{image:xxxxxxx}]}]。
|
|
4914
4914
|
*/
|
|
4915
4915
|
var arrayMergeBySingleKey = function arrayMergeBySingleKey(input, sameKey, _ref) {
|
|
4916
4916
|
var targetKeys = _ref.targetKeys,
|
package/package.json
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@daoyi/nmtl-ui",
|
|
3
|
-
"version": "2.0.1-beta.
|
|
4
|
-
"description": "This project is to be used as a starter kit for building React component using Storybook and Rollup",
|
|
5
|
-
"author": "daoyi",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"typings": "lib/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib"
|
|
10
|
-
],
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/HsunTsai/react-storybook-jsx-starter"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@geometricpanda/storybook-addon-badges": "0.2.2",
|
|
17
|
-
"@material-ui/core": "4.12.3",
|
|
18
|
-
"@material-ui/icons": "4.11.2",
|
|
19
|
-
"@material-ui/lab": "4.0.0-alpha.60",
|
|
20
|
-
"@material-ui/styles": "4.11.4",
|
|
21
|
-
"axios": "0.21.1",
|
|
22
|
-
"babel-eslint": "10.1.0",
|
|
23
|
-
"classnames": "2.3.1",
|
|
24
|
-
"d3": "5.16.0",
|
|
25
|
-
"d3-selection": "1.4.2",
|
|
26
|
-
"d3-transition": "1.3.2",
|
|
27
|
-
"dom-to-image": "2.6.0",
|
|
28
|
-
"formik": "2.2.9",
|
|
29
|
-
"html-to-react": "1.4.5",
|
|
30
|
-
"jquery": "3.6.0",
|
|
31
|
-
"js-file-download": "0.4.12",
|
|
32
|
-
"jszip": "3.7.1",
|
|
33
|
-
"lodash": "4.17.21",
|
|
34
|
-
"markdown-it": "12.0.6",
|
|
35
|
-
"moment": "^2.29.4",
|
|
36
|
-
"notistack": "1.0.10",
|
|
37
|
-
"prop-types": "15.7.2",
|
|
38
|
-
"query-string": "6.12.1",
|
|
39
|
-
"react": "16.14.0",
|
|
40
|
-
"react-awesome-lightbox": "^1.8.1",
|
|
41
|
-
"react-data-export": "0.6.0",
|
|
42
|
-
"react-dom": "16.14.0",
|
|
43
|
-
"react-dropzone": "11.3.2",
|
|
44
|
-
"react-facebook-login": "4.1.1",
|
|
45
|
-
"react-file-download": "0.3.5",
|
|
46
|
-
"react-font-size-changer": "0.2.0",
|
|
47
|
-
"react-google-login": "5.2.2",
|
|
48
|
-
"react-intl": "5.8.0",
|
|
49
|
-
"react-redux": "7.2.5",
|
|
50
|
-
"react-router-dom": "5.2.0",
|
|
51
|
-
"react-share": "4.4.0",
|
|
52
|
-
"react-slick": "^0.28.1",
|
|
53
|
-
"redux": "4.1.0",
|
|
54
|
-
"sass": "1.41.1",
|
|
55
|
-
"screenfull": "5.2.0",
|
|
56
|
-
"slick-carousel": "^1.8.1",
|
|
57
|
-
"styled-components": "5.3.5",
|
|
58
|
-
"xlsx": "0.18.5"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@babel/core": "7.14.8",
|
|
62
|
-
"@babel/preset-env": "7.14.8",
|
|
63
|
-
"@babel/preset-react": "7.14.5",
|
|
64
|
-
"@rollup/plugin-babel": "5.3.1",
|
|
65
|
-
"@rollup/plugin-commonjs": "22.0.0",
|
|
66
|
-
"@rollup/plugin-node-resolve": "13.2.1",
|
|
67
|
-
"@rollup/plugin-replace": "4.0.0",
|
|
68
|
-
"@rollup/plugin-image": "2.1.1",
|
|
69
|
-
"@rollup/plugin-json": "4.1.0",
|
|
70
|
-
"@storybook/addon-essentials": "6.5.13",
|
|
71
|
-
"@storybook/addon-links": "6.5.13",
|
|
72
|
-
"@storybook/addon-notes": "6.0.0-alpha.6",
|
|
73
|
-
"@storybook/addons": "6.5.13",
|
|
74
|
-
"@storybook/preset-scss": "1.0.3",
|
|
75
|
-
"@storybook/react": "6.5.13",
|
|
76
|
-
"autoprefixer": "9.8.6",
|
|
77
|
-
"babel-loader": "8.2.2",
|
|
78
|
-
"babel-plugin-transform-imports": "2.0.0",
|
|
79
|
-
"css-loader": "1.0.1",
|
|
80
|
-
"eslint": "7.2.0",
|
|
81
|
-
"eslint-config-airbnb": "18.2.1",
|
|
82
|
-
"eslint-config-node": "4.1.0",
|
|
83
|
-
"eslint-config-prettier": "8.3.0",
|
|
84
|
-
"eslint-loader": "4.0.2",
|
|
85
|
-
"eslint-plugin-import": "2.22.1",
|
|
86
|
-
"eslint-plugin-jsx-a11y": "6.4.1",
|
|
87
|
-
"eslint-plugin-node": "11.1.0",
|
|
88
|
-
"eslint-plugin-prettier": "3.4.1",
|
|
89
|
-
"eslint-plugin-react": "7.21.5",
|
|
90
|
-
"eslint-plugin-react-hooks": "1.7.0",
|
|
91
|
-
"http-proxy-middleware": "1.3.1",
|
|
92
|
-
"prettier": "2.4.1",
|
|
93
|
-
"rollup": "2.70.2",
|
|
94
|
-
"rollup-plugin-cleaner": "1.0.0",
|
|
95
|
-
"rollup-plugin-postcss": "4.0.1",
|
|
96
|
-
"rollup-plugin-terser": "7.0.2",
|
|
97
|
-
"sass-loader": "7.1.0",
|
|
98
|
-
"style-loader": "0.22.1"
|
|
99
|
-
},
|
|
100
|
-
"browserslist": {
|
|
101
|
-
"production": [
|
|
102
|
-
">0.2%",
|
|
103
|
-
"not dead",
|
|
104
|
-
"not op_mini all"
|
|
105
|
-
],
|
|
106
|
-
"development": [
|
|
107
|
-
"last 1 chrome version",
|
|
108
|
-
"last 1 firefox version",
|
|
109
|
-
"last 1 safari version"
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
"scripts": {
|
|
113
|
-
"start": "set NODE_OPTIONS=--max_old_space_size=16384 && yarn storybook",
|
|
114
|
-
"lint": "eslint ./src/**/*.{js,jsx}",
|
|
115
|
-
"format": "prettier --write --tab-width 4 --use-tabs true \"{,src/**/}*.{js,jsx}\"",
|
|
116
|
-
"storybook": "start-storybook -p 6006 --no-open",
|
|
117
|
-
"build": "rollup -c && npm run build-index",
|
|
118
|
-
"build-index": "node ./rollup.index.js",
|
|
119
|
-
"build-storybook": "build-storybook -c .storybook -o public",
|
|
120
|
-
"create": "node ./buildUtils/create.js",
|
|
121
|
-
"pub": "npm version patch -m Publish && npm publish",
|
|
122
|
-
"pub-alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha",
|
|
123
|
-
"pub-beta": "npm version prerelease --preid=beta && npm publish --tag beta"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@daoyi/nmtl-ui",
|
|
3
|
+
"version": "2.0.1-beta.87",
|
|
4
|
+
"description": "This project is to be used as a starter kit for building React component using Storybook and Rollup",
|
|
5
|
+
"author": "daoyi",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"typings": "lib/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/HsunTsai/react-storybook-jsx-starter"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@geometricpanda/storybook-addon-badges": "0.2.2",
|
|
17
|
+
"@material-ui/core": "4.12.3",
|
|
18
|
+
"@material-ui/icons": "4.11.2",
|
|
19
|
+
"@material-ui/lab": "4.0.0-alpha.60",
|
|
20
|
+
"@material-ui/styles": "4.11.4",
|
|
21
|
+
"axios": "0.21.1",
|
|
22
|
+
"babel-eslint": "10.1.0",
|
|
23
|
+
"classnames": "2.3.1",
|
|
24
|
+
"d3": "5.16.0",
|
|
25
|
+
"d3-selection": "1.4.2",
|
|
26
|
+
"d3-transition": "1.3.2",
|
|
27
|
+
"dom-to-image": "2.6.0",
|
|
28
|
+
"formik": "2.2.9",
|
|
29
|
+
"html-to-react": "1.4.5",
|
|
30
|
+
"jquery": "3.6.0",
|
|
31
|
+
"js-file-download": "0.4.12",
|
|
32
|
+
"jszip": "3.7.1",
|
|
33
|
+
"lodash": "4.17.21",
|
|
34
|
+
"markdown-it": "12.0.6",
|
|
35
|
+
"moment": "^2.29.4",
|
|
36
|
+
"notistack": "1.0.10",
|
|
37
|
+
"prop-types": "15.7.2",
|
|
38
|
+
"query-string": "6.12.1",
|
|
39
|
+
"react": "16.14.0",
|
|
40
|
+
"react-awesome-lightbox": "^1.8.1",
|
|
41
|
+
"react-data-export": "0.6.0",
|
|
42
|
+
"react-dom": "16.14.0",
|
|
43
|
+
"react-dropzone": "11.3.2",
|
|
44
|
+
"react-facebook-login": "4.1.1",
|
|
45
|
+
"react-file-download": "0.3.5",
|
|
46
|
+
"react-font-size-changer": "0.2.0",
|
|
47
|
+
"react-google-login": "5.2.2",
|
|
48
|
+
"react-intl": "5.8.0",
|
|
49
|
+
"react-redux": "7.2.5",
|
|
50
|
+
"react-router-dom": "5.2.0",
|
|
51
|
+
"react-share": "4.4.0",
|
|
52
|
+
"react-slick": "^0.28.1",
|
|
53
|
+
"redux": "4.1.0",
|
|
54
|
+
"sass": "1.41.1",
|
|
55
|
+
"screenfull": "5.2.0",
|
|
56
|
+
"slick-carousel": "^1.8.1",
|
|
57
|
+
"styled-components": "5.3.5",
|
|
58
|
+
"xlsx": "0.18.5"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@babel/core": "7.14.8",
|
|
62
|
+
"@babel/preset-env": "7.14.8",
|
|
63
|
+
"@babel/preset-react": "7.14.5",
|
|
64
|
+
"@rollup/plugin-babel": "5.3.1",
|
|
65
|
+
"@rollup/plugin-commonjs": "22.0.0",
|
|
66
|
+
"@rollup/plugin-node-resolve": "13.2.1",
|
|
67
|
+
"@rollup/plugin-replace": "4.0.0",
|
|
68
|
+
"@rollup/plugin-image": "2.1.1",
|
|
69
|
+
"@rollup/plugin-json": "4.1.0",
|
|
70
|
+
"@storybook/addon-essentials": "6.5.13",
|
|
71
|
+
"@storybook/addon-links": "6.5.13",
|
|
72
|
+
"@storybook/addon-notes": "6.0.0-alpha.6",
|
|
73
|
+
"@storybook/addons": "6.5.13",
|
|
74
|
+
"@storybook/preset-scss": "1.0.3",
|
|
75
|
+
"@storybook/react": "6.5.13",
|
|
76
|
+
"autoprefixer": "9.8.6",
|
|
77
|
+
"babel-loader": "8.2.2",
|
|
78
|
+
"babel-plugin-transform-imports": "2.0.0",
|
|
79
|
+
"css-loader": "1.0.1",
|
|
80
|
+
"eslint": "7.2.0",
|
|
81
|
+
"eslint-config-airbnb": "18.2.1",
|
|
82
|
+
"eslint-config-node": "4.1.0",
|
|
83
|
+
"eslint-config-prettier": "8.3.0",
|
|
84
|
+
"eslint-loader": "4.0.2",
|
|
85
|
+
"eslint-plugin-import": "2.22.1",
|
|
86
|
+
"eslint-plugin-jsx-a11y": "6.4.1",
|
|
87
|
+
"eslint-plugin-node": "11.1.0",
|
|
88
|
+
"eslint-plugin-prettier": "3.4.1",
|
|
89
|
+
"eslint-plugin-react": "7.21.5",
|
|
90
|
+
"eslint-plugin-react-hooks": "1.7.0",
|
|
91
|
+
"http-proxy-middleware": "1.3.1",
|
|
92
|
+
"prettier": "2.4.1",
|
|
93
|
+
"rollup": "2.70.2",
|
|
94
|
+
"rollup-plugin-cleaner": "1.0.0",
|
|
95
|
+
"rollup-plugin-postcss": "4.0.1",
|
|
96
|
+
"rollup-plugin-terser": "7.0.2",
|
|
97
|
+
"sass-loader": "7.1.0",
|
|
98
|
+
"style-loader": "0.22.1"
|
|
99
|
+
},
|
|
100
|
+
"browserslist": {
|
|
101
|
+
"production": [
|
|
102
|
+
">0.2%",
|
|
103
|
+
"not dead",
|
|
104
|
+
"not op_mini all"
|
|
105
|
+
],
|
|
106
|
+
"development": [
|
|
107
|
+
"last 1 chrome version",
|
|
108
|
+
"last 1 firefox version",
|
|
109
|
+
"last 1 safari version"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"scripts": {
|
|
113
|
+
"start": "set NODE_OPTIONS=--max_old_space_size=16384 && yarn storybook",
|
|
114
|
+
"lint": "eslint ./src/**/*.{js,jsx}",
|
|
115
|
+
"format": "prettier --write --tab-width 4 --use-tabs true \"{,src/**/}*.{js,jsx}\"",
|
|
116
|
+
"storybook": "start-storybook -p 6006 --no-open",
|
|
117
|
+
"build": "rollup -c && npm run build-index",
|
|
118
|
+
"build-index": "node ./rollup.index.js",
|
|
119
|
+
"build-storybook": "build-storybook -c .storybook -o public",
|
|
120
|
+
"create": "node ./buildUtils/create.js",
|
|
121
|
+
"pub": "npm version patch -m Publish && npm publish",
|
|
122
|
+
"pub-alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha",
|
|
123
|
+
"pub-beta": "npm version prerelease --preid=beta && npm publish --tag beta"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|