@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
|
@@ -300,7 +300,7 @@ var IconWrapper = _ref => {
|
|
|
300
300
|
} = _ref,
|
|
301
301
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
302
302
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
303
|
-
|
|
303
|
+
widthHeight: size,
|
|
304
304
|
lineHeight: size,
|
|
305
305
|
color: color,
|
|
306
306
|
display: "flex",
|
|
@@ -327,7 +327,7 @@ var ChevronIcon = _ref2 => {
|
|
|
327
327
|
} = _ref2,
|
|
328
328
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
329
329
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
330
|
-
|
|
330
|
+
widthHeight: size,
|
|
331
331
|
color: color
|
|
332
332
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
333
333
|
viewBox: "0 0 24 24",
|
|
@@ -346,7 +346,7 @@ var DragHandleIcon = _ref3 => {
|
|
|
346
346
|
} = _ref3,
|
|
347
347
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
348
348
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
349
|
-
|
|
349
|
+
widthHeight: size,
|
|
350
350
|
color: color
|
|
351
351
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
352
352
|
viewBox: "0 0 24 24",
|
|
@@ -388,7 +388,7 @@ var FileIcon = _ref4 => {
|
|
|
388
388
|
} = _ref4,
|
|
389
389
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
390
390
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
391
|
-
|
|
391
|
+
widthHeight: size,
|
|
392
392
|
color: color
|
|
393
393
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
394
394
|
viewBox: "0 0 24 24",
|
|
@@ -416,7 +416,7 @@ var VideoIcon = _ref5 => {
|
|
|
416
416
|
} = _ref5,
|
|
417
417
|
props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
418
418
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
419
|
-
|
|
419
|
+
widthHeight: size,
|
|
420
420
|
color: color
|
|
421
421
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
422
422
|
viewBox: "0 0 24 24",
|
|
@@ -449,7 +449,7 @@ var ImageIcon = _ref6 => {
|
|
|
449
449
|
} = _ref6,
|
|
450
450
|
props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
|
|
451
451
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
452
|
-
|
|
452
|
+
widthHeight: size,
|
|
453
453
|
color: color
|
|
454
454
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
455
455
|
viewBox: "0 0 24 24",
|
|
@@ -488,7 +488,7 @@ var TwitterIcon = _ref7 => {
|
|
|
488
488
|
} = _ref7,
|
|
489
489
|
props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
490
490
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
491
|
-
|
|
491
|
+
widthHeight: size,
|
|
492
492
|
color: color
|
|
493
493
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
494
494
|
viewBox: "0 0 24 24",
|
|
@@ -510,7 +510,7 @@ var XIcon = _ref8 => {
|
|
|
510
510
|
} = _ref8,
|
|
511
511
|
props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
|
|
512
512
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
513
|
-
|
|
513
|
+
widthHeight: size,
|
|
514
514
|
color: color
|
|
515
515
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
516
516
|
viewBox: "0 0 24 24",
|
|
@@ -533,7 +533,7 @@ var TwitchIcon = _ref9 => {
|
|
|
533
533
|
} = _ref9,
|
|
534
534
|
props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
|
|
535
535
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
536
|
-
|
|
536
|
+
widthHeight: size,
|
|
537
537
|
color: color
|
|
538
538
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
539
539
|
viewBox: "0 0 24 24",
|
|
@@ -561,7 +561,7 @@ var CloseIcon = _ref10 => {
|
|
|
561
561
|
} = _ref10,
|
|
562
562
|
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
563
563
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
564
|
-
|
|
564
|
+
widthHeight: size,
|
|
565
565
|
color: color
|
|
566
566
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
567
567
|
viewBox: "0 0 24 24",
|
|
@@ -590,7 +590,7 @@ var InstagramIcon = _ref11 => {
|
|
|
590
590
|
} = _ref11,
|
|
591
591
|
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
592
592
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
593
|
-
|
|
593
|
+
widthHeight: size,
|
|
594
594
|
color: color
|
|
595
595
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
596
596
|
viewBox: "0 0 24 24",
|
|
@@ -621,7 +621,7 @@ var YoutubeIcon = _ref12 => {
|
|
|
621
621
|
} = _ref12,
|
|
622
622
|
props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
623
623
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
624
|
-
|
|
624
|
+
widthHeight: size,
|
|
625
625
|
color: color
|
|
626
626
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
627
627
|
viewBox: "0 0 24 24",
|
|
@@ -649,7 +649,7 @@ var FacebookIcon = _ref13 => {
|
|
|
649
649
|
} = _ref13,
|
|
650
650
|
props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
651
651
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
652
|
-
|
|
652
|
+
widthHeight: size,
|
|
653
653
|
color: color
|
|
654
654
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
655
655
|
viewBox: "0 0 24 24",
|
|
@@ -671,7 +671,7 @@ var LinkedinIcon = _ref14 => {
|
|
|
671
671
|
} = _ref14,
|
|
672
672
|
props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
|
|
673
673
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
674
|
-
|
|
674
|
+
widthHeight: size,
|
|
675
675
|
color: color
|
|
676
676
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
677
677
|
viewBox: "0 0 24 24"
|
|
@@ -697,7 +697,7 @@ var ThreadsIcon = _ref15 => {
|
|
|
697
697
|
} = _ref15,
|
|
698
698
|
props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
|
|
699
699
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
700
|
-
|
|
700
|
+
widthHeight: size,
|
|
701
701
|
color: color
|
|
702
702
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
703
703
|
viewBox: "0 0 24 24"
|
|
@@ -720,7 +720,7 @@ var MinusIcon = _ref16 => {
|
|
|
720
720
|
} = _ref16,
|
|
721
721
|
props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
|
|
722
722
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
723
|
-
|
|
723
|
+
widthHeight: size,
|
|
724
724
|
color: color
|
|
725
725
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
726
726
|
viewBox: "0 0 24 24",
|
|
@@ -744,7 +744,7 @@ var InfoIcon = _ref17 => {
|
|
|
744
744
|
} = _ref17,
|
|
745
745
|
props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
|
|
746
746
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
747
|
-
|
|
747
|
+
widthHeight: size,
|
|
748
748
|
color: color
|
|
749
749
|
}, props, {
|
|
750
750
|
"aria-label": "Information"
|
|
@@ -765,7 +765,7 @@ var PlayIcon = _ref18 => {
|
|
|
765
765
|
} = _ref18,
|
|
766
766
|
props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
|
|
767
767
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
768
|
-
|
|
768
|
+
widthHeight: size,
|
|
769
769
|
color: color
|
|
770
770
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
771
771
|
viewBox: "0 0 24 24",
|
|
@@ -784,7 +784,7 @@ var PauseIcon = _ref19 => {
|
|
|
784
784
|
} = _ref19,
|
|
785
785
|
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
786
786
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
787
|
-
|
|
787
|
+
widthHeight: size,
|
|
788
788
|
color: color
|
|
789
789
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
790
790
|
viewBox: "0 0 24 24",
|
|
@@ -803,7 +803,7 @@ var HeartIcon = _ref20 => {
|
|
|
803
803
|
} = _ref20,
|
|
804
804
|
props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
|
|
805
805
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
806
|
-
|
|
806
|
+
widthHeight: size,
|
|
807
807
|
color: color
|
|
808
808
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
809
809
|
viewBox: "0 0 24 24",
|
|
@@ -822,7 +822,7 @@ var StarIcon = _ref21 => {
|
|
|
822
822
|
} = _ref21,
|
|
823
823
|
props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
|
|
824
824
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
825
|
-
|
|
825
|
+
widthHeight: size,
|
|
826
826
|
color: color
|
|
827
827
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
828
828
|
viewBox: "0 0 24 24",
|
|
@@ -841,7 +841,7 @@ var SaveIcon = _ref22 => {
|
|
|
841
841
|
} = _ref22,
|
|
842
842
|
props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
|
|
843
843
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
844
|
-
|
|
844
|
+
widthHeight: size,
|
|
845
845
|
color: color
|
|
846
846
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
847
847
|
viewBox: "0 0 24 24",
|
|
@@ -864,7 +864,7 @@ var WarningIcon = _ref23 => {
|
|
|
864
864
|
} = _ref23,
|
|
865
865
|
props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
|
|
866
866
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
867
|
-
|
|
867
|
+
widthHeight: size,
|
|
868
868
|
color: color
|
|
869
869
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
870
870
|
viewBox: "0 0 24 24",
|
|
@@ -895,7 +895,7 @@ var BatteryIcon = _ref24 => {
|
|
|
895
895
|
} = _ref24,
|
|
896
896
|
props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
|
|
897
897
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
898
|
-
|
|
898
|
+
widthHeight: size,
|
|
899
899
|
color: color
|
|
900
900
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
901
901
|
viewBox: "0 0 24 24",
|
|
@@ -914,7 +914,7 @@ var BookmarkIcon = _ref25 => {
|
|
|
914
914
|
} = _ref25,
|
|
915
915
|
props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
|
|
916
916
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
917
|
-
|
|
917
|
+
widthHeight: size,
|
|
918
918
|
color: color
|
|
919
919
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
920
920
|
viewBox: "0 0 24 24",
|
|
@@ -933,7 +933,7 @@ var CloudIcon = _ref26 => {
|
|
|
933
933
|
} = _ref26,
|
|
934
934
|
props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
|
|
935
935
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
936
|
-
|
|
936
|
+
widthHeight: size,
|
|
937
937
|
color: color
|
|
938
938
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
939
939
|
viewBox: "0 0 24 24",
|
|
@@ -952,7 +952,7 @@ var CopyIcon = _ref27 => {
|
|
|
952
952
|
} = _ref27,
|
|
953
953
|
props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
|
|
954
954
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
955
|
-
|
|
955
|
+
widthHeight: size,
|
|
956
956
|
color: color
|
|
957
957
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
958
958
|
viewBox: "0 0 24 24",
|
|
@@ -978,7 +978,7 @@ var DustBinIcon = _ref28 => {
|
|
|
978
978
|
} = _ref28,
|
|
979
979
|
props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
|
|
980
980
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
981
|
-
|
|
981
|
+
widthHeight: size,
|
|
982
982
|
color: color
|
|
983
983
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
984
984
|
viewBox: "0 0 24 24",
|
|
@@ -997,7 +997,7 @@ var EditIcon = _ref29 => {
|
|
|
997
997
|
} = _ref29,
|
|
998
998
|
props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
|
|
999
999
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1000
|
-
|
|
1000
|
+
widthHeight: size,
|
|
1001
1001
|
color: color
|
|
1002
1002
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1003
1003
|
viewBox: "0 0 24 24",
|
|
@@ -1016,7 +1016,7 @@ var ErrorIcon = _ref30 => {
|
|
|
1016
1016
|
} = _ref30,
|
|
1017
1017
|
props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
|
|
1018
1018
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1019
|
-
|
|
1019
|
+
widthHeight: size,
|
|
1020
1020
|
color: color
|
|
1021
1021
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1022
1022
|
viewBox: "0 0 24 24",
|
|
@@ -1049,7 +1049,7 @@ var DownloadIcon = _ref31 => {
|
|
|
1049
1049
|
} = _ref31,
|
|
1050
1050
|
props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
|
|
1051
1051
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1052
|
-
|
|
1052
|
+
widthHeight: size,
|
|
1053
1053
|
color: color
|
|
1054
1054
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1055
1055
|
viewBox: "0 0 24 24",
|
|
@@ -1068,7 +1068,7 @@ var MenuIcon = _ref32 => {
|
|
|
1068
1068
|
} = _ref32,
|
|
1069
1069
|
props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
|
|
1070
1070
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1071
|
-
|
|
1071
|
+
widthHeight: size,
|
|
1072
1072
|
color: color
|
|
1073
1073
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1074
1074
|
viewBox: "0 0 24 24",
|
|
@@ -1103,7 +1103,7 @@ var ShareIcon = _ref33 => {
|
|
|
1103
1103
|
} = _ref33,
|
|
1104
1104
|
props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
|
|
1105
1105
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1106
|
-
|
|
1106
|
+
widthHeight: size,
|
|
1107
1107
|
color: color
|
|
1108
1108
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1109
1109
|
viewBox: "0 0 24 24",
|
|
@@ -1144,7 +1144,7 @@ var RefreshIcon = _ref34 => {
|
|
|
1144
1144
|
} = _ref34,
|
|
1145
1145
|
props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
|
|
1146
1146
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1147
|
-
|
|
1147
|
+
widthHeight: size,
|
|
1148
1148
|
color: color
|
|
1149
1149
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1150
1150
|
viewBox: "0 0 24 24",
|
|
@@ -1165,7 +1165,7 @@ var PrintIcon = _ref35 => {
|
|
|
1165
1165
|
} = _ref35,
|
|
1166
1166
|
props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
|
|
1167
1167
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1168
|
-
|
|
1168
|
+
widthHeight: size,
|
|
1169
1169
|
color: color
|
|
1170
1170
|
}, props), /*#__PURE__*/React__default.createElement("svg", {
|
|
1171
1171
|
viewBox: "0 0 24 24",
|
|
@@ -1185,7 +1185,7 @@ var PanelIcon = _ref36 => {
|
|
|
1185
1185
|
} = _ref36,
|
|
1186
1186
|
props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
|
|
1187
1187
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1188
|
-
|
|
1188
|
+
widthHeight: size,
|
|
1189
1189
|
color: color
|
|
1190
1190
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1191
1191
|
viewBox: "0 0 24 24",
|
|
@@ -1256,7 +1256,7 @@ var FilterIcon = _ref37 => {
|
|
|
1256
1256
|
} = _ref37,
|
|
1257
1257
|
props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
|
|
1258
1258
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1259
|
-
|
|
1259
|
+
widthHeight: size,
|
|
1260
1260
|
color: color
|
|
1261
1261
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1262
1262
|
viewBox: "0 0 24 24",
|
|
@@ -1275,7 +1275,7 @@ var HomeIcon = _ref38 => {
|
|
|
1275
1275
|
} = _ref38,
|
|
1276
1276
|
props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
|
|
1277
1277
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1278
|
-
|
|
1278
|
+
widthHeight: size,
|
|
1279
1279
|
color: color
|
|
1280
1280
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1281
1281
|
viewBox: "0 0 24 24",
|
|
@@ -1294,7 +1294,7 @@ var LocationIcon = _ref39 => {
|
|
|
1294
1294
|
} = _ref39,
|
|
1295
1295
|
props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
|
|
1296
1296
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1297
|
-
|
|
1297
|
+
widthHeight: size,
|
|
1298
1298
|
color: color
|
|
1299
1299
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1300
1300
|
viewBox: "0 0 24 24",
|
|
@@ -1313,7 +1313,7 @@ var LockIcon = _ref40 => {
|
|
|
1313
1313
|
} = _ref40,
|
|
1314
1314
|
props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
|
|
1315
1315
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1316
|
-
|
|
1316
|
+
widthHeight: size,
|
|
1317
1317
|
color: color
|
|
1318
1318
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1319
1319
|
viewBox: "0 0 24 24",
|
|
@@ -1339,7 +1339,7 @@ var MicrophoneIcon = _ref41 => {
|
|
|
1339
1339
|
} = _ref41,
|
|
1340
1340
|
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1341
1341
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1342
|
-
|
|
1342
|
+
widthHeight: size,
|
|
1343
1343
|
color: color
|
|
1344
1344
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1345
1345
|
viewBox: "0 0 24 24",
|
|
@@ -1372,7 +1372,7 @@ var MoonIcon = _ref42 => {
|
|
|
1372
1372
|
} = _ref42,
|
|
1373
1373
|
props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
|
|
1374
1374
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1375
|
-
|
|
1375
|
+
widthHeight: size,
|
|
1376
1376
|
color: color
|
|
1377
1377
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1378
1378
|
viewBox: "0 0 24 24",
|
|
@@ -1391,7 +1391,7 @@ var NotificationIcon = _ref43 => {
|
|
|
1391
1391
|
} = _ref43,
|
|
1392
1392
|
props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
|
|
1393
1393
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1394
|
-
|
|
1394
|
+
widthHeight: size,
|
|
1395
1395
|
color: color
|
|
1396
1396
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1397
1397
|
viewBox: "0 0 24 24",
|
|
@@ -1412,7 +1412,7 @@ var OpenEyeIcon = _ref44 => {
|
|
|
1412
1412
|
} = _ref44,
|
|
1413
1413
|
props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
|
|
1414
1414
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1415
|
-
|
|
1415
|
+
widthHeight: size,
|
|
1416
1416
|
color: color
|
|
1417
1417
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1418
1418
|
viewBox: "0 0 24 24",
|
|
@@ -1431,7 +1431,7 @@ var ProfileIcon = _ref45 => {
|
|
|
1431
1431
|
} = _ref45,
|
|
1432
1432
|
props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
|
|
1433
1433
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1434
|
-
|
|
1434
|
+
widthHeight: size,
|
|
1435
1435
|
color: color
|
|
1436
1436
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1437
1437
|
viewBox: "0 0 24 24",
|
|
@@ -1451,7 +1451,7 @@ var SettingsIcon = _ref46 => {
|
|
|
1451
1451
|
} = _ref46,
|
|
1452
1452
|
props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
|
|
1453
1453
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1454
|
-
|
|
1454
|
+
widthHeight: size,
|
|
1455
1455
|
color: color
|
|
1456
1456
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1457
1457
|
viewBox: "0 0 24 24",
|
|
@@ -1470,7 +1470,7 @@ var SuccessIcon = _ref47 => {
|
|
|
1470
1470
|
} = _ref47,
|
|
1471
1471
|
props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
|
|
1472
1472
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1473
|
-
|
|
1473
|
+
widthHeight: size,
|
|
1474
1474
|
color: color
|
|
1475
1475
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1476
1476
|
viewBox: "0 0 24 24",
|
|
@@ -1489,7 +1489,7 @@ var UnLikeIcon = _ref48 => {
|
|
|
1489
1489
|
} = _ref48,
|
|
1490
1490
|
props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
|
|
1491
1491
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1492
|
-
|
|
1492
|
+
widthHeight: size,
|
|
1493
1493
|
color: color
|
|
1494
1494
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1495
1495
|
viewBox: "0 0 24 24",
|
|
@@ -1508,7 +1508,7 @@ var ClockIcon = _ref49 => {
|
|
|
1508
1508
|
} = _ref49,
|
|
1509
1509
|
props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
|
|
1510
1510
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1511
|
-
|
|
1511
|
+
widthHeight: size,
|
|
1512
1512
|
color: color
|
|
1513
1513
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1514
1514
|
viewBox: "0 0 24 24",
|
|
@@ -1531,7 +1531,7 @@ var CameraIcon = _ref50 => {
|
|
|
1531
1531
|
} = _ref50,
|
|
1532
1532
|
props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
|
|
1533
1533
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1534
|
-
|
|
1534
|
+
widthHeight: size,
|
|
1535
1535
|
color: color
|
|
1536
1536
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1537
1537
|
viewBox: "0 0 24 24",
|
|
@@ -1554,7 +1554,7 @@ var BluetoothIcon = _ref51 => {
|
|
|
1554
1554
|
} = _ref51,
|
|
1555
1555
|
props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
|
|
1556
1556
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1557
|
-
|
|
1557
|
+
widthHeight: size,
|
|
1558
1558
|
color: color
|
|
1559
1559
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1560
1560
|
viewBox: "0 0 24 24",
|
|
@@ -1573,7 +1573,7 @@ var LikeIcon = _ref52 => {
|
|
|
1573
1573
|
} = _ref52,
|
|
1574
1574
|
props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
|
|
1575
1575
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1576
|
-
|
|
1576
|
+
widthHeight: size,
|
|
1577
1577
|
color: color
|
|
1578
1578
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1579
1579
|
viewBox: "0 0 24 24",
|
|
@@ -1592,7 +1592,7 @@ var UnlockIcon = _ref53 => {
|
|
|
1592
1592
|
} = _ref53,
|
|
1593
1593
|
props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
|
|
1594
1594
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1595
|
-
|
|
1595
|
+
widthHeight: size,
|
|
1596
1596
|
color: color
|
|
1597
1597
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1598
1598
|
viewBox: "0 0 24 24",
|
|
@@ -1618,7 +1618,7 @@ var WifiIcon = _ref54 => {
|
|
|
1618
1618
|
} = _ref54,
|
|
1619
1619
|
props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
|
|
1620
1620
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1621
|
-
|
|
1621
|
+
widthHeight: size,
|
|
1622
1622
|
color: color
|
|
1623
1623
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1624
1624
|
viewBox: "0 0 24 24",
|
|
@@ -1637,7 +1637,7 @@ var UploadIcon = _ref55 => {
|
|
|
1637
1637
|
} = _ref55,
|
|
1638
1638
|
props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
|
|
1639
1639
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1640
|
-
|
|
1640
|
+
widthHeight: size,
|
|
1641
1641
|
color: color
|
|
1642
1642
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1643
1643
|
viewBox: "0 0 24 24",
|
|
@@ -1660,7 +1660,7 @@ var SearchIcon = _ref56 => {
|
|
|
1660
1660
|
} = _ref56,
|
|
1661
1661
|
props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
|
|
1662
1662
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1663
|
-
|
|
1663
|
+
widthHeight: size,
|
|
1664
1664
|
color: color
|
|
1665
1665
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1666
1666
|
viewBox: "0 0 24 24",
|
|
@@ -1679,7 +1679,7 @@ var CloseEyeIcon = _ref57 => {
|
|
|
1679
1679
|
} = _ref57,
|
|
1680
1680
|
props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
|
|
1681
1681
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1682
|
-
|
|
1682
|
+
widthHeight: size,
|
|
1683
1683
|
color: color
|
|
1684
1684
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1685
1685
|
viewBox: "0 0 24 24",
|
|
@@ -1699,7 +1699,7 @@ var ExternalLinkIcon = _ref58 => {
|
|
|
1699
1699
|
} = _ref58,
|
|
1700
1700
|
props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
|
|
1701
1701
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1702
|
-
|
|
1702
|
+
widthHeight: size,
|
|
1703
1703
|
color: color
|
|
1704
1704
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1705
1705
|
viewBox: "0 0 24 24",
|
|
@@ -1718,7 +1718,7 @@ var PlusIcon = _ref59 => {
|
|
|
1718
1718
|
} = _ref59,
|
|
1719
1719
|
props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
|
|
1720
1720
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1721
|
-
|
|
1721
|
+
widthHeight: size,
|
|
1722
1722
|
color: color
|
|
1723
1723
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1724
1724
|
viewBox: "0 0 24 24",
|
|
@@ -1747,7 +1747,7 @@ var TickIcon = _ref60 => {
|
|
|
1747
1747
|
} = _ref60,
|
|
1748
1748
|
props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
|
|
1749
1749
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1750
|
-
|
|
1750
|
+
widthHeight: size,
|
|
1751
1751
|
color: color
|
|
1752
1752
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1753
1753
|
viewBox: "0 0 24 24",
|
|
@@ -1768,7 +1768,7 @@ var BoldArrowIcon = _ref61 => {
|
|
|
1768
1768
|
} = _ref61,
|
|
1769
1769
|
props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
|
|
1770
1770
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1771
|
-
|
|
1771
|
+
widthHeight: size,
|
|
1772
1772
|
color: color
|
|
1773
1773
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1774
1774
|
viewBox: "0 0 24 24",
|
|
@@ -1787,7 +1787,7 @@ var ArrowIcon = _ref62 => {
|
|
|
1787
1787
|
} = _ref62,
|
|
1788
1788
|
props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
|
|
1789
1789
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1790
|
-
|
|
1790
|
+
widthHeight: size,
|
|
1791
1791
|
color: color
|
|
1792
1792
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1793
1793
|
viewBox: "0 0 24 24",
|
|
@@ -1812,7 +1812,7 @@ var SpinnerIcon = _ref63 => {
|
|
|
1812
1812
|
} = _ref63,
|
|
1813
1813
|
props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
|
|
1814
1814
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1815
|
-
|
|
1815
|
+
widthHeight: size,
|
|
1816
1816
|
color: color
|
|
1817
1817
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1818
1818
|
viewBox: "0 0 24 24",
|
|
@@ -1837,7 +1837,7 @@ var CalendarIcon = _ref64 => {
|
|
|
1837
1837
|
} = _ref64,
|
|
1838
1838
|
props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
|
|
1839
1839
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1840
|
-
|
|
1840
|
+
widthHeight: size,
|
|
1841
1841
|
color: color
|
|
1842
1842
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1843
1843
|
viewBox: "0 0 24 24",
|
|
@@ -1938,7 +1938,7 @@ var Icon = {
|
|
|
1938
1938
|
CalendarIcon: CalendarIcon
|
|
1939
1939
|
};
|
|
1940
1940
|
|
|
1941
|
-
// Define a constant object 'Themes' exporting various theme
|
|
1941
|
+
// Define a constant object 'Themes' exporting various theme views.
|
|
1942
1942
|
var Themes = {
|
|
1943
1943
|
// Start of the 'default' theme definition with style properties.
|
|
1944
1944
|
default: {
|
|
@@ -1951,7 +1951,7 @@ var Themes = {
|
|
|
1951
1951
|
color: 'color.blackAlpha.800'
|
|
1952
1952
|
}
|
|
1953
1953
|
},
|
|
1954
|
-
// The 'info' theme with unique container and content
|
|
1954
|
+
// The 'info' theme with unique container and content views.
|
|
1955
1955
|
info: {
|
|
1956
1956
|
container: {
|
|
1957
1957
|
backgroundColor: 'color.blue.200',
|
|
@@ -1962,7 +1962,7 @@ var Themes = {
|
|
|
1962
1962
|
color: '#60a5fa'
|
|
1963
1963
|
}
|
|
1964
1964
|
},
|
|
1965
|
-
// Specifies the 'success' theme with corresponding container and content
|
|
1965
|
+
// Specifies the 'success' theme with corresponding container and content views.
|
|
1966
1966
|
success: {
|
|
1967
1967
|
container: {
|
|
1968
1968
|
backgroundColor: 'color.green.200',
|
|
@@ -1973,7 +1973,7 @@ var Themes = {
|
|
|
1973
1973
|
color: '#22c55e'
|
|
1974
1974
|
}
|
|
1975
1975
|
},
|
|
1976
|
-
// Start of the 'error' theme with its characteristic
|
|
1976
|
+
// Start of the 'error' theme with its characteristic views.
|
|
1977
1977
|
error: {
|
|
1978
1978
|
container: {
|
|
1979
1979
|
backgroundColor: 'color.red.200',
|
|
@@ -1984,7 +1984,7 @@ var Themes = {
|
|
|
1984
1984
|
color: '#ef4444'
|
|
1985
1985
|
}
|
|
1986
1986
|
},
|
|
1987
|
-
// Introduction of the 'warning' theme
|
|
1987
|
+
// Introduction of the 'warning' theme views.
|
|
1988
1988
|
warning: {
|
|
1989
1989
|
container: {
|
|
1990
1990
|
backgroundColor: 'color.orange.200',
|
|
@@ -1999,11 +1999,11 @@ var Themes = {
|
|
|
1999
1999
|
|
|
2000
2000
|
// Defines AlertView as a functional component using destructuring to extract props.
|
|
2001
2001
|
var AlertView = _ref => {
|
|
2002
|
-
var
|
|
2002
|
+
var _views$icon$color;
|
|
2003
2003
|
var {
|
|
2004
2004
|
icon,
|
|
2005
2005
|
title,
|
|
2006
|
-
|
|
2006
|
+
views,
|
|
2007
2007
|
description,
|
|
2008
2008
|
// Sets a default variant prop to 'default' if none is provided.
|
|
2009
2009
|
variant = 'default'
|
|
@@ -2015,20 +2015,20 @@ var AlertView = _ref => {
|
|
|
2015
2015
|
borderStyle: "solid",
|
|
2016
2016
|
padding: 16,
|
|
2017
2017
|
flexWrap: "nowrap"
|
|
2018
|
-
},
|
|
2018
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(View, {
|
|
2019
2019
|
alignSelf: 'center'
|
|
2020
2020
|
}, icon ? icon : (/*#__PURE__*/React__default.createElement(WarningIcon, {
|
|
2021
2021
|
size: 24,
|
|
2022
|
-
color: (
|
|
2022
|
+
color: (_views$icon$color = views == null ? void 0 : views.icon.color) != null ? _views$icon$color : Themes[variant].content.color
|
|
2023
2023
|
}))), /*#__PURE__*/React__default.createElement(Vertical, {
|
|
2024
2024
|
gap: 10
|
|
2025
2025
|
}, /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2026
2026
|
fontSize: "16px",
|
|
2027
2027
|
color: Themes[variant].content.color
|
|
2028
|
-
},
|
|
2028
|
+
}, views == null ? void 0 : views.title), title), /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2029
2029
|
fontSize: "14px",
|
|
2030
2030
|
color: Themes[variant].content.color
|
|
2031
|
-
},
|
|
2031
|
+
}, views == null ? void 0 : views.description), description)));
|
|
2032
2032
|
};
|
|
2033
2033
|
|
|
2034
2034
|
// Definition of the AlertComponent functional component with destructured props.
|
|
@@ -2036,14 +2036,14 @@ var AlertComponent = _ref => {
|
|
|
2036
2036
|
var {
|
|
2037
2037
|
icon,
|
|
2038
2038
|
title,
|
|
2039
|
-
|
|
2039
|
+
views,
|
|
2040
2040
|
description,
|
|
2041
2041
|
variant
|
|
2042
2042
|
} = _ref;
|
|
2043
2043
|
return /*#__PURE__*/React__default.createElement(AlertView, {
|
|
2044
2044
|
icon: icon,
|
|
2045
2045
|
title: title,
|
|
2046
|
-
|
|
2046
|
+
views: views,
|
|
2047
2047
|
description: description,
|
|
2048
2048
|
variant: variant
|
|
2049
2049
|
});
|
|
@@ -2117,7 +2117,7 @@ var AvatarView = _ref => {
|
|
|
2117
2117
|
src,
|
|
2118
2118
|
size = 'md',
|
|
2119
2119
|
fallback = 'IM',
|
|
2120
|
-
|
|
2120
|
+
views,
|
|
2121
2121
|
imageError,
|
|
2122
2122
|
setImageError,
|
|
2123
2123
|
onClick = () => {}
|
|
@@ -2127,7 +2127,7 @@ var AvatarView = _ref => {
|
|
|
2127
2127
|
// Initiates a style object for the image with an objectFit property and spreads additional image styles if provided.
|
|
2128
2128
|
var imageStyle = Object.assign({
|
|
2129
2129
|
objectFit: 'cover'
|
|
2130
|
-
}, (
|
|
2130
|
+
}, (views == null ? void 0 : views.image) || {});
|
|
2131
2131
|
// Start of the JSX returned by the AvatarView component, which uses the Center component as its root element.
|
|
2132
2132
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
2133
2133
|
role: "avatar",
|
|
@@ -2140,7 +2140,7 @@ var AvatarView = _ref => {
|
|
|
2140
2140
|
borderColor: imageError ? 'black' : 'transparent',
|
|
2141
2141
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
|
|
2142
2142
|
onClick: onClick
|
|
2143
|
-
},
|
|
2143
|
+
}, views == null ? void 0 : views.container), !imageError ? (/*#__PURE__*/React__default.createElement(appStudio.Image, {
|
|
2144
2144
|
alt: "IM",
|
|
2145
2145
|
src: src,
|
|
2146
2146
|
style: imageStyle,
|
|
@@ -2149,7 +2149,7 @@ var AvatarView = _ref => {
|
|
|
2149
2149
|
onError: () => setImageError(true)
|
|
2150
2150
|
})) : (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2151
2151
|
size: size
|
|
2152
|
-
},
|
|
2152
|
+
}, views == null ? void 0 : views.fallback), fallback)));
|
|
2153
2153
|
};
|
|
2154
2154
|
|
|
2155
2155
|
// Defines the AvatarComponent functional component with destructured props from AvatarProps type.
|
|
@@ -2157,7 +2157,7 @@ var AvatarComponent = _ref => {
|
|
|
2157
2157
|
var {
|
|
2158
2158
|
src,
|
|
2159
2159
|
size,
|
|
2160
|
-
|
|
2160
|
+
views,
|
|
2161
2161
|
fallback,
|
|
2162
2162
|
onClick
|
|
2163
2163
|
} = _ref;
|
|
@@ -2170,7 +2170,7 @@ var AvatarComponent = _ref => {
|
|
|
2170
2170
|
return /*#__PURE__*/React__default.createElement(AvatarView, {
|
|
2171
2171
|
src: src,
|
|
2172
2172
|
size: size,
|
|
2173
|
-
|
|
2173
|
+
views: views,
|
|
2174
2174
|
fallback: fallback,
|
|
2175
2175
|
imageError: imageError,
|
|
2176
2176
|
setImageError: setImageError,
|
|
@@ -2241,17 +2241,16 @@ var BadgeView = _ref => {
|
|
|
2241
2241
|
var {
|
|
2242
2242
|
// Declaring the functional component BadgeView with BadgeProps as its type for props.
|
|
2243
2243
|
content,
|
|
2244
|
-
// Destructuring props with default values for shape,
|
|
2244
|
+
// Destructuring props with default values for shape, variant, size, and views.
|
|
2245
2245
|
position,
|
|
2246
2246
|
shape = 'pillShaped',
|
|
2247
|
-
colorScheme = 'theme.primary',
|
|
2248
2247
|
variant = 'filled',
|
|
2249
2248
|
size = 'md',
|
|
2250
|
-
|
|
2249
|
+
views
|
|
2251
2250
|
} = _ref;
|
|
2252
2251
|
var BadgeVariants = {
|
|
2253
2252
|
filled: {
|
|
2254
|
-
backgroundColor:
|
|
2253
|
+
backgroundColor: 'theme.primary',
|
|
2255
2254
|
color: 'color.white',
|
|
2256
2255
|
borderWidth: 1,
|
|
2257
2256
|
borderStyle: 'solid',
|
|
@@ -2262,23 +2261,23 @@ var BadgeView = _ref => {
|
|
|
2262
2261
|
backgroundColor: 'transparent',
|
|
2263
2262
|
borderWidth: 1,
|
|
2264
2263
|
borderStyle: 'solid',
|
|
2265
|
-
borderColor:
|
|
2266
|
-
color:
|
|
2264
|
+
borderColor: 'theme.primary',
|
|
2265
|
+
color: 'theme.primary'
|
|
2267
2266
|
},
|
|
2268
2267
|
link: {
|
|
2269
2268
|
backgroundColor: 'transparent',
|
|
2270
2269
|
// Rendering the Badge component using the Center layout component with combinedStyles applied.
|
|
2271
2270
|
borderWidth: 1,
|
|
2272
|
-
// Inserting a Text component into the badge to display the content, with dynamic size and additional text
|
|
2271
|
+
// Inserting a Text component into the badge to display the content, with dynamic size and additional text views.
|
|
2273
2272
|
borderStyle: 'solid',
|
|
2274
2273
|
borderColor: 'transparent',
|
|
2275
|
-
color:
|
|
2274
|
+
color: 'theme.primary',
|
|
2276
2275
|
// Exporting BadgeView to be used in other parts of the application.
|
|
2277
2276
|
textDecoration: 'underline'
|
|
2278
2277
|
},
|
|
2279
2278
|
ghost: {
|
|
2280
2279
|
backgroundColor: 'transparent',
|
|
2281
|
-
color:
|
|
2280
|
+
color: 'color.trueGray.400',
|
|
2282
2281
|
borderWidth: 1,
|
|
2283
2282
|
borderStyle: 'solid',
|
|
2284
2283
|
borderColor: 'transparent'
|
|
@@ -2287,13 +2286,13 @@ var BadgeView = _ref => {
|
|
|
2287
2286
|
var combinedStyles = Object.assign({
|
|
2288
2287
|
width: 'fit-content',
|
|
2289
2288
|
borderRadius: BadgeShapes[shape]
|
|
2290
|
-
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {},
|
|
2289
|
+
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
|
|
2291
2290
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
2292
2291
|
role: "badge"
|
|
2293
2292
|
}, combinedStyles), /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2294
2293
|
role: "badgeText",
|
|
2295
2294
|
size: size
|
|
2296
|
-
},
|
|
2295
|
+
}, views == null ? void 0 : views.text), content));
|
|
2297
2296
|
};
|
|
2298
2297
|
|
|
2299
2298
|
// Importing type definitions for BadgeProps that will be used to type-check the Badge component's props.
|
|
@@ -2304,22 +2303,19 @@ var Badge = _ref => {
|
|
|
2304
2303
|
// Exporting the Badge as a functional component from this module.
|
|
2305
2304
|
shape,
|
|
2306
2305
|
// Destructuring the props in the component function parameter list, to directly access individual properties.
|
|
2307
|
-
colorScheme,
|
|
2308
|
-
// The functional component Badge is implicitly returning the BadgeView component.
|
|
2309
2306
|
position,
|
|
2310
2307
|
// Passing all the destructured props to the BadgeView component to maintain the same API surface.
|
|
2311
2308
|
variant,
|
|
2312
2309
|
size,
|
|
2313
|
-
|
|
2310
|
+
views
|
|
2314
2311
|
} = _ref;
|
|
2315
2312
|
return /*#__PURE__*/React__default.createElement(BadgeView, {
|
|
2316
2313
|
content: content,
|
|
2317
2314
|
shape: shape,
|
|
2318
|
-
colorScheme: colorScheme,
|
|
2319
2315
|
position: position,
|
|
2320
2316
|
variant: variant,
|
|
2321
2317
|
size: size,
|
|
2322
|
-
|
|
2318
|
+
views: views
|
|
2323
2319
|
});
|
|
2324
2320
|
};
|
|
2325
2321
|
|
|
@@ -2358,7 +2354,7 @@ var IconSizes = {
|
|
|
2358
2354
|
'6xl': 64
|
|
2359
2355
|
};
|
|
2360
2356
|
|
|
2361
|
-
var _excluded$7 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "
|
|
2357
|
+
var _excluded$7 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
|
|
2362
2358
|
// Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
|
|
2363
2359
|
var LinkView = _ref => {
|
|
2364
2360
|
var {
|
|
@@ -2374,7 +2370,7 @@ var LinkView = _ref => {
|
|
|
2374
2370
|
// Boolean indicating if the link leads to an external resource.
|
|
2375
2371
|
isExternal = false,
|
|
2376
2372
|
// Custom styles for the icon and text, provided via a styles object.
|
|
2377
|
-
|
|
2373
|
+
views = {
|
|
2378
2374
|
icon: {},
|
|
2379
2375
|
text: {}
|
|
2380
2376
|
},
|
|
@@ -2393,12 +2389,12 @@ var LinkView = _ref => {
|
|
|
2393
2389
|
onMouseEnter: handleHover,
|
|
2394
2390
|
onMouseLeave: handleHover,
|
|
2395
2391
|
textDecoration: isHovered || underline === 'underline' ? 'underline !important' : 'none'
|
|
2396
|
-
},
|
|
2392
|
+
}, views.text, props), /*#__PURE__*/React__default.createElement(Horizontal, {
|
|
2397
2393
|
gap: 3,
|
|
2398
2394
|
alignItems: "center",
|
|
2399
2395
|
flexWrap: "nowrap"
|
|
2400
2396
|
}, children, isExternal && /*#__PURE__*/React__default.createElement(ExternalLinkIcon, {
|
|
2401
|
-
|
|
2397
|
+
widthHeight: IconSizes[iconSize]
|
|
2402
2398
|
}))));
|
|
2403
2399
|
};
|
|
2404
2400
|
|
|
@@ -2713,7 +2709,7 @@ React__default.createElement(LoaderView, Object.assign({}, props)));
|
|
|
2713
2709
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
2714
2710
|
var Loader = LoaderComponent;
|
|
2715
2711
|
|
|
2716
|
-
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "
|
|
2712
|
+
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"];
|
|
2717
2713
|
var contrast = /*#__PURE__*/require('contrast');
|
|
2718
2714
|
var ButtonView = _ref => {
|
|
2719
2715
|
var _props$onClick;
|
|
@@ -2739,7 +2735,6 @@ var ButtonView = _ref => {
|
|
|
2739
2735
|
variant = 'filled',
|
|
2740
2736
|
iconPosition = 'left',
|
|
2741
2737
|
// Defines CSS properties for 'filled' variant of the button with conditional styles based on reverse state.
|
|
2742
|
-
colorScheme = 'theme.primary',
|
|
2743
2738
|
shape = 'rounded',
|
|
2744
2739
|
onClick = () => {},
|
|
2745
2740
|
loaderProps = {},
|
|
@@ -2763,7 +2758,7 @@ var ButtonView = _ref => {
|
|
|
2763
2758
|
var defaultNativeProps = {
|
|
2764
2759
|
disabled: !isActive
|
|
2765
2760
|
};
|
|
2766
|
-
var buttonColor = isActive ?
|
|
2761
|
+
var buttonColor = isActive ? 'theme.primary' : 'theme.disabled';
|
|
2767
2762
|
var hovering = isHovered && effect === 'hover';
|
|
2768
2763
|
var reverse = isHovered && effect === 'reverse';
|
|
2769
2764
|
var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
|
|
@@ -2781,7 +2776,7 @@ var ButtonView = _ref => {
|
|
|
2781
2776
|
// Defines CSS properties for 'ghost' variant of the button with conditional styles based on reverse state.
|
|
2782
2777
|
borderWidth: 1,
|
|
2783
2778
|
borderStyle: 'solid',
|
|
2784
|
-
borderColor: reverse ? buttonColor :
|
|
2779
|
+
borderColor: reverse ? buttonColor : 'theme.primary',
|
|
2785
2780
|
// Fetches size-specific styles from ButtonSizes based on the 'size' prop.
|
|
2786
2781
|
color: reverse ? 'white' : buttonColor
|
|
2787
2782
|
},
|
|
@@ -2839,8 +2834,7 @@ var ButtonView = _ref => {
|
|
|
2839
2834
|
transform: 'translateY(-5px)'
|
|
2840
2835
|
} : {}, 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__default.createElement(Link, Object.assign({
|
|
2841
2836
|
to: to,
|
|
2842
|
-
textDecorationColor:
|
|
2843
|
-
colorScheme: colorScheme,
|
|
2837
|
+
textDecorationColor: 'theme.primary',
|
|
2844
2838
|
isExternal: isExternal
|
|
2845
2839
|
}, linkProps), content)) : content);
|
|
2846
2840
|
};
|
|
@@ -2877,8 +2871,7 @@ var _excluded$a = ["src", "color", "themeMode"],
|
|
|
2877
2871
|
var FileSVG = _ref => {
|
|
2878
2872
|
var {
|
|
2879
2873
|
src,
|
|
2880
|
-
color
|
|
2881
|
-
themeMode: elementMode
|
|
2874
|
+
color
|
|
2882
2875
|
} = _ref,
|
|
2883
2876
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2884
2877
|
var {
|
|
@@ -2886,8 +2879,12 @@ var FileSVG = _ref => {
|
|
|
2886
2879
|
themeMode
|
|
2887
2880
|
} = appStudio.useTheme();
|
|
2888
2881
|
var Colorprops = color ? {
|
|
2889
|
-
fill: getColor(color,
|
|
2890
|
-
|
|
2882
|
+
fill: getColor(color, {
|
|
2883
|
+
themeMode
|
|
2884
|
+
}),
|
|
2885
|
+
stroke: getColor(color, {
|
|
2886
|
+
themeMode
|
|
2887
|
+
})
|
|
2891
2888
|
} : {};
|
|
2892
2889
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({}, props), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({}, Colorprops, {
|
|
2893
2890
|
content: 'url("' + src + '")',
|
|
@@ -2950,11 +2947,11 @@ var useItemState = () => {
|
|
|
2950
2947
|
};
|
|
2951
2948
|
};
|
|
2952
2949
|
|
|
2953
|
-
var _excluded$b = ["children", "
|
|
2950
|
+
var _excluded$b = ["children", "views"];
|
|
2954
2951
|
var HelperText = _ref => {
|
|
2955
2952
|
var {
|
|
2956
2953
|
children,
|
|
2957
|
-
|
|
2954
|
+
views = {
|
|
2958
2955
|
helperText: {}
|
|
2959
2956
|
}
|
|
2960
2957
|
} = _ref,
|
|
@@ -2964,22 +2961,22 @@ var HelperText = _ref => {
|
|
|
2964
2961
|
marginVertical: 0,
|
|
2965
2962
|
marginHorizontal: 0,
|
|
2966
2963
|
color: 'theme.text.dark'
|
|
2967
|
-
},
|
|
2964
|
+
}, views['helperText'], props), children);
|
|
2968
2965
|
};
|
|
2969
2966
|
|
|
2970
|
-
var _excluded$c = ["children", "helperText", "error", "
|
|
2967
|
+
var _excluded$c = ["children", "helperText", "error", "views"];
|
|
2971
2968
|
var FieldContainer = _ref => {
|
|
2972
2969
|
var {
|
|
2973
2970
|
children,
|
|
2974
2971
|
helperText,
|
|
2975
2972
|
error = false,
|
|
2976
|
-
|
|
2973
|
+
views
|
|
2977
2974
|
} = _ref,
|
|
2978
2975
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
2979
2976
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
2980
2977
|
gap: 5,
|
|
2981
2978
|
position: "relative"
|
|
2982
|
-
}, props), children, !error && helperText && /*#__PURE__*/React__default.createElement(HelperText, Object.assign({},
|
|
2979
|
+
}, props), children, !error && helperText && /*#__PURE__*/React__default.createElement(HelperText, Object.assign({}, views), helperText), error && (/*#__PURE__*/React__default.createElement(Text, {
|
|
2983
2980
|
size: "xs",
|
|
2984
2981
|
marginVertical: 0,
|
|
2985
2982
|
marginHorizontal: 0,
|
|
@@ -3034,7 +3031,7 @@ var PaddingWithoutLabel = {
|
|
|
3034
3031
|
paddingRight: 16
|
|
3035
3032
|
};
|
|
3036
3033
|
|
|
3037
|
-
var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "
|
|
3034
|
+
var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
3038
3035
|
var FieldContent = _ref => {
|
|
3039
3036
|
var {
|
|
3040
3037
|
shadow,
|
|
@@ -3048,14 +3045,13 @@ var FieldContent = _ref => {
|
|
|
3048
3045
|
isHovered = false,
|
|
3049
3046
|
isDisabled = false,
|
|
3050
3047
|
isReadOnly = false,
|
|
3051
|
-
|
|
3052
|
-
styles = {
|
|
3048
|
+
views = {
|
|
3053
3049
|
pickerBox: {}
|
|
3054
3050
|
}
|
|
3055
3051
|
} = _ref,
|
|
3056
3052
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3057
3053
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
3058
|
-
var color = error ? 'error' : isInteractive ?
|
|
3054
|
+
var color = error ? 'error' : isInteractive ? 'theme.primary' : 'midgray';
|
|
3059
3055
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
3060
3056
|
gap: 10,
|
|
3061
3057
|
width: "100%",
|
|
@@ -3071,7 +3067,7 @@ var FieldContent = _ref => {
|
|
|
3071
3067
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
3072
3068
|
// filter={isHovered ? 'brightness(1)':'brightness(0.97)'}
|
|
3073
3069
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
3074
|
-
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant],
|
|
3070
|
+
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
3075
3071
|
};
|
|
3076
3072
|
|
|
3077
3073
|
var _excluded$e = ["children"];
|
|
@@ -3119,13 +3115,13 @@ var HeadingSizes$1 = {
|
|
|
3119
3115
|
},
|
|
3120
3116
|
h5: {
|
|
3121
3117
|
fontSize: 24,
|
|
3122
|
-
// Set the 'h5' heading tag
|
|
3118
|
+
// Set the 'h5' heading tag views, opting for no additional letter spacing.
|
|
3123
3119
|
lineHeight: 28,
|
|
3124
3120
|
letterSpacing: 0
|
|
3125
3121
|
},
|
|
3126
3122
|
h6: {
|
|
3127
3123
|
fontSize: 20,
|
|
3128
|
-
// Set the 'h6' heading tag
|
|
3124
|
+
// Set the 'h6' heading tag views, with the smallest font size and a subtle letter spacing.
|
|
3129
3125
|
lineHeight: 24,
|
|
3130
3126
|
letterSpacing: 0.15
|
|
3131
3127
|
}
|
|
@@ -3179,14 +3175,14 @@ React__default.createElement(LabelView, Object.assign({}, props))
|
|
|
3179
3175
|
var Label = LabelComponent;
|
|
3180
3176
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
3181
3177
|
|
|
3182
|
-
var _excluded$g = ["children", "size", "error", "color", "
|
|
3178
|
+
var _excluded$g = ["children", "size", "error", "color", "views", "helperText"];
|
|
3183
3179
|
var FieldLabel = _ref => {
|
|
3184
3180
|
var {
|
|
3185
3181
|
children,
|
|
3186
3182
|
size = 'md',
|
|
3187
3183
|
error = false,
|
|
3188
3184
|
color = 'theme.primary',
|
|
3189
|
-
|
|
3185
|
+
views = {
|
|
3190
3186
|
label: {}
|
|
3191
3187
|
}
|
|
3192
3188
|
} = _ref,
|
|
@@ -3200,7 +3196,7 @@ var FieldLabel = _ref => {
|
|
|
3200
3196
|
position: "absolute",
|
|
3201
3197
|
color: error ? 'error' : color,
|
|
3202
3198
|
fontSize: LabelSizes[size]
|
|
3203
|
-
},
|
|
3199
|
+
}, views['label'], props), children);
|
|
3204
3200
|
};
|
|
3205
3201
|
|
|
3206
3202
|
var _excluded$h = ["children"];
|
|
@@ -3228,7 +3224,7 @@ var IconSizes$2 = {
|
|
|
3228
3224
|
var _excluded$i = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
3229
3225
|
_excluded2$3 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3230
3226
|
_excluded3$2 = ["option", "size", "removeOption"],
|
|
3231
|
-
_excluded4$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "
|
|
3227
|
+
_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"];
|
|
3232
3228
|
// Defines a component to render individual selection items within a list.
|
|
3233
3229
|
var Item = _ref => {
|
|
3234
3230
|
var {
|
|
@@ -3262,7 +3258,7 @@ var SelectBox = _ref2 => {
|
|
|
3262
3258
|
var _ref3;
|
|
3263
3259
|
var {
|
|
3264
3260
|
size = 'md',
|
|
3265
|
-
|
|
3261
|
+
views = {
|
|
3266
3262
|
field: {},
|
|
3267
3263
|
text: {}
|
|
3268
3264
|
},
|
|
@@ -3283,7 +3279,7 @@ var SelectBox = _ref2 => {
|
|
|
3283
3279
|
backgroundColor: 'transparent',
|
|
3284
3280
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3285
3281
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3286
|
-
},
|
|
3282
|
+
}, views['field'], views['text']);
|
|
3287
3283
|
var option = options.length > 0 && options.find(option => option.value === value);
|
|
3288
3284
|
return /*#__PURE__*/React__default.createElement(Text, Object.assign({}, fieldStyles), (value === '' || Array.isArray(value) && value.length === 0) && !!placeholder ? placeholder : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, typeof value === 'string' ? (_ref3 = option && option.label) != null ? _ref3 : value :
|
|
3289
3285
|
// If value is an array and not empty, render MultiSelect options
|
|
@@ -3336,7 +3332,7 @@ var HiddenSelect = _ref4 => {
|
|
|
3336
3332
|
var DropDown = _ref5 => {
|
|
3337
3333
|
var {
|
|
3338
3334
|
size,
|
|
3339
|
-
|
|
3335
|
+
views = {
|
|
3340
3336
|
dropDown: {}
|
|
3341
3337
|
},
|
|
3342
3338
|
options,
|
|
@@ -3383,10 +3379,10 @@ var DropDown = _ref5 => {
|
|
|
3383
3379
|
display: 'none'
|
|
3384
3380
|
}
|
|
3385
3381
|
}
|
|
3386
|
-
}, shadow,
|
|
3382
|
+
}, shadow, views['dropDown']), options.length > 0 && options.map((option, index) => (/*#__PURE__*/React__default.createElement(Item, Object.assign({
|
|
3387
3383
|
key: option.value,
|
|
3388
3384
|
size: size,
|
|
3389
|
-
style:
|
|
3385
|
+
style: views['text'],
|
|
3390
3386
|
option: option,
|
|
3391
3387
|
callback: handleCallback,
|
|
3392
3388
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
@@ -3436,10 +3432,9 @@ var SelectView = _ref7 => {
|
|
|
3436
3432
|
options = [],
|
|
3437
3433
|
shadow = {},
|
|
3438
3434
|
size = 'md',
|
|
3439
|
-
colorScheme = 'theme.primary',
|
|
3440
3435
|
shape = 'default',
|
|
3441
3436
|
variant = 'default',
|
|
3442
|
-
|
|
3437
|
+
views = {
|
|
3443
3438
|
text: {},
|
|
3444
3439
|
icon: {},
|
|
3445
3440
|
dropDown: {},
|
|
@@ -3483,31 +3478,30 @@ var SelectView = _ref7 => {
|
|
|
3483
3478
|
role: "SelectBox",
|
|
3484
3479
|
helperText: helperText,
|
|
3485
3480
|
error: error,
|
|
3486
|
-
|
|
3481
|
+
views: views,
|
|
3487
3482
|
onClick: isDisabled || isReadOnly ? () => {} : handleClick
|
|
3488
3483
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
3489
3484
|
label: label,
|
|
3490
3485
|
size: size,
|
|
3491
3486
|
error: error,
|
|
3492
3487
|
shape: shape,
|
|
3493
|
-
|
|
3488
|
+
views: views,
|
|
3494
3489
|
shadow: shadow,
|
|
3495
3490
|
variant: variant,
|
|
3496
3491
|
value: value,
|
|
3497
|
-
color:
|
|
3492
|
+
color: 'theme.primary',
|
|
3498
3493
|
isHovered: isHovered,
|
|
3499
3494
|
isDisabled: isDisabled,
|
|
3500
3495
|
isReadOnly: isReadOnly,
|
|
3501
3496
|
isFocused: isFocused,
|
|
3502
3497
|
isWithLabel: isWithLabel,
|
|
3503
|
-
colorScheme: colorScheme,
|
|
3504
3498
|
onMouseEnter: handleHover,
|
|
3505
3499
|
onMouseLeave: handleHover
|
|
3506
3500
|
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
3507
3501
|
htmlFor: id,
|
|
3508
|
-
color:
|
|
3502
|
+
color: 'theme.primary',
|
|
3509
3503
|
error: error
|
|
3510
|
-
},
|
|
3504
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(HiddenSelect, Object.assign({
|
|
3511
3505
|
id: id,
|
|
3512
3506
|
name: name,
|
|
3513
3507
|
options: options,
|
|
@@ -3520,7 +3514,7 @@ var SelectView = _ref7 => {
|
|
|
3520
3514
|
}, props)), /*#__PURE__*/React__default.createElement(SelectBox, {
|
|
3521
3515
|
options: options,
|
|
3522
3516
|
size: size,
|
|
3523
|
-
|
|
3517
|
+
views: views,
|
|
3524
3518
|
value: value,
|
|
3525
3519
|
isDisabled: isDisabled,
|
|
3526
3520
|
placeholder: placeholder,
|
|
@@ -3528,16 +3522,16 @@ var SelectView = _ref7 => {
|
|
|
3528
3522
|
})), /*#__PURE__*/React__default.createElement(FieldIcons, null, !isReadOnly && !isDisabled && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, hide ? (/*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
3529
3523
|
color: "inherit",
|
|
3530
3524
|
size: IconSizes$2[size],
|
|
3531
|
-
style:
|
|
3525
|
+
style: views.icon,
|
|
3532
3526
|
orientation: "down"
|
|
3533
3527
|
})) : (/*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
3534
3528
|
color: "inherit",
|
|
3535
3529
|
orientation: "up",
|
|
3536
3530
|
size: IconSizes$2[size],
|
|
3537
|
-
style:
|
|
3531
|
+
style: views.icon
|
|
3538
3532
|
})))))), !hide && (/*#__PURE__*/React__default.createElement(DropDown, {
|
|
3539
3533
|
size: size,
|
|
3540
|
-
|
|
3534
|
+
views: views,
|
|
3541
3535
|
options: options,
|
|
3542
3536
|
callback: handleCallback,
|
|
3543
3537
|
highlightedIndex: highlightedIndex,
|
|
@@ -3701,7 +3695,7 @@ var SliderPadding = {
|
|
|
3701
3695
|
}
|
|
3702
3696
|
};
|
|
3703
3697
|
|
|
3704
|
-
var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "
|
|
3698
|
+
var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
3705
3699
|
var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3706
3700
|
type: "checkbox"
|
|
3707
3701
|
}, props));
|
|
@@ -3715,7 +3709,6 @@ var SwitchView = _ref => {
|
|
|
3715
3709
|
labelPosition = 'right',
|
|
3716
3710
|
shadow = {},
|
|
3717
3711
|
size = 'sm',
|
|
3718
|
-
colorScheme = 'theme.primary',
|
|
3719
3712
|
value = false,
|
|
3720
3713
|
isHovered = false,
|
|
3721
3714
|
isDisabled = false,
|
|
@@ -3725,7 +3718,7 @@ var SwitchView = _ref => {
|
|
|
3725
3718
|
onChange,
|
|
3726
3719
|
setValue = () => {},
|
|
3727
3720
|
setIsHovered = () => {},
|
|
3728
|
-
|
|
3721
|
+
views = {
|
|
3729
3722
|
slider: {},
|
|
3730
3723
|
circle: {},
|
|
3731
3724
|
label: {}
|
|
@@ -3747,7 +3740,7 @@ var SwitchView = _ref => {
|
|
|
3747
3740
|
height: 'fit-content',
|
|
3748
3741
|
width: 'fit-content',
|
|
3749
3742
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'
|
|
3750
|
-
},
|
|
3743
|
+
}, views.label)
|
|
3751
3744
|
};
|
|
3752
3745
|
return /*#__PURE__*/React__default.createElement(Label, Object.assign({
|
|
3753
3746
|
htmlFor: id,
|
|
@@ -3771,12 +3764,12 @@ var SwitchView = _ref => {
|
|
|
3771
3764
|
marginBottom: 5,
|
|
3772
3765
|
filter: isHovered && value ? 'brightness(0.9)' : 'brightness(1)',
|
|
3773
3766
|
transition: "justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
3774
|
-
backgroundColor: isDisabled ? 'disabled' : value ?
|
|
3767
|
+
backgroundColor: isDisabled ? 'disabled' : value ? 'theme.primary' : 'lightgray',
|
|
3775
3768
|
justifyContent: activeChild ? 'space-between' : value ? 'flex-end' : 'flex-start'
|
|
3776
|
-
}, shadow, SliderPadding[size], SliderSizes[size],
|
|
3769
|
+
}, shadow, SliderPadding[size], SliderSizes[size], views['slider']), activeChild && value && /*#__PURE__*/React__default.createElement(View, null, activeChild), /*#__PURE__*/React__default.createElement(View, Object.assign({
|
|
3777
3770
|
borderRadius: "50%",
|
|
3778
3771
|
backgroundColor: "white"
|
|
3779
|
-
}, KnobSizes[size],
|
|
3772
|
+
}, KnobSizes[size], views['circle'])), inActiveChild && !value && /*#__PURE__*/React__default.createElement(View, null, inActiveChild)), labelPosition === 'right' && label && /*#__PURE__*/React__default.createElement(View, null, label));
|
|
3780
3773
|
};
|
|
3781
3774
|
|
|
3782
3775
|
// Defines the SwitchComponent as a functional component that takes SwitchProps as props.
|
|
@@ -3821,7 +3814,7 @@ var useTextAreaState = _ref => {
|
|
|
3821
3814
|
// Export of the useTextAreaState hook for external usage.
|
|
3822
3815
|
};
|
|
3823
3816
|
|
|
3824
|
-
var _excluded$k = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "
|
|
3817
|
+
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"];
|
|
3825
3818
|
var TextAreaView = _ref => {
|
|
3826
3819
|
var {
|
|
3827
3820
|
id,
|
|
@@ -3835,7 +3828,6 @@ var TextAreaView = _ref => {
|
|
|
3835
3828
|
size = 'sm',
|
|
3836
3829
|
shape = 'default',
|
|
3837
3830
|
variant = 'default',
|
|
3838
|
-
colorScheme = 'theme.primary',
|
|
3839
3831
|
isHovered = false,
|
|
3840
3832
|
isFocused = false,
|
|
3841
3833
|
isEditable = false,
|
|
@@ -3853,7 +3845,7 @@ var TextAreaView = _ref => {
|
|
|
3853
3845
|
setValue = () => {},
|
|
3854
3846
|
setIsFocused = () => {},
|
|
3855
3847
|
setIsHovered = () => {},
|
|
3856
|
-
|
|
3848
|
+
views = {
|
|
3857
3849
|
box: {},
|
|
3858
3850
|
text: {},
|
|
3859
3851
|
label: {},
|
|
@@ -3879,7 +3871,7 @@ var TextAreaView = _ref => {
|
|
|
3879
3871
|
backgroundColor: 'transparent',
|
|
3880
3872
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3881
3873
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3882
|
-
},
|
|
3874
|
+
}, views['field']);
|
|
3883
3875
|
var handleHover = () => setIsHovered(!isHovered);
|
|
3884
3876
|
var handleFocus = () => {
|
|
3885
3877
|
setIsFocused(true);
|
|
@@ -3903,30 +3895,29 @@ var TextAreaView = _ref => {
|
|
|
3903
3895
|
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
3904
3896
|
helperText: helperText,
|
|
3905
3897
|
error: error,
|
|
3906
|
-
|
|
3898
|
+
views: views
|
|
3907
3899
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
3908
3900
|
label: label,
|
|
3909
3901
|
size: size,
|
|
3910
3902
|
error: error,
|
|
3911
3903
|
shape: shape,
|
|
3912
|
-
|
|
3904
|
+
views: views,
|
|
3913
3905
|
shadow: shadow,
|
|
3914
3906
|
variant: variant,
|
|
3915
3907
|
value: value,
|
|
3916
|
-
color:
|
|
3908
|
+
color: 'theme.primary',
|
|
3917
3909
|
isHovered: isHovered,
|
|
3918
3910
|
isDisabled: isDisabled,
|
|
3919
3911
|
isReadOnly: isReadOnly,
|
|
3920
3912
|
isFocused: isFocused,
|
|
3921
3913
|
isWithLabel: isWithLabel,
|
|
3922
|
-
colorScheme: colorScheme,
|
|
3923
3914
|
onMouseEnter: handleHover,
|
|
3924
3915
|
onMouseLeave: handleHover
|
|
3925
3916
|
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
3926
3917
|
htmlFor: id,
|
|
3927
|
-
color:
|
|
3918
|
+
color: 'theme.primary',
|
|
3928
3919
|
error: error
|
|
3929
|
-
},
|
|
3920
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
3930
3921
|
as: "textarea",
|
|
3931
3922
|
id: id,
|
|
3932
3923
|
name: name,
|
|
@@ -3991,7 +3982,7 @@ var useTextFieldState = _ref => {
|
|
|
3991
3982
|
};
|
|
3992
3983
|
};
|
|
3993
3984
|
|
|
3994
|
-
var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "
|
|
3985
|
+
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"];
|
|
3995
3986
|
var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3996
3987
|
type: "text"
|
|
3997
3988
|
}, props));
|
|
@@ -4008,7 +3999,7 @@ var TextFieldView = _ref => {
|
|
|
4008
3999
|
helperText,
|
|
4009
4000
|
onChangeText,
|
|
4010
4001
|
shadow = {},
|
|
4011
|
-
|
|
4002
|
+
views = {
|
|
4012
4003
|
box: {},
|
|
4013
4004
|
field: {},
|
|
4014
4005
|
label: {},
|
|
@@ -4018,7 +4009,6 @@ var TextFieldView = _ref => {
|
|
|
4018
4009
|
size = 'md',
|
|
4019
4010
|
shape = 'default',
|
|
4020
4011
|
variant = 'default',
|
|
4021
|
-
colorScheme = 'theme.primary',
|
|
4022
4012
|
error = false,
|
|
4023
4013
|
isFocused = false,
|
|
4024
4014
|
isHovered = false,
|
|
@@ -4059,7 +4049,7 @@ var TextFieldView = _ref => {
|
|
|
4059
4049
|
backgroundColor: 'transparent',
|
|
4060
4050
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
4061
4051
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
4062
|
-
},
|
|
4052
|
+
}, views['field']);
|
|
4063
4053
|
var handleFocus = () => {
|
|
4064
4054
|
setIsFocused(true);
|
|
4065
4055
|
if (onFocus) onFocus();
|
|
@@ -4096,30 +4086,29 @@ var TextFieldView = _ref => {
|
|
|
4096
4086
|
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
4097
4087
|
helperText: helperText,
|
|
4098
4088
|
error: error,
|
|
4099
|
-
|
|
4089
|
+
views: views
|
|
4100
4090
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
4101
4091
|
label: label,
|
|
4102
4092
|
size: size,
|
|
4103
4093
|
error: error,
|
|
4104
4094
|
shape: shape,
|
|
4105
|
-
|
|
4095
|
+
views: views,
|
|
4106
4096
|
shadow: shadow,
|
|
4107
4097
|
variant: variant,
|
|
4108
4098
|
value: value,
|
|
4109
|
-
color:
|
|
4099
|
+
color: 'theme.primary',
|
|
4110
4100
|
isHovered: isHovered,
|
|
4111
4101
|
isDisabled: isDisabled,
|
|
4112
4102
|
isReadOnly: isReadOnly,
|
|
4113
4103
|
isFocused: isFocused,
|
|
4114
4104
|
isWithLabel: isWithLabel,
|
|
4115
|
-
colorScheme: colorScheme,
|
|
4116
4105
|
onMouseEnter: handleHover,
|
|
4117
4106
|
onMouseLeave: handleHover
|
|
4118
4107
|
}, left, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
4119
4108
|
htmlFor: id,
|
|
4120
|
-
color:
|
|
4109
|
+
color: 'theme.primary',
|
|
4121
4110
|
error: error
|
|
4122
|
-
},
|
|
4111
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(TextFieldInput, Object.assign({
|
|
4123
4112
|
id: id,
|
|
4124
4113
|
name: name,
|
|
4125
4114
|
readOnly: isReadOnly,
|
|
@@ -4217,7 +4206,7 @@ var IconSizes$3 = {
|
|
|
4217
4206
|
'6xl': 60
|
|
4218
4207
|
};
|
|
4219
4208
|
|
|
4220
|
-
var _excluded$m = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "
|
|
4209
|
+
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"];
|
|
4221
4210
|
var CheckboxView = _ref => {
|
|
4222
4211
|
var {
|
|
4223
4212
|
id,
|
|
@@ -4229,7 +4218,6 @@ var CheckboxView = _ref => {
|
|
|
4229
4218
|
shadow = {},
|
|
4230
4219
|
labelPosition = 'right',
|
|
4231
4220
|
size = 'md',
|
|
4232
|
-
colorScheme = 'theme.primary',
|
|
4233
4221
|
error = false,
|
|
4234
4222
|
isSelected = false,
|
|
4235
4223
|
isHovered = false,
|
|
@@ -4239,7 +4227,7 @@ var CheckboxView = _ref => {
|
|
|
4239
4227
|
defaultIsSelected = false,
|
|
4240
4228
|
setIsSelected = () => {},
|
|
4241
4229
|
setIsHovered = () => {},
|
|
4242
|
-
|
|
4230
|
+
views = {
|
|
4243
4231
|
checkbox: {},
|
|
4244
4232
|
label: {}
|
|
4245
4233
|
},
|
|
@@ -4263,11 +4251,11 @@ var CheckboxView = _ref => {
|
|
|
4263
4251
|
width: 'fit-content',
|
|
4264
4252
|
color: error ? 'theme.error' : isDisabled ? 'theme.disabled' : 'color.blueGray.700',
|
|
4265
4253
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'
|
|
4266
|
-
},
|
|
4254
|
+
}, views['label']),
|
|
4267
4255
|
checkbox: Object.assign({}, isDisabled ? {
|
|
4268
4256
|
backgroundColor: 'theme.disabled'
|
|
4269
4257
|
} : (isChecked || isSelected) && !isIndeterminate || isIndeterminate ? {
|
|
4270
|
-
backgroundColor:
|
|
4258
|
+
backgroundColor: 'theme.primary'
|
|
4271
4259
|
} : {
|
|
4272
4260
|
borderWidth: 2,
|
|
4273
4261
|
borderColor: error ? 'theme.error' : isHovered ? 'color.gray.500' : 'color.gray.300',
|
|
@@ -4276,7 +4264,7 @@ var CheckboxView = _ref => {
|
|
|
4276
4264
|
borderRadius: 3
|
|
4277
4265
|
}, isHovered ? {
|
|
4278
4266
|
filter: 'brightness(0.9)'
|
|
4279
|
-
} : {}, Sizes[size], shadow,
|
|
4267
|
+
} : {}, Sizes[size], shadow, views['checkbox'])
|
|
4280
4268
|
};
|
|
4281
4269
|
return /*#__PURE__*/React__default.createElement(Label, Object.assign({
|
|
4282
4270
|
htmlFor: id,
|
|
@@ -4292,7 +4280,7 @@ var CheckboxView = _ref => {
|
|
|
4292
4280
|
alignItems: "center"
|
|
4293
4281
|
}, labelPosition === 'left' && label && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
4294
4282
|
size: size
|
|
4295
|
-
},
|
|
4283
|
+
}, views == null ? void 0 : views.label), label)), /*#__PURE__*/React__default.createElement(Center, Object.assign({}, checkboxStyle.checkbox), isIndeterminate ? (/*#__PURE__*/React__default.createElement(MinusIcon, {
|
|
4296
4284
|
size: IconSizes$3[size],
|
|
4297
4285
|
color: "white"
|
|
4298
4286
|
})) : (isChecked || isSelected) && (icon != null ? icon : /*#__PURE__*/React__default.createElement(TickIcon, {
|
|
@@ -4300,11 +4288,11 @@ var CheckboxView = _ref => {
|
|
|
4300
4288
|
color: "white"
|
|
4301
4289
|
}))), labelPosition === 'right' && label && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
4302
4290
|
size: size
|
|
4303
|
-
},
|
|
4291
|
+
}, views == null ? void 0 : views.label), label))), infoText && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
4304
4292
|
marginLeft: labelPosition === 'left' ? 0 : 27,
|
|
4305
4293
|
color: "color.gray.400",
|
|
4306
4294
|
size: "sm"
|
|
4307
|
-
},
|
|
4295
|
+
}, views == null ? void 0 : views.infoText), infoText))), error && (/*#__PURE__*/React__default.createElement(Text, {
|
|
4308
4296
|
size: "xs",
|
|
4309
4297
|
marginVertical: 0,
|
|
4310
4298
|
marginHorizontal: 0,
|
|
@@ -5811,7 +5799,7 @@ var IconSizes$4 = {
|
|
|
5811
5799
|
|
|
5812
5800
|
var _excluded$n = ["size"],
|
|
5813
5801
|
_excluded2$4 = ["size"],
|
|
5814
|
-
_excluded3$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "
|
|
5802
|
+
_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"];
|
|
5815
5803
|
var CountryList = _ref => {
|
|
5816
5804
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
5817
5805
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
@@ -5832,7 +5820,7 @@ var DropDownItem = _ref3 => {
|
|
|
5832
5820
|
option,
|
|
5833
5821
|
size = 'md',
|
|
5834
5822
|
callback = () => {},
|
|
5835
|
-
|
|
5823
|
+
views = {
|
|
5836
5824
|
text: {}
|
|
5837
5825
|
}
|
|
5838
5826
|
} = _ref3;
|
|
@@ -5854,12 +5842,12 @@ var DropDownItem = _ref3 => {
|
|
|
5854
5842
|
onClick: handleOptionClick,
|
|
5855
5843
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
5856
5844
|
backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
|
|
5857
|
-
},
|
|
5845
|
+
}, views['text']), option);
|
|
5858
5846
|
};
|
|
5859
5847
|
var DropDown$1 = _ref4 => {
|
|
5860
5848
|
var {
|
|
5861
5849
|
size,
|
|
5862
|
-
|
|
5850
|
+
views = {
|
|
5863
5851
|
dropDown: {}
|
|
5864
5852
|
},
|
|
5865
5853
|
options,
|
|
@@ -5881,12 +5869,12 @@ var DropDown$1 = _ref4 => {
|
|
|
5881
5869
|
flexDirection: "column",
|
|
5882
5870
|
backgroundColor: "white",
|
|
5883
5871
|
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"
|
|
5884
|
-
},
|
|
5872
|
+
}, views['dropDown']), options.map(option => (/*#__PURE__*/React__default.createElement(DropDownItem, Object.assign({
|
|
5885
5873
|
key: option.code,
|
|
5886
5874
|
size: size,
|
|
5887
5875
|
option: option.name,
|
|
5888
5876
|
callback: handleCallback
|
|
5889
|
-
},
|
|
5877
|
+
}, views['text'])))));
|
|
5890
5878
|
};
|
|
5891
5879
|
var CountryPickerView = _ref5 => {
|
|
5892
5880
|
var {
|
|
@@ -5908,7 +5896,6 @@ var CountryPickerView = _ref5 => {
|
|
|
5908
5896
|
size = 'md',
|
|
5909
5897
|
variant = 'default',
|
|
5910
5898
|
shape = 'default',
|
|
5911
|
-
colorScheme = 'theme.primary',
|
|
5912
5899
|
onChange,
|
|
5913
5900
|
onBlur = () => {},
|
|
5914
5901
|
setHide = () => {},
|
|
@@ -5916,7 +5903,7 @@ var CountryPickerView = _ref5 => {
|
|
|
5916
5903
|
setIsHovered = () => {},
|
|
5917
5904
|
setIsFocused = () => {},
|
|
5918
5905
|
setValue = () => {},
|
|
5919
|
-
|
|
5906
|
+
views = {
|
|
5920
5907
|
text: {},
|
|
5921
5908
|
icon: {},
|
|
5922
5909
|
label: {},
|
|
@@ -5971,36 +5958,35 @@ var CountryPickerView = _ref5 => {
|
|
|
5971
5958
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
5972
5959
|
backgroundColor: 'transparent',
|
|
5973
5960
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
5974
|
-
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
5975
|
-
},
|
|
5961
|
+
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
5962
|
+
}, views['field']);
|
|
5976
5963
|
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
5977
5964
|
helperText: helperText,
|
|
5978
5965
|
error: error,
|
|
5979
|
-
|
|
5966
|
+
views: views,
|
|
5980
5967
|
onClick: handleClick
|
|
5981
5968
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
5982
5969
|
label: label,
|
|
5983
5970
|
size: size,
|
|
5984
5971
|
error: error,
|
|
5985
5972
|
shape: shape,
|
|
5986
|
-
|
|
5973
|
+
views: views,
|
|
5987
5974
|
shadow: shadow,
|
|
5988
5975
|
variant: variant,
|
|
5989
5976
|
value: value,
|
|
5990
|
-
color:
|
|
5977
|
+
color: 'theme.primary',
|
|
5991
5978
|
isHovered: isHovered,
|
|
5992
5979
|
isDisabled: isDisabled,
|
|
5993
5980
|
isReadOnly: isReadOnly,
|
|
5994
5981
|
isFocused: isFocused,
|
|
5995
5982
|
isWithLabel: isWithLabel,
|
|
5996
|
-
colorScheme: colorScheme,
|
|
5997
5983
|
onMouseEnter: handleHover,
|
|
5998
5984
|
onMouseLeave: handleHover
|
|
5999
5985
|
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
6000
5986
|
htmlFor: id,
|
|
6001
|
-
color:
|
|
5987
|
+
color: 'theme.primary',
|
|
6002
5988
|
error: error
|
|
6003
|
-
},
|
|
5989
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(CountrySelector, Object.assign({
|
|
6004
5990
|
id: id,
|
|
6005
5991
|
name: name,
|
|
6006
5992
|
placeholder: placeholder,
|
|
@@ -6016,15 +6002,15 @@ var CountryPickerView = _ref5 => {
|
|
|
6016
6002
|
orientation: "down",
|
|
6017
6003
|
size: IconSizes$4[size],
|
|
6018
6004
|
color: IconColor,
|
|
6019
|
-
style:
|
|
6005
|
+
style: views['icon']
|
|
6020
6006
|
})) : (/*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
6021
6007
|
orientation: "up",
|
|
6022
6008
|
size: IconSizes$4[size],
|
|
6023
6009
|
color: IconColor,
|
|
6024
|
-
style:
|
|
6010
|
+
style: views['icon']
|
|
6025
6011
|
})))), !hide && (/*#__PURE__*/React__default.createElement(DropDown$1, {
|
|
6026
6012
|
size: size,
|
|
6027
|
-
|
|
6013
|
+
views: views,
|
|
6028
6014
|
options: newOptions,
|
|
6029
6015
|
callback: handleCallback
|
|
6030
6016
|
})));
|
|
@@ -6054,7 +6040,7 @@ var useDatePickerState = () => {
|
|
|
6054
6040
|
};
|
|
6055
6041
|
};
|
|
6056
6042
|
|
|
6057
|
-
var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "
|
|
6043
|
+
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"];
|
|
6058
6044
|
var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
6059
6045
|
type: "date"
|
|
6060
6046
|
}, props));
|
|
@@ -6069,8 +6055,7 @@ var DatePickerView = _ref => {
|
|
|
6069
6055
|
size = 'md',
|
|
6070
6056
|
variant = 'default',
|
|
6071
6057
|
shape = 'default',
|
|
6072
|
-
|
|
6073
|
-
styles = {
|
|
6058
|
+
views = {
|
|
6074
6059
|
box: {},
|
|
6075
6060
|
label: {},
|
|
6076
6061
|
helperText: {},
|
|
@@ -6118,34 +6103,33 @@ var DatePickerView = _ref => {
|
|
|
6118
6103
|
backgroundColor: 'transparent',
|
|
6119
6104
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
6120
6105
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
6121
|
-
},
|
|
6106
|
+
}, views['field']);
|
|
6122
6107
|
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
6123
6108
|
helperText: helperText,
|
|
6124
6109
|
error: error,
|
|
6125
|
-
|
|
6110
|
+
views: views
|
|
6126
6111
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
6127
6112
|
label: label,
|
|
6128
6113
|
size: size,
|
|
6129
6114
|
error: error,
|
|
6130
6115
|
shape: shape,
|
|
6131
|
-
|
|
6116
|
+
views: views,
|
|
6132
6117
|
shadow: shadow,
|
|
6118
|
+
color: 'theme.primary',
|
|
6133
6119
|
variant: variant,
|
|
6134
6120
|
value: date,
|
|
6135
|
-
color: colorScheme,
|
|
6136
6121
|
isHovered: isHovered,
|
|
6137
6122
|
isDisabled: isDisabled,
|
|
6138
6123
|
isReadOnly: isReadOnly,
|
|
6139
6124
|
isFocused: isFocused,
|
|
6140
6125
|
isWithLabel: isWithLabel,
|
|
6141
|
-
colorScheme: colorScheme,
|
|
6142
6126
|
onMouseEnter: handleHover,
|
|
6143
6127
|
onMouseLeave: handleHover
|
|
6144
6128
|
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
6145
6129
|
htmlFor: id,
|
|
6146
|
-
color:
|
|
6130
|
+
color: 'theme.primary',
|
|
6147
6131
|
error: error
|
|
6148
|
-
},
|
|
6132
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(DatePickerContent, Object.assign({
|
|
6149
6133
|
id: id,
|
|
6150
6134
|
name: name,
|
|
6151
6135
|
onFocus: handleFocus,
|
|
@@ -6181,10 +6165,10 @@ var _excluded$p = ["visibleIcon", "hiddenIcon"],
|
|
|
6181
6165
|
var PasswordComponent = _ref => {
|
|
6182
6166
|
var {
|
|
6183
6167
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
6184
|
-
|
|
6168
|
+
widthHeight: 14
|
|
6185
6169
|
}),
|
|
6186
6170
|
hiddenIcon = /*#__PURE__*/React__default.createElement(CloseEyeIcon, {
|
|
6187
|
-
|
|
6171
|
+
widthHeight: 14
|
|
6188
6172
|
})
|
|
6189
6173
|
} = _ref,
|
|
6190
6174
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
@@ -6241,7 +6225,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
|
|
|
6241
6225
|
};
|
|
6242
6226
|
};
|
|
6243
6227
|
|
|
6244
|
-
var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "
|
|
6228
|
+
var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
6245
6229
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
6246
6230
|
var ComboBoxView = _ref => {
|
|
6247
6231
|
var {
|
|
@@ -6261,7 +6245,7 @@ var ComboBoxView = _ref => {
|
|
|
6261
6245
|
searchQuery,
|
|
6262
6246
|
setSearchQuery,
|
|
6263
6247
|
setFilteredItems,
|
|
6264
|
-
|
|
6248
|
+
views,
|
|
6265
6249
|
isDropdownVisible,
|
|
6266
6250
|
setIsDropdownVisible
|
|
6267
6251
|
// Collects all further props not destructured explicitly.
|
|
@@ -6304,7 +6288,7 @@ var ComboBoxView = _ref => {
|
|
|
6304
6288
|
alignItems: "center",
|
|
6305
6289
|
width: "100%"
|
|
6306
6290
|
}, props), label && (/*#__PURE__*/React__default.createElement(Text, {
|
|
6307
|
-
|
|
6291
|
+
views: views == null ? void 0 : views.label,
|
|
6308
6292
|
htmlFor: props.id
|
|
6309
6293
|
}, label)), /*#__PURE__*/React__default.createElement(View, {
|
|
6310
6294
|
position: "relative"
|
|
@@ -6319,16 +6303,16 @@ var ComboBoxView = _ref => {
|
|
|
6319
6303
|
justifyContent: "space-between",
|
|
6320
6304
|
minWidth: 300,
|
|
6321
6305
|
flexWrap: "nowrap"
|
|
6322
|
-
},
|
|
6306
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
6323
6307
|
gap: 15,
|
|
6324
6308
|
alignItems: "center",
|
|
6325
6309
|
position: "relative",
|
|
6326
6310
|
width: "100%",
|
|
6327
6311
|
onClick: () => setIsDropdownVisible(!isDropdownVisible)
|
|
6328
|
-
},
|
|
6312
|
+
}, views == null ? void 0 : views.labelContainer), left, /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6329
6313
|
weight: "medium",
|
|
6330
6314
|
flexGrow: 1
|
|
6331
|
-
},
|
|
6315
|
+
}, views == null ? void 0 : views.label), selectedItem.label)), right, isDropdownVisible && (/*#__PURE__*/React__default.createElement(View, Object.assign({
|
|
6332
6316
|
id: "combobox-dropdown",
|
|
6333
6317
|
position: "absolute",
|
|
6334
6318
|
backgroundColor: "white",
|
|
@@ -6341,7 +6325,7 @@ var ComboBoxView = _ref => {
|
|
|
6341
6325
|
transform: "translateY(100%)",
|
|
6342
6326
|
marginTop: "4px",
|
|
6343
6327
|
borderRadius: "4px"
|
|
6344
|
-
},
|
|
6328
|
+
}, views == null ? void 0 : views.dropdown), searchEnabled && (/*#__PURE__*/React__default.createElement(TextFieldView, {
|
|
6345
6329
|
id: props.id,
|
|
6346
6330
|
name: props.name,
|
|
6347
6331
|
width: "100%",
|
|
@@ -6351,14 +6335,14 @@ var ComboBoxView = _ref => {
|
|
|
6351
6335
|
hint: placeholder,
|
|
6352
6336
|
isClearable: false,
|
|
6353
6337
|
left: /*#__PURE__*/React__default.createElement(SearchIcon, {
|
|
6354
|
-
|
|
6338
|
+
widthHeight: 12
|
|
6355
6339
|
}),
|
|
6356
|
-
|
|
6340
|
+
views: {
|
|
6357
6341
|
box: Object.assign({
|
|
6358
6342
|
width: '100%',
|
|
6359
6343
|
padding: '6px 12px',
|
|
6360
6344
|
borderBottom: filteredItems.length > 0 ? '1px solid #ccc' : '1px solid transparent'
|
|
6361
|
-
},
|
|
6345
|
+
}, views == null ? void 0 : views.text)
|
|
6362
6346
|
}
|
|
6363
6347
|
})), filteredItems.length > 0 && (/*#__PURE__*/React__default.createElement(View, {
|
|
6364
6348
|
margin: 0,
|
|
@@ -6372,8 +6356,8 @@ var ComboBoxView = _ref => {
|
|
|
6372
6356
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
6373
6357
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
6374
6358
|
onClick: () => handleSelect(item)
|
|
6375
|
-
},
|
|
6376
|
-
|
|
6359
|
+
}, views == null ? void 0 : views.item), /*#__PURE__*/React__default.createElement(Text, null, item.label), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, item.icon && item.icon, item.value === selectedItem.value && showTick && !item.icon && /*#__PURE__*/React__default.createElement(TickIcon, {
|
|
6360
|
+
widthHeight: 20
|
|
6377
6361
|
}))))))))))));
|
|
6378
6362
|
};
|
|
6379
6363
|
|
|
@@ -6637,10 +6621,10 @@ var _excluded$w = ["visibleIcon", "hiddenIcon"],
|
|
|
6637
6621
|
var PasswordComponent$1 = _ref => {
|
|
6638
6622
|
var {
|
|
6639
6623
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
6640
|
-
|
|
6624
|
+
widthHeight: 14
|
|
6641
6625
|
}),
|
|
6642
6626
|
hiddenIcon = /*#__PURE__*/React__default.createElement(CloseEyeIcon, {
|
|
6643
|
-
|
|
6627
|
+
widthHeight: 14
|
|
6644
6628
|
})
|
|
6645
6629
|
} = _ref,
|
|
6646
6630
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
@@ -6699,12 +6683,12 @@ var useMessageStore = /*#__PURE__*/zustand.create(set => ({
|
|
|
6699
6683
|
subtitle: '',
|
|
6700
6684
|
variant: 'info',
|
|
6701
6685
|
isClosable: false,
|
|
6702
|
-
|
|
6686
|
+
views: {},
|
|
6703
6687
|
action: () => {},
|
|
6704
6688
|
actionText: '',
|
|
6705
6689
|
showIcon: false,
|
|
6706
6690
|
timeout: 3000,
|
|
6707
|
-
show: function show(variant, title, subtitle, isClosable,
|
|
6691
|
+
show: function show(variant, title, subtitle, isClosable, views, action, actionText, showIcon, timeout) {
|
|
6708
6692
|
if (title === void 0) {
|
|
6709
6693
|
title = '';
|
|
6710
6694
|
}
|
|
@@ -6717,7 +6701,7 @@ var useMessageStore = /*#__PURE__*/zustand.create(set => ({
|
|
|
6717
6701
|
title,
|
|
6718
6702
|
subtitle,
|
|
6719
6703
|
isClosable,
|
|
6720
|
-
|
|
6704
|
+
views,
|
|
6721
6705
|
action,
|
|
6722
6706
|
actionText,
|
|
6723
6707
|
showIcon,
|
|
@@ -6729,7 +6713,7 @@ var useMessageStore = /*#__PURE__*/zustand.create(set => ({
|
|
|
6729
6713
|
})
|
|
6730
6714
|
}));
|
|
6731
6715
|
var showMessage = (variant, title, subtitle, props) => {
|
|
6732
|
-
useMessageStore.getState().show(variant, title, subtitle, props == null ? void 0 : props.isClosable, props == null ? void 0 : props.
|
|
6716
|
+
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);
|
|
6733
6717
|
};
|
|
6734
6718
|
var hideMessage = () => {
|
|
6735
6719
|
useMessageStore.getState().hide();
|
|
@@ -6807,7 +6791,7 @@ var Themes$1 = {
|
|
|
6807
6791
|
};
|
|
6808
6792
|
|
|
6809
6793
|
var MessageView = _ref => {
|
|
6810
|
-
var
|
|
6794
|
+
var _views$closingIcon, _views$closingIcon2;
|
|
6811
6795
|
var {
|
|
6812
6796
|
variant,
|
|
6813
6797
|
hide,
|
|
@@ -6819,7 +6803,7 @@ var MessageView = _ref => {
|
|
|
6819
6803
|
showIcon = false,
|
|
6820
6804
|
isClosable = false,
|
|
6821
6805
|
timeout = 3000,
|
|
6822
|
-
|
|
6806
|
+
views
|
|
6823
6807
|
} = _ref;
|
|
6824
6808
|
React.useEffect(() => {
|
|
6825
6809
|
if (timeout && !isClosable) {
|
|
@@ -6849,21 +6833,21 @@ var MessageView = _ref => {
|
|
|
6849
6833
|
}[variant];
|
|
6850
6834
|
var iconComponent = {
|
|
6851
6835
|
info: /*#__PURE__*/React__default.createElement(InfoIcon, Object.assign({
|
|
6852
|
-
|
|
6836
|
+
widthHeight: 24,
|
|
6853
6837
|
color: iconColor
|
|
6854
|
-
},
|
|
6855
|
-
success: /*#__PURE__*/React__default.createElement(SuccessIcon, Object.assign({
|
|
6856
|
-
|
|
6838
|
+
}, views == null ? void 0 : views.icon)),
|
|
6839
|
+
success: (/*#__PURE__*/React__default.createElement(SuccessIcon, Object.assign({
|
|
6840
|
+
widthHeight: 24,
|
|
6857
6841
|
color: iconColor
|
|
6858
|
-
},
|
|
6859
|
-
warning: /*#__PURE__*/React__default.createElement(WarningIcon, Object.assign({
|
|
6860
|
-
|
|
6842
|
+
}, views == null ? void 0 : views.icon))),
|
|
6843
|
+
warning: (/*#__PURE__*/React__default.createElement(WarningIcon, Object.assign({
|
|
6844
|
+
widthHeight: 24,
|
|
6861
6845
|
color: iconColor
|
|
6862
|
-
},
|
|
6846
|
+
}, views == null ? void 0 : views.icon))),
|
|
6863
6847
|
error: /*#__PURE__*/React__default.createElement(ErrorIcon, Object.assign({
|
|
6864
|
-
|
|
6848
|
+
widthHeight: 24,
|
|
6865
6849
|
color: iconColor
|
|
6866
|
-
},
|
|
6850
|
+
}, views == null ? void 0 : views.icon))
|
|
6867
6851
|
}[variant];
|
|
6868
6852
|
var isShowIcon = showIcon && iconComponent;
|
|
6869
6853
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
@@ -6880,20 +6864,20 @@ var MessageView = _ref => {
|
|
|
6880
6864
|
onClick: isClosable ? () => {} : () => {
|
|
6881
6865
|
hide();
|
|
6882
6866
|
}
|
|
6883
|
-
}, containerStyle,
|
|
6867
|
+
}, containerStyle, views == null ? void 0 : views.container), isShowIcon && iconComponent, /*#__PURE__*/React__default.createElement(Vertical, {
|
|
6884
6868
|
gap: 8,
|
|
6885
6869
|
width: "100%"
|
|
6886
6870
|
}, /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6887
6871
|
size: "md",
|
|
6888
6872
|
weight: "semiBold"
|
|
6889
|
-
},
|
|
6873
|
+
}, views == null ? void 0 : views.title), title), subtitle && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6890
6874
|
size: "sm"
|
|
6891
|
-
},
|
|
6875
|
+
}, views == null ? void 0 : views.subtitle), subtitle))), isWithAction && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6892
6876
|
marginRight: 10,
|
|
6893
6877
|
onClick: action,
|
|
6894
6878
|
padding: "6px 10px",
|
|
6895
6879
|
whiteSpace: "nowrap"
|
|
6896
|
-
}, containerStyle,
|
|
6880
|
+
}, containerStyle, views == null ? void 0 : views.actionText), actionText)), isClosable && (/*#__PURE__*/React__default.createElement(View, Object.assign({
|
|
6897
6881
|
position: "absolute",
|
|
6898
6882
|
zIndex: 10000,
|
|
6899
6883
|
right: 8,
|
|
@@ -6901,10 +6885,10 @@ var MessageView = _ref => {
|
|
|
6901
6885
|
onClick: () => {
|
|
6902
6886
|
hide();
|
|
6903
6887
|
}
|
|
6904
|
-
},
|
|
6905
|
-
|
|
6888
|
+
}, views == null || (_views$closingIcon = views.closingIcon) == null ? void 0 : _views$closingIcon.container), /*#__PURE__*/React__default.createElement(CloseIcon, Object.assign({
|
|
6889
|
+
widthHeight: 18,
|
|
6906
6890
|
color: iconColor
|
|
6907
|
-
},
|
|
6891
|
+
}, views == null || (_views$closingIcon2 = views.closingIcon) == null ? void 0 : _views$closingIcon2.icon)))));
|
|
6908
6892
|
};
|
|
6909
6893
|
|
|
6910
6894
|
var MessageLayout = _ref => {
|
|
@@ -6919,7 +6903,7 @@ var MessageLayout = _ref => {
|
|
|
6919
6903
|
variant,
|
|
6920
6904
|
subtitle,
|
|
6921
6905
|
isClosable,
|
|
6922
|
-
|
|
6906
|
+
views,
|
|
6923
6907
|
action,
|
|
6924
6908
|
actionText,
|
|
6925
6909
|
showIcon,
|
|
@@ -6951,7 +6935,7 @@ var MessageLayout = _ref => {
|
|
|
6951
6935
|
title: title,
|
|
6952
6936
|
theme: theme,
|
|
6953
6937
|
isClosable: isClosable,
|
|
6954
|
-
|
|
6938
|
+
views: views,
|
|
6955
6939
|
action: action,
|
|
6956
6940
|
actionText: actionText,
|
|
6957
6941
|
showIcon: showIcon,
|
|
@@ -7054,16 +7038,22 @@ var useUpload = _ref => {
|
|
|
7054
7038
|
handleClick
|
|
7055
7039
|
};
|
|
7056
7040
|
};
|
|
7057
|
-
|
|
7041
|
+
|
|
7042
|
+
var UploadView = _ref => {
|
|
7058
7043
|
var {
|
|
7059
|
-
accept
|
|
7044
|
+
accept,
|
|
7060
7045
|
isLoading = false,
|
|
7061
7046
|
progress = 0,
|
|
7062
7047
|
icon,
|
|
7063
7048
|
text,
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7049
|
+
previewUrl,
|
|
7050
|
+
thumbnailUrl,
|
|
7051
|
+
errorMessage,
|
|
7052
|
+
fileInputRef,
|
|
7053
|
+
videoRef,
|
|
7054
|
+
selectedFile,
|
|
7055
|
+
handleFileChange,
|
|
7056
|
+
handleClick,
|
|
7067
7057
|
containerProps,
|
|
7068
7058
|
errorMessageProps,
|
|
7069
7059
|
progressProps,
|
|
@@ -7071,74 +7061,75 @@ var Uploader = _ref2 => {
|
|
|
7071
7061
|
imageProps,
|
|
7072
7062
|
iconProps,
|
|
7073
7063
|
textProps,
|
|
7074
|
-
|
|
7064
|
+
fileType,
|
|
7065
|
+
previewUrl: externalPreviewUrl,
|
|
7066
|
+
renderError = _ref2 => {
|
|
7075
7067
|
var {
|
|
7076
7068
|
errorMessage,
|
|
7077
7069
|
errorMessageProps
|
|
7078
|
-
} =
|
|
7070
|
+
} = _ref2;
|
|
7079
7071
|
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
7080
7072
|
color: "red",
|
|
7081
7073
|
fontSize: 12,
|
|
7082
7074
|
marginTop: 8
|
|
7083
7075
|
}, errorMessageProps), errorMessage);
|
|
7084
7076
|
},
|
|
7085
|
-
renderText =
|
|
7077
|
+
renderText = _ref3 => {
|
|
7086
7078
|
var {
|
|
7087
7079
|
text,
|
|
7088
7080
|
textProps
|
|
7089
|
-
} =
|
|
7081
|
+
} = _ref3;
|
|
7090
7082
|
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
7091
7083
|
marginTop: 8
|
|
7092
7084
|
}, textProps), text);
|
|
7093
7085
|
},
|
|
7094
|
-
renderFile =
|
|
7086
|
+
renderFile = _ref4 => {
|
|
7095
7087
|
var {
|
|
7096
7088
|
selectedFile,
|
|
7097
7089
|
textProps
|
|
7098
|
-
} =
|
|
7099
|
-
return /*#__PURE__*/React__default.createElement(Center, {
|
|
7090
|
+
} = _ref4;
|
|
7091
|
+
return selectedFile ? (/*#__PURE__*/React__default.createElement(Center, {
|
|
7100
7092
|
marginTop: 8,
|
|
7101
7093
|
gap: 10,
|
|
7102
7094
|
flexDirection: "column"
|
|
7103
7095
|
}, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
7104
7096
|
maxLines: 2
|
|
7105
|
-
}, textProps), selectedFile.name), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, textProps), "(", Math.round(selectedFile.size / 1024), " KB)"));
|
|
7097
|
+
}, textProps), selectedFile.name), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, textProps), "(", Math.round(selectedFile.size / 1024), " KB)"))) : null;
|
|
7106
7098
|
},
|
|
7107
|
-
renderVideo =
|
|
7099
|
+
renderVideo = _ref5 => {
|
|
7108
7100
|
var {
|
|
7109
7101
|
selectedFile,
|
|
7110
7102
|
thumbnailUrl,
|
|
7111
7103
|
videoRef,
|
|
7112
7104
|
videoProps,
|
|
7113
7105
|
imageProps
|
|
7114
|
-
} =
|
|
7115
|
-
console.log('thumbnailUrl', thumbnailUrl);
|
|
7106
|
+
} = _ref5;
|
|
7116
7107
|
return /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
7117
7108
|
width: "100%",
|
|
7118
7109
|
height: "100%",
|
|
7119
7110
|
position: "relative"
|
|
7120
7111
|
}, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
7121
7112
|
as: "video",
|
|
7122
|
-
width:
|
|
7123
|
-
height:
|
|
7124
|
-
src: selectedFile
|
|
7113
|
+
width: "100%",
|
|
7114
|
+
height: "100%",
|
|
7115
|
+
src: selectedFile ? URL.createObjectURL(selectedFile) : undefined,
|
|
7125
7116
|
style: {
|
|
7126
7117
|
objectFit: 'cover'
|
|
7127
7118
|
},
|
|
7128
7119
|
ref: videoRef
|
|
7129
|
-
}, videoProps)), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
7120
|
+
}, videoProps)), thumbnailUrl && (/*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
7130
7121
|
src: thumbnailUrl,
|
|
7131
7122
|
alt: "Video Thumbnail",
|
|
7132
7123
|
width: "100%",
|
|
7133
7124
|
height: "100%",
|
|
7134
7125
|
objectFit: "cover"
|
|
7135
|
-
}, imageProps)));
|
|
7126
|
+
}, imageProps))));
|
|
7136
7127
|
},
|
|
7137
|
-
renderImage =
|
|
7128
|
+
renderImage = _ref6 => {
|
|
7138
7129
|
var {
|
|
7139
7130
|
previewUrl,
|
|
7140
7131
|
imageProps
|
|
7141
|
-
} =
|
|
7132
|
+
} = _ref6;
|
|
7142
7133
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
7143
7134
|
src: previewUrl,
|
|
7144
7135
|
alt: "Preview",
|
|
@@ -7147,11 +7138,11 @@ var Uploader = _ref2 => {
|
|
|
7147
7138
|
objectFit: "cover"
|
|
7148
7139
|
}, imageProps));
|
|
7149
7140
|
},
|
|
7150
|
-
renderProgress =
|
|
7141
|
+
renderProgress = _ref7 => {
|
|
7151
7142
|
var {
|
|
7152
7143
|
progress,
|
|
7153
7144
|
progressProps
|
|
7154
|
-
} =
|
|
7145
|
+
} = _ref7;
|
|
7155
7146
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
7156
7147
|
gap: 8,
|
|
7157
7148
|
alignItems: "center"
|
|
@@ -7163,28 +7154,14 @@ var Uploader = _ref2 => {
|
|
|
7163
7154
|
}, /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
7164
7155
|
height: 4,
|
|
7165
7156
|
width: progress + "%",
|
|
7166
|
-
borderRadius: 2
|
|
7157
|
+
borderRadius: 2,
|
|
7158
|
+
backgroundColor: "#000"
|
|
7167
7159
|
})), /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
7168
7160
|
fontSize: 12
|
|
7169
7161
|
}, progress, "%"));
|
|
7170
7162
|
}
|
|
7171
|
-
} =
|
|
7172
|
-
var
|
|
7173
|
-
previewUrl,
|
|
7174
|
-
thumbnailUrl,
|
|
7175
|
-
errorMessage,
|
|
7176
|
-
videoRef,
|
|
7177
|
-
fileInputRef,
|
|
7178
|
-
selectedFile,
|
|
7179
|
-
handleFileChange,
|
|
7180
|
-
handleClick
|
|
7181
|
-
} = useUpload({
|
|
7182
|
-
accept,
|
|
7183
|
-
maxSize,
|
|
7184
|
-
onFileSelect,
|
|
7185
|
-
validateFile
|
|
7186
|
-
});
|
|
7187
|
-
var fileType = previewUrl && accept.includes('video') ? 'video' : previewUrl && accept.includes('image') ? 'image' : 'file';
|
|
7163
|
+
} = _ref;
|
|
7164
|
+
var finalPreviewUrl = externalPreviewUrl || previewUrl;
|
|
7188
7165
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
7189
7166
|
onClick: handleClick,
|
|
7190
7167
|
cursor: "pointer",
|
|
@@ -7194,26 +7171,27 @@ var Uploader = _ref2 => {
|
|
|
7194
7171
|
flexDirection: "column",
|
|
7195
7172
|
overflow: "hidden",
|
|
7196
7173
|
position: "relative"
|
|
7197
|
-
}, containerProps), progress
|
|
7198
|
-
previewUrl,
|
|
7174
|
+
}, containerProps), progress === 100 && fileType === 'image' && finalPreviewUrl && renderImage({
|
|
7175
|
+
previewUrl: finalPreviewUrl,
|
|
7199
7176
|
imageProps
|
|
7200
|
-
}), progress
|
|
7177
|
+
}), progress === 100 && fileType === 'video' && thumbnailUrl && renderVideo({
|
|
7178
|
+
selectedFile,
|
|
7201
7179
|
thumbnailUrl,
|
|
7202
7180
|
videoRef,
|
|
7203
7181
|
videoProps,
|
|
7204
|
-
|
|
7205
|
-
}), progress
|
|
7182
|
+
imageProps
|
|
7183
|
+
}), progress === 100 && fileType === 'file' && selectedFile && renderFile({
|
|
7206
7184
|
selectedFile,
|
|
7207
7185
|
textProps
|
|
7208
7186
|
}), progress < 100 && (icon || /*#__PURE__*/React__default.createElement(UploadIcon, Object.assign({
|
|
7209
|
-
|
|
7187
|
+
widthHeight: 32
|
|
7210
7188
|
}, iconProps))), !selectedFile && text && renderText({
|
|
7211
7189
|
text,
|
|
7212
7190
|
textProps
|
|
7213
7191
|
}), isLoading && renderProgress({
|
|
7214
7192
|
progress,
|
|
7215
7193
|
progressProps
|
|
7216
|
-
}), renderError({
|
|
7194
|
+
}), errorMessage && renderError({
|
|
7217
7195
|
errorMessage,
|
|
7218
7196
|
errorMessageProps
|
|
7219
7197
|
}), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
@@ -7228,6 +7206,54 @@ var Uploader = _ref2 => {
|
|
|
7228
7206
|
}));
|
|
7229
7207
|
};
|
|
7230
7208
|
|
|
7209
|
+
var _excluded$y = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
|
|
7210
|
+
var Uploader = _ref => {
|
|
7211
|
+
var {
|
|
7212
|
+
accept = '*/*',
|
|
7213
|
+
icon,
|
|
7214
|
+
text,
|
|
7215
|
+
maxSize,
|
|
7216
|
+
onFileSelect,
|
|
7217
|
+
validateFile,
|
|
7218
|
+
isLoading = false,
|
|
7219
|
+
progress = 0
|
|
7220
|
+
} = _ref,
|
|
7221
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
7222
|
+
var {
|
|
7223
|
+
previewUrl,
|
|
7224
|
+
thumbnailUrl,
|
|
7225
|
+
errorMessage,
|
|
7226
|
+
videoRef,
|
|
7227
|
+
fileInputRef,
|
|
7228
|
+
selectedFile,
|
|
7229
|
+
handleFileChange,
|
|
7230
|
+
handleClick
|
|
7231
|
+
} = useUpload({
|
|
7232
|
+
accept,
|
|
7233
|
+
maxSize,
|
|
7234
|
+
onFileSelect,
|
|
7235
|
+
validateFile
|
|
7236
|
+
});
|
|
7237
|
+
return /*#__PURE__*/React__default.createElement(UploadView, Object.assign({
|
|
7238
|
+
handleClick: handleClick,
|
|
7239
|
+
accept: accept,
|
|
7240
|
+
isLoading: isLoading,
|
|
7241
|
+
progress: progress,
|
|
7242
|
+
icon: icon,
|
|
7243
|
+
text: text,
|
|
7244
|
+
maxSize: maxSize,
|
|
7245
|
+
onFileSelect: onFileSelect,
|
|
7246
|
+
validateFile: validateFile,
|
|
7247
|
+
errorMessage: errorMessage,
|
|
7248
|
+
handleFileChange: handleFileChange,
|
|
7249
|
+
selectedFile: selectedFile,
|
|
7250
|
+
videoRef: videoRef,
|
|
7251
|
+
fileInputRef: fileInputRef,
|
|
7252
|
+
previewUrl: previewUrl,
|
|
7253
|
+
thumbnailUrl: thumbnailUrl
|
|
7254
|
+
}, props));
|
|
7255
|
+
};
|
|
7256
|
+
|
|
7231
7257
|
var useModalStore = /*#__PURE__*/zustand.create(set => ({
|
|
7232
7258
|
modals: [],
|
|
7233
7259
|
onHide: name => name,
|
|
@@ -7329,7 +7355,7 @@ var HeaderIconSizes = {
|
|
|
7329
7355
|
xl: 28
|
|
7330
7356
|
};
|
|
7331
7357
|
|
|
7332
|
-
var _excluded$
|
|
7358
|
+
var _excluded$z = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
7333
7359
|
_excluded2$7 = ["children", "shadow", "isFullScreen", "shape"],
|
|
7334
7360
|
_excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
7335
7361
|
_excluded4$3 = ["children"],
|
|
@@ -7343,7 +7369,7 @@ var ModalOverlay = _ref => {
|
|
|
7343
7369
|
onClose = () => {},
|
|
7344
7370
|
position = 'center'
|
|
7345
7371
|
} = _ref,
|
|
7346
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7372
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
7347
7373
|
var handleClick = () => {
|
|
7348
7374
|
if (!isClosePrevented) onClose();
|
|
7349
7375
|
};
|
|
@@ -7411,9 +7437,8 @@ var ModalHeader = _ref3 => {
|
|
|
7411
7437
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
7412
7438
|
var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
|
|
7413
7439
|
onClick: onClose,
|
|
7414
|
-
colorScheme: "transparent",
|
|
7415
7440
|
icon: /*#__PURE__*/React__default.createElement(CloseIcon, {
|
|
7416
|
-
|
|
7441
|
+
widthHeight: HeaderIconSizes[iconSize],
|
|
7417
7442
|
color: buttonColor
|
|
7418
7443
|
}),
|
|
7419
7444
|
padding: 0,
|
|
@@ -7513,13 +7538,13 @@ Modal.Layout = ModalLayout;
|
|
|
7513
7538
|
var defaultStyles = {};
|
|
7514
7539
|
// Create a context that includes both styles and the onClick function
|
|
7515
7540
|
var TableContext = /*#__PURE__*/React__default.createContext({
|
|
7516
|
-
|
|
7541
|
+
views: defaultStyles,
|
|
7517
7542
|
onRowClick: () => {}
|
|
7518
7543
|
});
|
|
7519
7544
|
var TableProvider = _ref => {
|
|
7520
7545
|
var {
|
|
7521
7546
|
children,
|
|
7522
|
-
|
|
7547
|
+
views = defaultStyles,
|
|
7523
7548
|
onRowClick
|
|
7524
7549
|
} = _ref;
|
|
7525
7550
|
return (
|
|
@@ -7527,7 +7552,7 @@ var TableProvider = _ref => {
|
|
|
7527
7552
|
// Pass both styles and onClick to the context
|
|
7528
7553
|
React__default.createElement(TableContext.Provider, {
|
|
7529
7554
|
value: {
|
|
7530
|
-
|
|
7555
|
+
views,
|
|
7531
7556
|
onRowClick
|
|
7532
7557
|
}
|
|
7533
7558
|
}, children)
|
|
@@ -7538,82 +7563,82 @@ var useTableContext = () => React__default.useContext(TableContext);
|
|
|
7538
7563
|
|
|
7539
7564
|
var TableContainer = props => {
|
|
7540
7565
|
var {
|
|
7541
|
-
|
|
7566
|
+
views
|
|
7542
7567
|
} = useTableContext();
|
|
7543
7568
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7544
7569
|
as: "table",
|
|
7545
7570
|
borderCollapse: "collapse"
|
|
7546
|
-
},
|
|
7571
|
+
}, views.table, props));
|
|
7547
7572
|
};
|
|
7548
7573
|
var TableHead = props => {
|
|
7549
7574
|
var {
|
|
7550
|
-
|
|
7575
|
+
views
|
|
7551
7576
|
} = useTableContext();
|
|
7552
7577
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7553
7578
|
as: "thead",
|
|
7554
7579
|
borderBottom: "0.5px solid #ddd",
|
|
7555
7580
|
textAlign: "left",
|
|
7556
7581
|
color: "color.gray.400"
|
|
7557
|
-
},
|
|
7582
|
+
}, views.thead, props));
|
|
7558
7583
|
};
|
|
7559
7584
|
var TableHeadCell = props => {
|
|
7560
7585
|
var {
|
|
7561
|
-
|
|
7586
|
+
views
|
|
7562
7587
|
} = useTableContext();
|
|
7563
7588
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7564
7589
|
as: "th",
|
|
7565
7590
|
padding: "14px",
|
|
7566
7591
|
whiteSpace: "nowrap",
|
|
7567
7592
|
fontWeight: "500"
|
|
7568
|
-
},
|
|
7593
|
+
}, views.th, props));
|
|
7569
7594
|
};
|
|
7570
7595
|
var TableRow = props => {
|
|
7571
7596
|
var {
|
|
7572
|
-
|
|
7597
|
+
views,
|
|
7573
7598
|
onRowClick
|
|
7574
7599
|
} = useTableContext();
|
|
7575
7600
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7576
7601
|
as: "tr"
|
|
7577
|
-
},
|
|
7602
|
+
}, views.tr, {
|
|
7578
7603
|
onClick: onRowClick
|
|
7579
7604
|
}, props));
|
|
7580
7605
|
};
|
|
7581
7606
|
var TableCell = props => {
|
|
7582
7607
|
var {
|
|
7583
|
-
|
|
7608
|
+
views
|
|
7584
7609
|
} = useTableContext();
|
|
7585
7610
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7586
7611
|
as: "td",
|
|
7587
7612
|
padding: "14px",
|
|
7588
7613
|
whiteSpace: "nowrap",
|
|
7589
7614
|
fontWeight: props.isFirstColumn ? '400' : '300'
|
|
7590
|
-
},
|
|
7615
|
+
}, views.td, props));
|
|
7591
7616
|
};
|
|
7592
7617
|
var TableBody = props => {
|
|
7593
7618
|
var {
|
|
7594
|
-
|
|
7619
|
+
views
|
|
7595
7620
|
} = useTableContext();
|
|
7596
7621
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7597
7622
|
as: "tbody"
|
|
7598
|
-
},
|
|
7623
|
+
}, views.tbody, props));
|
|
7599
7624
|
};
|
|
7600
7625
|
var TableFooter = props => {
|
|
7601
7626
|
var {
|
|
7602
|
-
|
|
7627
|
+
views
|
|
7603
7628
|
} = useTableContext();
|
|
7604
7629
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7605
7630
|
as: "tfoot"
|
|
7606
|
-
},
|
|
7631
|
+
}, views.tfoot, props));
|
|
7607
7632
|
};
|
|
7608
7633
|
var TableCaption = props => {
|
|
7609
7634
|
var {
|
|
7610
|
-
|
|
7635
|
+
views
|
|
7611
7636
|
} = useTableContext();
|
|
7612
7637
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7613
7638
|
as: "caption",
|
|
7614
7639
|
margin: '10px 0',
|
|
7615
7640
|
color: "color.gray.400"
|
|
7616
|
-
},
|
|
7641
|
+
}, views.caption, props));
|
|
7617
7642
|
};
|
|
7618
7643
|
var TableView = _ref => {
|
|
7619
7644
|
var {
|
|
@@ -7639,11 +7664,11 @@ var TableView = _ref => {
|
|
|
7639
7664
|
var Table = _ref => {
|
|
7640
7665
|
var {
|
|
7641
7666
|
children,
|
|
7642
|
-
|
|
7667
|
+
views,
|
|
7643
7668
|
onClick
|
|
7644
7669
|
} = _ref;
|
|
7645
7670
|
return /*#__PURE__*/React__default.createElement(TableProvider, {
|
|
7646
|
-
|
|
7671
|
+
views: views,
|
|
7647
7672
|
onRowClick: onClick
|
|
7648
7673
|
}, children);
|
|
7649
7674
|
};
|
|
@@ -7657,90 +7682,147 @@ Table.Caption = TableCaption;
|
|
|
7657
7682
|
Table.Container = TableContainer;
|
|
7658
7683
|
Table.Template = TableView;
|
|
7659
7684
|
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7685
|
+
/**
|
|
7686
|
+
* Custom hook to manage the state of the active tab.
|
|
7687
|
+
* @param propTabs - The array of tab objects provided as props.
|
|
7688
|
+
* @param initialTabValue - The optional title of the tab to be initially active.
|
|
7689
|
+
* @returns An object containing the current activeTab and a function to update it.
|
|
7690
|
+
*/
|
|
7691
|
+
var useTabsState = (propTabs, initialTabValue) => {
|
|
7692
|
+
// Find the initial tab based on initialTabValue, or default to the first tab.
|
|
7693
|
+
// Ensure propTabs is not empty before accessing index 0.
|
|
7694
|
+
var findInitialTab = () => {
|
|
7695
|
+
if (!propTabs || propTabs.length === 0) {
|
|
7696
|
+
return undefined; // No tabs, no initial active tab
|
|
7697
|
+
}
|
|
7698
|
+
if (initialTabValue !== undefined) {
|
|
7699
|
+
var foundTab = propTabs.find(tab => tab.title === initialTabValue);
|
|
7700
|
+
if (foundTab) {
|
|
7701
|
+
return foundTab;
|
|
7702
|
+
}
|
|
7703
|
+
// Warn if initialTabValue is provided but not found
|
|
7704
|
+
console.warn("Tabs: initialTabValue \"" + initialTabValue + "\" not found in tabs. Defaulting to the first tab.");
|
|
7705
|
+
}
|
|
7706
|
+
return propTabs[0]; // Default to the first tab
|
|
7707
|
+
};
|
|
7708
|
+
var [activeTab, setActiveTab] = React.useState(findInitialTab);
|
|
7709
|
+
// Effect to update the active tab if the initialTabValue prop changes
|
|
7710
|
+
// or if the tabs array changes and the current active tab is no longer valid.
|
|
7711
|
+
React.useEffect(() => {
|
|
7712
|
+
var newInitialTab = findInitialTab();
|
|
7713
|
+
// Update only if the calculated initial tab is different from the current active tab
|
|
7714
|
+
// or if the current active tab is no longer in the list (and there are tabs)
|
|
7715
|
+
var currentActiveTabStillValid = activeTab && propTabs.some(t => t.title === activeTab.title);
|
|
7716
|
+
if (newInitialTab && (!currentActiveTabStillValid || initialTabValue !== undefined && (activeTab == null ? void 0 : activeTab.title) !== initialTabValue)) {
|
|
7717
|
+
setActiveTab(newInitialTab);
|
|
7718
|
+
} else if (!newInitialTab && activeTab) {
|
|
7719
|
+
// Handle case where all tabs are removed
|
|
7720
|
+
setActiveTab(undefined);
|
|
7721
|
+
}
|
|
7722
|
+
}, [propTabs, initialTabValue]); // Rerun when tabs or initial title changes
|
|
7664
7723
|
return {
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
tabsState,
|
|
7668
|
-
setTabsState
|
|
7724
|
+
activeTab,
|
|
7725
|
+
setActiveTab
|
|
7669
7726
|
};
|
|
7670
7727
|
};
|
|
7671
7728
|
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7729
|
+
/**
|
|
7730
|
+
* The presentation component for Tabs. Renders the UI based on props.
|
|
7731
|
+
*/
|
|
7732
|
+
var TabsView = _ref => {
|
|
7733
|
+
var {
|
|
7734
|
+
tabs = [],
|
|
7735
|
+
// Default to empty array
|
|
7736
|
+
activeTab,
|
|
7737
|
+
handleTabClick,
|
|
7738
|
+
views = {},
|
|
7739
|
+
// Default to empty object
|
|
7682
7740
|
renderTab,
|
|
7683
7741
|
renderContent
|
|
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
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7742
|
+
} = _ref;
|
|
7743
|
+
// If there's no active tab (e.g., tabs array is empty), render nothing or a placeholder
|
|
7744
|
+
if (!activeTab) {
|
|
7745
|
+
// Optionally render a placeholder when no tabs are active/available
|
|
7746
|
+
// return <View {...views.container}><Text>No tabs available.</Text></View>;
|
|
7747
|
+
return null; // Or simply render nothing
|
|
7748
|
+
}
|
|
7749
|
+
return (
|
|
7750
|
+
/*#__PURE__*/
|
|
7751
|
+
// Use Vertical layout for overall structure (tabs header above content)
|
|
7752
|
+
React__default.createElement(Vertical, Object.assign({
|
|
7753
|
+
width: "100%",
|
|
7754
|
+
height: '100%'
|
|
7755
|
+
}, views.container), /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({}, views.headerTabs), tabs.map(tab => {
|
|
7756
|
+
// Determine if the current tab in the loop is the active one
|
|
7757
|
+
var isActive = tab.title === activeTab.title;
|
|
7758
|
+
// Prepare the onClick handler for this specific tab
|
|
7759
|
+
var onClick = () => handleTabClick(tab);
|
|
7760
|
+
// Use the custom renderTab function if provided
|
|
7761
|
+
if (renderTab) {
|
|
7762
|
+
return renderTab(tab, isActive, onClick);
|
|
7763
|
+
}
|
|
7764
|
+
// Default rendering for a tab button
|
|
7765
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
7766
|
+
key: tab.title,
|
|
7767
|
+
onClick: onClick,
|
|
7768
|
+
borderBottomLeftRadius: 0,
|
|
7769
|
+
borderBottomRightRadius: 0
|
|
7770
|
+
}, views.tab, isActive ? views.activeTab : {}, {
|
|
7771
|
+
// Example: Set variant based on active state (can be overridden by styles)
|
|
7772
|
+
variant: isActive ? 'filled' : 'ghost',
|
|
7773
|
+
cursor: "pointer" // Ensure pointer cursor
|
|
7774
|
+
}), tab.icon, /*#__PURE__*/React__default.createElement(Text
|
|
7775
|
+
// Apply base title styles and merge activeText styles if this tab is active
|
|
7776
|
+
, Object.assign({}, views.title, isActive ? views.activeText : {}), tab.title));
|
|
7777
|
+
})), /*#__PURE__*/React__default.createElement(View, Object.assign({
|
|
7778
|
+
width: '100%',
|
|
7779
|
+
height: "100%"
|
|
7780
|
+
}, views.content), renderContent ? renderContent(activeTab) :
|
|
7781
|
+
// Otherwise, render the content property from the active tab object
|
|
7782
|
+
activeTab.content))
|
|
7783
|
+
);
|
|
7722
7784
|
};
|
|
7723
7785
|
|
|
7786
|
+
/**
|
|
7787
|
+
* Tabs component allows users to navigate between different sections of content.
|
|
7788
|
+
* It manages the active tab state and renders the corresponding content.
|
|
7789
|
+
*/
|
|
7724
7790
|
var TabsComponent = _ref => {
|
|
7725
7791
|
var {
|
|
7726
7792
|
tabs,
|
|
7727
|
-
|
|
7793
|
+
views,
|
|
7794
|
+
initialTabValue,
|
|
7795
|
+
onTabChange,
|
|
7796
|
+
renderTab,
|
|
7797
|
+
renderContent
|
|
7728
7798
|
} = _ref;
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7799
|
+
// Use the custom hook to manage the active tab state
|
|
7800
|
+
var {
|
|
7801
|
+
activeTab,
|
|
7802
|
+
setActiveTab
|
|
7803
|
+
} = useTabsState(tabs, initialTabValue);
|
|
7804
|
+
// Handler function to change the active tab and trigger the callback
|
|
7805
|
+
var handleTabClick = tab => {
|
|
7806
|
+
// Only update state and call callback if the clicked tab is different from the current one
|
|
7807
|
+
if ((activeTab == null ? void 0 : activeTab.title) !== tab.title) {
|
|
7808
|
+
setActiveTab(tab);
|
|
7809
|
+
// Call the onTabChange callback if provided
|
|
7810
|
+
if (onTabChange) {
|
|
7811
|
+
onTabChange(tab);
|
|
7812
|
+
}
|
|
7813
|
+
}
|
|
7814
|
+
};
|
|
7815
|
+
// Render the presentation component with the necessary props
|
|
7735
7816
|
return /*#__PURE__*/React__default.createElement(TabsView, {
|
|
7736
7817
|
tabs: tabs,
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7818
|
+
views: views,
|
|
7819
|
+
activeTab: activeTab,
|
|
7820
|
+
handleTabClick: handleTabClick,
|
|
7821
|
+
renderTab: renderTab,
|
|
7822
|
+
renderContent: renderContent
|
|
7742
7823
|
});
|
|
7743
7824
|
};
|
|
7825
|
+
// Export the component wrapped in React.memo for performance optimization
|
|
7744
7826
|
var Tabs = /*#__PURE__*/React__default.memo(TabsComponent);
|
|
7745
7827
|
|
|
7746
7828
|
// Declares the useToggleState function which takes defaultToggled parameter to initialize the toggle state.
|
|
@@ -7758,18 +7840,11 @@ var useToggleState = defaultToggled => {
|
|
|
7758
7840
|
};
|
|
7759
7841
|
};
|
|
7760
7842
|
|
|
7761
|
-
var
|
|
7762
|
-
sharp: 0,
|
|
7763
|
-
rounded: 4,
|
|
7764
|
-
pillShaped: 24
|
|
7765
|
-
};
|
|
7766
|
-
|
|
7767
|
-
var _excluded$z = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
7843
|
+
var _excluded$A = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
7768
7844
|
var ToggleView = _ref => {
|
|
7769
7845
|
var {
|
|
7770
7846
|
children,
|
|
7771
7847
|
shape = 'rounded',
|
|
7772
|
-
colorScheme = 'color.trueGray.400',
|
|
7773
7848
|
variant = 'ghost',
|
|
7774
7849
|
isHovered,
|
|
7775
7850
|
setIsHovered,
|
|
@@ -7778,14 +7853,14 @@ var ToggleView = _ref => {
|
|
|
7778
7853
|
setIsToggled,
|
|
7779
7854
|
onToggle
|
|
7780
7855
|
} = _ref,
|
|
7781
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7782
|
-
var toggleColor = !isDisabled ?
|
|
7856
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
7857
|
+
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
7783
7858
|
var isActive = !!(isToggle || isHovered);
|
|
7784
|
-
var
|
|
7859
|
+
var toggleVariants = {
|
|
7785
7860
|
outline: {
|
|
7786
7861
|
borderWidth: 1,
|
|
7787
7862
|
borderStyle: 'solid',
|
|
7788
|
-
borderColor:
|
|
7863
|
+
borderColor: 'color.trueGray.400'
|
|
7789
7864
|
},
|
|
7790
7865
|
link: {
|
|
7791
7866
|
borderWidth: 1,
|
|
@@ -7815,25 +7890,24 @@ var ToggleView = _ref => {
|
|
|
7815
7890
|
onMouseEnter: () => setIsHovered(true),
|
|
7816
7891
|
onMouseLeave: () => setIsHovered(false),
|
|
7817
7892
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
7818
|
-
borderRadius:
|
|
7893
|
+
borderRadius: shape === 'pillShaped' ? '50px' : '8px',
|
|
7819
7894
|
onClick: handleToggle
|
|
7820
|
-
},
|
|
7895
|
+
}, toggleVariants[variant], props), children);
|
|
7821
7896
|
};
|
|
7822
7897
|
|
|
7823
|
-
var _excluded$
|
|
7898
|
+
var _excluded$B = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
7824
7899
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
7825
7900
|
var ToggleComponent = _ref => {
|
|
7826
7901
|
var {
|
|
7827
7902
|
children,
|
|
7828
7903
|
shape,
|
|
7829
|
-
colorScheme,
|
|
7830
7904
|
variant,
|
|
7831
7905
|
isDisabled,
|
|
7832
7906
|
// Assigning a default value of false to the isToggled property if none is provided.
|
|
7833
7907
|
isToggled = false,
|
|
7834
7908
|
onToggle
|
|
7835
7909
|
} = _ref,
|
|
7836
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7910
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
7837
7911
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
7838
7912
|
var {
|
|
7839
7913
|
isHovered,
|
|
@@ -7848,7 +7922,6 @@ var ToggleComponent = _ref => {
|
|
|
7848
7922
|
// Beginning of the JSX block to render the Toggle view component.
|
|
7849
7923
|
return /*#__PURE__*/React__default.createElement(ToggleView, Object.assign({
|
|
7850
7924
|
shape: shape,
|
|
7851
|
-
colorScheme: colorScheme,
|
|
7852
7925
|
variant: variant,
|
|
7853
7926
|
isDisabled: isDisabled,
|
|
7854
7927
|
isHovered: isHovered,
|
|
@@ -7883,9 +7956,7 @@ var ToggleGroupView = _ref => {
|
|
|
7883
7956
|
// Prop 'shape' with default value 'rounded', determines the shape of the toggle buttons.
|
|
7884
7957
|
shape = 'rounded',
|
|
7885
7958
|
// Prop 'variant' with default value 'ghost' represents the visual style variant of the toggles.
|
|
7886
|
-
variant = 'ghost'
|
|
7887
|
-
// Prop 'colorScheme' with default value 'color.trueGray.400' sets the color theme for toggles.
|
|
7888
|
-
colorScheme = 'color.trueGray.400'
|
|
7959
|
+
variant = 'ghost'
|
|
7889
7960
|
} = _ref;
|
|
7890
7961
|
// handleToggle is a memoized callback that handles the toggle state changes.
|
|
7891
7962
|
var handleToggle = React.useCallback((id, isActive) => {
|
|
@@ -7907,7 +7978,6 @@ var ToggleGroupView = _ref => {
|
|
|
7907
7978
|
}, items.map(item => (/*#__PURE__*/React__default.createElement(Toggle, {
|
|
7908
7979
|
role: "toggle-" + item.id,
|
|
7909
7980
|
key: item.id,
|
|
7910
|
-
colorScheme: colorScheme,
|
|
7911
7981
|
shape: shape,
|
|
7912
7982
|
variant: variant,
|
|
7913
7983
|
isToggled: activeToggles.includes(item.id) || item.isActive,
|
|
@@ -7923,8 +7993,6 @@ var ToggleGroupComponent = _ref => {
|
|
|
7923
7993
|
items,
|
|
7924
7994
|
// Destructure 'shape' prop to define the shape of the toggle buttons
|
|
7925
7995
|
shape,
|
|
7926
|
-
// Destructure 'colorScheme' prop for toggle button styling
|
|
7927
|
-
colorScheme,
|
|
7928
7996
|
// Destructure 'variant' prop to determine the visual style of the toggle group
|
|
7929
7997
|
variant,
|
|
7930
7998
|
// Destructure 'onToggleChange' prop for the callback when toggle state changes
|
|
@@ -7938,7 +8006,6 @@ var ToggleGroupComponent = _ref => {
|
|
|
7938
8006
|
return /*#__PURE__*/React__default.createElement(ToggleGroupView, {
|
|
7939
8007
|
items: items,
|
|
7940
8008
|
shape: shape,
|
|
7941
|
-
colorScheme: colorScheme,
|
|
7942
8009
|
variant: variant,
|
|
7943
8010
|
activeToggles: activeToggles,
|
|
7944
8011
|
setActiveToggles: setActiveToggles,
|
|
@@ -8192,12 +8259,10 @@ exports.WarningIcon = WarningIcon;
|
|
|
8192
8259
|
exports.WifiIcon = WifiIcon;
|
|
8193
8260
|
exports.XIcon = XIcon;
|
|
8194
8261
|
exports.YoutubeIcon = YoutubeIcon;
|
|
8195
|
-
exports.generateThumbnail = generateThumbnail;
|
|
8196
8262
|
exports.hideMessage = hideMessage;
|
|
8197
8263
|
exports.hideModal = hideModal;
|
|
8198
8264
|
exports.showMessage = showMessage;
|
|
8199
8265
|
exports.showModal = showModal;
|
|
8200
8266
|
exports.useMessageStore = useMessageStore;
|
|
8201
8267
|
exports.useModalStore = useModalStore;
|
|
8202
|
-
exports.useUpload = useUpload;
|
|
8203
8268
|
//# sourceMappingURL=web.cjs.development.js.map
|