Browse Source

dev: init theme

Roxas 4 years ago
parent
commit
fa245c7650

+ 1
- 0
.storybook/addons.js View File

@@ -5,4 +5,5 @@ import '@storybook/addon-knobs/register';
5 5
 import '@storybook/addon-viewport/register';
6 6
 import '@storybook/addon-console';
7 7
 import '@storybook/addon-storysource/register';
8
+import 'storybook-addon-themes';
8 9
 import 'storybook-readme/register';

+ 37
- 0
.storybook/bilingoTheme.js View File

@@ -0,0 +1,37 @@
1
+import { create } from '@storybook/theming/create';
2
+
3
+export default create({
4
+  base: 'light',
5
+
6
+  colorPrimary: '#fc4747',
7
+  colorSecondary: '#fc695a',
8
+
9
+  // UI
10
+  appBg: 'white',
11
+  appContentBg: 'white',
12
+  appBorderColor: 'grey',
13
+  appBorderRadius: 4,
14
+
15
+  // Typography
16
+  fontBase: '"Open Sans", sans-serif',
17
+  fontCode: 'monospace',
18
+
19
+  // Text colors
20
+  textColor: 'black',
21
+  textInverseColor: 'rgba(255,255,255,0.9)',
22
+
23
+  // Toolbar default and active colors
24
+  barTextColor: 'black',
25
+  barSelectedColor: 'white',
26
+  barBg: '#fc4747',
27
+
28
+  // Form colors
29
+  inputBg: 'white',
30
+  inputBorder: 'silver',
31
+  inputTextColor: 'black',
32
+  inputBorderRadius: 4,
33
+
34
+  brandTitle: 'BilingoUI',
35
+  brandUrl: 'https://www.bilingo.com/',
36
+  brandImage: 'https://a.links123.cn/common/imgs/logo_en_mobile@2x.png?2019021101',
37
+});

+ 2
- 0
.storybook/config.js View File

@@ -3,6 +3,7 @@ import { addParameters } from '@storybook/react';
3 3
 import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
4 4
 import { addDecorator } from '@storybook/react';
5 5
 import { withConsole } from '@storybook/addon-console';
6
+import bilingoTheme from './bilingoTheme';
6 7
 
