@app-studio/web 0.8.64 → 0.8.66
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/components/Alert/Alert/Alert.props.d.ts +1 -1
- package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Avatar/Avatar/Avatar.props.d.ts +1 -1
- package/dist/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Badge/Badge/Badge.props.d.ts +1 -2
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/examples/index.d.ts +0 -1
- package/dist/components/Button/Button/Button.props.d.ts +0 -1
- package/dist/components/Button/examples/index.d.ts +0 -1
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -2
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +1 -1
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +3 -4
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +1 -2
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +1 -2
- package/dist/components/Form/Password/Password/Password.state.d.ts +1 -2
- package/dist/components/Form/Select/Select/Select.props.d.ts +3 -4
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +1 -2
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +1 -2
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +1 -2
- package/dist/components/Layout/Center/Center.d.ts +2 -2
- package/dist/components/Layout/Horizontal/Horizontal.d.ts +2 -2
- package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
- package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +1 -5
- package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
- package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
- package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +1 -1
- package/dist/components/Layout/Vertical/Vertical.d.ts +2 -2
- package/dist/components/Layout/View/View.d.ts +1 -1
- package/dist/components/Link/Link/Link.props.d.ts +1 -2
- package/dist/components/Message/Message/Message.props.d.ts +3 -3
- package/dist/components/Message/Message/Message.type.d.ts +1 -1
- package/dist/components/Message/Message/Message.view.d.ts +1 -1
- package/dist/components/Table/Table/Table.context.d.ts +2 -2
- package/dist/components/Table/Table/Table.props.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Tabs/Tabs/Tabs.props.d.ts +38 -8
- package/dist/components/Tabs/Tabs/Tabs.state.d.ts +9 -5
- package/dist/components/Tabs/Tabs/Tabs.view.d.ts +5 -2
- package/dist/components/Text/Text/Text.props.d.ts +1 -1
- package/dist/components/Toggle/Toggle/Toggle.props.d.ts +1 -2
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/examples/index.d.ts +0 -1
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +1 -2
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup/examples/index.d.ts +0 -1
- package/dist/components/Uploader/{Uploader.props.d.ts → Uploader/Uploader.props.d.ts} +23 -10
- package/dist/components/Uploader/Uploader/Uploader.state.d.ts +13 -0
- package/dist/components/Uploader/Uploader/Uploader.view.d.ts +3 -0
- package/dist/components/Uploader/Uploader.d.ts +1 -12
- package/dist/components/index.d.ts +1 -1
- package/dist/web.cjs.development.js +488 -423
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +489 -422
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +488 -423
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +6 -4
package/dist/web.esm.js
CHANGED
|
@@ -293,7 +293,7 @@ var IconWrapper = _ref => {
|
|
|
293
293
|
} = _ref,
|
|
294
294
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
295
295
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
296
|
-
|
|
296
|
+
widthHeight: size,
|
|
297
297
|
lineHeight: size,
|
|
298
298
|
color: color,
|
|
299
299
|
display: "flex",
|
|
@@ -320,7 +320,7 @@ var ChevronIcon = _ref2 => {
|
|
|
320
320
|
} = _ref2,
|
|
321
321
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
322
322
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
323
|
-
|
|
323
|
+
widthHeight: size,
|
|
324
324
|
color: color
|
|
325
325
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
326
326
|
viewBox: "0 0 24 24",
|
|
@@ -339,7 +339,7 @@ var DragHandleIcon = _ref3 => {
|
|
|
339
339
|
} = _ref3,
|
|
340
340
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
341
341
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
342
|
-
|
|
342
|
+
widthHeight: size,
|
|
343
343
|
color: color
|
|
344
344
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
345
345
|
viewBox: "0 0 24 24",
|
|
@@ -381,7 +381,7 @@ var FileIcon = _ref4 => {
|
|
|
381
381
|
} = _ref4,
|
|
382
382
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
383
383
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
384
|
-
|
|
384
|
+
widthHeight: size,
|
|
385
385
|
color: color
|
|
386
386
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
387
387
|
viewBox: "0 0 24 24",
|
|
@@ -409,7 +409,7 @@ var VideoIcon = _ref5 => {
|
|
|
409
409
|
} = _ref5,
|
|
410
410
|
props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
411
411
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
412
|
-
|
|
412
|
+
widthHeight: size,
|
|
413
413
|
color: color
|
|
414
414
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
415
415
|
viewBox: "0 0 24 24",
|
|
@@ -442,7 +442,7 @@ var ImageIcon = _ref6 => {
|
|
|
442
442
|
} = _ref6,
|
|
443
443
|
props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
|
|
444
444
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
445
|
-
|
|
445
|
+
widthHeight: size,
|
|
446
446
|
color: color
|
|
447
447
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
448
448
|
viewBox: "0 0 24 24",
|
|
@@ -481,7 +481,7 @@ var TwitterIcon = _ref7 => {
|
|
|
481
481
|
} = _ref7,
|
|
482
482
|
props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
483
483
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
484
|
-
|
|
484
|
+
widthHeight: size,
|
|
485
485
|
color: color
|
|
486
486
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
487
487
|
viewBox: "0 0 24 24",
|
|
@@ -503,7 +503,7 @@ var XIcon = _ref8 => {
|
|
|
503
503
|
} = _ref8,
|
|
504
504
|
props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
|
|
505
505
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
506
|
-
|
|
506
|
+
widthHeight: size,
|
|
507
507
|
color: color
|
|
508
508
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
509
509
|
viewBox: "0 0 24 24",
|
|
@@ -526,7 +526,7 @@ var TwitchIcon = _ref9 => {
|
|
|
526
526
|
} = _ref9,
|
|
527
527
|
props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
|
|
528
528
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
529
|
-
|
|
529
|
+
widthHeight: size,
|
|
530
530
|
color: color
|
|
531
531
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
532
532
|
viewBox: "0 0 24 24",
|
|
@@ -554,7 +554,7 @@ var CloseIcon = _ref10 => {
|
|
|
554
554
|
} = _ref10,
|
|
555
555
|
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
556
556
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
557
|
-
|
|
557
|
+
widthHeight: size,
|
|
558
558
|
color: color
|
|
559
559
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
560
560
|
viewBox: "0 0 24 24",
|
|
@@ -583,7 +583,7 @@ var InstagramIcon = _ref11 => {
|
|
|
583
583
|
} = _ref11,
|
|
584
584
|
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
585
585
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
586
|
-
|
|
586
|
+
widthHeight: size,
|
|
587
587
|
color: color
|
|
588
588
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
589
589
|
viewBox: "0 0 24 24",
|
|
@@ -614,7 +614,7 @@ var YoutubeIcon = _ref12 => {
|
|
|
614
614
|
} = _ref12,
|
|
615
615
|
props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
616
616
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
617
|
-
|
|
617
|
+
widthHeight: size,
|
|
618
618
|
color: color
|
|
619
619
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
620
620
|
viewBox: "0 0 24 24",
|
|
@@ -642,7 +642,7 @@ var FacebookIcon = _ref13 => {
|
|
|
642
642
|
} = _ref13,
|
|
643
643
|
props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
644
644
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
645
|
-
|
|
645
|
+
widthHeight: size,
|
|
646
646
|
color: color
|
|
647
647
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
648
648
|
viewBox: "0 0 24 24",
|
|
@@ -664,7 +664,7 @@ var LinkedinIcon = _ref14 => {
|
|
|
664
664
|
} = _ref14,
|
|
665
665
|
props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
|
|
666
666
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
667
|
-
|
|
667
|
+
widthHeight: size,
|
|
668
668
|
color: color
|
|
669
669
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
670
670
|
viewBox: "0 0 24 24"
|
|
@@ -690,7 +690,7 @@ var ThreadsIcon = _ref15 => {
|
|
|
690
690
|
} = _ref15,
|
|
691
691
|
props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
|
|
692
692
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
693
|
-
|
|
693
|
+
widthHeight: size,
|
|
694
694
|
color: color
|
|
695
695
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
696
696
|
viewBox: "0 0 24 24"
|
|
@@ -713,7 +713,7 @@ var MinusIcon = _ref16 => {
|
|
|
713
713
|
} = _ref16,
|
|
714
714
|
props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
|
|
715
715
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
716
|
-
|
|
716
|
+
widthHeight: size,
|
|
717
717
|
color: color
|
|
718
718
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
719
719
|
viewBox: "0 0 24 24",
|
|
@@ -737,7 +737,7 @@ var InfoIcon = _ref17 => {
|
|
|
737
737
|
} = _ref17,
|
|
738
738
|
props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
|
|
739
739
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
740
|
-
|
|
740
|
+
widthHeight: size,
|
|
741
741
|
color: color
|
|
742
742
|
}, props, {
|
|
743
743
|
"aria-label": "Information"
|
|
@@ -758,7 +758,7 @@ var PlayIcon = _ref18 => {
|
|
|
758
758
|
} = _ref18,
|
|
759
759
|
props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
|
|
760
760
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
761
|
-
|
|
761
|
+
widthHeight: size,
|
|
762
762
|
color: color
|
|
763
763
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
764
764
|
viewBox: "0 0 24 24",
|
|
@@ -777,7 +777,7 @@ var PauseIcon = _ref19 => {
|
|
|
777
777
|
} = _ref19,
|
|
778
778
|
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
779
779
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
780
|
-
|
|
780
|
+
widthHeight: size,
|
|
781
781
|
color: color
|
|
782
782
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
783
783
|
viewBox: "0 0 24 24",
|
|
@@ -796,7 +796,7 @@ var HeartIcon = _ref20 => {
|
|
|
796
796
|
} = _ref20,
|
|
797
797
|
props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
|
|
798
798
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
799
|
-
|
|
799
|
+
widthHeight: size,
|
|
800
800
|
color: color
|
|
801
801
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
802
802
|
viewBox: "0 0 24 24",
|
|
@@ -815,7 +815,7 @@ var StarIcon = _ref21 => {
|
|
|
815
815
|
} = _ref21,
|
|
816
816
|
props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
|
|
817
817
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
818
|
-
|
|
818
|
+
widthHeight: size,
|
|
819
819
|
color: color
|
|
820
820
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
821
821
|
viewBox: "0 0 24 24",
|
|
@@ -834,7 +834,7 @@ var SaveIcon = _ref22 => {
|
|
|
834
834
|
} = _ref22,
|
|
835
835
|
props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
|
|
836
836
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
837
|
-
|
|
837
|
+
widthHeight: size,
|
|
838
838
|
color: color
|
|
839
839
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
840
840
|
viewBox: "0 0 24 24",
|
|
@@ -857,7 +857,7 @@ var WarningIcon = _ref23 => {
|
|
|
857
857
|
} = _ref23,
|
|
858
858
|
props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
|
|
859
859
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
860
|
-
|
|
860
|
+
widthHeight: size,
|
|
861
861
|
color: color
|
|
862
862
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
863
863
|
viewBox: "0 0 24 24",
|
|
@@ -888,7 +888,7 @@ var BatteryIcon = _ref24 => {
|
|
|
888
888
|
} = _ref24,
|
|
889
889
|
props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
|
|
890
890
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
891
|
-
|
|
891
|
+
widthHeight: size,
|
|
892
892
|
color: color
|
|
893
893
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
894
894
|
viewBox: "0 0 24 24",
|
|
@@ -907,7 +907,7 @@ var BookmarkIcon = _ref25 => {
|
|
|
907
907
|
} = _ref25,
|
|
908
908
|
props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
|
|
909
909
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
910
|
-
|
|
910
|
+
widthHeight: size,
|
|
911
911
|
color: color
|
|
912
912
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
913
913
|
viewBox: "0 0 24 24",
|
|
@@ -926,7 +926,7 @@ var CloudIcon = _ref26 => {
|
|
|
926
926
|
} = _ref26,
|
|
927
927
|
props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
|
|
928
928
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
929
|
-
|
|
929
|
+
widthHeight: size,
|
|
930
930
|
color: color
|
|
931
931
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
932
932
|
viewBox: "0 0 24 24",
|
|
@@ -945,7 +945,7 @@ var CopyIcon = _ref27 => {
|
|
|
945
945
|
} = _ref27,
|
|
946
946
|
props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
|
|
947
947
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
948
|
-
|
|
948
|
+
widthHeight: size,
|
|
949
949
|
color: color
|
|
950
950
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
951
951
|
viewBox: "0 0 24 24",
|
|
@@ -971,7 +971,7 @@ var DustBinIcon = _ref28 => {
|
|
|
971
971
|
} = _ref28,
|
|
972
972
|
props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
|
|
973
973
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
974
|
-
|
|
974
|
+
widthHeight: size,
|
|
975
975
|
color: color
|
|
976
976
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
977
977
|
viewBox: "0 0 24 24",
|
|
@@ -990,7 +990,7 @@ var EditIcon = _ref29 => {
|
|
|
990
990
|
} = _ref29,
|
|
991
991
|
props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
|
|
992
992
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
993
|
-
|
|
993
|
+
widthHeight: size,
|
|
994
994
|
color: color
|
|
995
995
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
996
996
|
viewBox: "0 0 24 24",
|
|
@@ -1009,7 +1009,7 @@ var ErrorIcon = _ref30 => {
|
|
|
1009
1009
|
} = _ref30,
|
|
1010
1010
|
props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
|
|
1011
1011
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1012
|
-
|
|
1012
|
+
widthHeight: size,
|
|
1013
1013
|
color: color
|
|
1014
1014
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1015
1015
|
viewBox: "0 0 24 24",
|
|
@@ -1042,7 +1042,7 @@ var DownloadIcon = _ref31 => {
|
|
|
1042
1042
|
} = _ref31,
|
|
1043
1043
|
props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
|
|
1044
1044
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1045
|
-
|
|
1045
|
+
widthHeight: size,
|
|
1046
1046
|
color: color
|
|
1047
1047
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1048
1048
|
viewBox: "0 0 24 24",
|
|
@@ -1061,7 +1061,7 @@ var MenuIcon = _ref32 => {
|
|
|
1061
1061
|
} = _ref32,
|
|
1062
1062
|
props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
|
|
1063
1063
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1064
|
-
|
|
1064
|
+
widthHeight: size,
|
|
1065
1065
|
color: color
|
|
1066
1066
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1067
1067
|
viewBox: "0 0 24 24",
|
|
@@ -1096,7 +1096,7 @@ var ShareIcon = _ref33 => {
|
|
|
1096
1096
|
} = _ref33,
|
|
1097
1097
|
props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
|
|
1098
1098
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1099
|
-
|
|
1099
|
+
widthHeight: size,
|
|
1100
1100
|
color: color
|
|
1101
1101
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1102
1102
|
viewBox: "0 0 24 24",
|
|
@@ -1137,7 +1137,7 @@ var RefreshIcon = _ref34 => {
|
|
|
1137
1137
|
} = _ref34,
|
|
1138
1138
|
props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
|
|
1139
1139
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1140
|
-
|
|
1140
|
+
widthHeight: size,
|
|
1141
1141
|
color: color
|
|
1142
1142
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1143
1143
|
viewBox: "0 0 24 24",
|
|
@@ -1158,7 +1158,7 @@ var PrintIcon = _ref35 => {
|
|
|
1158
1158
|
} = _ref35,
|
|
1159
1159
|
props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
|
|
1160
1160
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1161
|
-
|
|
1161
|
+
widthHeight: size,
|
|
1162
1162
|
color: color
|
|
1163
1163
|
}, props), /*#__PURE__*/React.createElement("svg", {
|
|
1164
1164
|
viewBox: "0 0 24 24",
|
|
@@ -1178,7 +1178,7 @@ var PanelIcon = _ref36 => {
|
|
|
1178
1178
|
} = _ref36,
|
|
1179
1179
|
props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
|
|
1180
1180
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1181
|
-
|
|
1181
|
+
widthHeight: size,
|
|
1182
1182
|
color: color
|
|
1183
1183
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1184
1184
|
viewBox: "0 0 24 24",
|
|
@@ -1249,7 +1249,7 @@ var FilterIcon = _ref37 => {
|
|
|
1249
1249
|
} = _ref37,
|
|
1250
1250
|
props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
|
|
1251
1251
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1252
|
-
|
|
1252
|
+
widthHeight: size,
|
|
1253
1253
|
color: color
|
|
1254
1254
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1255
1255
|
viewBox: "0 0 24 24",
|
|
@@ -1268,7 +1268,7 @@ var HomeIcon = _ref38 => {
|
|
|
1268
1268
|
} = _ref38,
|
|
1269
1269
|
props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
|
|
1270
1270
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1271
|
-
|
|
1271
|
+
widthHeight: size,
|
|
1272
1272
|
color: color
|
|
1273
1273
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1274
1274
|
viewBox: "0 0 24 24",
|
|
@@ -1287,7 +1287,7 @@ var LocationIcon = _ref39 => {
|
|
|
1287
1287
|
} = _ref39,
|
|
1288
1288
|
props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
|
|
1289
1289
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1290
|
-
|
|
1290
|
+
widthHeight: size,
|
|
1291
1291
|
color: color
|
|
1292
1292
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1293
1293
|
viewBox: "0 0 24 24",
|
|
@@ -1306,7 +1306,7 @@ var LockIcon = _ref40 => {
|
|
|
1306
1306
|
} = _ref40,
|
|
1307
1307
|
props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
|
|
1308
1308
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1309
|
-
|
|
1309
|
+
widthHeight: size,
|
|
1310
1310
|
color: color
|
|
1311
1311
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1312
1312
|
viewBox: "0 0 24 24",
|
|
@@ -1332,7 +1332,7 @@ var MicrophoneIcon = _ref41 => {
|
|
|
1332
1332
|
} = _ref41,
|
|
1333
1333
|
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1334
1334
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1335
|
-
|
|
1335
|
+
widthHeight: size,
|
|
1336
1336
|
color: color
|
|
1337
1337
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1338
1338
|
viewBox: "0 0 24 24",
|
|
@@ -1365,7 +1365,7 @@ var MoonIcon = _ref42 => {
|
|
|
1365
1365
|
} = _ref42,
|
|
1366
1366
|
props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
|
|
1367
1367
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1368
|
-
|
|
1368
|
+
widthHeight: size,
|
|
1369
1369
|
color: color
|
|
1370
1370
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1371
1371
|
viewBox: "0 0 24 24",
|
|
@@ -1384,7 +1384,7 @@ var NotificationIcon = _ref43 => {
|
|
|
1384
1384
|
} = _ref43,
|
|
1385
1385
|
props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
|
|
1386
1386
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1387
|
-
|
|
1387
|
+
widthHeight: size,
|
|
1388
1388
|
color: color
|
|
1389
1389
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1390
1390
|
viewBox: "0 0 24 24",
|
|
@@ -1405,7 +1405,7 @@ var OpenEyeIcon = _ref44 => {
|
|
|
1405
1405
|
} = _ref44,
|
|
1406
1406
|
props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
|
|
1407
1407
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1408
|
-
|
|
1408
|
+
widthHeight: size,
|
|
1409
1409
|
color: color
|
|
1410
1410
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1411
1411
|
viewBox: "0 0 24 24",
|
|
@@ -1424,7 +1424,7 @@ var ProfileIcon = _ref45 => {
|
|
|
1424
1424
|
} = _ref45,
|
|
1425
1425
|
props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
|
|
1426
1426
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1427
|
-
|
|
1427
|
+
widthHeight: size,
|
|
1428
1428
|
color: color
|
|
1429
1429
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1430
1430
|
viewBox: "0 0 24 24",
|
|
@@ -1444,7 +1444,7 @@ var SettingsIcon = _ref46 => {
|
|
|
1444
1444
|
} = _ref46,
|
|
1445
1445
|
props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
|
|
1446
1446
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1447
|
-
|
|
1447
|
+
widthHeight: size,
|
|
1448
1448
|
color: color
|
|
1449
1449
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1450
1450
|
viewBox: "0 0 24 24",
|
|
@@ -1463,7 +1463,7 @@ var SuccessIcon = _ref47 => {
|
|
|
1463
1463
|
} = _ref47,
|
|
1464
1464
|
props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
|
|
1465
1465
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1466
|
-
|
|
1466
|
+
widthHeight: size,
|
|
1467
1467
|
color: color
|
|
1468
1468
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1469
1469
|
viewBox: "0 0 24 24",
|
|
@@ -1482,7 +1482,7 @@ var UnLikeIcon = _ref48 => {
|
|
|
1482
1482
|
} = _ref48,
|
|
1483
1483
|
props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
|
|
1484
1484
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1485
|
-
|
|
1485
|
+
widthHeight: size,
|
|
1486
1486
|
color: color
|
|
1487
1487
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1488
1488
|
viewBox: "0 0 24 24",
|
|
@@ -1501,7 +1501,7 @@ var ClockIcon = _ref49 => {
|
|
|
1501
1501
|
} = _ref49,
|
|
1502
1502
|
props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
|
|
1503
1503
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1504
|
-
|
|
1504
|
+
widthHeight: size,
|
|
1505
1505
|
color: color
|
|
1506
1506
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1507
1507
|
viewBox: "0 0 24 24",
|
|
@@ -1524,7 +1524,7 @@ var CameraIcon = _ref50 => {
|
|
|
1524
1524
|
} = _ref50,
|
|
1525
1525
|
props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
|
|
1526
1526
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1527
|
-
|
|
1527
|
+
widthHeight: size,
|
|
1528
1528
|
color: color
|
|
1529
1529
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1530
1530
|
viewBox: "0 0 24 24",
|
|
@@ -1547,7 +1547,7 @@ var BluetoothIcon = _ref51 => {
|
|
|
1547
1547
|
} = _ref51,
|
|
1548
1548
|
props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
|
|
1549
1549
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1550
|
-
|
|
1550
|
+
widthHeight: size,
|
|
1551
1551
|
color: color
|
|
1552
1552
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1553
1553
|
viewBox: "0 0 24 24",
|
|
@@ -1566,7 +1566,7 @@ var LikeIcon = _ref52 => {
|
|
|
1566
1566
|
} = _ref52,
|
|
1567
1567
|
props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
|
|
1568
1568
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1569
|
-
|
|
1569
|
+
widthHeight: size,
|
|
1570
1570
|
color: color
|
|
1571
1571
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1572
1572
|
viewBox: "0 0 24 24",
|
|
@@ -1585,7 +1585,7 @@ var UnlockIcon = _ref53 => {
|
|
|
1585
1585
|
} = _ref53,
|
|
1586
1586
|
props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
|
|
1587
1587
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1588
|
-
|
|
1588
|
+
widthHeight: size,
|
|
1589
1589
|
color: color
|
|
1590
1590
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1591
1591
|
viewBox: "0 0 24 24",
|
|
@@ -1611,7 +1611,7 @@ var WifiIcon = _ref54 => {
|
|
|
1611
1611
|
} = _ref54,
|
|
1612
1612
|
props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
|
|
1613
1613
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1614
|
-
|
|
1614
|
+
widthHeight: size,
|
|
1615
1615
|
color: color
|
|
1616
1616
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1617
1617
|
viewBox: "0 0 24 24",
|
|
@@ -1630,7 +1630,7 @@ var UploadIcon = _ref55 => {
|
|
|
1630
1630
|
} = _ref55,
|
|
1631
1631
|
props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
|
|
1632
1632
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1633
|
-
|
|
1633
|
+
widthHeight: size,
|
|
1634
1634
|
color: color
|
|
1635
1635
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1636
1636
|
viewBox: "0 0 24 24",
|
|
@@ -1653,7 +1653,7 @@ var SearchIcon = _ref56 => {
|
|
|
1653
1653
|
} = _ref56,
|
|
1654
1654
|
props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
|
|
1655
1655
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1656
|
-
|
|
1656
|
+
widthHeight: size,
|
|
1657
1657
|
color: color
|
|
1658
1658
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1659
1659
|
viewBox: "0 0 24 24",
|
|
@@ -1672,7 +1672,7 @@ var CloseEyeIcon = _ref57 => {
|
|
|
1672
1672
|
} = _ref57,
|
|
1673
1673
|
props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
|
|
1674
1674
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1675
|
-
|
|
1675
|
+
widthHeight: size,
|
|
1676
1676
|
color: color
|
|
1677
1677
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1678
1678
|
viewBox: "0 0 24 24",
|
|
@@ -1692,7 +1692,7 @@ var ExternalLinkIcon = _ref58 => {
|
|
|
1692
1692
|
} = _ref58,
|
|
1693
1693
|
props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
|
|
1694
1694
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1695
|
-
|
|
1695
|
+
widthHeight: size,
|
|
1696
1696
|
color: color
|
|
1697
1697
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1698
1698
|
viewBox: "0 0 24 24",
|
|
@@ -1711,7 +1711,7 @@ var PlusIcon = _ref59 => {
|
|
|
1711
1711
|
} = _ref59,
|
|
1712
1712
|
props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
|
|
1713
1713
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1714
|
-
|
|
1714
|
+
widthHeight: size,
|
|
1715
1715
|
color: color
|
|
1716
1716
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1717
1717
|
viewBox: "0 0 24 24",
|
|
@@ -1740,7 +1740,7 @@ var TickIcon = _ref60 => {
|
|
|
1740
1740
|
} = _ref60,
|
|
1741
1741
|
props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
|
|
1742
1742
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1743
|
-
|
|
1743
|
+
widthHeight: size,
|
|
1744
1744
|
color: color
|
|
1745
1745
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1746
1746
|
viewBox: "0 0 24 24",
|
|
@@ -1761,7 +1761,7 @@ var BoldArrowIcon = _ref61 => {
|
|
|
1761
1761
|
} = _ref61,
|
|
1762
1762
|
props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
|
|
1763
1763
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1764
|
-
|
|
1764
|
+
widthHeight: size,
|
|
1765
1765
|
color: color
|
|
1766
1766
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1767
1767
|
viewBox: "0 0 24 24",
|
|
@@ -1780,7 +1780,7 @@ var ArrowIcon = _ref62 => {
|
|
|
1780
1780
|
} = _ref62,
|
|
1781
1781
|
props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
|
|
1782
1782
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1783
|
-
|
|
1783
|
+
widthHeight: size,
|
|
1784
1784
|
color: color
|
|
1785
1785
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1786
1786
|
viewBox: "0 0 24 24",
|
|
@@ -1805,7 +1805,7 @@ var SpinnerIcon = _ref63 => {
|
|
|
1805
1805
|
} = _ref63,
|
|
1806
1806
|
props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
|
|
1807
1807
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1808
|
-
|
|
1808
|
+
widthHeight: size,
|
|
1809
1809
|
color: color
|
|
1810
1810
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1811
1811
|
viewBox: "0 0 24 24",
|
|
@@ -1830,7 +1830,7 @@ var CalendarIcon = _ref64 => {
|
|
|
1830
1830
|
} = _ref64,
|
|
1831
1831
|
props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
|
|
1832
1832
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1833
|
-
|
|
1833
|
+
widthHeight: size,
|
|
1834
1834
|
color: color
|
|
1835
1835
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1836
1836
|
viewBox: "0 0 24 24",
|
|
@@ -1931,7 +1931,7 @@ var Icon = {
|
|
|
1931
1931
|
CalendarIcon: CalendarIcon
|
|
1932
1932
|
};
|
|
1933
1933
|
|
|
1934
|
-
// Define a constant object 'Themes' exporting various theme
|
|
1934
|
+
// Define a constant object 'Themes' exporting various theme views.
|
|
1935
1935
|
var Themes = {
|
|
1936
1936
|
// Start of the 'default' theme definition with style properties.
|
|
1937
1937
|
default: {
|
|
@@ -1944,7 +1944,7 @@ var Themes = {
|
|
|
1944
1944
|
color: 'color.blackAlpha.800'
|
|
1945
1945
|
}
|
|
1946
1946
|
},
|
|
1947
|
-
// The 'info' theme with unique container and content
|
|
1947
|
+
// The 'info' theme with unique container and content views.
|
|
1948
1948
|
info: {
|
|
1949
1949
|
container: {
|
|
1950
1950
|
backgroundColor: 'color.blue.200',
|
|
@@ -1955,7 +1955,7 @@ var Themes = {
|
|
|
1955
1955
|
color: '#60a5fa'
|
|
1956
1956
|
}
|
|
1957
1957
|
},
|
|
1958
|
-
// Specifies the 'success' theme with corresponding container and content
|
|
1958
|
+
// Specifies the 'success' theme with corresponding container and content views.
|
|
1959
1959
|
success: {
|
|
1960
1960
|
container: {
|
|
1961
1961
|
backgroundColor: 'color.green.200',
|
|
@@ -1966,7 +1966,7 @@ var Themes = {
|
|
|
1966
1966
|
color: '#22c55e'
|
|
1967
1967
|
}
|
|
1968
1968
|
},
|
|
1969
|
-
// Start of the 'error' theme with its characteristic
|
|
1969
|
+
// Start of the 'error' theme with its characteristic views.
|
|
1970
1970
|
error: {
|
|
1971
1971
|
container: {
|
|
1972
1972
|
backgroundColor: 'color.red.200',
|
|
@@ -1977,7 +1977,7 @@ var Themes = {
|
|
|
1977
1977
|
color: '#ef4444'
|
|
1978
1978
|
}
|
|
1979
1979
|
},
|
|
1980
|
-
// Introduction of the 'warning' theme
|
|
1980
|
+
// Introduction of the 'warning' theme views.
|
|
1981
1981
|
warning: {
|
|
1982
1982
|
container: {
|
|
1983
1983
|
backgroundColor: 'color.orange.200',
|
|
@@ -1992,11 +1992,11 @@ var Themes = {
|
|
|
1992
1992
|
|
|
1993
1993
|
// Defines AlertView as a functional component using destructuring to extract props.
|
|
1994
1994
|
var AlertView = _ref => {
|
|
1995
|
-
var
|
|
1995
|
+
var _views$icon$color;
|
|
1996
1996
|
var {
|
|
1997
1997
|
icon,
|
|
1998
1998
|
title,
|
|
1999
|
-
|
|
1999
|
+
views,
|
|
2000
2000
|
description,
|
|
2001
2001
|
// Sets a default variant prop to 'default' if none is provided.
|
|
2002
2002
|
variant = 'default'
|
|
@@ -2008,20 +2008,20 @@ var AlertView = _ref => {
|
|
|
2008
2008
|
borderStyle: "solid",
|
|
2009
2009
|
padding: 16,
|
|
2010
2010
|
flexWrap: "nowrap"
|
|
2011
|
-
},
|
|
2011
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(View, {
|
|
2012
2012
|
alignSelf: 'center'
|
|
2013
2013
|
}, icon ? icon : (/*#__PURE__*/React.createElement(WarningIcon, {
|
|
2014
2014
|
size: 24,
|
|
2015
|
-
color: (
|
|
2015
|
+
color: (_views$icon$color = views == null ? void 0 : views.icon.color) != null ? _views$icon$color : Themes[variant].content.color
|
|
2016
2016
|
}))), /*#__PURE__*/React.createElement(Vertical, {
|
|
2017
2017
|
gap: 10
|
|
2018
2018
|
}, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
2019
2019
|
fontSize: "16px",
|
|
2020
2020
|
color: Themes[variant].content.color
|
|
2021
|
-
},
|
|
2021
|
+
}, views == null ? void 0 : views.title), title), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
2022
2022
|
fontSize: "14px",
|
|
2023
2023
|
color: Themes[variant].content.color
|
|
2024
|
-
},
|
|
2024
|
+
}, views == null ? void 0 : views.description), description)));
|
|
2025
2025
|
};
|
|
2026
2026
|
|
|
2027
2027
|
// Definition of the AlertComponent functional component with destructured props.
|
|
@@ -2029,14 +2029,14 @@ var AlertComponent = _ref => {
|
|
|
2029
2029
|
var {
|
|
2030
2030
|
icon,
|
|
2031
2031
|
title,
|
|
2032
|
-
|
|
2032
|
+
views,
|
|
2033
2033
|
description,
|
|
2034
2034
|
variant
|
|
2035
2035
|
} = _ref;
|
|
2036
2036
|
return /*#__PURE__*/React.createElement(AlertView, {
|
|
2037
2037
|
icon: icon,
|
|
2038
2038
|
title: title,
|
|
2039
|
-
|
|
2039
|
+
views: views,
|
|
2040
2040
|
description: description,
|
|
2041
2041
|
variant: variant
|
|
2042
2042
|
});
|
|
@@ -2110,7 +2110,7 @@ var AvatarView = _ref => {
|
|
|
2110
2110
|
src,
|
|
2111
2111
|
size = 'md',
|
|
2112
2112
|
fallback = 'IM',
|
|
2113
|
-
|
|
2113
|
+
views,
|
|
2114
2114
|
imageError,
|
|
2115
2115
|
setImageError,
|
|
2116
2116
|
onClick = () => {}
|
|
@@ -2120,7 +2120,7 @@ var AvatarView = _ref => {
|
|
|
2120
2120
|
// Initiates a style object for the image with an objectFit property and spreads additional image styles if provided.
|
|
2121
2121
|
var imageStyle = Object.assign({
|
|
2122
2122
|
objectFit: 'cover'
|
|
2123
|
-
}, (
|
|
2123
|
+
}, (views == null ? void 0 : views.image) || {});
|
|
2124
2124
|
// Start of the JSX returned by the AvatarView component, which uses the Center component as its root element.
|
|
2125
2125
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
2126
2126
|
role: "avatar",
|
|
@@ -2133,7 +2133,7 @@ var AvatarView = _ref => {
|
|
|
2133
2133
|
borderColor: imageError ? 'black' : 'transparent',
|
|
2134
2134
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
|
|
2135
2135
|
onClick: onClick
|
|
2136
|
-
},
|
|
2136
|
+
}, views == null ? void 0 : views.container), !imageError ? (/*#__PURE__*/React.createElement(Image, {
|
|
2137
2137
|
alt: "IM",
|
|
2138
2138
|
src: src,
|
|
2139
2139
|
style: imageStyle,
|
|
@@ -2142,7 +2142,7 @@ var AvatarView = _ref => {
|
|
|
2142
2142
|
onError: () => setImageError(true)
|
|
2143
2143
|
})) : (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
2144
2144
|
size: size
|
|
2145
|
-
},
|
|
2145
|
+
}, views == null ? void 0 : views.fallback), fallback)));
|
|
2146
2146
|
};
|
|
2147
2147
|
|
|
2148
2148
|
// Defines the AvatarComponent functional component with destructured props from AvatarProps type.
|
|
@@ -2150,7 +2150,7 @@ var AvatarComponent = _ref => {
|
|
|
2150
2150
|
var {
|
|
2151
2151
|
src,
|
|
2152
2152
|
size,
|
|
2153
|
-
|
|
2153
|
+
views,
|
|
2154
2154
|
fallback,
|
|
2155
2155
|
onClick
|
|
2156
2156
|
} = _ref;
|
|
@@ -2163,7 +2163,7 @@ var AvatarComponent = _ref => {
|
|
|
2163
2163
|
return /*#__PURE__*/React.createElement(AvatarView, {
|
|
2164
2164
|
src: src,
|
|
2165
2165
|
size: size,
|
|
2166
|
-
|
|
2166
|
+
views: views,
|
|
2167
2167
|
fallback: fallback,
|
|
2168
2168
|
imageError: imageError,
|
|
2169
2169
|
setImageError: setImageError,
|
|
@@ -2234,17 +2234,16 @@ var BadgeView = _ref => {
|
|
|
2234
2234
|
var {
|
|
2235
2235
|
// Declaring the functional component BadgeView with BadgeProps as its type for props.
|
|
2236
2236
|
content,
|
|
2237
|
-
// Destructuring props with default values for shape,
|
|
2237
|
+
// Destructuring props with default values for shape, variant, size, and views.
|
|
2238
2238
|
position,
|
|
2239
2239
|
shape = 'pillShaped',
|
|
2240
|
-
colorScheme = 'theme.primary',
|
|
2241
2240
|
variant = 'filled',
|
|
2242
2241
|
size = 'md',
|
|
2243
|
-
|
|
2242
|
+
views
|
|
2244
2243
|
} = _ref;
|
|
2245
2244
|
var BadgeVariants = {
|
|
2246
2245
|
filled: {
|
|
2247
|
-
backgroundColor:
|
|
2246
|
+
backgroundColor: 'theme.primary',
|
|
2248
2247
|
color: 'color.white',
|
|
2249
2248
|
borderWidth: 1,
|
|
2250
2249
|
borderStyle: 'solid',
|
|
@@ -2255,23 +2254,23 @@ var BadgeView = _ref => {
|
|
|
2255
2254
|
backgroundColor: 'transparent',
|
|
2256
2255
|
borderWidth: 1,
|
|
2257
2256
|
borderStyle: 'solid',
|
|
2258
|
-
borderColor:
|
|
2259
|
-
color:
|
|
2257
|
+
borderColor: 'theme.primary',
|
|
2258
|
+
color: 'theme.primary'
|
|
2260
2259
|
},
|
|
2261
2260
|
link: {
|
|
2262
2261
|
backgroundColor: 'transparent',
|
|
2263
2262
|
// Rendering the Badge component using the Center layout component with combinedStyles applied.
|
|
2264
2263
|
borderWidth: 1,
|
|
2265
|
-
// Inserting a Text component into the badge to display the content, with dynamic size and additional text
|
|
2264
|
+
// Inserting a Text component into the badge to display the content, with dynamic size and additional text views.
|
|
2266
2265
|
borderStyle: 'solid',
|
|
2267
2266
|
borderColor: 'transparent',
|
|
2268
|
-
color:
|
|
2267
|
+
color: 'theme.primary',
|
|
2269
2268
|
// Exporting BadgeView to be used in other parts of the application.
|
|
2270
2269
|
textDecoration: 'underline'
|
|
2271
2270
|
},
|
|
2272
2271
|
ghost: {
|
|
2273
2272
|
backgroundColor: 'transparent',
|
|
2274
|
-
color:
|
|
2273
|
+
color: 'color.trueGray.400',
|
|
2275
2274
|
borderWidth: 1,
|
|
2276
2275
|
borderStyle: 'solid',
|
|
2277
2276
|
borderColor: 'transparent'
|
|
@@ -2280,13 +2279,13 @@ var BadgeView = _ref => {
|
|
|
2280
2279
|
var combinedStyles = Object.assign({
|
|
2281
2280
|
width: 'fit-content',
|
|
2282
2281
|
borderRadius: BadgeShapes[shape]
|
|
2283
|
-
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {},
|
|
2282
|
+
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
|
|
2284
2283
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
2285
2284
|
role: "badge"
|
|
2286
2285
|
}, combinedStyles), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
2287
2286
|
role: "badgeText",
|
|
2288
2287
|
size: size
|
|
2289
|
-
},
|
|
2288
|
+
}, views == null ? void 0 : views.text), content));
|
|
2290
2289
|
};
|
|
2291
2290
|
|
|
2292
2291
|
// Importing type definitions for BadgeProps that will be used to type-check the Badge component's props.
|
|
@@ -2297,22 +2296,19 @@ var Badge = _ref => {
|
|
|
2297
2296
|
// Exporting the Badge as a functional component from this module.
|
|
2298
2297
|
shape,
|
|
2299
2298
|
// Destructuring the props in the component function parameter list, to directly access individual properties.
|
|
2300
|
-
colorScheme,
|
|
2301
|
-
// The functional component Badge is implicitly returning the BadgeView component.
|
|
2302
2299
|
position,
|
|
2303
2300
|
// Passing all the destructured props to the BadgeView component to maintain the same API surface.
|
|
2304
2301
|
variant,
|
|
2305
2302
|
size,
|
|
2306
|
-
|
|
2303
|
+
views
|
|
2307
2304
|
} = _ref;
|
|
2308
2305
|
return /*#__PURE__*/React.createElement(BadgeView, {
|
|
2309
2306
|
content: content,
|
|
2310
2307
|
shape: shape,
|
|
2311
|
-
colorScheme: colorScheme,
|
|
2312
2308
|
position: position,
|
|
2313
2309
|
variant: variant,
|
|
2314
2310
|
size: size,
|
|
2315
|
-
|
|
2311
|
+
views: views
|
|
2316
2312
|
});
|
|
2317
2313
|
};
|
|
2318
2314
|
|
|
@@ -2351,7 +2347,7 @@ var IconSizes = {
|
|
|
2351
2347
|
'6xl': 64
|
|
2352
2348
|
};
|
|
2353
2349
|
|
|
2354
|
-
var _excluded$7 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "
|
|
2350
|
+
var _excluded$7 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
|
|
2355
2351
|
// Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
|
|
2356
2352
|
var LinkView = _ref => {
|
|
2357
2353
|
var {
|
|
@@ -2367,7 +2363,7 @@ var LinkView = _ref => {
|
|
|
2367
2363
|
// Boolean indicating if the link leads to an external resource.
|
|
2368
2364
|
isExternal = false,
|
|
2369
2365
|
// Custom styles for the icon and text, provided via a styles object.
|
|
2370
|
-
|
|
2366
|
+
views = {
|
|
2371
2367
|
icon: {},
|
|
2372
2368
|
text: {}
|
|
2373
2369
|
},
|
|
@@ -2386,12 +2382,12 @@ var LinkView = _ref => {
|
|
|
2386
2382
|
onMouseEnter: handleHover,
|
|
2387
2383
|
onMouseLeave: handleHover,
|
|
2388
2384
|
textDecoration: isHovered || underline === 'underline' ? 'underline !important' : 'none'
|
|
2389
|
-
},
|
|
2385
|
+
}, views.text, props), /*#__PURE__*/React.createElement(Horizontal, {
|
|
2390
2386
|
gap: 3,
|
|
2391
2387
|
alignItems: "center",
|
|
2392
2388
|
flexWrap: "nowrap"
|
|
2393
2389
|
}, children, isExternal && /*#__PURE__*/React.createElement(ExternalLinkIcon, {
|
|
2394
|
-
|
|
2390
|
+
widthHeight: IconSizes[iconSize]
|
|
2395
2391
|
}))));
|
|
2396
2392
|
};
|
|
2397
2393
|
|
|
@@ -2706,7 +2702,7 @@ React.createElement(LoaderView, Object.assign({}, props)));
|
|
|
2706
2702
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
2707
2703
|
var Loader = LoaderComponent;
|
|
2708
2704
|
|
|
2709
|
-
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "
|
|
2705
|
+
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "containerProps", "linkProps"];
|
|
2710
2706
|
var contrast = /*#__PURE__*/require('contrast');
|
|
2711
2707
|
var ButtonView = _ref => {
|
|
2712
2708
|
var _props$onClick;
|
|
@@ -2732,7 +2728,6 @@ var ButtonView = _ref => {
|
|
|
2732
2728
|
variant = 'filled',
|
|
2733
2729
|
iconPosition = 'left',
|
|
2734
2730
|
// Defines CSS properties for 'filled' variant of the button with conditional styles based on reverse state.
|
|
2735
|
-
colorScheme = 'theme.primary',
|
|
2736
2731
|
shape = 'rounded',
|
|
2737
2732
|
onClick = () => {},
|
|
2738
2733
|
loaderProps = {},
|
|
@@ -2756,7 +2751,7 @@ var ButtonView = _ref => {
|
|
|
2756
2751
|
var defaultNativeProps = {
|
|
2757
2752
|
disabled: !isActive
|
|
2758
2753
|
};
|
|
2759
|
-
var buttonColor = isActive ?
|
|
2754
|
+
var buttonColor = isActive ? 'theme.primary' : 'theme.disabled';
|
|
2760
2755
|
var hovering = isHovered && effect === 'hover';
|
|
2761
2756
|
var reverse = isHovered && effect === 'reverse';
|
|
2762
2757
|
var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
|
|
@@ -2774,7 +2769,7 @@ var ButtonView = _ref => {
|
|
|
2774
2769
|
// Defines CSS properties for 'ghost' variant of the button with conditional styles based on reverse state.
|
|
2775
2770
|
borderWidth: 1,
|
|
2776
2771
|
borderStyle: 'solid',
|
|
2777
|
-
borderColor: reverse ? buttonColor :
|
|
2772
|
+
borderColor: reverse ? buttonColor : 'theme.primary',
|
|
2778
2773
|
// Fetches size-specific styles from ButtonSizes based on the 'size' prop.
|
|
2779
2774
|
color: reverse ? 'white' : buttonColor
|
|
2780
2775
|
},
|
|
@@ -2832,8 +2827,7 @@ var ButtonView = _ref => {
|
|
|
2832
2827
|
transform: 'translateY(-5px)'
|
|
2833
2828
|
} : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, shadow, props, containerProps), variant === 'link' && to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
2834
2829
|
to: to,
|
|
2835
|
-
textDecorationColor:
|
|
2836
|
-
colorScheme: colorScheme,
|
|
2830
|
+
textDecorationColor: 'theme.primary',
|
|
2837
2831
|
isExternal: isExternal
|
|
2838
2832
|
}, linkProps), content)) : content);
|
|
2839
2833
|
};
|
|
@@ -2870,8 +2864,7 @@ var _excluded$a = ["src", "color", "themeMode"],
|
|
|
2870
2864
|
var FileSVG = _ref => {
|
|
2871
2865
|
var {
|
|
2872
2866
|
src,
|
|
2873
|
-
color
|
|
2874
|
-
themeMode: elementMode
|
|
2867
|
+
color
|
|
2875
2868
|
} = _ref,
|
|
2876
2869
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2877
2870
|
var {
|
|
@@ -2879,8 +2872,12 @@ var FileSVG = _ref => {
|
|
|
2879
2872
|
themeMode
|
|
2880
2873
|
} = useTheme();
|
|
2881
2874
|
var Colorprops = color ? {
|
|
2882
|
-
fill: getColor(color,
|
|
2883
|
-
|
|
2875
|
+
fill: getColor(color, {
|
|
2876
|
+
themeMode
|
|
2877
|
+
}),
|
|
2878
|
+
stroke: getColor(color, {
|
|
2879
|
+
themeMode
|
|
2880
|
+
})
|
|
2884
2881
|
} : {};
|
|
2885
2882
|
return /*#__PURE__*/React.createElement(Center, Object.assign({}, props), /*#__PURE__*/React.createElement(Image, Object.assign({}, Colorprops, {
|
|
2886
2883
|
content: 'url("' + src + '")',
|
|
@@ -2943,11 +2940,11 @@ var useItemState = () => {
|
|
|
2943
2940
|
};
|
|
2944
2941
|
};
|
|
2945
2942
|
|
|
2946
|
-
var _excluded$b = ["children", "
|
|
2943
|
+
var _excluded$b = ["children", "views"];
|
|
2947
2944
|
var HelperText = _ref => {
|
|
2948
2945
|
var {
|
|
2949
2946
|
children,
|
|
2950
|
-
|
|
2947
|
+
views = {
|
|
2951
2948
|
helperText: {}
|
|
2952
2949
|
}
|
|
2953
2950
|
} = _ref,
|
|
@@ -2957,22 +2954,22 @@ var HelperText = _ref => {
|
|
|
2957
2954
|
marginVertical: 0,
|
|
2958
2955
|
marginHorizontal: 0,
|
|
2959
2956
|
color: 'theme.text.dark'
|
|
2960
|
-
},
|
|
2957
|
+
}, views['helperText'], props), children);
|
|
2961
2958
|
};
|
|
2962
2959
|
|
|
2963
|
-
var _excluded$c = ["children", "helperText", "error", "
|
|
2960
|
+
var _excluded$c = ["children", "helperText", "error", "views"];
|
|
2964
2961
|
var FieldContainer = _ref => {
|
|
2965
2962
|
var {
|
|
2966
2963
|
children,
|
|
2967
2964
|
helperText,
|
|
2968
2965
|
error = false,
|
|
2969
|
-
|
|
2966
|
+
views
|
|
2970
2967
|
} = _ref,
|
|
2971
2968
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
2972
2969
|
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
2973
2970
|
gap: 5,
|
|
2974
2971
|
position: "relative"
|
|
2975
|
-
}, props), children, !error && helperText && /*#__PURE__*/React.createElement(HelperText, Object.assign({},
|
|
2972
|
+
}, props), children, !error && helperText && /*#__PURE__*/React.createElement(HelperText, Object.assign({}, views), helperText), error && (/*#__PURE__*/React.createElement(Text, {
|
|
2976
2973
|
size: "xs",
|
|
2977
2974
|
marginVertical: 0,
|
|
2978
2975
|
marginHorizontal: 0,
|
|
@@ -3027,7 +3024,7 @@ var PaddingWithoutLabel = {
|
|
|
3027
3024
|
paddingRight: 16
|
|
3028
3025
|
};
|
|
3029
3026
|
|
|
3030
|
-
var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "
|
|
3027
|
+
var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
3031
3028
|
var FieldContent = _ref => {
|
|
3032
3029
|
var {
|
|
3033
3030
|
shadow,
|
|
@@ -3041,14 +3038,13 @@ var FieldContent = _ref => {
|
|
|
3041
3038
|
isHovered = false,
|
|
3042
3039
|
isDisabled = false,
|
|
3043
3040
|
isReadOnly = false,
|
|
3044
|
-
|
|
3045
|
-
styles = {
|
|
3041
|
+
views = {
|
|
3046
3042
|
pickerBox: {}
|
|
3047
3043
|
}
|
|
3048
3044
|
} = _ref,
|
|
3049
3045
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3050
3046
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
3051
|
-
var color = error ? 'error' : isInteractive ?
|
|
3047
|
+
var color = error ? 'error' : isInteractive ? 'theme.primary' : 'midgray';
|
|
3052
3048
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
3053
3049
|
gap: 10,
|
|
3054
3050
|
width: "100%",
|
|
@@ -3064,7 +3060,7 @@ var FieldContent = _ref => {
|
|
|
3064
3060
|
fontSize: Typography.fontSizes[size],
|
|
3065
3061
|
// filter={isHovered ? 'brightness(1)':'brightness(0.97)'}
|
|
3066
3062
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
3067
|
-
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant],
|
|
3063
|
+
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
3068
3064
|
};
|
|
3069
3065
|
|
|
3070
3066
|
var _excluded$e = ["children"];
|
|
@@ -3112,13 +3108,13 @@ var HeadingSizes$1 = {
|
|
|
3112
3108
|
},
|
|
3113
3109
|
h5: {
|
|
3114
3110
|
fontSize: 24,
|
|
3115
|
-
// Set the 'h5' heading tag
|
|
3111
|
+
// Set the 'h5' heading tag views, opting for no additional letter spacing.
|
|
3116
3112
|
lineHeight: 28,
|
|
3117
3113
|
letterSpacing: 0
|
|
3118
3114
|
},
|
|
3119
3115
|
h6: {
|
|
3120
3116
|
fontSize: 20,
|
|
3121
|
-
// Set the 'h6' heading tag
|
|
3117
|
+
// Set the 'h6' heading tag views, with the smallest font size and a subtle letter spacing.
|
|
3122
3118
|
lineHeight: 24,
|
|
3123
3119
|
letterSpacing: 0.15
|
|
3124
3120
|
}
|
|
@@ -3172,14 +3168,14 @@ React.createElement(LabelView, Object.assign({}, props))
|
|
|
3172
3168
|
var Label = LabelComponent;
|
|
3173
3169
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
3174
3170
|
|
|
3175
|
-
var _excluded$g = ["children", "size", "error", "color", "
|
|
3171
|
+
var _excluded$g = ["children", "size", "error", "color", "views", "helperText"];
|
|
3176
3172
|
var FieldLabel = _ref => {
|
|
3177
3173
|
var {
|
|
3178
3174
|
children,
|
|
3179
3175
|
size = 'md',
|
|
3180
3176
|
error = false,
|
|
3181
3177
|
color = 'theme.primary',
|
|
3182
|
-
|
|
3178
|
+
views = {
|
|
3183
3179
|
label: {}
|
|
3184
3180
|
}
|
|
3185
3181
|
} = _ref,
|
|
@@ -3193,7 +3189,7 @@ var FieldLabel = _ref => {
|
|
|
3193
3189
|
position: "absolute",
|
|
3194
3190
|
color: error ? 'error' : color,
|
|
3195
3191
|
fontSize: LabelSizes[size]
|
|
3196
|
-
},
|
|
3192
|
+
}, views['label'], props), children);
|
|
3197
3193
|
};
|
|
3198
3194
|
|
|
3199
3195
|
var _excluded$h = ["children"];
|
|
@@ -3221,7 +3217,7 @@ var IconSizes$2 = {
|
|
|
3221
3217
|
var _excluded$i = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
3222
3218
|
_excluded2$3 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3223
3219
|
_excluded3$2 = ["option", "size", "removeOption"],
|
|
3224
|
-
_excluded4$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "
|
|
3220
|
+
_excluded4$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
|
|
3225
3221
|
// Defines a component to render individual selection items within a list.
|
|
3226
3222
|
var Item = _ref => {
|
|
3227
3223
|
var {
|
|
@@ -3255,7 +3251,7 @@ var SelectBox = _ref2 => {
|
|
|
3255
3251
|
var _ref3;
|
|
3256
3252
|
var {
|
|
3257
3253
|
size = 'md',
|
|
3258
|
-
|
|
3254
|
+
views = {
|
|
3259
3255
|
field: {},
|
|
3260
3256
|
text: {}
|
|
3261
3257
|
},
|
|
@@ -3276,7 +3272,7 @@ var SelectBox = _ref2 => {
|
|
|
3276
3272
|
backgroundColor: 'transparent',
|
|
3277
3273
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3278
3274
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3279
|
-
},
|
|
3275
|
+
}, views['field'], views['text']);
|
|
3280
3276
|
var option = options.length > 0 && options.find(option => option.value === value);
|
|
3281
3277
|
return /*#__PURE__*/React.createElement(Text, Object.assign({}, fieldStyles), (value === '' || Array.isArray(value) && value.length === 0) && !!placeholder ? placeholder : (/*#__PURE__*/React.createElement(React.Fragment, null, typeof value === 'string' ? (_ref3 = option && option.label) != null ? _ref3 : value :
|
|
3282
3278
|
// If value is an array and not empty, render MultiSelect options
|
|
@@ -3329,7 +3325,7 @@ var HiddenSelect = _ref4 => {
|
|
|
3329
3325
|
var DropDown = _ref5 => {
|
|
3330
3326
|
var {
|
|
3331
3327
|
size,
|
|
3332
|
-
|
|
3328
|
+
views = {
|
|
3333
3329
|
dropDown: {}
|
|
3334
3330
|
},
|
|
3335
3331
|
options,
|
|
@@ -3376,10 +3372,10 @@ var DropDown = _ref5 => {
|
|
|
3376
3372
|
display: 'none'
|
|
3377
3373
|
}
|
|
3378
3374
|
}
|
|
3379
|
-
}, shadow,
|
|
3375
|
+
}, shadow, views['dropDown']), options.length > 0 && options.map((option, index) => (/*#__PURE__*/React.createElement(Item, Object.assign({
|
|
3380
3376
|
key: option.value,
|
|
3381
3377
|
size: size,
|
|
3382
|
-
style:
|
|
3378
|
+
style: views['text'],
|
|
3383
3379
|
option: option,
|
|
3384
3380
|
callback: handleCallback,
|
|
3385
3381
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
@@ -3429,10 +3425,9 @@ var SelectView = _ref7 => {
|
|
|
3429
3425
|
options = [],
|
|
3430
3426
|
shadow = {},
|
|
3431
3427
|
size = 'md',
|
|
3432
|
-
colorScheme = 'theme.primary',
|
|
3433
3428
|
shape = 'default',
|
|
3434
3429
|
variant = 'default',
|
|
3435
|
-
|
|
3430
|
+
views = {
|
|
3436
3431
|
text: {},
|
|
3437
3432
|
icon: {},
|
|
3438
3433
|
dropDown: {},
|
|
@@ -3476,31 +3471,30 @@ var SelectView = _ref7 => {
|
|
|
3476
3471
|
role: "SelectBox",
|
|
3477
3472
|
helperText: helperText,
|
|
3478
3473
|
error: error,
|
|
3479
|
-
|
|
3474
|
+
views: views,
|
|
3480
3475
|
onClick: isDisabled || isReadOnly ? () => {} : handleClick
|
|
3481
3476
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
3482
3477
|
label: label,
|
|
3483
3478
|
size: size,
|
|
3484
3479
|
error: error,
|
|
3485
3480
|
shape: shape,
|
|
3486
|
-
|
|
3481
|
+
views: views,
|
|
3487
3482
|
shadow: shadow,
|
|
3488
3483
|
variant: variant,
|
|
3489
3484
|
value: value,
|
|
3490
|
-
color:
|
|
3485
|
+
color: 'theme.primary',
|
|
3491
3486
|
isHovered: isHovered,
|
|
3492
3487
|
isDisabled: isDisabled,
|
|
3493
3488
|
isReadOnly: isReadOnly,
|
|
3494
3489
|
isFocused: isFocused,
|
|
3495
3490
|
isWithLabel: isWithLabel,
|
|
3496
|
-
colorScheme: colorScheme,
|
|
3497
3491
|
onMouseEnter: handleHover,
|
|
3498
3492
|
onMouseLeave: handleHover
|
|
3499
3493
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
3500
3494
|
htmlFor: id,
|
|
3501
|
-
color:
|
|
3495
|
+
color: 'theme.primary',
|
|
3502
3496
|
error: error
|
|
3503
|
-
},
|
|
3497
|
+
}, views), label)), /*#__PURE__*/React.createElement(HiddenSelect, Object.assign({
|
|
3504
3498
|
id: id,
|
|
3505
3499
|
name: name,
|
|
3506
3500
|
options: options,
|
|
@@ -3513,7 +3507,7 @@ var SelectView = _ref7 => {
|
|
|
3513
3507
|
}, props)), /*#__PURE__*/React.createElement(SelectBox, {
|
|
3514
3508
|
options: options,
|
|
3515
3509
|
size: size,
|
|
3516
|
-
|
|
3510
|
+
views: views,
|
|
3517
3511
|
value: value,
|
|
3518
3512
|
isDisabled: isDisabled,
|
|
3519
3513
|
placeholder: placeholder,
|
|
@@ -3521,16 +3515,16 @@ var SelectView = _ref7 => {
|
|
|
3521
3515
|
})), /*#__PURE__*/React.createElement(FieldIcons, null, !isReadOnly && !isDisabled && (/*#__PURE__*/React.createElement(React.Fragment, null, hide ? (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
3522
3516
|
color: "inherit",
|
|
3523
3517
|
size: IconSizes$2[size],
|
|
3524
|
-
style:
|
|
3518
|
+
style: views.icon,
|
|
3525
3519
|
orientation: "down"
|
|
3526
3520
|
})) : (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
3527
3521
|
color: "inherit",
|
|
3528
3522
|
orientation: "up",
|
|
3529
3523
|
size: IconSizes$2[size],
|
|
3530
|
-
style:
|
|
3524
|
+
style: views.icon
|
|
3531
3525
|
})))))), !hide && (/*#__PURE__*/React.createElement(DropDown, {
|
|
3532
3526
|
size: size,
|
|
3533
|
-
|
|
3527
|
+
views: views,
|
|
3534
3528
|
options: options,
|
|
3535
3529
|
callback: handleCallback,
|
|
3536
3530
|
highlightedIndex: highlightedIndex,
|
|
@@ -3694,7 +3688,7 @@ var SliderPadding = {
|
|
|
3694
3688
|
}
|
|
3695
3689
|
};
|
|
3696
3690
|
|
|
3697
|
-
var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "
|
|
3691
|
+
var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
3698
3692
|
var SwitchContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
3699
3693
|
type: "checkbox"
|
|
3700
3694
|
}, props));
|
|
@@ -3708,7 +3702,6 @@ var SwitchView = _ref => {
|
|
|
3708
3702
|
labelPosition = 'right',
|
|
3709
3703
|
shadow = {},
|
|
3710
3704
|
size = 'sm',
|
|
3711
|
-
colorScheme = 'theme.primary',
|
|
3712
3705
|
value = false,
|
|
3713
3706
|
isHovered = false,
|
|
3714
3707
|
isDisabled = false,
|
|
@@ -3718,7 +3711,7 @@ var SwitchView = _ref => {
|
|
|
3718
3711
|
onChange,
|
|
3719
3712
|
setValue = () => {},
|
|
3720
3713
|
setIsHovered = () => {},
|
|
3721
|
-
|
|
3714
|
+
views = {
|
|
3722
3715
|
slider: {},
|
|
3723
3716
|
circle: {},
|
|
3724
3717
|
label: {}
|
|
@@ -3740,7 +3733,7 @@ var SwitchView = _ref => {
|
|
|
3740
3733
|
height: 'fit-content',
|
|
3741
3734
|
width: 'fit-content',
|
|
3742
3735
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'
|
|
3743
|
-
},
|
|
3736
|
+
}, views.label)
|
|
3744
3737
|
};
|
|
3745
3738
|
return /*#__PURE__*/React.createElement(Label, Object.assign({
|
|
3746
3739
|
htmlFor: id,
|
|
@@ -3764,12 +3757,12 @@ var SwitchView = _ref => {
|
|
|
3764
3757
|
marginBottom: 5,
|
|
3765
3758
|
filter: isHovered && value ? 'brightness(0.9)' : 'brightness(1)',
|
|
3766
3759
|
transition: "justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
3767
|
-
backgroundColor: isDisabled ? 'disabled' : value ?
|
|
3760
|
+
backgroundColor: isDisabled ? 'disabled' : value ? 'theme.primary' : 'lightgray',
|
|
3768
3761
|
justifyContent: activeChild ? 'space-between' : value ? 'flex-end' : 'flex-start'
|
|
3769
|
-
}, shadow, SliderPadding[size], SliderSizes[size],
|
|
3762
|
+
}, shadow, SliderPadding[size], SliderSizes[size], views['slider']), activeChild && value && /*#__PURE__*/React.createElement(View, null, activeChild), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
3770
3763
|
borderRadius: "50%",
|
|
3771
3764
|
backgroundColor: "white"
|
|
3772
|
-
}, KnobSizes[size],
|
|
3765
|
+
}, KnobSizes[size], views['circle'])), inActiveChild && !value && /*#__PURE__*/React.createElement(View, null, inActiveChild)), labelPosition === 'right' && label && /*#__PURE__*/React.createElement(View, null, label));
|
|
3773
3766
|
};
|
|
3774
3767
|
|
|
3775
3768
|
// Defines the SwitchComponent as a functional component that takes SwitchProps as props.
|
|
@@ -3814,7 +3807,7 @@ var useTextAreaState = _ref => {
|
|
|
3814
3807
|
// Export of the useTextAreaState hook for external usage.
|
|
3815
3808
|
};
|
|
3816
3809
|
|
|
3817
|
-
var _excluded$k = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "
|
|
3810
|
+
var _excluded$k = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
|
|
3818
3811
|
var TextAreaView = _ref => {
|
|
3819
3812
|
var {
|
|
3820
3813
|
id,
|
|
@@ -3828,7 +3821,6 @@ var TextAreaView = _ref => {
|
|
|
3828
3821
|
size = 'sm',
|
|
3829
3822
|
shape = 'default',
|
|
3830
3823
|
variant = 'default',
|
|
3831
|
-
colorScheme = 'theme.primary',
|
|
3832
3824
|
isHovered = false,
|
|
3833
3825
|
isFocused = false,
|
|
3834
3826
|
isEditable = false,
|
|
@@ -3846,7 +3838,7 @@ var TextAreaView = _ref => {
|
|
|
3846
3838
|
setValue = () => {},
|
|
3847
3839
|
setIsFocused = () => {},
|
|
3848
3840
|
setIsHovered = () => {},
|
|
3849
|
-
|
|
3841
|
+
views = {
|
|
3850
3842
|
box: {},
|
|
3851
3843
|
text: {},
|
|
3852
3844
|
label: {},
|
|
@@ -3872,7 +3864,7 @@ var TextAreaView = _ref => {
|
|
|
3872
3864
|
backgroundColor: 'transparent',
|
|
3873
3865
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3874
3866
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3875
|
-
},
|
|
3867
|
+
}, views['field']);
|
|
3876
3868
|
var handleHover = () => setIsHovered(!isHovered);
|
|
3877
3869
|
var handleFocus = () => {
|
|
3878
3870
|
setIsFocused(true);
|
|
@@ -3896,30 +3888,29 @@ var TextAreaView = _ref => {
|
|
|
3896
3888
|
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
3897
3889
|
helperText: helperText,
|
|
3898
3890
|
error: error,
|
|
3899
|
-
|
|
3891
|
+
views: views
|
|
3900
3892
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
3901
3893
|
label: label,
|
|
3902
3894
|
size: size,
|
|
3903
3895
|
error: error,
|
|
3904
3896
|
shape: shape,
|
|
3905
|
-
|
|
3897
|
+
views: views,
|
|
3906
3898
|
shadow: shadow,
|
|
3907
3899
|
variant: variant,
|
|
3908
3900
|
value: value,
|
|
3909
|
-
color:
|
|
3901
|
+
color: 'theme.primary',
|
|
3910
3902
|
isHovered: isHovered,
|
|
3911
3903
|
isDisabled: isDisabled,
|
|
3912
3904
|
isReadOnly: isReadOnly,
|
|
3913
3905
|
isFocused: isFocused,
|
|
3914
3906
|
isWithLabel: isWithLabel,
|
|
3915
|
-
colorScheme: colorScheme,
|
|
3916
3907
|
onMouseEnter: handleHover,
|
|
3917
3908
|
onMouseLeave: handleHover
|
|
3918
3909
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
3919
3910
|
htmlFor: id,
|
|
3920
|
-
color:
|
|
3911
|
+
color: 'theme.primary',
|
|
3921
3912
|
error: error
|
|
3922
|
-
},
|
|
3913
|
+
}, views), label)), /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
3923
3914
|
as: "textarea",
|
|
3924
3915
|
id: id,
|
|
3925
3916
|
name: name,
|
|
@@ -3984,7 +3975,7 @@ var useTextFieldState = _ref => {
|
|
|
3984
3975
|
};
|
|
3985
3976
|
};
|
|
3986
3977
|
|
|
3987
|
-
var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "
|
|
3978
|
+
var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
|
|
3988
3979
|
var TextFieldInput = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
3989
3980
|
type: "text"
|
|
3990
3981
|
}, props));
|
|
@@ -4001,7 +3992,7 @@ var TextFieldView = _ref => {
|
|
|
4001
3992
|
helperText,
|
|
4002
3993
|
onChangeText,
|
|
4003
3994
|
shadow = {},
|
|
4004
|
-
|
|
3995
|
+
views = {
|
|
4005
3996
|
box: {},
|
|
4006
3997
|
field: {},
|
|
4007
3998
|
label: {},
|
|
@@ -4011,7 +4002,6 @@ var TextFieldView = _ref => {
|
|
|
4011
4002
|
size = 'md',
|
|
4012
4003
|
shape = 'default',
|
|
4013
4004
|
variant = 'default',
|
|
4014
|
-
colorScheme = 'theme.primary',
|
|
4015
4005
|
error = false,
|
|
4016
4006
|
isFocused = false,
|
|
4017
4007
|
isHovered = false,
|
|
@@ -4052,7 +4042,7 @@ var TextFieldView = _ref => {
|
|
|
4052
4042
|
backgroundColor: 'transparent',
|
|
4053
4043
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
4054
4044
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
4055
|
-
},
|
|
4045
|
+
}, views['field']);
|
|
4056
4046
|
var handleFocus = () => {
|
|
4057
4047
|
setIsFocused(true);
|
|
4058
4048
|
if (onFocus) onFocus();
|
|
@@ -4089,30 +4079,29 @@ var TextFieldView = _ref => {
|
|
|
4089
4079
|
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
4090
4080
|
helperText: helperText,
|
|
4091
4081
|
error: error,
|
|
4092
|
-
|
|
4082
|
+
views: views
|
|
4093
4083
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
4094
4084
|
label: label,
|
|
4095
4085
|
size: size,
|
|
4096
4086
|
error: error,
|
|
4097
4087
|
shape: shape,
|
|
4098
|
-
|
|
4088
|
+
views: views,
|
|
4099
4089
|
shadow: shadow,
|
|
4100
4090
|
variant: variant,
|
|
4101
4091
|
value: value,
|
|
4102
|
-
color:
|
|
4092
|
+
color: 'theme.primary',
|
|
4103
4093
|
isHovered: isHovered,
|
|
4104
4094
|
isDisabled: isDisabled,
|
|
4105
4095
|
isReadOnly: isReadOnly,
|
|
4106
4096
|
isFocused: isFocused,
|
|
4107
4097
|
isWithLabel: isWithLabel,
|
|
4108
|
-
colorScheme: colorScheme,
|
|
4109
4098
|
onMouseEnter: handleHover,
|
|
4110
4099
|
onMouseLeave: handleHover
|
|
4111
4100
|
}, left, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
4112
4101
|
htmlFor: id,
|
|
4113
|
-
color:
|
|
4102
|
+
color: 'theme.primary',
|
|
4114
4103
|
error: error
|
|
4115
|
-
},
|
|
4104
|
+
}, views), label)), /*#__PURE__*/React.createElement(TextFieldInput, Object.assign({
|
|
4116
4105
|
id: id,
|
|
4117
4106
|
name: name,
|
|
4118
4107
|
readOnly: isReadOnly,
|
|
@@ -4210,7 +4199,7 @@ var IconSizes$3 = {
|
|
|
4210
4199
|
'6xl': 60
|
|
4211
4200
|
};
|
|
4212
4201
|
|
|
4213
|
-
var _excluded$m = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "
|
|
4202
|
+
var _excluded$m = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
|
|
4214
4203
|
var CheckboxView = _ref => {
|
|
4215
4204
|
var {
|
|
4216
4205
|
id,
|
|
@@ -4222,7 +4211,6 @@ var CheckboxView = _ref => {
|
|
|
4222
4211
|
shadow = {},
|
|
4223
4212
|
labelPosition = 'right',
|
|
4224
4213
|
size = 'md',
|
|
4225
|
-
colorScheme = 'theme.primary',
|
|
4226
4214
|
error = false,
|
|
4227
4215
|
isSelected = false,
|
|
4228
4216
|
isHovered = false,
|
|
@@ -4232,7 +4220,7 @@ var CheckboxView = _ref => {
|
|
|
4232
4220
|
defaultIsSelected = false,
|
|
4233
4221
|
setIsSelected = () => {},
|
|
4234
4222
|
setIsHovered = () => {},
|
|
4235
|
-
|
|
4223
|
+
views = {
|
|
4236
4224
|
checkbox: {},
|
|
4237
4225
|
label: {}
|
|
4238
4226
|
},
|
|
@@ -4256,11 +4244,11 @@ var CheckboxView = _ref => {
|
|
|
4256
4244
|
width: 'fit-content',
|
|
4257
4245
|
color: error ? 'theme.error' : isDisabled ? 'theme.disabled' : 'color.blueGray.700',
|
|
4258
4246
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'
|
|
4259
|
-
},
|
|
4247
|
+
}, views['label']),
|
|
4260
4248
|
checkbox: Object.assign({}, isDisabled ? {
|
|
4261
4249
|
backgroundColor: 'theme.disabled'
|
|
4262
4250
|
} : (isChecked || isSelected) && !isIndeterminate || isIndeterminate ? {
|
|
4263
|
-
backgroundColor:
|
|
4251
|
+
backgroundColor: 'theme.primary'
|
|
4264
4252
|
} : {
|
|
4265
4253
|
borderWidth: 2,
|
|
4266
4254
|
borderColor: error ? 'theme.error' : isHovered ? 'color.gray.500' : 'color.gray.300',
|
|
@@ -4269,7 +4257,7 @@ var CheckboxView = _ref => {
|
|
|
4269
4257
|
borderRadius: 3
|
|
4270
4258
|
}, isHovered ? {
|
|
4271
4259
|
filter: 'brightness(0.9)'
|
|
4272
|
-
} : {}, Sizes[size], shadow,
|
|
4260
|
+
} : {}, Sizes[size], shadow, views['checkbox'])
|
|
4273
4261
|
};
|
|
4274
4262
|
return /*#__PURE__*/React.createElement(Label, Object.assign({
|
|
4275
4263
|
htmlFor: id,
|
|
@@ -4285,7 +4273,7 @@ var CheckboxView = _ref => {
|
|
|
4285
4273
|
alignItems: "center"
|
|
4286
4274
|
}, labelPosition === 'left' && label && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
4287
4275
|
size: size
|
|
4288
|
-
},
|
|
4276
|
+
}, views == null ? void 0 : views.label), label)), /*#__PURE__*/React.createElement(Center, Object.assign({}, checkboxStyle.checkbox), isIndeterminate ? (/*#__PURE__*/React.createElement(MinusIcon, {
|
|
4289
4277
|
size: IconSizes$3[size],
|
|
4290
4278
|
color: "white"
|
|
4291
4279
|
})) : (isChecked || isSelected) && (icon != null ? icon : /*#__PURE__*/React.createElement(TickIcon, {
|
|
@@ -4293,11 +4281,11 @@ var CheckboxView = _ref => {
|
|
|
4293
4281
|
color: "white"
|
|
4294
4282
|
}))), labelPosition === 'right' && label && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
4295
4283
|
size: size
|
|
4296
|
-
},
|
|
4284
|
+
}, views == null ? void 0 : views.label), label))), infoText && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
4297
4285
|
marginLeft: labelPosition === 'left' ? 0 : 27,
|
|
4298
4286
|
color: "color.gray.400",
|
|
4299
4287
|
size: "sm"
|
|
4300
|
-
},
|
|
4288
|
+
}, views == null ? void 0 : views.infoText), infoText))), error && (/*#__PURE__*/React.createElement(Text, {
|
|
4301
4289
|
size: "xs",
|
|
4302
4290
|
marginVertical: 0,
|
|
4303
4291
|
marginHorizontal: 0,
|
|
@@ -5804,7 +5792,7 @@ var IconSizes$4 = {
|
|
|
5804
5792
|
|
|
5805
5793
|
var _excluded$n = ["size"],
|
|
5806
5794
|
_excluded2$4 = ["size"],
|
|
5807
|
-
_excluded3$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "
|
|
5795
|
+
_excluded3$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
5808
5796
|
var CountryList = _ref => {
|
|
5809
5797
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
5810
5798
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
@@ -5825,7 +5813,7 @@ var DropDownItem = _ref3 => {
|
|
|
5825
5813
|
option,
|
|
5826
5814
|
size = 'md',
|
|
5827
5815
|
callback = () => {},
|
|
5828
|
-
|
|
5816
|
+
views = {
|
|
5829
5817
|
text: {}
|
|
5830
5818
|
}
|
|
5831
5819
|
} = _ref3;
|
|
@@ -5847,12 +5835,12 @@ var DropDownItem = _ref3 => {
|
|
|
5847
5835
|
onClick: handleOptionClick,
|
|
5848
5836
|
fontSize: Typography.fontSizes[size],
|
|
5849
5837
|
backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
|
|
5850
|
-
},
|
|
5838
|
+
}, views['text']), option);
|
|
5851
5839
|
};
|
|
5852
5840
|
var DropDown$1 = _ref4 => {
|
|
5853
5841
|
var {
|
|
5854
5842
|
size,
|
|
5855
|
-
|
|
5843
|
+
views = {
|
|
5856
5844
|
dropDown: {}
|
|
5857
5845
|
},
|
|
5858
5846
|
options,
|
|
@@ -5874,12 +5862,12 @@ var DropDown$1 = _ref4 => {
|
|
|
5874
5862
|
flexDirection: "column",
|
|
5875
5863
|
backgroundColor: "white",
|
|
5876
5864
|
boxShadow: "rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"
|
|
5877
|
-
},
|
|
5865
|
+
}, views['dropDown']), options.map(option => (/*#__PURE__*/React.createElement(DropDownItem, Object.assign({
|
|
5878
5866
|
key: option.code,
|
|
5879
5867
|
size: size,
|
|
5880
5868
|
option: option.name,
|
|
5881
5869
|
callback: handleCallback
|
|
5882
|
-
},
|
|
5870
|
+
}, views['text'])))));
|
|
5883
5871
|
};
|
|
5884
5872
|
var CountryPickerView = _ref5 => {
|
|
5885
5873
|
var {
|
|
@@ -5901,7 +5889,6 @@ var CountryPickerView = _ref5 => {
|
|
|
5901
5889
|
size = 'md',
|
|
5902
5890
|
variant = 'default',
|
|
5903
5891
|
shape = 'default',
|
|
5904
|
-
colorScheme = 'theme.primary',
|
|
5905
5892
|
onChange,
|
|
5906
5893
|
onBlur = () => {},
|
|
5907
5894
|
setHide = () => {},
|
|
@@ -5909,7 +5896,7 @@ var CountryPickerView = _ref5 => {
|
|
|
5909
5896
|
setIsHovered = () => {},
|
|
5910
5897
|
setIsFocused = () => {},
|
|
5911
5898
|
setValue = () => {},
|
|
5912
|
-
|
|
5899
|
+
views = {
|
|
5913
5900
|
text: {},
|
|
5914
5901
|
icon: {},
|
|
5915
5902
|
label: {},
|
|
@@ -5964,36 +5951,35 @@ var CountryPickerView = _ref5 => {
|
|
|
5964
5951
|
fontSize: Typography.fontSizes[size],
|
|
5965
5952
|
backgroundColor: 'transparent',
|
|
5966
5953
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
5967
|
-
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
5968
|
-
},
|
|
5954
|
+
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
5955
|
+
}, views['field']);
|
|
5969
5956
|
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
5970
5957
|
helperText: helperText,
|
|
5971
5958
|
error: error,
|
|
5972
|
-
|
|
5959
|
+
views: views,
|
|
5973
5960
|
onClick: handleClick
|
|
5974
5961
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
5975
5962
|
label: label,
|
|
5976
5963
|
size: size,
|
|
5977
5964
|
error: error,
|
|
5978
5965
|
shape: shape,
|
|
5979
|
-
|
|
5966
|
+
views: views,
|
|
5980
5967
|
shadow: shadow,
|
|
5981
5968
|
variant: variant,
|
|
5982
5969
|
value: value,
|
|
5983
|
-
color:
|
|
5970
|
+
color: 'theme.primary',
|
|
5984
5971
|
isHovered: isHovered,
|
|
5985
5972
|
isDisabled: isDisabled,
|
|
5986
5973
|
isReadOnly: isReadOnly,
|
|
5987
5974
|
isFocused: isFocused,
|
|
5988
5975
|
isWithLabel: isWithLabel,
|
|
5989
|
-
colorScheme: colorScheme,
|
|
5990
5976
|
onMouseEnter: handleHover,
|
|
5991
5977
|
onMouseLeave: handleHover
|
|
5992
5978
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
5993
5979
|
htmlFor: id,
|
|
5994
|
-
color:
|
|
5980
|
+
color: 'theme.primary',
|
|
5995
5981
|
error: error
|
|
5996
|
-
},
|
|
5982
|
+
}, views), label)), /*#__PURE__*/React.createElement(CountrySelector, Object.assign({
|
|
5997
5983
|
id: id,
|
|
5998
5984
|
name: name,
|
|
5999
5985
|
placeholder: placeholder,
|
|
@@ -6009,15 +5995,15 @@ var CountryPickerView = _ref5 => {
|
|
|
6009
5995
|
orientation: "down",
|
|
6010
5996
|
size: IconSizes$4[size],
|
|
6011
5997
|
color: IconColor,
|
|
6012
|
-
style:
|
|
5998
|
+
style: views['icon']
|
|
6013
5999
|
})) : (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
6014
6000
|
orientation: "up",
|
|
6015
6001
|
size: IconSizes$4[size],
|
|
6016
6002
|
color: IconColor,
|
|
6017
|
-
style:
|
|
6003
|
+
style: views['icon']
|
|
6018
6004
|
})))), !hide && (/*#__PURE__*/React.createElement(DropDown$1, {
|
|
6019
6005
|
size: size,
|
|
6020
|
-
|
|
6006
|
+
views: views,
|
|
6021
6007
|
options: newOptions,
|
|
6022
6008
|
callback: handleCallback
|
|
6023
6009
|
})));
|
|
@@ -6047,7 +6033,7 @@ var useDatePickerState = () => {
|
|
|
6047
6033
|
};
|
|
6048
6034
|
};
|
|
6049
6035
|
|
|
6050
|
-
var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "
|
|
6036
|
+
var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
6051
6037
|
var DatePickerContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
6052
6038
|
type: "date"
|
|
6053
6039
|
}, props));
|
|
@@ -6062,8 +6048,7 @@ var DatePickerView = _ref => {
|
|
|
6062
6048
|
size = 'md',
|
|
6063
6049
|
variant = 'default',
|
|
6064
6050
|
shape = 'default',
|
|
6065
|
-
|
|
6066
|
-
styles = {
|
|
6051
|
+
views = {
|
|
6067
6052
|
box: {},
|
|
6068
6053
|
label: {},
|
|
6069
6054
|
helperText: {},
|
|
@@ -6111,34 +6096,33 @@ var DatePickerView = _ref => {
|
|
|
6111
6096
|
backgroundColor: 'transparent',
|
|
6112
6097
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
6113
6098
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
6114
|
-
},
|
|
6099
|
+
}, views['field']);
|
|
6115
6100
|
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
6116
6101
|
helperText: helperText,
|
|
6117
6102
|
error: error,
|
|
6118
|
-
|
|
6103
|
+
views: views
|
|
6119
6104
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
6120
6105
|
label: label,
|
|
6121
6106
|
size: size,
|
|
6122
6107
|
error: error,
|
|
6123
6108
|
shape: shape,
|
|
6124
|
-
|
|
6109
|
+
views: views,
|
|
6125
6110
|
shadow: shadow,
|
|
6111
|
+
color: 'theme.primary',
|
|
6126
6112
|
variant: variant,
|
|
6127
6113
|
value: date,
|
|
6128
|
-
color: colorScheme,
|
|
6129
6114
|
isHovered: isHovered,
|
|
6130
6115
|
isDisabled: isDisabled,
|
|
6131
6116
|
isReadOnly: isReadOnly,
|
|
6132
6117
|
isFocused: isFocused,
|
|
6133
6118
|
isWithLabel: isWithLabel,
|
|
6134
|
-
colorScheme: colorScheme,
|
|
6135
6119
|
onMouseEnter: handleHover,
|
|
6136
6120
|
onMouseLeave: handleHover
|
|
6137
6121
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
6138
6122
|
htmlFor: id,
|
|
6139
|
-
color:
|
|
6123
|
+
color: 'theme.primary',
|
|
6140
6124
|
error: error
|
|
6141
|
-
},
|
|
6125
|
+
}, views), label)), /*#__PURE__*/React.createElement(DatePickerContent, Object.assign({
|
|
6142
6126
|
id: id,
|
|
6143
6127
|
name: name,
|
|
6144
6128
|
onFocus: handleFocus,
|
|
@@ -6174,10 +6158,10 @@ var _excluded$p = ["visibleIcon", "hiddenIcon"],
|
|
|
6174
6158
|
var PasswordComponent = _ref => {
|
|
6175
6159
|
var {
|
|
6176
6160
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
6177
|
-
|
|
6161
|
+
widthHeight: 14
|
|
6178
6162
|
}),
|
|
6179
6163
|
hiddenIcon = /*#__PURE__*/React.createElement(CloseEyeIcon, {
|
|
6180
|
-
|
|
6164
|
+
widthHeight: 14
|
|
6181
6165
|
})
|
|
6182
6166
|
} = _ref,
|
|
6183
6167
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
@@ -6234,7 +6218,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
|
|
|
6234
6218
|
};
|
|
6235
6219
|
};
|
|
6236
6220
|
|
|
6237
|
-
var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "
|
|
6221
|
+
var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
6238
6222
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
6239
6223
|
var ComboBoxView = _ref => {
|
|
6240
6224
|
var {
|
|
@@ -6254,7 +6238,7 @@ var ComboBoxView = _ref => {
|
|
|
6254
6238
|
searchQuery,
|
|
6255
6239
|
setSearchQuery,
|
|
6256
6240
|
setFilteredItems,
|
|
6257
|
-
|
|
6241
|
+
views,
|
|
6258
6242
|
isDropdownVisible,
|
|
6259
6243
|
setIsDropdownVisible
|
|
6260
6244
|
// Collects all further props not destructured explicitly.
|
|
@@ -6297,7 +6281,7 @@ var ComboBoxView = _ref => {
|
|
|
6297
6281
|
alignItems: "center",
|
|
6298
6282
|
width: "100%"
|
|
6299
6283
|
}, props), label && (/*#__PURE__*/React.createElement(Text, {
|
|
6300
|
-
|
|
6284
|
+
views: views == null ? void 0 : views.label,
|
|
6301
6285
|
htmlFor: props.id
|
|
6302
6286
|
}, label)), /*#__PURE__*/React.createElement(View, {
|
|
6303
6287
|
position: "relative"
|
|
@@ -6312,16 +6296,16 @@ var ComboBoxView = _ref => {
|
|
|
6312
6296
|
justifyContent: "space-between",
|
|
6313
6297
|
minWidth: 300,
|
|
6314
6298
|
flexWrap: "nowrap"
|
|
6315
|
-
},
|
|
6299
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
6316
6300
|
gap: 15,
|
|
6317
6301
|
alignItems: "center",
|
|
6318
6302
|
position: "relative",
|
|
6319
6303
|
width: "100%",
|
|
6320
6304
|
onClick: () => setIsDropdownVisible(!isDropdownVisible)
|
|
6321
|
-
},
|
|
6305
|
+
}, views == null ? void 0 : views.labelContainer), left, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
6322
6306
|
weight: "medium",
|
|
6323
6307
|
flexGrow: 1
|
|
6324
|
-
},
|
|
6308
|
+
}, views == null ? void 0 : views.label), selectedItem.label)), right, isDropdownVisible && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
6325
6309
|
id: "combobox-dropdown",
|
|
6326
6310
|
position: "absolute",
|
|
6327
6311
|
backgroundColor: "white",
|
|
@@ -6334,7 +6318,7 @@ var ComboBoxView = _ref => {
|
|
|
6334
6318
|
transform: "translateY(100%)",
|
|
6335
6319
|
marginTop: "4px",
|
|
6336
6320
|
borderRadius: "4px"
|
|
6337
|
-
},
|
|
6321
|
+
}, views == null ? void 0 : views.dropdown), searchEnabled && (/*#__PURE__*/React.createElement(TextFieldView, {
|
|
6338
6322
|
id: props.id,
|
|
6339
6323
|
name: props.name,
|
|
6340
6324
|
width: "100%",
|
|
@@ -6344,14 +6328,14 @@ var ComboBoxView = _ref => {
|
|
|
6344
6328
|
hint: placeholder,
|
|
6345
6329
|
isClearable: false,
|
|
6346
6330
|
left: /*#__PURE__*/React.createElement(SearchIcon, {
|
|
6347
|
-
|
|
6331
|
+
widthHeight: 12
|
|
6348
6332
|
}),
|
|
6349
|
-
|
|
6333
|
+
views: {
|
|
6350
6334
|
box: Object.assign({
|
|
6351
6335
|
width: '100%',
|
|
6352
6336
|
padding: '6px 12px',
|
|
6353
6337
|
borderBottom: filteredItems.length > 0 ? '1px solid #ccc' : '1px solid transparent'
|
|
6354
|
-
},
|
|
6338
|
+
}, views == null ? void 0 : views.text)
|
|
6355
6339
|
}
|
|
6356
6340
|
})), filteredItems.length > 0 && (/*#__PURE__*/React.createElement(View, {
|
|
6357
6341
|
margin: 0,
|
|
@@ -6365,8 +6349,8 @@ var ComboBoxView = _ref => {
|
|
|
6365
6349
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
6366
6350
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
6367
6351
|
onClick: () => handleSelect(item)
|
|
6368
|
-
},
|
|
6369
|
-
|
|
6352
|
+
}, views == null ? void 0 : views.item), /*#__PURE__*/React.createElement(Text, null, item.label), /*#__PURE__*/React.createElement(React.Fragment, null, item.icon && item.icon, item.value === selectedItem.value && showTick && !item.icon && /*#__PURE__*/React.createElement(TickIcon, {
|
|
6353
|
+
widthHeight: 20
|
|
6370
6354
|
}))))))))))));
|
|
6371
6355
|
};
|
|
6372
6356
|
|
|
@@ -6630,10 +6614,10 @@ var _excluded$w = ["visibleIcon", "hiddenIcon"],
|
|
|
6630
6614
|
var PasswordComponent$1 = _ref => {
|
|
6631
6615
|
var {
|
|
6632
6616
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
6633
|
-
|
|
6617
|
+
widthHeight: 14
|
|
6634
6618
|
}),
|
|
6635
6619
|
hiddenIcon = /*#__PURE__*/React.createElement(CloseEyeIcon, {
|
|
6636
|
-
|
|
6620
|
+
widthHeight: 14
|
|
6637
6621
|
})
|
|
6638
6622
|
} = _ref,
|
|
6639
6623
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
@@ -6692,12 +6676,12 @@ var useMessageStore = /*#__PURE__*/create(set => ({
|
|
|
6692
6676
|
subtitle: '',
|
|
6693
6677
|
variant: 'info',
|
|
6694
6678
|
isClosable: false,
|
|
6695
|
-
|
|
6679
|
+
views: {},
|
|
6696
6680
|
action: () => {},
|
|
6697
6681
|
actionText: '',
|
|
6698
6682
|
showIcon: false,
|
|
6699
6683
|
timeout: 3000,
|
|
6700
|
-
show: function show(variant, title, subtitle, isClosable,
|
|
6684
|
+
show: function show(variant, title, subtitle, isClosable, views, action, actionText, showIcon, timeout) {
|
|
6701
6685
|
if (title === void 0) {
|
|
6702
6686
|
title = '';
|
|
6703
6687
|
}
|
|
@@ -6710,7 +6694,7 @@ var useMessageStore = /*#__PURE__*/create(set => ({
|
|
|
6710
6694
|
title,
|
|
6711
6695
|
subtitle,
|
|
6712
6696
|
isClosable,
|
|
6713
|
-
|
|
6697
|
+
views,
|
|
6714
6698
|
action,
|
|
6715
6699
|
actionText,
|
|
6716
6700
|
showIcon,
|
|
@@ -6722,7 +6706,7 @@ var useMessageStore = /*#__PURE__*/create(set => ({
|
|
|
6722
6706
|
})
|
|
6723
6707
|
}));
|
|
6724
6708
|
var showMessage = (variant, title, subtitle, props) => {
|
|
6725
|
-
useMessageStore.getState().show(variant, title, subtitle, props == null ? void 0 : props.isClosable, props == null ? void 0 : props.
|
|
6709
|
+
useMessageStore.getState().show(variant, title, subtitle, props == null ? void 0 : props.isClosable, props == null ? void 0 : props.views, props == null ? void 0 : props.action, props == null ? void 0 : props.actionText, props == null ? void 0 : props.showIcon, props == null ? void 0 : props.timeout);
|
|
6726
6710
|
};
|
|
6727
6711
|
var hideMessage = () => {
|
|
6728
6712
|
useMessageStore.getState().hide();
|
|
@@ -6800,7 +6784,7 @@ var Themes$1 = {
|
|
|
6800
6784
|
};
|
|
6801
6785
|
|
|
6802
6786
|
var MessageView = _ref => {
|
|
6803
|
-
var
|
|
6787
|
+
var _views$closingIcon, _views$closingIcon2;
|
|
6804
6788
|
var {
|
|
6805
6789
|
variant,
|
|
6806
6790
|
hide,
|
|
@@ -6812,7 +6796,7 @@ var MessageView = _ref => {
|
|
|
6812
6796
|
showIcon = false,
|
|
6813
6797
|
isClosable = false,
|
|
6814
6798
|
timeout = 3000,
|
|
6815
|
-
|
|
6799
|
+
views
|
|
6816
6800
|
} = _ref;
|
|
6817
6801
|
useEffect(() => {
|
|
6818
6802
|
if (timeout && !isClosable) {
|
|
@@ -6842,21 +6826,21 @@ var MessageView = _ref => {
|
|
|
6842
6826
|
}[variant];
|
|
6843
6827
|
var iconComponent = {
|
|
6844
6828
|
info: /*#__PURE__*/React.createElement(InfoIcon, Object.assign({
|
|
6845
|
-
|
|
6829
|
+
widthHeight: 24,
|
|
6846
6830
|
color: iconColor
|
|
6847
|
-
},
|
|
6848
|
-
success: /*#__PURE__*/React.createElement(SuccessIcon, Object.assign({
|
|
6849
|
-
|
|
6831
|
+
}, views == null ? void 0 : views.icon)),
|
|
6832
|
+
success: (/*#__PURE__*/React.createElement(SuccessIcon, Object.assign({
|
|
6833
|
+
widthHeight: 24,
|
|
6850
6834
|
color: iconColor
|
|
6851
|
-
},
|
|
6852
|
-
warning: /*#__PURE__*/React.createElement(WarningIcon, Object.assign({
|
|
6853
|
-
|
|
6835
|
+
}, views == null ? void 0 : views.icon))),
|
|
6836
|
+
warning: (/*#__PURE__*/React.createElement(WarningIcon, Object.assign({
|
|
6837
|
+
widthHeight: 24,
|
|
6854
6838
|
color: iconColor
|
|
6855
|
-
},
|
|
6839
|
+
}, views == null ? void 0 : views.icon))),
|
|
6856
6840
|
error: /*#__PURE__*/React.createElement(ErrorIcon, Object.assign({
|
|
6857
|
-
|
|
6841
|
+
widthHeight: 24,
|
|
6858
6842
|
color: iconColor
|
|
6859
|
-
},
|
|
6843
|
+
}, views == null ? void 0 : views.icon))
|
|
6860
6844
|
}[variant];
|
|
6861
6845
|
var isShowIcon = showIcon && iconComponent;
|
|
6862
6846
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
@@ -6873,20 +6857,20 @@ var MessageView = _ref => {
|
|
|
6873
6857
|
onClick: isClosable ? () => {} : () => {
|
|
6874
6858
|
hide();
|
|
6875
6859
|
}
|
|
6876
|
-
}, containerStyle,
|
|
6860
|
+
}, containerStyle, views == null ? void 0 : views.container), isShowIcon && iconComponent, /*#__PURE__*/React.createElement(Vertical, {
|
|
6877
6861
|
gap: 8,
|
|
6878
6862
|
width: "100%"
|
|
6879
6863
|
}, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
6880
6864
|
size: "md",
|
|
6881
6865
|
weight: "semiBold"
|
|
6882
|
-
},
|
|
6866
|
+
}, views == null ? void 0 : views.title), title), subtitle && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
6883
6867
|
size: "sm"
|
|
6884
|
-
},
|
|
6868
|
+
}, views == null ? void 0 : views.subtitle), subtitle))), isWithAction && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
6885
6869
|
marginRight: 10,
|
|
6886
6870
|
onClick: action,
|
|
6887
6871
|
padding: "6px 10px",
|
|
6888
6872
|
whiteSpace: "nowrap"
|
|
6889
|
-
}, containerStyle,
|
|
6873
|
+
}, containerStyle, views == null ? void 0 : views.actionText), actionText)), isClosable && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
6890
6874
|
position: "absolute",
|
|
6891
6875
|
zIndex: 10000,
|
|
6892
6876
|
right: 8,
|
|
@@ -6894,10 +6878,10 @@ var MessageView = _ref => {
|
|
|
6894
6878
|
onClick: () => {
|
|
6895
6879
|
hide();
|
|
6896
6880
|
}
|
|
6897
|
-
},
|
|
6898
|
-
|
|
6881
|
+
}, views == null || (_views$closingIcon = views.closingIcon) == null ? void 0 : _views$closingIcon.container), /*#__PURE__*/React.createElement(CloseIcon, Object.assign({
|
|
6882
|
+
widthHeight: 18,
|
|
6899
6883
|
color: iconColor
|
|
6900
|
-
},
|
|
6884
|
+
}, views == null || (_views$closingIcon2 = views.closingIcon) == null ? void 0 : _views$closingIcon2.icon)))));
|
|
6901
6885
|
};
|
|
6902
6886
|
|
|
6903
6887
|
var MessageLayout = _ref => {
|
|
@@ -6912,7 +6896,7 @@ var MessageLayout = _ref => {
|
|
|
6912
6896
|
variant,
|
|
6913
6897
|
subtitle,
|
|
6914
6898
|
isClosable,
|
|
6915
|
-
|
|
6899
|
+
views,
|
|
6916
6900
|
action,
|
|
6917
6901
|
actionText,
|
|
6918
6902
|
showIcon,
|
|
@@ -6944,7 +6928,7 @@ var MessageLayout = _ref => {
|
|
|
6944
6928
|
title: title,
|
|
6945
6929
|
theme: theme,
|
|
6946
6930
|
isClosable: isClosable,
|
|
6947
|
-
|
|
6931
|
+
views: views,
|
|
6948
6932
|
action: action,
|
|
6949
6933
|
actionText: actionText,
|
|
6950
6934
|
showIcon: showIcon,
|
|
@@ -7047,16 +7031,22 @@ var useUpload = _ref => {
|
|
|
7047
7031
|
handleClick
|
|
7048
7032
|
};
|
|
7049
7033
|
};
|
|
7050
|
-
|
|
7034
|
+
|
|
7035
|
+
var UploadView = _ref => {
|
|
7051
7036
|
var {
|
|
7052
|
-
accept
|
|
7037
|
+
accept,
|
|
7053
7038
|
isLoading = false,
|
|
7054
7039
|
progress = 0,
|
|
7055
7040
|
icon,
|
|
7056
7041
|
text,
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7042
|
+
previewUrl,
|
|
7043
|
+
thumbnailUrl,
|
|
7044
|
+
errorMessage,
|
|
7045
|
+
fileInputRef,
|
|
7046
|
+
videoRef,
|
|
7047
|
+
selectedFile,
|
|
7048
|
+
handleFileChange,
|
|
7049
|
+
handleClick,
|
|
7060
7050
|
containerProps,
|
|
7061
7051
|
errorMessageProps,
|
|
7062
7052
|
progressProps,
|
|
@@ -7064,74 +7054,75 @@ var Uploader = _ref2 => {
|
|
|
7064
7054
|
imageProps,
|
|
7065
7055
|
iconProps,
|
|
7066
7056
|
textProps,
|
|
7067
|
-
|
|
7057
|
+
fileType,
|
|
7058
|
+
previewUrl: externalPreviewUrl,
|
|
7059
|
+
renderError = _ref2 => {
|
|
7068
7060
|
var {
|
|
7069
7061
|
errorMessage,
|
|
7070
7062
|
errorMessageProps
|
|
7071
|
-
} =
|
|
7063
|
+
} = _ref2;
|
|
7072
7064
|
return /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7073
7065
|
color: "red",
|
|
7074
7066
|
fontSize: 12,
|
|
7075
7067
|
marginTop: 8
|
|
7076
7068
|
}, errorMessageProps), errorMessage);
|
|
7077
7069
|
},
|
|
7078
|
-
renderText =
|
|
7070
|
+
renderText = _ref3 => {
|
|
7079
7071
|
var {
|
|
7080
7072
|
text,
|
|
7081
7073
|
textProps
|
|
7082
|
-
} =
|
|
7074
|
+
} = _ref3;
|
|
7083
7075
|
return /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7084
7076
|
marginTop: 8
|
|
7085
7077
|
}, textProps), text);
|
|
7086
7078
|
},
|
|
7087
|
-
renderFile =
|
|
7079
|
+
renderFile = _ref4 => {
|
|
7088
7080
|
var {
|
|
7089
7081
|
selectedFile,
|
|
7090
7082
|
textProps
|
|
7091
|
-
} =
|
|
7092
|
-
return /*#__PURE__*/React.createElement(Center, {
|
|
7083
|
+
} = _ref4;
|
|
7084
|
+
return selectedFile ? (/*#__PURE__*/React.createElement(Center, {
|
|
7093
7085
|
marginTop: 8,
|
|
7094
7086
|
gap: 10,
|
|
7095
7087
|
flexDirection: "column"
|
|
7096
7088
|
}, /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7097
7089
|
maxLines: 2
|
|
7098
|
-
}, textProps), selectedFile.name), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, textProps), "(", Math.round(selectedFile.size / 1024), " KB)"));
|
|
7090
|
+
}, textProps), selectedFile.name), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, textProps), "(", Math.round(selectedFile.size / 1024), " KB)"))) : null;
|
|
7099
7091
|
},
|
|
7100
|
-
renderVideo =
|
|
7092
|
+
renderVideo = _ref5 => {
|
|
7101
7093
|
var {
|
|
7102
7094
|
selectedFile,
|
|
7103
7095
|
thumbnailUrl,
|
|
7104
7096
|
videoRef,
|
|
7105
7097
|
videoProps,
|
|
7106
7098
|
imageProps
|
|
7107
|
-
} =
|
|
7108
|
-
console.log('thumbnailUrl', thumbnailUrl);
|
|
7099
|
+
} = _ref5;
|
|
7109
7100
|
return /*#__PURE__*/React.createElement(View$1, {
|
|
7110
7101
|
width: "100%",
|
|
7111
7102
|
height: "100%",
|
|
7112
7103
|
position: "relative"
|
|
7113
7104
|
}, /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7114
7105
|
as: "video",
|
|
7115
|
-
width:
|
|
7116
|
-
height:
|
|
7117
|
-
src: selectedFile
|
|
7106
|
+
width: "100%",
|
|
7107
|
+
height: "100%",
|
|
7108
|
+
src: selectedFile ? URL.createObjectURL(selectedFile) : undefined,
|
|
7118
7109
|
style: {
|
|
7119
7110
|
objectFit: 'cover'
|
|
7120
7111
|
},
|
|
7121
7112
|
ref: videoRef
|
|
7122
|
-
}, videoProps)), /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
7113
|
+
}, videoProps)), thumbnailUrl && (/*#__PURE__*/React.createElement(Image, Object.assign({
|
|
7123
7114
|
src: thumbnailUrl,
|
|
7124
7115
|
alt: "Video Thumbnail",
|
|
7125
7116
|
width: "100%",
|
|
7126
7117
|
height: "100%",
|
|
7127
7118
|
objectFit: "cover"
|
|
7128
|
-
}, imageProps)));
|
|
7119
|
+
}, imageProps))));
|
|
7129
7120
|
},
|
|
7130
|
-
renderImage =
|
|
7121
|
+
renderImage = _ref6 => {
|
|
7131
7122
|
var {
|
|
7132
7123
|
previewUrl,
|
|
7133
7124
|
imageProps
|
|
7134
|
-
} =
|
|
7125
|
+
} = _ref6;
|
|
7135
7126
|
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
7136
7127
|
src: previewUrl,
|
|
7137
7128
|
alt: "Preview",
|
|
@@ -7140,11 +7131,11 @@ var Uploader = _ref2 => {
|
|
|
7140
7131
|
objectFit: "cover"
|
|
7141
7132
|
}, imageProps));
|
|
7142
7133
|
},
|
|
7143
|
-
renderProgress =
|
|
7134
|
+
renderProgress = _ref7 => {
|
|
7144
7135
|
var {
|
|
7145
7136
|
progress,
|
|
7146
7137
|
progressProps
|
|
7147
|
-
} =
|
|
7138
|
+
} = _ref7;
|
|
7148
7139
|
return /*#__PURE__*/React.createElement(Horizontal$1, Object.assign({
|
|
7149
7140
|
gap: 8,
|
|
7150
7141
|
alignItems: "center"
|
|
@@ -7156,28 +7147,14 @@ var Uploader = _ref2 => {
|
|
|
7156
7147
|
}, /*#__PURE__*/React.createElement(View$1, {
|
|
7157
7148
|
height: 4,
|
|
7158
7149
|
width: progress + "%",
|
|
7159
|
-
borderRadius: 2
|
|
7150
|
+
borderRadius: 2,
|
|
7151
|
+
backgroundColor: "#000"
|
|
7160
7152
|
})), /*#__PURE__*/React.createElement(Text$1, {
|
|
7161
7153
|
fontSize: 12
|
|
7162
7154
|
}, progress, "%"));
|
|
7163
7155
|
}
|
|
7164
|
-
} =
|
|
7165
|
-
var
|
|
7166
|
-
previewUrl,
|
|
7167
|
-
thumbnailUrl,
|
|
7168
|
-
errorMessage,
|
|
7169
|
-
videoRef,
|
|
7170
|
-
fileInputRef,
|
|
7171
|
-
selectedFile,
|
|
7172
|
-
handleFileChange,
|
|
7173
|
-
handleClick
|
|
7174
|
-
} = useUpload({
|
|
7175
|
-
accept,
|
|
7176
|
-
maxSize,
|
|
7177
|
-
onFileSelect,
|
|
7178
|
-
validateFile
|
|
7179
|
-
});
|
|
7180
|
-
var fileType = previewUrl && accept.includes('video') ? 'video' : previewUrl && accept.includes('image') ? 'image' : 'file';
|
|
7156
|
+
} = _ref;
|
|
7157
|
+
var finalPreviewUrl = externalPreviewUrl || previewUrl;
|
|
7181
7158
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
7182
7159
|
onClick: handleClick,
|
|
7183
7160
|
cursor: "pointer",
|
|
@@ -7187,26 +7164,27 @@ var Uploader = _ref2 => {
|
|
|
7187
7164
|
flexDirection: "column",
|
|
7188
7165
|
overflow: "hidden",
|
|
7189
7166
|
position: "relative"
|
|
7190
|
-
}, containerProps), progress
|
|
7191
|
-
previewUrl,
|
|
7167
|
+
}, containerProps), progress === 100 && fileType === 'image' && finalPreviewUrl && renderImage({
|
|
7168
|
+
previewUrl: finalPreviewUrl,
|
|
7192
7169
|
imageProps
|
|
7193
|
-
}), progress
|
|
7170
|
+
}), progress === 100 && fileType === 'video' && thumbnailUrl && renderVideo({
|
|
7171
|
+
selectedFile,
|
|
7194
7172
|
thumbnailUrl,
|
|
7195
7173
|
videoRef,
|
|
7196
7174
|
videoProps,
|
|
7197
|
-
|
|
7198
|
-
}), progress
|
|
7175
|
+
imageProps
|
|
7176
|
+
}), progress === 100 && fileType === 'file' && selectedFile && renderFile({
|
|
7199
7177
|
selectedFile,
|
|
7200
7178
|
textProps
|
|
7201
7179
|
}), progress < 100 && (icon || /*#__PURE__*/React.createElement(UploadIcon, Object.assign({
|
|
7202
|
-
|
|
7180
|
+
widthHeight: 32
|
|
7203
7181
|
}, iconProps))), !selectedFile && text && renderText({
|
|
7204
7182
|
text,
|
|
7205
7183
|
textProps
|
|
7206
7184
|
}), isLoading && renderProgress({
|
|
7207
7185
|
progress,
|
|
7208
7186
|
progressProps
|
|
7209
|
-
}), renderError({
|
|
7187
|
+
}), errorMessage && renderError({
|
|
7210
7188
|
errorMessage,
|
|
7211
7189
|
errorMessageProps
|
|
7212
7190
|
}), /*#__PURE__*/React.createElement(View$1, {
|
|
@@ -7221,6 +7199,54 @@ var Uploader = _ref2 => {
|
|
|
7221
7199
|
}));
|
|
7222
7200
|
};
|
|
7223
7201
|
|
|
7202
|
+
var _excluded$y = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
|
|
7203
|
+
var Uploader = _ref => {
|
|
7204
|
+
var {
|
|
7205
|
+
accept = '*/*',
|
|
7206
|
+
icon,
|
|
7207
|
+
text,
|
|
7208
|
+
maxSize,
|
|
7209
|
+
onFileSelect,
|
|
7210
|
+
validateFile,
|
|
7211
|
+
isLoading = false,
|
|
7212
|
+
progress = 0
|
|
7213
|
+
} = _ref,
|
|
7214
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
7215
|
+
var {
|
|
7216
|
+
previewUrl,
|
|
7217
|
+
thumbnailUrl,
|
|
7218
|
+
errorMessage,
|
|
7219
|
+
videoRef,
|
|
7220
|
+
fileInputRef,
|
|
7221
|
+
selectedFile,
|
|
7222
|
+
handleFileChange,
|
|
7223
|
+
handleClick
|
|
7224
|
+
} = useUpload({
|
|
7225
|
+
accept,
|
|
7226
|
+
maxSize,
|
|
7227
|
+
onFileSelect,
|
|
7228
|
+
validateFile
|
|
7229
|
+
});
|
|
7230
|
+
return /*#__PURE__*/React.createElement(UploadView, Object.assign({
|
|
7231
|
+
handleClick: handleClick,
|
|
7232
|
+
accept: accept,
|
|
7233
|
+
isLoading: isLoading,
|
|
7234
|
+
progress: progress,
|
|
7235
|
+
icon: icon,
|
|
7236
|
+
text: text,
|
|
7237
|
+
maxSize: maxSize,
|
|
7238
|
+
onFileSelect: onFileSelect,
|
|
7239
|
+
validateFile: validateFile,
|
|
7240
|
+
errorMessage: errorMessage,
|
|
7241
|
+
handleFileChange: handleFileChange,
|
|
7242
|
+
selectedFile: selectedFile,
|
|
7243
|
+
videoRef: videoRef,
|
|
7244
|
+
fileInputRef: fileInputRef,
|
|
7245
|
+
previewUrl: previewUrl,
|
|
7246
|
+
thumbnailUrl: thumbnailUrl
|
|
7247
|
+
}, props));
|
|
7248
|
+
};
|
|
7249
|
+
|
|
7224
7250
|
var useModalStore = /*#__PURE__*/create(set => ({
|
|
7225
7251
|
modals: [],
|
|
7226
7252
|
onHide: name => name,
|
|
@@ -7322,7 +7348,7 @@ var HeaderIconSizes = {
|
|
|
7322
7348
|
xl: 28
|
|
7323
7349
|
};
|
|
7324
7350
|
|
|
7325
|
-
var _excluded$
|
|
7351
|
+
var _excluded$z = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
7326
7352
|
_excluded2$7 = ["children", "shadow", "isFullScreen", "shape"],
|
|
7327
7353
|
_excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
7328
7354
|
_excluded4$3 = ["children"],
|
|
@@ -7336,7 +7362,7 @@ var ModalOverlay = _ref => {
|
|
|
7336
7362
|
onClose = () => {},
|
|
7337
7363
|
position = 'center'
|
|
7338
7364
|
} = _ref,
|
|
7339
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7365
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
7340
7366
|
var handleClick = () => {
|
|
7341
7367
|
if (!isClosePrevented) onClose();
|
|
7342
7368
|
};
|
|
@@ -7404,9 +7430,8 @@ var ModalHeader = _ref3 => {
|
|
|
7404
7430
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
7405
7431
|
var buttonIcon = /*#__PURE__*/React.createElement(Button, {
|
|
7406
7432
|
onClick: onClose,
|
|
7407
|
-
colorScheme: "transparent",
|
|
7408
7433
|
icon: /*#__PURE__*/React.createElement(CloseIcon, {
|
|
7409
|
-
|
|
7434
|
+
widthHeight: HeaderIconSizes[iconSize],
|
|
7410
7435
|
color: buttonColor
|
|
7411
7436
|
}),
|
|
7412
7437
|
padding: 0,
|
|
@@ -7506,13 +7531,13 @@ Modal.Layout = ModalLayout;
|
|
|
7506
7531
|
var defaultStyles = {};
|
|
7507
7532
|
// Create a context that includes both styles and the onClick function
|
|
7508
7533
|
var TableContext = /*#__PURE__*/React.createContext({
|
|
7509
|
-
|
|
7534
|
+
views: defaultStyles,
|
|
7510
7535
|
onRowClick: () => {}
|
|
7511
7536
|
});
|
|
7512
7537
|
var TableProvider = _ref => {
|
|
7513
7538
|
var {
|
|
7514
7539
|
children,
|
|
7515
|
-
|
|
7540
|
+
views = defaultStyles,
|
|
7516
7541
|
onRowClick
|
|
7517
7542
|
} = _ref;
|
|
7518
7543
|
return (
|
|
@@ -7520,7 +7545,7 @@ var TableProvider = _ref => {
|
|
|
7520
7545
|
// Pass both styles and onClick to the context
|
|
7521
7546
|
React.createElement(TableContext.Provider, {
|
|
7522
7547
|
value: {
|
|
7523
|
-
|
|
7548
|
+
views,
|
|
7524
7549
|
onRowClick
|
|
7525
7550
|
}
|
|
7526
7551
|
}, children)
|
|
@@ -7531,82 +7556,82 @@ var useTableContext = () => React.useContext(TableContext);
|
|
|
7531
7556
|
|
|
7532
7557
|
var TableContainer = props => {
|
|
7533
7558
|
var {
|
|
7534
|
-
|
|
7559
|
+
views
|
|
7535
7560
|
} = useTableContext();
|
|
7536
7561
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7537
7562
|
as: "table",
|
|
7538
7563
|
borderCollapse: "collapse"
|
|
7539
|
-
},
|
|
7564
|
+
}, views.table, props));
|
|
7540
7565
|
};
|
|
7541
7566
|
var TableHead = props => {
|
|
7542
7567
|
var {
|
|
7543
|
-
|
|
7568
|
+
views
|
|
7544
7569
|
} = useTableContext();
|
|
7545
7570
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7546
7571
|
as: "thead",
|
|
7547
7572
|
borderBottom: "0.5px solid #ddd",
|
|
7548
7573
|
textAlign: "left",
|
|
7549
7574
|
color: "color.gray.400"
|
|
7550
|
-
},
|
|
7575
|
+
}, views.thead, props));
|
|
7551
7576
|
};
|
|
7552
7577
|
var TableHeadCell = props => {
|
|
7553
7578
|
var {
|
|
7554
|
-
|
|
7579
|
+
views
|
|
7555
7580
|
} = useTableContext();
|
|
7556
7581
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7557
7582
|
as: "th",
|
|
7558
7583
|
padding: "14px",
|
|
7559
7584
|
whiteSpace: "nowrap",
|
|
7560
7585
|
fontWeight: "500"
|
|
7561
|
-
},
|
|
7586
|
+
}, views.th, props));
|
|
7562
7587
|
};
|
|
7563
7588
|
var TableRow = props => {
|
|
7564
7589
|
var {
|
|
7565
|
-
|
|
7590
|
+
views,
|
|
7566
7591
|
onRowClick
|
|
7567
7592
|
} = useTableContext();
|
|
7568
7593
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7569
7594
|
as: "tr"
|
|
7570
|
-
},
|
|
7595
|
+
}, views.tr, {
|
|
7571
7596
|
onClick: onRowClick
|
|
7572
7597
|
}, props));
|
|
7573
7598
|
};
|
|
7574
7599
|
var TableCell = props => {
|
|
7575
7600
|
var {
|
|
7576
|
-
|
|
7601
|
+
views
|
|
7577
7602
|
} = useTableContext();
|
|
7578
7603
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7579
7604
|
as: "td",
|
|
7580
7605
|
padding: "14px",
|
|
7581
7606
|
whiteSpace: "nowrap",
|
|
7582
7607
|
fontWeight: props.isFirstColumn ? '400' : '300'
|
|
7583
|
-
},
|
|
7608
|
+
}, views.td, props));
|
|
7584
7609
|
};
|
|
7585
7610
|
var TableBody = props => {
|
|
7586
7611
|
var {
|
|
7587
|
-
|
|
7612
|
+
views
|
|
7588
7613
|
} = useTableContext();
|
|
7589
7614
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7590
7615
|
as: "tbody"
|
|
7591
|
-
},
|
|
7616
|
+
}, views.tbody, props));
|
|
7592
7617
|
};
|
|
7593
7618
|
var TableFooter = props => {
|
|
7594
7619
|
var {
|
|
7595
|
-
|
|
7620
|
+
views
|
|
7596
7621
|
} = useTableContext();
|
|
7597
7622
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7598
7623
|
as: "tfoot"
|
|
7599
|
-
},
|
|
7624
|
+
}, views.tfoot, props));
|
|
7600
7625
|
};
|
|
7601
7626
|
var TableCaption = props => {
|
|
7602
7627
|
var {
|
|
7603
|
-
|
|
7628
|
+
views
|
|
7604
7629
|
} = useTableContext();
|
|
7605
7630
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7606
7631
|
as: "caption",
|
|
7607
7632
|
margin: '10px 0',
|
|
7608
7633
|
color: "color.gray.400"
|
|
7609
|
-
},
|
|
7634
|
+
}, views.caption, props));
|
|
7610
7635
|
};
|
|
7611
7636
|
var TableView = _ref => {
|
|
7612
7637
|
var {
|
|
@@ -7632,11 +7657,11 @@ var TableView = _ref => {
|
|
|
7632
7657
|
var Table = _ref => {
|
|
7633
7658
|
var {
|
|
7634
7659
|
children,
|
|
7635
|
-
|
|
7660
|
+
views,
|
|
7636
7661
|
onClick
|
|
7637
7662
|
} = _ref;
|
|
7638
7663
|
return /*#__PURE__*/React.createElement(TableProvider, {
|
|
7639
|
-
|
|
7664
|
+
views: views,
|
|
7640
7665
|
onRowClick: onClick
|
|
7641
7666
|
}, children);
|
|
7642
7667
|
};
|
|
@@ -7650,90 +7675,147 @@ Table.Caption = TableCaption;
|
|
|
7650
7675
|
Table.Container = TableContainer;
|
|
7651
7676
|
Table.Template = TableView;
|
|
7652
7677
|
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7678
|
+
/**
|
|
7679
|
+
* Custom hook to manage the state of the active tab.
|
|
7680
|
+
* @param propTabs - The array of tab objects provided as props.
|
|
7681
|
+
* @param initialTabValue - The optional title of the tab to be initially active.
|
|
7682
|
+
* @returns An object containing the current activeTab and a function to update it.
|
|
7683
|
+
*/
|
|
7684
|
+
var useTabsState = (propTabs, initialTabValue) => {
|
|
7685
|
+
// Find the initial tab based on initialTabValue, or default to the first tab.
|
|
7686
|
+
// Ensure propTabs is not empty before accessing index 0.
|
|
7687
|
+
var findInitialTab = () => {
|
|
7688
|
+
if (!propTabs || propTabs.length === 0) {
|
|
7689
|
+
return undefined; // No tabs, no initial active tab
|
|
7690
|
+
}
|
|
7691
|
+
if (initialTabValue !== undefined) {
|
|
7692
|
+
var foundTab = propTabs.find(tab => tab.title === initialTabValue);
|
|
7693
|
+
if (foundTab) {
|
|
7694
|
+
return foundTab;
|
|
7695
|
+
}
|
|
7696
|
+
// Warn if initialTabValue is provided but not found
|
|
7697
|
+
console.warn("Tabs: initialTabValue \"" + initialTabValue + "\" not found in tabs. Defaulting to the first tab.");
|
|
7698
|
+
}
|
|
7699
|
+
return propTabs[0]; // Default to the first tab
|
|
7700
|
+
};
|
|
7701
|
+
var [activeTab, setActiveTab] = useState(findInitialTab);
|
|
7702
|
+
// Effect to update the active tab if the initialTabValue prop changes
|
|
7703
|
+
// or if the tabs array changes and the current active tab is no longer valid.
|
|
7704
|
+
useEffect(() => {
|
|
7705
|
+
var newInitialTab = findInitialTab();
|
|
7706
|
+
// Update only if the calculated initial tab is different from the current active tab
|
|
7707
|
+
// or if the current active tab is no longer in the list (and there are tabs)
|
|
7708
|
+
var currentActiveTabStillValid = activeTab && propTabs.some(t => t.title === activeTab.title);
|
|
7709
|
+
if (newInitialTab && (!currentActiveTabStillValid || initialTabValue !== undefined && (activeTab == null ? void 0 : activeTab.title) !== initialTabValue)) {
|
|
7710
|
+
setActiveTab(newInitialTab);
|
|
7711
|
+
} else if (!newInitialTab && activeTab) {
|
|
7712
|
+
// Handle case where all tabs are removed
|
|
7713
|
+
setActiveTab(undefined);
|
|
7714
|
+
}
|
|
7715
|
+
}, [propTabs, initialTabValue]); // Rerun when tabs or initial title changes
|
|
7657
7716
|
return {
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
tabsState,
|
|
7661
|
-
setTabsState
|
|
7717
|
+
activeTab,
|
|
7718
|
+
setActiveTab
|
|
7662
7719
|
};
|
|
7663
7720
|
};
|
|
7664
7721
|
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7722
|
+
/**
|
|
7723
|
+
* The presentation component for Tabs. Renders the UI based on props.
|
|
7724
|
+
*/
|
|
7725
|
+
var TabsView = _ref => {
|
|
7726
|
+
var {
|
|
7727
|
+
tabs = [],
|
|
7728
|
+
// Default to empty array
|
|
7729
|
+
activeTab,
|
|
7730
|
+
handleTabClick,
|
|
7731
|
+
views = {},
|
|
7732
|
+
// Default to empty object
|
|
7675
7733
|
renderTab,
|
|
7676
7734
|
renderContent
|
|
7677
|
-
} =
|
|
7678
|
-
//
|
|
7679
|
-
|
|
7680
|
-
//
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
//
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7735
|
+
} = _ref;
|
|
7736
|
+
// If there's no active tab (e.g., tabs array is empty), render nothing or a placeholder
|
|
7737
|
+
if (!activeTab) {
|
|
7738
|
+
// Optionally render a placeholder when no tabs are active/available
|
|
7739
|
+
// return <View {...views.container}><Text>No tabs available.</Text></View>;
|
|
7740
|
+
return null; // Or simply render nothing
|
|
7741
|
+
}
|
|
7742
|
+
return (
|
|
7743
|
+
/*#__PURE__*/
|
|
7744
|
+
// Use Vertical layout for overall structure (tabs header above content)
|
|
7745
|
+
React.createElement(Vertical, Object.assign({
|
|
7746
|
+
width: "100%",
|
|
7747
|
+
height: '100%'
|
|
7748
|
+
}, views.container), /*#__PURE__*/React.createElement(Horizontal, Object.assign({}, views.headerTabs), tabs.map(tab => {
|
|
7749
|
+
// Determine if the current tab in the loop is the active one
|
|
7750
|
+
var isActive = tab.title === activeTab.title;
|
|
7751
|
+
// Prepare the onClick handler for this specific tab
|
|
7752
|
+
var onClick = () => handleTabClick(tab);
|
|
7753
|
+
// Use the custom renderTab function if provided
|
|
7754
|
+
if (renderTab) {
|
|
7755
|
+
return renderTab(tab, isActive, onClick);
|
|
7756
|
+
}
|
|
7757
|
+
// Default rendering for a tab button
|
|
7758
|
+
return /*#__PURE__*/React.createElement(Button, Object.assign({
|
|
7759
|
+
key: tab.title,
|
|
7760
|
+
onClick: onClick,
|
|
7761
|
+
borderBottomLeftRadius: 0,
|
|
7762
|
+
borderBottomRightRadius: 0
|
|
7763
|
+
}, views.tab, isActive ? views.activeTab : {}, {
|
|
7764
|
+
// Example: Set variant based on active state (can be overridden by styles)
|
|
7765
|
+
variant: isActive ? 'filled' : 'ghost',
|
|
7766
|
+
cursor: "pointer" // Ensure pointer cursor
|
|
7767
|
+
}), tab.icon, /*#__PURE__*/React.createElement(Text
|
|
7768
|
+
// Apply base title styles and merge activeText styles if this tab is active
|
|
7769
|
+
, Object.assign({}, views.title, isActive ? views.activeText : {}), tab.title));
|
|
7770
|
+
})), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
7771
|
+
width: '100%',
|
|
7772
|
+
height: "100%"
|
|
7773
|
+
}, views.content), renderContent ? renderContent(activeTab) :
|
|
7774
|
+
// Otherwise, render the content property from the active tab object
|
|
7775
|
+
activeTab.content))
|
|
7776
|
+
);
|
|
7715
7777
|
};
|
|
7716
7778
|
|
|
7779
|
+
/**
|
|
7780
|
+
* Tabs component allows users to navigate between different sections of content.
|
|
7781
|
+
* It manages the active tab state and renders the corresponding content.
|
|
7782
|
+
*/
|
|
7717
7783
|
var TabsComponent = _ref => {
|
|
7718
7784
|
var {
|
|
7719
7785
|
tabs,
|
|
7720
|
-
|
|
7786
|
+
views,
|
|
7787
|
+
initialTabValue,
|
|
7788
|
+
onTabChange,
|
|
7789
|
+
renderTab,
|
|
7790
|
+
renderContent
|
|
7721
7791
|
} = _ref;
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7792
|
+
// Use the custom hook to manage the active tab state
|
|
7793
|
+
var {
|
|
7794
|
+
activeTab,
|
|
7795
|
+
setActiveTab
|
|
7796
|
+
} = useTabsState(tabs, initialTabValue);
|
|
7797
|
+
// Handler function to change the active tab and trigger the callback
|
|
7798
|
+
var handleTabClick = tab => {
|
|
7799
|
+
// Only update state and call callback if the clicked tab is different from the current one
|
|
7800
|
+
if ((activeTab == null ? void 0 : activeTab.title) !== tab.title) {
|
|
7801
|
+
setActiveTab(tab);
|
|
7802
|
+
// Call the onTabChange callback if provided
|
|
7803
|
+
if (onTabChange) {
|
|
7804
|
+
onTabChange(tab);
|
|
7805
|
+
}
|
|
7806
|
+
}
|
|
7807
|
+
};
|
|
7808
|
+
// Render the presentation component with the necessary props
|
|
7728
7809
|
return /*#__PURE__*/React.createElement(TabsView, {
|
|
7729
7810
|
tabs: tabs,
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7811
|
+
views: views,
|
|
7812
|
+
activeTab: activeTab,
|
|
7813
|
+
handleTabClick: handleTabClick,
|
|
7814
|
+
renderTab: renderTab,
|
|
7815
|
+
renderContent: renderContent
|
|
7735
7816
|
});
|
|
7736
7817
|
};
|
|
7818
|
+
// Export the component wrapped in React.memo for performance optimization
|
|
7737
7819
|
var Tabs = /*#__PURE__*/React.memo(TabsComponent);
|
|
7738
7820
|
|
|
7739
7821
|
// Declares the useToggleState function which takes defaultToggled parameter to initialize the toggle state.
|
|
@@ -7751,18 +7833,11 @@ var useToggleState = defaultToggled => {
|
|
|
7751
7833
|
};
|
|
7752
7834
|
};
|
|
7753
7835
|
|
|
7754
|
-
var
|
|
7755
|
-
sharp: 0,
|
|
7756
|
-
rounded: 4,
|
|
7757
|
-
pillShaped: 24
|
|
7758
|
-
};
|
|
7759
|
-
|
|
7760
|
-
var _excluded$z = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
7836
|
+
var _excluded$A = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
7761
7837
|
var ToggleView = _ref => {
|
|
7762
7838
|
var {
|
|
7763
7839
|
children,
|
|
7764
7840
|
shape = 'rounded',
|
|
7765
|
-
colorScheme = 'color.trueGray.400',
|
|
7766
7841
|
variant = 'ghost',
|
|
7767
7842
|
isHovered,
|
|
7768
7843
|
setIsHovered,
|
|
@@ -7771,14 +7846,14 @@ var ToggleView = _ref => {
|
|
|
7771
7846
|
setIsToggled,
|
|
7772
7847
|
onToggle
|
|
7773
7848
|
} = _ref,
|
|
7774
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7775
|
-
var toggleColor = !isDisabled ?
|
|
7849
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
7850
|
+
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
7776
7851
|
var isActive = !!(isToggle || isHovered);
|
|
7777
|
-
var
|
|
7852
|
+
var toggleVariants = {
|
|
7778
7853
|
outline: {
|
|
7779
7854
|
borderWidth: 1,
|
|
7780
7855
|
borderStyle: 'solid',
|
|
7781
|
-
borderColor:
|
|
7856
|
+
borderColor: 'color.trueGray.400'
|
|
7782
7857
|
},
|
|
7783
7858
|
link: {
|
|
7784
7859
|
borderWidth: 1,
|
|
@@ -7808,25 +7883,24 @@ var ToggleView = _ref => {
|
|
|
7808
7883
|
onMouseEnter: () => setIsHovered(true),
|
|
7809
7884
|
onMouseLeave: () => setIsHovered(false),
|
|
7810
7885
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
7811
|
-
borderRadius:
|
|
7886
|
+
borderRadius: shape === 'pillShaped' ? '50px' : '8px',
|
|
7812
7887
|
onClick: handleToggle
|
|
7813
|
-
},
|
|
7888
|
+
}, toggleVariants[variant], props), children);
|
|
7814
7889
|
};
|
|
7815
7890
|
|
|
7816
|
-
var _excluded$
|
|
7891
|
+
var _excluded$B = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
7817
7892
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
7818
7893
|
var ToggleComponent = _ref => {
|
|
7819
7894
|
var {
|
|
7820
7895
|
children,
|
|
7821
7896
|
shape,
|
|
7822
|
-
colorScheme,
|
|
7823
7897
|
variant,
|
|
7824
7898
|
isDisabled,
|
|
7825
7899
|
// Assigning a default value of false to the isToggled property if none is provided.
|
|
7826
7900
|
isToggled = false,
|
|
7827
7901
|
onToggle
|
|
7828
7902
|
} = _ref,
|
|
7829
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7903
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
7830
7904
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
7831
7905
|
var {
|
|
7832
7906
|
isHovered,
|
|
@@ -7841,7 +7915,6 @@ var ToggleComponent = _ref => {
|
|
|
7841
7915
|
// Beginning of the JSX block to render the Toggle view component.
|
|
7842
7916
|
return /*#__PURE__*/React.createElement(ToggleView, Object.assign({
|
|
7843
7917
|
shape: shape,
|
|
7844
|
-
colorScheme: colorScheme,
|
|
7845
7918
|
variant: variant,
|
|
7846
7919
|
isDisabled: isDisabled,
|
|
7847
7920
|
isHovered: isHovered,
|
|
@@ -7876,9 +7949,7 @@ var ToggleGroupView = _ref => {
|
|
|
7876
7949
|
// Prop 'shape' with default value 'rounded', determines the shape of the toggle buttons.
|
|
7877
7950
|
shape = 'rounded',
|
|
7878
7951
|
// Prop 'variant' with default value 'ghost' represents the visual style variant of the toggles.
|
|
7879
|
-
variant = 'ghost'
|
|
7880
|
-
// Prop 'colorScheme' with default value 'color.trueGray.400' sets the color theme for toggles.
|
|
7881
|
-
colorScheme = 'color.trueGray.400'
|
|
7952
|
+
variant = 'ghost'
|
|
7882
7953
|
} = _ref;
|
|
7883
7954
|
// handleToggle is a memoized callback that handles the toggle state changes.
|
|
7884
7955
|
var handleToggle = useCallback((id, isActive) => {
|
|
@@ -7900,7 +7971,6 @@ var ToggleGroupView = _ref => {
|
|
|
7900
7971
|
}, items.map(item => (/*#__PURE__*/React.createElement(Toggle, {
|
|
7901
7972
|
role: "toggle-" + item.id,
|
|
7902
7973
|
key: item.id,
|
|
7903
|
-
colorScheme: colorScheme,
|
|
7904
7974
|
shape: shape,
|
|
7905
7975
|
variant: variant,
|
|
7906
7976
|
isToggled: activeToggles.includes(item.id) || item.isActive,
|
|
@@ -7916,8 +7986,6 @@ var ToggleGroupComponent = _ref => {
|
|
|
7916
7986
|
items,
|
|
7917
7987
|
// Destructure 'shape' prop to define the shape of the toggle buttons
|
|
7918
7988
|
shape,
|
|
7919
|
-
// Destructure 'colorScheme' prop for toggle button styling
|
|
7920
|
-
colorScheme,
|
|
7921
7989
|
// Destructure 'variant' prop to determine the visual style of the toggle group
|
|
7922
7990
|
variant,
|
|
7923
7991
|
// Destructure 'onToggleChange' prop for the callback when toggle state changes
|
|
@@ -7931,7 +7999,6 @@ var ToggleGroupComponent = _ref => {
|
|
|
7931
7999
|
return /*#__PURE__*/React.createElement(ToggleGroupView, {
|
|
7932
8000
|
items: items,
|
|
7933
8001
|
shape: shape,
|
|
7934
|
-
colorScheme: colorScheme,
|
|
7935
8002
|
variant: variant,
|
|
7936
8003
|
activeToggles: activeToggles,
|
|
7937
8004
|
setActiveToggles: setActiveToggles,
|
|
@@ -8070,5 +8137,5 @@ var DragAndDropComponent = props => {
|
|
|
8070
8137
|
};
|
|
8071
8138
|
var DragAndDrop = DragAndDropComponent;
|
|
8072
8139
|
|
|
8073
|
-
export { Alert, ArrowIcon, AspectRatio, Avatar, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Bottom, Button, CalendarIcon, CameraIcon, Center, CenterBase, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ComboBox, CopyIcon, CountryPicker, DatePicker, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DustBinIcon, EditIcon, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FormikCheckbox, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikPassword, FormikSelect, FormikSwitch, FormikTextArea, FormikTextField, HeartIcon, HomeIcon, Horizontal, HorizontalBase, Icon, ImageIcon, InfoIcon, Inline, InstagramIcon, Left, LikeIcon, Link, LinkedinIcon, Loader, LocationIcon, LockIcon, MenuIcon, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NotificationIcon, OpenEyeIcon, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PrintIcon, ProfileIcon, RefreshIcon, Right, SaveIcon, SearchIcon, Select, SettingsIcon, ShareIcon, SpinnerIcon, StarIcon, SuccessIcon, Switch, Table, Tabs, Text, TextArea, TextField, ThreadsIcon, TickIcon, Toggle, ToggleGroup, Top, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, Vertical, VerticalBase, VideoIcon, View, WarningIcon, WifiIcon, XIcon, YoutubeIcon,
|
|
8140
|
+
export { Alert, ArrowIcon, AspectRatio, Avatar, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Bottom, Button, CalendarIcon, CameraIcon, Center, CenterBase, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ComboBox, CopyIcon, CountryPicker, DatePicker, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DustBinIcon, EditIcon, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FormikCheckbox, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikPassword, FormikSelect, FormikSwitch, FormikTextArea, FormikTextField, HeartIcon, HomeIcon, Horizontal, HorizontalBase, Icon, ImageIcon, InfoIcon, Inline, InstagramIcon, Left, LikeIcon, Link, LinkedinIcon, Loader, LocationIcon, LockIcon, MenuIcon, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NotificationIcon, OpenEyeIcon, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PrintIcon, ProfileIcon, RefreshIcon, Right, SaveIcon, SearchIcon, Select, SettingsIcon, ShareIcon, SpinnerIcon, StarIcon, SuccessIcon, Switch, Table, Tabs, Text, TextArea, TextField, ThreadsIcon, TickIcon, Toggle, ToggleGroup, Top, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, Vertical, VerticalBase, VideoIcon, View, WarningIcon, WifiIcon, XIcon, YoutubeIcon, hideMessage, hideModal, showMessage, showModal, useMessageStore, useModalStore };
|
|
8074
8141
|
//# sourceMappingURL=web.esm.js.map
|