@xaypay/tui 0.0.117 → 0.0.118
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/README.md +92 -0
- package/dist/index.es.js +270 -143
- package/dist/index.js +270 -142
- package/package.json +1 -1
- package/src/components/radio/index.js +222 -41
- package/src/components/radio/radio.stories.js +52 -3
- package/src/components/table/index.js +38 -0
- package/src/components/table/table.module.css +1 -4
- package/src/components/table/td.js +13 -5
- package/src/components/table/th.js +4 -1
- package/src/stories/configuration.stories.mdx +39 -17
- package/src/stories/static/radio-usage.png +0 -0
- package/src/stories/usage.stories.mdx +5 -4
- package/tui.config.js +25 -3
- package/src/stories/static/single-checkbox-usage.png +0 -0
package/dist/index.es.js
CHANGED
|
@@ -84,9 +84,9 @@ function styleInject(css, ref) {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
var css_248z$
|
|
88
|
-
var styles$
|
|
89
|
-
styleInject(css_248z$
|
|
87
|
+
var css_248z$d = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:190px;justify-content:space-between;overflow:hidden;padding:4px 0;position:relative;width:100%}.file-module_file-form-wrap__qY--B:before{background:rgba(60,57,62,.4);border-radius:6px;content:\"\";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover:before{opacity:1;pointer-events:unset}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover .file-module_delete-upload-icon__PWN66{opacity:1}.file-module_file-form-inner-upload__tq3Dn{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px;padding-top:48px}.file-module_file-form-inner-upload__tq3Dn>img{display:block;margin-bottom:14px}.file-module_upload-info__a8GFs{margin-bottom:40px;max-width:150px;text-align:center}.file-module_upload-info-txt__l11uN{color:#0da574}.file-module_file-form__l13d5.file-module_default__t7KU0{border-color:#d1d1d1}.file-module_file-form__l13d5.file-module_error__H-M4Z{border-color:#e00!important}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;opacity:0;position:absolute;right:10px;top:10px;transition:opacity .24s;width:26px;z-index:11}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn{align-items:center;display:flex;height:100%;justify-content:center;max-height:190px;overflow:hidden;position:relative;width:100%}.file-module_upload-file-content__QHMjn>img{display:block;height:auto;max-height:95%;object-fit:contain;width:27.8rem}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
|
|
88
|
+
var styles$b = {"file-form-wrap":"file-module_file-form-wrap__qY--B","file-form":"file-module_file-form__l13d5","active":"file-module_active__L1gPt","delete-upload-icon":"file-module_delete-upload-icon__PWN66","file-form-inner-upload":"file-module_file-form-inner-upload__tq3Dn","upload-info":"file-module_upload-info__a8GFs","upload-info-txt":"file-module_upload-info-txt__l11uN","default":"file-module_default__t7KU0","error":"file-module_error__H-M4Z","accept":"file-module_accept__WTW6V","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB"};
|
|
89
|
+
styleInject(css_248z$d);
|
|
90
90
|
|
|
91
91
|
const File = ({
|
|
92
92
|
name,
|
|
@@ -146,11 +146,11 @@ const File = ({
|
|
|
146
146
|
document.querySelector(`.${name}`).value = '';
|
|
147
147
|
};
|
|
148
148
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
|
|
149
|
-
className: `${styles$
|
|
149
|
+
className: `${styles$b['file-form-title']} ile-form-title-rem`
|
|
150
150
|
}, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))), /*#__PURE__*/React__default.createElement("div", {
|
|
151
|
-
className: classnames(`${styles$
|
|
151
|
+
className: classnames(`${styles$b['file-form-wrap']} file-form-wrap-rem`, image ? styles$b['active'] : '')
|
|
152
152
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
153
|
-
className: `${styles$
|
|
153
|
+
className: `${styles$b['file-form']} file-form-rem ${error || errorMessage ? styles$b['error'] : ''}`,
|
|
154
154
|
onClick: () => document.querySelector(`.${name}`).click()
|
|
155
155
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
156
156
|
hidden: true,
|
|
@@ -159,23 +159,23 @@ const File = ({
|
|
|
159
159
|
disabled: disabled,
|
|
160
160
|
onChange: e => handleCheckFile(e)
|
|
161
161
|
}), image ? /*#__PURE__*/React__default.createElement("div", {
|
|
162
|
-
className: `${styles$
|
|
162
|
+
className: `${styles$b['upload-file-content']} upload-file-content-rem`
|
|
163
163
|
}, image === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgPdf, null) : /*#__PURE__*/React__default.createElement("img", {
|
|
164
164
|
src: image,
|
|
165
165
|
alt: fileName
|
|
166
166
|
})) : /*#__PURE__*/React__default.createElement("div", {
|
|
167
|
-
className: `${styles$
|
|
167
|
+
className: `${styles$b['file-form-inner-upload']} ile-form-inner-upload-rem`
|
|
168
168
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
169
169
|
src: "../../assets/upload.svg",
|
|
170
170
|
alt: ""
|
|
171
171
|
}), /*#__PURE__*/React__default.createElement("span", {
|
|
172
|
-
className: `${styles$
|
|
172
|
+
className: `${styles$b['upload-info']} upload-info-rem`
|
|
173
173
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
174
|
-
className: `${styles$
|
|
174
|
+
className: `${styles$b['upload-info-txt']} upload-info-txt-rem`
|
|
175
175
|
}, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React__default.createElement("span", {
|
|
176
|
-
className: `${styles$
|
|
176
|
+
className: `${styles$b['upload-info-size']} upload-info-size-rem`
|
|
177
177
|
}, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 ", maxSize, "\u0544\u0532 ( ", fileExtensions.toString().split(',').join(', '), " )"))), !disabled && /*#__PURE__*/React__default.createElement("div", {
|
|
178
|
-
className: `${styles$
|
|
178
|
+
className: `${styles$b['delete-upload-icon']} delete-upload-icon-rem`,
|
|
179
179
|
onClick: handleRemoveFile
|
|
180
180
|
}, /*#__PURE__*/React__default.createElement("i", {
|
|
181
181
|
className: "icon-delete"
|
|
@@ -383,9 +383,9 @@ SingleCheckbox.propTypes = {
|
|
|
383
383
|
ignoreDisabledForChecked: PropTypes.bool
|
|
384
384
|
};
|
|
385
385
|
|
|
386
|
-
var css_248z$
|
|
387
|
-
var styles$
|
|
388
|
-
styleInject(css_248z$
|
|
386
|
+
var css_248z$c = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{cursor:pointer;margin:0 0 8px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}";
|
|
387
|
+
var styles$a = {"sorting-arrows":"table-module_sorting-arrows__BaN-G","td-span":"table-module_td-span__XHo6k","list-text":"table-module_list-text__kmKIq","dots-option-item":"table-module_dots-option-item__jNOxO"};
|
|
388
|
+
styleInject(css_248z$c);
|
|
389
389
|
|
|
390
390
|
/* eslint-disable no-prototype-builtins */
|
|
391
391
|
const TH = ({
|
|
@@ -396,6 +396,8 @@ const TH = ({
|
|
|
396
396
|
tHeadFontSize,
|
|
397
397
|
tHeadTextAlign,
|
|
398
398
|
tHeadFontWeight,
|
|
399
|
+
tableColumnMinWidth,
|
|
400
|
+
tableColumnMaxWidth,
|
|
399
401
|
handleCheckedHeader,
|
|
400
402
|
borderTopLeftRadius,
|
|
401
403
|
borderTopRightRadius,
|
|
@@ -411,18 +413,19 @@ const TH = ({
|
|
|
411
413
|
style: {
|
|
412
414
|
width: 'auto',
|
|
413
415
|
cursor: 'pointer',
|
|
414
|
-
whiteSpace: 'nowrap',
|
|
415
416
|
position: 'relative',
|
|
416
417
|
padding: tHeadPadding,
|
|
417
418
|
fontSize: tHeadFontSize,
|
|
418
419
|
fontFamily: tHeadFamily,
|
|
419
420
|
fontWeight: tHeadFontWeight,
|
|
421
|
+
minWidth: tableColumnMinWidth,
|
|
422
|
+
maxWidth: tableColumnMaxWidth,
|
|
420
423
|
borderTopLeftRadius: borderTopLeftRadius,
|
|
421
424
|
borderTopRightRadius: borderTopRightRadius,
|
|
422
425
|
borderColor: hideBorder ? 'transparent' : '#eeeeee'
|
|
423
426
|
},
|
|
424
427
|
onClick: handleHeaderItemClick,
|
|
425
|
-
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$
|
|
428
|
+
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$a['sorting-arrows'] : '' : ''}`
|
|
426
429
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
427
430
|
style: {
|
|
428
431
|
display: 'flex',
|
|
@@ -461,7 +464,11 @@ const TD = ({
|
|
|
461
464
|
tBodyFontFamily,
|
|
462
465
|
tBodyFontWeight,
|
|
463
466
|
handleCheckDots,
|
|
467
|
+
openListFontSize,
|
|
464
468
|
handleCheckedBody,
|
|
469
|
+
openListFontFamily,
|
|
470
|
+
tableColumnMinWidth,
|
|
471
|
+
tableColumnMaxWidth,
|
|
465
472
|
handleBodyActionClick,
|
|
466
473
|
handleMoreOptionsClick,
|
|
467
474
|
handleContentListClick,
|
|
@@ -511,13 +518,14 @@ const TD = ({
|
|
|
511
518
|
width: 'auto',
|
|
512
519
|
color: tBodyColor,
|
|
513
520
|
verticalAlign: 'top',
|
|
514
|
-
whiteSpace: 'nowrap',
|
|
515
521
|
padding: tBodyPadding,
|
|
516
522
|
fontSize: tBodyFontSize,
|
|
517
523
|
borderRight: borderRight,
|
|
518
524
|
textAlign: tBodyTextAlign,
|
|
519
525
|
fontFamily: tBodyFontFamily,
|
|
520
526
|
fontWeight: tBodyFontWeight,
|
|
527
|
+
minWidth: tableColumnMinWidth,
|
|
528
|
+
maxWidth: tableColumnMaxWidth,
|
|
521
529
|
borderColor: hideBorder ? 'transparent' : '#eeeeee',
|
|
522
530
|
boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
|
|
523
531
|
borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
|
|
@@ -536,7 +544,7 @@ const TD = ({
|
|
|
536
544
|
},
|
|
537
545
|
id: newItem.id,
|
|
538
546
|
type: newItem.type,
|
|
539
|
-
className: styles$
|
|
547
|
+
className: styles$a['td-span'],
|
|
540
548
|
key: `${newItem.id}_${newIndex}`,
|
|
541
549
|
onClick: e => handleCheckActions(e, newItem, 'type', newIndex)
|
|
542
550
|
}, newItem.content === 0 ? newItem.content.toString() : newItem.content ? newItem.content : '');
|
|
@@ -558,7 +566,7 @@ const TD = ({
|
|
|
558
566
|
},
|
|
559
567
|
id: iT.id ? iT.id : '',
|
|
560
568
|
type: iT.type ? iT.type : '',
|
|
561
|
-
className: styles$
|
|
569
|
+
className: styles$a['td-span'],
|
|
562
570
|
onClick: e => handleCheckActions(e, iT, 'type', iN),
|
|
563
571
|
key: `${iT.id || iT.content}_${iN}`
|
|
564
572
|
}, iT.content === 0 ? iT.content.toString() : iT.content ? iT.content : '');
|
|
@@ -582,7 +590,7 @@ const TD = ({
|
|
|
582
590
|
cursor: 'pointer'
|
|
583
591
|
},
|
|
584
592
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
585
|
-
className: styles$
|
|
593
|
+
className: styles$a['td-span']
|
|
586
594
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'checkBox') && /*#__PURE__*/React__default.createElement(SingleCheckbox, {
|
|
587
595
|
data: item,
|
|
588
596
|
index: index,
|
|
@@ -594,11 +602,13 @@ const TD = ({
|
|
|
594
602
|
unCheckedColor: item.checkBox.unCheckedColor
|
|
595
603
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
596
604
|
style: {
|
|
605
|
+
flexShrink: 10,
|
|
597
606
|
marginLeft: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '0px' : '10px' : hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow') ? '10px' : '0px' : '0px',
|
|
598
607
|
marginRight: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '10px' : '0px' : '0px' : '0px'
|
|
599
608
|
}
|
|
600
609
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
601
610
|
style: {
|
|
611
|
+
textAlign: tBodyTextAlign,
|
|
602
612
|
margin: '0px',
|
|
603
613
|
cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto'
|
|
604
614
|
},
|
|
@@ -627,7 +637,7 @@ const TD = ({
|
|
|
627
637
|
}, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
628
638
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
629
639
|
key: `${optionItem.content}_${optionIndex}`,
|
|
630
|
-
className: styles$
|
|
640
|
+
className: styles$a['dots-option-item'],
|
|
631
641
|
style: {
|
|
632
642
|
color: '#3C393E',
|
|
633
643
|
fontSize: '14px',
|
|
@@ -653,17 +663,20 @@ const TD = ({
|
|
|
653
663
|
style: {
|
|
654
664
|
overflow: 'auto',
|
|
655
665
|
marginTop: '10px',
|
|
656
|
-
maxHeight: '
|
|
666
|
+
maxHeight: '500px',
|
|
657
667
|
maxWidth: '100%',
|
|
658
668
|
height: item.status === 'close' ? '0px' : 'auto'
|
|
659
669
|
}
|
|
660
670
|
}, item.contentList.map((innerItem, innerItemIndex) => {
|
|
661
671
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
662
672
|
key: `${innerItem}_${innerItemIndex}`,
|
|
663
|
-
className: styles$
|
|
673
|
+
className: styles$a['list-text'],
|
|
664
674
|
style: {
|
|
675
|
+
maxWidth: '100%',
|
|
665
676
|
color: openListColor,
|
|
666
|
-
|
|
677
|
+
textAlign: tBodyTextAlign,
|
|
678
|
+
fontSize: openListFontSize,
|
|
679
|
+
fontFamily: openListFontFamily
|
|
667
680
|
},
|
|
668
681
|
onClick: e => handleContentList(e, item, index, innerIndex, innerItem.id, innerItem.content, innerItemIndex)
|
|
669
682
|
}, innerItem.content === 0 ? innerItem.content.toString() : innerItem.content ? innerItem.content : '');
|
|
@@ -675,7 +688,7 @@ const TD = ({
|
|
|
675
688
|
cursor: 'pointer'
|
|
676
689
|
},
|
|
677
690
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
678
|
-
className: styles$
|
|
691
|
+
className: styles$a['td-span']
|
|
679
692
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
|
|
680
693
|
};
|
|
681
694
|
|
|
@@ -741,6 +754,8 @@ const Table = ({
|
|
|
741
754
|
tableRowRadius,
|
|
742
755
|
tableRowBGColor,
|
|
743
756
|
tableRowBoxShadow,
|
|
757
|
+
tableColumnMaxWidth,
|
|
758
|
+
tableColumnMinWidth,
|
|
744
759
|
tHeadColor,
|
|
745
760
|
tHeadFamily,
|
|
746
761
|
tHeadPadding,
|
|
@@ -760,6 +775,8 @@ const Table = ({
|
|
|
760
775
|
tBodyRowMarginTop,
|
|
761
776
|
className,
|
|
762
777
|
openListColor,
|
|
778
|
+
openListFontSize,
|
|
779
|
+
openListFontFamily,
|
|
763
780
|
hideBorder
|
|
764
781
|
}) => {
|
|
765
782
|
const [body, setBody] = useState([]);
|
|
@@ -1260,7 +1277,9 @@ const Table = ({
|
|
|
1260
1277
|
tHeadTextAlign: tHeadTextAlign ? tHeadTextAlign : configStyles.TABLE.tHeadTextAlign,
|
|
1261
1278
|
tHeadFontWeight: tHeadFontWeight ? tHeadFontWeight : configStyles.TABLE.tHeadFontWeight,
|
|
1262
1279
|
borderTopLeftRadius: index === 0 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px',
|
|
1263
|
-
borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px'
|
|
1280
|
+
borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px',
|
|
1281
|
+
tableColumnMinWidth: tableColumnMinWidth ? tableColumnMinWidth : configStyles.TABLE.tableColumnMinWidth,
|
|
1282
|
+
tableColumnMaxWidth: tableColumnMaxWidth ? tableColumnMaxWidth : configStyles.TABLE.tableColumnMaxWidth
|
|
1264
1283
|
});
|
|
1265
1284
|
}))), body && body.length > 0 && /*#__PURE__*/React__default.createElement("tbody", {
|
|
1266
1285
|
style: {
|
|
@@ -1286,6 +1305,10 @@ const Table = ({
|
|
|
1286
1305
|
handleCheckDots: handleCheckDots,
|
|
1287
1306
|
key: `${innerItem}_${index}_${innerIndex}`,
|
|
1288
1307
|
openListColor: openListColor ? openListColor : configStyles.TABLE.openListColor,
|
|
1308
|
+
tableColumnMinWidth: tableColumnMinWidth ? tableColumnMinWidth : configStyles.TABLE.tableColumnMinWidth,
|
|
1309
|
+
tableColumnMaxWidth: tableColumnMaxWidth ? tableColumnMaxWidth : configStyles.TABLE.tableColumnMaxWidth,
|
|
1310
|
+
openListFontSize: openListFontSize ? openListFontSize : configStyles.TABLE.openListFontSize,
|
|
1311
|
+
openListFontFamily: openListFontFamily ? openListFontFamily : configStyles.TABLE.openListFontFamily,
|
|
1289
1312
|
handleCheckedBody: handleCheckedBody,
|
|
1290
1313
|
handleBodyActionClick: handleBodyActionClick,
|
|
1291
1314
|
handleMoreOptionsClick: handleMoreOptionsClick,
|
|
@@ -1315,6 +1338,8 @@ Table.propTypes = {
|
|
|
1315
1338
|
tableRowRadius: PropTypes.string,
|
|
1316
1339
|
tableRowBGColor: PropTypes.string,
|
|
1317
1340
|
tableRowBoxShadow: PropTypes.string,
|
|
1341
|
+
tableColumnMaxWidth: PropTypes.string,
|
|
1342
|
+
tableColumnMinWidth: PropTypes.string,
|
|
1318
1343
|
tHeadColor: PropTypes.string,
|
|
1319
1344
|
tHeadFamily: PropTypes.string,
|
|
1320
1345
|
tHeadPadding: PropTypes.string,
|
|
@@ -1334,12 +1359,14 @@ Table.propTypes = {
|
|
|
1334
1359
|
className: PropTypes.string,
|
|
1335
1360
|
tBodyRowBorder: PropTypes.string,
|
|
1336
1361
|
openListColor: PropTypes.string,
|
|
1362
|
+
openListFontSize: PropTypes.string,
|
|
1363
|
+
openListFontFamily: PropTypes.string,
|
|
1337
1364
|
hideBorder: PropTypes.bool
|
|
1338
1365
|
};
|
|
1339
1366
|
|
|
1340
|
-
var css_248z$
|
|
1341
|
-
var styles$
|
|
1342
|
-
styleInject(css_248z$
|
|
1367
|
+
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)}}";
|
|
1368
|
+
var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
|
|
1369
|
+
styleInject(css_248z$b);
|
|
1343
1370
|
|
|
1344
1371
|
const SvgNext = ({
|
|
1345
1372
|
title,
|
|
@@ -1579,7 +1606,7 @@ const Modal = ({
|
|
|
1579
1606
|
justifyContent: justifyContent ? justifyContent : configStyles.MODAL.justifyContent
|
|
1580
1607
|
}
|
|
1581
1608
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1582
|
-
className: `${styles$
|
|
1609
|
+
className: `${styles$9['animation__modal']}`,
|
|
1583
1610
|
onClick: handleStopClosing,
|
|
1584
1611
|
style: {
|
|
1585
1612
|
position: 'relative',
|
|
@@ -1783,9 +1810,9 @@ Modal.defaultProps = {
|
|
|
1783
1810
|
type: 'content'
|
|
1784
1811
|
};
|
|
1785
1812
|
|
|
1786
|
-
var css_248z$
|
|
1787
|
-
var styles$
|
|
1788
|
-
styleInject(css_248z$
|
|
1813
|
+
var css_248z$a = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{appearance:none!important;-webkit-appearance:none!important;display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}input::-ms-clear,input::-ms-reveal{display:none}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}.input-module_inp-num__vH7HL::-webkit-inner-spin-button,.input-module_inp-num__vH7HL::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-module_inp-num__vH7HL[type=number]{-moz-appearance:textfield}@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)}}";
|
|
1814
|
+
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","inp-num":"input-module_inp-num__vH7HL"};
|
|
1815
|
+
styleInject(css_248z$a);
|
|
1789
1816
|
|
|
1790
1817
|
const InputTypes = {
|
|
1791
1818
|
TEL: 'tel',
|
|
@@ -1863,7 +1890,7 @@ const Input = ({
|
|
|
1863
1890
|
const [innerErrorMessage, setInnerErrorMessage] = useState('');
|
|
1864
1891
|
const random = Math.floor(Math.random() * 1000 + 1);
|
|
1865
1892
|
const configStyles = compereConfigs();
|
|
1866
|
-
const classProps = classnames(className ? className : configStyles.INPUT.className, type === 'number' ? styles$
|
|
1893
|
+
const classProps = classnames(className ? className : configStyles.INPUT.className, type === 'number' ? styles$8['inp-num'] : '', styles$8['input-wrap']);
|
|
1867
1894
|
const errorShow = keyframes`
|
|
1868
1895
|
100% {
|
|
1869
1896
|
bottom: '-20px';
|
|
@@ -2163,7 +2190,7 @@ const Input = ({
|
|
|
2163
2190
|
fontFamily: labelFontFamily ? labelFontFamily : configStyles.INPUT.labelFontFamily
|
|
2164
2191
|
}
|
|
2165
2192
|
}, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
|
|
2166
|
-
className: `${styles$
|
|
2193
|
+
className: `${styles$8['input-content']}`,
|
|
2167
2194
|
style: {
|
|
2168
2195
|
width: width ? width : configStyles.INPUT.width,
|
|
2169
2196
|
borderRadius: radius ? radius : configStyles.INPUT.radius,
|
|
@@ -2323,57 +2350,222 @@ Input.defaultProps = {
|
|
|
2323
2350
|
type: 'text'
|
|
2324
2351
|
};
|
|
2325
2352
|
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2353
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
2354
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
2355
|
+
// generators (like Math.random()).
|
|
2356
|
+
let getRandomValues;
|
|
2357
|
+
const rnds8 = new Uint8Array(16);
|
|
2358
|
+
function rng() {
|
|
2359
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
2360
|
+
if (!getRandomValues) {
|
|
2361
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
2362
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
2363
|
+
|
|
2364
|
+
if (!getRandomValues) {
|
|
2365
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
return getRandomValues(rnds8);
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
/**
|
|
2373
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
2374
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
2375
|
+
*/
|
|
2376
|
+
|
|
2377
|
+
const byteToHex = [];
|
|
2378
|
+
|
|
2379
|
+
for (let i = 0; i < 256; ++i) {
|
|
2380
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
function unsafeStringify(arr, offset = 0) {
|
|
2384
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
2385
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
2386
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
2390
|
+
var native = {
|
|
2391
|
+
randomUUID
|
|
2392
|
+
};
|
|
2393
|
+
|
|
2394
|
+
function v4(options, buf, offset) {
|
|
2395
|
+
if (native.randomUUID && !buf && !options) {
|
|
2396
|
+
return native.randomUUID();
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
options = options || {};
|
|
2400
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
2401
|
+
|
|
2402
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
2403
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
2404
|
+
|
|
2405
|
+
if (buf) {
|
|
2406
|
+
offset = offset || 0;
|
|
2329
2407
|
|
|
2408
|
+
for (let i = 0; i < 16; ++i) {
|
|
2409
|
+
buf[offset + i] = rnds[i];
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
return buf;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
return unsafeStringify(rnds);
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
const RadioDirectionMode = {
|
|
2419
|
+
VERTICAL: 'vertical',
|
|
2420
|
+
HORINZONTAL: 'horizontal'
|
|
2421
|
+
};
|
|
2330
2422
|
const Radio = ({
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2423
|
+
data,
|
|
2424
|
+
size,
|
|
2425
|
+
getData,
|
|
2426
|
+
selected,
|
|
2427
|
+
keyNames,
|
|
2428
|
+
diraction,
|
|
2334
2429
|
className,
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2430
|
+
borderSize,
|
|
2431
|
+
labelColor,
|
|
2432
|
+
borderColor,
|
|
2433
|
+
borderStyle,
|
|
2434
|
+
labelFontSize,
|
|
2435
|
+
labelFontFamily,
|
|
2436
|
+
labelFontWeight,
|
|
2437
|
+
labelLineHeight,
|
|
2438
|
+
radioMarginRight,
|
|
2439
|
+
borderActiveColor,
|
|
2440
|
+
radioItemMarginRight,
|
|
2441
|
+
radioItemMarginBottom
|
|
2340
2442
|
}) => {
|
|
2341
|
-
const
|
|
2342
|
-
const
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2443
|
+
const configStyles = compereConfigs();
|
|
2444
|
+
const classProps = classnames(className ? className : configStyles.RADIO.className);
|
|
2445
|
+
const [innerData, setInnerData] = useState([]);
|
|
2446
|
+
const [radioInnerSize, setRadioInnerSize] = useState('');
|
|
2447
|
+
const [radioInnerFormat, setRadioInnerFormat] = useState('');
|
|
2448
|
+
const [innerSelectedData, setInnerSelectedData] = useState({});
|
|
2449
|
+
const handleMouseEnter = (id, elemID) => {
|
|
2450
|
+
const elem = document.querySelector(`#${elemID}`);
|
|
2451
|
+
elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.borderActiveColor : borderColor ? borderColor : configStyles.RADIO.borderColor;
|
|
2452
|
+
};
|
|
2453
|
+
const handleMouseLeave = (id, elemID) => {
|
|
2454
|
+
const elem = document.querySelector(`#${elemID}`);
|
|
2455
|
+
elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.borderActiveColor : 'transparent';
|
|
2456
|
+
};
|
|
2457
|
+
const handleChecked = selItem => {
|
|
2458
|
+
setInnerSelectedData(selItem);
|
|
2459
|
+
getData && getData(selItem);
|
|
2460
|
+
};
|
|
2461
|
+
useEffect(() => {
|
|
2462
|
+
if (Array.isArray(data)) {
|
|
2463
|
+
setInnerData(data);
|
|
2464
|
+
} else {
|
|
2465
|
+
setInnerData([data]);
|
|
2466
|
+
}
|
|
2467
|
+
}, [data]);
|
|
2468
|
+
useEffect(() => {
|
|
2469
|
+
let radioSize = '';
|
|
2470
|
+
let radioSizeFormat = '';
|
|
2471
|
+
const checkSize = size || configStyles.RADIO.size;
|
|
2472
|
+
if (checkSize && typeof checkSize === 'string') {
|
|
2473
|
+
if (checkSize.length > 0) {
|
|
2474
|
+
checkSize.split('').map(item => {
|
|
2475
|
+
if (!isNaN(parseInt(item))) {
|
|
2476
|
+
radioSize += item;
|
|
2477
|
+
} else {
|
|
2478
|
+
radioSizeFormat += item;
|
|
2479
|
+
}
|
|
2480
|
+
});
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
if (radioSize < '10') {
|
|
2484
|
+
radioSize = '10';
|
|
2485
|
+
}
|
|
2486
|
+
setRadioInnerFormat(radioSizeFormat);
|
|
2487
|
+
setRadioInnerSize(`${parseInt(radioSize) / 2}`);
|
|
2488
|
+
}, [size, configStyles.RADIO.size]);
|
|
2489
|
+
useEffect(() => {
|
|
2490
|
+
setInnerSelectedData(selected);
|
|
2491
|
+
}, [selected]);
|
|
2492
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
2493
|
+
className: classProps,
|
|
2494
|
+
style: {
|
|
2495
|
+
display: 'flex',
|
|
2496
|
+
flexDirection: diraction === 'horizontal' ? 'row' : 'column'
|
|
2497
|
+
}
|
|
2498
|
+
}, innerData && innerData.length > 0 && innerData.map((item, index) => {
|
|
2499
|
+
const elemId = `TUI_${index}_radio_inner` + v4();
|
|
2500
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
2501
|
+
key: `TUI_${index}_radio`,
|
|
2502
|
+
style: {
|
|
2503
|
+
display: 'flex',
|
|
2504
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
2505
|
+
width: 'fit-content',
|
|
2506
|
+
alignItems: 'center',
|
|
2507
|
+
marginRight: diraction === 'horizontal' ? radioItemMarginRight ? radioItemMarginRight : configStyles.RADIO.radioItemMarginRight : '0px',
|
|
2508
|
+
marginBottom: diraction === 'vertical' ? radioItemMarginBottom ? radioItemMarginBottom : configStyles.RADIO.radioItemMarginBottom : '0px'
|
|
2509
|
+
},
|
|
2510
|
+
onClick: item.disabled ? _ => _ : () => handleChecked(item),
|
|
2511
|
+
onMouseEnter: () => handleMouseEnter(item[keyNames.id], elemId),
|
|
2512
|
+
onMouseLeave: () => handleMouseLeave(item[keyNames.id], elemId)
|
|
2513
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2514
|
+
style: {
|
|
2515
|
+
display: 'flex',
|
|
2516
|
+
alignItems: 'center',
|
|
2517
|
+
borderRadius: '100%',
|
|
2518
|
+
justifyContent: 'center',
|
|
2519
|
+
width: size ? size : configStyles.RADIO.size,
|
|
2520
|
+
height: size ? size : configStyles.RADIO.size,
|
|
2521
|
+
marginRight: item.label ? radioMarginRight ? radioMarginRight : configStyles.RADIO.radioMarginRight : '0px',
|
|
2522
|
+
border: `${borderSize ? borderSize : configStyles.RADIO.borderSize} ${borderStyle ? borderStyle : configStyles.RADIO.borderStyle}`,
|
|
2523
|
+
borderColor: item[keyNames.id] === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.borderActiveColor : borderColor ? borderColor : configStyles.RADIO.borderColor
|
|
2524
|
+
}
|
|
2525
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2526
|
+
id: elemId,
|
|
2527
|
+
style: {
|
|
2528
|
+
borderRadius: '100%',
|
|
2529
|
+
width: radioInnerSize + radioInnerFormat,
|
|
2530
|
+
height: radioInnerSize + radioInnerFormat,
|
|
2531
|
+
backgroundColor: item[keyNames.id] === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.borderActiveColor : 'transparent'
|
|
2532
|
+
}
|
|
2533
|
+
})), item[keyNames.label] ? /*#__PURE__*/React__default.createElement("span", {
|
|
2534
|
+
style: {
|
|
2535
|
+
color: labelColor ? labelColor : configStyles.RADIO.labelColor,
|
|
2536
|
+
fontSize: labelFontSize ? labelFontSize : configStyles.RADIO.labelFontSize,
|
|
2537
|
+
fontFamily: labelFontFamily ? labelFontFamily : configStyles.RADIO.labelFontFamily,
|
|
2538
|
+
fontWeight: labelFontWeight ? labelFontWeight : configStyles.RADIO.labelFontWeight,
|
|
2539
|
+
lineHeight: labelLineHeight ? labelLineHeight : configStyles.RADIO.labelLineHeight
|
|
2540
|
+
},
|
|
2541
|
+
onMouseEnter: () => handleMouseEnter(item[keyNames.id], elemId),
|
|
2542
|
+
onMouseLeave: () => handleMouseLeave(item[keyNames.id], elemId)
|
|
2543
|
+
}, item[keyNames.label]) : '');
|
|
2360
2544
|
}));
|
|
2361
2545
|
};
|
|
2362
2546
|
Radio.propTypes = {
|
|
2547
|
+
size: PropTypes.string,
|
|
2548
|
+
selected: PropTypes.object,
|
|
2549
|
+
keyNames: PropTypes.object,
|
|
2363
2550
|
className: PropTypes.string,
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2551
|
+
borderSize: PropTypes.string,
|
|
2552
|
+
labelColor: PropTypes.string,
|
|
2553
|
+
borderColor: PropTypes.string,
|
|
2554
|
+
borderStyle: PropTypes.string,
|
|
2555
|
+
labelFontSize: PropTypes.string,
|
|
2556
|
+
labelFontFamily: PropTypes.string,
|
|
2557
|
+
labelFontWeight: PropTypes.string,
|
|
2558
|
+
labelLineHeight: PropTypes.string,
|
|
2559
|
+
radioMarginRight: PropTypes.string,
|
|
2560
|
+
getData: PropTypes.func.isRequired,
|
|
2561
|
+
borderActiveColor: PropTypes.string,
|
|
2562
|
+
radioItemMarginRight: PropTypes.string,
|
|
2563
|
+
radioItemMarginBottom: PropTypes.string,
|
|
2564
|
+
diraction: PropTypes.oneOf(Object.values(RadioDirectionMode)),
|
|
2565
|
+
data: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object])
|
|
2373
2566
|
};
|
|
2374
2567
|
Radio.defaultProps = {
|
|
2375
|
-
|
|
2376
|
-
jsonData: '[{"value":"email", "name":"contact", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact", "label":"Phone", "id":"contactChoice2"}]'
|
|
2568
|
+
diraction: 'vertical'
|
|
2377
2569
|
};
|
|
2378
2570
|
|
|
2379
2571
|
const Button = ({
|
|
@@ -3525,71 +3717,6 @@ Stepper.propTypes = {
|
|
|
3525
3717
|
activeSteps: PropTypes.number
|
|
3526
3718
|
};
|
|
3527
3719
|
|
|
3528
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
3529
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
3530
|
-
// generators (like Math.random()).
|
|
3531
|
-
let getRandomValues;
|
|
3532
|
-
const rnds8 = new Uint8Array(16);
|
|
3533
|
-
function rng() {
|
|
3534
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
3535
|
-
if (!getRandomValues) {
|
|
3536
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
3537
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
3538
|
-
|
|
3539
|
-
if (!getRandomValues) {
|
|
3540
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
3541
|
-
}
|
|
3542
|
-
}
|
|
3543
|
-
|
|
3544
|
-
return getRandomValues(rnds8);
|
|
3545
|
-
}
|
|
3546
|
-
|
|
3547
|
-
/**
|
|
3548
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
3549
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
3550
|
-
*/
|
|
3551
|
-
|
|
3552
|
-
const byteToHex = [];
|
|
3553
|
-
|
|
3554
|
-
for (let i = 0; i < 256; ++i) {
|
|
3555
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
3556
|
-
}
|
|
3557
|
-
|
|
3558
|
-
function unsafeStringify(arr, offset = 0) {
|
|
3559
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
3560
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
3561
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
3562
|
-
}
|
|
3563
|
-
|
|
3564
|
-
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
3565
|
-
var native = {
|
|
3566
|
-
randomUUID
|
|
3567
|
-
};
|
|
3568
|
-
|
|
3569
|
-
function v4(options, buf, offset) {
|
|
3570
|
-
if (native.randomUUID && !buf && !options) {
|
|
3571
|
-
return native.randomUUID();
|
|
3572
|
-
}
|
|
3573
|
-
|
|
3574
|
-
options = options || {};
|
|
3575
|
-
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
3576
|
-
|
|
3577
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
3578
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
3579
|
-
|
|
3580
|
-
if (buf) {
|
|
3581
|
-
offset = offset || 0;
|
|
3582
|
-
|
|
3583
|
-
for (let i = 0; i < 16; ++i) {
|
|
3584
|
-
buf[offset + i] = rnds[i];
|
|
3585
|
-
}
|
|
3586
|
-
|
|
3587
|
-
return buf;
|
|
3588
|
-
}
|
|
3589
|
-
|
|
3590
|
-
return unsafeStringify(rnds);
|
|
3591
|
-
}
|
|
3592
|
-
|
|
3593
3720
|
const SvgHeic = ({
|
|
3594
3721
|
title,
|
|
3595
3722
|
titleId,
|
|
@@ -5607,4 +5734,4 @@ NewAutocomplete.defaultProps = {
|
|
|
5607
5734
|
disabled: false
|
|
5608
5735
|
};
|
|
5609
5736
|
|
|
5610
|
-
export { Autocomplate, Button, Captcha, Checkbox, DirectionMode, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };
|
|
5737
|
+
export { Autocomplate, Button, Captcha, Checkbox, DirectionMode, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, RadioDirectionMode, Select, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };
|