@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
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
6
|
|
|
5
7
|
var CssBaseline = _interopDefault(require('@material-ui/core/CssBaseline'));
|
|
6
8
|
var React = require('react');
|
|
7
9
|
var React__default = _interopDefault(React);
|
|
8
|
-
var
|
|
10
|
+
var SvgIcon = _interopDefault(require('@material-ui/core/SvgIcon'));
|
|
11
|
+
var emotion = require('emotion');
|
|
9
12
|
var styles$5 = require('@material-ui/core/styles');
|
|
10
|
-
var
|
|
13
|
+
var emotionTheming = require('emotion-theming');
|
|
14
|
+
var MUIButton = _interopDefault(require('@material-ui/core/Button'));
|
|
15
|
+
var Typography$2 = _interopDefault(require('@material-ui/core/Typography'));
|
|
16
|
+
var MUILink = _interopDefault(require('@material-ui/core/Link'));
|
|
17
|
+
var Cancel = _interopDefault(require('@material-ui/icons/Cancel'));
|
|
18
|
+
var Info = _interopDefault(require('@material-ui/icons/Info'));
|
|
19
|
+
var CheckCircle$2 = _interopDefault(require('@material-ui/icons/CheckCircle'));
|
|
20
|
+
var MuiAvatar = _interopDefault(require('@material-ui/core/Avatar'));
|
|
11
21
|
var Chip$1 = _interopDefault(require('@material-ui/core/Chip'));
|
|
12
22
|
var colorManipulator = require('@material-ui/core/styles/colorManipulator');
|
|
13
23
|
var MuiPaper = _interopDefault(require('@material-ui/core/Paper'));
|
|
14
24
|
var MuiCard = _interopDefault(require('@material-ui/core/Card'));
|
|
15
|
-
var emotion = require('emotion');
|
|
16
25
|
var MuiCardActionArea = _interopDefault(require('@material-ui/core/CardActionArea'));
|
|
17
26
|
var MuiCardActions = _interopDefault(require('@material-ui/core/CardActions'));
|
|
18
27
|
var MuiCardContent = _interopDefault(require('@material-ui/core/CardContent'));
|
|
@@ -32,9 +41,7 @@ var MuiToggleButton = _interopDefault(require('@material-ui/lab/ToggleButton'));
|
|
|
32
41
|
var MuiToggleButtonGroup = _interopDefault(require('@material-ui/lab/ToggleButtonGroup'));
|
|
33
42
|
var TextField = _interopDefault(require('@material-ui/core/TextField'));
|
|
34
43
|
var Box = _interopDefault(require('@material-ui/core/Box'));
|
|
35
|
-
var SvgIcon = _interopDefault(require('@material-ui/core/SvgIcon'));
|
|
36
44
|
var IconButton = _interopDefault(require('@material-ui/core/IconButton'));
|
|
37
|
-
var Typography$1 = _interopDefault(require('@material-ui/core/Typography'));
|
|
38
45
|
var MuiTabs = _interopDefault(require('@material-ui/core/Tabs'));
|
|
39
46
|
var MuiTab = _interopDefault(require('@material-ui/core/Tab'));
|
|
40
47
|
var RadioGroup = _interopDefault(require('@material-ui/core/RadioGroup'));
|
|
@@ -52,6 +59,25 @@ var Slide = _interopDefault(require('@material-ui/core/Slide'));
|
|
|
52
59
|
var MuiDivider = _interopDefault(require('@material-ui/core/Divider'));
|
|
53
60
|
var DateFnsUtils = _interopDefault(require('@date-io/date-fns'));
|
|
54
61
|
|
|
62
|
+
var Facebook =
|
|
63
|
+
/*#__PURE__*/
|
|
64
|
+
React.forwardRef(function (props, ref) {
|
|
65
|
+
return React__default.createElement(SvgIcon, Object.assign({}, props, {
|
|
66
|
+
ref: ref,
|
|
67
|
+
"aria-label": "facebook",
|
|
68
|
+
viewBox: "0 0 320 512"
|
|
69
|
+
}), React__default.createElement("path", {
|
|
70
|
+
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"
|
|
71
|
+
}));
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
var index = {
|
|
77
|
+
__proto__: null,
|
|
78
|
+
Facebook: Facebook
|
|
79
|
+
};
|
|
80
|
+
|
|
55
81
|
function _extends() {
|
|
56
82
|
_extends = Object.assign || function (target) {
|
|
57
83
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -94,6 +120,338 @@ function _taggedTemplateLiteralLoose(strings, raw) {
|
|
|
94
120
|
return strings;
|
|
95
121
|
}
|
|
96
122
|
|
|
123
|
+
function _templateObject() {
|
|
124
|
+
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 "]);
|
|
125
|
+
|
|
126
|
+
_templateObject = function _templateObject() {
|
|
127
|
+
return data;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
return data;
|
|
131
|
+
}
|
|
132
|
+
var theme =
|
|
133
|
+
/*#__PURE__*/
|
|
134
|
+
function () {
|
|
135
|
+
emotion.injectGlobal(_templateObject());
|
|
136
|
+
return styles$5.createTheme({
|
|
137
|
+
palette: {
|
|
138
|
+
primary: {
|
|
139
|
+
light: '#93DCC3',
|
|
140
|
+
main: '#3DBA90',
|
|
141
|
+
dark: '#009974'
|
|
142
|
+
},
|
|
143
|
+
error: {
|
|
144
|
+
light: '#F9DEE2',
|
|
145
|
+
main: '#EE415D',
|
|
146
|
+
dark: '#C9354D'
|
|
147
|
+
},
|
|
148
|
+
warning: {
|
|
149
|
+
light: '#F5E3C6',
|
|
150
|
+
main: '#F4A91F',
|
|
151
|
+
dark: '#E9A01C'
|
|
152
|
+
},
|
|
153
|
+
info: {
|
|
154
|
+
light: '#BADFEF',
|
|
155
|
+
main: '#43B8EB',
|
|
156
|
+
dark: '#0094D3'
|
|
157
|
+
},
|
|
158
|
+
success: {
|
|
159
|
+
light: '#EBF5DF',
|
|
160
|
+
main: '#88C936',
|
|
161
|
+
dark: '#66B204'
|
|
162
|
+
},
|
|
163
|
+
grey: {
|
|
164
|
+
50: '#FFFFFF',
|
|
165
|
+
100: '#EEEEEE',
|
|
166
|
+
200: '#D2D2D2',
|
|
167
|
+
300: '#BDBDBD',
|
|
168
|
+
400: '#AAAAAA',
|
|
169
|
+
500: '#989898',
|
|
170
|
+
600: '#6B6B6B',
|
|
171
|
+
700: '#454545',
|
|
172
|
+
800: '#3F3F3F',
|
|
173
|
+
900: '#333333',
|
|
174
|
+
A100: '#FAFAFA',
|
|
175
|
+
A200: '#EEEEEE',
|
|
176
|
+
A400: '#E3E3E3',
|
|
177
|
+
A700: '#C5C5C5'
|
|
178
|
+
},
|
|
179
|
+
text: {
|
|
180
|
+
primary: '#454545'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
typography: {
|
|
184
|
+
fontFamily: ['Noto Sans TC', 'Helvetica Neue', 'Helvetica', 'Roboto', 'Arial', 'Apple LiGothic', '微軟正黑體', 'Microsoft JhengHei', 'sans-serif', 'PingFangTC-Regular'].join(','),
|
|
185
|
+
h1: {
|
|
186
|
+
fontSize: '1.5rem',
|
|
187
|
+
fontWeight: 500,
|
|
188
|
+
lineHeight: 1.6,
|
|
189
|
+
'@media (min-width:1025px)': {
|
|
190
|
+
fontSize: '2rem'
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
h2: {
|
|
194
|
+
fontSize: '1.375rem',
|
|
195
|
+
fontWeight: 500,
|
|
196
|
+
lineHeight: 1.6,
|
|
197
|
+
'@media (min-width:1025px)': {
|
|
198
|
+
fontSize: '1.75rem'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
h3: {
|
|
202
|
+
fontSize: '1.25rem',
|
|
203
|
+
fontWeight: 500,
|
|
204
|
+
lineHeight: 1.6,
|
|
205
|
+
'@media (min-width:1025px)': {
|
|
206
|
+
fontSize: '1.5rem'
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
h4: {
|
|
210
|
+
fontSize: '1.125rem',
|
|
211
|
+
fontWeight: 500,
|
|
212
|
+
lineHeight: 1.6,
|
|
213
|
+
'@media (min-width:1025px)': {
|
|
214
|
+
fontSize: '1.25rem'
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
h5: {
|
|
218
|
+
fontSize: '1rem',
|
|
219
|
+
fontWeight: 500,
|
|
220
|
+
lineHeight: 1.6,
|
|
221
|
+
'@media (min-width:1025px)': {
|
|
222
|
+
fontSize: '1.125rem'
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
h6: {
|
|
226
|
+
fontSize: '0.875rem',
|
|
227
|
+
fontWeight: 500,
|
|
228
|
+
lineHeight: 1.6,
|
|
229
|
+
'@media (min-width:1025px)': {
|
|
230
|
+
fontSize: '1rem'
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
subtitle1: {
|
|
234
|
+
fontSize: '0.875rem',
|
|
235
|
+
fontWeight: 500,
|
|
236
|
+
lineHeight: 1.6
|
|
237
|
+
},
|
|
238
|
+
body1: {
|
|
239
|
+
fontSize: '1rem',
|
|
240
|
+
fontWeight: 400,
|
|
241
|
+
lineHeight: 1.6
|
|
242
|
+
},
|
|
243
|
+
body2: {
|
|
244
|
+
fontSize: '0.875rem',
|
|
245
|
+
fontWeight: 400,
|
|
246
|
+
lineHeight: 1.6
|
|
247
|
+
},
|
|
248
|
+
button: {
|
|
249
|
+
fontSize: '0.875rem',
|
|
250
|
+
fontWeight: 500,
|
|
251
|
+
lineHeight: 1.6
|
|
252
|
+
},
|
|
253
|
+
caption: {
|
|
254
|
+
fontSize: '0.875rem',
|
|
255
|
+
fontWeight: 400,
|
|
256
|
+
lineHeight: 1.6
|
|
257
|
+
},
|
|
258
|
+
overline: {
|
|
259
|
+
fontSize: '0.75rem',
|
|
260
|
+
fontWeight: 500,
|
|
261
|
+
lineHeight: 1.6
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
}();
|
|
266
|
+
|
|
267
|
+
var ThemeProvider = function ThemeProvider(props) {
|
|
268
|
+
var children = props.children;
|
|
269
|
+
return React__default.createElement(emotionTheming.ThemeProvider, {
|
|
270
|
+
theme: theme
|
|
271
|
+
}, React__default.createElement(styles$5.StylesProvider, {
|
|
272
|
+
injectFirst: true
|
|
273
|
+
}, React__default.createElement(styles$5.ThemeProvider, {
|
|
274
|
+
theme: theme
|
|
275
|
+
}, children)));
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
var useStyles =
|
|
279
|
+
/*#__PURE__*/
|
|
280
|
+
styles$5.makeStyles(function (theme) {
|
|
281
|
+
return {
|
|
282
|
+
root: {
|
|
283
|
+
padding: '7px 49px',
|
|
284
|
+
minWidth: '60px'
|
|
285
|
+
},
|
|
286
|
+
text: {
|
|
287
|
+
'& .MuiButton-label': {
|
|
288
|
+
color: theme.palette.grey[600]
|
|
289
|
+
},
|
|
290
|
+
'&:hover': {
|
|
291
|
+
backgroundColor: theme.palette.primary.light,
|
|
292
|
+
'& .MuiButton-label': {
|
|
293
|
+
color: theme.palette.primary.main
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
'&:disabled > .MuiButton-label': {
|
|
297
|
+
color: theme.palette.grey[400]
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
outlined: {
|
|
301
|
+
'& .MuiButton-label': {
|
|
302
|
+
color: 'inherit'
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
outlinedPrimary: {
|
|
306
|
+
'&:hover': {
|
|
307
|
+
backgroundColor: theme.palette.primary.light
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
contained: {
|
|
311
|
+
boxShadow: 'none',
|
|
312
|
+
'& > .MuiButton-label': {
|
|
313
|
+
color: theme.palette.grey[500]
|
|
314
|
+
},
|
|
315
|
+
'&:hover': {
|
|
316
|
+
boxShadow: 'none',
|
|
317
|
+
backgroundColor: theme.palette.grey[100],
|
|
318
|
+
'& .MuiButton-label': {
|
|
319
|
+
color: theme.palette.grey[600]
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
'&:disabled': {
|
|
323
|
+
backgroundColor: theme.palette.grey[200],
|
|
324
|
+
'& > .MuiButton-label': {
|
|
325
|
+
color: theme.palette.grey[700]
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
containedPrimary: {
|
|
330
|
+
'& > .MuiButton-label': {
|
|
331
|
+
color: theme.palette.common.white
|
|
332
|
+
},
|
|
333
|
+
'&:hover': {
|
|
334
|
+
backgroundColor: theme.palette.primary.dark,
|
|
335
|
+
'& .MuiButton-label': {
|
|
336
|
+
color: theme.palette.common.white
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
'&:disabled': {
|
|
340
|
+
backgroundColor: theme.palette.grey[300],
|
|
341
|
+
'& > .MuiButton-label': {
|
|
342
|
+
color: theme.palette.common.white
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
containedSecondary: {
|
|
347
|
+
'& > .MuiButton-label': {
|
|
348
|
+
color: theme.palette.common.white
|
|
349
|
+
},
|
|
350
|
+
'&:hover': {
|
|
351
|
+
backgroundColor: theme.palette.secondary.dark,
|
|
352
|
+
'& .MuiButton-label': {
|
|
353
|
+
color: theme.palette.common.white
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
'&:disabled': {
|
|
357
|
+
backgroundColor: theme.palette.grey[700],
|
|
358
|
+
'& > .MuiButton-label': {
|
|
359
|
+
color: theme.palette.common.white
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
sizeSmall: {
|
|
364
|
+
padding: '5px 15px',
|
|
365
|
+
fontSize: theme.typography.button.fontSize
|
|
366
|
+
},
|
|
367
|
+
sizeLarge: {
|
|
368
|
+
padding: '8px 67px',
|
|
369
|
+
fontSize: theme.typography.body1.fontSize,
|
|
370
|
+
'@media (min-width:1025px)': {
|
|
371
|
+
fontSize: '1rem'
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
var Button =
|
|
378
|
+
/*#__PURE__*/
|
|
379
|
+
React.forwardRef(function (props, ref) {
|
|
380
|
+
return React__default.createElement(MUIButton, Object.assign({
|
|
381
|
+
size: "small"
|
|
382
|
+
}, props, {
|
|
383
|
+
ref: ref,
|
|
384
|
+
classes: useStyles()
|
|
385
|
+
}));
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
var Typography =
|
|
389
|
+
/*#__PURE__*/
|
|
390
|
+
React.forwardRef(function (_ref, ref) {
|
|
391
|
+
var _ref$color = _ref.color,
|
|
392
|
+
color = _ref$color === void 0 ? 'textPrimary' : _ref$color,
|
|
393
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["color"]);
|
|
394
|
+
|
|
395
|
+
return React__default.createElement(Typography$2, Object.assign({}, rest, {
|
|
396
|
+
ref: ref,
|
|
397
|
+
color: color
|
|
398
|
+
}));
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
var useStyles$1 =
|
|
402
|
+
/*#__PURE__*/
|
|
403
|
+
styles$5.makeStyles(function (theme) {
|
|
404
|
+
return {
|
|
405
|
+
underlineHover: {
|
|
406
|
+
'&:hover': {
|
|
407
|
+
color: function color(props) {
|
|
408
|
+
return props.color && (props.color === 'primary' || props.color === 'secondary') ? theme.palette[props.color].dark : theme.palette.primary.dark;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
var Link =
|
|
416
|
+
/*#__PURE__*/
|
|
417
|
+
React.forwardRef(function (props, ref) {
|
|
418
|
+
return React__default.createElement(MUILink, Object.assign({}, props, {
|
|
419
|
+
ref: ref,
|
|
420
|
+
classes: useStyles$1(props)
|
|
421
|
+
}));
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
var Icons = {
|
|
425
|
+
Cancel: Cancel,
|
|
426
|
+
Info: Info,
|
|
427
|
+
CheckCircle: CheckCircle$2,
|
|
428
|
+
Facebook: Facebook
|
|
429
|
+
};
|
|
430
|
+
var Icon =
|
|
431
|
+
/*#__PURE__*/
|
|
432
|
+
React.forwardRef(function (props, ref) {
|
|
433
|
+
var name = props.name,
|
|
434
|
+
rest = _objectWithoutPropertiesLoose(props, ["name"]);
|
|
435
|
+
|
|
436
|
+
var RenderIcon = Icons[name];
|
|
437
|
+
return React__default.createElement(RenderIcon, Object.assign({}, rest, {
|
|
438
|
+
ref: ref
|
|
439
|
+
}));
|
|
440
|
+
});
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
var index$1 = {
|
|
445
|
+
__proto__: null,
|
|
446
|
+
CustomSvgIcon: index,
|
|
447
|
+
theme: theme,
|
|
448
|
+
ThemeProvider: ThemeProvider,
|
|
449
|
+
Button: Button,
|
|
450
|
+
Typography: Typography,
|
|
451
|
+
Link: Link,
|
|
452
|
+
Icon: Icon
|
|
453
|
+
};
|
|
454
|
+
|
|
97
455
|
var getAutoHeightDuration = function getAutoHeightDuration(height) {
|
|
98
456
|
if (!height) {
|
|
99
457
|
return 0;
|
|
@@ -201,7 +559,7 @@ var styles = function styles(theme) {
|
|
|
201
559
|
});
|
|
202
560
|
};
|
|
203
561
|
|
|
204
|
-
var useStyles =
|
|
562
|
+
var useStyles$2 =
|
|
205
563
|
/*#__PURE__*/
|
|
206
564
|
styles$5.makeStyles(styles);
|
|
207
565
|
var Avatar =
|
|
@@ -218,7 +576,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
218
576
|
height = _ref.height,
|
|
219
577
|
restProps = _objectWithoutPropertiesLoose(_ref, ["children", "src", "alt", "size", "variant", "width", "height"]);
|
|
220
578
|
|
|
221
|
-
var classes = useStyles({
|
|
579
|
+
var classes = useStyles$2({
|
|
222
580
|
width: width,
|
|
223
581
|
height: height
|
|
224
582
|
});
|
|
@@ -233,7 +591,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
233
591
|
}, restProps), children);
|
|
234
592
|
});
|
|
235
593
|
|
|
236
|
-
var Button =
|
|
594
|
+
var Button$1 =
|
|
237
595
|
/*#__PURE__*/
|
|
238
596
|
React.forwardRef(function (_ref, ref) {
|
|
239
597
|
var children = _ref.children,
|
|
@@ -248,7 +606,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
248
606
|
onClick = _ref.onClick,
|
|
249
607
|
restProps = _objectWithoutPropertiesLoose(_ref, ["children", "size", "color", "variant", "disabled", "onClick"]);
|
|
250
608
|
|
|
251
|
-
return React__default.createElement(
|
|
609
|
+
return React__default.createElement(MUIButton, Object.assign({
|
|
252
610
|
onClick: onClick,
|
|
253
611
|
color: color,
|
|
254
612
|
disabled: disabled,
|
|
@@ -258,7 +616,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
258
616
|
}, restProps), children);
|
|
259
617
|
});
|
|
260
618
|
|
|
261
|
-
var theme = {
|
|
619
|
+
var theme$1 = {
|
|
262
620
|
color: {
|
|
263
621
|
primary: {
|
|
264
622
|
active: '#009A68',
|
|
@@ -340,18 +698,16 @@ var CustomBoxShadow1 = "\n0 1px 4px 0 rgba(69, 69, 69, 0.2),\n0 1px 2px 0 rgba(6
|
|
|
340
698
|
var CustomChip =
|
|
341
699
|
/*#__PURE__*/
|
|
342
700
|
styles$5.styled(function (_ref) {
|
|
343
|
-
var
|
|
344
|
-
active = _ref.active,
|
|
345
|
-
other = _objectWithoutPropertiesLoose(_ref, ["color", "active"]);
|
|
701
|
+
var other = _objectWithoutPropertiesLoose(_ref, ["color", "active"]);
|
|
346
702
|
|
|
347
703
|
return React__default.createElement(Chip$1, Object.assign({}, other));
|
|
348
704
|
})({
|
|
349
705
|
backgroundColor: function backgroundColor(props) {
|
|
350
|
-
return props.active ? 'white' : colorManipulator.fade(props.color || theme.color.primary["default"], 0.3);
|
|
706
|
+
return props.active ? 'white' : colorManipulator.fade(props.color || theme$1.color.primary["default"], 0.3);
|
|
351
707
|
},
|
|
352
708
|
'&:hover, &:focus': {
|
|
353
709
|
backgroundColor: function backgroundColor(props) {
|
|
354
|
-
return props.active ? 'white' : colorManipulator.fade(props.color || theme.color.primary["default"], 0.3);
|
|
710
|
+
return props.active ? 'white' : colorManipulator.fade(props.color || theme$1.color.primary["default"], 0.3);
|
|
355
711
|
}
|
|
356
712
|
},
|
|
357
713
|
'&:active': {
|
|
@@ -360,7 +716,7 @@ styles$5.styled(function (_ref) {
|
|
|
360
716
|
}
|
|
361
717
|
},
|
|
362
718
|
color: function color(props) {
|
|
363
|
-
return props.color || theme.color.primary["default"];
|
|
719
|
+
return props.color || theme$1.color.primary["default"];
|
|
364
720
|
},
|
|
365
721
|
boxShadow: function boxShadow(props) {
|
|
366
722
|
return props.active ? CustomBoxShadow1 : 'none';
|
|
@@ -395,7 +751,7 @@ var Chip = function Chip(_ref) {
|
|
|
395
751
|
);
|
|
396
752
|
};
|
|
397
753
|
|
|
398
|
-
var index = /*#__PURE__*/
|
|
754
|
+
var index$2 = /*#__PURE__*/
|
|
399
755
|
React.memo(Chip);
|
|
400
756
|
|
|
401
757
|
var Paper =
|
|
@@ -406,7 +762,7 @@ React.forwardRef(function (props, ref) {
|
|
|
406
762
|
}, props), props.children);
|
|
407
763
|
});
|
|
408
764
|
|
|
409
|
-
var useStyles$
|
|
765
|
+
var useStyles$3 =
|
|
410
766
|
/*#__PURE__*/
|
|
411
767
|
styles$5.makeStyles({
|
|
412
768
|
root: {
|
|
@@ -429,7 +785,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
429
785
|
className = _ref.className,
|
|
430
786
|
restProps = _objectWithoutPropertiesLoose(_ref, ["children", "className"]);
|
|
431
787
|
|
|
432
|
-
var _useStyles = useStyles$
|
|
788
|
+
var _useStyles = useStyles$3(restProps),
|
|
433
789
|
root = _useStyles.root;
|
|
434
790
|
|
|
435
791
|
return React__default.createElement(MuiCard, Object.assign({
|
|
@@ -456,10 +812,10 @@ function _templateObject2() {
|
|
|
456
812
|
return data;
|
|
457
813
|
}
|
|
458
814
|
|
|
459
|
-
function _templateObject() {
|
|
815
|
+
function _templateObject$1() {
|
|
460
816
|
var data = _taggedTemplateLiteralLoose(["\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n"]);
|
|
461
817
|
|
|
462
|
-
_templateObject = function _templateObject() {
|
|
818
|
+
_templateObject$1 = function _templateObject() {
|
|
463
819
|
return data;
|
|
464
820
|
};
|
|
465
821
|
|
|
@@ -469,7 +825,7 @@ var loadingCircle =
|
|
|
469
825
|
/*#__PURE__*/
|
|
470
826
|
emotion.keyframes(
|
|
471
827
|
/*#__PURE__*/
|
|
472
|
-
_templateObject());
|
|
828
|
+
_templateObject$1());
|
|
473
829
|
var spin =
|
|
474
830
|
/*#__PURE__*/
|
|
475
831
|
emotion.css(
|
|
@@ -482,11 +838,10 @@ var svgBaseProps = (_svgBaseProps = {
|
|
|
482
838
|
height: '1em',
|
|
483
839
|
fill: 'currentColor'
|
|
484
840
|
}, _svgBaseProps['aria-hidden'] = true, _svgBaseProps.focusable = 'false', _svgBaseProps);
|
|
485
|
-
var Icon =
|
|
841
|
+
var Icon$1 =
|
|
486
842
|
/*#__PURE__*/
|
|
487
843
|
React.forwardRef(function (_ref, ref) {
|
|
488
|
-
var
|
|
489
|
-
className = _ref.className,
|
|
844
|
+
var className = _ref.className,
|
|
490
845
|
icon = _ref.icon,
|
|
491
846
|
viewBox = _ref.viewBox,
|
|
492
847
|
style = _ref.style,
|
|
@@ -525,7 +880,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
525
880
|
d: icon.definition.pathData
|
|
526
881
|
}));
|
|
527
882
|
});
|
|
528
|
-
Icon.defaultProps = {
|
|
883
|
+
Icon$1.defaultProps = {
|
|
529
884
|
size: 1
|
|
530
885
|
};
|
|
531
886
|
|
|
@@ -547,10 +902,10 @@ function _templateObject2$1() {
|
|
|
547
902
|
return data;
|
|
548
903
|
}
|
|
549
904
|
|
|
550
|
-
function _templateObject$
|
|
905
|
+
function _templateObject$2() {
|
|
551
906
|
var data = _taggedTemplateLiteralLoose(["\n position: relative;\n"]);
|
|
552
907
|
|
|
553
|
-
_templateObject$
|
|
908
|
+
_templateObject$2 = function _templateObject() {
|
|
554
909
|
return data;
|
|
555
910
|
};
|
|
556
911
|
|
|
@@ -560,12 +915,12 @@ var DatePickerWrapper =
|
|
|
560
915
|
/*#__PURE__*/
|
|
561
916
|
styled('section')(
|
|
562
917
|
/*#__PURE__*/
|
|
563
|
-
_templateObject$
|
|
918
|
+
_templateObject$2());
|
|
564
919
|
var IonwWrapper =
|
|
565
920
|
/*#__PURE__*/
|
|
566
921
|
styled('section')(
|
|
567
922
|
/*#__PURE__*/
|
|
568
|
-
_templateObject2$1(), theme.color.primary["default"]);
|
|
923
|
+
_templateObject2$1(), theme$1.color.primary["default"]);
|
|
569
924
|
var popOverStyles =
|
|
570
925
|
/*#__PURE__*/
|
|
571
926
|
styles$5.createStyles({
|
|
@@ -636,7 +991,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
636
991
|
root: inputClasses.root
|
|
637
992
|
}
|
|
638
993
|
};
|
|
639
|
-
return React__default.createElement(DatePickerWrapper, null, React__default.createElement(IonwWrapper, null, React__default.createElement(Icon, {
|
|
994
|
+
return React__default.createElement(DatePickerWrapper, null, React__default.createElement(IonwWrapper, null, React__default.createElement(Icon$1, {
|
|
640
995
|
icon: CalendarAlt
|
|
641
996
|
})), React__default.createElement(StyledMuiDatePicker, Object.assign({
|
|
642
997
|
value: value,
|
|
@@ -652,8 +1007,8 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
652
1007
|
};
|
|
653
1008
|
|
|
654
1009
|
function useTheme() {
|
|
655
|
-
var theme
|
|
656
|
-
return theme
|
|
1010
|
+
var theme = React.useContext(core.ThemeContext);
|
|
1011
|
+
return theme && theme.color ? theme : theme$1;
|
|
657
1012
|
}
|
|
658
1013
|
function makeStyles(styles) {
|
|
659
1014
|
var memoizedClasses = {};
|
|
@@ -712,7 +1067,7 @@ function resolveThemeColorProp(theme, color) {
|
|
|
712
1067
|
return typeof color === 'function' ? color(theme) : resolveThemeColorByPath(theme, color);
|
|
713
1068
|
}
|
|
714
1069
|
|
|
715
|
-
var useStyles$
|
|
1070
|
+
var useStyles$4 =
|
|
716
1071
|
/*#__PURE__*/
|
|
717
1072
|
makeStyles([['typography', function (theme, _ref) {
|
|
718
1073
|
var variant = _ref[0],
|
|
@@ -728,7 +1083,7 @@ makeStyles([['typography', function (theme, _ref) {
|
|
|
728
1083
|
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"];
|
|
729
1084
|
}]]);
|
|
730
1085
|
|
|
731
|
-
var Typography =
|
|
1086
|
+
var Typography$1 =
|
|
732
1087
|
/*#__PURE__*/
|
|
733
1088
|
React.forwardRef(function (_ref, ref) {
|
|
734
1089
|
var children = _ref.children,
|
|
@@ -740,13 +1095,13 @@ React.forwardRef(function (_ref, ref) {
|
|
|
740
1095
|
noWrap = _ref.noWrap,
|
|
741
1096
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "className", "variant", "color", "weight", "gutterBottom", "noWrap"]);
|
|
742
1097
|
|
|
743
|
-
var styles = useStyles$
|
|
1098
|
+
var styles = useStyles$4([Vari, color, weight, gutterBottom, noWrap]);
|
|
744
1099
|
return React__default.createElement(Vari, Object.assign({}, props, {
|
|
745
1100
|
className: className ? emotion.cx(styles.typography, className) : styles.typography,
|
|
746
1101
|
ref: ref
|
|
747
1102
|
}), children);
|
|
748
1103
|
});
|
|
749
|
-
Typography.defaultProps = {
|
|
1104
|
+
Typography$1.defaultProps = {
|
|
750
1105
|
weight: 'normal',
|
|
751
1106
|
gutterBottom: false,
|
|
752
1107
|
noWrap: false
|
|
@@ -800,7 +1155,7 @@ styles$5.makeStyles(inputAdornmentStyles);
|
|
|
800
1155
|
var CommonKeyboardDatePickerProps = {
|
|
801
1156
|
keyboardIcon:
|
|
802
1157
|
/*#__PURE__*/
|
|
803
|
-
React__default.createElement(Icon, {
|
|
1158
|
+
React__default.createElement(Icon$1, {
|
|
804
1159
|
icon: CalendarAlt
|
|
805
1160
|
}),
|
|
806
1161
|
maxDateMessage: null,
|
|
@@ -819,7 +1174,7 @@ var CommonKeyboardDatePickerProps = {
|
|
|
819
1174
|
|
|
820
1175
|
var InvalidDateMsg = function InvalidDateMsg(_ref) {
|
|
821
1176
|
var msg = _ref.msg;
|
|
822
|
-
return React__default.createElement(Typography, {
|
|
1177
|
+
return React__default.createElement(Typography$1, {
|
|
823
1178
|
variant: 'span',
|
|
824
1179
|
color: 'error'
|
|
825
1180
|
}, msg);
|
|
@@ -905,7 +1260,7 @@ function hexToRgba(originColor, opacity) {
|
|
|
905
1260
|
return "rgba(" + rgb + ", " + opacity + ")";
|
|
906
1261
|
}
|
|
907
1262
|
|
|
908
|
-
var useStyles$
|
|
1263
|
+
var useStyles$5 =
|
|
909
1264
|
/*#__PURE__*/
|
|
910
1265
|
makeStyles([['tag', function (theme, _ref) {
|
|
911
1266
|
var originColor = _ref[0],
|
|
@@ -923,7 +1278,7 @@ var Tag = function Tag(_ref) {
|
|
|
923
1278
|
onClick = _ref.onClick,
|
|
924
1279
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "className", "color", "variant", "onClick"]);
|
|
925
1280
|
|
|
926
|
-
var styles = useStyles$
|
|
1281
|
+
var styles = useStyles$5([color, variant, !!onClick]);
|
|
927
1282
|
return React__default.createElement("div", Object.assign({}, props, {
|
|
928
1283
|
className: className ? emotion.cx(styles.tag, className) : styles.tag,
|
|
929
1284
|
onClick: onClick
|
|
@@ -957,7 +1312,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
957
1312
|
}, restProps), children);
|
|
958
1313
|
});
|
|
959
1314
|
|
|
960
|
-
var useStyles$
|
|
1315
|
+
var useStyles$6 =
|
|
961
1316
|
/*#__PURE__*/
|
|
962
1317
|
styles$5.makeStyles({
|
|
963
1318
|
root: {
|
|
@@ -1066,13 +1421,11 @@ var Select = function Select(props) {
|
|
|
1066
1421
|
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
|
1067
1422
|
onOpen = props.onOpen,
|
|
1068
1423
|
onClose = props.onClose,
|
|
1069
|
-
height = props.height,
|
|
1070
|
-
backgroundColor = props.backgroundColor,
|
|
1071
1424
|
_props$isVarItem = props.isVarItem,
|
|
1072
1425
|
isVarItem = _props$isVarItem === void 0 ? false : _props$isVarItem,
|
|
1073
1426
|
restProps = _objectWithoutPropertiesLoose(props, ["options", "value", "onChange", "variant", "multiple", "onOpen", "onClose", "height", "backgroundColor", "isVarItem"]);
|
|
1074
1427
|
|
|
1075
|
-
var classes = useStyles$
|
|
1428
|
+
var classes = useStyles$6(props);
|
|
1076
1429
|
var itemClasses = itemStyle(props);
|
|
1077
1430
|
return React__default.createElement(MuiSelect, Object.assign({
|
|
1078
1431
|
className: classes.root,
|
|
@@ -1279,10 +1632,10 @@ function _templateObject2$2() {
|
|
|
1279
1632
|
return data;
|
|
1280
1633
|
}
|
|
1281
1634
|
|
|
1282
|
-
function _templateObject$
|
|
1635
|
+
function _templateObject$3() {
|
|
1283
1636
|
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"]);
|
|
1284
1637
|
|
|
1285
|
-
_templateObject$
|
|
1638
|
+
_templateObject$3 = function _templateObject() {
|
|
1286
1639
|
return data;
|
|
1287
1640
|
};
|
|
1288
1641
|
|
|
@@ -1292,13 +1645,13 @@ var InputStyle =
|
|
|
1292
1645
|
/*#__PURE__*/
|
|
1293
1646
|
styled('input')(
|
|
1294
1647
|
/*#__PURE__*/
|
|
1295
|
-
_templateObject$
|
|
1648
|
+
_templateObject$3());
|
|
1296
1649
|
var LabelStyle =
|
|
1297
1650
|
/*#__PURE__*/
|
|
1298
1651
|
styled('label')(
|
|
1299
1652
|
/*#__PURE__*/
|
|
1300
1653
|
_templateObject2$2(), function (props) {
|
|
1301
|
-
return props.checked ? theme.color.primary["default"] : theme.color.text.F;
|
|
1654
|
+
return props.checked ? theme$1.color.primary["default"] : theme$1.color.text.F;
|
|
1302
1655
|
});
|
|
1303
1656
|
var ThumbStyle =
|
|
1304
1657
|
/*#__PURE__*/
|
|
@@ -1313,12 +1666,12 @@ var CheckedNode =
|
|
|
1313
1666
|
/*#__PURE__*/
|
|
1314
1667
|
styled('span')(
|
|
1315
1668
|
/*#__PURE__*/
|
|
1316
|
-
_templateObject4(), theme.typography.fontWeight.normal);
|
|
1669
|
+
_templateObject4(), theme$1.typography.fontWeight.normal);
|
|
1317
1670
|
var UnCheckedNode =
|
|
1318
1671
|
/*#__PURE__*/
|
|
1319
1672
|
styled('span')(
|
|
1320
1673
|
/*#__PURE__*/
|
|
1321
|
-
_templateObject5(), theme.color.text.B3, theme.typography.fontWeight.normal);
|
|
1674
|
+
_templateObject5(), theme$1.color.text.B3, theme$1.typography.fontWeight.normal);
|
|
1322
1675
|
|
|
1323
1676
|
var Switch =
|
|
1324
1677
|
/*#__PURE__*/
|
|
@@ -1398,7 +1751,7 @@ var MenuList = function MenuList(_ref) {
|
|
|
1398
1751
|
});
|
|
1399
1752
|
};
|
|
1400
1753
|
|
|
1401
|
-
var useStyles$
|
|
1754
|
+
var useStyles$7 =
|
|
1402
1755
|
/*#__PURE__*/
|
|
1403
1756
|
styles$5.makeStyles({
|
|
1404
1757
|
root: {
|
|
@@ -1421,13 +1774,9 @@ styles$5.makeStyles({
|
|
|
1421
1774
|
|
|
1422
1775
|
var MenuItem = function MenuItem(props) {
|
|
1423
1776
|
var children = props.children,
|
|
1424
|
-
backgroundColor = props.backgroundColor,
|
|
1425
|
-
color = props.color,
|
|
1426
|
-
hoverBackgroundColor = props.hoverBackgroundColor,
|
|
1427
|
-
hoverColor = props.hoverColor,
|
|
1428
1777
|
restProps = _objectWithoutPropertiesLoose(props, ["children", "backgroundColor", "color", "hoverBackgroundColor", "hoverColor"]);
|
|
1429
1778
|
|
|
1430
|
-
var classes = useStyles$
|
|
1779
|
+
var classes = useStyles$7(props);
|
|
1431
1780
|
return React__default.createElement(MuiMenuItem, Object.assign({}, restProps, {
|
|
1432
1781
|
className: classes.root
|
|
1433
1782
|
}), children);
|
|
@@ -1651,9 +2000,9 @@ var Pagination = function Pagination(_ref) {
|
|
|
1651
2000
|
}), React__default.createElement(Box, {
|
|
1652
2001
|
pr: 0.5,
|
|
1653
2002
|
pl: 1
|
|
1654
|
-
}, React__default.createElement(Typography$
|
|
2003
|
+
}, React__default.createElement(Typography$2, {
|
|
1655
2004
|
variant: "body1"
|
|
1656
|
-
}, "\uFF0F")), React__default.createElement(Typography$
|
|
2005
|
+
}, "\uFF0F")), React__default.createElement(Typography$2, {
|
|
1657
2006
|
variant: "body1"
|
|
1658
2007
|
}, totalPages)), React__default.createElement(ChevronRightIconButton, {
|
|
1659
2008
|
disabled: !hasNext,
|
|
@@ -1664,10 +2013,10 @@ var Pagination = function Pagination(_ref) {
|
|
|
1664
2013
|
}));
|
|
1665
2014
|
};
|
|
1666
2015
|
|
|
1667
|
-
var index$
|
|
2016
|
+
var index$3 = /*#__PURE__*/
|
|
1668
2017
|
React.memo(Pagination);
|
|
1669
2018
|
|
|
1670
|
-
var useStyles$
|
|
2019
|
+
var useStyles$8 =
|
|
1671
2020
|
/*#__PURE__*/
|
|
1672
2021
|
styles$5.makeStyles({
|
|
1673
2022
|
scrollButtons: {
|
|
@@ -1678,7 +2027,7 @@ styles$5.makeStyles({
|
|
|
1678
2027
|
margin: '0 12px'
|
|
1679
2028
|
},
|
|
1680
2029
|
'& > *:focus': {
|
|
1681
|
-
color: theme.color.text.B5
|
|
2030
|
+
color: theme$1.color.text.B5
|
|
1682
2031
|
},
|
|
1683
2032
|
'& > :first-child': {
|
|
1684
2033
|
marginLeft: 0
|
|
@@ -1697,7 +2046,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
1697
2046
|
onChange = _ref.onChange,
|
|
1698
2047
|
restProps = _objectWithoutPropertiesLoose(_ref, ["children", "value", "onChange"]);
|
|
1699
2048
|
|
|
1700
|
-
var classes = useStyles$
|
|
2049
|
+
var classes = useStyles$8();
|
|
1701
2050
|
return React__default.createElement(MuiTabs, Object.assign({
|
|
1702
2051
|
ref: ref,
|
|
1703
2052
|
value: value,
|
|
@@ -1708,29 +2057,29 @@ React.forwardRef(function (_ref, ref) {
|
|
|
1708
2057
|
}, restProps), children);
|
|
1709
2058
|
});
|
|
1710
2059
|
|
|
1711
|
-
var useStyles$
|
|
2060
|
+
var useStyles$9 =
|
|
1712
2061
|
/*#__PURE__*/
|
|
1713
|
-
styles$5.makeStyles(function (theme
|
|
2062
|
+
styles$5.makeStyles(function (theme) {
|
|
1714
2063
|
return styles$5.createStyles({
|
|
1715
2064
|
root: {
|
|
1716
2065
|
textTransform: 'none',
|
|
1717
2066
|
minWidth: 56,
|
|
1718
2067
|
padding: '15px 0',
|
|
1719
|
-
color: theme.color.text.B5,
|
|
2068
|
+
color: theme$1.color.text.B5,
|
|
1720
2069
|
opacity: 1,
|
|
1721
2070
|
'&:hover': {
|
|
1722
|
-
color: theme.color.text.B4,
|
|
2071
|
+
color: theme$1.color.text.B4,
|
|
1723
2072
|
opacity: 1
|
|
1724
2073
|
},
|
|
1725
2074
|
'&$selected': {
|
|
1726
|
-
color: theme.color.primary["default"]
|
|
2075
|
+
color: theme$1.color.primary["default"]
|
|
1727
2076
|
}
|
|
1728
2077
|
},
|
|
1729
2078
|
selected: {},
|
|
1730
2079
|
wrapper: _extends({
|
|
1731
2080
|
height: 32
|
|
1732
|
-
}, theme
|
|
1733
|
-
fontWeight: theme.typography.fontWeight.medium
|
|
2081
|
+
}, theme.typography.body1, {
|
|
2082
|
+
fontWeight: theme$1.typography.fontWeight.medium
|
|
1734
2083
|
})
|
|
1735
2084
|
});
|
|
1736
2085
|
});
|
|
@@ -1744,7 +2093,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
1744
2093
|
value = _ref.value,
|
|
1745
2094
|
restProps = _objectWithoutPropertiesLoose(_ref, ["label", "disabled", "icon", "value"]);
|
|
1746
2095
|
|
|
1747
|
-
var classes = useStyles$
|
|
2096
|
+
var classes = useStyles$9();
|
|
1748
2097
|
return React__default.createElement(MuiTab, Object.assign({
|
|
1749
2098
|
ref: ref,
|
|
1750
2099
|
classes: classes,
|
|
@@ -1772,7 +2121,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
1772
2121
|
}, restProps), children);
|
|
1773
2122
|
});
|
|
1774
2123
|
|
|
1775
|
-
var useStyles$
|
|
2124
|
+
var useStyles$a =
|
|
1776
2125
|
/*#__PURE__*/
|
|
1777
2126
|
styles$5.makeStyles({
|
|
1778
2127
|
root: {
|
|
@@ -1784,27 +2133,27 @@ styles$5.makeStyles({
|
|
|
1784
2133
|
borderRadius: '50%',
|
|
1785
2134
|
width: 20,
|
|
1786
2135
|
height: 20,
|
|
1787
|
-
boxShadow: "inset 0 0 0 2px " + theme.color.text.B5,
|
|
2136
|
+
boxShadow: "inset 0 0 0 2px " + theme$1.color.text.B5,
|
|
1788
2137
|
backgroundColor: 'transparent',
|
|
1789
2138
|
'$root.Mui-focusVisible &': {
|
|
1790
|
-
boxShadow: "inset 0 0 0 2px " + theme.color.primary["default"],
|
|
2139
|
+
boxShadow: "inset 0 0 0 2px " + theme$1.color.primary["default"],
|
|
1791
2140
|
backgroundColor: 'transparent'
|
|
1792
2141
|
},
|
|
1793
2142
|
'input:hover ~ &': {
|
|
1794
2143
|
padding: 0,
|
|
1795
|
-
boxShadow: "inset 0 0 0 1px " + theme.color.primary["default"]
|
|
2144
|
+
boxShadow: "inset 0 0 0 1px " + theme$1.color.primary["default"]
|
|
1796
2145
|
},
|
|
1797
2146
|
'input:disabled ~ &': {
|
|
1798
|
-
boxShadow: "inset 0 0 0 2px " + theme.color.text.B3,
|
|
2147
|
+
boxShadow: "inset 0 0 0 2px " + theme$1.color.text.B3,
|
|
1799
2148
|
backgroundColor: 'transparent'
|
|
1800
2149
|
}
|
|
1801
2150
|
},
|
|
1802
2151
|
checkedIcon: {
|
|
1803
2152
|
borderRadius: '50%',
|
|
1804
2153
|
backgroundColor: 'transparent',
|
|
1805
|
-
boxShadow: "inset 0 0 0 6px " + theme.color.primary["default"],
|
|
2154
|
+
boxShadow: "inset 0 0 0 6px " + theme$1.color.primary["default"],
|
|
1806
2155
|
'input:hover ~ &': {
|
|
1807
|
-
boxShadow: "inset 0 0 0 5px " + theme.color.primary["default"],
|
|
2156
|
+
boxShadow: "inset 0 0 0 5px " + theme$1.color.primary["default"],
|
|
1808
2157
|
backgroundColor: 'transparent'
|
|
1809
2158
|
}
|
|
1810
2159
|
}
|
|
@@ -1815,10 +2164,9 @@ React.forwardRef(function (_ref, ref) {
|
|
|
1815
2164
|
var disabled = _ref.disabled,
|
|
1816
2165
|
checked = _ref.checked,
|
|
1817
2166
|
value = _ref.value,
|
|
1818
|
-
classes = _ref.classes,
|
|
1819
2167
|
restProps = _objectWithoutPropertiesLoose(_ref, ["disabled", "checked", "value", "classes"]);
|
|
1820
2168
|
|
|
1821
|
-
var css = useStyles$
|
|
2169
|
+
var css = useStyles$a();
|
|
1822
2170
|
return React__default.createElement(Radio$1, Object.assign({
|
|
1823
2171
|
ref: ref,
|
|
1824
2172
|
value: value,
|
|
@@ -1843,7 +2191,6 @@ React.forwardRef(function (_ref, ref) {
|
|
|
1843
2191
|
color = _ref.color,
|
|
1844
2192
|
checked = _ref.checked,
|
|
1845
2193
|
value = _ref.value,
|
|
1846
|
-
classes = _ref.classes,
|
|
1847
2194
|
restProps = _objectWithoutPropertiesLoose(_ref, ["disabled", "color", "checked", "value", "classes"]);
|
|
1848
2195
|
|
|
1849
2196
|
return React__default.createElement(Checkbox, Object.assign({
|
|
@@ -1875,10 +2222,10 @@ function _templateObject2$3() {
|
|
|
1875
2222
|
return data;
|
|
1876
2223
|
}
|
|
1877
2224
|
|
|
1878
|
-
function _templateObject$
|
|
2225
|
+
function _templateObject$4() {
|
|
1879
2226
|
var data = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"]);
|
|
1880
2227
|
|
|
1881
|
-
_templateObject$
|
|
2228
|
+
_templateObject$4 = function _templateObject() {
|
|
1882
2229
|
return data;
|
|
1883
2230
|
};
|
|
1884
2231
|
|
|
@@ -1888,12 +2235,12 @@ var StepperContainer =
|
|
|
1888
2235
|
/*#__PURE__*/
|
|
1889
2236
|
emotion.css(
|
|
1890
2237
|
/*#__PURE__*/
|
|
1891
|
-
_templateObject$
|
|
2238
|
+
_templateObject$4());
|
|
1892
2239
|
var ConnectorContainer =
|
|
1893
2240
|
/*#__PURE__*/
|
|
1894
2241
|
emotion.css(
|
|
1895
2242
|
/*#__PURE__*/
|
|
1896
|
-
_templateObject2$3(), theme.color.text.B3);
|
|
2243
|
+
_templateObject2$3(), theme$1.color.text.B3);
|
|
1897
2244
|
|
|
1898
2245
|
var Stepper =
|
|
1899
2246
|
/*#__PURE__*/
|
|
@@ -1916,7 +2263,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
1916
2263
|
var Connector = React__default.createElement("div", {
|
|
1917
2264
|
key: idx + "_connector",
|
|
1918
2265
|
className: ConnectorContainer
|
|
1919
|
-
}, React__default.createElement(Icon, {
|
|
2266
|
+
}, React__default.createElement(Icon$1, {
|
|
1920
2267
|
icon: LongArrowRight
|
|
1921
2268
|
}));
|
|
1922
2269
|
return [].concat(acc, [newStep, Connector]);
|
|
@@ -1927,13 +2274,13 @@ React.forwardRef(function (_ref, ref) {
|
|
|
1927
2274
|
className: StepperContainer
|
|
1928
2275
|
}, restProps), stepsWithConnector);
|
|
1929
2276
|
});
|
|
1930
|
-
var index$
|
|
2277
|
+
var index$4 = /*#__PURE__*/
|
|
1931
2278
|
React.memo(Stepper);
|
|
1932
2279
|
|
|
1933
|
-
function _templateObject$
|
|
2280
|
+
function _templateObject$5() {
|
|
1934
2281
|
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"]);
|
|
1935
2282
|
|
|
1936
|
-
_templateObject$
|
|
2283
|
+
_templateObject$5 = function _templateObject() {
|
|
1937
2284
|
return data;
|
|
1938
2285
|
};
|
|
1939
2286
|
|
|
@@ -1943,14 +2290,14 @@ var SytledStep =
|
|
|
1943
2290
|
/*#__PURE__*/
|
|
1944
2291
|
styled('button')(
|
|
1945
2292
|
/*#__PURE__*/
|
|
1946
|
-
_templateObject$
|
|
2293
|
+
_templateObject$5(), function (props) {
|
|
1947
2294
|
return props.disabled ? 'not-allowed' : 'pointer';
|
|
1948
2295
|
}, function (props) {
|
|
1949
|
-
return props.active ? theme.color.text.B6 : theme.color.text.B3;
|
|
1950
|
-
}, theme.typography.fontSize.span, function (props) {
|
|
1951
|
-
return props.active ? theme.typography.fontWeight.medium : theme.typography.fontWeight.normal;
|
|
2296
|
+
return props.active ? theme$1.color.text.B6 : theme$1.color.text.B3;
|
|
2297
|
+
}, theme$1.typography.fontSize.span, function (props) {
|
|
2298
|
+
return props.active ? theme$1.typography.fontWeight.medium : theme$1.typography.fontWeight.normal;
|
|
1952
2299
|
}, function (props) {
|
|
1953
|
-
return props.active ? theme.color.text.B6 : theme.color.text.B4;
|
|
2300
|
+
return props.active ? theme$1.color.text.B6 : theme$1.color.text.B4;
|
|
1954
2301
|
});
|
|
1955
2302
|
|
|
1956
2303
|
var Step =
|
|
@@ -1977,13 +2324,13 @@ React.forwardRef(function (_ref, ref) {
|
|
|
1977
2324
|
active: active
|
|
1978
2325
|
}, restProps), children);
|
|
1979
2326
|
});
|
|
1980
|
-
var index$
|
|
2327
|
+
var index$5 = /*#__PURE__*/
|
|
1981
2328
|
React.memo(Step);
|
|
1982
2329
|
|
|
1983
|
-
function _templateObject$
|
|
2330
|
+
function _templateObject$6() {
|
|
1984
2331
|
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"]);
|
|
1985
2332
|
|
|
1986
|
-
_templateObject$
|
|
2333
|
+
_templateObject$6 = function _templateObject() {
|
|
1987
2334
|
return data;
|
|
1988
2335
|
};
|
|
1989
2336
|
|
|
@@ -1993,7 +2340,7 @@ var StyledEditableTable =
|
|
|
1993
2340
|
/*#__PURE__*/
|
|
1994
2341
|
emotion.css(
|
|
1995
2342
|
/*#__PURE__*/
|
|
1996
|
-
_templateObject$
|
|
2343
|
+
_templateObject$6());
|
|
1997
2344
|
|
|
1998
2345
|
var EditableTable = function EditableTable(_ref) {
|
|
1999
2346
|
var rows = _ref.rows,
|
|
@@ -2558,19 +2905,18 @@ var ExclamationCircle = {
|
|
|
2558
2905
|
|
|
2559
2906
|
|
|
2560
2907
|
|
|
2561
|
-
var icons =
|
|
2908
|
+
var icons = {
|
|
2562
2909
|
__proto__: null,
|
|
2563
2910
|
error: TimesCircle,
|
|
2564
2911
|
info: InfoCircle,
|
|
2565
2912
|
success: CheckCircle,
|
|
2566
2913
|
warning: ExclamationCircle
|
|
2567
|
-
}
|
|
2914
|
+
};
|
|
2568
2915
|
|
|
2569
|
-
var useStyles$
|
|
2916
|
+
var useStyles$b =
|
|
2570
2917
|
/*#__PURE__*/
|
|
2571
2918
|
makeStyles([['message', function (theme, _ref) {
|
|
2572
|
-
var
|
|
2573
|
-
visible = _ref[1];
|
|
2919
|
+
var visible = _ref[1];
|
|
2574
2920
|
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"];
|
|
2575
2921
|
}], ['icon', function (theme, _ref2) {
|
|
2576
2922
|
var type = _ref2[0];
|
|
@@ -2615,7 +2961,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
2615
2961
|
}
|
|
2616
2962
|
};
|
|
2617
2963
|
|
|
2618
|
-
var styles = useStyles$
|
|
2964
|
+
var styles = useStyles$b([type, visible]);
|
|
2619
2965
|
React.useEffect(function () {
|
|
2620
2966
|
window.setTimeout(function () {
|
|
2621
2967
|
return setVisible(true);
|
|
@@ -2639,7 +2985,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
2639
2985
|
return React__default.createElement("div", {
|
|
2640
2986
|
className: styles.message,
|
|
2641
2987
|
onTransitionEnd: onTransitionEnd
|
|
2642
|
-
}, React__default.createElement(Icon, {
|
|
2988
|
+
}, React__default.createElement(Icon$1, {
|
|
2643
2989
|
className: styles.icon,
|
|
2644
2990
|
icon: icons[type]
|
|
2645
2991
|
}), React__default.createElement("div", {
|
|
@@ -2786,10 +3132,10 @@ function _templateObject2$4() {
|
|
|
2786
3132
|
return data;
|
|
2787
3133
|
}
|
|
2788
3134
|
|
|
2789
|
-
function _templateObject$
|
|
3135
|
+
function _templateObject$7() {
|
|
2790
3136
|
var data = _taggedTemplateLiteralLoose(["\n display: flex;\n"]);
|
|
2791
3137
|
|
|
2792
|
-
_templateObject$
|
|
3138
|
+
_templateObject$7 = function _templateObject() {
|
|
2793
3139
|
return data;
|
|
2794
3140
|
};
|
|
2795
3141
|
|
|
@@ -2802,7 +3148,7 @@ var semanticColors = {
|
|
|
2802
3148
|
warning: '#fef1e1',
|
|
2803
3149
|
error: '#fbd0e0'
|
|
2804
3150
|
};
|
|
2805
|
-
var useStyles$
|
|
3151
|
+
var useStyles$c =
|
|
2806
3152
|
/*#__PURE__*/
|
|
2807
3153
|
styles$5.makeStyles({
|
|
2808
3154
|
root: {
|
|
@@ -2820,7 +3166,7 @@ var MessageWrapper =
|
|
|
2820
3166
|
/*#__PURE__*/
|
|
2821
3167
|
emotion.css(
|
|
2822
3168
|
/*#__PURE__*/
|
|
2823
|
-
_templateObject$
|
|
3169
|
+
_templateObject$7());
|
|
2824
3170
|
var MessageContent =
|
|
2825
3171
|
/*#__PURE__*/
|
|
2826
3172
|
emotion.css(
|
|
@@ -2869,28 +3215,28 @@ var transitionMap = (_transitionMap = {}, _transitionMap[Direction.LEFT] = Trans
|
|
|
2869
3215
|
var semanticIcon = (_semanticIcon = {}, _semanticIcon[Semantic.WARNING] = {
|
|
2870
3216
|
icon:
|
|
2871
3217
|
/*#__PURE__*/
|
|
2872
|
-
React__default.createElement(Icon, {
|
|
3218
|
+
React__default.createElement(Icon$1, {
|
|
2873
3219
|
icon: ExclamationTriangle
|
|
2874
3220
|
}),
|
|
2875
3221
|
color: '#F3973E'
|
|
2876
3222
|
}, _semanticIcon[Semantic.INFO] = {
|
|
2877
3223
|
icon:
|
|
2878
3224
|
/*#__PURE__*/
|
|
2879
|
-
React__default.createElement(Icon, {
|
|
3225
|
+
React__default.createElement(Icon$1, {
|
|
2880
3226
|
icon: InfoCircle
|
|
2881
3227
|
}),
|
|
2882
3228
|
color: '#4DBAE9'
|
|
2883
3229
|
}, _semanticIcon[Semantic.SUCCESS] = {
|
|
2884
3230
|
icon:
|
|
2885
3231
|
/*#__PURE__*/
|
|
2886
|
-
React__default.createElement(Icon, {
|
|
3232
|
+
React__default.createElement(Icon$1, {
|
|
2887
3233
|
icon: CheckCircle
|
|
2888
3234
|
}),
|
|
2889
3235
|
color: '#A0D45E'
|
|
2890
3236
|
}, _semanticIcon[Semantic.ERROR] = {
|
|
2891
3237
|
icon:
|
|
2892
3238
|
/*#__PURE__*/
|
|
2893
|
-
React__default.createElement(Icon, {
|
|
3239
|
+
React__default.createElement(Icon$1, {
|
|
2894
3240
|
icon: TimesCircle
|
|
2895
3241
|
}),
|
|
2896
3242
|
color: '#EC3C63'
|
|
@@ -2904,7 +3250,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
2904
3250
|
semantic = _ref.semantic,
|
|
2905
3251
|
showSemanticIcon = _ref.showSemanticIcon,
|
|
2906
3252
|
MessageIcon = _ref.MessageIcon;
|
|
2907
|
-
var classes = useStyles$
|
|
3253
|
+
var classes = useStyles$c({
|
|
2908
3254
|
semantic: semantic,
|
|
2909
3255
|
withTitle: !!title
|
|
2910
3256
|
});
|
|
@@ -2920,12 +3266,12 @@ React.forwardRef(function (_ref, ref) {
|
|
|
2920
3266
|
color: iconColor
|
|
2921
3267
|
}, MessageIcon), React__default.createElement("div", {
|
|
2922
3268
|
className: MessageContent
|
|
2923
|
-
}, title && React__default.createElement(Typography, {
|
|
3269
|
+
}, title && React__default.createElement(Typography$1, {
|
|
2924
3270
|
variant: "h6",
|
|
2925
3271
|
weight: "medium",
|
|
2926
3272
|
color: "text.B6",
|
|
2927
3273
|
className: TitleStyle
|
|
2928
|
-
}, title), React__default.createElement(Typography, {
|
|
3274
|
+
}, title), React__default.createElement(Typography$1, {
|
|
2929
3275
|
variant: "p",
|
|
2930
3276
|
color: "text.B6"
|
|
2931
3277
|
}, message))),
|
|
@@ -2969,7 +3315,7 @@ React.forwardRef(function (props, ref) {
|
|
|
2969
3315
|
}, props), props.children);
|
|
2970
3316
|
});
|
|
2971
3317
|
|
|
2972
|
-
var Link = {
|
|
3318
|
+
var Link$1 = {
|
|
2973
3319
|
name: 'list-ul-o',
|
|
2974
3320
|
definition: {
|
|
2975
3321
|
viewBox: '0 0 512 512',
|
|
@@ -2997,10 +3343,10 @@ function _templateObject2$5() {
|
|
|
2997
3343
|
return data;
|
|
2998
3344
|
}
|
|
2999
3345
|
|
|
3000
|
-
function _templateObject$
|
|
3346
|
+
function _templateObject$8() {
|
|
3001
3347
|
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"]);
|
|
3002
3348
|
|
|
3003
|
-
_templateObject$
|
|
3349
|
+
_templateObject$8 = function _templateObject() {
|
|
3004
3350
|
return data;
|
|
3005
3351
|
};
|
|
3006
3352
|
|
|
@@ -3062,7 +3408,7 @@ var StyledSideMenu =
|
|
|
3062
3408
|
/*#__PURE__*/
|
|
3063
3409
|
styled.section(
|
|
3064
3410
|
/*#__PURE__*/
|
|
3065
|
-
_templateObject$
|
|
3411
|
+
_templateObject$8(), duration, translateOffset, position, width, theme$1.zIndex.appBar);
|
|
3066
3412
|
var StyledIconWrapper =
|
|
3067
3413
|
/*#__PURE__*/
|
|
3068
3414
|
styled.div(
|
|
@@ -3072,7 +3418,7 @@ var IconStyle =
|
|
|
3072
3418
|
/*#__PURE__*/
|
|
3073
3419
|
emotion.css(
|
|
3074
3420
|
/*#__PURE__*/
|
|
3075
|
-
_templateObject3$2(), theme.color.primary["default"]);
|
|
3421
|
+
_templateObject3$2(), theme$1.color.primary["default"]);
|
|
3076
3422
|
|
|
3077
3423
|
var SlidingSideMenu = function SlidingSideMenu(_ref) {
|
|
3078
3424
|
var children = _ref.children,
|
|
@@ -3120,8 +3466,8 @@ var SlidingSideMenu = function SlidingSideMenu(_ref) {
|
|
|
3120
3466
|
onClick: handleIconClick
|
|
3121
3467
|
}, icon) : React__default.createElement(StyledIconWrapper, {
|
|
3122
3468
|
onClick: handleIconClick
|
|
3123
|
-
}, React__default.createElement(Icon, Object.assign({
|
|
3124
|
-
icon: Link,
|
|
3469
|
+
}, React__default.createElement(Icon$1, Object.assign({
|
|
3470
|
+
icon: Link$1,
|
|
3125
3471
|
className: emotion.cx(IconStyle, IconClassName)
|
|
3126
3472
|
}, restIconProps))), React__default.createElement(StyledSideMenu, Object.assign({
|
|
3127
3473
|
open: open,
|
|
@@ -3135,10 +3481,10 @@ var SlidingSideMenu = function SlidingSideMenu(_ref) {
|
|
|
3135
3481
|
}, restBackdropProps)));
|
|
3136
3482
|
};
|
|
3137
3483
|
|
|
3138
|
-
var index$
|
|
3484
|
+
var index$6 = /*#__PURE__*/
|
|
3139
3485
|
React.memo(SlidingSideMenu);
|
|
3140
3486
|
|
|
3141
|
-
var useStyles$
|
|
3487
|
+
var useStyles$d =
|
|
3142
3488
|
/*#__PURE__*/
|
|
3143
3489
|
styles$5.makeStyles({
|
|
3144
3490
|
root: {
|
|
@@ -3183,7 +3529,7 @@ styles$5.makeStyles({
|
|
|
3183
3529
|
});
|
|
3184
3530
|
|
|
3185
3531
|
var Divider = function Divider(props) {
|
|
3186
|
-
var _useStyles = useStyles$
|
|
3532
|
+
var _useStyles = useStyles$d(props),
|
|
3187
3533
|
root = _useStyles.root;
|
|
3188
3534
|
|
|
3189
3535
|
return React__default.createElement(MuiDivider, Object.assign({}, props, {
|
|
@@ -3193,10 +3539,10 @@ var Divider = function Divider(props) {
|
|
|
3193
3539
|
|
|
3194
3540
|
var boxShadowForMenu = "0 1px 6px 0 rgba(69, 69, 69, 0.2),\n0 1px 5px 0 rgba(69, 69, 69, 0.1)";
|
|
3195
3541
|
|
|
3196
|
-
function _templateObject$
|
|
3542
|
+
function _templateObject$9() {
|
|
3197
3543
|
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 "]);
|
|
3198
3544
|
|
|
3199
|
-
_templateObject$
|
|
3545
|
+
_templateObject$9 = function _templateObject() {
|
|
3200
3546
|
return data;
|
|
3201
3547
|
};
|
|
3202
3548
|
|
|
@@ -3216,39 +3562,45 @@ var muiThemeForSurveyCake =
|
|
|
3216
3562
|
/*#__PURE__*/
|
|
3217
3563
|
function () {
|
|
3218
3564
|
// Side Effects
|
|
3219
|
-
emotion.injectGlobal(_templateObject$
|
|
3565
|
+
emotion.injectGlobal(_templateObject$9());
|
|
3220
3566
|
var BASE_FONT_SIZE = 16;
|
|
3221
|
-
return styles$5.
|
|
3567
|
+
return styles$5.createTheme({
|
|
3222
3568
|
typography: {
|
|
3223
3569
|
fontFamily: ['Helvetica Neue', 'Helvetica', 'Roboto', 'Arial', 'Noto Sans TC', 'Apple LiGothic', '微軟正黑體', 'Microsoft JhengHei', 'sans-serif', 'PingFangTC-Regular'].join(','),
|
|
3224
3570
|
htmlFontSize: BASE_FONT_SIZE,
|
|
3225
3571
|
h1: {
|
|
3226
|
-
fontSize: theme.typography.fontSize.h1 / BASE_FONT_SIZE + "rem",
|
|
3572
|
+
fontSize: theme$1.typography.fontSize.h1 / BASE_FONT_SIZE + "rem",
|
|
3573
|
+
fontWeight: 500,
|
|
3227
3574
|
lineHeight: 44 / BASE_FONT_SIZE + "rem"
|
|
3228
3575
|
},
|
|
3229
3576
|
h2: {
|
|
3230
|
-
fontSize: theme.typography.fontSize.h2 / BASE_FONT_SIZE + "rem",
|
|
3577
|
+
fontSize: theme$1.typography.fontSize.h2 / BASE_FONT_SIZE + "rem",
|
|
3578
|
+
fontWeight: 500,
|
|
3231
3579
|
lineHeight: 40 / BASE_FONT_SIZE + "rem"
|
|
3232
3580
|
},
|
|
3233
3581
|
h3: {
|
|
3234
|
-
fontSize: theme.typography.fontSize.h3 / BASE_FONT_SIZE + "rem",
|
|
3582
|
+
fontSize: theme$1.typography.fontSize.h3 / BASE_FONT_SIZE + "rem",
|
|
3583
|
+
fontWeight: 500,
|
|
3235
3584
|
lineHeight: 36 / BASE_FONT_SIZE + "rem"
|
|
3236
3585
|
},
|
|
3237
3586
|
h4: {
|
|
3238
|
-
fontSize: theme.typography.fontSize.h4 / BASE_FONT_SIZE + "rem",
|
|
3587
|
+
fontSize: theme$1.typography.fontSize.h4 / BASE_FONT_SIZE + "rem",
|
|
3588
|
+
fontWeight: 500,
|
|
3239
3589
|
lineHeight: 32 / BASE_FONT_SIZE + "rem"
|
|
3240
3590
|
},
|
|
3241
3591
|
h5: {
|
|
3242
|
-
fontSize: theme.typography.fontSize.h5 / BASE_FONT_SIZE + "rem",
|
|
3592
|
+
fontSize: theme$1.typography.fontSize.h5 / BASE_FONT_SIZE + "rem",
|
|
3593
|
+
fontWeight: 500,
|
|
3243
3594
|
lineHeight: 28 / BASE_FONT_SIZE + "rem"
|
|
3244
3595
|
},
|
|
3245
3596
|
h6: {
|
|
3246
|
-
fontSize: theme.typography.fontSize.h6 / BASE_FONT_SIZE + "rem",
|
|
3597
|
+
fontSize: theme$1.typography.fontSize.h6 / BASE_FONT_SIZE + "rem",
|
|
3598
|
+
fontWeight: 500,
|
|
3247
3599
|
lineHeight: 24 / BASE_FONT_SIZE + "rem"
|
|
3248
3600
|
},
|
|
3249
3601
|
body1: {
|
|
3250
3602
|
fontFamily: 'PingFangTC-Regular',
|
|
3251
|
-
fontSize: theme.typography.fontSize.p / BASE_FONT_SIZE + "rem",
|
|
3603
|
+
fontSize: theme$1.typography.fontSize.p / BASE_FONT_SIZE + "rem",
|
|
3252
3604
|
lineHeight: 22 / BASE_FONT_SIZE + "rem"
|
|
3253
3605
|
},
|
|
3254
3606
|
body2: {
|
|
@@ -3270,30 +3622,29 @@ function () {
|
|
|
3270
3622
|
},
|
|
3271
3623
|
palette: {
|
|
3272
3624
|
primary: {
|
|
3273
|
-
light: theme.color.primary.hover,
|
|
3274
|
-
main: theme.color.primary["default"],
|
|
3275
|
-
dark: theme.color.primary.active,
|
|
3625
|
+
light: theme$1.color.primary.hover,
|
|
3626
|
+
main: theme$1.color.primary["default"],
|
|
3627
|
+
dark: theme$1.color.primary.active,
|
|
3276
3628
|
contrastText: '#ffffff'
|
|
3277
3629
|
},
|
|
3278
3630
|
secondary: {
|
|
3279
|
-
light: theme.color.secondary.hover,
|
|
3280
|
-
main: theme.color.secondary["default"],
|
|
3281
|
-
dark: theme.color.secondary.active,
|
|
3631
|
+
light: theme$1.color.secondary.hover,
|
|
3632
|
+
main: theme$1.color.secondary["default"],
|
|
3633
|
+
dark: theme$1.color.secondary.active,
|
|
3282
3634
|
contrastText: '#ffffff'
|
|
3283
3635
|
},
|
|
3284
3636
|
action: {
|
|
3285
3637
|
hoverOpacity: 0.25
|
|
3286
3638
|
},
|
|
3287
3639
|
error: {
|
|
3288
|
-
main: theme.color.semantic.error
|
|
3640
|
+
main: theme$1.color.semantic.error
|
|
3289
3641
|
}
|
|
3290
3642
|
},
|
|
3291
3643
|
props: {
|
|
3292
3644
|
// Name of the component ⚛️
|
|
3293
3645
|
MuiButtonBase: {
|
|
3294
3646
|
// The default props to change
|
|
3295
|
-
disableRipple: true
|
|
3296
|
-
|
|
3647
|
+
disableRipple: true
|
|
3297
3648
|
},
|
|
3298
3649
|
MuiSelect: {
|
|
3299
3650
|
MenuProps: {
|
|
@@ -3320,25 +3671,29 @@ function () {
|
|
|
3320
3671
|
MuiButton: {
|
|
3321
3672
|
root: {
|
|
3322
3673
|
minWidth: 'none',
|
|
3323
|
-
|
|
3674
|
+
padding: '7px 20px',
|
|
3675
|
+
color: theme$1.color.text.B3,
|
|
3676
|
+
fontWeight: 400,
|
|
3677
|
+
fontSize: 14 / BASE_FONT_SIZE + "rem",
|
|
3678
|
+
lineHeight: 22 / BASE_FONT_SIZE + "rem",
|
|
3324
3679
|
'&:hover': {
|
|
3325
|
-
backgroundColor: theme.color.text.HB
|
|
3680
|
+
backgroundColor: theme$1.color.text.HB
|
|
3326
3681
|
},
|
|
3327
3682
|
'&:disabled': {
|
|
3328
|
-
color: theme.color.text.B2,
|
|
3329
|
-
backgroundColor: theme.color.text.F
|
|
3683
|
+
color: theme$1.color.text.B2,
|
|
3684
|
+
backgroundColor: theme$1.color.text.F
|
|
3330
3685
|
}
|
|
3331
3686
|
},
|
|
3332
3687
|
// Name of the rule
|
|
3333
3688
|
contained: {
|
|
3334
3689
|
// Some CSS
|
|
3335
|
-
backgroundColor: theme.color.text.HB,
|
|
3336
|
-
color: theme.color.text.B4,
|
|
3690
|
+
backgroundColor: theme$1.color.text.HB,
|
|
3691
|
+
color: theme$1.color.text.B4,
|
|
3337
3692
|
boxShadow: 'none',
|
|
3338
3693
|
'&:hover': {
|
|
3339
3694
|
boxShadow: 'none',
|
|
3340
|
-
backgroundColor: theme.color.text.HB,
|
|
3341
|
-
color: theme.color.text.B5
|
|
3695
|
+
backgroundColor: theme$1.color.text.HB,
|
|
3696
|
+
color: theme$1.color.text.B5
|
|
3342
3697
|
},
|
|
3343
3698
|
'&:active': {
|
|
3344
3699
|
boxShadow: 'none'
|
|
@@ -3347,26 +3702,49 @@ function () {
|
|
|
3347
3702
|
boxShadow: 'none'
|
|
3348
3703
|
}
|
|
3349
3704
|
},
|
|
3350
|
-
outlinedPrimary: {
|
|
3351
|
-
borderColor: theme.color.primary["default"]
|
|
3352
|
-
},
|
|
3353
3705
|
containedPrimary: {
|
|
3354
3706
|
'&:disabled': {
|
|
3355
|
-
color: theme.color.text.white
|
|
3707
|
+
color: theme$1.color.text.white
|
|
3356
3708
|
},
|
|
3357
3709
|
'&:hover': {
|
|
3358
3710
|
boxShadow: 'none',
|
|
3359
|
-
color: theme.color.text.white
|
|
3711
|
+
color: theme$1.color.text.white
|
|
3360
3712
|
}
|
|
3361
3713
|
},
|
|
3362
3714
|
containedSecondary: {
|
|
3363
3715
|
'&:disabled': {
|
|
3364
|
-
color: theme.color.text.white
|
|
3716
|
+
color: theme$1.color.text.white
|
|
3365
3717
|
},
|
|
3366
3718
|
'&:hover': {
|
|
3367
3719
|
boxShadow: 'none',
|
|
3368
|
-
color: theme.color.text.white
|
|
3720
|
+
color: theme$1.color.text.white
|
|
3369
3721
|
}
|
|
3722
|
+
},
|
|
3723
|
+
containedSizeSmall: {
|
|
3724
|
+
padding: '5px 16px',
|
|
3725
|
+
fontSize: 14 / BASE_FONT_SIZE + "rem",
|
|
3726
|
+
lineHeight: 22 / BASE_FONT_SIZE + "rem"
|
|
3727
|
+
},
|
|
3728
|
+
containedSizeLarge: {
|
|
3729
|
+
padding: '8px 24px',
|
|
3730
|
+
fontSize: 16 / BASE_FONT_SIZE + "rem",
|
|
3731
|
+
lineHeight: 24 / BASE_FONT_SIZE + "rem"
|
|
3732
|
+
},
|
|
3733
|
+
outlined: {
|
|
3734
|
+
padding: '7px 20px'
|
|
3735
|
+
},
|
|
3736
|
+
outlinedPrimary: {
|
|
3737
|
+
borderColor: theme$1.color.primary["default"]
|
|
3738
|
+
},
|
|
3739
|
+
outlinedSizeSmall: {
|
|
3740
|
+
padding: '5px 16px',
|
|
3741
|
+
fontSize: 14 / BASE_FONT_SIZE + "rem",
|
|
3742
|
+
lineHeight: 22 / BASE_FONT_SIZE + "rem"
|
|
3743
|
+
},
|
|
3744
|
+
outlinedSizeLarge: {
|
|
3745
|
+
padding: '8px 24px',
|
|
3746
|
+
fontSize: 16 / BASE_FONT_SIZE + "rem",
|
|
3747
|
+
lineHeight: 24 / BASE_FONT_SIZE + "rem"
|
|
3370
3748
|
}
|
|
3371
3749
|
},
|
|
3372
3750
|
MuiChip: {
|
|
@@ -3414,17 +3792,17 @@ function () {
|
|
|
3414
3792
|
root: {
|
|
3415
3793
|
borderRadius: '0',
|
|
3416
3794
|
'&$selected': {
|
|
3417
|
-
backgroundColor: theme.color.primary.lightBackground,
|
|
3418
|
-
color: theme.color.primary["default"],
|
|
3795
|
+
backgroundColor: theme$1.color.primary.lightBackground,
|
|
3796
|
+
color: theme$1.color.primary["default"],
|
|
3419
3797
|
'&:hover': {
|
|
3420
|
-
backgroundColor: theme.color.primary.lightBackground
|
|
3798
|
+
backgroundColor: theme$1.color.primary.lightBackground
|
|
3421
3799
|
}
|
|
3422
3800
|
}
|
|
3423
3801
|
},
|
|
3424
3802
|
button: {
|
|
3425
3803
|
'&:hover': {
|
|
3426
3804
|
backgroundColor: 'white',
|
|
3427
|
-
color: theme.color.primary["default"]
|
|
3805
|
+
color: theme$1.color.primary["default"]
|
|
3428
3806
|
}
|
|
3429
3807
|
}
|
|
3430
3808
|
},
|
|
@@ -3461,11 +3839,11 @@ function () {
|
|
|
3461
3839
|
MuiOutlinedInput: {
|
|
3462
3840
|
root: {
|
|
3463
3841
|
'&:hover $notchedOutline': {
|
|
3464
|
-
borderColor: theme.color.primary["default"]
|
|
3842
|
+
borderColor: theme$1.color.primary["default"]
|
|
3465
3843
|
},
|
|
3466
3844
|
'&$focused $notchedOutline': {
|
|
3467
3845
|
borderWidth: '1px',
|
|
3468
|
-
boxShadow: "0 0 2px 0 " + theme.color.primary["default"]
|
|
3846
|
+
boxShadow: "0 0 2px 0 " + theme$1.color.primary["default"]
|
|
3469
3847
|
}
|
|
3470
3848
|
},
|
|
3471
3849
|
input: {
|
|
@@ -3494,17 +3872,17 @@ function () {
|
|
|
3494
3872
|
},
|
|
3495
3873
|
MuiTooltip: {
|
|
3496
3874
|
tooltip: {
|
|
3497
|
-
backgroundColor: theme.color.text.B6,
|
|
3498
|
-
fontSize: theme.typography.fontSize.span
|
|
3875
|
+
backgroundColor: theme$1.color.text.B6,
|
|
3876
|
+
fontSize: theme$1.typography.fontSize.span
|
|
3499
3877
|
},
|
|
3500
3878
|
arrow: {
|
|
3501
|
-
color: theme.color.text.B6
|
|
3879
|
+
color: theme$1.color.text.B6
|
|
3502
3880
|
}
|
|
3503
3881
|
},
|
|
3504
3882
|
MuiCardHeader: {
|
|
3505
3883
|
root: {
|
|
3506
3884
|
padding: '13px 24px',
|
|
3507
|
-
backgroundColor: theme.color.primary["default"]
|
|
3885
|
+
backgroundColor: theme$1.color.primary["default"]
|
|
3508
3886
|
}
|
|
3509
3887
|
},
|
|
3510
3888
|
MuiCardContent: {
|
|
@@ -3516,7 +3894,7 @@ function () {
|
|
|
3516
3894
|
root: {
|
|
3517
3895
|
padding: '13px 24px',
|
|
3518
3896
|
backgroundColor: '#fafafa',
|
|
3519
|
-
borderTop: "1px solid " + theme.color.text.HB
|
|
3897
|
+
borderTop: "1px solid " + theme$1.color.text.HB
|
|
3520
3898
|
}
|
|
3521
3899
|
},
|
|
3522
3900
|
MuiSnackbarContent: {
|
|
@@ -3527,7 +3905,7 @@ function () {
|
|
|
3527
3905
|
},
|
|
3528
3906
|
MuiTabs: {
|
|
3529
3907
|
indicator: {
|
|
3530
|
-
backgroundColor: theme.color.primary["default"]
|
|
3908
|
+
backgroundColor: theme$1.color.primary["default"]
|
|
3531
3909
|
}
|
|
3532
3910
|
}
|
|
3533
3911
|
}
|
|
@@ -4021,7 +4399,7 @@ var AngleRight$1 = {
|
|
|
4021
4399
|
}
|
|
4022
4400
|
};
|
|
4023
4401
|
|
|
4024
|
-
var Link$
|
|
4402
|
+
var Link$2 = {
|
|
4025
4403
|
name: 'link-o',
|
|
4026
4404
|
definition: {
|
|
4027
4405
|
viewBox: '0 0 512 512',
|
|
@@ -4125,7 +4503,7 @@ var QuestionCircleOutline = {
|
|
|
4125
4503
|
}
|
|
4126
4504
|
};
|
|
4127
4505
|
|
|
4128
|
-
var Facebook = {
|
|
4506
|
+
var Facebook$1 = {
|
|
4129
4507
|
name: 'facebook',
|
|
4130
4508
|
definition: {
|
|
4131
4509
|
viewBox: '0 0 512 512',
|
|
@@ -4264,11 +4642,11 @@ var dashboard = {
|
|
|
4264
4642
|
|
|
4265
4643
|
|
|
4266
4644
|
|
|
4267
|
-
var enWording =
|
|
4645
|
+
var enWording = {
|
|
4268
4646
|
__proto__: null,
|
|
4269
4647
|
pricing: pricing,
|
|
4270
4648
|
dashboard: dashboard
|
|
4271
|
-
}
|
|
4649
|
+
};
|
|
4272
4650
|
|
|
4273
4651
|
var pricing$1 = {
|
|
4274
4652
|
title: '選擇方案',
|
|
@@ -4361,11 +4739,11 @@ var dashboard$1 = {
|
|
|
4361
4739
|
|
|
4362
4740
|
|
|
4363
4741
|
|
|
4364
|
-
var twWording =
|
|
4742
|
+
var twWording = {
|
|
4365
4743
|
__proto__: null,
|
|
4366
4744
|
pricing: pricing$1,
|
|
4367
4745
|
dashboard: dashboard$1
|
|
4368
|
-
}
|
|
4746
|
+
};
|
|
4369
4747
|
|
|
4370
4748
|
// TODO: Move to wording repo
|
|
4371
4749
|
var WordingContext =
|
|
@@ -4397,20 +4775,20 @@ exports.ArrowRight = ArrowRight;
|
|
|
4397
4775
|
exports.Avatar = Avatar;
|
|
4398
4776
|
exports.Backdrop = Backdrop;
|
|
4399
4777
|
exports.BrowserLight = BrowserLight;
|
|
4400
|
-
exports.Button = Button;
|
|
4778
|
+
exports.Button = Button$1;
|
|
4401
4779
|
exports.Card = Card;
|
|
4402
4780
|
exports.CardActionArea = CardActionArea;
|
|
4403
4781
|
exports.CardActions = CardActions;
|
|
4404
4782
|
exports.CardContent = CardContent;
|
|
4405
4783
|
exports.CardHeader = CardHeader;
|
|
4406
4784
|
exports.Checkbox = MuiCheckbox;
|
|
4407
|
-
exports.Chip = index;
|
|
4785
|
+
exports.Chip = index$2;
|
|
4408
4786
|
exports.DatePicker = DatePicker;
|
|
4409
4787
|
exports.Divider = Divider;
|
|
4410
4788
|
exports.EditLight = EditLight;
|
|
4411
4789
|
exports.EditableTable = EditableTable;
|
|
4412
4790
|
exports.GroupSelect = GroupSelect;
|
|
4413
|
-
exports.Icon = Icon;
|
|
4791
|
+
exports.Icon = Icon$1;
|
|
4414
4792
|
exports.InputSlider = InputSlider;
|
|
4415
4793
|
exports.KeyboardDatePicker = KeyboardDatePicker;
|
|
4416
4794
|
exports.ListUlFilled = ListUl;
|
|
@@ -4420,7 +4798,7 @@ exports.MenuList = MenuList;
|
|
|
4420
4798
|
exports.Message = api;
|
|
4421
4799
|
exports.Modal = Modal;
|
|
4422
4800
|
exports.MuiThemeProvider = MuiThemeProvider;
|
|
4423
|
-
exports.Pagination = index$
|
|
4801
|
+
exports.Pagination = index$3;
|
|
4424
4802
|
exports.Paper = Paper;
|
|
4425
4803
|
exports.Popper = Popper;
|
|
4426
4804
|
exports.Portal = Portal;
|
|
@@ -4428,17 +4806,18 @@ exports.QuestionCircleOutline = QuestionCircleOutline;
|
|
|
4428
4806
|
exports.Radio = MuiRadio;
|
|
4429
4807
|
exports.RadioGroup = Radio;
|
|
4430
4808
|
exports.Select = Select;
|
|
4431
|
-
exports.SlidingSideMenu = index$
|
|
4809
|
+
exports.SlidingSideMenu = index$6;
|
|
4432
4810
|
exports.Snackbar = Snackbar;
|
|
4433
|
-
exports.Step = index$
|
|
4434
|
-
exports.Stepper = index$
|
|
4811
|
+
exports.Step = index$5;
|
|
4812
|
+
exports.Stepper = index$4;
|
|
4435
4813
|
exports.Switch = Switch;
|
|
4436
4814
|
exports.Tab = Tab;
|
|
4437
4815
|
exports.Tabs = Tabs;
|
|
4438
4816
|
exports.Tag = Tag;
|
|
4439
4817
|
exports.ToggleButtonGroup = ToggleButtonGroup;
|
|
4440
4818
|
exports.Tooltip = Tooltip;
|
|
4441
|
-
exports.Typography = Typography;
|
|
4819
|
+
exports.Typography = Typography$1;
|
|
4820
|
+
exports.V2 = index$1;
|
|
4442
4821
|
exports.WordingProvider = WordingProvider;
|
|
4443
4822
|
exports.analyticsLight = AnalyticsLight;
|
|
4444
4823
|
exports.angleLeftFilled = AngleLeft;
|
|
@@ -4465,14 +4844,14 @@ exports.clockOutlined = Clock;
|
|
|
4465
4844
|
exports.codeOutlined = Code;
|
|
4466
4845
|
exports.cogLight = CogLight;
|
|
4467
4846
|
exports.commentAltLinesOutlined = CommentAltLines;
|
|
4468
|
-
exports.defaultTheme = theme;
|
|
4847
|
+
exports.defaultTheme = theme$1;
|
|
4469
4848
|
exports.ellipsisHFilled = EllipsisH;
|
|
4470
4849
|
exports.ellipsisVFilled = EllipsisV;
|
|
4471
4850
|
exports.exclamationCircleFilled = ExclamationCircle;
|
|
4472
4851
|
exports.exclamationCircleOutlined = ExclamationCircle$1;
|
|
4473
4852
|
exports.exclamationTriangleFilled = ExclamationTriangle;
|
|
4474
4853
|
exports.externalLinkLight = ExternalLinkLight;
|
|
4475
|
-
exports.facebookBrand = Facebook;
|
|
4854
|
+
exports.facebookBrand = Facebook$1;
|
|
4476
4855
|
exports.facebookIn = FacebookIn;
|
|
4477
4856
|
exports.fileAltOutlined = FileAlt;
|
|
4478
4857
|
exports.fileCertificateOutlined = FileCertificate;
|
|
@@ -4486,10 +4865,10 @@ exports.hexToRgba = hexToRgba;
|
|
|
4486
4865
|
exports.infoCircleFilled = InfoCircle;
|
|
4487
4866
|
exports.infoCircleOutlined = InfoCircle$1;
|
|
4488
4867
|
exports.linkLight = LinkLight;
|
|
4489
|
-
exports.linkOutlined = Link$
|
|
4868
|
+
exports.linkOutlined = Link$2;
|
|
4490
4869
|
exports.linkedinBrand = Linkedin;
|
|
4491
4870
|
exports.linkedinIn = LinkedinIn;
|
|
4492
|
-
exports.listUlOutlined = Link;
|
|
4871
|
+
exports.listUlOutlined = Link$1;
|
|
4493
4872
|
exports.longArrowRightOutlined = LongArrowRight;
|
|
4494
4873
|
exports.makeStyles = makeStyles;
|
|
4495
4874
|
exports.minusLightFilled = MinusLight;
|