7 8
 addParameters({
8 9
   info: { inline: true },
@@ -10,6 +11,7 @@ addParameters({
10 11
     viewports: INITIAL_VIEWPORTS,
11 12
     defaultViewport: 'someDefault',
12 13
   },
14
+  options: { theme: bilingoTheme },
13 15
 });
14 16
 // automatically import all files ending in *.stories.tsx
15 17
 configure(

+ 1
- 0
package.json View File

@@ -110,6 +110,7 @@
110 110
     "rollup-plugin-peer-deps-external": "^2.2.0",
111 111
     "rollup-plugin-postcss-modules": "^2.0.1",
112 112
     "rollup-plugin-replace": "^2.2.0",
113
+    "storybook-addon-themes": "^5.3.0",
113 114
     "storybook-readme": "^5.0.8",
114 115
     "style-loader": "^1.0.1",
115 116
     "ts-loader": "^6.2.1"

+ 2
- 189
src/components/Payment/Common/PayPlatformOptions/index.tsx View File

@@ -191,6 +191,7 @@ const PayPlatformOptions = ({
191 191
       const { text, image } = targetInstance;
192 192
       return (
193 193
         <PayPlatformBlock
194
+          key={valueKey}
194 195
           {...{ isMobile, locale, size }}
195 196
           onClick={() => onPayChannelChange(valueKey)}
196 197
           isActive={valueKey === payChannel}
@@ -217,199 +218,11 @@ const PayPlatformOptions = ({
217 218
         })}
218 219
       >
219 220
         <div className={styles.flexContainer}>
220
-          <div className={styles.flexItem}></div>
221
+          {payListDOM}
221 222
         </div>
222 223
       </div>
223 224
     </div>
224 225
   );
225 226
 };
226 227
 
227
-// class PayPlatformOptions extends PureComponent<Props, {}> {
228
-//   render() {
229
-//     const {
230
-//       payitem,
231
-//       onPayItemChange,
232
-//       isMobile = false,
233
-//       size = "normal",
234
-//       withTitle = true,
235
-//       titleTxt,
236
-//       locale = "zh"
237
-//     } = this.props;
238
-
239
-//     let titleDOM = null;
240
-//     if (withTitle) {
241
-//       const titleResult = titleTxt || locale === 'zh' ? '支付方式' : 'Payment';
242
-//       titleDOM = (
243
-//         <div className={styles.label}>
244
-//           {titleResult}
245
-//         </div>
246
-//       );
247
-//     }
248
-
249
-//     if (isMobile) {
250
-//       return (
251
-//         <div>
252
-//           {titleDOM}
253
-//           <div
254
-//             className={classnames(styles["payment-method-box"], {
255
-//               [styles.mobile]: isMobile
256
-//             })}
257
-//           >
258
-//             <div className={styles.flexContainer}>
259
-//               <div className={styles.flexItem}>
260
-//                 <div
261
-//                   className={classnames(
262
-//                     {
263
-//                       [styles.payitem]: true,
264
-//                       [styles.active]: payitem === PAY_CHANNEL.ALI_WEB,
265
-//                       ...exportStyleSizeClass(styles, size),
266
-//                     },
267
-//                     styles[locale]
268
-//                   )}
269
-//                   onClick={() => {
270
-//                     onPayItemChange(PAY_CHANNEL.ALI_WEB);
271
-//                   }}
272
-//                 >
273
-//                   <img
274
-//                     src={mobileIconAlipay}
275
-//                     alt="alipay"
276
-//                     className={styles["payment-method"]}
277
-//                   />
278
-//                   <div className={styles.platformName}>
279
-//                     支付宝
280
-//                   </div>
281
-//                 </div>
282
-//               </div>
283
-//               <div className={styles.flexItem}>
284
-//                 <div
285
-//                   className={classnames(
286
-//                     {
287
-//                       [styles.payitem]: true,
288
-//                       [styles.active]: payitem === PAY_CHANNEL.WX_NATIVE,
289
-//                       ...exportStyleSizeClass(styles, size),
290
-//                     },
291
-//                     styles[locale]
292
-//                   )}
293
-//                   onClick={() => {
294
-//                     onPayItemChange(PAY_CHANNEL.WX_NATIVE);
295
-//                   }}
296
-//                 >
297
-//                   <img
298
-//                     src={mobileIconWechatpay}
299
-//                     alt="wechatpay"
300
-//                     className={styles["payment-method"]}
301
-//                   />
302
-//                   <div className={styles.platformName}>
303
-//                     微信
304
-//                   </div>
305
-//                 </div>
306
-//               </div>
307
-//               <div className={styles.flexItem}>
308
-//                 <div
309
-//                   className={classnames(
310
-//                     {
311
-//                       [styles.payitem]: true,
312
-//                       [styles.active]: payitem === PAY_CHANNEL.PAYPAL,
313
-//                       ...exportStyleSizeClass(styles, size),
314
-//                     },
315
-//                     styles[locale]
316
-//                   )}
317
-//                   onClick={() => {
318
-//                     onPayItemChange(PAY_CHANNEL.PAYPAL);
319
-//                   }}
320
-//                 >
321
-//                   <img
322
-//                     src={mobileIconPaypal}
323
-//                     alt="paypal"
324
-//                     className={styles["payment-method"]}
325
-//                   />
326
-//                   <div className={styles.platformName}>
327
-//                     Paypal
328
-//                   </div>
329
-//                 </div>
330
-//               </div>
331
-//             </div>
332
-//           </div>
333
-//         </div>
334
-//       );
335
-//     }
336
-
337
-//     return (
338
-//       <div>
339
-//         {titleDOM}
340
-//         <div className={styles["payment-method-box"]}>
341
-//           <div className={styles.flexContainer}>
342
-//             <div className={styles.flexItem}>
343
-//               <div
344
-//                 className={classnames(
345
-//                   {
346
-//                     [styles.payitem]: true,
347
-//                     [styles.active]: payitem === PAY_CHANNEL.ALI_WEB,
348
-//                     ...exportStyleSizeClass(styles, size),
349
-//                   },
350
-//                   styles[locale]
351
-//                 )}
352
-//                 onClick={() => {
353
-//                   onPayItemChange(PAY_CHANNEL.ALI_WEB);
354
-//                 }}
355
-//               >
356
-//                 <span className={styles["payment-method-before"]} />
357
-//                 <img
358
-//                   src={iconAlipay}
359
-//                   alt="alipay"
360
-//                   className={styles["payment-method"]}
361
-//                 />
362
-//               </div>
363
-//             </div>
364
-//             <div className={styles.flexItem}>
365
-//               <div
366
-//                 className={classnames(
367
-//                   {
368
-//                     [styles.payitem]: true,
369
-//                     [styles.active]: payitem === PAY_CHANNEL.WX_NATIVE,
370
-//                     ...exportStyleSizeClass(styles, size),
371
-//                   },
372
-//                   styles[locale]
373
-//                 )}
374
-//                 onClick={() => {
375
-//                   onPayItemChange(PAY_CHANNEL.WX_NATIVE);
376
-//                 }}
377
-//               >
378
-//                 <span className={styles["payment-method-before"]} />
379
-//                 <img
380
-//                   src={iconWechatpay}
381
-//                   alt="wechatpay"
382
-//                   className={styles["payment-method"]}
383
-//                 />
384
-//               </div>
385
-//             </div>
386
-//             <div className={styles.flexItem}>
387
-//               <div
388
-//                 className={classnames(
389
-//                   {
390
-//                     [styles.payitem]: true,
391
-//                     [styles.active]: payitem === PAY_CHANNEL.PAYPAL,
392
-//                     ...exportStyleSizeClass(styles, size),
393
-//                   },
394
-//                   styles[locale]
395
-//                 )}
396
-//                 onClick={() => {
397
-//                   onPayItemChange(PAY_CHANNEL.PAYPAL);
398
-//                 }}
399
-//               >
400
-//                 <span className={styles["payment-method-before"]} />
401
-//                 <img
402
-//                   src={iconPaypal}
403
-//                   alt="paypal"
404
-//                   className={styles["payment-method"]}
405
-//                 />
406
-//               </div>
407
-//             </div>
408
-//           </div>
409
-//         </div>
410
-//       </div>
411
-//     );
412
-//   }
413
-// }
414
-
415 228
 export default PayPlatformOptions;

+ 4
- 4
stories/Payment.stories.tsx View File

@@ -217,13 +217,13 @@ stories.add(
217 217
 stories.add(
218 218
   'PayPlatFormOptions',
219 219
   () => {
220
-    const [payitem, setPayitem] = React.useState(PAY_CHANNEL.PAYPAL);
220
+    const [payChannel, setPayChannel] = React.useState(PAY_CHANNEL.PAYPAL);
221 221
     return (
222 222
       <PayPlatFormOptions
223
-        payitem={payitem}
224
-        onPayItemChange={(value) => {
223
+        payChannel={payChannel}
224
+        onPayChannelChange={(value) => {
225 225
           action(`PayItemChange: ${value}`);
226
-          setPayitem(value);
226
+          setPayChannel(value);
227 227
         }}
228 228
         isMobile={boolean("isMobile", false)}
229 229
         size={select("size", { Small: "small", Normal: "normal", Large: "large"}, "normal")}

+ 217
- 7
yarn.lock View File

@@ -975,6 +975,13 @@
975 975
   dependencies:
976 976
     regenerator-runtime "^0.13.2"
977 977
 
978
+"@babel/runtime@^7.3.1":
979
+  version "7.8.4"
980
+  resolved "https://registry.npm.taobao.org/@babel/runtime/download/@babel/runtime-7.8.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.8.4.tgz#d79f5a2040f7caa24d53e563aad49cbc05581308"
981
+  integrity sha1-159aIED3yqJNU+VjqtScvAVYEwg=
982
+  dependencies:
983
+    regenerator-runtime "^0.13.2"
984
+
978 985
 "@babel/template@^7.4.0", "@babel/template@^7.7.4":
979 986
   version "7.7.4"
980 987
   resolved "https://registry.npm.taobao.org/@babel/template/download/@babel/template-7.7.4.tgz?cache=0&sync_timestamp=1574465630781&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Ftemplate%2Fdownload%2F%40babel%2Ftemplate-7.7.4.tgz#428a7d9eecffe27deac0a98e23bf8e3675d2a77b"
@@ -1041,7 +1048,7 @@
1041 1048
     "@emotion/utils" "0.11.3"
1042 1049
     "@emotion/weak-memoize" "0.2.5"
1043 1050
 
1044
-"@emotion/core@^10.0.14", "@emotion/core@^10.0.9":
1051
+"@emotion/core@^10.0.14", "@emotion/core@^10.0.20", "@emotion/core@^10.0.9":
1045 1052
   version "10.0.27"
1046 1053
   resolved "https://registry.npm.taobao.org/@emotion/core/download/@emotion/core-10.0.27.tgz#7c3f78be681ab2273f3bf11ca3e2edc4a9dd1fdc"
1047 1054
   integrity sha1-fD94vmgasic/O/Eco+LtxKndH9w=
@@ -1105,7 +1112,7 @@
1105 1112
     "@emotion/serialize" "^0.11.15"
1106 1113
     "@emotion/utils" "0.11.3"
1107 1114
 
1108
-"@emotion/styled@^10.0.14":
1115
+"@emotion/styled@^10.0.14", "@emotion/styled@^10.0.17":
1109 1116
   version "10.0.27"
1110 1117
   resolved "https://registry.npm.taobao.org/@emotion/styled/download/@emotion/styled-10.0.27.tgz#12cb67e91f7ad7431e1875b1d83a94b814133eaf"
1111 1118
   integrity sha1-Estn6R9610MeGHWx2DqUuBQTPq8=
@@ -1585,6 +1592,19 @@
1585 1592
     global "^4.3.2"
1586 1593
     util-deprecate "^1.0.2"
1587 1594
 
1595
+"@storybook/addons@^5.1.0-rc.5":
1596
+  version "5.3.9"
1597
+  resolved "https://registry.npm.taobao.org/@storybook/addons/download/@storybook/addons-5.3.9.tgz?cache=0&sync_timestamp=1580391958611&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Faddons%2Fdownload%2F%40storybook%2Faddons-5.3.9.tgz#f2492de356e0cd38e3da357f4dafa058a4756e36"
1598
+  integrity sha1-8kkt41bgzTjj2jV/Ta+gWKR1bjY=
1599
+  dependencies:
1600
+    "@storybook/api" "5.3.9"
1601
+    "@storybook/channels" "5.3.9"
1602
+    "@storybook/client-logger" "5.3.9"
1603
+    "@storybook/core-events" "5.3.9"
1604
+    core-js "^3.0.1"
1605
+    global "^4.3.2"
1606
+    util-deprecate "^1.0.2"
1607
+
1588 1608
 "@storybook/api@5.2.8":
1589 1609
   version "5.2.8"
1590 1610
   resolved "https://registry.npm.taobao.org/@storybook/api/download/@storybook/api-5.2.8.tgz#21f03df8041114eb929bd10b570a17f266568b7f"
@@ -1608,6 +1628,32 @@
1608 1628
     telejson "^3.0.2"
1609 1629
     util-deprecate "^1.0.2"
1610 1630
 
1631
+"@storybook/api@5.3.9":
1632
+  version "5.3.9"
1633
+  resolved "https://registry.npm.taobao.org/@storybook/api/download/@storybook/api-5.3.9.tgz?cache=0&sync_timestamp=1580391957549&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Fapi%2Fdownload%2F%40storybook%2Fapi-5.3.9.tgz#090119c6fd4082442e926a434d3d171535ec6784"
1634
+  integrity sha1-CQEZxv1AgkQukmpDTT0XFTXsZ4Q=
1635
+  dependencies:
1636
+    "@reach/router" "^1.2.1"
1637
+    "@storybook/channels" "5.3.9"
1638
+    "@storybook/client-logger" "5.3.9"
1639
+    "@storybook/core-events" "5.3.9"
1640
+    "@storybook/csf" "0.0.1"
1641
+    "@storybook/router" "5.3.9"
1642
+    "@storybook/theming" "5.3.9"
1643
+    "@types/reach__router" "^1.2.3"
1644
+    core-js "^3.0.1"
1645
+    fast-deep-equal "^2.0.1"
1646
+    global "^4.3.2"
1647
+    lodash "^4.17.15"
1648
+    memoizerific "^1.11.3"
1649
+    prop-types "^15.6.2"
1650
+    react "^16.8.3"
1651
+    semver "^6.0.0"
1652
+    shallow-equal "^1.1.0"
1653
+    store2 "^2.7.1"
1654
+    telejson "^3.2.0"
1655
+    util-deprecate "^1.0.2"
1656
+
1611 1657
 "@storybook/channel-postmessage@5.2.8":
1612 1658
   version "5.2.8"
1613 1659
   resolved "https://registry.npm.taobao.org/@storybook/channel-postmessage/download/@storybook/channel-postmessage-5.2.8.tgz?cache=0&sync_timestamp=1577364190437&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Fchannel-postmessage%2Fdownload%2F%40storybook%2Fchannel-postmessage-5.2.8.tgz#7a84869ce0fc270c3b5dcd7fa4ed798b6055816f"
@@ -1626,6 +1672,13 @@
1626 1672
   dependencies:
1627 1673
     core-js "^3.0.1"
1628 1674
 
1675
+"@storybook/channels@5.3.9":
1676
+  version "5.3.9"
1677
+  resolved "https://registry.npm.taobao.org/@storybook/channels/download/@storybook/channels-5.3.9.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Fchannels%2Fdownload%2F%40storybook%2Fchannels-5.3.9.tgz#7ee8f6e6f4c9465227120d6711805b5e6862107f"
1678
+  integrity sha1-fuj25vTJRlInEg1nEYBbXmhiEH8=
1679
+  dependencies:
1680
+    core-js "^3.0.1"
1681
+
1629 1682
 "@storybook/client-api@5.2.8":
1630 1683
   version "5.2.8"
1631 1684
   resolved "https://registry.npm.taobao.org/@storybook/client-api/download/@storybook/client-api-5.2.8.tgz#1de791f7888442287f848e5f544eb883c5edc0da"
@@ -1655,6 +1708,13 @@
1655 1708
   dependencies:
1656 1709
     core-js "^3.0.1"
1657 1710
 
1711
+"@storybook/client-logger@5.3.9", "@storybook/client-logger@^5.1.0-rc.5":
1712
+  version "5.3.9"
1713
+  resolved "https://registry.npm.taobao.org/@storybook/client-logger/download/@storybook/client-logger-5.3.9.tgz#06654be9caa8d37366270b0426c2d5acb217f504"
1714
+  integrity sha1-BmVL6cqo03NmJwsEJsLVrLIX9QQ=
1715
+  dependencies:
1716
+    core-js "^3.0.1"
1717
+
1658 1718
 "@storybook/components@5.2.8", "@storybook/components@^5.0.6":
1659 1719
   version "5.2.8"
1660 1720
   resolved "https://registry.npm.taobao.org/@storybook/components/download/@storybook/components-5.2.8.tgz?cache=0&sync_timestamp=1577364192028&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Fcomponents%2Fdownload%2F%40storybook%2Fcomponents-5.2.8.tgz#f5d4a06ba4ba8c700b2d962deae182105b72fb99"
@@ -1680,6 +1740,33 @@
1680 1740
     react-textarea-autosize "^7.1.0"
1681 1741
     simplebar-react "^1.0.0-alpha.6"
1682 1742
 
1743
+"@storybook/components@^5.1.0-rc.5":
1744
+  version "5.3.9"
1745
+  resolved "https://registry.npm.taobao.org/@storybook/components/download/@storybook/components-5.3.9.tgz?cache=0&sync_timestamp=1580391963067&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Fcomponents%2Fdownload%2F%40storybook%2Fcomponents-5.3.9.tgz#1fbc688770889ddadb8c603f5a4dbcf987f3eb0f"
1746
+  integrity sha1-H7xoh3CIndrbjGA/Wk28+Yfz6w8=
1747
+  dependencies:
1748
+    "@storybook/client-logger" "5.3.9"
1749
+    "@storybook/theming" "5.3.9"
1750
+    "@types/react-syntax-highlighter" "11.0.2"
1751
+    "@types/react-textarea-autosize" "^4.3.3"
1752
+    core-js "^3.0.1"
1753
+    global "^4.3.2"
1754
+    lodash "^4.17.15"
1755
+    markdown-to-jsx "^6.9.1"
1756
+    memoizerific "^1.11.3"
1757
+    polished "^3.3.1"
1758
+    popper.js "^1.14.7"
1759
+    prop-types "^15.7.2"
1760
+    react "^16.8.3"
1761
+    react-dom "^16.8.3"
1762
+    react-focus-lock "^2.1.0"
1763
+    react-helmet-async "^1.0.2"
1764
+    react-popper-tooltip "^2.8.3"
1765
+    react-syntax-highlighter "^11.0.2"
1766
+    react-textarea-autosize "^7.1.0"
1767
+    simplebar-react "^1.0.0-alpha.6"
1768
+    ts-dedent "^1.1.0"
1769
+
1683 1770
 "@storybook/core-events@5.2.8", "@storybook/core-events@^5.0.6":
1684 1771
   version "5.2.8"
1685 1772
   resolved "https://registry.npm.taobao.org/@storybook/core-events/download/@storybook/core-events-5.2.8.tgz#93fc458ea0820ff1409d268b0fe51abba200f5a4"
@@ -1687,6 +1774,13 @@
1687 1774
   dependencies:
1688 1775
     core-js "^3.0.1"
1689 1776
 
1777
+"@storybook/core-events@5.3.9", "@storybook/core-events@^5.1.0-rc.5":
1778
+  version "5.3.9"
1779
+  resolved "https://registry.npm.taobao.org/@storybook/core-events/download/@storybook/core-events-5.3.9.tgz#3c7fbc20204ae4b937c896ed6281e782cc09c4aa"
1780
+  integrity sha1-PH+8ICBK5Lk3yJbtYoHngswJxKo=
1781
+  dependencies:
1782
+    core-js "^3.0.1"
1783
+
1690 1784
 "@storybook/core@5.2.8":
1691 1785
   version "5.2.8"
1692 1786
   resolved "https://registry.npm.taobao.org/@storybook/core/download/@storybook/core-5.2.8.tgz?cache=0&sync_timestamp=1577364262953&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Fcore%2Fdownload%2F%40storybook%2Fcore-5.2.8.tgz#3f6ddbacc705c1893deb15582c3a0a1ecd882cd1"
@@ -1761,6 +1855,13 @@
1761 1855
     webpack-dev-middleware "^3.7.0"
1762 1856
     webpack-hot-middleware "^2.25.0"
1763 1857
 
1858
+"@storybook/csf@0.0.1":
1859
+  version "0.0.1"
1860
+  resolved "https://registry.npm.taobao.org/@storybook/csf/download/@storybook/csf-0.0.1.tgz#95901507dc02f0bc6f9ac8ee1983e2fc5bb98ce6"
1861
+  integrity sha1-lZAVB9wC8LxvmsjuGYPi/Fu5jOY=
1862
+  dependencies:
1863
+    lodash "^4.17.15"
1864
+
1764 1865
 "@storybook/node-logger@5.2.8":
1765 1866
   version "5.2.8"
1766 1867
   resolved "https://registry.npm.taobao.org/@storybook/node-logger/download/@storybook/node-logger-5.2.8.tgz?cache=0&sync_timestamp=1577364189635&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Fnode-logger%2Fdownload%2F%40storybook%2Fnode-logger-5.2.8.tgz#4a3df21d731014d54b9ca53d5b9a72dd350bb075"
@@ -1813,6 +1914,21 @@
1813 1914
     memoizerific "^1.11.3"
1814 1915
     qs "^6.6.0"
1815 1916
 
1917
+"@storybook/router@5.3.9":
1918
+  version "5.3.9"
1919
+  resolved "https://registry.npm.taobao.org/@storybook/router/download/@storybook/router-5.3.9.tgz?cache=0&sync_timestamp=1580391953278&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Frouter%2Fdownload%2F%40storybook%2Frouter-5.3.9.tgz#3c6e01f4dced9de8e8c5c314352fdc437f2441c2"
1920
+  integrity sha1-PG4B9NztnejoxcMUNS/cQ38kQcI=
1921
+  dependencies:
1922
+    "@reach/router" "^1.2.1"
1923
+    "@storybook/csf" "0.0.1"
1924
+    "@types/reach__router" "^1.2.3"
1925
+    core-js "^3.0.1"
1926
+    global "^4.3.2"
1927
+    lodash "^4.17.15"
1928
+    memoizerific "^1.11.3"
1929
+    qs "^6.6.0"
1930
+    util-deprecate "^1.0.2"
1931
+
1816 1932
 "@storybook/source-loader@5.2.8":
1817 1933
   version "5.2.8"
1818 1934
   resolved "https://registry.npm.taobao.org/@storybook/source-loader/download/@storybook/source-loader-5.2.8.tgz#f8fb5c090e386749b058686f52ec5dedea538185"
@@ -1847,6 +1963,24 @@
1847 1963
     prop-types "^15.7.2"
1848 1964
     resolve-from "^5.0.0"
1849 1965
 
1966
+"@storybook/theming@5.3.9", "@storybook/theming@^5.1.0-rc.5":
1967
+  version "5.3.9"
1968
+  resolved "https://registry.npm.taobao.org/@storybook/theming/download/@storybook/theming-5.3.9.tgz?cache=0&sync_timestamp=1580391955556&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Ftheming%2Fdownload%2F%40storybook%2Ftheming-5.3.9.tgz#caaeea398f9e630394298ccfe8f36a185a289e4f"
1969
+  integrity sha1-yq7qOY+eYwOUKYzP6PNqGFoonk8=
1970
+  dependencies:
1971
+    "@emotion/core" "^10.0.20"
1972
+    "@emotion/styled" "^10.0.17"
1973
+    "@storybook/client-logger" "5.3.9"
1974
+    core-js "^3.0.1"
1975
+    deep-object-diff "^1.1.0"
1976
+    emotion-theming "^10.0.19"
1977
+    global "^4.3.2"
1978
+    memoizerific "^1.11.3"
1979
+    polished "^3.3.1"
1980
+    prop-types "^15.7.2"
1981
+    resolve-from "^5.0.0"
1982
+    ts-dedent "^1.1.0"
1983
+
1850 1984
 "@storybook/ui@5.2.8":
1851 1985
   version "5.2.8"
1852 1986
   resolved "https://registry.npm.taobao.org/@storybook/ui/download/@storybook/ui-5.2.8.tgz?cache=0&sync_timestamp=1577364257945&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40storybook%2Fui%2Fdownload%2F%40storybook%2Fui-5.2.8.tgz#da8afca9eb29a40ef3ddc6a9f6e76d7a3344f2ef"
@@ -2260,6 +2394,13 @@
2260 2394
   dependencies:
2261 2395
     "@types/react" "*"
2262 2396
 
2397
+"@types/react-syntax-highlighter@11.0.2":
2398
+  version "11.0.2"
2399
+  resolved "https://registry.npm.taobao.org/@types/react-syntax-highlighter/download/@types/react-syntax-highlighter-11.0.2.tgz#a2e3ff657d7c47813f80ca930f3d959c31ec51e3"
2400
+  integrity sha1-ouP/ZX18R4E/gMqTDz2VnDHsUeM=
2401
+  dependencies:
2402
+    "@types/react" "*"
2403
+
2263 2404
 "@types/react-textarea-autosize@^4.3.3":
2264 2405
   version "4.3.5"
2265 2406
   resolved "https://registry.npm.taobao.org/@types/react-textarea-autosize/download/@types/react-textarea-autosize-4.3.5.tgz#6c4d2753fa1864c98c0b2b517f67bb1f6e4c46de"
@@ -5408,7 +5549,7 @@ emojis-list@^2.0.0:
5408 5549
   resolved "https://registry.npm.taobao.org/emojis-list/download/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389"
5409 5550
   integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k=
5410 5551
 
5411
-emotion-theming@^10.0.14:
5552
+emotion-theming@^10.0.14, emotion-theming@^10.0.19:
5412 5553
   version "10.0.27"
5413 5554
   resolved "https://registry.npm.taobao.org/emotion-theming/download/emotion-theming-10.0.27.tgz#1887baaec15199862c89b1b984b79806f2b9ab10"
5414 5555
   integrity sha1-GIe6rsFRmYYsibG5hLeYBvK5qxA=
@@ -6288,7 +6429,7 @@ flush-write-stream@^1.0.0:
6288 6429
     inherits "^2.0.3"
6289 6430
     readable-stream "^2.3.6"
6290 6431
 
6291
-focus-lock@^0.6.3:
6432
+focus-lock@^0.6.3, focus-lock@^0.6.6:
6292 6433
   version "0.6.6"
6293 6434
   resolved "https://registry.npm.taobao.org/focus-lock/download/focus-lock-0.6.6.tgz#98119a755a38cfdbeda0280eaa77e307eee850c7"
6294 6435
   integrity sha1-mBGadVo4z9vtoCgOqnfjB+7oUMc=
@@ -6848,6 +6989,11 @@ highlight.js@~9.12.0:
6848 6989
   resolved "https://registry.npm.taobao.org/highlight.js/download/highlight.js-9.12.0.tgz?cache=0&sync_timestamp=1576163806990&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhighlight.js%2Fdownload%2Fhighlight.js-9.12.0.tgz#e6d9dbe57cbefe60751f02af336195870c90c01e"
6849 6990
   integrity sha1-5tnb5Xy+/mB1HwKvM2GVhwyQwB4=
6850 6991
 
6992
+highlight.js@~9.13.0:
6993
+  version "9.13.1"
6994
+  resolved "https://registry.npm.taobao.org/highlight.js/download/highlight.js-9.13.1.tgz#054586d53a6863311168488a0f58d6c505ce641e"
6995
+  integrity sha1-BUWG1TpoYzERaEiKD1jWxQXOZB4=
6996
+
6851 6997
 hmac-drbg@^1.0.0:
6852 6998
   version "1.0.1"
6853 6999
   resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
@@ -8743,6 +8889,14 @@ lower-case@^1.1.1:
8743 8889
   resolved "https://registry.npm.taobao.org/lower-case/download/lower-case-1.1.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flower-case%2Fdownload%2Flower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac"
8744 8890
   integrity sha1-miyr0bno4K6ZOkv31YdcOcQujqw=
8745 8891
 
8892
+lowlight@~1.11.0:
8893
+  version "1.11.0"
8894
+  resolved "https://registry.npm.taobao.org/lowlight/download/lowlight-1.11.0.tgz#1304d83005126d4e8b1dc0f07981e9b689ec2efc"
8895
+  integrity sha1-EwTYMAUSbU6LHcDweYHptonsLvw=
8896
+  dependencies:
8897
+    fault "^1.0.2"
8898
+    highlight.js "~9.13.0"
8899
+
8746 8900
 lowlight@~1.9.1:
8747 8901
   version "1.9.2"
8748 8902
   resolved "https://registry.npm.taobao.org/lowlight/download/lowlight-1.9.2.tgz#0b9127e3cec2c3021b7795dd81005c709a42fdd1"
@@ -11185,7 +11339,7 @@ react-app-rewired@^2.1.5:
11185 11339
   dependencies:
11186 11340
     semver "^5.6.0"
11187 11341
 
11188
-react-clientside-effect@^1.2.0:
11342
+react-clientside-effect@^1.2.0, react-clientside-effect@^1.2.2:
11189 11343
   version "1.2.2"
11190 11344
   resolved "https://registry.npm.taobao.org/react-clientside-effect/download/react-clientside-effect-1.2.2.tgz#6212fb0e07b204e714581dd51992603d1accc837"
11191 11345
   integrity sha1-YhL7DgeyBOcUWB3VGZJgPRrMyDc=
@@ -11343,6 +11497,18 @@ react-focus-lock@^1.18.3:
11343 11497
     prop-types "^15.6.2"
11344 11498
     react-clientside-effect "^1.2.0"
11345 11499
 
11500
+react-focus-lock@^2.1.0:
11501
+  version "2.2.1"
11502
+  resolved "https://registry.npm.taobao.org/react-focus-lock/download/react-focus-lock-2.2.1.tgz#1d12887416925dc53481914b7cedd39494a3b24a"
11503
+  integrity sha1-HRKIdBaSXcU0gZFLfO3TlJSjsko=
11504
+  dependencies:
11505
+    "@babel/runtime" "^7.0.0"
11506
+    focus-lock "^0.6.6"
11507
+    prop-types "^15.6.2"
11508
+    react-clientside-effect "^1.2.2"
11509
+    use-callback-ref "^1.2.1"
11510
+    use-sidecar "^1.0.1"
11511
+
11346 11512
 react-helmet-async@^1.0.2:
11347 11513
   version "1.0.4"
11348 11514
   resolved "https://registry.npm.taobao.org/react-helmet-async/download/react-helmet-async-1.0.4.tgz#079ef10b7fefcaee6240fefd150711e62463cc97"
@@ -11524,6 +11690,17 @@ react-sizeme@^2.6.7:
11524 11690
     shallowequal "^1.1.0"
11525 11691
     throttle-debounce "^2.1.0"
11526 11692
 
11693
+react-syntax-highlighter@^11.0.2:
11694
+  version "11.0.2"
11695
+  resolved "https://registry.npm.taobao.org/react-syntax-highlighter/download/react-syntax-highlighter-11.0.2.tgz?cache=0&sync_timestamp=1576493296354&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freact-syntax-highlighter%2Fdownload%2Freact-syntax-highlighter-11.0.2.tgz#4e3f376e752b20d2f54e4c55652fd663149e4029"
11696
+  integrity sha1-Tj83bnUrINL1TkxVZS/WYxSeQCk=
11697
+  dependencies:
11698
+    "@babel/runtime" "^7.3.1"
11699
+    highlight.js "~9.13.0"
11700
+    lowlight "~1.11.0"
11701
+    prismjs "^1.8.4"
11702
+    refractor "^2.4.1"
11703
+
11527 11704
 react-syntax-highlighter@^8.0.1:
11528 11705
   version "8.1.0"
11529 11706
   resolved "https://registry.npm.taobao.org/react-syntax-highlighter/download/react-syntax-highlighter-8.1.0.tgz?cache=0&sync_timestamp=1576493296354&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freact-syntax-highlighter%2Fdownload%2Freact-syntax-highlighter-8.1.0.tgz#59103ff17a828a27ed7c8f035ae2558f09b6b78c"
@@ -12877,6 +13054,21 @@ store2@^2.7.1:
12877 13054
   resolved "https://registry.npm.taobao.org/store2/download/store2-2.10.0.tgz#46b82bb91878daf1b0d56dec2f1d41e54d5103cf"
12878 13055
   integrity sha1-RrgruRh42vGw1W3sLx1B5U1RA88=
12879 13056
 
13057
+storybook-addon-themes@^5.3.0:
13058
+  version "5.3.0"
13059
+  resolved "https://registry.npm.taobao.org/storybook-addon-themes/download/storybook-addon-themes-5.3.0.tgz#016be7c071401904ecb87acca4cdf8a777d23774"
13060
+  integrity sha1-AWvnwHFAGQTsuHrMpM34p3fSN3Q=
13061
+  dependencies:
13062
+    "@storybook/addons" "^5.1.0-rc.5"
13063
+    "@storybook/client-logger" "^5.1.0-rc.5"
13064
+    "@storybook/components" "^5.1.0-rc.5"
13065
+    "@storybook/core-events" "^5.1.0-rc.5"
13066
+    "@storybook/theming" "^5.1.0-rc.5"
13067
+    core-js "^2.6.5"
13068
+    global "^4.3.2"
13069
+    memoizerific "^1.11.3"
13070
+    util-deprecate "^1.0.2"
13071
+
12880 13072
 storybook-readme@^5.0.8:
12881 13073
   version "5.0.8"
12882 13074
   resolved "https://registry.npm.taobao.org/storybook-readme/download/storybook-readme-5.0.8.tgz#bc5bb9343191bb333cec2633555cec41f3ab6067"
@@ -13234,7 +13426,7 @@ tapable@^1.0.0, tapable@^1.1.0, tapable@^1.1.3:
13234 13426
   resolved "https://registry.npm.taobao.org/tapable/download/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2"
13235 13427
   integrity sha1-ofzMBrWNth/XpF2i2kT186Pme6I=
13236 13428
 
13237
-telejson@^3.0.2:
13429
+telejson@^3.0.2, telejson@^3.2.0:
13238 13430
   version "3.3.0"
13239 13431
   resolved "https://registry.npm.taobao.org/telejson/download/telejson-3.3.0.tgz#6d814f3c0d254d5c4770085aad063e266b56ad03"
13240 13432
   integrity sha1-bYFPPA0lTVxHcAharQY+JmtWrQM=
@@ -13464,6 +13656,11 @@ tr46@^1.0.1:
13464 13656
   dependencies:
13465 13657
     punycode "^2.1.0"
13466 13658
 
13659
+ts-dedent@^1.1.0:
13660
+  version "1.1.1"
13661
+  resolved "https://registry.npm.taobao.org/ts-dedent/download/ts-dedent-1.1.1.tgz#68fad040d7dbd53a90f545b450702340e17d18f3"
13662
+  integrity sha1-aPrQQNfb1TqQ9UW0UHAjQOF9GPM=
13663
+
13467 13664
 ts-loader@^6.2.1:
13468 13665
   version "6.2.1"
13469 13666
   resolved "https://registry.npm.taobao.org/ts-loader/download/ts-loader-6.2.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fts-loader%2Fdownload%2Fts-loader-6.2.1.tgz#67939d5772e8a8c6bdaf6277ca023a4812da02ef"
@@ -13480,7 +13677,7 @@ ts-pnp@1.1.5, ts-pnp@^1.1.2:
13480 13677
   resolved "https://registry.npm.taobao.org/ts-pnp/download/ts-pnp-1.1.5.tgz#840e0739c89fce5f3abd9037bb091dbff16d9dec"
13481 13678
   integrity sha1-hA4HOcifzl86vZA3uwkdv/Ftnew=
13482 13679
 
13483
-tslib@^1.8.1, tslib@^1.9.0:
13680
+tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3:
13484 13681
   version "1.10.0"
13485 13682
   resolved "https://registry.npm.taobao.org/tslib/download/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
13486 13683
   integrity sha1-w8GflZc/sKYpc/sJ2Q2WHuQ+XIo=
@@ -13712,6 +13909,19 @@ url@^0.11.0:
13712 13909
     punycode "1.3.2"
13713 13910
     querystring "0.2.0"
13714 13911
 
13912
+use-callback-ref@^1.2.1:
13913
+  version "1.2.1"
13914
+  resolved "https://registry.npm.taobao.org/use-callback-ref/download/use-callback-ref-1.2.1.tgz#898759ccb9e14be6c7a860abafa3ffbd826c89bb"
13915
+  integrity sha1-iYdZzLnhS+bHqGCrr6P/vYJsibs=
13916
+
13917
+use-sidecar@^1.0.1:
13918
+  version "1.0.2"
13919
+  resolved "https://registry.npm.taobao.org/use-sidecar/download/use-sidecar-1.0.2.tgz#e72f582a75842f7de4ef8becd6235a4720ad8af6"
13920
+  integrity sha1-5y9YKnWEL33k74vs1iNaRyCtivY=
13921
+  dependencies:
13922
+    detect-node "^2.0.4"
13923
+    tslib "^1.9.3"
13924
+
13715 13925
 use@^3.1.0:
13716 13926
   version "3.1.1"
13717 13927
   resolved "https://registry.npm.taobao.org/use/download/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"