@taikai/rocket-kit 3.0.0-beta.1 → 3.0.0-beta.3
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/atoms/checkbox/index.d.ts +1 -1
- package/dist/atoms/progress-bar/index.d.ts +0 -1
- package/dist/atoms/select-interactive/components/index.d.ts +6 -3
- package/dist/atoms/select-interactive/index.d.ts +0 -1
- package/dist/atoms/select-interactive/types.d.ts +2 -2
- package/dist/atoms/slideshow/index.d.ts +0 -1
- package/dist/atoms/toggle/index.d.ts +0 -1
- package/dist/atoms/video-player/index.d.ts +0 -1
- package/dist/ions/icon-empty-data.d.ts +0 -1
- package/dist/ions/icon-login-only.d.ts +0 -1
- package/dist/molecules/actions-menu/index.d.ts +0 -1
- package/dist/molecules/empty-table/index.d.ts +0 -1
- package/dist/molecules/error/index.d.ts +0 -1
- package/dist/molecules/number-input-spinner/index.d.ts +0 -1
- package/dist/molecules/table/index.d.ts +3 -0
- package/dist/molecules/table/stories/table.stories.d.ts +18 -0
- package/dist/molecules/table/styles.d.ts +4 -2
- package/dist/organisms/grid-container/grid-row.d.ts +0 -1
- package/dist/organisms/horizontal-nav/index.d.ts +0 -1
- package/dist/organisms/loading-state/index.d.ts +1 -5
- package/dist/organisms/loading-state/stories/loading-state.stories.d.ts +0 -3
- package/dist/organisms/loading-state/styles.d.ts +0 -1
- package/dist/rocket-kit.cjs.development.js +132 -106
- package/dist/rocket-kit.cjs.development.js.map +1 -1
- package/dist/rocket-kit.cjs.production.min.js +92 -87
- package/dist/rocket-kit.cjs.production.min.js.map +1 -1
- package/dist/rocket-kit.esm.js +133 -107
- package/dist/rocket-kit.esm.js.map +1 -1
- package/package.json +5 -6
|
@@ -266,8 +266,8 @@ const useColor = value => {
|
|
|
266
266
|
|
|
267
267
|
const ButtonWrapper = /*#__PURE__*/_styled__default.button.withConfig({
|
|
268
268
|
displayName: "styles__ButtonWrapper",
|
|
269
|
-
componentId: "baestp-0"
|
|
270
|
-
})(["--bg:", ";--txt:", ";--hover:", ";margin:0;border-width:", ";border-style:solid;border-color:var(--bg);border-radius:", ";background-color:", ";width:min-content;min-width:", ";height:", ";display:flex;justify-content:center;align-items:center;padding:", ";text-transform:uppercase;white-space:nowrap;text-decoration:none;transition-duration:", ";cursor:pointer;&:hover{border-color:", ";background-color:", ";span{color:", ";}svg{fill:", ";}}&:disabled{cursor:inherit;opacity:0.5;&:hover{pointer-events:none;}}> *:not(:last-child){margin-left:", ";margin-right:", ";}.spinner{border-top-color:", ";}span{position:relative;font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";color:", ";pointer-events:none;transition-duration:", ";order:", ";}svg{order:", ";width:", ";height:", ";fill:", ";transition:", ";}"], props => {
|
|
269
|
+
componentId: "sc-baestp-0"
|
|
270
|
+
})(["--bg:", ";--txt:", ";--hover:", ";margin:0;border-width:", ";border-style:solid;border-color:var(--bg);border-radius:", ";background-color:", ";width:min-content;min-width:", ";height:", ";display:flex;justify-content:center;align-items:center;padding:", ";text-transform:uppercase;white-space:nowrap;text-decoration:none;transition-duration:", ";cursor:pointer;&:hover{border-color:", ";background-color:", ";span{color:", ";}svg{fill:", ";}}&:disabled{cursor:inherit;opacity:0.5;&:hover{background-color:", ";pointer-events:none;}}> *:not(:last-child){margin-left:", ";margin-right:", ";}.spinner{border-top-color:", ";}span{position:relative;font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";color:", ";pointer-events:none;transition-duration:", ";order:", ";}svg{order:", ";width:", ";height:", ";fill:", ";transition:", ";}"], props => {
|
|
271
271
|
var _props$color;
|
|
272
272
|
|
|
273
273
|
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
@@ -279,7 +279,7 @@ const ButtonWrapper = /*#__PURE__*/_styled__default.button.withConfig({
|
|
|
279
279
|
var _props$color2;
|
|
280
280
|
|
|
281
281
|
return props.color === 'white' ? colors.grey100 : props.color === 'black' ? colors.grey900 : useColor((_props$color2 = props.color) != null ? _props$color2 : 'black').hover;
|
|
282
|
-
}, props => props.variant === 'outline' ? button.borderWidth : 0, props => props.variant === 'text' ? 0 : props.rounded ? '999px' : button.borderRadius, props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', props => props.value ? polished.rem('80px') : polished.rem('42px'), button.height, props => props.value ? `0 ${button.padding}` : 0, misc.transitionDuration, props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.iconPosition === 'right' ? button.iconSpacing : 0, props => props.iconPosition === 'left' ? button.iconSpacing : 0, props => props.variant === 'solid' ? '' : 'var(--button)', /*#__PURE__*/polished.rem(typography.defaultSize), typography.medium, typography.letterSpacing, /*#__PURE__*/polished.rem(typography.defaultSize), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)', misc.transitionDuration, props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, button.iconSize, button.iconSize, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)', misc.transitionDuration);
|
|
282
|
+
}, props => props.variant === 'outline' ? button.borderWidth : 0, props => props.variant === 'text' ? 0 : props.rounded ? '999px' : button.borderRadius, props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', props => props.value ? polished.rem('80px') : polished.rem('42px'), button.height, props => props.value ? `0 ${button.padding}` : 0, misc.transitionDuration, props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', props => props.iconPosition === 'right' ? button.iconSpacing : 0, props => props.iconPosition === 'left' ? button.iconSpacing : 0, props => props.variant === 'solid' ? '' : 'var(--button)', /*#__PURE__*/polished.rem(typography.defaultSize), typography.medium, typography.letterSpacing, /*#__PURE__*/polished.rem(typography.defaultSize), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)', misc.transitionDuration, props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, button.iconSize, button.iconSize, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)', misc.transitionDuration);
|
|
283
283
|
|
|
284
284
|
const Button = props => {
|
|
285
285
|
const {
|
|
@@ -430,7 +430,7 @@ const ButtonDropdown = props => {
|
|
|
430
430
|
|
|
431
431
|
const ButtonLinkStyle = /*#__PURE__*/_styled__default.a.withConfig({
|
|
432
432
|
displayName: "styles__ButtonLinkStyle",
|
|
433
|
-
componentId: "clge7v-0"
|
|
433
|
+
componentId: "sc-clge7v-0"
|
|
434
434
|
})(["--bg:", ";--txt:", ";--hover:", ";border-width:", ";border-style:solid;border-color:var(--bg);border-radius:", ";background-color:", ";width:min-content;min-width:", ";height:", ";display:flex;justify-content:center;align-items:center;padding:", ";text-transform:uppercase;white-space:nowrap;text-decoration:none;transition-duration:", ";cursor:pointer;&:hover{border-color:", ";background-color:", ";span{color:", ";}svg{fill:", ";}}> *:not(:last-child){margin-left:", ";margin-right:", ";}span{position:relative;font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";color:", ";pointer-events:none;transition-duration:", ";order:", ";}svg{order:", ";width:", ";height:", ";fill:", ";transition:", ";}"], props => {
|
|
435
435
|
var _props$color;
|
|
436
436
|
|
|
@@ -458,7 +458,7 @@ const ButtonLink = props => {
|
|
|
458
458
|
blank = false,
|
|
459
459
|
rel = undefined,
|
|
460
460
|
value = '',
|
|
461
|
-
iconPosition = '
|
|
461
|
+
iconPosition = 'left',
|
|
462
462
|
icon = '',
|
|
463
463
|
dataTestId = '',
|
|
464
464
|
eventId = '',
|
|
@@ -505,34 +505,56 @@ const {
|
|
|
505
505
|
} = colors;
|
|
506
506
|
const CheckboxWrapper = /*#__PURE__*/_styled__default.label.withConfig({
|
|
507
507
|
displayName: "styles__CheckboxWrapper",
|
|
508
|
-
componentId: "w5t014-0"
|
|
508
|
+
componentId: "sc-w5t014-0"
|
|
509
509
|
})(["display:flex;position:relative;padding-left:0;cursor:", ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;&:hover input:not(:disabled) ~ span{border-color:", ";}span{color:", ";border-color:", ";}"], props => props.disabled ? 'auto' : 'pointer', props => props.error ? darkRed : normal$1, props => props.disabled ? grey$1 : props.error ? red : null, props => props.error ? red : null);
|
|
510
510
|
const CheckboxLabel = /*#__PURE__*/_styled__default.span.withConfig({
|
|
511
511
|
displayName: "styles__CheckboxLabel",
|
|
512
|
-
componentId: "w5t014-1"
|
|
512
|
+
componentId: "sc-w5t014-1"
|
|
513
513
|
})(["margin-left:calc(", " + ", ");line-height:", ";"], /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('24px'));
|
|
514
514
|
const CheckboxInput = /*#__PURE__*/_styled__default.input.withConfig({
|
|
515
515
|
displayName: "styles__CheckboxInput",
|
|
516
|
-
componentId: "w5t014-2"
|
|
517
|
-
})(["position:absolute;left:0;opacity:0;cursor:pointer;&:checked:not(:disabled) ~ span{background-color:", ";border-color:", ";&:after{display:block;}}&:checked:disabled ~ span{border-color:transparent;background-color:", ";color:", ";&:after{display:block;}}&:not(:checked):disabled ~ span{border-color:", ";background-color:", ";}&:hover:not(:disabled){border-color:", ";&:checked ~ span{border-color:", ";}}"], props => props.error ? red : green, props => props.error ? darkRed : darkGreen, lightGrey$1, grey$1, lightGrey$1, light$1, props => props.error ? darkRed : darkGreen, props => props.error ? darkRed : darkGreen);
|
|
516
|
+
componentId: "sc-w5t014-2"
|
|
517
|
+
})(["position:absolute;left:0;opacity:0;cursor:pointer;&:checked:not(:disabled)[aria-checked='true'] ~ span{background-color:", ";border-color:", ";&:after{display:block;}}&:checked:disabled[aria-checked='true'] ~ span{border-color:transparent;background-color:", ";color:", ";&:after{display:block;}}&:not(:checked):disabled ~ span{border-color:", ";background-color:", ";}&:hover:not(:disabled){border-color:", ";&:checked ~ span{border-color:", ";}}"], props => props.error ? red : green, props => props.error ? darkRed : darkGreen, lightGrey$1, grey$1, lightGrey$1, light$1, props => props.error ? darkRed : darkGreen, props => props.error ? darkRed : darkGreen);
|
|
518
518
|
const Checkmark = /*#__PURE__*/_styled__default.span.withConfig({
|
|
519
519
|
displayName: "styles__Checkmark",
|
|
520
|
-
componentId: "w5t014-3"
|
|
521
|
-
})(["position:absolute;top:0;left:0;border:", " solid ", ";border-radius:100%;width:", ";height:", ";transition-duration:0.3s;&:after{content:'';position:absolute;display:none;top:", ";left:", ";width:", ";height:", ";border:solid ", ";border-width:0 ", " ", " 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}"], /*#__PURE__*/polished.rem('2px'), props => props.error ? red : grey$1, /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('9px'), light$1, /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('3px'));
|
|
520
|
+
componentId: "sc-w5t014-3"
|
|
521
|
+
})(["position:absolute;top:0;left:0;border:", " solid ", ";border-radius:100%;width:", ";height:", ";transition-duration:0.3s;&:after{display:block;content:'';position:absolute;display:none;top:", ";left:", ";width:", ";height:", ";border:solid ", ";border-width:0 ", " ", " 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}&.checked.not-disabled{background-color:", ";border-color:", ";&:after{display:block;}}&.checked.disabled{color:", ";border-color:transparent;background-color:", ";&:after{display:block;}}&.not-checked.disabled{border-color:", ";background-color:", ";}&.not-disabled:hover{border-color:", ";&:checked ~ span{border-color:", ";}}"], /*#__PURE__*/polished.rem('2px'), props => props.error ? red : grey$1, /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('9px'), light$1, /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('3px'), props => props.error ? red : green, props => props.error ? darkRed : darkGreen, grey$1, lightGrey$1, lightGrey$1, light$1, props => props.error ? darkRed : darkGreen, props => props.error ? darkRed : darkGreen);
|
|
522
522
|
|
|
523
|
-
const Checkbox =
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
523
|
+
const Checkbox = ({
|
|
524
|
+
label,
|
|
525
|
+
value,
|
|
526
|
+
checked = false,
|
|
527
|
+
onChange = () => {},
|
|
528
|
+
error = false,
|
|
529
|
+
disabled = false,
|
|
530
|
+
className = 'checkbox',
|
|
531
|
+
style,
|
|
532
|
+
dataTestId,
|
|
533
|
+
required = false
|
|
534
|
+
}) => {
|
|
535
|
+
const checkedRef = React.useRef(checked);
|
|
536
|
+
const [isChecked, setIsChecked] = React.useState(checked);
|
|
537
|
+
|
|
538
|
+
const handleOnChange = event => {
|
|
539
|
+
setIsChecked(prev => !prev);
|
|
540
|
+
onChange(event);
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
const checkmarkClassName = React.useMemo(() => {
|
|
544
|
+
let isCheckStr = '';
|
|
545
|
+
let isDisabledStr = ''; // if they are different
|
|
546
|
+
// use the value coming from the props
|
|
547
|
+
// as it is the source of truth
|
|
548
|
+
|
|
549
|
+
if (checked !== checkedRef.current) {
|
|
550
|
+
setIsChecked(checked);
|
|
551
|
+
checkedRef.current = checked;
|
|
552
|
+
isCheckStr = checked ? 'checked' : 'not-checked';
|
|
553
|
+
} else if (isChecked) isCheckStr = 'checked';else isCheckStr = 'not-checked';
|
|
554
|
+
|
|
555
|
+
if (disabled) isDisabledStr = 'disabled';else isDisabledStr = 'not-disabled';
|
|
556
|
+
return `${isCheckStr} ${isDisabledStr}`;
|
|
557
|
+
}, [checked, isChecked, disabled]);
|
|
536
558
|
return /*#__PURE__*/React__default.createElement(CheckboxWrapper, {
|
|
537
559
|
style: style,
|
|
538
560
|
className: className,
|
|
@@ -541,14 +563,17 @@ const Checkbox = props => {
|
|
|
541
563
|
}, /*#__PURE__*/React__default.createElement(CheckboxLabel, null, label), /*#__PURE__*/React__default.createElement(CheckboxInput, {
|
|
542
564
|
type: "checkbox",
|
|
543
565
|
name: value,
|
|
544
|
-
defaultChecked:
|
|
545
|
-
"aria-checked":
|
|
546
|
-
onChange:
|
|
566
|
+
defaultChecked: isChecked,
|
|
567
|
+
"aria-checked": isChecked,
|
|
568
|
+
onChange: handleOnChange,
|
|
547
569
|
error: error,
|
|
548
570
|
disabled: disabled,
|
|
549
571
|
"data-testid": dataTestId,
|
|
550
572
|
required: required
|
|
551
|
-
}), /*#__PURE__*/React__default.createElement(Checkmark,
|
|
573
|
+
}), /*#__PURE__*/React__default.createElement(Checkmark, {
|
|
574
|
+
className: checkmarkClassName,
|
|
575
|
+
error: error
|
|
576
|
+
}));
|
|
552
577
|
};
|
|
553
578
|
|
|
554
579
|
const {
|
|
@@ -560,19 +585,19 @@ const {
|
|
|
560
585
|
} = colors;
|
|
561
586
|
const CheckboxWrapper$1 = /*#__PURE__*/_styled__default.label.withConfig({
|
|
562
587
|
displayName: "styles__CheckboxWrapper",
|
|
563
|
-
componentId: "itly0z-0"
|
|
588
|
+
componentId: "sc-itly0z-0"
|
|
564
589
|
})(["border:", " solid ", ";border-radius:", ";background-color:", ";height:", ";display:flex;align-items:center;position:relative;cursor:", ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition-duration:0.3s;&:hover input:not(:disabled) ~ span{border-color:", ";}&:hover{background-color:", ";}span{color:", ";transition-duration:0.3s;}"], /*#__PURE__*/polished.rem('3px'), props => props.disabled ? grey$2 : props.checked ? darkGreen$1 : grey$2, /*#__PURE__*/polished.rem('6px'), props => props.disabled ? lightGrey$2 : props.checked ? green$1 : light$2, /*#__PURE__*/polished.rem('50px'), props => props.disabled ? 'auto' : 'pointer', grey$2, props => props.disabled ? lightGrey$2 : props.checked ? green$1 : lightGrey$2, props => props.disabled ? grey$2 : props.checked ? light$2 : null);
|
|
565
590
|
const CheckboxLabel$1 = /*#__PURE__*/_styled__default.span.withConfig({
|
|
566
591
|
displayName: "styles__CheckboxLabel",
|
|
567
|
-
componentId: "itly0z-1"
|
|
592
|
+
componentId: "sc-itly0z-1"
|
|
568
593
|
})(["margin-left:", ";line-height:", ";"], /*#__PURE__*/polished.rem('40px'), /*#__PURE__*/polished.rem('24px'));
|
|
569
594
|
const CheckboxInput$1 = /*#__PURE__*/_styled__default.input.withConfig({
|
|
570
595
|
displayName: "styles__CheckboxInput",
|
|
571
|
-
componentId: "itly0z-2"
|
|
596
|
+
componentId: "sc-itly0z-2"
|
|
572
597
|
})(["position:absolute;left:0;opacity:0;cursor:pointer;&:checked:not(:disabled) ~ span{background-color:", ";border-color:", ";&:after{display:block;}}&:checked:disabled ~ span{border-color:transparent;background-color:", ";color:", ";&:after{display:block;}}&:not(:checked):disabled ~ span{border-color:", ";background-color:", ";}&:hover:not(:disabled){&:checked ~ span{border-color:", ";}}"], light$2, light$2, grey$2, grey$2, grey$2, lightGrey$2, light$2);
|
|
573
598
|
const Checkmark$1 = /*#__PURE__*/_styled__default.span.withConfig({
|
|
574
599
|
displayName: "styles__Checkmark",
|
|
575
|
-
componentId: "itly0z-3"
|
|
600
|
+
componentId: "sc-itly0z-3"
|
|
576
601
|
})(["position:absolute;left:", ";border:", " solid ", ";border-radius:999px;background-color:", ";width:", ";height:", ";transition-duration:0.3s;&:after{content:'';position:absolute;display:none;top:", ";left:", ";width:", ";height:", ";border:solid ", ";border-width:0 ", " ", " 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}"], /*#__PURE__*/polished.rem('10px'), /*#__PURE__*/polished.rem('2px'), grey$2, light$2, /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('9px'), props => props.disabled ? light$2 : green$1, /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('3px'));
|
|
577
602
|
|
|
578
603
|
const CheckboxButton = props => {
|
|
@@ -987,7 +1012,7 @@ const {
|
|
|
987
1012
|
} = typography;
|
|
988
1013
|
const LabelStyle = /*#__PURE__*/_styled__default.label.withConfig({
|
|
989
1014
|
displayName: "styles__LabelStyle",
|
|
990
|
-
componentId: "pbv9we-0"
|
|
1015
|
+
componentId: "sc-pbv9we-0"
|
|
991
1016
|
})(["display:flex;align-items:center;font-size:0.75rem;font-weight:", ";color:", ";text-transform:uppercase;svg{width:auto;height:", ";}"], bold, grey$6, /*#__PURE__*/polished.rem('15px'));
|
|
992
1017
|
|
|
993
1018
|
const {
|
|
@@ -1023,7 +1048,7 @@ const rotation = _styled.keyframes`
|
|
|
1023
1048
|
`;
|
|
1024
1049
|
const Loading = /*#__PURE__*/_styled__default.div.withConfig({
|
|
1025
1050
|
displayName: "styles__Loading",
|
|
1026
|
-
componentId: "sxnx45-0"
|
|
1051
|
+
componentId: "sc-sxnx45-0"
|
|
1027
1052
|
})(["border:", " solid hsla(0,0%,48%,0.5);border-top-color:", ";border-radius:50%;width:", ";height:", ";animation:", " 0.8s ease infinite;"], /*#__PURE__*/polished.rem('5px'), props => props.fill || light$4, props => props.size || polished.rem('20px'), props => props.size || polished.rem('20px'), rotation);
|
|
1028
1053
|
|
|
1029
1054
|
const {
|
|
@@ -1048,7 +1073,7 @@ const Spinner = props => {
|
|
|
1048
1073
|
const TagWrapper = /*#__PURE__*/_styled__default.span.withConfig({
|
|
1049
1074
|
displayName: "styles__TagWrapper",
|
|
1050
1075
|
componentId: "sc-1ghratr-0"
|
|
1051
|
-
})(["--bg:", ";--txt:", ";display:inline-block;border:", " solid var(--bg);border-radius:", ";background-color:", ";
|
|
1076
|
+
})(["--bg:", ";--txt:", ";display:inline-block;border:", " solid var(--bg);border-radius:", ";background-color:", ";padding:", " ", ";font-size:", ";font-weight:", ";text-transform:uppercase;letter-spacing:", ";line-height:1;color:", ";white-space:nowrap;"], props => {
|
|
1052
1077
|
var _props$color;
|
|
1053
1078
|
|
|
1054
1079
|
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
@@ -1056,7 +1081,7 @@ const TagWrapper = /*#__PURE__*/_styled__default.span.withConfig({
|
|
|
1056
1081
|
var _props$txtColor;
|
|
1057
1082
|
|
|
1058
1083
|
return useColor((_props$txtColor = props.txtColor) != null ? _props$txtColor : 'black').color;
|
|
1059
|
-
}, /*#__PURE__*/polished.rem('2px'), /*#__PURE__*/polished.rem('4px'), props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', /*#__PURE__*/polished.rem('
|
|
1084
|
+
}, /*#__PURE__*/polished.rem('2px'), /*#__PURE__*/polished.rem('4px'), props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('8px'), /*#__PURE__*/polished.rem('12px'), typography.medium, /*#__PURE__*/polished.rem('1px'), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)');
|
|
1060
1085
|
|
|
1061
1086
|
const Tag = props => {
|
|
1062
1087
|
const {
|
|
@@ -1079,7 +1104,7 @@ const Tag = props => {
|
|
|
1079
1104
|
|
|
1080
1105
|
const TagWrapper$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
1081
1106
|
displayName: "styles__TagWrapper",
|
|
1082
|
-
componentId: "db57da-0"
|
|
1107
|
+
componentId: "sc-db57da-0"
|
|
1083
1108
|
})(["--bg:", ";--valueColor:", ";display:flex;border:", " solid var(--bg);border-radius:", ";line-height:1;max-width:100%;width:max-content;overflow:hidden;span{display:inline-block;padding:", " ", ";font-size:", ";font-weight:", ";letter-spacing:", ";&.label{flex:1;color:var(--bg);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase;}&.value{background-color:var(--bg);color:var(--valueColor);}}&:not(:first-child){margin-left:", ";}"], props => {
|
|
1084
1109
|
var _props$color;
|
|
1085
1110
|
|
|
@@ -1266,6 +1291,7 @@ const SelectWrapper = _styled__default.div`
|
|
|
1266
1291
|
}
|
|
1267
1292
|
|
|
1268
1293
|
&__value-container {
|
|
1294
|
+
display: flex;
|
|
1269
1295
|
align-items: center;
|
|
1270
1296
|
padding: 0 ${/*#__PURE__*/polished.rem('15px')};
|
|
1271
1297
|
}
|
|
@@ -1331,6 +1357,10 @@ const SelectWrapper = _styled__default.div`
|
|
|
1331
1357
|
|
|
1332
1358
|
.select__value-container.select__value-container--is-multi > div {
|
|
1333
1359
|
align-items: stretch;
|
|
1360
|
+
|
|
1361
|
+
.select__multi-value__remove {
|
|
1362
|
+
padding-right: 0;
|
|
1363
|
+
}
|
|
1334
1364
|
}
|
|
1335
1365
|
|
|
1336
1366
|
.select__value-container,
|
|
@@ -1376,10 +1406,9 @@ const SelectGroupLabel = _styled__default.span`
|
|
|
1376
1406
|
const {
|
|
1377
1407
|
Option
|
|
1378
1408
|
} = Select$1.components;
|
|
1379
|
-
const FormatGroupLabel =
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
}) => {
|
|
1409
|
+
const FormatGroupLabel = props => {
|
|
1410
|
+
var _props$options;
|
|
1411
|
+
|
|
1383
1412
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1384
1413
|
style: {
|
|
1385
1414
|
display: 'flex',
|
|
@@ -1388,16 +1417,22 @@ const FormatGroupLabel = ({
|
|
|
1388
1417
|
}
|
|
1389
1418
|
}, /*#__PURE__*/React__default.createElement(SelectGroupLabel, {
|
|
1390
1419
|
className: "selective-options-group-label"
|
|
1391
|
-
}, label), /*#__PURE__*/React__default.createElement(Tag, {
|
|
1392
|
-
value: `${options == null ? void 0 : options.length}`
|
|
1420
|
+
}, props.label), /*#__PURE__*/React__default.createElement(Tag, {
|
|
1421
|
+
value: `${(_props$options = props.options) == null ? void 0 : _props$options.length}`
|
|
1393
1422
|
}));
|
|
1394
1423
|
};
|
|
1395
1424
|
const CustomSelectOption = (props, commonProps) => /*#__PURE__*/React__default.createElement(Option, Object.assign({}, props, commonProps), props.data.icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
1396
1425
|
icon: props.data.icon
|
|
1397
|
-
}) : props.data.customImage ?
|
|
1426
|
+
}) : props.data.customImage ? /*#__PURE__*/React__default.createElement("img", {
|
|
1427
|
+
src: props.data.customImage,
|
|
1428
|
+
alt: props.data.label
|
|
1429
|
+
}) : null, props.data.label);
|
|
1398
1430
|
const CustomSelectValue = props => /*#__PURE__*/React__default.createElement("div", null, props.data.icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
1399
1431
|
icon: props.data.icon
|
|
1400
|
-
}) : props.data.customImage ?
|
|
1432
|
+
}) : props.data.customImage ? /*#__PURE__*/React__default.createElement("img", {
|
|
1433
|
+
src: props.data.customImage,
|
|
1434
|
+
alt: props.data.label
|
|
1435
|
+
}) : null, props.data.label);
|
|
1401
1436
|
|
|
1402
1437
|
const SelectInteractive = ({
|
|
1403
1438
|
name,
|
|
@@ -2570,7 +2605,7 @@ const {
|
|
|
2570
2605
|
} = colors;
|
|
2571
2606
|
const Wrapper$7 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2572
2607
|
displayName: "styles__Wrapper",
|
|
2573
|
-
componentId: "d2fn4g-0"
|
|
2608
|
+
componentId: "sc-d2fn4g-0"
|
|
2574
2609
|
})(["--default:", ";--light:", ";--dark:", ";", " ", " ", " border-width:", ";border-style:solid;border-color:var(--default);border-radius:", ";background-color:var(--light);padding:", ";div{&:first-child{flex:1;}p{margin:0;}}", ""], grey$e, lightGrey$c, darkGrey$1, props => props.color === 'grey' && _styled.css`
|
|
2575
2610
|
--default: ${grey$e};
|
|
2576
2611
|
--light: ${lightGrey$c};
|
|
@@ -2651,26 +2686,51 @@ const {
|
|
|
2651
2686
|
} = typography;
|
|
2652
2687
|
const TableWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2653
2688
|
displayName: "styles__TableWrapper",
|
|
2654
|
-
componentId: "vmoy3z-0"
|
|
2689
|
+
componentId: "sc-vmoy3z-0"
|
|
2655
2690
|
})(["position:relative;"]);
|
|
2656
2691
|
const OverflowWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2657
2692
|
displayName: "styles__OverflowWrapper",
|
|
2658
|
-
componentId: "vmoy3z-1"
|
|
2693
|
+
componentId: "sc-vmoy3z-1"
|
|
2659
2694
|
})(["@media ", "{display:block;border-radius:", ";background:linear-gradient(to right,", " 30%,rgba(255,255,255,0)),linear-gradient(to right,rgba(255,255,255,0),", " 70%) 0 100%,radial-gradient( farthest-side at 0% 50%,rgba(0,0,0,0.2),rgba(0,0,0,0) ),radial-gradient( farthest-side at 100% 50%,rgba(0,0,0,0.2),rgba(0,0,0,0) ) 0 100%;background-repeat:no-repeat;background-color:#fff;background-size:", " 100%,", " 100%,", " 100%,", " 100%;background-position:0 0,100%,0 0,100%;background-attachment:local,local,scroll,scroll;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;}"], device.s, /*#__PURE__*/polished.rem('6px'), light$c, light$c, /*#__PURE__*/polished.rem('40px'), /*#__PURE__*/polished.rem('40px'), /*#__PURE__*/polished.rem('14px'), /*#__PURE__*/polished.rem('14px'));
|
|
2660
2695
|
const Table = /*#__PURE__*/_styled__default.table.withConfig({
|
|
2661
2696
|
displayName: "styles__Table",
|
|
2662
|
-
componentId: "vmoy3z-2"
|
|
2663
|
-
})(["width:100%;border-width:
|
|
2697
|
+
componentId: "sc-vmoy3z-2"
|
|
2698
|
+
})(["width:100%;border-width:0;border-style:solid;border-color:", ";border-radius:", ";border-spacing:0;white-space:nowrap;@media ", "{border-width:", ";}th,td{height:", ";padding:0 ", ";&.center{text-align:center;> div{justify-content:center;}}&.right{text-align:right;> div{justify-content:flex-end;}}&.thin{@media ", "{max-width:min-content;}}&.kai{text-align:right;> div{justify-content:flex-end;}}&.avatar > div{display:flex;align-items:center;.avatar-img{margin-right:", ";}}}th{font-size:0.85rem;&:first-child{border-top-left-radius:", ";}&:last-child{border-top-right-radius:", ";}}tr{border:", " solid ", ";border-radius:", ";position:relative;&:not(:last-child){margin-bottom:", ";}@media ", "{border:0;}}thead{border:none;clip:rect(0 0 0 0);height:", ";margin:", ";overflow:hidden;padding:0;position:absolute;width:", ";@media ", "{display:contents;font-weight:", ";color:", ";text-transform:uppercase;text-align:left;}}tbody{tr{display:block;transition-duration:0.3s;&:hover{background-color:", ";td.menu{button{opacity:1;}}}@media ", "{display:table-row;}}td{border-top:", " solid ", ";height:inherit;min-height:", ";padding:", ";display:flex;justify-content:flex-end;align-items:center;> div{margin-left:", ";height:100%;display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;text-align:right;> span{display:none;&:first-child,&:last-child{display:inherit;}}}img{min-width:", ";min-height:", ";}a{display:flex;align-items:center;color:", ";text-decoration-color:", ";}&:first-child{border:0;}&:before{position:absolute;left:", ";content:attr(data-label);font-weight:", ";text-transform:capitalize;", "}&.kai{svg{float:right;width:auto;min-width:", ";max-height:", ";}}.avatar-img{display:none;}.tag{margin:0;&:not(:first-child){display:none;}}&.menu{padding:0 ", " 0 0;button{margin-top:", ";transition:0.3s;}ul{top:", ";margin-left:", ";}}@media ", "{display:table-cell;height:", ";padding:0 ", ";> div{position:relative;margin-left:0;display:flex-start;justify-content:flex-start;text-align:left;> span{display:inherit;}}&:first-child{border-top:", " solid ", ";}&:before{content:'';}&.kai{max-width:", ";}.avatar-img{display:inherit;}.tag{&:not(:first-child){display:inherit;}&:not(:last-child){margin-right:", ";}}&.menu{width:", ";button{opacity:0;}}}}}"], grey$f, /*#__PURE__*/polished.rem('6px'), device.s, props => props.border ? polished.rem('1px') : '0', /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), device.s, /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('1px'), grey$f, /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('15px'), device.s, /*#__PURE__*/polished.rem('1px'), /*#__PURE__*/polished.rem('-1px'), /*#__PURE__*/polished.rem('1px'), device.s, bold$3, grey$f, props => props.loadingState ? 'transparent' : lightGrey$d, device.s, /*#__PURE__*/polished.rem('1px'), grey$f, /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('100px'), /*#__PURE__*/polished.rem('30px'), /*#__PURE__*/polished.rem('30px'), normal$7, grey$f, /*#__PURE__*/polished.rem('15px'), bold$3, props => props.loadingState && _styled.css`
|
|
2699
|
+
width: ${polished.rem('75px')};
|
|
2700
|
+
height: ${polished.rem('15px')};
|
|
2701
|
+
background: #f6f7f8;
|
|
2702
|
+
background-image: -webkit-linear-gradient(
|
|
2703
|
+
left,
|
|
2704
|
+
#f6f7f8 0%,
|
|
2705
|
+
#edeef1 20%,
|
|
2706
|
+
#f6f7f8 40%,
|
|
2707
|
+
#f6f7f8 100%
|
|
2708
|
+
);
|
|
2709
|
+
background-repeat: no-repeat;
|
|
2710
|
+
background-size: ${polished.rem('800px')} 100%;
|
|
2711
|
+
animation-fill-mode: forwards;
|
|
2712
|
+
animation-name: placeholderSkeleton;
|
|
2713
|
+
animation-timing-function: linear;
|
|
2714
|
+
animation-iteration-count: infinite;
|
|
2715
|
+
animation-duration: 1.5s;
|
|
2716
|
+
`, /*#__PURE__*/polished.rem('20px'), /*#__PURE__*/polished.rem('20px'), /*#__PURE__*/polished.rem('10px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('36px'), /*#__PURE__*/polished.rem('-170px'), device.s, /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('1px'), grey$f, /*#__PURE__*/polished.rem('100px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('40px'));
|
|
2717
|
+
const SkeletonCell = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2718
|
+
displayName: "styles__SkeletonCell",
|
|
2719
|
+
componentId: "sc-vmoy3z-3"
|
|
2720
|
+
})(["@keyframes placeholderSkeleton{0%{background-position:", " 0;}100%{background-position:", " 0;}}width:100%;height:", " !important;background:#f6f7f8;background-image:-webkit-linear-gradient( left,#f6f7f8 0%,#edeef1 20%,#f6f7f8 40%,#f6f7f8 100% );background-repeat:no-repeat;background-size:", " 100%;animation-fill-mode:forwards;animation-name:placeholderSkeleton;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:1.5s;"], /*#__PURE__*/polished.rem('-800px'), /*#__PURE__*/polished.rem('800px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('800px'));
|
|
2664
2721
|
|
|
2665
2722
|
const Table$1 = props => {
|
|
2666
2723
|
const {
|
|
2667
|
-
border =
|
|
2724
|
+
border = true,
|
|
2668
2725
|
options,
|
|
2669
2726
|
values = [],
|
|
2670
2727
|
actions = [],
|
|
2671
2728
|
dataTestId = 'table-test-id',
|
|
2672
2729
|
menuDataTestId = 'table-action-menu',
|
|
2673
2730
|
actionMenuTestId = 'icon-button',
|
|
2731
|
+
loading = false,
|
|
2732
|
+
loadingColumns = 4,
|
|
2733
|
+
loadingRows = 20,
|
|
2674
2734
|
showEmpty = false,
|
|
2675
2735
|
emptyValue = 'No Data',
|
|
2676
2736
|
className = 'table',
|
|
@@ -2690,6 +2750,9 @@ const Table$1 = props => {
|
|
|
2690
2750
|
const hasActionMenu = actions.length > 0;
|
|
2691
2751
|
const validValues = values.filter(hasValue);
|
|
2692
2752
|
const hasValues = Array.isArray(values) && values.length > 0;
|
|
2753
|
+
const headSkeleton = /*#__PURE__*/React__default.createElement("th", null, /*#__PURE__*/React__default.createElement(SkeletonCell, null));
|
|
2754
|
+
const cellSkeleton = /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(SkeletonCell, null));
|
|
2755
|
+
const columnsSkeleton = columns.length > 0 ? columns.length : loadingColumns;
|
|
2693
2756
|
|
|
2694
2757
|
if (showEmpty && !hasValues) {
|
|
2695
2758
|
const columnHeaders = columns.map(column => column.value);
|
|
@@ -2704,8 +2767,11 @@ const Table$1 = props => {
|
|
|
2704
2767
|
border: border,
|
|
2705
2768
|
"data-testid": dataTestId,
|
|
2706
2769
|
className: className,
|
|
2707
|
-
style: style
|
|
2708
|
-
|
|
2770
|
+
style: style,
|
|
2771
|
+
loadingState: loading
|
|
2772
|
+
}, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", null, loading && !columns ? Array.from({
|
|
2773
|
+
length: loadingColumns
|
|
2774
|
+
}, () => headSkeleton) : columns.map(({
|
|
2709
2775
|
id = '',
|
|
2710
2776
|
className = '',
|
|
2711
2777
|
value = '',
|
|
@@ -2714,7 +2780,11 @@ const Table$1 = props => {
|
|
|
2714
2780
|
key: id,
|
|
2715
2781
|
className: className,
|
|
2716
2782
|
"data-testid": colDataTestId ? `th-${colDataTestId}` : null
|
|
2717
|
-
}, value)), hasActionMenu && /*#__PURE__*/React__default.createElement("th", null))), /*#__PURE__*/React__default.createElement("tbody", null,
|
|
2783
|
+
}, value)), !loading && hasActionMenu && /*#__PURE__*/React__default.createElement("th", null))), /*#__PURE__*/React__default.createElement("tbody", null, loading ? Array.from({
|
|
2784
|
+
length: loadingRows
|
|
2785
|
+
}, () => /*#__PURE__*/React__default.createElement("tr", null, Array.from({
|
|
2786
|
+
length: columnsSkeleton
|
|
2787
|
+
}, () => cellSkeleton))) : validValues.map((row, index) => /*#__PURE__*/React__default.createElement("tr", {
|
|
2718
2788
|
key: row.id,
|
|
2719
2789
|
"data-testid": `row-${dataTestId}`
|
|
2720
2790
|
}, columns.map(({
|
|
@@ -2942,7 +3012,7 @@ const {
|
|
|
2942
3012
|
} = colors;
|
|
2943
3013
|
const Wrapper$8 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2944
3014
|
displayName: "styles__Wrapper",
|
|
2945
|
-
componentId: "mbja2a-0"
|
|
3015
|
+
componentId: "sc-mbja2a-0"
|
|
2946
3016
|
})(["display:inline-block;> label{margin-bottom:", ";color:", ";span{color:", ";}}&:not(:last-child){margin-bottom:", ";}"], /*#__PURE__*/polished.rem('5px'), props => props.error ? red$9 : grey$h, props => props.error ? red$9 : normal$9, /*#__PURE__*/polished.rem('15px'));
|
|
2947
3017
|
|
|
2948
3018
|
const FormGroup = props => {
|
|
@@ -5688,11 +5758,11 @@ const {
|
|
|
5688
5758
|
} = typography;
|
|
5689
5759
|
const Wrapper$g = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5690
5760
|
displayName: "styles__Wrapper",
|
|
5691
|
-
componentId: "znznmm-0"
|
|
5761
|
+
componentId: "sc-znznmm-0"
|
|
5692
5762
|
})(["display:flex;align-items:center;ul.menu{width:0;animation:showAnimation 1s forwards;animation-delay:0.5s;overflow:hidden;}@keyframes showAnimation{0%{width:0%;}100%{width:100%;}}ul{margin:0;max-width:max-content;padding:0;&.menu{display:flex;li:not(:last-child){margin-right:", ";}}li{position:relative;list-style:none;a{display:flex;align-items:center;padding:", ";color:", ";text-transform:capitalize;text-decoration:none;white-space:nowrap;transition-duration:0.3s;svg{margin-right:", ";width:auto;height:", ";min-width:", ";fill:", ";transition-duration:0.3s;}&:hover{color:", ";svg{fill:", ";}}}&.active{font-weight:", ";a{pointer-events:none;svg{fill:", ";}}}}}"], /*#__PURE__*/polished.rem('10px'), /*#__PURE__*/polished.rem('10px'), normal$e, /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('24px'), grey$m, props => props.customColor ? props.customColor : purple500$5, props => props.customColor ? props.customColor : purple500$5, bold$8, props => props.customColor ? props.customColor : purple500$5);
|
|
5693
5763
|
const More = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5694
5764
|
displayName: "styles__More",
|
|
5695
|
-
componentId: "znznmm-1"
|
|
5765
|
+
componentId: "sc-znznmm-1"
|
|
5696
5766
|
})(["position:relative;display:none;&.hide{display:initial;}ul{position:absolute;right:0;border:", " solid ", ";border-radius:", ";background-color:", ";margin-top:", ";padding:0;-moz-box-shadow:0 0 ", " 0 rgba(40,40,40,0.2);-webkit-box-shadow:0 0 ", " 0 rgba(40,40,40,0.2);box-shadow:0 0 ", " 0 rgba(40,40,40,0.2);z-index:1;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;&.more{display:none;}&.is-open{display:inherit;}li{list-style:none;transition-duration:0.3s;&:hover{background-color:", ";cursor:pointer;a{color:", ";svg{fill:", ";}}}&:first-child{border-radius:", " ", " 0 0;}&:last-child{border-radius:0 0 ", " ", ";}a{width:100%;height:100%;padding:", ";}}}"], /*#__PURE__*/polished.rem('1px'), lightGrey$j, /*#__PURE__*/polished.rem('4px'), light$i, /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('15px'), lightGrey$j, normal$e, normal$e, /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('15px'));
|
|
5697
5767
|
|
|
5698
5768
|
const HorizontalNav = props => {
|
|
@@ -5790,7 +5860,7 @@ const ModalContainer = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
5790
5860
|
const ModalHeader = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5791
5861
|
displayName: "styles__ModalHeader",
|
|
5792
5862
|
componentId: "sc-16r6vcc-3"
|
|
5793
|
-
})(["display:flex;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}button{display:none;position:absolute;top:0;right:0;margin:", " ", " 0 0;
|
|
5863
|
+
})(["display:flex;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}button{display:none;position:absolute;top:0;right:0;margin:", " ", " 0 0;border:", " solid ", ";min-width:", ";height:", ";z-index:1;@media ", "{display:inherit;}}"], /*#__PURE__*/polished.rem('30px'), bold$9, /*#__PURE__*/polished.rem('-14px'), /*#__PURE__*/polished.rem('-14px'), /*#__PURE__*/polished.rem('2px'), colors.grey200, /*#__PURE__*/polished.rem('28px'), /*#__PURE__*/polished.rem('28px'), device.s);
|
|
5794
5864
|
|
|
5795
5865
|
const Modal = props => {
|
|
5796
5866
|
const {
|
|
@@ -5829,11 +5899,12 @@ const Modal = props => {
|
|
|
5829
5899
|
zIndex: zIndex,
|
|
5830
5900
|
className: "modal"
|
|
5831
5901
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, title && /*#__PURE__*/React__default.createElement("h2", null, title), /*#__PURE__*/React__default.createElement(Button, {
|
|
5832
|
-
|
|
5833
|
-
|
|
5902
|
+
color: "white",
|
|
5903
|
+
txtColor: "grey200",
|
|
5834
5904
|
icon: "cross",
|
|
5835
5905
|
ariaLabel: "Close",
|
|
5836
|
-
action: hide
|
|
5906
|
+
action: hide,
|
|
5907
|
+
rounded: true
|
|
5837
5908
|
})), children, footer && /*#__PURE__*/React__default.createElement(ModalFooter, {
|
|
5838
5909
|
closeAction: hide,
|
|
5839
5910
|
closeValue: closeValue
|
|
@@ -6018,25 +6089,6 @@ const Wrapper$h = _styled__default.div`
|
|
|
6018
6089
|
}
|
|
6019
6090
|
}
|
|
6020
6091
|
`;
|
|
6021
|
-
const Table$3 = _styled__default.div`
|
|
6022
|
-
--columns: ${props => props.columnsNumber};
|
|
6023
|
-
|
|
6024
|
-
display: grid;
|
|
6025
|
-
grid-template-columns: repeat(4, 1fr);
|
|
6026
|
-
grid-template-columns: repeat(var(--columns), 1fr);
|
|
6027
|
-
grid-gap: ${/*#__PURE__*/polished.rem('15px')};
|
|
6028
|
-
padding: ${/*#__PURE__*/polished.rem('15px')};
|
|
6029
|
-
|
|
6030
|
-
.header {
|
|
6031
|
-
width: 50%;
|
|
6032
|
-
height: ${/*#__PURE__*/polished.rem('15px')};
|
|
6033
|
-
}
|
|
6034
|
-
|
|
6035
|
-
.cell {
|
|
6036
|
-
width: 100%;
|
|
6037
|
-
height: ${/*#__PURE__*/polished.rem('15px')};
|
|
6038
|
-
}
|
|
6039
|
-
`;
|
|
6040
6092
|
const Grid = _styled__default.div`
|
|
6041
6093
|
display: grid;
|
|
6042
6094
|
grid-template-columns: repeat(auto-fill, ${/*#__PURE__*/polished.rem('300px')});
|
|
@@ -6049,15 +6101,10 @@ const LoadingState = props => {
|
|
|
6049
6101
|
type = 'text',
|
|
6050
6102
|
lines = 3,
|
|
6051
6103
|
cardsNumber = 4,
|
|
6052
|
-
header = true,
|
|
6053
|
-
columnsNumber = 4,
|
|
6054
|
-
rowsNumber = 3,
|
|
6055
6104
|
center = true
|
|
6056
6105
|
} = props;
|
|
6057
6106
|
let paragraphs = [];
|
|
6058
6107
|
let cards = [];
|
|
6059
|
-
let tableHeader = [];
|
|
6060
|
-
let columns = [];
|
|
6061
6108
|
let loadingType;
|
|
6062
6109
|
|
|
6063
6110
|
for (let i = 0; i < lines; i++) {
|
|
@@ -6088,20 +6135,6 @@ const LoadingState = props => {
|
|
|
6088
6135
|
})));
|
|
6089
6136
|
}
|
|
6090
6137
|
|
|
6091
|
-
for (let i = 0; i < columnsNumber; i++) {
|
|
6092
|
-
tableHeader.push( /*#__PURE__*/React__default.createElement("div", {
|
|
6093
|
-
key: i,
|
|
6094
|
-
className: "header"
|
|
6095
|
-
}));
|
|
6096
|
-
}
|
|
6097
|
-
|
|
6098
|
-
for (let i = 0; i < columnsNumber * rowsNumber; i++) {
|
|
6099
|
-
columns.push( /*#__PURE__*/React__default.createElement("div", {
|
|
6100
|
-
key: i,
|
|
6101
|
-
className: "cell"
|
|
6102
|
-
}));
|
|
6103
|
-
}
|
|
6104
|
-
|
|
6105
6138
|
switch (type) {
|
|
6106
6139
|
case 'text':
|
|
6107
6140
|
loadingType = /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -6117,13 +6150,6 @@ const LoadingState = props => {
|
|
|
6117
6150
|
}, cards);
|
|
6118
6151
|
break;
|
|
6119
6152
|
|
|
6120
|
-
case 'table':
|
|
6121
|
-
loadingType = /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Table$3, {
|
|
6122
|
-
className: "table",
|
|
6123
|
-
columnsNumber: columnsNumber
|
|
6124
|
-
}, header && tableHeader, columns));
|
|
6125
|
-
break;
|
|
6126
|
-
|
|
6127
6153
|
case 'value':
|
|
6128
6154
|
loadingType = /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
6129
6155
|
className: "value"
|