@surveycake/rc 2.4.0-alpha.12 → 3.0.0-alpha.2
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 +33 -0
- package/dist/AnimateHeight/utils.d.ts +1 -1
- package/dist/Avatar/style.d.ts +1 -1
- package/dist/Card/CardActionArea/index.d.ts +1 -7
- package/dist/Chip/CustomChip/index.d.ts +1 -14
- package/dist/DatePicker/styles.d.ts +5 -7
- package/dist/Divider/style.d.ts +1 -12
- package/dist/GroupSelect/style.d.ts +3 -3
- package/dist/InputSlider/useSlide.d.ts +2 -4
- package/dist/KeyboardDatePicker/style.d.ts +4 -4
- package/dist/KeyboardDatePicker/withMuiPickersUtilsProvider.d.ts +2 -2
- package/dist/MenuList/styles.d.ts +2 -2
- package/dist/MuiComponentsPlayground/Button/index.d.ts +2 -4
- package/dist/MuiComponentsPlayground/Menu/index.d.ts +2 -4
- package/dist/MuiComponentsPlayground/Typography/index.d.ts +2 -4
- package/dist/MuiSystemPlayground/Typography/index.d.ts +2 -4
- package/dist/Pagination/Icons.d.ts +2 -56
- package/dist/Paper/index.d.ts +1 -1
- package/dist/SlidingSideMenu/styles.d.ts +0 -2
- package/dist/Snackbar/styles.d.ts +0 -2
- package/dist/Stepper/Step/styles.d.ts +0 -2
- package/dist/Switch/styles.d.ts +5 -7
- package/dist/V2/Button/Button.stories.d.ts +7 -0
- package/dist/V2/Button/index.d.ts +6 -0
- package/dist/V2/Button/style.d.ts +1 -0
- package/dist/V2/Icon/Icon.stories.d.ts +5 -0
- package/dist/V2/Icon/custom/Facebook.d.ts +6 -0
- package/dist/V2/Icon/custom/index.d.ts +1 -0
- package/dist/V2/Icon/index.d.ts +17 -0
- package/dist/V2/Link/Link.stories.d.ts +5 -0
- package/dist/V2/Link/index.d.ts +6 -0
- package/dist/V2/Link/style.d.ts +1 -0
- package/dist/V2/Typography/Typography.stories.d.ts +4 -0
- package/dist/V2/Typography/index.d.ts +7 -0
- package/dist/V2/index.d.ts +8 -0
- package/dist/V2/styles/ThemeProvider.d.ts +2 -0
- package/dist/V2/styles/theme.d.ts +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/rc.cjs.development.js +570 -191
- package/dist/rc.cjs.development.js.map +1 -1
- package/dist/rc.cjs.production.min.js +1 -1
- package/dist/rc.cjs.production.min.js.map +1 -1
- package/dist/rc.esm.js +558 -182
- package/dist/rc.esm.js.map +1 -1
- package/dist/utils/formatNumberToText.d.ts +2 -1
- package/package.json +15 -6
package/dist/rc.esm.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
export { default as CssBaseline } from '@material-ui/core/CssBaseline';
|
|
2
|
-
import React, { useRef, useEffect,
|
|
2
|
+
import React, { forwardRef, useRef, useEffect, memo, useContext, useMemo, useState, useCallback, Children, isValidElement, cloneElement, useImperativeHandle, createRef, createContext } from 'react';
|
|
3
|
+
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
4
|
+
import { injectGlobal, cx, css, keyframes } from 'emotion';
|
|
5
|
+
import { createTheme, StylesProvider, ThemeProvider as ThemeProvider$2, makeStyles as makeStyles$1, createStyles, styled, withStyles } from '@material-ui/core/styles';
|
|
6
|
+
import { ThemeProvider as ThemeProvider$1 } from 'emotion-theming';
|
|
7
|
+
import MUIButton from '@material-ui/core/Button';
|
|
8
|
+
import Typography$2 from '@material-ui/core/Typography';
|
|
9
|
+
import MUILink from '@material-ui/core/Link';
|
|
10
|
+
import Cancel from '@material-ui/icons/Cancel';
|
|
11
|
+
import Info from '@material-ui/icons/Info';
|
|
12
|
+
import CheckCircle$2 from '@material-ui/icons/CheckCircle';
|
|
3
13
|
import MuiAvatar from '@material-ui/core/Avatar';
|
|
4
|
-
import { createStyles, makeStyles as makeStyles$1, styled, withStyles, createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
|
|
5
|
-
import MuiButton from '@material-ui/core/Button';
|
|
6
14
|
import Chip$1 from '@material-ui/core/Chip';
|
|
7
15
|
import { fade } from '@material-ui/core/styles/colorManipulator';
|
|
8
16
|
import MuiPaper from '@material-ui/core/Paper';
|
|
9
17
|
import MuiCard from '@material-ui/core/Card';
|
|
10
|
-
import { cx, css, keyframes, injectGlobal } from 'emotion';
|
|
11
18
|
import MuiCardActionArea from '@material-ui/core/CardActionArea';
|
|
12
19
|
import MuiCardActions from '@material-ui/core/CardActions';
|
|
13
20
|
import MuiCardContent from '@material-ui/core/CardContent';
|
|
@@ -28,9 +35,7 @@ import MuiToggleButton from '@material-ui/lab/ToggleButton';
|
|
|
28
35
|
import MuiToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup';
|
|
29
36
|
import TextField from '@material-ui/core/TextField';
|
|
30
37
|
import Box from '@material-ui/core/Box';
|
|
31
|
-
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
32
38
|
import IconButton from '@material-ui/core/IconButton';
|
|
33
|
-
import Typography$1 from '@material-ui/core/Typography';
|
|
34
39
|
import MuiTabs from '@material-ui/core/Tabs';
|
|
35
40
|
import MuiTab from '@material-ui/core/Tab';
|
|
36
41
|
import RadioGroup from '@material-ui/core/RadioGroup';
|
|
@@ -48,6 +53,25 @@ import Slide from '@material-ui/core/Slide';
|
|
|
48
53
|
import MuiDivider from '@material-ui/core/Divider';
|
|
49
54
|
import DateFnsUtils from '@date-io/date-fns';
|
|
50
55
|
|
|
56
|
+
var Facebook =
|
|
57
|
+
/*#__PURE__*/
|
|
58
|
+
forwardRef(function (props, ref) {
|
|
59
|
+
return React.createElement(SvgIcon, Object.assign({}, props, {
|
|
60
|
+
ref: ref,
|
|
61
|
+
"aria-label": "facebook",
|
|
62
|
+
viewBox: "0 0 320 512"
|
|
63
|
+
}), React.createElement("path", {
|
|
64
|
+
d: "M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
var index = {
|
|
71
|
+
__proto__: null,
|
|
72
|
+
Facebook: Facebook
|
|
73
|
+
};
|
|
74
|
+
|
|
51
75
|
function _extends() {
|
|
52
76
|
_extends = Object.assign || function (target) {
|
|
53
77
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -90,6 +114,338 @@ function _taggedTemplateLiteralLoose(strings, raw) {
|
|
|
90
114
|
return strings;
|
|
91
115
|
}
|
|
92
116
|
|
|
117
|
+
function _templateObject() {
|
|
118
|
+
var data = _taggedTemplateLiteralLoose(["\n @import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC:300,400,500,700|Roboto:400,500,700&display=swap&subset=chinese-traditional');\n "]);
|
|
119
|
+
|
|
120
|
+
_templateObject = function _templateObject() {
|
|
121
|
+
return data;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
return data;
|
|
125
|
+
}
|
|
126
|
+
var theme =
|
|
127
|
+
/*#__PURE__*/
|
|
128
|
+
function () {
|
|
129
|
+
injectGlobal(_templateObject());
|
|
130
|
+
return createTheme({
|
|
131
|
+
palette: {
|
|
132
|
+
primary: {
|
|
133
|
+
light: '#93DCC3',
|
|
134
|
+
main: '#3DBA90',
|
|
135
|
+
dark: '#009974'
|
|
136
|
+
},
|
|
137
|
+
error: {
|
|
138
|
+
light: '#F9DEE2',
|
|
139
|
+
main: '#EE415D',
|
|
140
|
+
dark: '#C9354D'
|
|
141
|
+
},
|
|
142
|
+
warning: {
|
|
143
|
+
light: '#F5E3C6',
|
|
144
|
+
main: '#F4A91F',
|
|
145
|
+
dark: '#E9A01C'
|
|
146
|
+
},
|
|
147
|
+
info: {
|
|
148
|
+
light: '#BADFEF',
|
|
149
|
+
main: '#43B8EB',
|
|
150
|
+
dark: '#0094D3'
|
|
151
|
+
},
|
|
152
|
+
success: {
|
|
153
|
+
light: '#EBF5DF',
|
|
154
|
+
main: '#88C936',
|
|
155
|
+
dark: '#66B204'
|
|
156
|
+
},
|
|
157
|
+
grey: {
|
|
158
|
+
50: '#FFFFFF',
|
|
159
|
+
100: '#EEEEEE',
|
|
160
|
+
200: '#D2D2D2',
|
|
161
|
+
300: '#BDBDBD',
|
|
162
|
+
400: '#AAAAAA',
|
|
163
|
+
500: '#989898',
|
|
164
|
+
600: '#6B6B6B',
|
|
165
|
+
700: '#454545',
|
|
166
|
+
800: '#3F3F3F',
|
|
167
|
+
900: '#333333',
|
|
168
|
+
A100: '#FAFAFA',
|
|
169
|
+
A200: '#EEEEEE',
|
|
170
|
+
A400: '#E3E3E3',
|
|
171
|
+
A700: '#C5C5C5'
|
|
172
|
+
},
|
|
173
|
+
text: {
|
|
174
|
+
primary: '#454545'
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
typography: {
|
|
178
|
+
fontFamily: ['Noto Sans TC', 'Helvetica Neue', 'Helvetica', 'Roboto', 'Arial', 'Apple LiGothic', '微軟正黑體', 'Microsoft JhengHei', 'sans-serif', 'PingFangTC-Regular'].join(','),
|
|
179
|
+
h1: {
|
|
180
|
+
fontSize: '1.5rem',
|
|
181
|
+
fontWeight: 500,
|
|
182
|
+
lineHeight: 1.6,
|
|
183
|
+
'@media (min-width:1025px)': {
|
|
184
|
+
fontSize: '2rem'
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
h2: {
|
|
188
|
+
fontSize: '1.375rem',
|
|
189
|
+
fontWeight: 500,
|
|
190
|
+
lineHeight: 1.6,
|
|
191
|
+
'@media (min-width:1025px)': {
|
|
192
|
+
fontSize: '1.75rem'
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
h3: {
|
|
196
|
+
fontSize: '1.25rem',
|
|
197
|
+
fontWeight: 500,
|
|
198
|
+
lineHeight: 1.6,
|
|
199
|
+
'@media (min-width:1025px)': {
|
|
200
|
+
fontSize: '1.5rem'
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
h4: {
|
|
204
|
+
fontSize: '1.125rem',
|
|
205
|
+
fontWeight: 500,
|
|
206
|
+
lineHeight: 1.6,
|
|
207
|
+
'@media (min-width:1025px)': {
|
|
208
|
+
fontSize: '1.25rem'
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
h5: {
|
|
212
|
+
fontSize: '1rem',
|
|
213
|
+
fontWeight: 500,
|
|
214
|
+
lineHeight: 1.6,
|
|
215
|
+
'@media (min-width:1025px)': {
|
|
216
|
+
fontSize: '1.125rem'
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
h6: {
|
|
220
|
+
fontSize: '0.875rem',
|
|
221
|
+
fontWeight: 500,
|
|
222
|
+
lineHeight: 1.6,
|
|
223
|
+
'@media (min-width:1025px)': {
|
|
224
|
+
fontSize: '1rem'
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
subtitle1: {
|
|
228
|
+
fontSize: '0.875rem',
|
|
229
|
+
fontWeight: 500,
|
|
230
|
+
lineHeight: 1.6
|
|
231
|
+
},
|
|
232
|
+
body1: {
|
|
233
|
+
fontSize: '1rem',
|
|
234
|
+
fontWeight: 400,
|
|
235
|
+
lineHeight: 1.6
|
|
236
|
+
},
|
|
237
|
+
body2: {
|
|
238
|
+
fontSize: '0.875rem',
|
|
239
|
+
fontWeight: 400,
|
|
240
|
+
lineHeight: 1.6
|
|
241
|
+
},
|
|
242
|
+
button: {
|
|
243
|
+
fontSize: '0.875rem',
|
|
244
|
+
fontWeight: 500,
|
|
245
|
+
lineHeight: 1.6
|
|
246
|
+
},
|
|
247
|
+
caption: {
|
|
248
|
+
fontSize: '0.875rem',
|
|
249
|
+
fontWeight: 400,
|
|
250
|
+
lineHeight: 1.6
|
|
251
|
+
},
|
|
252
|
+
overline: {
|
|
253
|
+
fontSize: '0.75rem',
|
|
254
|
+
fontWeight: 500,
|
|
255
|
+
lineHeight: 1.6
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
}();
|
|
260
|
+
|
|
261
|
+
var ThemeProvider = function ThemeProvider(props) {
|
|
262
|
+
var children = props.children;
|
|
263
|
+
return React.createElement(ThemeProvider$1, {
|
|
264
|
+
theme: theme
|
|
265
|
+
}, React.createElement(StylesProvider, {
|
|
266
|
+
injectFirst: true
|
|
267
|
+
}, React.createElement(ThemeProvider$2, {
|
|
268
|
+
theme: theme
|
|
269
|
+
}, children)));
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
var useStyles =
|
|
273
|
+
/*#__PURE__*/
|
|
274
|
+
makeStyles$1(function (theme) {
|
|
275
|
+
return {
|
|
276
|
+
root: {
|
|
277
|
+
padding: '7px 49px',
|
|
278
|
+
minWidth: '60px'
|
|
279
|
+
},
|
|
280
|
+
text: {
|
|
281
|
+
'& .MuiButton-label': {
|
|
282
|
+
color: theme.palette.grey[600]
|
|
283
|
+
},
|
|
284
|
+
'&:hover': {
|
|
285
|
+
backgroundColor: theme.palette.primary.light,
|
|
286
|
+
'& .MuiButton-label': {
|
|
287
|
+
color: theme.palette.primary.main
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
'&:disabled > .MuiButton-label': {
|
|
291
|
+
color: theme.palette.grey[400]
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
outlined: {
|
|
295
|
+
'& .MuiButton-label': {
|
|
296
|
+
color: 'inherit'
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
outlinedPrimary: {
|
|
300
|
+
'&:hover': {
|
|
301
|
+
backgroundColor: theme.palette.primary.light
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
contained: {
|
|
305
|
+
boxShadow: 'none',
|
|
306
|
+
'& > .MuiButton-label': {
|
|
307
|
+
color: theme.palette.grey[500]
|
|
308
|
+
},
|
|
309
|
+
'&:hover': {
|
|
310
|
+
boxShadow: 'none',
|
|
311
|
+
backgroundColor: theme.palette.grey[100],
|
|
312
|
+
'& .MuiButton-label': {
|
|
313
|
+
color: theme.palette.grey[600]
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
'&:disabled': {
|
|
317
|
+
backgroundColor: theme.palette.grey[200],
|
|
318
|
+
'& > .MuiButton-label': {
|
|
319
|
+
color: theme.palette.grey[700]
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
containedPrimary: {
|
|
324
|
+
'& > .MuiButton-label': {
|
|
325
|
+
color: theme.palette.common.white
|
|
326
|
+
},
|
|
327
|
+
'&:hover': {
|
|
328
|
+
backgroundColor: theme.palette.primary.dark,
|
|
329
|
+
'& .MuiButton-label': {
|
|
330
|
+
color: theme.palette.common.white
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
'&:disabled': {
|
|
334
|
+
backgroundColor: theme.palette.grey[300],
|
|
335
|
+
'& > .MuiButton-label': {
|
|
336
|
+
color: theme.palette.common.white
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
containedSecondary: {
|
|
341
|
+
'& > .MuiButton-label': {
|
|
342
|
+
color: theme.palette.common.white
|
|
343
|
+
},
|
|
344
|
+
'&:hover': {
|
|
345
|
+
backgroundColor: theme.palette.secondary.dark,
|
|
346
|
+
'& .MuiButton-label': {
|
|
347
|
+
color: theme.palette.common.white
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
'&:disabled': {
|
|
351
|
+
backgroundColor: theme.palette.grey[700],
|
|
352
|
+
'& > .MuiButton-label': {
|
|
353
|
+
color: theme.palette.common.white
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
sizeSmall: {
|
|
358
|
+
padding: '5px 15px',
|
|
359
|
+
fontSize: theme.typography.button.fontSize
|
|
360
|
+
},
|
|
361
|
+
sizeLarge: {
|
|
362
|
+
padding: '8px 67px',
|
|
363
|
+
fontSize: theme.typography.body1.fontSize,
|
|
364
|
+
'@media (min-width:1025px)': {
|
|
365
|
+
fontSize: '1rem'
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
var Button =
|
|
372
|
+
/*#__PURE__*/
|
|
373
|
+
forwardRef(function (props, ref) {
|
|
374
|
+
return React.createElement(MUIButton, Object.assign({
|
|
375
|
+
size: "small"
|
|
376
|
+
}, props, {
|
|
377
|
+
ref: ref,
|
|
378
|
+
classes: useStyles()
|
|
379
|
+
}));
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
var Typography =
|
|
383
|
+
/*#__PURE__*/
|
|
384
|
+
forwardRef(function (_ref, ref) {
|
|
385
|
+
var _ref$color = _ref.color,
|
|
386
|
+
color = _ref$color === void 0 ? 'textPrimary' : _ref$color,
|
|
387
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["color"]);
|
|
388
|
+
|
|
389
|
+
return React.createElement(Typography$2, Object.assign({}, rest, {
|
|
390
|
+
ref: ref,
|
|
391
|
+
color: color
|
|
392
|
+
}));
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
var useStyles$1 =
|
|
396
|
+
/*#__PURE__*/
|
|
397
|
+
makeStyles$1(function (theme) {
|
|
398
|
+
return {
|
|
399
|
+
underlineHover: {
|
|
400
|
+
'&:hover': {
|
|
401
|
+
color: function color(props) {
|
|
402
|
+
return props.color && (props.color === 'primary' || props.color === 'secondary') ? theme.palette[props.color].dark : theme.palette.primary.dark;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
});
|
|
408
|
+
|
|
409
|
+
var Link =
|
|
410
|
+
/*#__PURE__*/
|
|
411
|
+
forwardRef(function (props, ref) {
|
|
412
|
+
return React.createElement(MUILink, Object.assign({}, props, {
|
|
413
|
+
ref: ref,
|
|
414
|
+
classes: useStyles$1(props)
|
|
415
|
+
}));
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
var Icons = {
|
|
419
|
+
Cancel: Cancel,
|
|
420
|
+
Info: Info,
|
|
421
|
+
CheckCircle: CheckCircle$2,
|
|
422
|
+
Facebook: Facebook
|
|
423
|
+
};
|
|
424
|
+
var Icon =
|
|
425
|
+
/*#__PURE__*/
|
|
426
|
+
forwardRef(function (props, ref) {
|
|
427
|
+
var name = props.name,
|
|
428
|
+
rest = _objectWithoutPropertiesLoose(props, ["name"]);
|
|
429
|
+
|
|
430
|
+
var RenderIcon = Icons[name];
|
|
431
|
+
return React.createElement(RenderIcon, Object.assign({}, rest, {
|
|
432
|
+
ref: ref
|
|
433
|
+
}));
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
var index$1 = {
|
|
439
|
+
__proto__: null,
|
|
440
|
+
CustomSvgIcon: index,
|
|
441
|
+
theme: theme,
|
|
442
|
+
ThemeProvider: ThemeProvider,
|
|
443
|
+
Button: Button,
|
|
444
|
+
Typography: Typography,
|
|
445
|
+
Link: Link,
|
|
446
|
+
Icon: Icon
|
|
447
|
+
};
|
|
448
|
+
|
|
93
449
|
var getAutoHeightDuration = function getAutoHeightDuration(height) {
|
|
94
450
|
if (!height) {
|
|
95
451
|
return 0;
|
|
@@ -197,7 +553,7 @@ var styles = function styles(theme) {
|
|
|
197
553
|
});
|
|
198
554
|
};
|
|
199
555
|
|
|
200
|
-
var useStyles =
|
|
556
|
+
var useStyles$2 =
|
|
201
557
|
/*#__PURE__*/
|
|
202
558
|
makeStyles$1(styles);
|
|
203
559
|
var Avatar =
|
|
@@ -214,7 +570,7 @@ forwardRef(function (_ref, ref) {
|
|
|
214
570
|
height = _ref.height,
|
|
215
571
|
restProps = _objectWithoutPropertiesLoose(_ref, ["children", "src", "alt", "size", "variant", "width", "height"]);
|
|
216
572
|
|
|
217
|
-
var classes = useStyles({
|
|
573
|
+
var classes = useStyles$2({
|
|
218
574
|
width: width,
|
|
219
575
|
height: height
|
|
220
576
|
});
|
|
@@ -229,7 +585,7 @@ forwardRef(function (_ref, ref) {
|
|
|
229
585
|
}, restProps), children);
|
|
230
586
|
});
|
|
231
587
|
|
|
232
|
-
var Button =
|
|
588
|
+
var Button$1 =
|
|
233
589
|
/*#__PURE__*/
|
|
234
590
|
forwardRef(function (_ref, ref) {
|
|
235
591
|
var children = _ref.children,
|
|
@@ -244,7 +600,7 @@ forwardRef(function (_ref, ref) {
|
|
|
244
600
|
onClick = _ref.onClick,
|
|
245
601
|
restProps = _objectWithoutPropertiesLoose(_ref, ["children", "size", "color", "variant", "disabled", "onClick"]);
|
|
246
602
|
|
|
247
|
-
return React.createElement(
|
|
603
|
+
return React.createElement(MUIButton, Object.assign({
|
|
248
604
|
onClick: onClick,
|
|
249
605
|
color: color,
|
|
250
606
|
disabled: disabled,
|
|
@@ -254,7 +610,7 @@ forwardRef(function (_ref, ref) {
|
|
|
254
610
|
}, restProps), children);
|
|
255
611
|
});
|
|
256
612
|
|
|
257
|
-
var theme = {
|
|
613
|
+
var theme$1 = {
|
|
258
614
|
color: {
|
|
259
615
|
primary: {
|
|
260
616
|
active: '#009A68',
|
|
@@ -336,18 +692,16 @@ var CustomBoxShadow1 = "\n0 1px 4px 0 rgba(69, 69, 69, 0.2),\n0 1px 2px 0 rgba(6
|
|
|
336
692
|
var CustomChip =
|
|
337
693
|
/*#__PURE__*/
|
|
338
694
|
styled(function (_ref) {
|
|
339
|
-
var
|
|
340
|
-
active = _ref.active,
|
|
341
|
-
other = _objectWithoutPropertiesLoose(_ref, ["color", "active"]);
|
|
695
|
+
var other = _objectWithoutPropertiesLoose(_ref, ["color", "active"]);
|
|
342
696
|
|
|
343
697
|
return React.createElement(Chip$1, Object.assign({}, other));
|
|
344
698
|
})({
|
|
345
699
|
backgroundColor: function backgroundColor(props) {
|
|
346
|
-
return props.active ? 'white' : fade(props.color || theme.color.primary["default"], 0.3);
|
|
700
|
+
return props.active ? 'white' : fade(props.color || theme$1.color.primary["default"], 0.3);
|
|
347
701
|
},
|
|
348
702
|
'&:hover, &:focus': {
|
|
349
703
|
backgroundColor: function backgroundColor(props) {
|
|
350
|
-
return props.active ? 'white' : fade(props.color || theme.color.primary["default"], 0.3);
|
|
704
|
+
return props.active ? 'white' : fade(props.color || theme$1.color.primary["default"], 0.3);
|
|
351
705
|
}
|
|
352
706
|
},
|
|
353
707
|
'&:active': {
|
|
@@ -356,7 +710,7 @@ styled(function (_ref) {
|
|
|
356
710
|
}
|
|
357
711
|
},
|
|
358
712
|
color: function color(props) {
|
|
359
|
-
return props.color || theme.color.primary["default"];
|
|
713
|
+
return props.color || theme$1.color.primary["default"];
|
|
360
714
|
},
|
|
361
715
|
boxShadow: function boxShadow(props) {
|
|
362
716
|
return props.active ? CustomBoxShadow1 : 'none';
|
|
@@ -391,7 +745,7 @@ var Chip = function Chip(_ref) {
|
|
|
391
745
|
);
|
|
392
746
|
};
|
|
393
747
|
|
|
394
|
-
var index = /*#__PURE__*/
|
|
748
|
+
var index$2 = /*#__PURE__*/
|
|
395
749
|
memo(Chip);
|
|
396
750
|
|
|
397
751
|
var Paper =
|
|
@@ -402,7 +756,7 @@ forwardRef(function (props, ref) {
|
|
|
402
756
|
}, props), props.children);
|
|
403
757
|
});
|
|
404
758
|
|
|
405
|
-
var useStyles$
|
|
759
|
+
var useStyles$3 =
|
|
406
760
|
/*#__PURE__*/
|
|
407
761
|
makeStyles$1({
|
|
408
762
|
root: {
|
|
@@ -425,7 +779,7 @@ forwardRef(function (_ref, ref) {
|
|
|
425
779
|
className = _ref.className,
|
|
426
780
|
restProps = _objectWithoutPropertiesLoose(_ref, ["children", "className"]);
|
|
427
781
|
|
|
428
|
-
var _useStyles = useStyles$
|
|
782
|
+
var _useStyles = useStyles$3(restProps),
|
|
429
783
|
root = _useStyles.root;
|
|
430
784
|
|
|
431
785
|
return React.createElement(MuiCard, Object.assign({
|
|
@@ -452,10 +806,10 @@ function _templateObject2() {
|
|
|
452
806
|
return data;
|
|
453
807
|
}
|
|
454
808
|
|
|
455
|
-
function _templateObject() {
|
|
809
|
+
function _templateObject$1() {
|
|
456
810
|
var data = _taggedTemplateLiteralLoose(["\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n"]);
|
|
457
811
|
|
|
458
|
-
_templateObject = function _templateObject() {
|
|
812
|
+
_templateObject$1 = function _templateObject() {
|
|
459
813
|
return data;
|
|
460
814
|
};
|
|
461
815
|
|
|
@@ -465,7 +819,7 @@ var loadingCircle =
|
|
|
465
819
|
/*#__PURE__*/
|
|
466
820
|
keyframes(
|
|
467
821
|
/*#__PURE__*/
|
|
468
|
-
_templateObject());
|
|
822
|
+
_templateObject$1());
|
|
469
823
|
var spin =
|
|
470
824
|
/*#__PURE__*/
|
|
471
825
|
css(
|
|
@@ -478,11 +832,10 @@ var svgBaseProps = (_svgBaseProps = {
|
|
|
478
832
|
height: '1em',
|
|
479
833
|
fill: 'currentColor'
|
|
480
834
|
}, _svgBaseProps['aria-hidden'] = true, _svgBaseProps.focusable = 'false', _svgBaseProps);
|
|
481
|
-
var Icon =
|
|
835
|
+
var Icon$1 =
|
|
482
836
|
/*#__PURE__*/
|
|
483
837
|
forwardRef(function (_ref, ref) {
|
|
484
|
-
var
|
|
485
|
-
className = _ref.className,
|
|
838
|
+
var className = _ref.className,
|
|
486
839
|
icon = _ref.icon,
|
|
487
840
|
viewBox = _ref.viewBox,
|
|
488
841
|
style = _ref.style,
|
|
@@ -521,7 +874,7 @@ forwardRef(function (_ref, ref) {
|
|
|
521
874
|
d: icon.definition.pathData
|
|
522
875
|
}));
|
|
523
876
|
});
|
|
524
|
-
Icon.defaultProps = {
|
|
877
|
+
Icon$1.defaultProps = {
|
|
525
878
|
size: 1
|
|
526
879
|
};
|
|
527
880
|
|
|
@@ -543,10 +896,10 @@ function _templateObject2$1() {
|
|
|
543
896
|
return data;
|
|
544
897
|
}
|
|
545
898
|
|
|
546
|
-
function _templateObject$
|
|
899
|
+
function _templateObject$2() {
|
|
547
900
|
var data = _taggedTemplateLiteralLoose(["\n position: relative;\n"]);
|
|
548
901
|
|
|
549
|
-
_templateObject$
|
|
902
|
+
_templateObject$2 = function _templateObject() {
|
|
550
903
|
return data;
|
|
551
904
|
};
|
|
552
905
|
|
|
@@ -556,12 +909,12 @@ var DatePickerWrapper =
|
|
|
556
909
|
/*#__PURE__*/
|
|
557
910
|
styled$1('section')(
|
|
558
911
|
/*#__PURE__*/
|
|
559
|
-
_templateObject$
|
|
912
|
+
_templateObject$2());
|
|
560
913
|
var IonwWrapper =
|
|
561
914
|
/*#__PURE__*/
|
|
562
915
|
styled$1('section')(
|
|
563
916
|
/*#__PURE__*/
|
|
564
|
-
_templateObject2$1(), theme.color.primary["default"]);
|
|
917
|
+
_templateObject2$1(), theme$1.color.primary["default"]);
|
|
565
918
|
var popOverStyles =
|
|
566
919
|
/*#__PURE__*/
|
|
567
920
|
createStyles({
|
|
@@ -632,7 +985,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
632
985
|
root: inputClasses.root
|
|
633
986
|
}
|
|
634
987
|
};
|
|
635
|
-
return React.createElement(DatePickerWrapper, null, React.createElement(IonwWrapper, null, React.createElement(Icon, {
|
|
988
|
+
return React.createElement(DatePickerWrapper, null, React.createElement(IonwWrapper, null, React.createElement(Icon$1, {
|
|
636
989
|
icon: CalendarAlt
|
|
637
990
|
})), React.createElement(StyledMuiDatePicker, Object.assign({
|
|
638
991
|
value: value,
|
|
@@ -648,8 +1001,8 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
648
1001
|
};
|
|
649
1002
|
|
|
650
1003
|
function useTheme() {
|
|
651
|
-
var theme
|
|
652
|
-
return theme
|
|
1004
|
+
var theme = useContext(ThemeContext);
|
|
1005
|
+
return theme && theme.color ? theme : theme$1;
|
|
653
1006
|
}
|
|
654
1007
|
function makeStyles(styles) {
|
|
655
1008
|
var memoizedClasses = {};
|
|
@@ -708,7 +1061,7 @@ function resolveThemeColorProp(theme, color) {
|
|
|
708
1061
|
return typeof color === 'function' ? color(theme) : resolveThemeColorByPath(theme, color);
|
|
709
1062
|
}
|
|
710
1063
|
|
|
711
|
-
var useStyles$
|
|
1064
|
+
var useStyles$4 =
|
|
712
1065
|
/*#__PURE__*/
|
|
713
1066
|
makeStyles([['typography', function (theme, _ref) {
|
|
714
1067
|
var variant = _ref[0],
|
|
@@ -724,7 +1077,7 @@ makeStyles([['typography', function (theme, _ref) {
|
|
|
724
1077
|
return ["\n\t\t\t\tcolor: " + (resolveThemeColorProp(theme, color) || 'inherit') + ";\n\t\t\t\tfont-weight: " + fontWeight + ";\n\t\t\t\tfont-size: " + fontSize + "px;\n\t\t\t\tline-height: " + lineHeight + "px;\n\t\t\t\tmin-height: 0.01px;\n\t\t\t\tmargin: 0;\n\t\t\t\tmargin-bottom: " + (gutterBottom ? '0.35em' : 0) + ";\n\t\t\t", noWrap && "\n\t\t\t\toverflow: hidden;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\twhite-space: nowrap;\n\t\t\t"];
|
|
725
1078
|
}]]);
|
|
726
1079
|
|
|
727
|
-
var Typography =
|
|
1080
|
+
var Typography$1 =
|
|
728
1081
|
/*#__PURE__*/
|
|
729
1082
|
forwardRef(function (_ref, ref) {
|
|
730
1083
|
var children = _ref.children,
|
|
@@ -736,13 +1089,13 @@ forwardRef(function (_ref, ref) {
|
|
|
736
1089
|
noWrap = _ref.noWrap,
|
|
737
1090
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "className", "variant", "color", "weight", "gutterBottom", "noWrap"]);
|
|
738
1091
|
|
|
739
|
-
var styles = useStyles$
|
|
1092
|
+
var styles = useStyles$4([Vari, color, weight, gutterBottom, noWrap]);
|
|
740
1093
|
return React.createElement(Vari, Object.assign({}, props, {
|
|
741
1094
|
className: className ? cx(styles.typography, className) : styles.typography,
|
|
742
1095
|
ref: ref
|
|
743
1096
|
}), children);
|
|
744
1097
|
});
|
|
745
|
-
Typography.defaultProps = {
|
|
1098
|
+
Typography$1.defaultProps = {
|
|
746
1099
|
weight: 'normal',
|
|
747
1100
|
gutterBottom: false,
|
|
748
1101
|
noWrap: false
|
|
@@ -796,7 +1149,7 @@ makeStyles$1(inputAdornmentStyles);
|
|
|
796
1149
|
var CommonKeyboardDatePickerProps = {
|
|
797
1150
|
keyboardIcon:
|
|
798
1151
|
/*#__PURE__*/
|
|
799
|
-
React.createElement(Icon, {
|
|
1152
|
+
React.createElement(Icon$1, {
|
|
800
1153
|
icon: CalendarAlt
|
|
801
1154
|
}),
|
|
802
1155
|
maxDateMessage: null,
|
|
@@ -815,7 +1168,7 @@ var CommonKeyboardDatePickerProps = {
|
|
|
815
1168
|
|
|
816
1169
|
var InvalidDateMsg = function InvalidDateMsg(_ref) {
|
|
817
1170
|
var msg = _ref.msg;
|
|
818
|
-
return React.createElement(Typography, {
|
|
1171
|
+
return React.createElement(Typography$1, {
|
|
819
1172
|
variant: 'span',
|
|
820
1173
|
color: 'error'
|
|
821
1174
|
}, msg);
|
|
@@ -901,7 +1254,7 @@ function hexToRgba(originColor, opacity) {
|
|
|
901
1254
|
return "rgba(" + rgb + ", " + opacity + ")";
|
|
902
1255
|
}
|
|
903
1256
|
|
|
904
|
-
var useStyles$
|
|
1257
|
+
var useStyles$5 =
|
|
905
1258
|
/*#__PURE__*/
|
|
906
1259
|
makeStyles([['tag', function (theme, _ref) {
|
|
907
1260
|
var originColor = _ref[0],
|
|
@@ -919,7 +1272,7 @@ var Tag = function Tag(_ref) {
|
|
|
919
1272
|
onClick = _ref.onClick,
|
|
920
1273
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "className", "color", "variant", "onClick"]);
|
|
921
1274
|
|
|
922
|
-
var styles = useStyles$
|
|
1275
|
+
var styles = useStyles$5([color, variant, !!onClick]);
|
|
923
1276
|
return React.createElement("div", Object.assign({}, props, {
|
|
924
1277
|
className: className ? cx(styles.tag, className) : styles.tag,
|
|
925
1278
|
onClick: onClick
|
|
@@ -953,7 +1306,7 @@ forwardRef(function (_ref, ref) {
|
|
|
953
1306
|
}, restProps), children);
|
|
954
1307
|
});
|
|
955
1308
|
|
|
956
|
-
var useStyles$
|
|
1309
|
+
var useStyles$6 =
|
|
957
1310
|
/*#__PURE__*/
|
|
958
1311
|
makeStyles$1({
|
|
959
1312
|
root: {
|
|
@@ -1062,13 +1415,11 @@ var Select = function Select(props) {
|
|
|
1062
1415
|
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
|
1063
1416
|
onOpen = props.onOpen,
|
|
1064
1417
|
onClose = props.onClose,
|
|
1065
|
-
height = props.height,
|
|
1066
|
-
backgroundColor = props.backgroundColor,
|
|
1067
1418
|
_props$isVarItem = props.isVarItem,
|
|
1068
1419
|
isVarItem = _props$isVarItem === void 0 ? false : _props$isVarItem,
|
|
1069
1420
|
restProps = _objectWithoutPropertiesLoose(props, ["options", "value", "onChange", "variant", "multiple", "onOpen", "onClose", "height", "backgroundColor", "isVarItem"]);
|
|
1070
1421
|
|
|
1071
|
-
var classes = useStyles$
|
|
1422
|
+
var classes = useStyles$6(props);
|
|
1072
1423
|
var itemClasses = itemStyle(props);
|
|
1073
1424
|
return React.createElement(MuiSelect, Object.assign({
|
|
1074
1425
|
className: classes.root,
|
|
@@ -1275,10 +1626,10 @@ function _templateObject2$2() {
|
|
|
1275
1626
|
return data;
|
|
1276
1627
|
}
|
|
1277
1628
|
|
|
1278
|
-
function _templateObject$
|
|
1629
|
+
function _templateObject$3() {
|
|
1279
1630
|
var data = _taggedTemplateLiteralLoose(["\n height: 10px;\n width: 0;\n visibility: hidden;\n outline: none;\n position: absolute;\n left: 50%;\n top: 12%;\n"]);
|
|
1280
1631
|
|
|
1281
|
-
_templateObject$
|
|
1632
|
+
_templateObject$3 = function _templateObject() {
|
|
1282
1633
|
return data;
|
|
1283
1634
|
};
|
|
1284
1635
|
|
|
@@ -1288,13 +1639,13 @@ var InputStyle =
|
|
|
1288
1639
|
/*#__PURE__*/
|
|
1289
1640
|
styled$1('input')(
|
|
1290
1641
|
/*#__PURE__*/
|
|
1291
|
-
_templateObject$
|
|
1642
|
+
_templateObject$3());
|
|
1292
1643
|
var LabelStyle =
|
|
1293
1644
|
/*#__PURE__*/
|
|
1294
1645
|
styled$1('label')(
|
|
1295
1646
|
/*#__PURE__*/
|
|
1296
1647
|
_templateObject2$2(), function (props) {
|
|
1297
|
-
return props.checked ? theme.color.primary["default"] : theme.color.text.F;
|
|
1648
|
+
return props.checked ? theme$1.color.primary["default"] : theme$1.color.text.F;
|
|
1298
1649
|
});
|
|
1299
1650
|
var ThumbStyle =
|
|
1300
1651
|
/*#__PURE__*/
|
|
@@ -1309,12 +1660,12 @@ var CheckedNode =
|
|
|
1309
1660
|
/*#__PURE__*/
|
|
1310
1661
|
styled$1('span')(
|
|
1311
1662
|
/*#__PURE__*/
|
|
1312
|
-
_templateObject4(), theme.typography.fontWeight.normal);
|
|
1663
|
+
_templateObject4(), theme$1.typography.fontWeight.normal);
|
|
1313
1664
|
var UnCheckedNode =
|
|
1314
1665
|
/*#__PURE__*/
|
|
1315
1666
|
styled$1('span')(
|
|
1316
1667
|
/*#__PURE__*/
|
|
1317
|
-
_templateObject5(), theme.color.text.B3, theme.typography.fontWeight.normal);
|
|
1668
|
+
_templateObject5(), theme$1.color.text.B3, theme$1.typography.fontWeight.normal);
|
|
1318
1669
|
|
|
1319
1670
|
var Switch =
|
|
1320
1671
|
/*#__PURE__*/
|
|
@@ -1394,7 +1745,7 @@ var MenuList = function MenuList(_ref) {
|
|
|
1394
1745
|
});
|
|
1395
1746
|
};
|
|
1396
1747
|
|
|
1397
|
-
var useStyles$
|
|
1748
|
+
var useStyles$7 =
|
|
1398
1749
|
/*#__PURE__*/
|
|
1399
1750
|
makeStyles$1({
|
|
1400
1751
|
root: {
|
|
@@ -1417,13 +1768,9 @@ makeStyles$1({
|
|
|
1417
1768
|
|
|
1418
1769
|
var MenuItem = function MenuItem(props) {
|
|
1419
1770
|
var children = props.children,
|
|
1420
|
-
backgroundColor = props.backgroundColor,
|
|
1421
|
-
color = props.color,
|
|
1422
|
-
hoverBackgroundColor = props.hoverBackgroundColor,
|
|
1423
|
-
hoverColor = props.hoverColor,
|
|
1424
1771
|
restProps = _objectWithoutPropertiesLoose(props, ["children", "backgroundColor", "color", "hoverBackgroundColor", "hoverColor"]);
|
|
1425
1772
|
|
|
1426
|
-
var classes = useStyles$
|
|
1773
|
+
var classes = useStyles$7(props);
|
|
1427
1774
|
return React.createElement(MuiMenuItem, Object.assign({}, restProps, {
|
|
1428
1775
|
className: classes.root
|
|
1429
1776
|
}), children);
|
|
@@ -1647,9 +1994,9 @@ var Pagination = function Pagination(_ref) {
|
|
|
1647
1994
|
}), React.createElement(Box, {
|
|
1648
1995
|
pr: 0.5,
|
|
1649
1996
|
pl: 1
|
|
1650
|
-
}, React.createElement(Typography$
|
|
1997
|
+
}, React.createElement(Typography$2, {
|
|
1651
1998
|
variant: "body1"
|
|
1652
|
-
}, "\uFF0F")), React.createElement(Typography$
|
|
1999
|
+
}, "\uFF0F")), React.createElement(Typography$2, {
|
|
1653
2000
|
variant: "body1"
|
|
1654
2001
|
}, totalPages)), React.createElement(ChevronRightIconButton, {
|
|
1655
2002
|
disabled: !hasNext,
|
|
@@ -1660,10 +2007,10 @@ var Pagination = function Pagination(_ref) {
|
|
|
1660
2007
|
}));
|
|
1661
2008
|
};
|
|
1662
2009
|
|
|
1663
|
-
var index$
|
|
2010
|
+
var index$3 = /*#__PURE__*/
|
|
1664
2011
|
memo(Pagination);
|
|
1665
2012
|
|
|
1666
|
-
var useStyles$
|
|
2013
|
+
var useStyles$8 =
|
|
1667
2014
|
/*#__PURE__*/
|
|
1668
2015
|
makeStyles$1({
|
|
1669
2016
|
scrollButtons: {
|
|
@@ -1674,7 +2021,7 @@ makeStyles$1({
|
|
|
1674
2021
|
margin: '0 12px'
|
|
1675
2022
|
},
|
|
1676
2023
|
'& > *:focus': {
|
|
1677
|
-
color: theme.color.text.B5
|
|
2024
|
+
color: theme$1.color.text.B5
|
|
1678
2025
|
},
|
|
1679
2026
|
'& > :first-child': {
|
|
1680
2027
|
marginLeft: 0
|
|
@@ -1693,7 +2040,7 @@ forwardRef(function (_ref, ref) {
|
|
|
1693
2040
|
onChange = _ref.onChange,
|
|
1694
2041
|
restProps = _objectWithoutPropertiesLoose(_ref, ["children", "value", "onChange"]);
|
|
1695
2042
|
|
|
1696
|
-
var classes = useStyles$
|
|
2043
|
+
var classes = useStyles$8();
|
|
1697
2044
|
return React.createElement(MuiTabs, Object.assign({
|
|
1698
2045
|
ref: ref,
|
|
1699
2046
|
value: value,
|
|
@@ -1704,29 +2051,29 @@ forwardRef(function (_ref, ref) {
|
|
|
1704
2051
|
}, restProps), children);
|
|
1705
2052
|
});
|
|
1706
2053
|
|
|
1707
|
-
var useStyles$
|
|
2054
|
+
var useStyles$9 =
|
|
1708
2055
|
/*#__PURE__*/
|
|
1709
|
-
makeStyles$1(function (theme
|
|
2056
|
+
makeStyles$1(function (theme) {
|
|
1710
2057
|
return createStyles({
|
|
1711
2058
|
root: {
|
|
1712
2059
|
textTransform: 'none',
|
|
1713
2060
|
minWidth: 56,
|
|
1714
2061
|
padding: '15px 0',
|
|
1715
|
-
color: theme.color.text.B5,
|
|
2062
|
+
color: theme$1.color.text.B5,
|
|
1716
2063
|
opacity: 1,
|
|
1717
2064
|
'&:hover': {
|
|
1718
|
-
color: theme.color.text.B4,
|
|
2065
|
+
color: theme$1.color.text.B4,
|
|
1719
2066
|
opacity: 1
|
|
1720
2067
|
},
|
|
1721
2068
|
'&$selected': {
|
|
1722
|
-
color: theme.color.primary["default"]
|
|
2069
|
+
color: theme$1.color.primary["default"]
|
|
1723
2070
|
}
|
|
1724
2071
|
},
|
|
1725
2072
|
selected: {},
|
|
1726
2073
|
wrapper: _extends({
|
|
1727
2074
|
height: 32
|
|
1728
|
-
}, theme
|
|
1729
|
-
fontWeight: theme.typography.fontWeight.medium
|
|
2075
|
+
}, theme.typography.body1, {
|
|
2076
|
+
fontWeight: theme$1.typography.fontWeight.medium
|
|
1730
2077
|
})
|
|
1731
2078
|
});
|
|
1732
2079
|
});
|
|
@@ -1740,7 +2087,7 @@ forwardRef(function (_ref, ref) {
|
|
|
1740
2087
|
value = _ref.value,
|
|
1741
2088
|
restProps = _objectWithoutPropertiesLoose(_ref, ["label", "disabled", "icon", "value"]);
|
|
1742
2089
|
|
|
1743
|
-
var classes = useStyles$
|
|
2090
|
+
var classes = useStyles$9();
|
|
1744
2091
|
return React.createElement(MuiTab, Object.assign({
|
|
1745
2092
|
ref: ref,
|
|
1746
2093
|
classes: classes,
|
|
@@ -1768,7 +2115,7 @@ forwardRef(function (_ref, ref) {
|
|
|
1768
2115
|
}, restProps), children);
|
|
1769
2116
|
});
|
|
1770
2117
|
|
|
1771
|
-
var useStyles$
|
|
2118
|
+
var useStyles$a =
|
|
1772
2119
|
/*#__PURE__*/
|
|
1773
2120
|
makeStyles$1({
|
|
1774
2121
|
root: {
|
|
@@ -1780,27 +2127,27 @@ makeStyles$1({
|
|
|
1780
2127
|
borderRadius: '50%',
|
|
1781
2128
|
width: 20,
|
|
1782
2129
|
height: 20,
|
|
1783
|
-
boxShadow: "inset 0 0 0 2px " + theme.color.text.B5,
|
|
2130
|
+
boxShadow: "inset 0 0 0 2px " + theme$1.color.text.B5,
|
|
1784
2131
|
backgroundColor: 'transparent',
|
|
1785
2132
|
'$root.Mui-focusVisible &': {
|
|
1786
|
-
boxShadow: "inset 0 0 0 2px " + theme.color.primary["default"],
|
|
2133
|
+
boxShadow: "inset 0 0 0 2px " + theme$1.color.primary["default"],
|
|
1787
2134
|
backgroundColor: 'transparent'
|
|
1788
2135
|
},
|
|
1789
2136
|
'input:hover ~ &': {
|
|
1790
2137
|
padding: 0,
|
|
1791
|
-
boxShadow: "inset 0 0 0 1px " + theme.color.primary["default"]
|
|
2138
|
+
boxShadow: "inset 0 0 0 1px " + theme$1.color.primary["default"]
|
|
1792
2139
|
},
|
|
1793
2140
|
'input:disabled ~ &': {
|
|
1794
|
-
boxShadow: "inset 0 0 0 2px " + theme.color.text.B3,
|
|
2141
|
+
boxShadow: "inset 0 0 0 2px " + theme$1.color.text.B3,
|
|
1795
2142
|
backgroundColor: 'transparent'
|
|
1796
2143
|
}
|
|
1797
2144
|
},
|
|
1798
2145
|
checkedIcon: {
|
|
1799
2146
|
borderRadius: '50%',
|
|
1800
2147
|
backgroundColor: 'transparent',
|
|
1801
|
-
boxShadow: "inset 0 0 0 6px " + theme.color.primary["default"],
|
|
2148
|
+
boxShadow: "inset 0 0 0 6px " + theme$1.color.primary["default"],
|
|
1802
2149
|
'input:hover ~ &': {
|
|
1803
|
-
boxShadow: "inset 0 0 0 5px " + theme.color.primary["default"],
|
|
2150
|
+
boxShadow: "inset 0 0 0 5px " + theme$1.color.primary["default"],
|
|
1804
2151
|
backgroundColor: 'transparent'
|
|
1805
2152
|
}
|
|
1806
2153
|
}
|
|
@@ -1811,10 +2158,9 @@ forwardRef(function (_ref, ref) {
|
|
|
1811
2158
|
var disabled = _ref.disabled,
|
|
1812
2159
|
checked = _ref.checked,
|
|
1813
2160
|
value = _ref.value,
|
|
1814
|
-
classes = _ref.classes,
|
|
1815
2161
|
restProps = _objectWithoutPropertiesLoose(_ref, ["disabled", "checked", "value", "classes"]);
|
|
1816
2162
|
|
|
1817
|
-
var css = useStyles$
|
|
2163
|
+
var css = useStyles$a();
|
|
1818
2164
|
return React.createElement(Radio$1, Object.assign({
|
|
1819
2165
|
ref: ref,
|
|
1820
2166
|
value: value,
|
|
@@ -1839,7 +2185,6 @@ forwardRef(function (_ref, ref) {
|
|
|
1839
2185
|
color = _ref.color,
|
|
1840
2186
|
checked = _ref.checked,
|
|
1841
2187
|
value = _ref.value,
|
|
1842
|
-
classes = _ref.classes,
|
|
1843
2188
|
restProps = _objectWithoutPropertiesLoose(_ref, ["disabled", "color", "checked", "value", "classes"]);
|
|
1844
2189
|
|
|
1845
2190
|
return React.createElement(Checkbox, Object.assign({
|
|
@@ -1871,10 +2216,10 @@ function _templateObject2$3() {
|
|
|
1871
2216
|
return data;
|
|
1872
2217
|
}
|
|
1873
2218
|
|
|
1874
|
-
function _templateObject$
|
|
2219
|
+
function _templateObject$4() {
|
|
1875
2220
|
var data = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"]);
|
|
1876
2221
|
|
|
1877
|
-
_templateObject$
|
|
2222
|
+
_templateObject$4 = function _templateObject() {
|
|
1878
2223
|
return data;
|
|
1879
2224
|
};
|
|
1880
2225
|
|
|
@@ -1884,12 +2229,12 @@ var StepperContainer =
|
|
|
1884
2229
|
/*#__PURE__*/
|
|
1885
2230
|
css(
|
|
1886
2231
|
/*#__PURE__*/
|
|
1887
|
-
_templateObject$
|
|
2232
|
+
_templateObject$4());
|
|
1888
2233
|
var ConnectorContainer =
|
|
1889
2234
|
/*#__PURE__*/
|
|
1890
2235
|
css(
|
|
1891
2236
|
/*#__PURE__*/
|
|
1892
|
-
_templateObject2$3(), theme.color.text.B3);
|
|
2237
|
+
_templateObject2$3(), theme$1.color.text.B3);
|
|
1893
2238
|
|
|
1894
2239
|
var Stepper =
|
|
1895
2240
|
/*#__PURE__*/
|
|
@@ -1912,7 +2257,7 @@ forwardRef(function (_ref, ref) {
|
|
|
1912
2257
|
var Connector = React.createElement("div", {
|
|
1913
2258
|
key: idx + "_connector",
|
|
1914
2259
|
className: ConnectorContainer
|
|
1915
|
-
}, React.createElement(Icon, {
|
|
2260
|
+
}, React.createElement(Icon$1, {
|
|
1916
2261
|
icon: LongArrowRight
|
|
1917
2262
|
}));
|
|
1918
2263
|
return [].concat(acc, [newStep, Connector]);
|
|
@@ -1923,13 +2268,13 @@ forwardRef(function (_ref, ref) {
|
|
|
1923
2268
|
className: StepperContainer
|
|
1924
2269
|
}, restProps), stepsWithConnector);
|
|
1925
2270
|
});
|
|
1926
|
-
var index$
|
|
2271
|
+
var index$4 = /*#__PURE__*/
|
|
1927
2272
|
memo(Stepper);
|
|
1928
2273
|
|
|
1929
|
-
function _templateObject$
|
|
2274
|
+
function _templateObject$5() {
|
|
1930
2275
|
var data = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n color: ", ";\n background-color: transparent;\n min-width: 56px;\n padding: 16px 0;\n border: none;\n font-size: ", "px;\n font-weight: ", ";\n line-height: 22px;\n outline: none;\n\n &:hover {\n color: ", ";\n }\n"]);
|
|
1931
2276
|
|
|
1932
|
-
_templateObject$
|
|
2277
|
+
_templateObject$5 = function _templateObject() {
|
|
1933
2278
|
return data;
|
|
1934
2279
|
};
|
|
1935
2280
|
|
|
@@ -1939,14 +2284,14 @@ var SytledStep =
|
|
|
1939
2284
|
/*#__PURE__*/
|
|
1940
2285
|
styled$1('button')(
|
|
1941
2286
|
/*#__PURE__*/
|
|
1942
|
-
_templateObject$
|
|
2287
|
+
_templateObject$5(), function (props) {
|
|
1943
2288
|
return props.disabled ? 'not-allowed' : 'pointer';
|
|
1944
2289
|
}, function (props) {
|
|
1945
|
-
return props.active ? theme.color.text.B6 : theme.color.text.B3;
|
|
1946
|
-
}, theme.typography.fontSize.span, function (props) {
|
|
1947
|
-
return props.active ? theme.typography.fontWeight.medium : theme.typography.fontWeight.normal;
|
|
2290
|
+
return props.active ? theme$1.color.text.B6 : theme$1.color.text.B3;
|
|
2291
|
+
}, theme$1.typography.fontSize.span, function (props) {
|
|
2292
|
+
return props.active ? theme$1.typography.fontWeight.medium : theme$1.typography.fontWeight.normal;
|
|
1948
2293
|
}, function (props) {
|
|
1949
|
-
return props.active ? theme.color.text.B6 : theme.color.text.B4;
|
|
2294
|
+
return props.active ? theme$1.color.text.B6 : theme$1.color.text.B4;
|
|
1950
2295
|
});
|
|
1951
2296
|
|
|
1952
2297
|
var Step =
|
|
@@ -1973,13 +2318,13 @@ forwardRef(function (_ref, ref) {
|
|
|
1973
2318
|
active: active
|
|
1974
2319
|
}, restProps), children);
|
|
1975
2320
|
});
|
|
1976
|
-
var index$
|
|
2321
|
+
var index$5 = /*#__PURE__*/
|
|
1977
2322
|
memo(Step);
|
|
1978
2323
|
|
|
1979
|
-
function _templateObject$
|
|
2324
|
+
function _templateObject$6() {
|
|
1980
2325
|
var data = _taggedTemplateLiteralLoose(["\n\ttable, th, td {\n\t\tborder: 1px solid #eeeeee;\n\t}\n\n table {\n width: 100%;\n\t\tborder-collapse: collapse;\n\t\ttable-layout:fixed;\n\t}\n\n thead {\n\t\ttr th {\n\t\t\theight: 56px;\n\t\t\tfont-size: 14px;\n\t\t\tfont-weight: 500;\n\t\t\ttext-align: center;\n\t\t\tcolor: #3dba90;\n\n\t\t\t&:#title {\n\t\t\t\twidth: 20%;\n\t\t\t}\n\n\t\t\t&#origin {\n\t\t\t\twidth: 40%;\n\t\t\t}\n\n\t\t\t&#translate {\n\t\t\t\twidth: 40%;\n\t\t\t}\n\t\t}\n\t}\n\n\ttbody {\n\t\ttr td {\n\t\t\tword-break:break-word;\n\t\t\tvertical-align:top;\n\t\t}\n\t}\n"]);
|
|
1981
2326
|
|
|
1982
|
-
_templateObject$
|
|
2327
|
+
_templateObject$6 = function _templateObject() {
|
|
1983
2328
|
return data;
|
|
1984
2329
|
};
|
|
1985
2330
|
|
|
@@ -1989,7 +2334,7 @@ var StyledEditableTable =
|
|
|
1989
2334
|
/*#__PURE__*/
|
|
1990
2335
|
css(
|
|
1991
2336
|
/*#__PURE__*/
|
|
1992
|
-
_templateObject$
|
|
2337
|
+
_templateObject$6());
|
|
1993
2338
|
|
|
1994
2339
|
var EditableTable = function EditableTable(_ref) {
|
|
1995
2340
|
var rows = _ref.rows,
|
|
@@ -2554,19 +2899,18 @@ var ExclamationCircle = {
|
|
|
2554
2899
|
|
|
2555
2900
|
|
|
2556
2901
|
|
|
2557
|
-
var icons =
|
|
2902
|
+
var icons = {
|
|
2558
2903
|
__proto__: null,
|
|
2559
2904
|
error: TimesCircle,
|
|
2560
2905
|
info: InfoCircle,
|
|
2561
2906
|
success: CheckCircle,
|
|
2562
2907
|
warning: ExclamationCircle
|
|
2563
|
-
}
|
|
2908
|
+
};
|
|
2564
2909
|
|
|
2565
|
-
var useStyles$
|
|
2910
|
+
var useStyles$b =
|
|
2566
2911
|
/*#__PURE__*/
|
|
2567
2912
|
makeStyles([['message', function (theme, _ref) {
|
|
2568
|
-
var
|
|
2569
|
-
visible = _ref[1];
|
|
2913
|
+
var visible = _ref[1];
|
|
2570
2914
|
return ["\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tposition: fixed;\n\t\t\ttop: 0;\n\t\t\tleft: 50%;\n\t\t\ttransform: translate(-50%, -200%);\n\t\t\toverflow: hidden;\n\t\t\tmargin-top: 20px;\n\t\t\tborder-radius: 4px;\n\t\t\tpadding: 10px 16px;\n\t\t\tbox-shadow: 0 0 8px 0 rgba(69, 69, 69, 0.5);\n\t\t\tbackground-color: " + theme.color.text.white + ";\n\t\t\ttransition: transform 200ms ease-out;\n\t\t\tz-index: 2000;\n\t\t", visible && "\n\t\t\ttransform: translate(-50%, 0);\n\t\t"];
|
|
2571
2915
|
}], ['icon', function (theme, _ref2) {
|
|
2572
2916
|
var type = _ref2[0];
|
|
@@ -2611,7 +2955,7 @@ forwardRef(function (_ref, ref) {
|
|
|
2611
2955
|
}
|
|
2612
2956
|
};
|
|
2613
2957
|
|
|
2614
|
-
var styles = useStyles$
|
|
2958
|
+
var styles = useStyles$b([type, visible]);
|
|
2615
2959
|
useEffect(function () {
|
|
2616
2960
|
window.setTimeout(function () {
|
|
2617
2961
|
return setVisible(true);
|
|
@@ -2635,7 +2979,7 @@ forwardRef(function (_ref, ref) {
|
|
|
2635
2979
|
return React.createElement("div", {
|
|
2636
2980
|
className: styles.message,
|
|
2637
2981
|
onTransitionEnd: onTransitionEnd
|
|
2638
|
-
}, React.createElement(Icon, {
|
|
2982
|
+
}, React.createElement(Icon$1, {
|
|
2639
2983
|
className: styles.icon,
|
|
2640
2984
|
icon: icons[type]
|
|
2641
2985
|
}), React.createElement("div", {
|
|
@@ -2782,10 +3126,10 @@ function _templateObject2$4() {
|
|
|
2782
3126
|
return data;
|
|
2783
3127
|
}
|
|
2784
3128
|
|
|
2785
|
-
function _templateObject$
|
|
3129
|
+
function _templateObject$7() {
|
|
2786
3130
|
var data = _taggedTemplateLiteralLoose(["\n display: flex;\n"]);
|
|
2787
3131
|
|
|
2788
|
-
_templateObject$
|
|
3132
|
+
_templateObject$7 = function _templateObject() {
|
|
2789
3133
|
return data;
|
|
2790
3134
|
};
|
|
2791
3135
|
|
|
@@ -2798,7 +3142,7 @@ var semanticColors = {
|
|
|
2798
3142
|
warning: '#fef1e1',
|
|
2799
3143
|
error: '#fbd0e0'
|
|
2800
3144
|
};
|
|
2801
|
-
var useStyles$
|
|
3145
|
+
var useStyles$c =
|
|
2802
3146
|
/*#__PURE__*/
|
|
2803
3147
|
makeStyles$1({
|
|
2804
3148
|
root: {
|
|
@@ -2816,7 +3160,7 @@ var MessageWrapper =
|
|
|
2816
3160
|
/*#__PURE__*/
|
|
2817
3161
|
css(
|
|
2818
3162
|
/*#__PURE__*/
|
|
2819
|
-
_templateObject$
|
|
3163
|
+
_templateObject$7());
|
|
2820
3164
|
var MessageContent =
|
|
2821
3165
|
/*#__PURE__*/
|
|
2822
3166
|
css(
|
|
@@ -2865,28 +3209,28 @@ var transitionMap = (_transitionMap = {}, _transitionMap[Direction.LEFT] = Trans
|
|
|
2865
3209
|
var semanticIcon = (_semanticIcon = {}, _semanticIcon[Semantic.WARNING] = {
|
|
2866
3210
|
icon:
|
|
2867
3211
|
/*#__PURE__*/
|
|
2868
|
-
React.createElement(Icon, {
|
|
3212
|
+
React.createElement(Icon$1, {
|
|
2869
3213
|
icon: ExclamationTriangle
|
|
2870
3214
|
}),
|
|
2871
3215
|
color: '#F3973E'
|
|
2872
3216
|
}, _semanticIcon[Semantic.INFO] = {
|
|
2873
3217
|
icon:
|
|
2874
3218
|
/*#__PURE__*/
|
|
2875
|
-
React.createElement(Icon, {
|
|
3219
|
+
React.createElement(Icon$1, {
|
|
2876
3220
|
icon: InfoCircle
|
|
2877
3221
|
}),
|
|
2878
3222
|
color: '#4DBAE9'
|
|
2879
3223
|
}, _semanticIcon[Semantic.SUCCESS] = {
|
|
2880
3224
|
icon:
|
|
2881
3225
|
/*#__PURE__*/
|
|
2882
|
-
React.createElement(Icon, {
|
|
3226
|
+
React.createElement(Icon$1, {
|
|
2883
3227
|
icon: CheckCircle
|
|
2884
3228
|
}),
|
|
2885
3229
|
color: '#A0D45E'
|
|
2886
3230
|
}, _semanticIcon[Semantic.ERROR] = {
|
|
2887
3231
|
icon:
|
|
2888
3232
|
/*#__PURE__*/
|
|
2889
|
-
React.createElement(Icon, {
|
|
3233
|
+
React.createElement(Icon$1, {
|
|
2890
3234
|
icon: TimesCircle
|
|
2891
3235
|
}),
|
|
2892
3236
|
color: '#EC3C63'
|
|
@@ -2900,7 +3244,7 @@ forwardRef(function (_ref, ref) {
|
|
|
2900
3244
|
semantic = _ref.semantic,
|
|
2901
3245
|
showSemanticIcon = _ref.showSemanticIcon,
|
|
2902
3246
|
MessageIcon = _ref.MessageIcon;
|
|
2903
|
-
var classes = useStyles$
|
|
3247
|
+
var classes = useStyles$c({
|
|
2904
3248
|
semantic: semantic,
|
|
2905
3249
|
withTitle: !!title
|
|
2906
3250
|
});
|
|
@@ -2916,12 +3260,12 @@ forwardRef(function (_ref, ref) {
|
|
|
2916
3260
|
color: iconColor
|
|
2917
3261
|
}, MessageIcon), React.createElement("div", {
|
|
2918
3262
|
className: MessageContent
|
|
2919
|
-
}, title && React.createElement(Typography, {
|
|
3263
|
+
}, title && React.createElement(Typography$1, {
|
|
2920
3264
|
variant: "h6",
|
|
2921
3265
|
weight: "medium",
|
|
2922
3266
|
color: "text.B6",
|
|
2923
3267
|
className: TitleStyle
|
|
2924
|
-
}, title), React.createElement(Typography, {
|
|
3268
|
+
}, title), React.createElement(Typography$1, {
|
|
2925
3269
|
variant: "p",
|
|
2926
3270
|
color: "text.B6"
|
|
2927
3271
|
}, message))),
|
|
@@ -2965,7 +3309,7 @@ forwardRef(function (props, ref) {
|
|
|
2965
3309
|
}, props), props.children);
|
|
2966
3310
|
});
|
|
2967
3311
|
|
|
2968
|
-
var Link = {
|
|
3312
|
+
var Link$1 = {
|
|
2969
3313
|
name: 'list-ul-o',
|
|
2970
3314
|
definition: {
|
|
2971
3315
|
viewBox: '0 0 512 512',
|
|
@@ -2993,10 +3337,10 @@ function _templateObject2$5() {
|
|
|
2993
3337
|
return data;
|
|
2994
3338
|
}
|
|
2995
3339
|
|
|
2996
|
-
function _templateObject$
|
|
3340
|
+
function _templateObject$8() {
|
|
2997
3341
|
var data = _taggedTemplateLiteralLoose(["\n background-color: white;\n transition: transform ", ";\n transform: translateX(", ");\n position: fixed;\n ", ";\n bottom: 0;\n top: 0;\n min-width: ", "px;\n height: 100%;\n z-index: ", ";\n"]);
|
|
2998
3342
|
|
|
2999
|
-
_templateObject$
|
|
3343
|
+
_templateObject$8 = function _templateObject() {
|
|
3000
3344
|
return data;
|
|
3001
3345
|
};
|
|
3002
3346
|
|
|
@@ -3058,7 +3402,7 @@ var StyledSideMenu =
|
|
|
3058
3402
|
/*#__PURE__*/
|
|
3059
3403
|
styled$1.section(
|
|
3060
3404
|
/*#__PURE__*/
|
|
3061
|
-
_templateObject$
|
|
3405
|
+
_templateObject$8(), duration, translateOffset, position, width, theme$1.zIndex.appBar);
|
|
3062
3406
|
var StyledIconWrapper =
|
|
3063
3407
|
/*#__PURE__*/
|
|
3064
3408
|
styled$1.div(
|
|
@@ -3068,7 +3412,7 @@ var IconStyle =
|
|
|
3068
3412
|
/*#__PURE__*/
|
|
3069
3413
|
css(
|
|
3070
3414
|
/*#__PURE__*/
|
|
3071
|
-
_templateObject3$2(), theme.color.primary["default"]);
|
|
3415
|
+
_templateObject3$2(), theme$1.color.primary["default"]);
|
|
3072
3416
|
|
|
3073
3417
|
var SlidingSideMenu = function SlidingSideMenu(_ref) {
|
|
3074
3418
|
var children = _ref.children,
|
|
@@ -3116,8 +3460,8 @@ var SlidingSideMenu = function SlidingSideMenu(_ref) {
|
|
|
3116
3460
|
onClick: handleIconClick
|
|
3117
3461
|
}, icon) : React.createElement(StyledIconWrapper, {
|
|
3118
3462
|
onClick: handleIconClick
|
|
3119
|
-
}, React.createElement(Icon, Object.assign({
|
|
3120
|
-
icon: Link,
|
|
3463
|
+
}, React.createElement(Icon$1, Object.assign({
|
|
3464
|
+
icon: Link$1,
|
|
3121
3465
|
className: cx(IconStyle, IconClassName)
|
|
3122
3466
|
}, restIconProps))), React.createElement(StyledSideMenu, Object.assign({
|
|
3123
3467
|
open: open,
|
|
@@ -3131,10 +3475,10 @@ var SlidingSideMenu = function SlidingSideMenu(_ref) {
|
|
|
3131
3475
|
}, restBackdropProps)));
|
|
3132
3476
|
};
|
|
3133
3477
|
|
|
3134
|
-
var index$
|
|
3478
|
+
var index$6 = /*#__PURE__*/
|
|
3135
3479
|
memo(SlidingSideMenu);
|
|
3136
3480
|
|
|
3137
|
-
var useStyles$
|
|
3481
|
+
var useStyles$d =
|
|
3138
3482
|
/*#__PURE__*/
|
|
3139
3483
|
makeStyles$1({
|
|
3140
3484
|
root: {
|
|
@@ -3179,7 +3523,7 @@ makeStyles$1({
|
|
|
3179
3523
|
});
|
|
3180
3524
|
|
|
3181
3525
|
var Divider = function Divider(props) {
|
|
3182
|
-
var _useStyles = useStyles$
|
|
3526
|
+
var _useStyles = useStyles$d(props),
|
|
3183
3527
|
root = _useStyles.root;
|
|
3184
3528
|
|
|
3185
3529
|
return React.createElement(MuiDivider, Object.assign({}, props, {
|
|
@@ -3189,10 +3533,10 @@ var Divider = function Divider(props) {
|
|
|
3189
3533
|
|
|
3190
3534
|
var boxShadowForMenu = "0 1px 6px 0 rgba(69, 69, 69, 0.2),\n0 1px 5px 0 rgba(69, 69, 69, 0.1)";
|
|
3191
3535
|
|
|
3192
|
-
function _templateObject$
|
|
3536
|
+
function _templateObject$9() {
|
|
3193
3537
|
var data = _taggedTemplateLiteralLoose(["\n @import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC:400,500,700|Roboto:400,500,700&display=swap&subset=chinese-traditional');\n "]);
|
|
3194
3538
|
|
|
3195
|
-
_templateObject$
|
|
3539
|
+
_templateObject$9 = function _templateObject() {
|
|
3196
3540
|
return data;
|
|
3197
3541
|
};
|
|
3198
3542
|
|
|
@@ -3212,39 +3556,45 @@ var muiThemeForSurveyCake =
|
|
|
3212
3556
|
/*#__PURE__*/
|
|
3213
3557
|
function () {
|
|
3214
3558
|
// Side Effects
|
|
3215
|
-
injectGlobal(_templateObject$
|
|
3559
|
+
injectGlobal(_templateObject$9());
|
|
3216
3560
|
var BASE_FONT_SIZE = 16;
|
|
3217
|
-
return
|
|
3561
|
+
return createTheme({
|
|
3218
3562
|
typography: {
|
|
3219
3563
|
fontFamily: ['Helvetica Neue', 'Helvetica', 'Roboto', 'Arial', 'Noto Sans TC', 'Apple LiGothic', '微軟正黑體', 'Microsoft JhengHei', 'sans-serif', 'PingFangTC-Regular'].join(','),
|
|
3220
3564
|
htmlFontSize: BASE_FONT_SIZE,
|
|
3221
3565
|
h1: {
|
|
3222
|
-
fontSize: theme.typography.fontSize.h1 / BASE_FONT_SIZE + "rem",
|
|
3566
|
+
fontSize: theme$1.typography.fontSize.h1 / BASE_FONT_SIZE + "rem",
|
|
3567
|
+
fontWeight: 500,
|
|
3223
3568
|
lineHeight: 44 / BASE_FONT_SIZE + "rem"
|
|
3224
3569
|
},
|
|
3225
3570
|
h2: {
|
|
3226
|
-
fontSize: theme.typography.fontSize.h2 / BASE_FONT_SIZE + "rem",
|
|
3571
|
+
fontSize: theme$1.typography.fontSize.h2 / BASE_FONT_SIZE + "rem",
|
|
3572
|
+
fontWeight: 500,
|
|
3227
3573
|
lineHeight: 40 / BASE_FONT_SIZE + "rem"
|
|
3228
3574
|
},
|
|
3229
3575
|
h3: {
|
|
3230
|
-
fontSize: theme.typography.fontSize.h3 / BASE_FONT_SIZE + "rem",
|
|
3576
|
+
fontSize: theme$1.typography.fontSize.h3 / BASE_FONT_SIZE + "rem",
|
|
3577
|
+
fontWeight: 500,
|
|
3231
3578
|
lineHeight: 36 / BASE_FONT_SIZE + "rem"
|
|
3232
3579
|
},
|
|
3233
3580
|
h4: {
|
|
3234
|
-
fontSize: theme.typography.fontSize.h4 / BASE_FONT_SIZE + "rem",
|
|
3581
|
+
fontSize: theme$1.typography.fontSize.h4 / BASE_FONT_SIZE + "rem",
|
|
3582
|
+
fontWeight: 500,
|
|
3235
3583
|
lineHeight: 32 / BASE_FONT_SIZE + "rem"
|
|
3236
3584
|
},
|
|
3237
3585
|
h5: {
|
|
3238
|
-
fontSize: theme.typography.fontSize.h5 / BASE_FONT_SIZE + "rem",
|
|
3586
|
+
fontSize: theme$1.typography.fontSize.h5 / BASE_FONT_SIZE + "rem",
|
|
3587
|
+
fontWeight: 500,
|
|
3239
3588
|
lineHeight: 28 / BASE_FONT_SIZE + "rem"
|
|
3240
3589
|
},
|
|
3241
3590
|
h6: {
|
|
3242
|
-
fontSize: theme.typography.fontSize.h6 / BASE_FONT_SIZE + "rem",
|
|
3591
|
+
fontSize: theme$1.typography.fontSize.h6 / BASE_FONT_SIZE + "rem",
|
|
3592
|
+
fontWeight: 500,
|
|
3243
3593
|
lineHeight: 24 / BASE_FONT_SIZE + "rem"
|
|
3244
3594
|
},
|
|
3245
3595
|
body1: {
|
|
3246
3596
|
fontFamily: 'PingFangTC-Regular',
|
|
3247
|
-
fontSize: theme.typography.fontSize.p / BASE_FONT_SIZE + "rem",
|
|
3597
|
+
fontSize: theme$1.typography.fontSize.p / BASE_FONT_SIZE + "rem",
|
|
3248
3598
|
lineHeight: 22 / BASE_FONT_SIZE + "rem"
|
|
3249
3599
|
},
|
|
3250
3600
|
body2: {
|
|
@@ -3266,30 +3616,29 @@ function () {
|
|
|
3266
3616
|
},
|
|
3267
3617
|
palette: {
|
|
3268
3618
|
primary: {
|
|
3269
|
-
light: theme.color.primary.hover,
|
|
3270
|
-
main: theme.color.primary["default"],
|
|
3271
|
-
dark: theme.color.primary.active,
|
|
3619
|
+
light: theme$1.color.primary.hover,
|
|
3620
|
+
main: theme$1.color.primary["default"],
|
|
3621
|
+
dark: theme$1.color.primary.active,
|
|
3272
3622
|
contrastText: '#ffffff'
|
|
3273
3623
|
},
|
|
3274
3624
|
secondary: {
|
|
3275
|
-
light: theme.color.secondary.hover,
|
|
3276
|
-
main: theme.color.secondary["default"],
|
|
3277
|
-
dark: theme.color.secondary.active,
|
|
3625
|
+
light: theme$1.color.secondary.hover,
|
|
3626
|
+
main: theme$1.color.secondary["default"],
|
|
3627
|
+
dark: theme$1.color.secondary.active,
|
|
3278
3628
|
contrastText: '#ffffff'
|
|
3279
3629
|
},
|
|
3280
3630
|
action: {
|
|
3281
3631
|
hoverOpacity: 0.25
|
|
3282
3632
|
},
|
|
3283
3633
|
error: {
|
|
3284
|
-
main: theme.color.semantic.error
|
|
3634
|
+
main: theme$1.color.semantic.error
|
|
3285
3635
|
}
|
|
3286
3636
|
},
|
|
3287
3637
|
props: {
|
|
3288
3638
|
// Name of the component ⚛️
|
|
3289
3639
|
MuiButtonBase: {
|
|
3290
3640
|
// The default props to change
|
|
3291
|
-
disableRipple: true
|
|
3292
|
-
|
|
3641
|
+
disableRipple: true
|
|
3293
3642
|
},
|
|
3294
3643
|
MuiSelect: {
|
|
3295
3644
|
MenuProps: {
|
|
@@ -3316,25 +3665,29 @@ function () {
|
|
|
3316
3665
|
MuiButton: {
|
|
3317
3666
|
root: {
|
|
3318
3667
|
minWidth: 'none',
|
|
3319
|
-
|
|
3668
|
+
padding: '7px 20px',
|
|
3669
|
+
color: theme$1.color.text.B3,
|
|
3670
|
+
fontWeight: 400,
|
|
3671
|
+
fontSize: 14 / BASE_FONT_SIZE + "rem",
|
|
3672
|
+
lineHeight: 22 / BASE_FONT_SIZE + "rem",
|
|
3320
3673
|
'&:hover': {
|
|
3321
|
-
backgroundColor: theme.color.text.HB
|
|
3674
|
+
backgroundColor: theme$1.color.text.HB
|
|
3322
3675
|
},
|
|
3323
3676
|
'&:disabled': {
|
|
3324
|
-
color: theme.color.text.B2,
|
|
3325
|
-
backgroundColor: theme.color.text.F
|
|
3677
|
+
color: theme$1.color.text.B2,
|
|
3678
|
+
backgroundColor: theme$1.color.text.F
|
|
3326
3679
|
}
|
|
3327
3680
|
},
|
|
3328
3681
|
// Name of the rule
|
|
3329
3682
|
contained: {
|
|
3330
3683
|
// Some CSS
|
|
3331
|
-
backgroundColor: theme.color.text.HB,
|
|
3332
|
-
color: theme.color.text.B4,
|
|
3684
|
+
backgroundColor: theme$1.color.text.HB,
|
|
3685
|
+
color: theme$1.color.text.B4,
|
|
3333
3686
|
boxShadow: 'none',
|
|
3334
3687
|
'&:hover': {
|
|
3335
3688
|
boxShadow: 'none',
|
|
3336
|
-
backgroundColor: theme.color.text.HB,
|
|
3337
|
-
color: theme.color.text.B5
|
|
3689
|
+
backgroundColor: theme$1.color.text.HB,
|
|
3690
|
+
color: theme$1.color.text.B5
|
|
3338
3691
|
},
|
|
3339
3692
|
'&:active': {
|
|
3340
3693
|
boxShadow: 'none'
|
|
@@ -3343,26 +3696,49 @@ function () {
|
|
|
3343
3696
|
boxShadow: 'none'
|
|
3344
3697
|
}
|
|
3345
3698
|
},
|
|
3346
|
-
outlinedPrimary: {
|
|
3347
|
-
borderColor: theme.color.primary["default"]
|
|
3348
|
-
},
|
|
3349
3699
|
containedPrimary: {
|
|
3350
3700
|
'&:disabled': {
|
|
3351
|
-
color: theme.color.text.white
|
|
3701
|
+
color: theme$1.color.text.white
|
|
3352
3702
|
},
|
|
3353
3703
|
'&:hover': {
|
|
3354
3704
|
boxShadow: 'none',
|
|
3355
|
-
color: theme.color.text.white
|
|
3705
|
+
color: theme$1.color.text.white
|
|
3356
3706
|
}
|
|
3357
3707
|
},
|
|
3358
3708
|
containedSecondary: {
|
|
3359
3709
|
'&:disabled': {
|
|
3360
|
-
color: theme.color.text.white
|
|
3710
|
+
color: theme$1.color.text.white
|
|
3361
3711
|
},
|
|
3362
3712
|
'&:hover': {
|
|
3363
3713
|
boxShadow: 'none',
|
|
3364
|
-
color: theme.color.text.white
|
|
3714
|
+
color: theme$1.color.text.white
|
|
3365
3715
|
}
|
|
3716
|
+
},
|
|
3717
|
+
containedSizeSmall: {
|
|
3718
|
+
padding: '5px 16px',
|
|
3719
|
+
fontSize: 14 / BASE_FONT_SIZE + "rem",
|
|
3720
|
+
lineHeight: 22 / BASE_FONT_SIZE + "rem"
|
|
3721
|
+
},
|
|
3722
|
+
containedSizeLarge: {
|
|
3723
|
+
padding: '8px 24px',
|
|
3724
|
+
fontSize: 16 / BASE_FONT_SIZE + "rem",
|
|
3725
|
+
lineHeight: 24 / BASE_FONT_SIZE + "rem"
|
|
3726
|
+
},
|
|
3727
|
+
outlined: {
|
|
3728
|
+
padding: '7px 20px'
|
|
3729
|
+
},
|
|
3730
|
+
outlinedPrimary: {
|
|
3731
|
+
borderColor: theme$1.color.primary["default"]
|
|
3732
|
+
},
|
|
3733
|
+
outlinedSizeSmall: {
|
|
3734
|
+
padding: '5px 16px',
|
|
3735
|
+
fontSize: 14 / BASE_FONT_SIZE + "rem",
|
|
3736
|
+
lineHeight: 22 / BASE_FONT_SIZE + "rem"
|
|
3737
|
+
},
|
|
3738
|
+
outlinedSizeLarge: {
|
|
3739
|
+
padding: '8px 24px',
|
|
3740
|
+
fontSize: 16 / BASE_FONT_SIZE + "rem",
|
|
3741
|
+
lineHeight: 24 / BASE_FONT_SIZE + "rem"
|
|
3366
3742
|
}
|
|
3367
3743
|
},
|
|
3368
3744
|
MuiChip: {
|
|
@@ -3410,17 +3786,17 @@ function () {
|
|
|
3410
3786
|
root: {
|
|
3411
3787
|
borderRadius: '0',
|
|
3412
3788
|
'&$selected': {
|
|
3413
|
-
backgroundColor: theme.color.primary.lightBackground,
|
|
3414
|
-
color: theme.color.primary["default"],
|
|
3789
|
+
backgroundColor: theme$1.color.primary.lightBackground,
|
|
3790
|
+
color: theme$1.color.primary["default"],
|
|
3415
3791
|
'&:hover': {
|
|
3416
|
-
backgroundColor: theme.color.primary.lightBackground
|
|
3792
|
+
backgroundColor: theme$1.color.primary.lightBackground
|
|
3417
3793
|
}
|
|
3418
3794
|
}
|
|
3419
3795
|
},
|
|
3420
3796
|
button: {
|
|
3421
3797
|
'&:hover': {
|
|
3422
3798
|
backgroundColor: 'white',
|
|
3423
|
-
color: theme.color.primary["default"]
|
|
3799
|
+
color: theme$1.color.primary["default"]
|
|
3424
3800
|
}
|
|
3425
3801
|
}
|
|
3426
3802
|
},
|
|
@@ -3457,11 +3833,11 @@ function () {
|
|
|
3457
3833
|
MuiOutlinedInput: {
|
|
3458
3834
|
root: {
|
|
3459
3835
|
'&:hover $notchedOutline': {
|
|
3460
|
-
borderColor: theme.color.primary["default"]
|
|
3836
|
+
borderColor: theme$1.color.primary["default"]
|
|
3461
3837
|
},
|
|
3462
3838
|
'&$focused $notchedOutline': {
|
|
3463
3839
|
borderWidth: '1px',
|
|
3464
|
-
boxShadow: "0 0 2px 0 " + theme.color.primary["default"]
|
|
3840
|
+
boxShadow: "0 0 2px 0 " + theme$1.color.primary["default"]
|
|
3465
3841
|
}
|
|
3466
3842
|
},
|
|
3467
3843
|
input: {
|
|
@@ -3490,17 +3866,17 @@ function () {
|
|
|
3490
3866
|
},
|
|
3491
3867
|
MuiTooltip: {
|
|
3492
3868
|
tooltip: {
|
|
3493
|
-
backgroundColor: theme.color.text.B6,
|
|
3494
|
-
fontSize: theme.typography.fontSize.span
|
|
3869
|
+
backgroundColor: theme$1.color.text.B6,
|
|
3870
|
+
fontSize: theme$1.typography.fontSize.span
|
|
3495
3871
|
},
|
|
3496
3872
|
arrow: {
|
|
3497
|
-
color: theme.color.text.B6
|
|
3873
|
+
color: theme$1.color.text.B6
|
|
3498
3874
|
}
|
|
3499
3875
|
},
|
|
3500
3876
|
MuiCardHeader: {
|
|
3501
3877
|
root: {
|
|
3502
3878
|
padding: '13px 24px',
|
|
3503
|
-
backgroundColor: theme.color.primary["default"]
|
|
3879
|
+
backgroundColor: theme$1.color.primary["default"]
|
|
3504
3880
|
}
|
|
3505
3881
|
},
|
|
3506
3882
|
MuiCardContent: {
|
|
@@ -3512,7 +3888,7 @@ function () {
|
|
|
3512
3888
|
root: {
|
|
3513
3889
|
padding: '13px 24px',
|
|
3514
3890
|
backgroundColor: '#fafafa',
|
|
3515
|
-
borderTop: "1px solid " + theme.color.text.HB
|
|
3891
|
+
borderTop: "1px solid " + theme$1.color.text.HB
|
|
3516
3892
|
}
|
|
3517
3893
|
},
|
|
3518
3894
|
MuiSnackbarContent: {
|
|
@@ -3523,7 +3899,7 @@ function () {
|
|
|
3523
3899
|
},
|
|
3524
3900
|
MuiTabs: {
|
|
3525
3901
|
indicator: {
|
|
3526
|
-
backgroundColor: theme.color.primary["default"]
|
|
3902
|
+
backgroundColor: theme$1.color.primary["default"]
|
|
3527
3903
|
}
|
|
3528
3904
|
}
|
|
3529
3905
|
}
|
|
@@ -3531,7 +3907,7 @@ function () {
|
|
|
3531
3907
|
}();
|
|
3532
3908
|
var MuiThemeProvider = function MuiThemeProvider(_ref) {
|
|
3533
3909
|
var children = _ref.children;
|
|
3534
|
-
return React.createElement(ThemeProvider, {
|
|
3910
|
+
return React.createElement(ThemeProvider$2, {
|
|
3535
3911
|
theme: muiThemeForSurveyCake
|
|
3536
3912
|
}, children);
|
|
3537
3913
|
};
|
|
@@ -4017,7 +4393,7 @@ var AngleRight$1 = {
|
|
|
4017
4393
|
}
|
|
4018
4394
|
};
|
|
4019
4395
|
|
|
4020
|
-
var Link$
|
|
4396
|
+
var Link$2 = {
|
|
4021
4397
|
name: 'link-o',
|
|
4022
4398
|
definition: {
|
|
4023
4399
|
viewBox: '0 0 512 512',
|
|
@@ -4121,7 +4497,7 @@ var QuestionCircleOutline = {
|
|
|
4121
4497
|
}
|
|
4122
4498
|
};
|
|
4123
4499
|
|
|
4124
|
-
var Facebook = {
|
|
4500
|
+
var Facebook$1 = {
|
|
4125
4501
|
name: 'facebook',
|
|
4126
4502
|
definition: {
|
|
4127
4503
|
viewBox: '0 0 512 512',
|
|
@@ -4260,11 +4636,11 @@ var dashboard = {
|
|
|
4260
4636
|
|
|
4261
4637
|
|
|
4262
4638
|
|
|
4263
|
-
var enWording =
|
|
4639
|
+
var enWording = {
|
|
4264
4640
|
__proto__: null,
|
|
4265
4641
|
pricing: pricing,
|
|
4266
4642
|
dashboard: dashboard
|
|
4267
|
-
}
|
|
4643
|
+
};
|
|
4268
4644
|
|
|
4269
4645
|
var pricing$1 = {
|
|
4270
4646
|
title: '選擇方案',
|
|
@@ -4357,11 +4733,11 @@ var dashboard$1 = {
|
|
|
4357
4733
|
|
|
4358
4734
|
|
|
4359
4735
|
|
|
4360
|
-
var twWording =
|
|
4736
|
+
var twWording = {
|
|
4361
4737
|
__proto__: null,
|
|
4362
4738
|
pricing: pricing$1,
|
|
4363
4739
|
dashboard: dashboard$1
|
|
4364
|
-
}
|
|
4740
|
+
};
|
|
4365
4741
|
|
|
4366
4742
|
// TODO: Move to wording repo
|
|
4367
4743
|
var WordingContext =
|
|
@@ -4381,5 +4757,5 @@ WordingProvider.useWording = function () {
|
|
|
4381
4757
|
return useContext(WordingContext);
|
|
4382
4758
|
};
|
|
4383
4759
|
|
|
4384
|
-
export { AnimateHeight, ArrowRight, Avatar, Backdrop, BrowserLight, Button, Card, CardActionArea, CardActions, CardContent, CardHeader, MuiCheckbox as Checkbox, index as Chip, DatePicker, Divider, EditLight, EditableTable, GroupSelect, Icon, InputSlider, KeyboardDatePicker, ListUl as ListUlFilled, Lock as LockFilled, MenuItem, MenuList, api as Message, Modal, MuiThemeProvider, index$
|
|
4760
|
+
export { AnimateHeight, ArrowRight, Avatar, Backdrop, BrowserLight, Button$1 as Button, Card, CardActionArea, CardActions, CardContent, CardHeader, MuiCheckbox as Checkbox, index$2 as Chip, DatePicker, Divider, EditLight, EditableTable, GroupSelect, Icon$1 as Icon, InputSlider, KeyboardDatePicker, ListUl as ListUlFilled, Lock as LockFilled, MenuItem, MenuList, api as Message, Modal, MuiThemeProvider, index$3 as Pagination, Paper, Popper, Portal, QuestionCircleOutline, MuiRadio as Radio, Radio as RadioGroup, Select, index$6 as SlidingSideMenu, Snackbar, index$5 as Step, index$4 as Stepper, Switch, Tab, Tabs, Tag, ToggleButtonGroup, Tooltip, Typography$1 as Typography, index$1 as V2, WordingProvider, AnalyticsLight as analyticsLight, AngleLeft as angleLeftFilled, AngleLeft$1 as angleLeftOutlined, AngleRight as angleRightFilled, AngleRight$1 as angleRightOutlined, ArrowAltLeft as arrowAltLeftFilled, BarChart as barChartFilled, BracketsCurly as bracketsCurly, CalendarAlt as calendarAltOutlined, CaretDown$1 as caretDownFilled, CaretLeft as caretLeftFilled, CaretRight as caretRightFilled, CaretUp as caretUpFilled, CheckCircle as checkCircleFilled, CheckCircle$1 as checkCircleOutlined, Check as checkFilled, Check$1 as checkOutlined, CheckSquare as checkSquareFilled, ChevronDown as chevronDownOutlined, ChevronLeft as chevronLeftFilled, ChevronRight as chevronRightFilled, Clock as clockOutlined, Code as codeOutlined, CogLight as cogLight, CommentAltLines as commentAltLinesOutlined, theme$1 as defaultTheme, EllipsisH as ellipsisHFilled, EllipsisV as ellipsisVFilled, ExclamationCircle as exclamationCircleFilled, ExclamationCircle$1 as exclamationCircleOutlined, ExclamationTriangle as exclamationTriangleFilled, ExternalLinkLight as externalLinkLight, Facebook$1 as facebookBrand, FacebookIn as facebookIn, FileAlt as fileAltOutlined, FileCertificate as fileCertificateOutlined, Filter as filterOutlined, GlobalAsia as globalAsiaOutlined, HandPointer as handPointerFilled, HandPointer$1 as handPointerOutlined, Heart as heartFilled, Heart$1 as heartOutlined, hexToRgba, InfoCircle as infoCircleFilled, InfoCircle$1 as infoCircleOutlined, LinkLight as linkLight, Link$2 as linkOutlined, Linkedin as linkedinBrand, LinkedinIn as linkedinIn, Link$1 as listUlOutlined, LongArrowRight as longArrowRightOutlined, makeStyles, MinusLight as minusLightFilled, muiThemeForSurveyCake, PageBreak as pageBreak, PenLight as penLight, PlusCircle as plusCircleOutlined, Plus as plusFilled, PlusLight as plusLightFilled, QRCode as qrcodeOutlined, QuestionCircle as questionCircleFilled, Redo as redoOutlined, Search as searchFilled, SearchLight as searchLightOutlined, SortDown as sortDownFilled, Sort as sortFilled, SortUp as sortUpFilled, SpinnerThird as spinnerThirdOutlined, Square as squareOutlined, Star as starFilled, Star$1 as starOutlined, ThLarge as thLargeOutLined, ThumbUp as thumbUpFilled, ThumbUp$1 as thumbUpOutlined, TimesCircle as timesCircleFilled, TimesCircle$1 as timesCircleOutlined, Times as timesOutlined, TrashAltRegular as trashAltRegular, Twitter as twitterBrand, TwitterIn as twitterIn, useTheme, User as userFilled, UserPlus as userPlusFilled, UserPlus$1 as userPlusOutlined, Users as usersFilled, withMuiPickersUtilsProvider };
|
|
4385
4761
|
//# sourceMappingURL=rc.esm.js.map
|