quicksnack 3.34.1 → 3.34.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/dist/bundle.js +160 -160
- package/dist/bundle.min.js +106 -106
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var
|
|
4
|
+
var styledComponents = require('styled-components');
|
|
5
5
|
var polished = require('polished');
|
|
6
6
|
var isPropValid = require('@emotion/is-prop-valid');
|
|
7
7
|
var clsx = require('clsx');
|
|
@@ -170,7 +170,7 @@ const theme = {
|
|
|
170
170
|
// Fix for styled-components with react-18.
|
|
171
171
|
// Can be removed once this issue is resolved.
|
|
172
172
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/59765#issuecomment-1092938253
|
|
173
|
-
const ThemeProviderFixed =
|
|
173
|
+
const ThemeProviderFixed = styledComponents.ThemeProvider;
|
|
174
174
|
const UiProvider = ({ children, theme: themeOverride }) => (React.createElement(ThemeProviderFixed, { theme: themeOverride || theme }, children));
|
|
175
175
|
|
|
176
176
|
const noop$1 = () => { };
|
|
@@ -191,7 +191,7 @@ const UiStateProvider = ({ children }) => {
|
|
|
191
191
|
} }, children));
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
-
const Wrapper$d = styled.div `
|
|
194
|
+
const Wrapper$d = styledComponents.styled.div `
|
|
195
195
|
display: flex;
|
|
196
196
|
flex-direction: column;
|
|
197
197
|
height: 100%;
|
|
@@ -203,7 +203,7 @@ const UiWrapper = ({ theme, children }) => (React.createElement(UiProvider, { th
|
|
|
203
203
|
React.createElement(UiStateProvider, null,
|
|
204
204
|
React.createElement(Wrapper$d, null, children))));
|
|
205
205
|
|
|
206
|
-
const slideInFromTop =
|
|
206
|
+
const slideInFromTop = styledComponents.keyframes `
|
|
207
207
|
0% {
|
|
208
208
|
opacity: 0;
|
|
209
209
|
transform: translateY(-5px);
|
|
@@ -213,34 +213,34 @@ const slideInFromTop = styled.keyframes `
|
|
|
213
213
|
transform: translateY(0);
|
|
214
214
|
}
|
|
215
215
|
`;
|
|
216
|
-
const SlideInFromTop = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
216
|
+
const SlideInFromTop = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
217
217
|
animation: ${slideInFromTop} ${props => props.speed || '.3s'} ease-in 0s 1;
|
|
218
218
|
`;
|
|
219
219
|
|
|
220
|
-
const sharedStyles$1 =
|
|
220
|
+
const sharedStyles$1 = styledComponents.css `
|
|
221
221
|
margin: 0 0;
|
|
222
222
|
padding: 0 0;
|
|
223
223
|
font-weight: 700;
|
|
224
224
|
line-height: 1.28571429em;
|
|
225
225
|
`;
|
|
226
|
-
const H1 = styled.h1.withConfig({ shouldForwardProp: isPropValid }) `
|
|
226
|
+
const H1 = styledComponents.styled.h1.withConfig({ shouldForwardProp: isPropValid }) `
|
|
227
227
|
font-size: 2rem;
|
|
228
228
|
min-height: 1rem;
|
|
229
229
|
${sharedStyles$1}
|
|
230
230
|
`;
|
|
231
|
-
const H2 = styled.h2.withConfig({ shouldForwardProp: isPropValid }) `
|
|
231
|
+
const H2 = styledComponents.styled.h2.withConfig({ shouldForwardProp: isPropValid }) `
|
|
232
232
|
font-size: 1.71428571rem;
|
|
233
233
|
${sharedStyles$1}
|
|
234
234
|
`;
|
|
235
|
-
const H3 = styled.h3.withConfig({ shouldForwardProp: isPropValid }) `
|
|
235
|
+
const H3 = styledComponents.styled.h3.withConfig({ shouldForwardProp: isPropValid }) `
|
|
236
236
|
font-size: 1.28571429rem;
|
|
237
237
|
${sharedStyles$1}
|
|
238
238
|
`;
|
|
239
|
-
const H4 = styled.h4.withConfig({ shouldForwardProp: isPropValid }) `
|
|
239
|
+
const H4 = styledComponents.styled.h4.withConfig({ shouldForwardProp: isPropValid }) `
|
|
240
240
|
font-size: 1.07142857rem;
|
|
241
241
|
${sharedStyles$1}
|
|
242
242
|
`;
|
|
243
|
-
const H5 = styled.h5.withConfig({ shouldForwardProp: isPropValid }) `
|
|
243
|
+
const H5 = styledComponents.styled.h5.withConfig({ shouldForwardProp: isPropValid }) `
|
|
244
244
|
font-size: 1rem;
|
|
245
245
|
${sharedStyles$1}
|
|
246
246
|
`;
|
|
@@ -258,7 +258,7 @@ const Header = (_a) => {
|
|
|
258
258
|
return React.createElement(Component, Object.assign({}, restProps));
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
const Paragraph = styled.p `
|
|
261
|
+
const Paragraph = styledComponents.styled.p `
|
|
262
262
|
font-size: 14px;
|
|
263
263
|
line-height: 20px;
|
|
264
264
|
// margin: 0 0 1em;
|
|
@@ -280,7 +280,7 @@ const BreakPointValues = {
|
|
|
280
280
|
/**
|
|
281
281
|
* Wraps given cssRules in the corresponding media-query:
|
|
282
282
|
*/
|
|
283
|
-
const mq = (bk, cssRules) =>
|
|
283
|
+
const mq = (bk, cssRules) => styledComponents.css `
|
|
284
284
|
@media screen and (min-width: ${BreakPointValues[bk]}px) {
|
|
285
285
|
${cssRules}
|
|
286
286
|
}
|
|
@@ -322,32 +322,32 @@ const responsiveProps = (props, map) => {
|
|
|
322
322
|
];
|
|
323
323
|
};
|
|
324
324
|
|
|
325
|
-
const Box = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
325
|
+
const Box = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
326
326
|
box-sizing: border-box;
|
|
327
327
|
|
|
328
328
|
${(props) => responsiveProps(props, {
|
|
329
|
-
"p": unit =>
|
|
330
|
-
"pt": unit =>
|
|
331
|
-
"pr": unit =>
|
|
332
|
-
"pb": unit =>
|
|
333
|
-
"pl": unit =>
|
|
334
|
-
"m": unit =>
|
|
335
|
-
"mt": unit =>
|
|
336
|
-
"mr": unit =>
|
|
337
|
-
"mb": unit =>
|
|
338
|
-
"ml": unit =>
|
|
339
|
-
"display": unit =>
|
|
340
|
-
"flexGrow": unit =>
|
|
341
|
-
"flexShrink": unit =>
|
|
342
|
-
"flexDirection": unit =>
|
|
343
|
-
"alignItems": unit =>
|
|
344
|
-
"textAlign": unit =>
|
|
345
|
-
"justifyContent": unit =>
|
|
346
|
-
"width": unit =>
|
|
329
|
+
"p": unit => styledComponents.css `padding: ${props.theme.spacing(unit)};`,
|
|
330
|
+
"pt": unit => styledComponents.css `padding-top: ${props.theme.spacing(unit)};`,
|
|
331
|
+
"pr": unit => styledComponents.css `padding-right: ${props.theme.spacing(unit)};`,
|
|
332
|
+
"pb": unit => styledComponents.css `padding-bottom: ${props.theme.spacing(unit)};`,
|
|
333
|
+
"pl": unit => styledComponents.css `padding-left: ${props.theme.spacing(unit)};`,
|
|
334
|
+
"m": unit => styledComponents.css `margin: ${props.theme.spacing(unit)};`,
|
|
335
|
+
"mt": unit => styledComponents.css `margin-top: ${props.theme.spacing(unit)};`,
|
|
336
|
+
"mr": unit => styledComponents.css `margin-right: ${props.theme.spacing(unit)};`,
|
|
337
|
+
"mb": unit => styledComponents.css `margin-bottom: ${props.theme.spacing(unit)};`,
|
|
338
|
+
"ml": unit => styledComponents.css `margin-left: ${props.theme.spacing(unit)};`,
|
|
339
|
+
"display": unit => styledComponents.css `display: ${unit};`,
|
|
340
|
+
"flexGrow": unit => styledComponents.css `flex-grow: ${unit};`,
|
|
341
|
+
"flexShrink": unit => styledComponents.css `flex-shrink: ${unit};`,
|
|
342
|
+
"flexDirection": unit => styledComponents.css `flex-direction: ${unit};`,
|
|
343
|
+
"alignItems": unit => styledComponents.css `align-items: ${unit};`,
|
|
344
|
+
"textAlign": unit => styledComponents.css `text-align: ${unit};`,
|
|
345
|
+
"justifyContent": unit => styledComponents.css `justify-content: ${unit};`,
|
|
346
|
+
"width": unit => styledComponents.css `width: ${typeof unit === 'number' ? props.theme.spacing(unit) : unit};`,
|
|
347
347
|
})}
|
|
348
348
|
`;
|
|
349
349
|
|
|
350
|
-
const Wrapper$c = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
350
|
+
const Wrapper$c = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
351
351
|
border-radius: 4px;
|
|
352
352
|
border: 1px solid ${props => props.theme.palette.pane[props.variant].main.idle.border};
|
|
353
353
|
background-color: ${props => props.theme.palette.pane[props.variant].main.idle.background};
|
|
@@ -360,12 +360,12 @@ const Alert = ({ children, title, variant = "basic" }) => (React.createElement(W
|
|
|
360
360
|
children && React.createElement(Paragraph, null, children))));
|
|
361
361
|
|
|
362
362
|
const green = '#20c997';
|
|
363
|
-
const Mask = styled.g `
|
|
363
|
+
const Mask = styledComponents.styled.g `
|
|
364
364
|
fill: none;
|
|
365
365
|
stroke: ${green};
|
|
366
366
|
stroke-width: 10;
|
|
367
367
|
`;
|
|
368
|
-
const polyLineAnimation =
|
|
368
|
+
const polyLineAnimation = styledComponents.keyframes `
|
|
369
369
|
0% {
|
|
370
370
|
stroke-dashoffset: 100px
|
|
371
371
|
}
|
|
@@ -373,14 +373,14 @@ const polyLineAnimation = styled.keyframes `
|
|
|
373
373
|
stroke-dashoffset: 0px
|
|
374
374
|
}
|
|
375
375
|
`;
|
|
376
|
-
const Polyline = styled.polyline `
|
|
376
|
+
const Polyline = styledComponents.styled.polyline `
|
|
377
377
|
stroke-dasharray: 100px, 100px;
|
|
378
378
|
stroke-dashoffset: 200px;
|
|
379
379
|
animation: ${polyLineAnimation} 0.42s ease-in-out 0.8s backwards;
|
|
380
380
|
stroke: ${green};
|
|
381
381
|
stroke-width: 10;
|
|
382
382
|
`;
|
|
383
|
-
const circleAnimation =
|
|
383
|
+
const circleAnimation = styledComponents.keyframes `
|
|
384
384
|
0% {
|
|
385
385
|
stroke-dashoffset: 480px
|
|
386
386
|
}
|
|
@@ -388,14 +388,14 @@ const circleAnimation = styled.keyframes `
|
|
|
388
388
|
stroke-dashoffset: 960px
|
|
389
389
|
}
|
|
390
390
|
`;
|
|
391
|
-
const Circle$1 = styled.circle `
|
|
391
|
+
const Circle$1 = styledComponents.styled.circle `
|
|
392
392
|
stroke-dasharray: 480px, 480px;
|
|
393
393
|
stroke-dashoffset: 960px;
|
|
394
394
|
animation: ${circleAnimation} 0.6s ease-in-out backwards;
|
|
395
395
|
stroke: ${green};
|
|
396
396
|
stroke-width: 10;
|
|
397
397
|
`;
|
|
398
|
-
const circleColoredAnimation =
|
|
398
|
+
const circleColoredAnimation = styledComponents.keyframes `
|
|
399
399
|
0% {
|
|
400
400
|
opacity:0;
|
|
401
401
|
}
|
|
@@ -403,7 +403,7 @@ const circleColoredAnimation = styled.keyframes `
|
|
|
403
403
|
opacity:100;
|
|
404
404
|
}
|
|
405
405
|
`;
|
|
406
|
-
const CircleColored = styled.circle `
|
|
406
|
+
const CircleColored = styledComponents.styled.circle `
|
|
407
407
|
stroke-dasharray: 480px, 480px;
|
|
408
408
|
stroke-dashoffset: 960px;
|
|
409
409
|
animation: ${circleColoredAnimation} 1.2s ease-in-out 1.4s backwards;
|
|
@@ -415,13 +415,13 @@ const AnimatedCheckmark = () => (React.createElement("svg", { viewBox: "0 0 154
|
|
|
415
415
|
React.createElement(CircleColored, { cx: '77', cy: '77', r: '72' }),
|
|
416
416
|
React.createElement(Polyline, { points: "43.5,77.8 63.7,97.9 112.2,49.4" }))));
|
|
417
417
|
|
|
418
|
-
const BreadCrumbs = styled.ul `
|
|
418
|
+
const BreadCrumbs = styledComponents.styled.ul `
|
|
419
419
|
list-style: none;
|
|
420
420
|
padding: 0;
|
|
421
421
|
margin: 0;
|
|
422
422
|
display:flex;
|
|
423
423
|
`;
|
|
424
|
-
const Crumb = styled.li `
|
|
424
|
+
const Crumb = styledComponents.styled.li `
|
|
425
425
|
display: flex;
|
|
426
426
|
|
|
427
427
|
&:not(:last-of-type):after {
|
|
@@ -434,28 +434,28 @@ const Crumb = styled.li `
|
|
|
434
434
|
}
|
|
435
435
|
`;
|
|
436
436
|
|
|
437
|
-
const Wrapper$b = styled.div `
|
|
437
|
+
const Wrapper$b = styledComponents.styled.div `
|
|
438
438
|
background-color: ${props => props.theme.palette.common.white};
|
|
439
439
|
border-radius: 4px;
|
|
440
440
|
border: 1px solid #DEDEDF;
|
|
441
441
|
box-shadow: 0px 2px 3px rgb(0 0 0 / 6%);
|
|
442
442
|
`;
|
|
443
|
-
const Meta = styled(Box) `
|
|
443
|
+
const Meta = styledComponents.styled(Box) `
|
|
444
444
|
font-size: 12px;
|
|
445
445
|
font-style: italic;
|
|
446
446
|
`;
|
|
447
|
-
const Title = styled(Box) `
|
|
448
|
-
${(props) => props.panelHasChildren &&
|
|
447
|
+
const Title = styledComponents.styled(Box) `
|
|
448
|
+
${(props) => props.panelHasChildren && styledComponents.css `
|
|
449
449
|
border-radius: 4px;
|
|
450
450
|
border-bottom: 1px solid rgba(34,36,38,.15);
|
|
451
451
|
`}
|
|
452
452
|
|
|
453
|
-
${(props) => !!props.onClick &&
|
|
453
|
+
${(props) => !!props.onClick && styledComponents.css `
|
|
454
454
|
cursor: pointer;
|
|
455
455
|
user-select: none;
|
|
456
456
|
`}
|
|
457
457
|
`;
|
|
458
|
-
const Footer$1 = styled(Box) `
|
|
458
|
+
const Footer$1 = styledComponents.styled(Box) `
|
|
459
459
|
border-radius: 4px;
|
|
460
460
|
background-color: #FFF;
|
|
461
461
|
border-top: 1px solid rgba(34,36,38,.15);
|
|
@@ -469,16 +469,16 @@ const Panel = ({ children, className, title, titleAction, titleMeta, onClickTitl
|
|
|
469
469
|
children && (React.createElement(Box, { p: p }, children)),
|
|
470
470
|
footer && (React.createElement(Footer$1, { p: 3 }, footer))));
|
|
471
471
|
|
|
472
|
-
const Animation = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
472
|
+
const Animation = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
473
473
|
transform: ${props => props.isOpen ? `translate(0)` : `translateY(-101%)`};
|
|
474
474
|
transition-duration: ${props => props.duration || 0.25}s;
|
|
475
475
|
transition-property: transform;
|
|
476
476
|
}
|
|
477
477
|
`;
|
|
478
|
-
const Wrapper$a = styled.div `
|
|
478
|
+
const Wrapper$a = styledComponents.styled.div `
|
|
479
479
|
overflow: hidden;
|
|
480
480
|
`;
|
|
481
|
-
const Hider = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
481
|
+
const Hider = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
482
482
|
display: ${props => props.isHidden ? 'none' : 'block'};
|
|
483
483
|
`;
|
|
484
484
|
// Returns the boolean value in the next tick.
|
|
@@ -511,11 +511,11 @@ const SlideOpen = ({ isOpen, children, duration, onChange }) => {
|
|
|
511
511
|
React.createElement(Hider, { isHidden: isHidden }, children))));
|
|
512
512
|
};
|
|
513
513
|
|
|
514
|
-
const TitleActionWrapper = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
514
|
+
const TitleActionWrapper = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
515
515
|
transform: scaleY( ${props => props.isOpen ? '-1' : '1'} );
|
|
516
516
|
`;
|
|
517
|
-
const StyledPanel$2 = styled(Panel) `
|
|
518
|
-
${props => !props.isOpen &&
|
|
517
|
+
const StyledPanel$2 = styledComponents.styled(Panel) `
|
|
518
|
+
${props => !props.isOpen && styledComponents.css `border-bottom: 0;`}
|
|
519
519
|
`;
|
|
520
520
|
const CollapsiblePanel = (_a) => {
|
|
521
521
|
var { isInitiallyOpen, children, titleAction } = _a, rest = __rest(_a, ["isInitiallyOpen", "children", "titleAction"]);
|
|
@@ -544,7 +544,7 @@ const useConfirmModal = ({ onConfirm }) => {
|
|
|
544
544
|
];
|
|
545
545
|
};
|
|
546
546
|
|
|
547
|
-
const delay =
|
|
547
|
+
const delay = styledComponents.keyframes `
|
|
548
548
|
0% {
|
|
549
549
|
opacity: 0;
|
|
550
550
|
}
|
|
@@ -552,7 +552,7 @@ const delay = styled.keyframes `
|
|
|
552
552
|
opacity: 1;
|
|
553
553
|
}
|
|
554
554
|
`;
|
|
555
|
-
const Overlay = styled.div `
|
|
555
|
+
const Overlay = styledComponents.styled.div `
|
|
556
556
|
position: fixed;
|
|
557
557
|
top: 0;
|
|
558
558
|
left: 0;
|
|
@@ -564,7 +564,7 @@ const Overlay = styled.div `
|
|
|
564
564
|
animation: ${delay} 0.2s forwards;
|
|
565
565
|
`;
|
|
566
566
|
|
|
567
|
-
const Wrapper$9 = styled.div `
|
|
567
|
+
const Wrapper$9 = styledComponents.styled.div `
|
|
568
568
|
position: fixed;
|
|
569
569
|
top: 0;
|
|
570
570
|
left: 0;
|
|
@@ -577,10 +577,10 @@ const Wrapper$9 = styled.div `
|
|
|
577
577
|
|
|
578
578
|
z-index: 50;
|
|
579
579
|
`;
|
|
580
|
-
const StyledPanel$1 = styled(Panel) `
|
|
580
|
+
const StyledPanel$1 = styledComponents.styled(Panel) `
|
|
581
581
|
box-shadow: 0 8px 8px 0 rgba(34,36,38,.15);
|
|
582
582
|
`;
|
|
583
|
-
const Content = styled.div `
|
|
583
|
+
const Content = styledComponents.styled.div `
|
|
584
584
|
line-height: ${props => props.theme.spacing(6)};
|
|
585
585
|
font-size: 15px;
|
|
586
586
|
`;
|
|
@@ -593,13 +593,13 @@ const Modal = (_a) => {
|
|
|
593
593
|
React.createElement(StyledPanel$1, Object.assign({ footer: buttons ? (React.createElement(Box, { display: "flex", justifyContent: "flex-end" }, buttons)) : undefined }, panelProps), children && (React.createElement(Content, null, children)))))));
|
|
594
594
|
};
|
|
595
595
|
|
|
596
|
-
const Wrapper$8 = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
596
|
+
const Wrapper$8 = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
597
597
|
${props => props.stretch && `width: 100%;`}
|
|
598
598
|
${props => props.actionButton || props.stretch
|
|
599
|
-
?
|
|
600
|
-
:
|
|
599
|
+
? styledComponents.css `margin: 0;`
|
|
600
|
+
: styledComponents.css `margin: ${props => props.theme.spacing(0, 2, 0, 0)};`}
|
|
601
601
|
`;
|
|
602
|
-
const StyledButton$1 = styled.button.withConfig({ shouldForwardProp: isPropValid }) `
|
|
602
|
+
const StyledButton$1 = styledComponents.styled.button.withConfig({ shouldForwardProp: isPropValid }) `
|
|
603
603
|
font-size: 14px;
|
|
604
604
|
font-weight: bold;
|
|
605
605
|
letter-spacing: 1px;
|
|
@@ -617,12 +617,12 @@ const StyledButton$1 = styled.button.withConfig({ shouldForwardProp: isPropValid
|
|
|
617
617
|
user-select: none;
|
|
618
618
|
min-height: ${props => props.inline ? 'auto' : '38px'};
|
|
619
619
|
|
|
620
|
-
${props => props.stretch &&
|
|
620
|
+
${props => props.stretch && styledComponents.css `
|
|
621
621
|
width: 100%;
|
|
622
622
|
display: block;
|
|
623
623
|
`}
|
|
624
624
|
|
|
625
|
-
${props => props.actionButton &&
|
|
625
|
+
${props => props.actionButton && styledComponents.css `
|
|
626
626
|
width: 100%;
|
|
627
627
|
${mq('laptop', `width: auto`)}
|
|
628
628
|
`}
|
|
@@ -630,9 +630,9 @@ const StyledButton$1 = styled.button.withConfig({ shouldForwardProp: isPropValid
|
|
|
630
630
|
|
|
631
631
|
${props => props.variant !== 'text'
|
|
632
632
|
? !props.icon
|
|
633
|
-
?
|
|
634
|
-
: props.hasChildren &&
|
|
635
|
-
:
|
|
633
|
+
? styledComponents.css `padding: ${props.theme.spacing(3, 5)}; min-width: ${props => props.theme.spacing(10)};`
|
|
634
|
+
: props.hasChildren && styledComponents.css `position: relative; padding: ${props.theme.spacing(3, 5, 3, 13)};`
|
|
635
|
+
: styledComponents.css `font-weight: 700; padding: 0;`}
|
|
636
636
|
|
|
637
637
|
&:disabled {
|
|
638
638
|
opacity: .5;
|
|
@@ -673,16 +673,16 @@ const StyledButton$1 = styled.button.withConfig({ shouldForwardProp: isPropValid
|
|
|
673
673
|
`;
|
|
674
674
|
}}
|
|
675
675
|
`;
|
|
676
|
-
const IconWrapper$1 = styled.span.withConfig({ shouldForwardProp: isPropValid }) `
|
|
677
|
-
${props => props.variant !== "text" &&
|
|
676
|
+
const IconWrapper$1 = styledComponents.styled.span.withConfig({ shouldForwardProp: isPropValid }) `
|
|
677
|
+
${props => props.variant !== "text" && styledComponents.css `
|
|
678
678
|
min-width: ${props.theme.spacing(10)};
|
|
679
679
|
`}
|
|
680
680
|
|
|
681
681
|
${props => props.variant === "text"
|
|
682
|
-
? props.hasChildren &&
|
|
682
|
+
? props.hasChildren && styledComponents.css `
|
|
683
683
|
padding-right: ${props.theme.spacing(2)};
|
|
684
684
|
`
|
|
685
|
-
: props.hasChildren &&
|
|
685
|
+
: props.hasChildren && styledComponents.css `
|
|
686
686
|
position: absolute;
|
|
687
687
|
left: 0;
|
|
688
688
|
top: 0;
|
|
@@ -724,17 +724,17 @@ const ConfirmButton = (_a) => {
|
|
|
724
724
|
React.createElement(ConfirmModal, Object.assign({ title: "Are you sure?" }, modalProps, modalHandlerProps)));
|
|
725
725
|
};
|
|
726
726
|
|
|
727
|
-
const StyledTable = styled.table.withConfig({ shouldForwardProp: isPropValid }) `
|
|
727
|
+
const StyledTable = styledComponents.styled.table.withConfig({ shouldForwardProp: isPropValid }) `
|
|
728
728
|
border-radius: 4px;
|
|
729
729
|
width: 100%;
|
|
730
730
|
border-collapse: separate;
|
|
731
731
|
border-spacing: 0;
|
|
732
732
|
|
|
733
733
|
${(props) => responsiveProps(props, {
|
|
734
|
-
"tableLayout": unit =>
|
|
734
|
+
"tableLayout": unit => styledComponents.css `table-layout: ${unit};`,
|
|
735
735
|
})}
|
|
736
736
|
`;
|
|
737
|
-
const StyledTableRow = styled.tr.withConfig({ shouldForwardProp: isPropValid }) `
|
|
737
|
+
const StyledTableRow = styledComponents.styled.tr.withConfig({ shouldForwardProp: isPropValid }) `
|
|
738
738
|
& > td {
|
|
739
739
|
transition: background-color .1s ease, color .1s ease;
|
|
740
740
|
}
|
|
@@ -762,7 +762,7 @@ const StyledTableRow = styled.tr.withConfig({ shouldForwardProp: isPropValid })
|
|
|
762
762
|
`}
|
|
763
763
|
`)}
|
|
764
764
|
`;
|
|
765
|
-
const StyledTableCell = styled.td.withConfig({ shouldForwardProp: isPropValid }) `
|
|
765
|
+
const StyledTableCell = styledComponents.styled.td.withConfig({ shouldForwardProp: isPropValid }) `
|
|
766
766
|
border-top: 1px solid rgba(34,36,38,.1);
|
|
767
767
|
border-right: 1px solid rgba(34,36,38,.1);
|
|
768
768
|
padding: ${props => props.theme.spacing(2, 3)};
|
|
@@ -772,10 +772,10 @@ const StyledTableCell = styled.td.withConfig({ shouldForwardProp: isPropValid })
|
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
${(props) => responsiveProps(props, {
|
|
775
|
-
width: unit =>
|
|
775
|
+
width: unit => styledComponents.css `width: ${unit};`,
|
|
776
776
|
})}
|
|
777
777
|
`;
|
|
778
|
-
const StyledTableHeadCell = styled.th.withConfig({ shouldForwardProp: isPropValid }) `
|
|
778
|
+
const StyledTableHeadCell = styledComponents.styled.th.withConfig({ shouldForwardProp: isPropValid }) `
|
|
779
779
|
border-right: 1px solid rgba(34,36,38,.1);
|
|
780
780
|
text-align: left;
|
|
781
781
|
padding: ${props => props.theme.spacing(2, 3)};
|
|
@@ -786,7 +786,7 @@ const StyledTableHeadCell = styled.th.withConfig({ shouldForwardProp: isPropVali
|
|
|
786
786
|
border-right: 0;
|
|
787
787
|
}
|
|
788
788
|
|
|
789
|
-
${props => !!props.variant &&
|
|
789
|
+
${props => !!props.variant && styledComponents.css `
|
|
790
790
|
color: ${props.theme.palette.pane[props.variant].main.idle.text};
|
|
791
791
|
background-color: ${props.theme.palette.pane[props.variant].main.idle.background};
|
|
792
792
|
|
|
@@ -840,9 +840,9 @@ Table.Row = StyledTableRow;
|
|
|
840
840
|
Table.HeadCell = StyledTableHeadCell;
|
|
841
841
|
Table.Cell = TableCell;
|
|
842
842
|
|
|
843
|
-
const StyledCell = styled(Table.Cell) `
|
|
844
|
-
${(props) => props.firstRow &&
|
|
845
|
-
${(props) => props.width &&
|
|
843
|
+
const StyledCell = styledComponents.styled(Table.Cell) `
|
|
844
|
+
${(props) => props.firstRow && styledComponents.css ` border-top: 0px !important;`}
|
|
845
|
+
${(props) => props.width && styledComponents.css ` width: ${props.width};`}
|
|
846
846
|
vertical-align: top;
|
|
847
847
|
`;
|
|
848
848
|
const Details = ({ details, firstColumnWidth }) => (React.createElement(Table, null,
|
|
@@ -850,10 +850,10 @@ const Details = ({ details, firstColumnWidth }) => (React.createElement(Table, n
|
|
|
850
850
|
React.createElement(StyledCell, { width: firstColumnWidth, firstRow: index === 0 }, key),
|
|
851
851
|
React.createElement(StyledCell, { firstRow: index === 0 }, val)))))));
|
|
852
852
|
|
|
853
|
-
const Wrapper$7 = styled.div `
|
|
853
|
+
const Wrapper$7 = styledComponents.styled.div `
|
|
854
854
|
position: relative;
|
|
855
855
|
`;
|
|
856
|
-
const Dropper = styled.span.withConfig({ shouldForwardProp: isPropValid }) `
|
|
856
|
+
const Dropper = styledComponents.styled.span.withConfig({ shouldForwardProp: isPropValid }) `
|
|
857
857
|
border-radius: 4px;
|
|
858
858
|
border: 1px solid rgba(34,36,38,.15);
|
|
859
859
|
position: absolute;
|
|
@@ -861,14 +861,14 @@ const Dropper = styled.span.withConfig({ shouldForwardProp: isPropValid }) `
|
|
|
861
861
|
background-color: ${props => props.theme.palette.common.white};
|
|
862
862
|
z-index: 100;
|
|
863
863
|
|
|
864
|
-
${props => props.align === 'right' ?
|
|
864
|
+
${props => props.align === 'right' ? styledComponents.css `right: 0;` : styledComponents.css `left: 0;`}
|
|
865
865
|
`;
|
|
866
|
-
const DropdownMenu = styled.ul `
|
|
866
|
+
const DropdownMenu = styledComponents.styled.ul `
|
|
867
867
|
list-style: none;
|
|
868
868
|
margin: 0;
|
|
869
869
|
padding: ${props => props.theme.spacing(2, 0)};
|
|
870
870
|
`;
|
|
871
|
-
const DropdownMenuItem = styled.li `
|
|
871
|
+
const DropdownMenuItem = styledComponents.styled.li `
|
|
872
872
|
cursor: pointer;
|
|
873
873
|
padding: ${props => props.theme.spacing(0, 3)};
|
|
874
874
|
&:hover {
|
|
@@ -899,10 +899,10 @@ const Dropdown = ({ buttonProps, align, children, stayOpenOnClick }) => {
|
|
|
899
899
|
React.createElement(Dropper, { ref: dropper, align: align || 'left' }, children)))));
|
|
900
900
|
};
|
|
901
901
|
|
|
902
|
-
const HiddenInput$1 = styled.input `
|
|
902
|
+
const HiddenInput$1 = styledComponents.styled.input `
|
|
903
903
|
display: none;
|
|
904
904
|
`;
|
|
905
|
-
const StyledDropZone = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
905
|
+
const StyledDropZone = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
906
906
|
display: flex;
|
|
907
907
|
flex-direction: column;
|
|
908
908
|
align-items: center;
|
|
@@ -917,7 +917,7 @@ const StyledDropZone = styled.div.withConfig({ shouldForwardProp: isPropValid })
|
|
|
917
917
|
pointerEvents: none;
|
|
918
918
|
}
|
|
919
919
|
|
|
920
|
-
${props => props.isReadyToDrop &&
|
|
920
|
+
${props => props.isReadyToDrop && styledComponents.css `
|
|
921
921
|
background-color: #FAFAFA;
|
|
922
922
|
`}
|
|
923
923
|
`;
|
|
@@ -960,7 +960,7 @@ const Dropzone = (_a) => {
|
|
|
960
960
|
React.createElement(Button$1, { variant: "text", color: "secondary", type: "button", icon: icon }, label))));
|
|
961
961
|
};
|
|
962
962
|
|
|
963
|
-
const StyledBox$6 = styled(Box) `
|
|
963
|
+
const StyledBox$6 = styledComponents.styled(Box) `
|
|
964
964
|
width: 300px;
|
|
965
965
|
`;
|
|
966
966
|
const Feedback = ({ onConfirm, buttonLabel, buttonIcon, title, subtitle }) => (React.createElement(Modal, { handleClickOverlay: onConfirm, buttons: React.createElement(Button$1, { "data-testid": 'confirm', stretch: true, icon: buttonIcon, variant: 'secondary', onClick: onConfirm }, buttonLabel) },
|
|
@@ -995,7 +995,7 @@ const Floater = (_a) => {
|
|
|
995
995
|
};
|
|
996
996
|
|
|
997
997
|
const SIDEBAR_COLLAPSED_WIDTH = 15;
|
|
998
|
-
const StyledSidebar = styled(Box) `
|
|
998
|
+
const StyledSidebar = styledComponents.styled(Box) `
|
|
999
999
|
float: left;
|
|
1000
1000
|
|
|
1001
1001
|
height: 100%;
|
|
@@ -1014,7 +1014,7 @@ const StyledSidebar = styled(Box) `
|
|
|
1014
1014
|
display: ${props => props.isMobileMenuOpen ? 'block' : 'none'};
|
|
1015
1015
|
pointer-events: auto;
|
|
1016
1016
|
|
|
1017
|
-
${mq("laptop",
|
|
1017
|
+
${mq("laptop", styledComponents.css `
|
|
1018
1018
|
position: static;
|
|
1019
1019
|
display: block;
|
|
1020
1020
|
width: auto;
|
|
@@ -1024,7 +1024,7 @@ const StyledSidebar = styled(Box) `
|
|
|
1024
1024
|
transition: transform .1s ease-out;
|
|
1025
1025
|
transform: ${props => props.isDesktopMenuOpen
|
|
1026
1026
|
? 'transform: translateX(0);'
|
|
1027
|
-
:
|
|
1027
|
+
: styledComponents.css `translateX(calc(-100% + ${props => props.theme.spacing(SIDEBAR_COLLAPSED_WIDTH)}));`};
|
|
1028
1028
|
|
|
1029
1029
|
& ul {
|
|
1030
1030
|
opacity: ${props => props.isDesktopMenuOpen ? '1' : '0'};
|
|
@@ -1036,7 +1036,7 @@ const SideBar = (props) => {
|
|
|
1036
1036
|
return React.createElement(StyledSidebar, Object.assign({ isDesktopMenuOpen: isSideMenuOpen }, props, { onMouseEnter: openSideMenu, onMouseLeave: closeSideMenu }));
|
|
1037
1037
|
};
|
|
1038
1038
|
|
|
1039
|
-
const StyledBox$5 = styled(Box) `
|
|
1039
|
+
const StyledBox$5 = styledComponents.styled(Box) `
|
|
1040
1040
|
background-color: ${props => props.theme.palette.common.white};
|
|
1041
1041
|
border-top: 1px solid #DDDDDD;
|
|
1042
1042
|
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.04);
|
|
@@ -1044,26 +1044,26 @@ const StyledBox$5 = styled(Box) `
|
|
|
1044
1044
|
`;
|
|
1045
1045
|
const Footer = ({ children }) => (React.createElement(StyledBox$5, { pt: 2, pb: 2, pr: 5, pl: { mobile: 5, laptop: SIDEBAR_COLLAPSED_WIDTH + 5 } }, children));
|
|
1046
1046
|
|
|
1047
|
-
const Scroller = styled(Box) `
|
|
1047
|
+
const Scroller = styledComponents.styled(Box) `
|
|
1048
1048
|
overflow-x: auto;
|
|
1049
1049
|
overflow-y: hidden;
|
|
1050
1050
|
`;
|
|
1051
1051
|
const HorizontalScroller = ({ children }) => (React.createElement(Scroller, null, children));
|
|
1052
1052
|
|
|
1053
|
-
const HamburgerButton = styled(Button$1) `
|
|
1053
|
+
const HamburgerButton = styledComponents.styled(Button$1) `
|
|
1054
1054
|
margin-right: ${props => props.theme.spacing(3)};
|
|
1055
1055
|
${mq("laptop", `display: none;`)}
|
|
1056
1056
|
`;
|
|
1057
1057
|
|
|
1058
|
-
const Menu = styled.ul `
|
|
1058
|
+
const Menu = styledComponents.styled.ul `
|
|
1059
1059
|
padding: 0;
|
|
1060
1060
|
margin: 0;
|
|
1061
1061
|
list-style: none;
|
|
1062
1062
|
`;
|
|
1063
|
-
const StyledMenuItem = styled.li.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1063
|
+
const StyledMenuItem = styledComponents.styled.li.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1064
1064
|
padding: ${props => props.theme.spacing(.5, 5)};
|
|
1065
1065
|
|
|
1066
|
-
${props => props.isOpen &&
|
|
1066
|
+
${props => props.isOpen && styledComponents.css `
|
|
1067
1067
|
border-left: ${props.theme.spacing(1)} solid ${props.theme.palette.colors.blue};
|
|
1068
1068
|
background: #293846;
|
|
1069
1069
|
|
|
@@ -1080,7 +1080,7 @@ const StyledMenuItem = styled.li.withConfig({ shouldForwardProp: isPropValid })
|
|
|
1080
1080
|
width: 100%;
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
|
-
${props => props.isActive &&
|
|
1083
|
+
${props => props.isActive && styledComponents.css `
|
|
1084
1084
|
& button {
|
|
1085
1085
|
color: ${props.theme.palette.common.white};
|
|
1086
1086
|
}
|
|
@@ -1093,11 +1093,11 @@ const MenuItem = ({ item, isOpen, isActive, children }) => {
|
|
|
1093
1093
|
children && (React.createElement(SlideOpen, { onChange: setDelayedOpen, isOpen: !!isOpen, duration: .25 }, children))));
|
|
1094
1094
|
};
|
|
1095
1095
|
|
|
1096
|
-
const MenuCloseButton = styled(Button$1) `
|
|
1096
|
+
const MenuCloseButton = styledComponents.styled(Button$1) `
|
|
1097
1097
|
${mq("laptop", `display: none;`)}
|
|
1098
1098
|
`;
|
|
1099
1099
|
|
|
1100
|
-
const StyledBox$4 = styled(Box) `
|
|
1100
|
+
const StyledBox$4 = styledComponents.styled(Box) `
|
|
1101
1101
|
display: none;
|
|
1102
1102
|
${mq("laptop", `display: flex;`)}
|
|
1103
1103
|
|
|
@@ -1120,7 +1120,7 @@ const MenuSlideOpenIndicator = ({ children }) => (React.createElement(StyledBox$
|
|
|
1120
1120
|
const VerticalRhythmLaptop = 7;
|
|
1121
1121
|
const VerticalRhythmMobile = 4;
|
|
1122
1122
|
|
|
1123
|
-
const StyledBox$3 = styled(Box) `
|
|
1123
|
+
const StyledBox$3 = styledComponents.styled(Box) `
|
|
1124
1124
|
box-sizing: border-box;
|
|
1125
1125
|
color: ${props => props.theme.palette.button.text.idle.text};
|
|
1126
1126
|
font-weight: bold;
|
|
@@ -1135,7 +1135,7 @@ const StyledBox$3 = styled(Box) `
|
|
|
1135
1135
|
|
|
1136
1136
|
background-color: rgba(0,0,0,.2);
|
|
1137
1137
|
|
|
1138
|
-
${mq('laptop',
|
|
1138
|
+
${mq('laptop', styledComponents.css `
|
|
1139
1139
|
min-height: ${props => props.theme.spacing(12)};
|
|
1140
1140
|
`)}
|
|
1141
1141
|
`;
|
|
@@ -1189,10 +1189,10 @@ const useResponsiveBreakpoints = () => {
|
|
|
1189
1189
|
return responsiveMap;
|
|
1190
1190
|
};
|
|
1191
1191
|
|
|
1192
|
-
const Wrapper$6 = styled.div `
|
|
1192
|
+
const Wrapper$6 = styledComponents.styled.div `
|
|
1193
1193
|
display: flex;
|
|
1194
1194
|
`;
|
|
1195
|
-
const Button = styled.button.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1195
|
+
const Button = styledComponents.styled.button.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1196
1196
|
user-select:none;
|
|
1197
1197
|
cursor: pointer;
|
|
1198
1198
|
|
|
@@ -1242,7 +1242,7 @@ const Paginator = (props) => {
|
|
|
1242
1242
|
|
|
1243
1243
|
const Section = (props) => (React.createElement(Box, Object.assign({ pb: { laptop: VerticalRhythmLaptop, mobile: VerticalRhythmMobile } }, props)));
|
|
1244
1244
|
|
|
1245
|
-
const Wrapper$5 = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1245
|
+
const Wrapper$5 = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1246
1246
|
display: flex;
|
|
1247
1247
|
border-radius: ${props => props.theme.spacing(1)};
|
|
1248
1248
|
padding: ${props => props.theme.spacing(4)};
|
|
@@ -1250,17 +1250,17 @@ const Wrapper$5 = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
|
1250
1250
|
box-sizing: border-box;
|
|
1251
1251
|
height: 100%;
|
|
1252
1252
|
`;
|
|
1253
|
-
const Label$2 = styled.div `
|
|
1253
|
+
const Label$2 = styledComponents.styled.div `
|
|
1254
1254
|
text-transform: uppercase;
|
|
1255
1255
|
color: ${props => props.theme.palette.common.white};
|
|
1256
1256
|
font-size: ${props => props.theme.spacing(3)};
|
|
1257
1257
|
`;
|
|
1258
|
-
const Value = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1258
|
+
const Value = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1259
1259
|
color: ${props => props.theme.palette.common.white};
|
|
1260
1260
|
font-weight: bold;
|
|
1261
1261
|
font-size: ${props => props.theme.spacing(props.smallerValue ? 5.5 : 7.5)};
|
|
1262
1262
|
`;
|
|
1263
|
-
const IconWrapper = styled.div `
|
|
1263
|
+
const IconWrapper = styledComponents.styled.div `
|
|
1264
1264
|
margin: ${props => props.theme.spacing(1)} 0 auto 0;
|
|
1265
1265
|
& svg {
|
|
1266
1266
|
height: 100%;
|
|
@@ -1274,11 +1274,11 @@ const Statistic = ({ icon, value, label, backgroundColor, smallerValue }) => (Re
|
|
|
1274
1274
|
React.createElement(Label$2, null, label),
|
|
1275
1275
|
React.createElement(Value, { smallerValue: smallerValue }, value))));
|
|
1276
1276
|
|
|
1277
|
-
const StyledBox$2 = styled(Box) `
|
|
1277
|
+
const StyledBox$2 = styledComponents.styled(Box) `
|
|
1278
1278
|
|
|
1279
1279
|
padding: ${props => props.theme.spacing(2.5, 5)};
|
|
1280
1280
|
|
|
1281
|
-
${props => !props.isActive &&
|
|
1281
|
+
${props => !props.isActive && styledComponents.css `
|
|
1282
1282
|
cursor: pointer;
|
|
1283
1283
|
color: #337ab7;
|
|
1284
1284
|
&:hover,
|
|
@@ -1288,7 +1288,7 @@ const StyledBox$2 = styled(Box) `
|
|
|
1288
1288
|
}
|
|
1289
1289
|
`}
|
|
1290
1290
|
|
|
1291
|
-
${props => props.isActive &&
|
|
1291
|
+
${props => props.isActive && styledComponents.css `
|
|
1292
1292
|
font-weight: bold;
|
|
1293
1293
|
border: 1px solid rgba(34,36,38,.15);
|
|
1294
1294
|
border-bottom: 0px;
|
|
@@ -1317,29 +1317,29 @@ const Tab = (_a) => {
|
|
|
1317
1317
|
return React.createElement(StyledBox$2, Object.assign({}, restProps, { onClick: handleClick, isActive: isActive }));
|
|
1318
1318
|
};
|
|
1319
1319
|
|
|
1320
|
-
const StyledBox$1 = styled(Box) `
|
|
1320
|
+
const StyledBox$1 = styledComponents.styled(Box) `
|
|
1321
1321
|
background-color: ${props => props.theme.palette.common.white};
|
|
1322
1322
|
border: 1px solid rgba(34,36,38,.15);
|
|
1323
1323
|
border-top: 0px;
|
|
1324
1324
|
`;
|
|
1325
1325
|
const TabContent = (props) => React.createElement(StyledBox$1, Object.assign({ p: 3 }, props));
|
|
1326
1326
|
|
|
1327
|
-
const Tabs = styled(Box) `
|
|
1327
|
+
const Tabs = styledComponents.styled(Box) `
|
|
1328
1328
|
display: flex;
|
|
1329
1329
|
border-bottom: 1px solid rgba(34,36,38,.15);
|
|
1330
1330
|
`;
|
|
1331
1331
|
|
|
1332
|
-
const FlatPanel = styled(Panel) `
|
|
1332
|
+
const FlatPanel = styledComponents.styled(Panel) `
|
|
1333
1333
|
box-shadow: none;
|
|
1334
1334
|
`;
|
|
1335
|
-
const Wrapper$4 = styled(Box) `
|
|
1335
|
+
const Wrapper$4 = styledComponents.styled(Box) `
|
|
1336
1336
|
display: flex;
|
|
1337
1337
|
|
|
1338
1338
|
&:last-of-type .line:before {
|
|
1339
1339
|
background: none;
|
|
1340
1340
|
}
|
|
1341
1341
|
`;
|
|
1342
|
-
const Line = styled(Box) `
|
|
1342
|
+
const Line = styledComponents.styled(Box) `
|
|
1343
1343
|
position: relative;
|
|
1344
1344
|
margin-right: ${props => props.theme.spacing(4)};
|
|
1345
1345
|
top: 4px;
|
|
@@ -1355,7 +1355,7 @@ const Line = styled(Box) `
|
|
|
1355
1355
|
}
|
|
1356
1356
|
|
|
1357
1357
|
`;
|
|
1358
|
-
const Circle = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1358
|
+
const Circle = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1359
1359
|
position: relative;
|
|
1360
1360
|
background-color: ${props => props.color};
|
|
1361
1361
|
color: #fff;
|
|
@@ -1384,7 +1384,7 @@ const SimpleTimeline = ({ color, icon, title, titleMeta }) => (React.createEleme
|
|
|
1384
1384
|
React.createElement(Box, { pb: 4, flexGrow: 1 },
|
|
1385
1385
|
React.createElement(FlatPanel, { titleMeta: titleMeta, title: title }))));
|
|
1386
1386
|
|
|
1387
|
-
const StyledBox = styled(Box) `
|
|
1387
|
+
const StyledBox = styledComponents.styled(Box) `
|
|
1388
1388
|
background-color: #FFFFFF;
|
|
1389
1389
|
border-bottom: 1px solid #DDDDDD;
|
|
1390
1390
|
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.04);
|
|
@@ -1395,10 +1395,10 @@ const TopBar = ({ left, right }) => (React.createElement(StyledBox, null,
|
|
|
1395
1395
|
React.createElement(Box, { flexGrow: 1, display: "flex", pl: 2 }, left),
|
|
1396
1396
|
React.createElement(Box, { flexGrow: 1, display: "flex", justifyContent: 'flex-end' }, right))));
|
|
1397
1397
|
|
|
1398
|
-
const Label$1 = styled.label `
|
|
1398
|
+
const Label$1 = styledComponents.styled.label `
|
|
1399
1399
|
position: relative;
|
|
1400
1400
|
`;
|
|
1401
|
-
const Input$1 = styled.input.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1401
|
+
const Input$1 = styledComponents.styled.input.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1402
1402
|
position: absolute;
|
|
1403
1403
|
top: 0;
|
|
1404
1404
|
left: 0;
|
|
@@ -1465,8 +1465,8 @@ const Input$1 = styled.input.withConfig({ shouldForwardProp: isPropValid }) `
|
|
|
1465
1465
|
color: #9f3a38;
|
|
1466
1466
|
}
|
|
1467
1467
|
`;
|
|
1468
|
-
const Span = styled.span.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1469
|
-
${props => props.dimmed ?
|
|
1468
|
+
const Span = styledComponents.styled.span.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1469
|
+
${props => props.dimmed ? styledComponents.css `color: #999c9e;` : ''}
|
|
1470
1470
|
`;
|
|
1471
1471
|
const Checkbox = React.forwardRef((_a, ref) => {
|
|
1472
1472
|
var { options, spacing = 1, name, dimmed } = _a, restProps = __rest(_a, ["options", "spacing", "name", "dimmed"]);
|
|
@@ -1476,7 +1476,7 @@ const Checkbox = React.forwardRef((_a, ref) => {
|
|
|
1476
1476
|
React.createElement(Span, { dimmed: dimmed }, label)))))));
|
|
1477
1477
|
});
|
|
1478
1478
|
|
|
1479
|
-
const sharedStyles =
|
|
1479
|
+
const sharedStyles = styledComponents.css `
|
|
1480
1480
|
padding: .67857143em 1em;
|
|
1481
1481
|
line-height: 1.21428571em;
|
|
1482
1482
|
border-radius: 4px;
|
|
@@ -1525,10 +1525,10 @@ const sharedStyles = styled.css `
|
|
|
1525
1525
|
color: #da9796;
|
|
1526
1526
|
}
|
|
1527
1527
|
`;
|
|
1528
|
-
const Input = styled.input.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1528
|
+
const Input = styledComponents.styled.input.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1529
1529
|
${sharedStyles}
|
|
1530
1530
|
`;
|
|
1531
|
-
const Textarea = styled.textarea.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1531
|
+
const Textarea = styledComponents.styled.textarea.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1532
1532
|
${sharedStyles}
|
|
1533
1533
|
height: 100%;
|
|
1534
1534
|
`;
|
|
@@ -1539,11 +1539,11 @@ const TextField = React.forwardRef((_a, ref) => {
|
|
|
1539
1539
|
: React.createElement(Input, Object.assign({ ref: ref, type: "text" }, restProps));
|
|
1540
1540
|
});
|
|
1541
1541
|
|
|
1542
|
-
const Wrapper$3 = styled.div `
|
|
1542
|
+
const Wrapper$3 = styledComponents.styled.div `
|
|
1543
1543
|
position: relative;
|
|
1544
1544
|
display: flex;
|
|
1545
1545
|
`;
|
|
1546
|
-
const HiddenInput = styled.input.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1546
|
+
const HiddenInput = styledComponents.styled.input.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1547
1547
|
position: absolute;
|
|
1548
1548
|
left: 0;
|
|
1549
1549
|
right: 0;
|
|
@@ -1552,7 +1552,7 @@ const HiddenInput = styled.input.withConfig({ shouldForwardProp: isPropValid })
|
|
|
1552
1552
|
width: 100%;
|
|
1553
1553
|
opacity:0;
|
|
1554
1554
|
`;
|
|
1555
|
-
const StyledButton = styled(Button$1) `
|
|
1555
|
+
const StyledButton = styledComponents.styled(Button$1) `
|
|
1556
1556
|
height: 40px;
|
|
1557
1557
|
|
|
1558
1558
|
.has-error & {
|
|
@@ -1561,11 +1561,11 @@ const StyledButton = styled(Button$1) `
|
|
|
1561
1561
|
color: #9f3a38;
|
|
1562
1562
|
}
|
|
1563
1563
|
`;
|
|
1564
|
-
const StyledTextField = styled(TextField) `
|
|
1564
|
+
const StyledTextField = styledComponents.styled(TextField) `
|
|
1565
1565
|
flex: 1;
|
|
1566
1566
|
padding-right: ${props => props.theme.spacing(8)}
|
|
1567
1567
|
`;
|
|
1568
|
-
const DeleteButton = styled.button `
|
|
1568
|
+
const DeleteButton = styledComponents.styled.button `
|
|
1569
1569
|
background-color: transparent;
|
|
1570
1570
|
border: 0;
|
|
1571
1571
|
outline: 0;
|
|
@@ -1627,10 +1627,10 @@ const FileField = React.forwardRef((_a, ref) => {
|
|
|
1627
1627
|
!!fileName && onClear && React.createElement(DeleteButton, { "data-testid": 'file-clear', onClick: handleRemove })));
|
|
1628
1628
|
});
|
|
1629
1629
|
|
|
1630
|
-
const Wrapper$2 = styled.div `
|
|
1630
|
+
const Wrapper$2 = styledComponents.styled.div `
|
|
1631
1631
|
position: relative;
|
|
1632
1632
|
`;
|
|
1633
|
-
const StyledSelect = styled.select.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1633
|
+
const StyledSelect = styledComponents.styled.select.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1634
1634
|
width: 100%;
|
|
1635
1635
|
|
|
1636
1636
|
padding: .67857143em 1em;
|
|
@@ -1656,7 +1656,7 @@ const StyledSelect = styled.select.withConfig({ shouldForwardProp: isPropValid }
|
|
|
1656
1656
|
color: #9f3a38;
|
|
1657
1657
|
}
|
|
1658
1658
|
`;
|
|
1659
|
-
const PaddingOverlay = styled.div `
|
|
1659
|
+
const PaddingOverlay = styledComponents.styled.div `
|
|
1660
1660
|
pointer-events: none;
|
|
1661
1661
|
padding: 0 1em;
|
|
1662
1662
|
position:absolute;
|
|
@@ -1687,14 +1687,14 @@ const calculatePasswordScore = (val) => checks
|
|
|
1687
1687
|
.reduce((acc, value) => value
|
|
1688
1688
|
? acc + 1
|
|
1689
1689
|
: acc, 1);
|
|
1690
|
-
const Progress = styled.div `
|
|
1690
|
+
const Progress = styledComponents.styled.div `
|
|
1691
1691
|
margin-top: ${props => props.theme.spacing(1)};
|
|
1692
1692
|
height: 3px;
|
|
1693
1693
|
background-color: #f5f5f5;
|
|
1694
1694
|
border-radius: 4px;
|
|
1695
1695
|
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
|
|
1696
1696
|
`;
|
|
1697
|
-
const ProgressBar = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1697
|
+
const ProgressBar = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1698
1698
|
width: ${props => props.score ? (props.score / maxScore) * 100 : 0}%;
|
|
1699
1699
|
height: 100%;
|
|
1700
1700
|
background-color: ${props => props.score <= 2 ? '#e90f10' : props.score <= 3 ? '#ffad00' : '#02b502'} ;
|
|
@@ -1732,35 +1732,35 @@ const generateDimensionsCss = (position, rowOffset) => {
|
|
|
1732
1732
|
return parts;
|
|
1733
1733
|
}
|
|
1734
1734
|
if (position.row !== undefined) {
|
|
1735
|
-
parts.push(
|
|
1735
|
+
parts.push(styledComponents.css `
|
|
1736
1736
|
grid-row-start: ${(position.row * NUM_ROWS_PER_FIELD) + 1 + rowOffset};
|
|
1737
1737
|
-ms-grid-row: ${(position.row * NUM_ROWS_PER_FIELD) + 1 + rowOffset};
|
|
1738
1738
|
`);
|
|
1739
1739
|
}
|
|
1740
1740
|
if (position.rowSpan && rowOffset) {
|
|
1741
|
-
parts.push(
|
|
1741
|
+
parts.push(styledComponents.css `
|
|
1742
1742
|
grid-row-end: span ${(position.rowSpan * NUM_ROWS_PER_FIELD) - 1};
|
|
1743
1743
|
-ms-grid-row-span: ${(position.rowSpan * NUM_ROWS_PER_FIELD) - 1};
|
|
1744
1744
|
`);
|
|
1745
1745
|
}
|
|
1746
1746
|
if (position.column !== undefined) {
|
|
1747
|
-
parts.push(
|
|
1747
|
+
parts.push(styledComponents.css `
|
|
1748
1748
|
grid-column-start: ${position.column + 1};
|
|
1749
1749
|
-ms-grid-column: ${position.column + 1};
|
|
1750
1750
|
`);
|
|
1751
1751
|
}
|
|
1752
1752
|
if (position.columnSpan !== undefined) {
|
|
1753
|
-
parts.push(
|
|
1753
|
+
parts.push(styledComponents.css `
|
|
1754
1754
|
grid-column-end: span ${position.columnSpan};
|
|
1755
1755
|
-ms-grid-column-span: ${position.columnSpan};
|
|
1756
1756
|
`);
|
|
1757
1757
|
}
|
|
1758
1758
|
return parts;
|
|
1759
1759
|
};
|
|
1760
|
-
const FormGridCell = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1760
|
+
const FormGridCell = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1761
1761
|
margin: 0px 8px;
|
|
1762
1762
|
|
|
1763
|
-
${props => props.rowOffset !== undefined &&
|
|
1763
|
+
${props => props.rowOffset !== undefined && styledComponents.css `
|
|
1764
1764
|
display: flex;
|
|
1765
1765
|
flex-direction: column;
|
|
1766
1766
|
margin-bottom: 16px;`}
|
|
@@ -1769,13 +1769,13 @@ const FormGridCell = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
|
1769
1769
|
-ms-grid-row-align: ${props => props.rowOffset === undefined ? "end" : "initial"};
|
|
1770
1770
|
|
|
1771
1771
|
${(props) => responsiveProps(props, {
|
|
1772
|
-
"align": unit =>
|
|
1772
|
+
"align": unit => styledComponents.css `text-align: ${unit};`,
|
|
1773
1773
|
"position": unit => { var _a; return generateDimensionsCss(unit, (_a = props.rowOffset) !== null && _a !== void 0 ? _a : 0); }
|
|
1774
1774
|
})}
|
|
1775
1775
|
`;
|
|
1776
1776
|
FormGridCell.displayName = "FormGridCell";
|
|
1777
1777
|
|
|
1778
|
-
const Label = styled.label.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1778
|
+
const Label = styledComponents.styled.label.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1779
1779
|
display: block;
|
|
1780
1780
|
color: ${(props => !!props.error ? props.theme.palette.form.error : props.theme.palette.common.black)} ;
|
|
1781
1781
|
font-weight: bold;
|
|
@@ -1783,16 +1783,16 @@ const Label = styled.label.withConfig({ shouldForwardProp: isPropValid }) `
|
|
|
1783
1783
|
line-height: 1.4em;
|
|
1784
1784
|
font-size: .92857143em;
|
|
1785
1785
|
`;
|
|
1786
|
-
const Hint = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1786
|
+
const Hint = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1787
1787
|
color: ${(props => !!props.error ? "#da9796;" : props.theme.palette.form.hint)};
|
|
1788
1788
|
margin: ${props => props.theme.spacing(-1, 0, 1, 0)};
|
|
1789
1789
|
line-height: 1.4em;
|
|
1790
1790
|
font-size: .92857143em;
|
|
1791
1791
|
`;
|
|
1792
|
-
const RequiredAsterisk = styled.span.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1792
|
+
const RequiredAsterisk = styledComponents.styled.span.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1793
1793
|
color: ${props => props.theme.palette.form.hint};
|
|
1794
1794
|
`;
|
|
1795
|
-
const Error$1 = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1795
|
+
const Error$1 = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1796
1796
|
color: ${props => props.theme.palette.form.error};
|
|
1797
1797
|
margin: ${props => props.theme.spacing(1, 0, 0, 0)};
|
|
1798
1798
|
font-weight: bold;
|
|
@@ -1811,7 +1811,7 @@ const FormGridWrapper = ({ position, align, label, hint, error, isRequired, chil
|
|
|
1811
1811
|
children,
|
|
1812
1812
|
error && (React.createElement(Error$1, null, error)))));
|
|
1813
1813
|
|
|
1814
|
-
const FormGrid = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1814
|
+
const FormGrid = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1815
1815
|
margin: 0 -8px -16px -8px;
|
|
1816
1816
|
|
|
1817
1817
|
display: -ms-grid;
|
|
@@ -1820,7 +1820,7 @@ const FormGrid = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
|
1820
1820
|
-ms-grid-columns: 1fr;
|
|
1821
1821
|
|
|
1822
1822
|
${(props) => responsiveProps(props, {
|
|
1823
|
-
columns: (string) =>
|
|
1823
|
+
columns: (string) => styledComponents.css `
|
|
1824
1824
|
-ms-grid-columns: ${string};
|
|
1825
1825
|
grid-template-columns: ${string};
|
|
1826
1826
|
`
|
|
@@ -1828,19 +1828,19 @@ const FormGrid = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
|
1828
1828
|
`;
|
|
1829
1829
|
FormGrid.displayName = "FormGrid";
|
|
1830
1830
|
|
|
1831
|
-
const Wrapper$1 = styled(Box) `
|
|
1831
|
+
const Wrapper$1 = styledComponents.styled(Box) `
|
|
1832
1832
|
background-color: #F3F3F4;
|
|
1833
1833
|
`;
|
|
1834
|
-
const WrapperInner = styled(Box) `
|
|
1834
|
+
const WrapperInner = styledComponents.styled(Box) `
|
|
1835
1835
|
position: relative;
|
|
1836
1836
|
`;
|
|
1837
|
-
const SidebarWrapper = styled(Box) `
|
|
1837
|
+
const SidebarWrapper = styledComponents.styled(Box) `
|
|
1838
1838
|
position: absolute;
|
|
1839
1839
|
height: 100%;
|
|
1840
1840
|
z-index: 50;
|
|
1841
1841
|
pointer-events: none;
|
|
1842
1842
|
`;
|
|
1843
|
-
const ContentBox = styled(Box) `
|
|
1843
|
+
const ContentBox = styledComponents.styled(Box) `
|
|
1844
1844
|
height: 100%;
|
|
1845
1845
|
`;
|
|
1846
1846
|
const BasicLayout = ({ sideBarProps, topBarProps, footerProps, isLoading, loader, children }) => {
|
|
@@ -1856,13 +1856,13 @@ const BasicLayout = ({ sideBarProps, topBarProps, footerProps, isLoading, loader
|
|
|
1856
1856
|
React.createElement(Footer, Object.assign({}, footerProps))))));
|
|
1857
1857
|
};
|
|
1858
1858
|
|
|
1859
|
-
const Wrapper = styled(Box) `
|
|
1859
|
+
const Wrapper = styledComponents.styled(Box) `
|
|
1860
1860
|
background-color: ${props => props.baseColor || 'white'};
|
|
1861
1861
|
position: absolute;
|
|
1862
1862
|
min-width: 100%;
|
|
1863
1863
|
min-height: 100%;
|
|
1864
1864
|
`;
|
|
1865
|
-
const Background = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1865
|
+
const Background = styledComponents.styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
1866
1866
|
position: absolute;
|
|
1867
1867
|
top: 0;
|
|
1868
1868
|
left: 0;
|
|
@@ -1873,15 +1873,15 @@ const Background = styled.div.withConfig({ shouldForwardProp: isPropValid }) `
|
|
|
1873
1873
|
background: url("${props => props.imageUrl}");
|
|
1874
1874
|
background-size: cover;
|
|
1875
1875
|
`;
|
|
1876
|
-
const StyledAnimation = styled(SlideInFromTop) `
|
|
1876
|
+
const StyledAnimation = styledComponents.styled(SlideInFromTop) `
|
|
1877
1877
|
z-index: 10;
|
|
1878
1878
|
margin: auto auto;
|
|
1879
1879
|
`;
|
|
1880
|
-
const StyledPanel = styled(Panel) `
|
|
1880
|
+
const StyledPanel = styledComponents.styled(Panel) `
|
|
1881
1881
|
box-shadow: 0 8px 8px 0 rgba(34,36,38,.15);
|
|
1882
1882
|
min-width: 280px;
|
|
1883
1883
|
`;
|
|
1884
|
-
const Logo = styled.img `
|
|
1884
|
+
const Logo = styledComponents.styled.img `
|
|
1885
1885
|
display:none;
|
|
1886
1886
|
position: absolute;
|
|
1887
1887
|
left: 0;
|