@xaypay/tui 0.0.73 → 0.0.75
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/index.es.js +433 -187
- package/dist/index.js +433 -187
- package/package.json +1 -1
- package/src/components/icon/Close.js +19 -0
- package/src/components/icon/CloseSlide.js +19 -0
- package/src/components/icon/Next.js +21 -0
- package/src/components/icon/Prev.js +21 -0
- package/src/components/icon/index.js +1 -2
- package/src/components/modal/index.js +296 -69
- package/src/components/modal/modal.module.css +14 -65
- package/src/components/modal/modal.stories.js +26 -7
- package/src/components/newAutocomplete/NewAutocomplete.stories.js +3 -2
- package/src/components/newAutocomplete/index.js +12 -2
- package/src/components/select/index.js +1 -1
- package/src/stories/configuration.stories.mdx +16 -0
- package/src/stories/static/modal-usage.png +0 -0
- package/src/stories/usage.stories.mdx +5 -1
- package/tui.config.js +13 -0
package/dist/index.js
CHANGED
|
@@ -399,13 +399,6 @@ Table.defaultProps = {
|
|
|
399
399
|
hearderData: []
|
|
400
400
|
};
|
|
401
401
|
|
|
402
|
-
var css_248z$b = ".modal-module_modal-wrap__IsXXf{background:rgba(0,0,0,.4);height:100%;left:0;position:fixed;top:0;width:100%;z-index:9}.modal-module_modal-top__ntDBi{background:#fbfbfb;box-sizing:border-box;display:flex;flex-direction:row;height:44px;padding:4px 10px 4px 0;width:100%}.modal-module_modal-title__r-WKl{align-items:center;color:#3c393e;display:flex;flex:1 1;font-size:20px;font-weight:500;line-height:24px;padding-right:20px}.modal-module_close-btn__Qf2UD{cursor:pointer;flex:0 0 auto;width:24px}.modal-module_close-btn__Qf2UD,.modal-module_modal-section__Bp8jN{align-items:center;display:flex;height:100%;justify-content:center}.modal-module_modal-section__Bp8jN{flex:1 1;padding:10px 0;width:100%}.modal-module_modal-content__1F-uE{align-items:center;animation:modal-module_show-popup__WrH7a .24s;background:#fff;border-radius:8px;display:flex;flex-direction:column;height:auto;left:0;margin:auto;min-height:130px;overflow:hidden;padding:10px;position:absolute;right:0;top:110px;width:fit-content}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-30%,0)}to{opacity:1;transform:translateZ(0)}}";
|
|
403
|
-
var styles$9 = {"modal-wrap":"modal-module_modal-wrap__IsXXf","modal-top":"modal-module_modal-top__ntDBi","modal-title":"modal-module_modal-title__r-WKl","close-btn":"modal-module_close-btn__Qf2UD","modal-section":"modal-module_modal-section__Bp8jN","modal-content":"modal-module_modal-content__1F-uE","show-popup":"modal-module_show-popup__WrH7a"};
|
|
404
|
-
styleInject(css_248z$b);
|
|
405
|
-
|
|
406
|
-
var css_248z$a = "";
|
|
407
|
-
styleInject(css_248z$a);
|
|
408
|
-
|
|
409
402
|
const _ = require('lodash');
|
|
410
403
|
const compereConfigs = () => {
|
|
411
404
|
let projectConfig = {};
|
|
@@ -429,175 +422,338 @@ const compereConfigs = () => {
|
|
|
429
422
|
return _.merge(packageConfig, projectConfig);
|
|
430
423
|
};
|
|
431
424
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
425
|
+
var css_248z$b = ".modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
|
|
426
|
+
var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
|
|
427
|
+
styleInject(css_248z$b);
|
|
428
|
+
|
|
429
|
+
const SvgNext = ({
|
|
430
|
+
title,
|
|
431
|
+
titleId,
|
|
432
|
+
...props
|
|
433
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
434
|
+
width: "24",
|
|
435
|
+
height: "24",
|
|
436
|
+
viewBox: "0 0 24 24",
|
|
437
|
+
fill: "none",
|
|
438
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
439
|
+
"aria-labelledby": titleId
|
|
440
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
441
|
+
id: titleId
|
|
442
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
443
|
+
fillRule: "evenodd",
|
|
444
|
+
clipRule: "evenodd",
|
|
445
|
+
d: "M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Zm3.4-11.443a.854.854 0 0 0 .198-.548.855.855 0 0 0-.146-.539l-4.137-5.134a.857.857 0 0 0-1.251-.12.856.856 0 0 0-.129 1.207l3.701 4.586-3.838 4.587a.856.856 0 0 0 .739 1.4.858.858 0 0 0 .58-.305l4.284-5.134Z",
|
|
446
|
+
fill: "#fff"
|
|
447
|
+
}));
|
|
448
|
+
|
|
449
|
+
const SvgPrev = ({
|
|
450
|
+
title,
|
|
451
|
+
titleId,
|
|
452
|
+
...props
|
|
453
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
454
|
+
width: "24",
|
|
455
|
+
height: "24",
|
|
456
|
+
viewBox: "0 0 24 24",
|
|
457
|
+
fill: "none",
|
|
458
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
459
|
+
"aria-labelledby": titleId
|
|
460
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
461
|
+
id: titleId
|
|
462
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
463
|
+
fillRule: "evenodd",
|
|
464
|
+
clipRule: "evenodd",
|
|
465
|
+
d: "M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0ZM8.6 11.443a.855.855 0 0 0-.198.548c-.013.19.038.38.146.539l4.137 5.133a.857.857 0 0 0 1.251.12.856.856 0 0 0 .129-1.206l-3.701-4.586 3.838-4.587a.856.856 0 0 0-.739-1.4.858.858 0 0 0-.58.305l-4.284 5.134Z",
|
|
466
|
+
fill: "#fff"
|
|
467
|
+
}));
|
|
468
|
+
|
|
469
|
+
const SvgCloseIcon = ({
|
|
470
|
+
title,
|
|
471
|
+
titleId,
|
|
472
|
+
...props
|
|
473
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
474
|
+
width: "14",
|
|
475
|
+
height: "14",
|
|
476
|
+
viewBox: "0 0 14 14",
|
|
477
|
+
fill: "none",
|
|
478
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
479
|
+
"aria-labelledby": titleId
|
|
480
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
481
|
+
id: titleId
|
|
482
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
483
|
+
d: "m12.425.241.006-.005a.95.95 0 0 1 1.34 1.34l-.005.006-5.38 5.38 5.38 5.38.005.007a.95.95 0 0 1-1.34 1.34l-.006-.005-5.38-5.38-5.378 5.37a.951.951 0 1 1-1.34-1.341l5.377-5.37-5.38-5.388-.005-.006a.95.95 0 0 1 1.34-1.34l.006.005 5.38 5.387 5.38-5.38Z",
|
|
484
|
+
fill: "#3C393E"
|
|
485
|
+
}));
|
|
486
|
+
|
|
487
|
+
const SvgCloseSlide = ({
|
|
488
|
+
title,
|
|
489
|
+
titleId,
|
|
490
|
+
...props
|
|
491
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
492
|
+
width: "18",
|
|
493
|
+
height: "18",
|
|
494
|
+
viewBox: "0 0 18 18",
|
|
495
|
+
fill: "none",
|
|
496
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
497
|
+
"aria-labelledby": titleId
|
|
498
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
499
|
+
id: titleId
|
|
500
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
501
|
+
d: "m10.47 8.95 7.29-7.29A1 1 0 0 0 16.35.25L9.06 7.54 1.77.24A1 1 0 0 0 .36 1.65l7.29 7.3-7.3 7.29a.999.999 0 1 0 1.41 1.41l7.3-7.29 7.29 7.29a1 1 0 0 0 1.41-1.41l-7.29-7.29Z",
|
|
502
|
+
fill: "#fff"
|
|
503
|
+
}));
|
|
504
|
+
|
|
505
|
+
const Modal = ({
|
|
506
|
+
type,
|
|
507
|
+
data,
|
|
446
508
|
radius,
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
onClick,
|
|
509
|
+
padding,
|
|
510
|
+
setShow,
|
|
511
|
+
selected,
|
|
451
512
|
children,
|
|
452
|
-
|
|
453
|
-
|
|
513
|
+
minWidth,
|
|
514
|
+
minHeight,
|
|
454
515
|
className,
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
516
|
+
headerText,
|
|
517
|
+
imageWidth,
|
|
518
|
+
headerSize,
|
|
519
|
+
imageHeight,
|
|
520
|
+
headerColor,
|
|
521
|
+
headerWeight,
|
|
522
|
+
headerHeight,
|
|
461
523
|
backgroundColor,
|
|
462
|
-
|
|
524
|
+
layerBackgroundColor
|
|
463
525
|
}) => {
|
|
526
|
+
const [select, setSelect] = React.useState(0);
|
|
527
|
+
const [innerData, setInnerData] = React.useState([]);
|
|
464
528
|
const configStyles = compereConfigs();
|
|
465
529
|
const classProps = classnames__default["default"](className);
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
React.useEffect(() => {
|
|
469
|
-
if (!Object.values(TypographyType).includes(variant)) {
|
|
470
|
-
setValidVariant(true);
|
|
471
|
-
}
|
|
472
|
-
}, [variant]);
|
|
473
|
-
const handleMouseEnter = () => {
|
|
474
|
-
setIsHover(true);
|
|
530
|
+
const handleCloseModal = () => {
|
|
531
|
+
setShow(false);
|
|
475
532
|
};
|
|
476
|
-
const
|
|
477
|
-
|
|
533
|
+
const handleStopClosing = e => {
|
|
534
|
+
e.stopPropagation();
|
|
478
535
|
};
|
|
479
|
-
const
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
variant: 'p'
|
|
526
|
-
};
|
|
527
|
-
|
|
528
|
-
const Modal = ({
|
|
529
|
-
setShow,
|
|
530
|
-
headerText,
|
|
531
|
-
className,
|
|
532
|
-
type,
|
|
533
|
-
data,
|
|
534
|
-
selected,
|
|
535
|
-
children
|
|
536
|
-
}) => {
|
|
537
|
-
classnames__default["default"](styles$9.modal, className);
|
|
538
|
-
const [select, setSelect] = React.useState(selected);
|
|
536
|
+
const handleGoTo = e => {
|
|
537
|
+
const goTo = e.target.getAttribute('data-go');
|
|
538
|
+
if (goTo === 'next') {
|
|
539
|
+
if (select >= data.length - 1) {
|
|
540
|
+
setSelect(0);
|
|
541
|
+
} else {
|
|
542
|
+
setSelect(select + 1);
|
|
543
|
+
}
|
|
544
|
+
} else {
|
|
545
|
+
if (select <= 0) {
|
|
546
|
+
setSelect(data.length - 1);
|
|
547
|
+
} else {
|
|
548
|
+
setSelect(select - 1);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
};
|
|
552
|
+
React.useEffect(() => {
|
|
553
|
+
if (type === 'images') {
|
|
554
|
+
if (data) {
|
|
555
|
+
if (data.length === 0) {
|
|
556
|
+
alert('Please fill data prop');
|
|
557
|
+
} else {
|
|
558
|
+
setInnerData(data);
|
|
559
|
+
}
|
|
560
|
+
} else {
|
|
561
|
+
alert('Please add data prop on Modal component');
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}, [type, data, data?.length]);
|
|
565
|
+
React.useEffect(() => {
|
|
566
|
+
if (selected) {
|
|
567
|
+
if (selected <= 0) {
|
|
568
|
+
setSelect(0);
|
|
569
|
+
} else if (selected >= data.length - 1) {
|
|
570
|
+
setSelect(data.length - 1);
|
|
571
|
+
} else {
|
|
572
|
+
setSelect(selected);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}, [selected]);
|
|
576
|
+
React.useEffect(() => {
|
|
577
|
+
return () => {
|
|
578
|
+
setSelect(0);
|
|
579
|
+
setInnerData([]);
|
|
580
|
+
};
|
|
581
|
+
}, []);
|
|
539
582
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
583
|
+
onClick: handleCloseModal,
|
|
584
|
+
style: {
|
|
585
|
+
top: '0px',
|
|
586
|
+
left: '0px',
|
|
587
|
+
zIndex: 999,
|
|
588
|
+
width: '100%',
|
|
589
|
+
height: '100vh',
|
|
590
|
+
position: 'fixed',
|
|
591
|
+
backgroundColor: layerBackgroundColor ? layerBackgroundColor : configStyles.MODAL.layerBackgroundColor
|
|
546
592
|
}
|
|
547
593
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
548
|
-
|
|
594
|
+
style: {
|
|
595
|
+
position: 'relative',
|
|
596
|
+
width: '100%',
|
|
597
|
+
height: '100vh'
|
|
598
|
+
}
|
|
549
599
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
550
|
-
className: `${styles$9[
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
600
|
+
className: `${classProps} ${styles$9['animation__modal']}`,
|
|
601
|
+
onClick: handleStopClosing,
|
|
602
|
+
style: {
|
|
603
|
+
top: '0px',
|
|
604
|
+
left: '0px',
|
|
605
|
+
right: '0px',
|
|
606
|
+
bottom: '0px',
|
|
607
|
+
margin: 'auto',
|
|
608
|
+
maxWidth: '95%',
|
|
609
|
+
overflow: 'auto',
|
|
610
|
+
maxHeight: '95vh',
|
|
611
|
+
position: 'absolute',
|
|
612
|
+
width: 'fit-content',
|
|
613
|
+
height: 'fit-content',
|
|
614
|
+
boxSizing: 'border-box',
|
|
615
|
+
borderRadius: radius ? radius : configStyles.MODAL.radius,
|
|
616
|
+
minWidth: type === 'content' ? minWidth ? minWidth : '' : '',
|
|
617
|
+
minHeight: type === 'content' ? minHeight ? minHeight : '' : '',
|
|
618
|
+
padding: type === 'content' ? padding ? padding : configStyles.MODAL.padding : '10px',
|
|
619
|
+
backgroundColor: backgroundColor ? backgroundColor : configStyles.MODAL.backgroundColor
|
|
565
620
|
}
|
|
566
621
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
572
|
-
className: `${styles$9["modal-section"]} modal-section-rem`
|
|
573
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", null, select > 1 ? /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
574
|
-
onClick: () => setSelect(select - 1)
|
|
575
|
-
}, "-") : null, data.map(elem => {
|
|
576
|
-
if (select == elem.id) {
|
|
577
|
-
return /*#__PURE__*/React__default["default"].createElement("img", {
|
|
578
|
-
width: "600px",
|
|
579
|
-
key: elem.id,
|
|
580
|
-
src: elem.url
|
|
581
|
-
});
|
|
622
|
+
style: {
|
|
623
|
+
position: 'relative',
|
|
624
|
+
width: '100%',
|
|
625
|
+
height: '100%'
|
|
582
626
|
}
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
|
|
627
|
+
}, type === 'content' ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
628
|
+
style: {
|
|
629
|
+
width: '100%',
|
|
630
|
+
display: 'flex',
|
|
631
|
+
alignItems: 'center',
|
|
632
|
+
height: headerHeight ? headerHeight : configStyles.MODAL.headerHeight,
|
|
633
|
+
justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end'
|
|
634
|
+
}
|
|
635
|
+
}, headerText && type === 'content' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
636
|
+
style: {
|
|
637
|
+
overflow: 'hidden',
|
|
638
|
+
whiteSpace: 'nowrap',
|
|
639
|
+
textOverflow: 'ellipsis',
|
|
640
|
+
margin: '0px 16px 0px 0px',
|
|
641
|
+
maxWidth: 'calc(100% - 30px)',
|
|
642
|
+
fontSize: headerSize ? headerSize : configStyles.MODAL.headerSize,
|
|
643
|
+
color: headerColor ? headerColor : configStyles.MODAL.headerColor,
|
|
644
|
+
fontWeight: headerWeight ? headerWeight : configStyles.MODAL.headerWeight
|
|
645
|
+
}
|
|
646
|
+
}, headerText), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
647
|
+
onClick: handleCloseModal,
|
|
648
|
+
style: {
|
|
649
|
+
width: '14px',
|
|
650
|
+
height: '14px',
|
|
651
|
+
cursor: 'pointer'
|
|
652
|
+
}
|
|
653
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null))) : /*#__PURE__*/React__default["default"].createElement("button", {
|
|
654
|
+
onClick: handleCloseModal,
|
|
655
|
+
style: {
|
|
656
|
+
position: 'absolute',
|
|
657
|
+
top: '23px',
|
|
658
|
+
width: '18px',
|
|
659
|
+
right: '23px',
|
|
660
|
+
height: '18px',
|
|
661
|
+
border: 'none',
|
|
662
|
+
outline: 'none',
|
|
663
|
+
cursor: 'pointer',
|
|
664
|
+
backgroundColor: 'transparent'
|
|
665
|
+
}
|
|
666
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgCloseSlide, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
667
|
+
style: {
|
|
668
|
+
display: 'flex',
|
|
669
|
+
alignItems: 'center',
|
|
670
|
+
boxSizing: 'border-box',
|
|
671
|
+
justifyContent: 'center',
|
|
672
|
+
paddingTop: type === 'content' ? '10px' : '0px'
|
|
673
|
+
}
|
|
674
|
+
}, type === 'content' ? children ? children : '' : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
675
|
+
style: {
|
|
676
|
+
width: '100%',
|
|
677
|
+
display: 'flex',
|
|
678
|
+
alignItems: 'center'
|
|
679
|
+
}
|
|
680
|
+
}, innerData && innerData.length > 0 && innerData.map((item, index) => {
|
|
681
|
+
if (select === index) {
|
|
682
|
+
if (!item.hasOwnProperty('url')) {
|
|
683
|
+
alert('Please add url property in data prop on each element');
|
|
684
|
+
} else {
|
|
685
|
+
return /*#__PURE__*/React__default["default"].createElement("img", {
|
|
686
|
+
style: {
|
|
687
|
+
objectFit: 'cover',
|
|
688
|
+
objectPosition: 'center',
|
|
689
|
+
borderRadius: radius ? radius : configStyles.MODAL.radius,
|
|
690
|
+
width: imageWidth ? imageWidth : configStyles.MODAL.imageWidth,
|
|
691
|
+
height: imageHeight ? imageHeight : configStyles.MODAL.imageHeight
|
|
692
|
+
},
|
|
693
|
+
src: item.url,
|
|
694
|
+
key: item.id ? item.id : index
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}), innerData && innerData.length > 1 && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
699
|
+
onClick: handleGoTo,
|
|
700
|
+
"data-go": "prev",
|
|
701
|
+
style: {
|
|
702
|
+
position: 'absolute',
|
|
703
|
+
left: '14px',
|
|
704
|
+
width: '24px',
|
|
705
|
+
height: '24px',
|
|
706
|
+
padding: '0px',
|
|
707
|
+
border: 'none',
|
|
708
|
+
outline: 'none',
|
|
709
|
+
cursor: 'pointer',
|
|
710
|
+
top: 'calc(50% - 12px)',
|
|
711
|
+
backgroundColor: 'transparent'
|
|
712
|
+
}
|
|
713
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgPrev, null)), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
714
|
+
onClick: handleGoTo,
|
|
715
|
+
"data-go": "next",
|
|
716
|
+
style: {
|
|
717
|
+
position: 'absolute',
|
|
718
|
+
width: '24px',
|
|
719
|
+
right: '14px',
|
|
720
|
+
height: '24px',
|
|
721
|
+
border: 'none',
|
|
722
|
+
padding: '0px',
|
|
723
|
+
outline: 'none',
|
|
724
|
+
cursor: 'pointer',
|
|
725
|
+
top: 'calc(50% - 12px)',
|
|
726
|
+
backgroundColor: 'transparent'
|
|
586
727
|
}
|
|
587
|
-
}, "
|
|
728
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgNext, null)))))))));
|
|
588
729
|
};
|
|
589
730
|
Modal.propTypes = {
|
|
731
|
+
data: PropTypes__default["default"].array,
|
|
732
|
+
type: PropTypes__default["default"].string,
|
|
590
733
|
setShow: PropTypes__default["default"].func,
|
|
591
|
-
|
|
734
|
+
radius: PropTypes__default["default"].string,
|
|
735
|
+
padding: PropTypes__default["default"].string,
|
|
736
|
+
selected: PropTypes__default["default"].number,
|
|
737
|
+
minWidth: PropTypes__default["default"].string,
|
|
738
|
+
minHeight: PropTypes__default["default"].string,
|
|
592
739
|
className: PropTypes__default["default"].string,
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
740
|
+
headerText: PropTypes__default["default"].string,
|
|
741
|
+
imageWidth: PropTypes__default["default"].string,
|
|
742
|
+
headerSize: PropTypes__default["default"].string,
|
|
743
|
+
headerColor: PropTypes__default["default"].string,
|
|
744
|
+
imageHeight: PropTypes__default["default"].string,
|
|
745
|
+
headerWeight: PropTypes__default["default"].string,
|
|
746
|
+
headerHeight: PropTypes__default["default"].string,
|
|
747
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
748
|
+
layerBackgroundColor: PropTypes__default["default"].string
|
|
749
|
+
};
|
|
750
|
+
Modal.defaultProps = {
|
|
751
|
+
type: 'content'
|
|
596
752
|
};
|
|
597
753
|
|
|
598
|
-
var css_248z$
|
|
754
|
+
var css_248z$a = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
|
|
599
755
|
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k"};
|
|
600
|
-
styleInject(css_248z$
|
|
756
|
+
styleInject(css_248z$a);
|
|
601
757
|
|
|
602
758
|
const InputTypes = {
|
|
603
759
|
TEL: 'tel',
|
|
@@ -915,9 +1071,9 @@ Input.defaultProps = {
|
|
|
915
1071
|
type: "text"
|
|
916
1072
|
};
|
|
917
1073
|
|
|
918
|
-
var css_248z$
|
|
1074
|
+
var css_248z$9 = ".radio-module_radio-wrap__-lO7V{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.radio-module_radio-wrap__-lO7V>input{height:0;opacity:0;position:absolute;width:0}.radio-module_radio-wrap__-lO7V .radio-module_radio-checkmark__Kvol0{border:1px solid #d9d9d9;border-radius:50%;display:inline-block;height:14px;left:0;margin-right:4px;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.radio-module_radio-wrap__-lO7V>.radio-module_radio-checkmark__Kvol0:after{background-color:#d9d9d9;border-radius:50%;bottom:0;content:\"\";height:8px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;transition:opacity .24s,background-color .24s;width:8px}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0:after{background-color:#1890ff;opacity:1}.radio-module_radio-wrap__-lO7V:hover input~.radio-module_radio-checkmark__Kvol0:after{opacity:1}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0{border-color:#1890ff}";
|
|
919
1075
|
var styles$7 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
|
|
920
|
-
styleInject(css_248z$
|
|
1076
|
+
styleInject(css_248z$9);
|
|
921
1077
|
|
|
922
1078
|
const Radio = ({
|
|
923
1079
|
disabled,
|
|
@@ -1134,27 +1290,9 @@ const SvgArrow = ({
|
|
|
1134
1290
|
fill: "#3C393E"
|
|
1135
1291
|
}));
|
|
1136
1292
|
|
|
1137
|
-
|
|
1138
|
-
title,
|
|
1139
|
-
titleId,
|
|
1140
|
-
...props
|
|
1141
|
-
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1142
|
-
width: "14",
|
|
1143
|
-
height: "14",
|
|
1144
|
-
viewBox: "0 0 14 14",
|
|
1145
|
-
fill: "none",
|
|
1146
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1147
|
-
"aria-labelledby": titleId
|
|
1148
|
-
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
1149
|
-
id: titleId
|
|
1150
|
-
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1151
|
-
d: "m12.425.241.006-.005a.95.95 0 0 1 1.34 1.34l-.005.006-5.38 5.38 5.38 5.38.005.007a.95.95 0 0 1-1.34 1.34l-.006-.005-5.38-5.38-5.378 5.37a.951.951 0 1 1-1.34-1.341l5.377-5.37-5.38-5.388-.005-.006a.95.95 0 0 1 1.34-1.34l.006.005 5.38 5.387 5.38-5.38Z",
|
|
1152
|
-
fill: "#3C393E"
|
|
1153
|
-
}));
|
|
1154
|
-
|
|
1155
|
-
var css_248z$7 = ".select-module_select-content__GCMDX{display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto;padding:0 5px 0 20px}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:14px;justify-content:center;width:14px}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
|
|
1293
|
+
var css_248z$8 = ".select-module_select-content__GCMDX{display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto;padding:0 5px 0 20px}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:14px;justify-content:center;width:14px}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
|
|
1156
1294
|
var styles$6 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L"};
|
|
1157
|
-
styleInject(css_248z$
|
|
1295
|
+
styleInject(css_248z$8);
|
|
1158
1296
|
|
|
1159
1297
|
const Select = ({
|
|
1160
1298
|
options,
|
|
@@ -1314,7 +1452,7 @@ const Select = ({
|
|
|
1314
1452
|
});
|
|
1315
1453
|
setExistOptions(modifiedOptions);
|
|
1316
1454
|
}
|
|
1317
|
-
}, [options, multiple, selected, selected
|
|
1455
|
+
}, [options, multiple, selected, selected?.length]);
|
|
1318
1456
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1319
1457
|
className: classProps
|
|
1320
1458
|
}, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
@@ -1564,9 +1702,9 @@ const SvgToasterSuccess = ({
|
|
|
1564
1702
|
fill: "#0DA574"
|
|
1565
1703
|
}));
|
|
1566
1704
|
|
|
1567
|
-
var css_248z$
|
|
1705
|
+
var css_248z$7 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}";
|
|
1568
1706
|
var styles$5 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO"};
|
|
1569
|
-
styleInject(css_248z$
|
|
1707
|
+
styleInject(css_248z$7);
|
|
1570
1708
|
|
|
1571
1709
|
const ToasterType = {
|
|
1572
1710
|
info: 'info',
|
|
@@ -1838,9 +1976,9 @@ const SvgTooltip = ({
|
|
|
1838
1976
|
fill: "#D1D1D1"
|
|
1839
1977
|
}));
|
|
1840
1978
|
|
|
1841
|
-
var css_248z$
|
|
1979
|
+
var css_248z$6 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
|
|
1842
1980
|
var styles$4 = {"tooltip-block":"tooltip-module_tooltip-block__v8U9u","tooltip":"tooltip-module_tooltip__emM6A","tooltip-rel":"tooltip-module_tooltip-rel__to9gq","tooltip-decor":"tooltip-module_tooltip-decor__qvt7t"};
|
|
1843
|
-
styleInject(css_248z$
|
|
1981
|
+
styleInject(css_248z$6);
|
|
1844
1982
|
|
|
1845
1983
|
const Tooltip = ({
|
|
1846
1984
|
type,
|
|
@@ -1970,9 +2108,9 @@ const SvgCaptchaArrowDown = ({
|
|
|
1970
2108
|
fill: "#00236A"
|
|
1971
2109
|
}));
|
|
1972
2110
|
|
|
1973
|
-
var css_248z$
|
|
2111
|
+
var css_248z$5 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
|
|
1974
2112
|
var styles$3 = {"start-point":"captcha-module_start-point__LkOqy","range":"captcha-module_range__k24I2","range-default":"captcha-module_range-default__-O0QD","range-error":"captcha-module_range-error__FKMfG","range-success":"captcha-module_range-success__VzLPq"};
|
|
1975
|
-
styleInject(css_248z$
|
|
2113
|
+
styleInject(css_248z$5);
|
|
1976
2114
|
|
|
1977
2115
|
const Captcha = ({
|
|
1978
2116
|
size,
|
|
@@ -2094,9 +2232,9 @@ Captcha.propTypes = {
|
|
|
2094
2232
|
getRange: PropTypes__default["default"].func.isRequired
|
|
2095
2233
|
};
|
|
2096
2234
|
|
|
2097
|
-
var css_248z$
|
|
2235
|
+
var css_248z$4 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;cursor:pointer;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
|
|
2098
2236
|
var styles$2 = {"stepper-container":"stepper-module_stepper-container__-OVGy","bigRing":"stepper-module_bigRing__5GBm0","activeRing":"stepper-module_activeRing__Lzvh1","smallRing":"stepper-module_smallRing__u-5a8","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
|
|
2099
|
-
styleInject(css_248z$
|
|
2237
|
+
styleInject(css_248z$4);
|
|
2100
2238
|
|
|
2101
2239
|
const Stepper = ({
|
|
2102
2240
|
className,
|
|
@@ -2924,8 +3062,8 @@ NewFile.defaultProps = {
|
|
|
2924
3062
|
fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
|
|
2925
3063
|
};
|
|
2926
3064
|
|
|
2927
|
-
var css_248z$
|
|
2928
|
-
styleInject(css_248z$
|
|
3065
|
+
var css_248z$3 = "textarea::-webkit-scrollbar{width:6px}textarea::-webkit-scrollbar-track{background:#eee}textarea::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-track{border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px}textarea::-webkit-scrollbar-thumb{background:#d1d1d1}";
|
|
3066
|
+
styleInject(css_248z$3);
|
|
2929
3067
|
|
|
2930
3068
|
const Textarea = ({
|
|
2931
3069
|
size,
|
|
@@ -3104,6 +3242,105 @@ Textarea.propTypes = {
|
|
|
3104
3242
|
labelRequiredColor: PropTypes__default["default"].string
|
|
3105
3243
|
};
|
|
3106
3244
|
|
|
3245
|
+
var css_248z$2 = "";
|
|
3246
|
+
styleInject(css_248z$2);
|
|
3247
|
+
|
|
3248
|
+
const TypographyType = {
|
|
3249
|
+
p: 'p',
|
|
3250
|
+
h1: 'h1',
|
|
3251
|
+
h2: 'h2',
|
|
3252
|
+
h3: 'h3',
|
|
3253
|
+
h4: 'h4',
|
|
3254
|
+
h5: 'h5',
|
|
3255
|
+
h6: 'h6',
|
|
3256
|
+
span: 'span'
|
|
3257
|
+
};
|
|
3258
|
+
const Typography = ({
|
|
3259
|
+
size,
|
|
3260
|
+
color,
|
|
3261
|
+
weight,
|
|
3262
|
+
radius,
|
|
3263
|
+
border,
|
|
3264
|
+
cursor,
|
|
3265
|
+
variant,
|
|
3266
|
+
onClick,
|
|
3267
|
+
children,
|
|
3268
|
+
textAlign,
|
|
3269
|
+
fontStyle,
|
|
3270
|
+
className,
|
|
3271
|
+
textShadow,
|
|
3272
|
+
lineHeight,
|
|
3273
|
+
colorHover,
|
|
3274
|
+
fontFamily,
|
|
3275
|
+
textTransform,
|
|
3276
|
+
textDecoration,
|
|
3277
|
+
backgroundColor,
|
|
3278
|
+
...props
|
|
3279
|
+
}) => {
|
|
3280
|
+
const configStyles = compereConfigs();
|
|
3281
|
+
const classProps = classnames__default["default"](className);
|
|
3282
|
+
const [isHover, setIsHover] = React.useState(false);
|
|
3283
|
+
const [validVariant, setValidVariant] = React.useState(false);
|
|
3284
|
+
React.useEffect(() => {
|
|
3285
|
+
if (!Object.values(TypographyType).includes(variant)) {
|
|
3286
|
+
setValidVariant(true);
|
|
3287
|
+
}
|
|
3288
|
+
}, [variant]);
|
|
3289
|
+
const handleMouseEnter = () => {
|
|
3290
|
+
setIsHover(true);
|
|
3291
|
+
};
|
|
3292
|
+
const handleMouseLeave = () => {
|
|
3293
|
+
setIsHover(false);
|
|
3294
|
+
};
|
|
3295
|
+
const tagT = /*#__PURE__*/React__default["default"].createElement(variant, {
|
|
3296
|
+
style: {
|
|
3297
|
+
border: border ? border : configStyles.TYPOGRAPHY.border,
|
|
3298
|
+
cursor: cursor ? cursor : configStyles.TYPOGRAPHY.cursor,
|
|
3299
|
+
borderRadius: radius ? radius : configStyles.TYPOGRAPHY.radius,
|
|
3300
|
+
fontSize: size ? size : configStyles.TYPOGRAPHY['size' + variant],
|
|
3301
|
+
fontWeight: weight ? weight : configStyles.TYPOGRAPHY['weight' + variant],
|
|
3302
|
+
textShadow: textShadow ? textShadow : configStyles.TYPOGRAPHY.textShadow,
|
|
3303
|
+
textAlign: textAlign ? textAlign : configStyles.TYPOGRAPHY['textAlign' + variant],
|
|
3304
|
+
fontStyle: fontStyle ? fontStyle : configStyles.TYPOGRAPHY['fontStyle' + variant],
|
|
3305
|
+
lineHeight: lineHeight ? lineHeight : configStyles.TYPOGRAPHY['lineHeight' + variant],
|
|
3306
|
+
fontFamily: fontFamily ? fontFamily : configStyles.TYPOGRAPHY['fontFamily' + variant],
|
|
3307
|
+
textTransform: textTransform ? textTransform : configStyles.TYPOGRAPHY['textTransform' + variant],
|
|
3308
|
+
textDecoration: textDecoration ? textDecoration : configStyles.TYPOGRAPHY['textDecoration' + variant],
|
|
3309
|
+
backgroundColor: backgroundColor ? backgroundColor : configStyles.TYPOGRAPHY['backgroundColor' + variant],
|
|
3310
|
+
color: isHover ? colorHover ? colorHover : color ? color : configStyles.TYPOGRAPHY['color' + variant] : color ? color : configStyles.TYPOGRAPHY['color' + variant]
|
|
3311
|
+
},
|
|
3312
|
+
...props,
|
|
3313
|
+
className: classProps,
|
|
3314
|
+
onClick: onClick ? onClick : _ => _,
|
|
3315
|
+
onMouseEnter: handleMouseEnter,
|
|
3316
|
+
onMouseLeave: handleMouseLeave
|
|
3317
|
+
}, [children]);
|
|
3318
|
+
return validVariant ? 'Please set Typography valid variant' : tagT;
|
|
3319
|
+
};
|
|
3320
|
+
Typography.propTypes = {
|
|
3321
|
+
size: PropTypes__default["default"].string,
|
|
3322
|
+
color: PropTypes__default["default"].string,
|
|
3323
|
+
onClick: PropTypes__default["default"].func,
|
|
3324
|
+
weight: PropTypes__default["default"].string,
|
|
3325
|
+
border: PropTypes__default["default"].string,
|
|
3326
|
+
cursor: PropTypes__default["default"].string,
|
|
3327
|
+
radius: PropTypes__default["default"].string,
|
|
3328
|
+
textAlign: PropTypes__default["default"].string,
|
|
3329
|
+
className: PropTypes__default["default"].string,
|
|
3330
|
+
fontStyle: PropTypes__default["default"].string,
|
|
3331
|
+
lineHeight: PropTypes__default["default"].string,
|
|
3332
|
+
textShadow: PropTypes__default["default"].string,
|
|
3333
|
+
fontFamily: PropTypes__default["default"].string,
|
|
3334
|
+
colorHover: PropTypes__default["default"].string,
|
|
3335
|
+
textTransform: PropTypes__default["default"].string,
|
|
3336
|
+
textDecoration: PropTypes__default["default"].string,
|
|
3337
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
3338
|
+
variant: PropTypes__default["default"].oneOf(Object.values(TypographyType))
|
|
3339
|
+
};
|
|
3340
|
+
Typography.defaultProps = {
|
|
3341
|
+
variant: 'p'
|
|
3342
|
+
};
|
|
3343
|
+
|
|
3107
3344
|
var css_248z$1 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:13px;line-height:16px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}";
|
|
3108
3345
|
var styles$1 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
|
|
3109
3346
|
styleInject(css_248z$1);
|
|
@@ -3500,6 +3737,7 @@ const NewAutocomplete = ({
|
|
|
3500
3737
|
getItem,
|
|
3501
3738
|
required,
|
|
3502
3739
|
disabled,
|
|
3740
|
+
selected,
|
|
3503
3741
|
errorSize,
|
|
3504
3742
|
labelSize,
|
|
3505
3743
|
errorColor,
|
|
@@ -3614,7 +3852,7 @@ const NewAutocomplete = ({
|
|
|
3614
3852
|
getItem(selectedValue);
|
|
3615
3853
|
setInnerValue(selectedValue.name);
|
|
3616
3854
|
};
|
|
3617
|
-
const optionList = /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, show && innerOptions ? innerOptions.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3855
|
+
const optionList = /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, show && innerOptions && !disabled ? innerOptions.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3618
3856
|
style: {
|
|
3619
3857
|
left: contentBottomLeft ? contentBottomLeft : configStyles.NEWAUTOCOMPLETE.contentBottomLeft,
|
|
3620
3858
|
width: contentBottomWidth ? contentBottomWidth : configStyles.NEWAUTOCOMPLETE.contentBottomWidth,
|
|
@@ -3684,12 +3922,19 @@ const NewAutocomplete = ({
|
|
|
3684
3922
|
alert('Please add getItem function for get choosen item from autocomplete');
|
|
3685
3923
|
}
|
|
3686
3924
|
options && setInnerOptions(options);
|
|
3687
|
-
}, [options, options
|
|
3925
|
+
}, [options, options?.length, getItem]);
|
|
3688
3926
|
React.useEffect(() => {
|
|
3689
3927
|
if (!change) {
|
|
3690
3928
|
alert('Please add change prop on New Autocomplete component');
|
|
3691
3929
|
}
|
|
3692
3930
|
}, [change]);
|
|
3931
|
+
React.useEffect(() => {
|
|
3932
|
+
if (selected) {
|
|
3933
|
+
setInnerValue(selected);
|
|
3934
|
+
} else {
|
|
3935
|
+
setInnerValue('');
|
|
3936
|
+
}
|
|
3937
|
+
}, [selected, selected?.length]);
|
|
3693
3938
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
3694
3939
|
style: {
|
|
3695
3940
|
color: labelColor ? labelColor : configStyles.NEWAUTOCOMPLETE.labelColor,
|
|
@@ -3754,6 +3999,7 @@ NewAutocomplete.propTypes = {
|
|
|
3754
3999
|
label: PropTypes__default["default"].string,
|
|
3755
4000
|
required: PropTypes__default["default"].bool,
|
|
3756
4001
|
disabled: PropTypes__default["default"].bool,
|
|
4002
|
+
selected: PropTypes__default["default"].string,
|
|
3757
4003
|
errorSize: PropTypes__default["default"].string,
|
|
3758
4004
|
labelSize: PropTypes__default["default"].string,
|
|
3759
4005
|
errorColor: PropTypes__default["default"].string,
|