@taikai/rocket-kit 3.0.0-beta.2 → 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/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 +0 -1
- package/dist/rocket-kit.cjs.development.js +82 -47
- package/dist/rocket-kit.cjs.development.js.map +1 -1
- package/dist/rocket-kit.cjs.production.min.js +240 -235
- package/dist/rocket-kit.cjs.production.min.js.map +1 -1
- package/dist/rocket-kit.esm.js +83 -48
- package/dist/rocket-kit.esm.js.map +1 -1
- package/package.json +2 -3
|
@@ -11,5 +11,5 @@ interface Props {
|
|
|
11
11
|
dataTestId?: string;
|
|
12
12
|
required?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const Checkbox: (
|
|
14
|
+
declare const Checkbox: ({ label, value, checked, onChange, error, disabled, className, style, dataTestId, required, }: Props) => JSX.Element;
|
|
15
15
|
export default Checkbox;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TCustomOptions,
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { TCustomOptions, TSelectInteractiveOption } from '../types';
|
|
3
|
+
export interface GroupBase {
|
|
4
|
+
options: readonly TSelectInteractiveOption[];
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormatGroupLabel: (props: GroupBase) => JSX.Element;
|
|
5
8
|
export declare const CustomSelectOption: (props: TCustomOptions, commonProps: any) => JSX.Element;
|
|
6
9
|
export declare const CustomSelectValue: (props: TCustomOptions) => JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SelectInteractiveProps, TSelectInteractiveOption } from './types';
|
|
3
2
|
declare const SelectInteractive: ({ name, multi, search, placeholder, options, value, clear, error, disabled, formatGroupLabel, onChange, onInputChange, ...rest }: SelectInteractiveProps<TSelectInteractiveOption>) => JSX.Element;
|
|
4
3
|
export default SelectInteractive;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MapHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import NamedProps from 'react-select/dist/declarations/src/Select';
|
|
3
3
|
export interface TSelectInteractiveOption {
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
@@ -7,7 +7,7 @@ export interface TSelectInteractiveOption {
|
|
|
7
7
|
}
|
|
8
8
|
export interface TOptions extends TSelectInteractiveOption {
|
|
9
9
|
icon?: string;
|
|
10
|
-
customImage?:
|
|
10
|
+
customImage?: string;
|
|
11
11
|
}
|
|
12
12
|
export interface TCustomOptions {
|
|
13
13
|
data: TOptions;
|
|
@@ -266,7 +266,7 @@ const useColor = value => {
|
|
|
266
266
|
|
|
267
267
|
const ButtonWrapper = /*#__PURE__*/_styled__default.button.withConfig({
|
|
268
268
|
displayName: "styles__ButtonWrapper",
|
|
269
|
-
componentId: "baestp-0"
|
|
269
|
+
componentId: "sc-baestp-0"
|
|
270
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
|
|
|
@@ -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
|
|
|
@@ -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"
|
|
516
|
+
componentId: "sc-w5t014-2"
|
|
517
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 {
|
|
@@ -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,15 +2686,15 @@ 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"
|
|
2697
|
+
componentId: "sc-vmoy3z-2"
|
|
2663
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`
|
|
2664
2699
|
width: ${polished.rem('75px')};
|
|
2665
2700
|
height: ${polished.rem('15px')};
|
|
@@ -2681,7 +2716,7 @@ const Table = /*#__PURE__*/_styled__default.table.withConfig({
|
|
|
2681
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'));
|
|
2682
2717
|
const SkeletonCell = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2683
2718
|
displayName: "styles__SkeletonCell",
|
|
2684
|
-
componentId: "vmoy3z-3"
|
|
2719
|
+
componentId: "sc-vmoy3z-3"
|
|
2685
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'));
|
|
2686
2721
|
|
|
2687
2722
|
const Table$1 = props => {
|
|
@@ -2977,7 +3012,7 @@ const {
|
|
|
2977
3012
|
} = colors;
|
|
2978
3013
|
const Wrapper$8 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2979
3014
|
displayName: "styles__Wrapper",
|
|
2980
|
-
componentId: "mbja2a-0"
|
|
3015
|
+
componentId: "sc-mbja2a-0"
|
|
2981
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'));
|
|
2982
3017
|
|
|
2983
3018
|
const FormGroup = props => {
|
|
@@ -5723,11 +5758,11 @@ const {
|
|
|
5723
5758
|
} = typography;
|
|
5724
5759
|
const Wrapper$g = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5725
5760
|
displayName: "styles__Wrapper",
|
|
5726
|
-
componentId: "znznmm-0"
|
|
5761
|
+
componentId: "sc-znznmm-0"
|
|
5727
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);
|
|
5728
5763
|
const More = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5729
5764
|
displayName: "styles__More",
|
|
5730
|
-
componentId: "znznmm-1"
|
|
5765
|
+
componentId: "sc-znznmm-1"
|
|
5731
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'));
|
|
5732
5767
|
|
|
5733
5768
|
const HorizontalNav = props => {
|