@app-studio/web 0.8.65 → 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 +2 -2
- 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 +371 -363
- 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 +372 -362
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +371 -363
- 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
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
} = _ref,
|
|
285
285
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
286
286
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
287
|
-
|
|
287
|
+
widthHeight: size,
|
|
288
288
|
lineHeight: size,
|
|
289
289
|
color: color,
|
|
290
290
|
display: "flex",
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
} = _ref2,
|
|
312
312
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
313
313
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
314
|
-
|
|
314
|
+
widthHeight: size,
|
|
315
315
|
color: color
|
|
316
316
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
317
317
|
viewBox: "0 0 24 24",
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
} = _ref3,
|
|
331
331
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
332
332
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
333
|
-
|
|
333
|
+
widthHeight: size,
|
|
334
334
|
color: color
|
|
335
335
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
336
336
|
viewBox: "0 0 24 24",
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
} = _ref4,
|
|
373
373
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
374
374
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
375
|
-
|
|
375
|
+
widthHeight: size,
|
|
376
376
|
color: color
|
|
377
377
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
378
378
|
viewBox: "0 0 24 24",
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
} = _ref5,
|
|
401
401
|
props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
402
402
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
403
|
-
|
|
403
|
+
widthHeight: size,
|
|
404
404
|
color: color
|
|
405
405
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
406
406
|
viewBox: "0 0 24 24",
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
} = _ref6,
|
|
434
434
|
props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
|
|
435
435
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
436
|
-
|
|
436
|
+
widthHeight: size,
|
|
437
437
|
color: color
|
|
438
438
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
439
439
|
viewBox: "0 0 24 24",
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
} = _ref7,
|
|
473
473
|
props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
474
474
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
475
|
-
|
|
475
|
+
widthHeight: size,
|
|
476
476
|
color: color
|
|
477
477
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
478
478
|
viewBox: "0 0 24 24",
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
} = _ref8,
|
|
495
495
|
props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
|
|
496
496
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
497
|
-
|
|
497
|
+
widthHeight: size,
|
|
498
498
|
color: color
|
|
499
499
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
500
500
|
viewBox: "0 0 24 24",
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
} = _ref9,
|
|
518
518
|
props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
|
|
519
519
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
520
|
-
|
|
520
|
+
widthHeight: size,
|
|
521
521
|
color: color
|
|
522
522
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
523
523
|
viewBox: "0 0 24 24",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
} = _ref10,
|
|
546
546
|
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
547
547
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
548
|
-
|
|
548
|
+
widthHeight: size,
|
|
549
549
|
color: color
|
|
550
550
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
551
551
|
viewBox: "0 0 24 24",
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
} = _ref11,
|
|
575
575
|
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
576
576
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
577
|
-
|
|
577
|
+
widthHeight: size,
|
|
578
578
|
color: color
|
|
579
579
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
580
580
|
viewBox: "0 0 24 24",
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
} = _ref12,
|
|
606
606
|
props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
607
607
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
608
|
-
|
|
608
|
+
widthHeight: size,
|
|
609
609
|
color: color
|
|
610
610
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
611
611
|
viewBox: "0 0 24 24",
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
} = _ref13,
|
|
634
634
|
props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
635
635
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
636
|
-
|
|
636
|
+
widthHeight: size,
|
|
637
637
|
color: color
|
|
638
638
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
639
639
|
viewBox: "0 0 24 24",
|
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
} = _ref14,
|
|
656
656
|
props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
|
|
657
657
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
658
|
-
|
|
658
|
+
widthHeight: size,
|
|
659
659
|
color: color
|
|
660
660
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
661
661
|
viewBox: "0 0 24 24"
|
|
@@ -681,7 +681,7 @@
|
|
|
681
681
|
} = _ref15,
|
|
682
682
|
props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
|
|
683
683
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
684
|
-
|
|
684
|
+
widthHeight: size,
|
|
685
685
|
color: color
|
|
686
686
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
687
687
|
viewBox: "0 0 24 24"
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
} = _ref16,
|
|
705
705
|
props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
|
|
706
706
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
707
|
-
|
|
707
|
+
widthHeight: size,
|
|
708
708
|
color: color
|
|
709
709
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
710
710
|
viewBox: "0 0 24 24",
|
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
} = _ref17,
|
|
729
729
|
props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
|
|
730
730
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
731
|
-
|
|
731
|
+
widthHeight: size,
|
|
732
732
|
color: color
|
|
733
733
|
}, props, {
|
|
734
734
|
"aria-label": "Information"
|
|
@@ -749,7 +749,7 @@
|
|
|
749
749
|
} = _ref18,
|
|
750
750
|
props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
|
|
751
751
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
752
|
-
|
|
752
|
+
widthHeight: size,
|
|
753
753
|
color: color
|
|
754
754
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
755
755
|
viewBox: "0 0 24 24",
|
|
@@ -768,7 +768,7 @@
|
|
|
768
768
|
} = _ref19,
|
|
769
769
|
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
770
770
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
771
|
-
|
|
771
|
+
widthHeight: size,
|
|
772
772
|
color: color
|
|
773
773
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
774
774
|
viewBox: "0 0 24 24",
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
} = _ref20,
|
|
788
788
|
props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
|
|
789
789
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
790
|
-
|
|
790
|
+
widthHeight: size,
|
|
791
791
|
color: color
|
|
792
792
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
793
793
|
viewBox: "0 0 24 24",
|
|
@@ -806,7 +806,7 @@
|
|
|
806
806
|
} = _ref21,
|
|
807
807
|
props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
|
|
808
808
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
809
|
-
|
|
809
|
+
widthHeight: size,
|
|
810
810
|
color: color
|
|
811
811
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
812
812
|
viewBox: "0 0 24 24",
|
|
@@ -825,7 +825,7 @@
|
|
|
825
825
|
} = _ref22,
|
|
826
826
|
props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
|
|
827
827
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
828
|
-
|
|
828
|
+
widthHeight: size,
|
|
829
829
|
color: color
|
|
830
830
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
831
831
|
viewBox: "0 0 24 24",
|
|
@@ -848,7 +848,7 @@
|
|
|
848
848
|
} = _ref23,
|
|
849
849
|
props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
|
|
850
850
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
851
|
-
|
|
851
|
+
widthHeight: size,
|
|
852
852
|
color: color
|
|
853
853
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
854
854
|
viewBox: "0 0 24 24",
|
|
@@ -879,7 +879,7 @@
|
|
|
879
879
|
} = _ref24,
|
|
880
880
|
props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
|
|
881
881
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
882
|
-
|
|
882
|
+
widthHeight: size,
|
|
883
883
|
color: color
|
|
884
884
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
885
885
|
viewBox: "0 0 24 24",
|
|
@@ -898,7 +898,7 @@
|
|
|
898
898
|
} = _ref25,
|
|
899
899
|
props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
|
|
900
900
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
901
|
-
|
|
901
|
+
widthHeight: size,
|
|
902
902
|
color: color
|
|
903
903
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
904
904
|
viewBox: "0 0 24 24",
|
|
@@ -917,7 +917,7 @@
|
|
|
917
917
|
} = _ref26,
|
|
918
918
|
props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
|
|
919
919
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
920
|
-
|
|
920
|
+
widthHeight: size,
|
|
921
921
|
color: color
|
|
922
922
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
923
923
|
viewBox: "0 0 24 24",
|
|
@@ -936,7 +936,7 @@
|
|
|
936
936
|
} = _ref27,
|
|
937
937
|
props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
|
|
938
938
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
939
|
-
|
|
939
|
+
widthHeight: size,
|
|
940
940
|
color: color
|
|
941
941
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
942
942
|
viewBox: "0 0 24 24",
|
|
@@ -962,7 +962,7 @@
|
|
|
962
962
|
} = _ref28,
|
|
963
963
|
props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
|
|
964
964
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
965
|
-
|
|
965
|
+
widthHeight: size,
|
|
966
966
|
color: color
|
|
967
967
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
968
968
|
viewBox: "0 0 24 24",
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
} = _ref29,
|
|
982
982
|
props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
|
|
983
983
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
984
|
-
|
|
984
|
+
widthHeight: size,
|
|
985
985
|
color: color
|
|
986
986
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
987
987
|
viewBox: "0 0 24 24",
|
|
@@ -1000,7 +1000,7 @@
|
|
|
1000
1000
|
} = _ref30,
|
|
1001
1001
|
props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
|
|
1002
1002
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1003
|
-
|
|
1003
|
+
widthHeight: size,
|
|
1004
1004
|
color: color
|
|
1005
1005
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1006
1006
|
viewBox: "0 0 24 24",
|
|
@@ -1033,7 +1033,7 @@
|
|
|
1033
1033
|
} = _ref31,
|
|
1034
1034
|
props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
|
|
1035
1035
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1036
|
-
|
|
1036
|
+
widthHeight: size,
|
|
1037
1037
|
color: color
|
|
1038
1038
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1039
1039
|
viewBox: "0 0 24 24",
|
|
@@ -1052,7 +1052,7 @@
|
|
|
1052
1052
|
} = _ref32,
|
|
1053
1053
|
props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
|
|
1054
1054
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1055
|
-
|
|
1055
|
+
widthHeight: size,
|
|
1056
1056
|
color: color
|
|
1057
1057
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1058
1058
|
viewBox: "0 0 24 24",
|
|
@@ -1087,7 +1087,7 @@
|
|
|
1087
1087
|
} = _ref33,
|
|
1088
1088
|
props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
|
|
1089
1089
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1090
|
-
|
|
1090
|
+
widthHeight: size,
|
|
1091
1091
|
color: color
|
|
1092
1092
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1093
1093
|
viewBox: "0 0 24 24",
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
} = _ref34,
|
|
1129
1129
|
props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
|
|
1130
1130
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1131
|
-
|
|
1131
|
+
widthHeight: size,
|
|
1132
1132
|
color: color
|
|
1133
1133
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1134
1134
|
viewBox: "0 0 24 24",
|
|
@@ -1149,7 +1149,7 @@
|
|
|
1149
1149
|
} = _ref35,
|
|
1150
1150
|
props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
|
|
1151
1151
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1152
|
-
|
|
1152
|
+
widthHeight: size,
|
|
1153
1153
|
color: color
|
|
1154
1154
|
}, props), /*#__PURE__*/React__default.createElement("svg", {
|
|
1155
1155
|
viewBox: "0 0 24 24",
|
|
@@ -1169,7 +1169,7 @@
|
|
|
1169
1169
|
} = _ref36,
|
|
1170
1170
|
props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
|
|
1171
1171
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1172
|
-
|
|
1172
|
+
widthHeight: size,
|
|
1173
1173
|
color: color
|
|
1174
1174
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1175
1175
|
viewBox: "0 0 24 24",
|
|
@@ -1240,7 +1240,7 @@
|
|
|
1240
1240
|
} = _ref37,
|
|
1241
1241
|
props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
|
|
1242
1242
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1243
|
-
|
|
1243
|
+
widthHeight: size,
|
|
1244
1244
|
color: color
|
|
1245
1245
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1246
1246
|
viewBox: "0 0 24 24",
|
|
@@ -1259,7 +1259,7 @@
|
|
|
1259
1259
|
} = _ref38,
|
|
1260
1260
|
props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
|
|
1261
1261
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1262
|
-
|
|
1262
|
+
widthHeight: size,
|
|
1263
1263
|
color: color
|
|
1264
1264
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1265
1265
|
viewBox: "0 0 24 24",
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
} = _ref39,
|
|
1279
1279
|
props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
|
|
1280
1280
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1281
|
-
|
|
1281
|
+
widthHeight: size,
|
|
1282
1282
|
color: color
|
|
1283
1283
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1284
1284
|
viewBox: "0 0 24 24",
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
} = _ref40,
|
|
1298
1298
|
props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
|
|
1299
1299
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1300
|
-
|
|
1300
|
+
widthHeight: size,
|
|
1301
1301
|
color: color
|
|
1302
1302
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1303
1303
|
viewBox: "0 0 24 24",
|
|
@@ -1323,7 +1323,7 @@
|
|
|
1323
1323
|
} = _ref41,
|
|
1324
1324
|
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1325
1325
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1326
|
-
|
|
1326
|
+
widthHeight: size,
|
|
1327
1327
|
color: color
|
|
1328
1328
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1329
1329
|
viewBox: "0 0 24 24",
|
|
@@ -1356,7 +1356,7 @@
|
|
|
1356
1356
|
} = _ref42,
|
|
1357
1357
|
props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
|
|
1358
1358
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1359
|
-
|
|
1359
|
+
widthHeight: size,
|
|
1360
1360
|
color: color
|
|
1361
1361
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1362
1362
|
viewBox: "0 0 24 24",
|
|
@@ -1375,7 +1375,7 @@
|
|
|
1375
1375
|
} = _ref43,
|
|
1376
1376
|
props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
|
|
1377
1377
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1378
|
-
|
|
1378
|
+
widthHeight: size,
|
|
1379
1379
|
color: color
|
|
1380
1380
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1381
1381
|
viewBox: "0 0 24 24",
|
|
@@ -1396,7 +1396,7 @@
|
|
|
1396
1396
|
} = _ref44,
|
|
1397
1397
|
props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
|
|
1398
1398
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1399
|
-
|
|
1399
|
+
widthHeight: size,
|
|
1400
1400
|
color: color
|
|
1401
1401
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1402
1402
|
viewBox: "0 0 24 24",
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
} = _ref45,
|
|
1416
1416
|
props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
|
|
1417
1417
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1418
|
-
|
|
1418
|
+
widthHeight: size,
|
|
1419
1419
|
color: color
|
|
1420
1420
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1421
1421
|
viewBox: "0 0 24 24",
|
|
@@ -1435,7 +1435,7 @@
|
|
|
1435
1435
|
} = _ref46,
|
|
1436
1436
|
props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
|
|
1437
1437
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1438
|
-
|
|
1438
|
+
widthHeight: size,
|
|
1439
1439
|
color: color
|
|
1440
1440
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1441
1441
|
viewBox: "0 0 24 24",
|
|
@@ -1454,7 +1454,7 @@
|
|
|
1454
1454
|
} = _ref47,
|
|
1455
1455
|
props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
|
|
1456
1456
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1457
|
-
|
|
1457
|
+
widthHeight: size,
|
|
1458
1458
|
color: color
|
|
1459
1459
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1460
1460
|
viewBox: "0 0 24 24",
|
|
@@ -1473,7 +1473,7 @@
|
|
|
1473
1473
|
} = _ref48,
|
|
1474
1474
|
props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
|
|
1475
1475
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1476
|
-
|
|
1476
|
+
widthHeight: size,
|
|
1477
1477
|
color: color
|
|
1478
1478
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1479
1479
|
viewBox: "0 0 24 24",
|
|
@@ -1492,7 +1492,7 @@
|
|
|
1492
1492
|
} = _ref49,
|
|
1493
1493
|
props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
|
|
1494
1494
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1495
|
-
|
|
1495
|
+
widthHeight: size,
|
|
1496
1496
|
color: color
|
|
1497
1497
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1498
1498
|
viewBox: "0 0 24 24",
|
|
@@ -1515,7 +1515,7 @@
|
|
|
1515
1515
|
} = _ref50,
|
|
1516
1516
|
props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
|
|
1517
1517
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1518
|
-
|
|
1518
|
+
widthHeight: size,
|
|
1519
1519
|
color: color
|
|
1520
1520
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1521
1521
|
viewBox: "0 0 24 24",
|
|
@@ -1538,7 +1538,7 @@
|
|
|
1538
1538
|
} = _ref51,
|
|
1539
1539
|
props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
|
|
1540
1540
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1541
|
-
|
|
1541
|
+
widthHeight: size,
|
|
1542
1542
|
color: color
|
|
1543
1543
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1544
1544
|
viewBox: "0 0 24 24",
|
|
@@ -1557,7 +1557,7 @@
|
|
|
1557
1557
|
} = _ref52,
|
|
1558
1558
|
props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
|
|
1559
1559
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1560
|
-
|
|
1560
|
+
widthHeight: size,
|
|
1561
1561
|
color: color
|
|
1562
1562
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1563
1563
|
viewBox: "0 0 24 24",
|
|
@@ -1576,7 +1576,7 @@
|
|
|
1576
1576
|
} = _ref53,
|
|
1577
1577
|
props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
|
|
1578
1578
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1579
|
-
|
|
1579
|
+
widthHeight: size,
|
|
1580
1580
|
color: color
|
|
1581
1581
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1582
1582
|
viewBox: "0 0 24 24",
|
|
@@ -1602,7 +1602,7 @@
|
|
|
1602
1602
|
} = _ref54,
|
|
1603
1603
|
props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
|
|
1604
1604
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1605
|
-
|
|
1605
|
+
widthHeight: size,
|
|
1606
1606
|
color: color
|
|
1607
1607
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1608
1608
|
viewBox: "0 0 24 24",
|
|
@@ -1621,7 +1621,7 @@
|
|
|
1621
1621
|
} = _ref55,
|
|
1622
1622
|
props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
|
|
1623
1623
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1624
|
-
|
|
1624
|
+
widthHeight: size,
|
|
1625
1625
|
color: color
|
|
1626
1626
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1627
1627
|
viewBox: "0 0 24 24",
|
|
@@ -1644,7 +1644,7 @@
|
|
|
1644
1644
|
} = _ref56,
|
|
1645
1645
|
props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
|
|
1646
1646
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1647
|
-
|
|
1647
|
+
widthHeight: size,
|
|
1648
1648
|
color: color
|
|
1649
1649
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1650
1650
|
viewBox: "0 0 24 24",
|
|
@@ -1663,7 +1663,7 @@
|
|
|
1663
1663
|
} = _ref57,
|
|
1664
1664
|
props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
|
|
1665
1665
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1666
|
-
|
|
1666
|
+
widthHeight: size,
|
|
1667
1667
|
color: color
|
|
1668
1668
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1669
1669
|
viewBox: "0 0 24 24",
|
|
@@ -1683,7 +1683,7 @@
|
|
|
1683
1683
|
} = _ref58,
|
|
1684
1684
|
props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
|
|
1685
1685
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1686
|
-
|
|
1686
|
+
widthHeight: size,
|
|
1687
1687
|
color: color
|
|
1688
1688
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1689
1689
|
viewBox: "0 0 24 24",
|
|
@@ -1702,7 +1702,7 @@
|
|
|
1702
1702
|
} = _ref59,
|
|
1703
1703
|
props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
|
|
1704
1704
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1705
|
-
|
|
1705
|
+
widthHeight: size,
|
|
1706
1706
|
color: color
|
|
1707
1707
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1708
1708
|
viewBox: "0 0 24 24",
|
|
@@ -1731,7 +1731,7 @@
|
|
|
1731
1731
|
} = _ref60,
|
|
1732
1732
|
props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
|
|
1733
1733
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1734
|
-
|
|
1734
|
+
widthHeight: size,
|
|
1735
1735
|
color: color
|
|
1736
1736
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1737
1737
|
viewBox: "0 0 24 24",
|
|
@@ -1752,7 +1752,7 @@
|
|
|
1752
1752
|
} = _ref61,
|
|
1753
1753
|
props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
|
|
1754
1754
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1755
|
-
|
|
1755
|
+
widthHeight: size,
|
|
1756
1756
|
color: color
|
|
1757
1757
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1758
1758
|
viewBox: "0 0 24 24",
|
|
@@ -1771,7 +1771,7 @@
|
|
|
1771
1771
|
} = _ref62,
|
|
1772
1772
|
props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
|
|
1773
1773
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1774
|
-
|
|
1774
|
+
widthHeight: size,
|
|
1775
1775
|
color: color
|
|
1776
1776
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1777
1777
|
viewBox: "0 0 24 24",
|
|
@@ -1796,7 +1796,7 @@
|
|
|
1796
1796
|
} = _ref63,
|
|
1797
1797
|
props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
|
|
1798
1798
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1799
|
-
|
|
1799
|
+
widthHeight: size,
|
|
1800
1800
|
color: color
|
|
1801
1801
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1802
1802
|
viewBox: "0 0 24 24",
|
|
@@ -1821,7 +1821,7 @@
|
|
|
1821
1821
|
} = _ref64,
|
|
1822
1822
|
props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
|
|
1823
1823
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1824
|
-
|
|
1824
|
+
widthHeight: size,
|
|
1825
1825
|
color: color
|
|
1826
1826
|
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
1827
1827
|
viewBox: "0 0 24 24",
|
|
@@ -1922,7 +1922,7 @@
|
|
|
1922
1922
|
CalendarIcon: CalendarIcon
|
|
1923
1923
|
};
|
|
1924
1924
|
|
|
1925
|
-
// Define a constant object 'Themes' exporting various theme
|
|
1925
|
+
// Define a constant object 'Themes' exporting various theme views.
|
|
1926
1926
|
var Themes = {
|
|
1927
1927
|
// Start of the 'default' theme definition with style properties.
|
|
1928
1928
|
default: {
|
|
@@ -1935,7 +1935,7 @@
|
|
|
1935
1935
|
color: 'color.blackAlpha.800'
|
|
1936
1936
|
}
|
|
1937
1937
|
},
|
|
1938
|
-
// The 'info' theme with unique container and content
|
|
1938
|
+
// The 'info' theme with unique container and content views.
|
|
1939
1939
|
info: {
|
|
1940
1940
|
container: {
|
|
1941
1941
|
backgroundColor: 'color.blue.200',
|
|
@@ -1946,7 +1946,7 @@
|
|
|
1946
1946
|
color: '#60a5fa'
|
|
1947
1947
|
}
|
|
1948
1948
|
},
|
|
1949
|
-
// Specifies the 'success' theme with corresponding container and content
|
|
1949
|
+
// Specifies the 'success' theme with corresponding container and content views.
|
|
1950
1950
|
success: {
|
|
1951
1951
|
container: {
|
|
1952
1952
|
backgroundColor: 'color.green.200',
|
|
@@ -1957,7 +1957,7 @@
|
|
|
1957
1957
|
color: '#22c55e'
|
|
1958
1958
|
}
|
|
1959
1959
|
},
|
|
1960
|
-
// Start of the 'error' theme with its characteristic
|
|
1960
|
+
// Start of the 'error' theme with its characteristic views.
|
|
1961
1961
|
error: {
|
|
1962
1962
|
container: {
|
|
1963
1963
|
backgroundColor: 'color.red.200',
|
|
@@ -1968,7 +1968,7 @@
|
|
|
1968
1968
|
color: '#ef4444'
|
|
1969
1969
|
}
|
|
1970
1970
|
},
|
|
1971
|
-
// Introduction of the 'warning' theme
|
|
1971
|
+
// Introduction of the 'warning' theme views.
|
|
1972
1972
|
warning: {
|
|
1973
1973
|
container: {
|
|
1974
1974
|
backgroundColor: 'color.orange.200',
|
|
@@ -1983,11 +1983,11 @@
|
|
|
1983
1983
|
|
|
1984
1984
|
// Defines AlertView as a functional component using destructuring to extract props.
|
|
1985
1985
|
var AlertView = _ref => {
|
|
1986
|
-
var
|
|
1986
|
+
var _views$icon$color;
|
|
1987
1987
|
var {
|
|
1988
1988
|
icon,
|
|
1989
1989
|
title,
|
|
1990
|
-
|
|
1990
|
+
views,
|
|
1991
1991
|
description,
|
|
1992
1992
|
// Sets a default variant prop to 'default' if none is provided.
|
|
1993
1993
|
variant = 'default'
|
|
@@ -1999,20 +1999,20 @@
|
|
|
1999
1999
|
borderStyle: "solid",
|
|
2000
2000
|
padding: 16,
|
|
2001
2001
|
flexWrap: "nowrap"
|
|
2002
|
-
},
|
|
2002
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(View, {
|
|
2003
2003
|
alignSelf: 'center'
|
|
2004
2004
|
}, icon ? icon : (/*#__PURE__*/React__default.createElement(WarningIcon, {
|
|
2005
2005
|
size: 24,
|
|
2006
|
-
color: (
|
|
2006
|
+
color: (_views$icon$color = views == null ? void 0 : views.icon.color) != null ? _views$icon$color : Themes[variant].content.color
|
|
2007
2007
|
}))), /*#__PURE__*/React__default.createElement(Vertical, {
|
|
2008
2008
|
gap: 10
|
|
2009
2009
|
}, /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2010
2010
|
fontSize: "16px",
|
|
2011
2011
|
color: Themes[variant].content.color
|
|
2012
|
-
},
|
|
2012
|
+
}, views == null ? void 0 : views.title), title), /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2013
2013
|
fontSize: "14px",
|
|
2014
2014
|
color: Themes[variant].content.color
|
|
2015
|
-
},
|
|
2015
|
+
}, views == null ? void 0 : views.description), description)));
|
|
2016
2016
|
};
|
|
2017
2017
|
|
|
2018
2018
|
// Definition of the AlertComponent functional component with destructured props.
|
|
@@ -2020,14 +2020,14 @@
|
|
|
2020
2020
|
var {
|
|
2021
2021
|
icon,
|
|
2022
2022
|
title,
|
|
2023
|
-
|
|
2023
|
+
views,
|
|
2024
2024
|
description,
|
|
2025
2025
|
variant
|
|
2026
2026
|
} = _ref;
|
|
2027
2027
|
return /*#__PURE__*/React__default.createElement(AlertView, {
|
|
2028
2028
|
icon: icon,
|
|
2029
2029
|
title: title,
|
|
2030
|
-
|
|
2030
|
+
views: views,
|
|
2031
2031
|
description: description,
|
|
2032
2032
|
variant: variant
|
|
2033
2033
|
});
|
|
@@ -2101,7 +2101,7 @@
|
|
|
2101
2101
|
src,
|
|
2102
2102
|
size = 'md',
|
|
2103
2103
|
fallback = 'IM',
|
|
2104
|
-
|
|
2104
|
+
views,
|
|
2105
2105
|
imageError,
|
|
2106
2106
|
setImageError,
|
|
2107
2107
|
onClick = () => {}
|
|
@@ -2111,7 +2111,7 @@
|
|
|
2111
2111
|
// Initiates a style object for the image with an objectFit property and spreads additional image styles if provided.
|
|
2112
2112
|
var imageStyle = Object.assign({
|
|
2113
2113
|
objectFit: 'cover'
|
|
2114
|
-
}, (
|
|
2114
|
+
}, (views == null ? void 0 : views.image) || {});
|
|
2115
2115
|
// Start of the JSX returned by the AvatarView component, which uses the Center component as its root element.
|
|
2116
2116
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
2117
2117
|
role: "avatar",
|
|
@@ -2124,7 +2124,7 @@
|
|
|
2124
2124
|
borderColor: imageError ? 'black' : 'transparent',
|
|
2125
2125
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
|
|
2126
2126
|
onClick: onClick
|
|
2127
|
-
},
|
|
2127
|
+
}, views == null ? void 0 : views.container), !imageError ? (/*#__PURE__*/React__default.createElement(appStudio.Image, {
|
|
2128
2128
|
alt: "IM",
|
|
2129
2129
|
src: src,
|
|
2130
2130
|
style: imageStyle,
|
|
@@ -2133,7 +2133,7 @@
|
|
|
2133
2133
|
onError: () => setImageError(true)
|
|
2134
2134
|
})) : (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2135
2135
|
size: size
|
|
2136
|
-
},
|
|
2136
|
+
}, views == null ? void 0 : views.fallback), fallback)));
|
|
2137
2137
|
};
|
|
2138
2138
|
|
|
2139
2139
|
// Defines the AvatarComponent functional component with destructured props from AvatarProps type.
|
|
@@ -2141,7 +2141,7 @@
|
|
|
2141
2141
|
var {
|
|
2142
2142
|
src,
|
|
2143
2143
|
size,
|
|
2144
|
-
|
|
2144
|
+
views,
|
|
2145
2145
|
fallback,
|
|
2146
2146
|
onClick
|
|
2147
2147
|
} = _ref;
|
|
@@ -2154,7 +2154,7 @@
|
|
|
2154
2154
|
return /*#__PURE__*/React__default.createElement(AvatarView, {
|
|
2155
2155
|
src: src,
|
|
2156
2156
|
size: size,
|
|
2157
|
-
|
|
2157
|
+
views: views,
|
|
2158
2158
|
fallback: fallback,
|
|
2159
2159
|
imageError: imageError,
|
|
2160
2160
|
setImageError: setImageError,
|
|
@@ -2225,17 +2225,16 @@
|
|
|
2225
2225
|
var {
|
|
2226
2226
|
// Declaring the functional component BadgeView with BadgeProps as its type for props.
|
|
2227
2227
|
content,
|
|
2228
|
-
// Destructuring props with default values for shape,
|
|
2228
|
+
// Destructuring props with default values for shape, variant, size, and views.
|
|
2229
2229
|
position,
|
|
2230
2230
|
shape = 'pillShaped',
|
|
2231
|
-
colorScheme = 'theme.primary',
|
|
2232
2231
|
variant = 'filled',
|
|
2233
2232
|
size = 'md',
|
|
2234
|
-
|
|
2233
|
+
views
|
|
2235
2234
|
} = _ref;
|
|
2236
2235
|
var BadgeVariants = {
|
|
2237
2236
|
filled: {
|
|
2238
|
-
backgroundColor:
|
|
2237
|
+
backgroundColor: 'theme.primary',
|
|
2239
2238
|
color: 'color.white',
|
|
2240
2239
|
borderWidth: 1,
|
|
2241
2240
|
borderStyle: 'solid',
|
|
@@ -2246,23 +2245,23 @@
|
|
|
2246
2245
|
backgroundColor: 'transparent',
|
|
2247
2246
|
borderWidth: 1,
|
|
2248
2247
|
borderStyle: 'solid',
|
|
2249
|
-
borderColor:
|
|
2250
|
-
color:
|
|
2248
|
+
borderColor: 'theme.primary',
|
|
2249
|
+
color: 'theme.primary'
|
|
2251
2250
|
},
|
|
2252
2251
|
link: {
|
|
2253
2252
|
backgroundColor: 'transparent',
|
|
2254
2253
|
// Rendering the Badge component using the Center layout component with combinedStyles applied.
|
|
2255
2254
|
borderWidth: 1,
|
|
2256
|
-
// Inserting a Text component into the badge to display the content, with dynamic size and additional text
|
|
2255
|
+
// Inserting a Text component into the badge to display the content, with dynamic size and additional text views.
|
|
2257
2256
|
borderStyle: 'solid',
|
|
2258
2257
|
borderColor: 'transparent',
|
|
2259
|
-
color:
|
|
2258
|
+
color: 'theme.primary',
|
|
2260
2259
|
// Exporting BadgeView to be used in other parts of the application.
|
|
2261
2260
|
textDecoration: 'underline'
|
|
2262
2261
|
},
|
|
2263
2262
|
ghost: {
|
|
2264
2263
|
backgroundColor: 'transparent',
|
|
2265
|
-
color:
|
|
2264
|
+
color: 'color.trueGray.400',
|
|
2266
2265
|
borderWidth: 1,
|
|
2267
2266
|
borderStyle: 'solid',
|
|
2268
2267
|
borderColor: 'transparent'
|
|
@@ -2271,13 +2270,13 @@
|
|
|
2271
2270
|
var combinedStyles = Object.assign({
|
|
2272
2271
|
width: 'fit-content',
|
|
2273
2272
|
borderRadius: BadgeShapes[shape]
|
|
2274
|
-
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {},
|
|
2273
|
+
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
|
|
2275
2274
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
2276
2275
|
role: "badge"
|
|
2277
2276
|
}, combinedStyles), /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2278
2277
|
role: "badgeText",
|
|
2279
2278
|
size: size
|
|
2280
|
-
},
|
|
2279
|
+
}, views == null ? void 0 : views.text), content));
|
|
2281
2280
|
};
|
|
2282
2281
|
|
|
2283
2282
|
// Importing type definitions for BadgeProps that will be used to type-check the Badge component's props.
|
|
@@ -2288,22 +2287,19 @@
|
|
|
2288
2287
|
// Exporting the Badge as a functional component from this module.
|
|
2289
2288
|
shape,
|
|
2290
2289
|
// Destructuring the props in the component function parameter list, to directly access individual properties.
|
|
2291
|
-
colorScheme,
|
|
2292
|
-
// The functional component Badge is implicitly returning the BadgeView component.
|
|
2293
2290
|
position,
|
|
2294
2291
|
// Passing all the destructured props to the BadgeView component to maintain the same API surface.
|
|
2295
2292
|
variant,
|
|
2296
2293
|
size,
|
|
2297
|
-
|
|
2294
|
+
views
|
|
2298
2295
|
} = _ref;
|
|
2299
2296
|
return /*#__PURE__*/React__default.createElement(BadgeView, {
|
|
2300
2297
|
content: content,
|
|
2301
2298
|
shape: shape,
|
|
2302
|
-
colorScheme: colorScheme,
|
|
2303
2299
|
position: position,
|
|
2304
2300
|
variant: variant,
|
|
2305
2301
|
size: size,
|
|
2306
|
-
|
|
2302
|
+
views: views
|
|
2307
2303
|
});
|
|
2308
2304
|
};
|
|
2309
2305
|
|
|
@@ -2342,7 +2338,7 @@
|
|
|
2342
2338
|
'6xl': 64
|
|
2343
2339
|
};
|
|
2344
2340
|
|
|
2345
|
-
var _excluded$7 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "
|
|
2341
|
+
var _excluded$7 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
|
|
2346
2342
|
// Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
|
|
2347
2343
|
var LinkView = _ref => {
|
|
2348
2344
|
var {
|
|
@@ -2358,7 +2354,7 @@
|
|
|
2358
2354
|
// Boolean indicating if the link leads to an external resource.
|
|
2359
2355
|
isExternal = false,
|
|
2360
2356
|
// Custom styles for the icon and text, provided via a styles object.
|
|
2361
|
-
|
|
2357
|
+
views = {
|
|
2362
2358
|
icon: {},
|
|
2363
2359
|
text: {}
|
|
2364
2360
|
},
|
|
@@ -2377,12 +2373,12 @@
|
|
|
2377
2373
|
onMouseEnter: handleHover,
|
|
2378
2374
|
onMouseLeave: handleHover,
|
|
2379
2375
|
textDecoration: isHovered || underline === 'underline' ? 'underline !important' : 'none'
|
|
2380
|
-
},
|
|
2376
|
+
}, views.text, props), /*#__PURE__*/React__default.createElement(Horizontal, {
|
|
2381
2377
|
gap: 3,
|
|
2382
2378
|
alignItems: "center",
|
|
2383
2379
|
flexWrap: "nowrap"
|
|
2384
2380
|
}, children, isExternal && /*#__PURE__*/React__default.createElement(ExternalLinkIcon, {
|
|
2385
|
-
|
|
2381
|
+
widthHeight: IconSizes[iconSize]
|
|
2386
2382
|
}))));
|
|
2387
2383
|
};
|
|
2388
2384
|
|
|
@@ -2697,7 +2693,7 @@
|
|
|
2697
2693
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
2698
2694
|
var Loader = LoaderComponent;
|
|
2699
2695
|
|
|
2700
|
-
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "
|
|
2696
|
+
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"];
|
|
2701
2697
|
var contrast = /*#__PURE__*/require('contrast');
|
|
2702
2698
|
var ButtonView = _ref => {
|
|
2703
2699
|
var _props$onClick;
|
|
@@ -2723,7 +2719,6 @@
|
|
|
2723
2719
|
variant = 'filled',
|
|
2724
2720
|
iconPosition = 'left',
|
|
2725
2721
|
// Defines CSS properties for 'filled' variant of the button with conditional styles based on reverse state.
|
|
2726
|
-
colorScheme = 'theme.primary',
|
|
2727
2722
|
shape = 'rounded',
|
|
2728
2723
|
onClick = () => {},
|
|
2729
2724
|
loaderProps = {},
|
|
@@ -2747,7 +2742,7 @@
|
|
|
2747
2742
|
var defaultNativeProps = {
|
|
2748
2743
|
disabled: !isActive
|
|
2749
2744
|
};
|
|
2750
|
-
var buttonColor = isActive ?
|
|
2745
|
+
var buttonColor = isActive ? 'theme.primary' : 'theme.disabled';
|
|
2751
2746
|
var hovering = isHovered && effect === 'hover';
|
|
2752
2747
|
var reverse = isHovered && effect === 'reverse';
|
|
2753
2748
|
var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
|
|
@@ -2765,7 +2760,7 @@
|
|
|
2765
2760
|
// Defines CSS properties for 'ghost' variant of the button with conditional styles based on reverse state.
|
|
2766
2761
|
borderWidth: 1,
|
|
2767
2762
|
borderStyle: 'solid',
|
|
2768
|
-
borderColor: reverse ? buttonColor :
|
|
2763
|
+
borderColor: reverse ? buttonColor : 'theme.primary',
|
|
2769
2764
|
// Fetches size-specific styles from ButtonSizes based on the 'size' prop.
|
|
2770
2765
|
color: reverse ? 'white' : buttonColor
|
|
2771
2766
|
},
|
|
@@ -2823,8 +2818,7 @@
|
|
|
2823
2818
|
transform: 'translateY(-5px)'
|
|
2824
2819
|
} : {}, 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({
|
|
2825
2820
|
to: to,
|
|
2826
|
-
textDecorationColor:
|
|
2827
|
-
colorScheme: colorScheme,
|
|
2821
|
+
textDecorationColor: 'theme.primary',
|
|
2828
2822
|
isExternal: isExternal
|
|
2829
2823
|
}, linkProps), content)) : content);
|
|
2830
2824
|
};
|
|
@@ -2861,8 +2855,7 @@
|
|
|
2861
2855
|
var FileSVG = _ref => {
|
|
2862
2856
|
var {
|
|
2863
2857
|
src,
|
|
2864
|
-
color
|
|
2865
|
-
themeMode: elementMode
|
|
2858
|
+
color
|
|
2866
2859
|
} = _ref,
|
|
2867
2860
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2868
2861
|
var {
|
|
@@ -2870,8 +2863,12 @@
|
|
|
2870
2863
|
themeMode
|
|
2871
2864
|
} = appStudio.useTheme();
|
|
2872
2865
|
var Colorprops = color ? {
|
|
2873
|
-
fill: getColor(color,
|
|
2874
|
-
|
|
2866
|
+
fill: getColor(color, {
|
|
2867
|
+
themeMode
|
|
2868
|
+
}),
|
|
2869
|
+
stroke: getColor(color, {
|
|
2870
|
+
themeMode
|
|
2871
|
+
})
|
|
2875
2872
|
} : {};
|
|
2876
2873
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({}, props), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({}, Colorprops, {
|
|
2877
2874
|
content: 'url("' + src + '")',
|
|
@@ -2934,11 +2931,11 @@
|
|
|
2934
2931
|
};
|
|
2935
2932
|
};
|
|
2936
2933
|
|
|
2937
|
-
var _excluded$b = ["children", "
|
|
2934
|
+
var _excluded$b = ["children", "views"];
|
|
2938
2935
|
var HelperText = _ref => {
|
|
2939
2936
|
var {
|
|
2940
2937
|
children,
|
|
2941
|
-
|
|
2938
|
+
views = {
|
|
2942
2939
|
helperText: {}
|
|
2943
2940
|
}
|
|
2944
2941
|
} = _ref,
|
|
@@ -2948,22 +2945,22 @@
|
|
|
2948
2945
|
marginVertical: 0,
|
|
2949
2946
|
marginHorizontal: 0,
|
|
2950
2947
|
color: 'theme.text.dark'
|
|
2951
|
-
},
|
|
2948
|
+
}, views['helperText'], props), children);
|
|
2952
2949
|
};
|
|
2953
2950
|
|
|
2954
|
-
var _excluded$c = ["children", "helperText", "error", "
|
|
2951
|
+
var _excluded$c = ["children", "helperText", "error", "views"];
|
|
2955
2952
|
var FieldContainer = _ref => {
|
|
2956
2953
|
var {
|
|
2957
2954
|
children,
|
|
2958
2955
|
helperText,
|
|
2959
2956
|
error = false,
|
|
2960
|
-
|
|
2957
|
+
views
|
|
2961
2958
|
} = _ref,
|
|
2962
2959
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
2963
2960
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
2964
2961
|
gap: 5,
|
|
2965
2962
|
position: "relative"
|
|
2966
|
-
}, props), children, !error && helperText && /*#__PURE__*/React__default.createElement(HelperText, Object.assign({},
|
|
2963
|
+
}, props), children, !error && helperText && /*#__PURE__*/React__default.createElement(HelperText, Object.assign({}, views), helperText), error && (/*#__PURE__*/React__default.createElement(Text, {
|
|
2967
2964
|
size: "xs",
|
|
2968
2965
|
marginVertical: 0,
|
|
2969
2966
|
marginHorizontal: 0,
|
|
@@ -3018,7 +3015,7 @@
|
|
|
3018
3015
|
paddingRight: 16
|
|
3019
3016
|
};
|
|
3020
3017
|
|
|
3021
|
-
var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "
|
|
3018
|
+
var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
3022
3019
|
var FieldContent = _ref => {
|
|
3023
3020
|
var {
|
|
3024
3021
|
shadow,
|
|
@@ -3032,14 +3029,13 @@
|
|
|
3032
3029
|
isHovered = false,
|
|
3033
3030
|
isDisabled = false,
|
|
3034
3031
|
isReadOnly = false,
|
|
3035
|
-
|
|
3036
|
-
styles = {
|
|
3032
|
+
views = {
|
|
3037
3033
|
pickerBox: {}
|
|
3038
3034
|
}
|
|
3039
3035
|
} = _ref,
|
|
3040
3036
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3041
3037
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
3042
|
-
var color = error ? 'error' : isInteractive ?
|
|
3038
|
+
var color = error ? 'error' : isInteractive ? 'theme.primary' : 'midgray';
|
|
3043
3039
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
3044
3040
|
gap: 10,
|
|
3045
3041
|
width: "100%",
|
|
@@ -3055,7 +3051,7 @@
|
|
|
3055
3051
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
3056
3052
|
// filter={isHovered ? 'brightness(1)':'brightness(0.97)'}
|
|
3057
3053
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
3058
|
-
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant],
|
|
3054
|
+
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
3059
3055
|
};
|
|
3060
3056
|
|
|
3061
3057
|
var _excluded$e = ["children"];
|
|
@@ -3103,13 +3099,13 @@
|
|
|
3103
3099
|
},
|
|
3104
3100
|
h5: {
|
|
3105
3101
|
fontSize: 24,
|
|
3106
|
-
// Set the 'h5' heading tag
|
|
3102
|
+
// Set the 'h5' heading tag views, opting for no additional letter spacing.
|
|
3107
3103
|
lineHeight: 28,
|
|
3108
3104
|
letterSpacing: 0
|
|
3109
3105
|
},
|
|
3110
3106
|
h6: {
|
|
3111
3107
|
fontSize: 20,
|
|
3112
|
-
// Set the 'h6' heading tag
|
|
3108
|
+
// Set the 'h6' heading tag views, with the smallest font size and a subtle letter spacing.
|
|
3113
3109
|
lineHeight: 24,
|
|
3114
3110
|
letterSpacing: 0.15
|
|
3115
3111
|
}
|
|
@@ -3163,14 +3159,14 @@
|
|
|
3163
3159
|
var Label = LabelComponent;
|
|
3164
3160
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
3165
3161
|
|
|
3166
|
-
var _excluded$g = ["children", "size", "error", "color", "
|
|
3162
|
+
var _excluded$g = ["children", "size", "error", "color", "views", "helperText"];
|
|
3167
3163
|
var FieldLabel = _ref => {
|
|
3168
3164
|
var {
|
|
3169
3165
|
children,
|
|
3170
3166
|
size = 'md',
|
|
3171
3167
|
error = false,
|
|
3172
3168
|
color = 'theme.primary',
|
|
3173
|
-
|
|
3169
|
+
views = {
|
|
3174
3170
|
label: {}
|
|
3175
3171
|
}
|
|
3176
3172
|
} = _ref,
|
|
@@ -3184,7 +3180,7 @@
|
|
|
3184
3180
|
position: "absolute",
|
|
3185
3181
|
color: error ? 'error' : color,
|
|
3186
3182
|
fontSize: LabelSizes[size]
|
|
3187
|
-
},
|
|
3183
|
+
}, views['label'], props), children);
|
|
3188
3184
|
};
|
|
3189
3185
|
|
|
3190
3186
|
var _excluded$h = ["children"];
|
|
@@ -3212,7 +3208,7 @@
|
|
|
3212
3208
|
var _excluded$i = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
3213
3209
|
_excluded2$3 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3214
3210
|
_excluded3$2 = ["option", "size", "removeOption"],
|
|
3215
|
-
_excluded4$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "
|
|
3211
|
+
_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"];
|
|
3216
3212
|
// Defines a component to render individual selection items within a list.
|
|
3217
3213
|
var Item = _ref => {
|
|
3218
3214
|
var {
|
|
@@ -3246,7 +3242,7 @@
|
|
|
3246
3242
|
var _ref3;
|
|
3247
3243
|
var {
|
|
3248
3244
|
size = 'md',
|
|
3249
|
-
|
|
3245
|
+
views = {
|
|
3250
3246
|
field: {},
|
|
3251
3247
|
text: {}
|
|
3252
3248
|
},
|
|
@@ -3267,7 +3263,7 @@
|
|
|
3267
3263
|
backgroundColor: 'transparent',
|
|
3268
3264
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3269
3265
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3270
|
-
},
|
|
3266
|
+
}, views['field'], views['text']);
|
|
3271
3267
|
var option = options.length > 0 && options.find(option => option.value === value);
|
|
3272
3268
|
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 :
|
|
3273
3269
|
// If value is an array and not empty, render MultiSelect options
|
|
@@ -3320,7 +3316,7 @@
|
|
|
3320
3316
|
var DropDown = _ref5 => {
|
|
3321
3317
|
var {
|
|
3322
3318
|
size,
|
|
3323
|
-
|
|
3319
|
+
views = {
|
|
3324
3320
|
dropDown: {}
|
|
3325
3321
|
},
|
|
3326
3322
|
options,
|
|
@@ -3367,10 +3363,10 @@
|
|
|
3367
3363
|
display: 'none'
|
|
3368
3364
|
}
|
|
3369
3365
|
}
|
|
3370
|
-
}, shadow,
|
|
3366
|
+
}, shadow, views['dropDown']), options.length > 0 && options.map((option, index) => (/*#__PURE__*/React__default.createElement(Item, Object.assign({
|
|
3371
3367
|
key: option.value,
|
|
3372
3368
|
size: size,
|
|
3373
|
-
style:
|
|
3369
|
+
style: views['text'],
|
|
3374
3370
|
option: option,
|
|
3375
3371
|
callback: handleCallback,
|
|
3376
3372
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
@@ -3420,10 +3416,9 @@
|
|
|
3420
3416
|
options = [],
|
|
3421
3417
|
shadow = {},
|
|
3422
3418
|
size = 'md',
|
|
3423
|
-
colorScheme = 'theme.primary',
|
|
3424
3419
|
shape = 'default',
|
|
3425
3420
|
variant = 'default',
|
|
3426
|
-
|
|
3421
|
+
views = {
|
|
3427
3422
|
text: {},
|
|
3428
3423
|
icon: {},
|
|
3429
3424
|
dropDown: {},
|
|
@@ -3467,31 +3462,30 @@
|
|
|
3467
3462
|
role: "SelectBox",
|
|
3468
3463
|
helperText: helperText,
|
|
3469
3464
|
error: error,
|
|
3470
|
-
|
|
3465
|
+
views: views,
|
|
3471
3466
|
onClick: isDisabled || isReadOnly ? () => {} : handleClick
|
|
3472
3467
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
3473
3468
|
label: label,
|
|
3474
3469
|
size: size,
|
|
3475
3470
|
error: error,
|
|
3476
3471
|
shape: shape,
|
|
3477
|
-
|
|
3472
|
+
views: views,
|
|
3478
3473
|
shadow: shadow,
|
|
3479
3474
|
variant: variant,
|
|
3480
3475
|
value: value,
|
|
3481
|
-
color:
|
|
3476
|
+
color: 'theme.primary',
|
|
3482
3477
|
isHovered: isHovered,
|
|
3483
3478
|
isDisabled: isDisabled,
|
|
3484
3479
|
isReadOnly: isReadOnly,
|
|
3485
3480
|
isFocused: isFocused,
|
|
3486
3481
|
isWithLabel: isWithLabel,
|
|
3487
|
-
colorScheme: colorScheme,
|
|
3488
3482
|
onMouseEnter: handleHover,
|
|
3489
3483
|
onMouseLeave: handleHover
|
|
3490
3484
|
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
3491
3485
|
htmlFor: id,
|
|
3492
|
-
color:
|
|
3486
|
+
color: 'theme.primary',
|
|
3493
3487
|
error: error
|
|
3494
|
-
},
|
|
3488
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(HiddenSelect, Object.assign({
|
|
3495
3489
|
id: id,
|
|
3496
3490
|
name: name,
|
|
3497
3491
|
options: options,
|
|
@@ -3504,7 +3498,7 @@
|
|
|
3504
3498
|
}, props)), /*#__PURE__*/React__default.createElement(SelectBox, {
|
|
3505
3499
|
options: options,
|
|
3506
3500
|
size: size,
|
|
3507
|
-
|
|
3501
|
+
views: views,
|
|
3508
3502
|
value: value,
|
|
3509
3503
|
isDisabled: isDisabled,
|
|
3510
3504
|
placeholder: placeholder,
|
|
@@ -3512,16 +3506,16 @@
|
|
|
3512
3506
|
})), /*#__PURE__*/React__default.createElement(FieldIcons, null, !isReadOnly && !isDisabled && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, hide ? (/*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
3513
3507
|
color: "inherit",
|
|
3514
3508
|
size: IconSizes$2[size],
|
|
3515
|
-
style:
|
|
3509
|
+
style: views.icon,
|
|
3516
3510
|
orientation: "down"
|
|
3517
3511
|
})) : (/*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
3518
3512
|
color: "inherit",
|
|
3519
3513
|
orientation: "up",
|
|
3520
3514
|
size: IconSizes$2[size],
|
|
3521
|
-
style:
|
|
3515
|
+
style: views.icon
|
|
3522
3516
|
})))))), !hide && (/*#__PURE__*/React__default.createElement(DropDown, {
|
|
3523
3517
|
size: size,
|
|
3524
|
-
|
|
3518
|
+
views: views,
|
|
3525
3519
|
options: options,
|
|
3526
3520
|
callback: handleCallback,
|
|
3527
3521
|
highlightedIndex: highlightedIndex,
|
|
@@ -3685,7 +3679,7 @@
|
|
|
3685
3679
|
}
|
|
3686
3680
|
};
|
|
3687
3681
|
|
|
3688
|
-
var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "
|
|
3682
|
+
var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
3689
3683
|
var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3690
3684
|
type: "checkbox"
|
|
3691
3685
|
}, props));
|
|
@@ -3699,7 +3693,6 @@
|
|
|
3699
3693
|
labelPosition = 'right',
|
|
3700
3694
|
shadow = {},
|
|
3701
3695
|
size = 'sm',
|
|
3702
|
-
colorScheme = 'theme.primary',
|
|
3703
3696
|
value = false,
|
|
3704
3697
|
isHovered = false,
|
|
3705
3698
|
isDisabled = false,
|
|
@@ -3709,7 +3702,7 @@
|
|
|
3709
3702
|
onChange,
|
|
3710
3703
|
setValue = () => {},
|
|
3711
3704
|
setIsHovered = () => {},
|
|
3712
|
-
|
|
3705
|
+
views = {
|
|
3713
3706
|
slider: {},
|
|
3714
3707
|
circle: {},
|
|
3715
3708
|
label: {}
|
|
@@ -3731,7 +3724,7 @@
|
|
|
3731
3724
|
height: 'fit-content',
|
|
3732
3725
|
width: 'fit-content',
|
|
3733
3726
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'
|
|
3734
|
-
},
|
|
3727
|
+
}, views.label)
|
|
3735
3728
|
};
|
|
3736
3729
|
return /*#__PURE__*/React__default.createElement(Label, Object.assign({
|
|
3737
3730
|
htmlFor: id,
|
|
@@ -3755,12 +3748,12 @@
|
|
|
3755
3748
|
marginBottom: 5,
|
|
3756
3749
|
filter: isHovered && value ? 'brightness(0.9)' : 'brightness(1)',
|
|
3757
3750
|
transition: "justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
3758
|
-
backgroundColor: isDisabled ? 'disabled' : value ?
|
|
3751
|
+
backgroundColor: isDisabled ? 'disabled' : value ? 'theme.primary' : 'lightgray',
|
|
3759
3752
|
justifyContent: activeChild ? 'space-between' : value ? 'flex-end' : 'flex-start'
|
|
3760
|
-
}, shadow, SliderPadding[size], SliderSizes[size],
|
|
3753
|
+
}, shadow, SliderPadding[size], SliderSizes[size], views['slider']), activeChild && value && /*#__PURE__*/React__default.createElement(View, null, activeChild), /*#__PURE__*/React__default.createElement(View, Object.assign({
|
|
3761
3754
|
borderRadius: "50%",
|
|
3762
3755
|
backgroundColor: "white"
|
|
3763
|
-
}, KnobSizes[size],
|
|
3756
|
+
}, KnobSizes[size], views['circle'])), inActiveChild && !value && /*#__PURE__*/React__default.createElement(View, null, inActiveChild)), labelPosition === 'right' && label && /*#__PURE__*/React__default.createElement(View, null, label));
|
|
3764
3757
|
};
|
|
3765
3758
|
|
|
3766
3759
|
// Defines the SwitchComponent as a functional component that takes SwitchProps as props.
|
|
@@ -3805,7 +3798,7 @@
|
|
|
3805
3798
|
// Export of the useTextAreaState hook for external usage.
|
|
3806
3799
|
};
|
|
3807
3800
|
|
|
3808
|
-
var _excluded$k = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "
|
|
3801
|
+
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"];
|
|
3809
3802
|
var TextAreaView = _ref => {
|
|
3810
3803
|
var {
|
|
3811
3804
|
id,
|
|
@@ -3819,7 +3812,6 @@
|
|
|
3819
3812
|
size = 'sm',
|
|
3820
3813
|
shape = 'default',
|
|
3821
3814
|
variant = 'default',
|
|
3822
|
-
colorScheme = 'theme.primary',
|
|
3823
3815
|
isHovered = false,
|
|
3824
3816
|
isFocused = false,
|
|
3825
3817
|
isEditable = false,
|
|
@@ -3837,7 +3829,7 @@
|
|
|
3837
3829
|
setValue = () => {},
|
|
3838
3830
|
setIsFocused = () => {},
|
|
3839
3831
|
setIsHovered = () => {},
|
|
3840
|
-
|
|
3832
|
+
views = {
|
|
3841
3833
|
box: {},
|
|
3842
3834
|
text: {},
|
|
3843
3835
|
label: {},
|
|
@@ -3863,7 +3855,7 @@
|
|
|
3863
3855
|
backgroundColor: 'transparent',
|
|
3864
3856
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3865
3857
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3866
|
-
},
|
|
3858
|
+
}, views['field']);
|
|
3867
3859
|
var handleHover = () => setIsHovered(!isHovered);
|
|
3868
3860
|
var handleFocus = () => {
|
|
3869
3861
|
setIsFocused(true);
|
|
@@ -3887,30 +3879,29 @@
|
|
|
3887
3879
|
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
3888
3880
|
helperText: helperText,
|
|
3889
3881
|
error: error,
|
|
3890
|
-
|
|
3882
|
+
views: views
|
|
3891
3883
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
3892
3884
|
label: label,
|
|
3893
3885
|
size: size,
|
|
3894
3886
|
error: error,
|
|
3895
3887
|
shape: shape,
|
|
3896
|
-
|
|
3888
|
+
views: views,
|
|
3897
3889
|
shadow: shadow,
|
|
3898
3890
|
variant: variant,
|
|
3899
3891
|
value: value,
|
|
3900
|
-
color:
|
|
3892
|
+
color: 'theme.primary',
|
|
3901
3893
|
isHovered: isHovered,
|
|
3902
3894
|
isDisabled: isDisabled,
|
|
3903
3895
|
isReadOnly: isReadOnly,
|
|
3904
3896
|
isFocused: isFocused,
|
|
3905
3897
|
isWithLabel: isWithLabel,
|
|
3906
|
-
colorScheme: colorScheme,
|
|
3907
3898
|
onMouseEnter: handleHover,
|
|
3908
3899
|
onMouseLeave: handleHover
|
|
3909
3900
|
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
3910
3901
|
htmlFor: id,
|
|
3911
|
-
color:
|
|
3902
|
+
color: 'theme.primary',
|
|
3912
3903
|
error: error
|
|
3913
|
-
},
|
|
3904
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
3914
3905
|
as: "textarea",
|
|
3915
3906
|
id: id,
|
|
3916
3907
|
name: name,
|
|
@@ -3975,7 +3966,7 @@
|
|
|
3975
3966
|
};
|
|
3976
3967
|
};
|
|
3977
3968
|
|
|
3978
|
-
var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "
|
|
3969
|
+
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"];
|
|
3979
3970
|
var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3980
3971
|
type: "text"
|
|
3981
3972
|
}, props));
|
|
@@ -3992,7 +3983,7 @@
|
|
|
3992
3983
|
helperText,
|
|
3993
3984
|
onChangeText,
|
|
3994
3985
|
shadow = {},
|
|
3995
|
-
|
|
3986
|
+
views = {
|
|
3996
3987
|
box: {},
|
|
3997
3988
|
field: {},
|
|
3998
3989
|
label: {},
|
|
@@ -4002,7 +3993,6 @@
|
|
|
4002
3993
|
size = 'md',
|
|
4003
3994
|
shape = 'default',
|
|
4004
3995
|
variant = 'default',
|
|
4005
|
-
colorScheme = 'theme.primary',
|
|
4006
3996
|
error = false,
|
|
4007
3997
|
isFocused = false,
|
|
4008
3998
|
isHovered = false,
|
|
@@ -4043,7 +4033,7 @@
|
|
|
4043
4033
|
backgroundColor: 'transparent',
|
|
4044
4034
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
4045
4035
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
4046
|
-
},
|
|
4036
|
+
}, views['field']);
|
|
4047
4037
|
var handleFocus = () => {
|
|
4048
4038
|
setIsFocused(true);
|
|
4049
4039
|
if (onFocus) onFocus();
|
|
@@ -4080,30 +4070,29 @@
|
|
|
4080
4070
|
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
4081
4071
|
helperText: helperText,
|
|
4082
4072
|
error: error,
|
|
4083
|
-
|
|
4073
|
+
views: views
|
|
4084
4074
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
4085
4075
|
label: label,
|
|
4086
4076
|
size: size,
|
|
4087
4077
|
error: error,
|
|
4088
4078
|
shape: shape,
|
|
4089
|
-
|
|
4079
|
+
views: views,
|
|
4090
4080
|
shadow: shadow,
|
|
4091
4081
|
variant: variant,
|
|
4092
4082
|
value: value,
|
|
4093
|
-
color:
|
|
4083
|
+
color: 'theme.primary',
|
|
4094
4084
|
isHovered: isHovered,
|
|
4095
4085
|
isDisabled: isDisabled,
|
|
4096
4086
|
isReadOnly: isReadOnly,
|
|
4097
4087
|
isFocused: isFocused,
|
|
4098
4088
|
isWithLabel: isWithLabel,
|
|
4099
|
-
colorScheme: colorScheme,
|
|
4100
4089
|
onMouseEnter: handleHover,
|
|
4101
4090
|
onMouseLeave: handleHover
|
|
4102
4091
|
}, left, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
4103
4092
|
htmlFor: id,
|
|
4104
|
-
color:
|
|
4093
|
+
color: 'theme.primary',
|
|
4105
4094
|
error: error
|
|
4106
|
-
},
|
|
4095
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(TextFieldInput, Object.assign({
|
|
4107
4096
|
id: id,
|
|
4108
4097
|
name: name,
|
|
4109
4098
|
readOnly: isReadOnly,
|
|
@@ -4201,7 +4190,7 @@
|
|
|
4201
4190
|
'6xl': 60
|
|
4202
4191
|
};
|
|
4203
4192
|
|
|
4204
|
-
var _excluded$m = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "
|
|
4193
|
+
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"];
|
|
4205
4194
|
var CheckboxView = _ref => {
|
|
4206
4195
|
var {
|
|
4207
4196
|
id,
|
|
@@ -4213,7 +4202,6 @@
|
|
|
4213
4202
|
shadow = {},
|
|
4214
4203
|
labelPosition = 'right',
|
|
4215
4204
|
size = 'md',
|
|
4216
|
-
colorScheme = 'theme.primary',
|
|
4217
4205
|
error = false,
|
|
4218
4206
|
isSelected = false,
|
|
4219
4207
|
isHovered = false,
|
|
@@ -4223,7 +4211,7 @@
|
|
|
4223
4211
|
defaultIsSelected = false,
|
|
4224
4212
|
setIsSelected = () => {},
|
|
4225
4213
|
setIsHovered = () => {},
|
|
4226
|
-
|
|
4214
|
+
views = {
|
|
4227
4215
|
checkbox: {},
|
|
4228
4216
|
label: {}
|
|
4229
4217
|
},
|
|
@@ -4247,11 +4235,11 @@
|
|
|
4247
4235
|
width: 'fit-content',
|
|
4248
4236
|
color: error ? 'theme.error' : isDisabled ? 'theme.disabled' : 'color.blueGray.700',
|
|
4249
4237
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'
|
|
4250
|
-
},
|
|
4238
|
+
}, views['label']),
|
|
4251
4239
|
checkbox: Object.assign({}, isDisabled ? {
|
|
4252
4240
|
backgroundColor: 'theme.disabled'
|
|
4253
4241
|
} : (isChecked || isSelected) && !isIndeterminate || isIndeterminate ? {
|
|
4254
|
-
backgroundColor:
|
|
4242
|
+
backgroundColor: 'theme.primary'
|
|
4255
4243
|
} : {
|
|
4256
4244
|
borderWidth: 2,
|
|
4257
4245
|
borderColor: error ? 'theme.error' : isHovered ? 'color.gray.500' : 'color.gray.300',
|
|
@@ -4260,7 +4248,7 @@
|
|
|
4260
4248
|
borderRadius: 3
|
|
4261
4249
|
}, isHovered ? {
|
|
4262
4250
|
filter: 'brightness(0.9)'
|
|
4263
|
-
} : {}, Sizes[size], shadow,
|
|
4251
|
+
} : {}, Sizes[size], shadow, views['checkbox'])
|
|
4264
4252
|
};
|
|
4265
4253
|
return /*#__PURE__*/React__default.createElement(Label, Object.assign({
|
|
4266
4254
|
htmlFor: id,
|
|
@@ -4276,7 +4264,7 @@
|
|
|
4276
4264
|
alignItems: "center"
|
|
4277
4265
|
}, labelPosition === 'left' && label && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
4278
4266
|
size: size
|
|
4279
|
-
},
|
|
4267
|
+
}, views == null ? void 0 : views.label), label)), /*#__PURE__*/React__default.createElement(Center, Object.assign({}, checkboxStyle.checkbox), isIndeterminate ? (/*#__PURE__*/React__default.createElement(MinusIcon, {
|
|
4280
4268
|
size: IconSizes$3[size],
|
|
4281
4269
|
color: "white"
|
|
4282
4270
|
})) : (isChecked || isSelected) && (icon != null ? icon : /*#__PURE__*/React__default.createElement(TickIcon, {
|
|
@@ -4284,11 +4272,11 @@
|
|
|
4284
4272
|
color: "white"
|
|
4285
4273
|
}))), labelPosition === 'right' && label && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
4286
4274
|
size: size
|
|
4287
|
-
},
|
|
4275
|
+
}, views == null ? void 0 : views.label), label))), infoText && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
4288
4276
|
marginLeft: labelPosition === 'left' ? 0 : 27,
|
|
4289
4277
|
color: "color.gray.400",
|
|
4290
4278
|
size: "sm"
|
|
4291
|
-
},
|
|
4279
|
+
}, views == null ? void 0 : views.infoText), infoText))), error && (/*#__PURE__*/React__default.createElement(Text, {
|
|
4292
4280
|
size: "xs",
|
|
4293
4281
|
marginVertical: 0,
|
|
4294
4282
|
marginHorizontal: 0,
|
|
@@ -5795,7 +5783,7 @@
|
|
|
5795
5783
|
|
|
5796
5784
|
var _excluded$n = ["size"],
|
|
5797
5785
|
_excluded2$4 = ["size"],
|
|
5798
|
-
_excluded3$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "
|
|
5786
|
+
_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"];
|
|
5799
5787
|
var CountryList = _ref => {
|
|
5800
5788
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
5801
5789
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
@@ -5816,7 +5804,7 @@
|
|
|
5816
5804
|
option,
|
|
5817
5805
|
size = 'md',
|
|
5818
5806
|
callback = () => {},
|
|
5819
|
-
|
|
5807
|
+
views = {
|
|
5820
5808
|
text: {}
|
|
5821
5809
|
}
|
|
5822
5810
|
} = _ref3;
|
|
@@ -5838,12 +5826,12 @@
|
|
|
5838
5826
|
onClick: handleOptionClick,
|
|
5839
5827
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
5840
5828
|
backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
|
|
5841
|
-
},
|
|
5829
|
+
}, views['text']), option);
|
|
5842
5830
|
};
|
|
5843
5831
|
var DropDown$1 = _ref4 => {
|
|
5844
5832
|
var {
|
|
5845
5833
|
size,
|
|
5846
|
-
|
|
5834
|
+
views = {
|
|
5847
5835
|
dropDown: {}
|
|
5848
5836
|
},
|
|
5849
5837
|
options,
|
|
@@ -5865,12 +5853,12 @@
|
|
|
5865
5853
|
flexDirection: "column",
|
|
5866
5854
|
backgroundColor: "white",
|
|
5867
5855
|
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"
|
|
5868
|
-
},
|
|
5856
|
+
}, views['dropDown']), options.map(option => (/*#__PURE__*/React__default.createElement(DropDownItem, Object.assign({
|
|
5869
5857
|
key: option.code,
|
|
5870
5858
|
size: size,
|
|
5871
5859
|
option: option.name,
|
|
5872
5860
|
callback: handleCallback
|
|
5873
|
-
},
|
|
5861
|
+
}, views['text'])))));
|
|
5874
5862
|
};
|
|
5875
5863
|
var CountryPickerView = _ref5 => {
|
|
5876
5864
|
var {
|
|
@@ -5892,7 +5880,6 @@
|
|
|
5892
5880
|
size = 'md',
|
|
5893
5881
|
variant = 'default',
|
|
5894
5882
|
shape = 'default',
|
|
5895
|
-
colorScheme = 'theme.primary',
|
|
5896
5883
|
onChange,
|
|
5897
5884
|
onBlur = () => {},
|
|
5898
5885
|
setHide = () => {},
|
|
@@ -5900,7 +5887,7 @@
|
|
|
5900
5887
|
setIsHovered = () => {},
|
|
5901
5888
|
setIsFocused = () => {},
|
|
5902
5889
|
setValue = () => {},
|
|
5903
|
-
|
|
5890
|
+
views = {
|
|
5904
5891
|
text: {},
|
|
5905
5892
|
icon: {},
|
|
5906
5893
|
label: {},
|
|
@@ -5955,36 +5942,35 @@
|
|
|
5955
5942
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
5956
5943
|
backgroundColor: 'transparent',
|
|
5957
5944
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
5958
|
-
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
5959
|
-
},
|
|
5945
|
+
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
5946
|
+
}, views['field']);
|
|
5960
5947
|
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
5961
5948
|
helperText: helperText,
|
|
5962
5949
|
error: error,
|
|
5963
|
-
|
|
5950
|
+
views: views,
|
|
5964
5951
|
onClick: handleClick
|
|
5965
5952
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
5966
5953
|
label: label,
|
|
5967
5954
|
size: size,
|
|
5968
5955
|
error: error,
|
|
5969
5956
|
shape: shape,
|
|
5970
|
-
|
|
5957
|
+
views: views,
|
|
5971
5958
|
shadow: shadow,
|
|
5972
5959
|
variant: variant,
|
|
5973
5960
|
value: value,
|
|
5974
|
-
color:
|
|
5961
|
+
color: 'theme.primary',
|
|
5975
5962
|
isHovered: isHovered,
|
|
5976
5963
|
isDisabled: isDisabled,
|
|
5977
5964
|
isReadOnly: isReadOnly,
|
|
5978
5965
|
isFocused: isFocused,
|
|
5979
5966
|
isWithLabel: isWithLabel,
|
|
5980
|
-
colorScheme: colorScheme,
|
|
5981
5967
|
onMouseEnter: handleHover,
|
|
5982
5968
|
onMouseLeave: handleHover
|
|
5983
5969
|
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
5984
5970
|
htmlFor: id,
|
|
5985
|
-
color:
|
|
5971
|
+
color: 'theme.primary',
|
|
5986
5972
|
error: error
|
|
5987
|
-
},
|
|
5973
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(CountrySelector, Object.assign({
|
|
5988
5974
|
id: id,
|
|
5989
5975
|
name: name,
|
|
5990
5976
|
placeholder: placeholder,
|
|
@@ -6000,15 +5986,15 @@
|
|
|
6000
5986
|
orientation: "down",
|
|
6001
5987
|
size: IconSizes$4[size],
|
|
6002
5988
|
color: IconColor,
|
|
6003
|
-
style:
|
|
5989
|
+
style: views['icon']
|
|
6004
5990
|
})) : (/*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
6005
5991
|
orientation: "up",
|
|
6006
5992
|
size: IconSizes$4[size],
|
|
6007
5993
|
color: IconColor,
|
|
6008
|
-
style:
|
|
5994
|
+
style: views['icon']
|
|
6009
5995
|
})))), !hide && (/*#__PURE__*/React__default.createElement(DropDown$1, {
|
|
6010
5996
|
size: size,
|
|
6011
|
-
|
|
5997
|
+
views: views,
|
|
6012
5998
|
options: newOptions,
|
|
6013
5999
|
callback: handleCallback
|
|
6014
6000
|
})));
|
|
@@ -6038,7 +6024,7 @@
|
|
|
6038
6024
|
};
|
|
6039
6025
|
};
|
|
6040
6026
|
|
|
6041
|
-
var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "
|
|
6027
|
+
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"];
|
|
6042
6028
|
var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
6043
6029
|
type: "date"
|
|
6044
6030
|
}, props));
|
|
@@ -6053,8 +6039,7 @@
|
|
|
6053
6039
|
size = 'md',
|
|
6054
6040
|
variant = 'default',
|
|
6055
6041
|
shape = 'default',
|
|
6056
|
-
|
|
6057
|
-
styles = {
|
|
6042
|
+
views = {
|
|
6058
6043
|
box: {},
|
|
6059
6044
|
label: {},
|
|
6060
6045
|
helperText: {},
|
|
@@ -6102,34 +6087,33 @@
|
|
|
6102
6087
|
backgroundColor: 'transparent',
|
|
6103
6088
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
6104
6089
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
6105
|
-
},
|
|
6090
|
+
}, views['field']);
|
|
6106
6091
|
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
6107
6092
|
helperText: helperText,
|
|
6108
6093
|
error: error,
|
|
6109
|
-
|
|
6094
|
+
views: views
|
|
6110
6095
|
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
6111
6096
|
label: label,
|
|
6112
6097
|
size: size,
|
|
6113
6098
|
error: error,
|
|
6114
6099
|
shape: shape,
|
|
6115
|
-
|
|
6100
|
+
views: views,
|
|
6116
6101
|
shadow: shadow,
|
|
6102
|
+
color: 'theme.primary',
|
|
6117
6103
|
variant: variant,
|
|
6118
6104
|
value: date,
|
|
6119
|
-
color: colorScheme,
|
|
6120
6105
|
isHovered: isHovered,
|
|
6121
6106
|
isDisabled: isDisabled,
|
|
6122
6107
|
isReadOnly: isReadOnly,
|
|
6123
6108
|
isFocused: isFocused,
|
|
6124
6109
|
isWithLabel: isWithLabel,
|
|
6125
|
-
colorScheme: colorScheme,
|
|
6126
6110
|
onMouseEnter: handleHover,
|
|
6127
6111
|
onMouseLeave: handleHover
|
|
6128
6112
|
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
6129
6113
|
htmlFor: id,
|
|
6130
|
-
color:
|
|
6114
|
+
color: 'theme.primary',
|
|
6131
6115
|
error: error
|
|
6132
|
-
},
|
|
6116
|
+
}, views), label)), /*#__PURE__*/React__default.createElement(DatePickerContent, Object.assign({
|
|
6133
6117
|
id: id,
|
|
6134
6118
|
name: name,
|
|
6135
6119
|
onFocus: handleFocus,
|
|
@@ -6165,10 +6149,10 @@
|
|
|
6165
6149
|
var PasswordComponent = _ref => {
|
|
6166
6150
|
var {
|
|
6167
6151
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
6168
|
-
|
|
6152
|
+
widthHeight: 14
|
|
6169
6153
|
}),
|
|
6170
6154
|
hiddenIcon = /*#__PURE__*/React__default.createElement(CloseEyeIcon, {
|
|
6171
|
-
|
|
6155
|
+
widthHeight: 14
|
|
6172
6156
|
})
|
|
6173
6157
|
} = _ref,
|
|
6174
6158
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
@@ -6225,7 +6209,7 @@
|
|
|
6225
6209
|
};
|
|
6226
6210
|
};
|
|
6227
6211
|
|
|
6228
|
-
var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "
|
|
6212
|
+
var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
6229
6213
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
6230
6214
|
var ComboBoxView = _ref => {
|
|
6231
6215
|
var {
|
|
@@ -6245,7 +6229,7 @@
|
|
|
6245
6229
|
searchQuery,
|
|
6246
6230
|
setSearchQuery,
|
|
6247
6231
|
setFilteredItems,
|
|
6248
|
-
|
|
6232
|
+
views,
|
|
6249
6233
|
isDropdownVisible,
|
|
6250
6234
|
setIsDropdownVisible
|
|
6251
6235
|
// Collects all further props not destructured explicitly.
|
|
@@ -6288,7 +6272,7 @@
|
|
|
6288
6272
|
alignItems: "center",
|
|
6289
6273
|
width: "100%"
|
|
6290
6274
|
}, props), label && (/*#__PURE__*/React__default.createElement(Text, {
|
|
6291
|
-
|
|
6275
|
+
views: views == null ? void 0 : views.label,
|
|
6292
6276
|
htmlFor: props.id
|
|
6293
6277
|
}, label)), /*#__PURE__*/React__default.createElement(View, {
|
|
6294
6278
|
position: "relative"
|
|
@@ -6303,16 +6287,16 @@
|
|
|
6303
6287
|
justifyContent: "space-between",
|
|
6304
6288
|
minWidth: 300,
|
|
6305
6289
|
flexWrap: "nowrap"
|
|
6306
|
-
},
|
|
6290
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
6307
6291
|
gap: 15,
|
|
6308
6292
|
alignItems: "center",
|
|
6309
6293
|
position: "relative",
|
|
6310
6294
|
width: "100%",
|
|
6311
6295
|
onClick: () => setIsDropdownVisible(!isDropdownVisible)
|
|
6312
|
-
},
|
|
6296
|
+
}, views == null ? void 0 : views.labelContainer), left, /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6313
6297
|
weight: "medium",
|
|
6314
6298
|
flexGrow: 1
|
|
6315
|
-
},
|
|
6299
|
+
}, views == null ? void 0 : views.label), selectedItem.label)), right, isDropdownVisible && (/*#__PURE__*/React__default.createElement(View, Object.assign({
|
|
6316
6300
|
id: "combobox-dropdown",
|
|
6317
6301
|
position: "absolute",
|
|
6318
6302
|
backgroundColor: "white",
|
|
@@ -6325,7 +6309,7 @@
|
|
|
6325
6309
|
transform: "translateY(100%)",
|
|
6326
6310
|
marginTop: "4px",
|
|
6327
6311
|
borderRadius: "4px"
|
|
6328
|
-
},
|
|
6312
|
+
}, views == null ? void 0 : views.dropdown), searchEnabled && (/*#__PURE__*/React__default.createElement(TextFieldView, {
|
|
6329
6313
|
id: props.id,
|
|
6330
6314
|
name: props.name,
|
|
6331
6315
|
width: "100%",
|
|
@@ -6335,14 +6319,14 @@
|
|
|
6335
6319
|
hint: placeholder,
|
|
6336
6320
|
isClearable: false,
|
|
6337
6321
|
left: /*#__PURE__*/React__default.createElement(SearchIcon, {
|
|
6338
|
-
|
|
6322
|
+
widthHeight: 12
|
|
6339
6323
|
}),
|
|
6340
|
-
|
|
6324
|
+
views: {
|
|
6341
6325
|
box: Object.assign({
|
|
6342
6326
|
width: '100%',
|
|
6343
6327
|
padding: '6px 12px',
|
|
6344
6328
|
borderBottom: filteredItems.length > 0 ? '1px solid #ccc' : '1px solid transparent'
|
|
6345
|
-
},
|
|
6329
|
+
}, views == null ? void 0 : views.text)
|
|
6346
6330
|
}
|
|
6347
6331
|
})), filteredItems.length > 0 && (/*#__PURE__*/React__default.createElement(View, {
|
|
6348
6332
|
margin: 0,
|
|
@@ -6356,8 +6340,8 @@
|
|
|
6356
6340
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
6357
6341
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
6358
6342
|
onClick: () => handleSelect(item)
|
|
6359
|
-
},
|
|
6360
|
-
|
|
6343
|
+
}, 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, {
|
|
6344
|
+
widthHeight: 20
|
|
6361
6345
|
}))))))))))));
|
|
6362
6346
|
};
|
|
6363
6347
|
|
|
@@ -6621,10 +6605,10 @@
|
|
|
6621
6605
|
var PasswordComponent$1 = _ref => {
|
|
6622
6606
|
var {
|
|
6623
6607
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
6624
|
-
|
|
6608
|
+
widthHeight: 14
|
|
6625
6609
|
}),
|
|
6626
6610
|
hiddenIcon = /*#__PURE__*/React__default.createElement(CloseEyeIcon, {
|
|
6627
|
-
|
|
6611
|
+
widthHeight: 14
|
|
6628
6612
|
})
|
|
6629
6613
|
} = _ref,
|
|
6630
6614
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
@@ -6683,12 +6667,12 @@
|
|
|
6683
6667
|
subtitle: '',
|
|
6684
6668
|
variant: 'info',
|
|
6685
6669
|
isClosable: false,
|
|
6686
|
-
|
|
6670
|
+
views: {},
|
|
6687
6671
|
action: () => {},
|
|
6688
6672
|
actionText: '',
|
|
6689
6673
|
showIcon: false,
|
|
6690
6674
|
timeout: 3000,
|
|
6691
|
-
show: function show(variant, title, subtitle, isClosable,
|
|
6675
|
+
show: function show(variant, title, subtitle, isClosable, views, action, actionText, showIcon, timeout) {
|
|
6692
6676
|
if (title === void 0) {
|
|
6693
6677
|
title = '';
|
|
6694
6678
|
}
|
|
@@ -6701,7 +6685,7 @@
|
|
|
6701
6685
|
title,
|
|
6702
6686
|
subtitle,
|
|
6703
6687
|
isClosable,
|
|
6704
|
-
|
|
6688
|
+
views,
|
|
6705
6689
|
action,
|
|
6706
6690
|
actionText,
|
|
6707
6691
|
showIcon,
|
|
@@ -6713,7 +6697,7 @@
|
|
|
6713
6697
|
})
|
|
6714
6698
|
}));
|
|
6715
6699
|
var showMessage = (variant, title, subtitle, props) => {
|
|
6716
|
-
useMessageStore.getState().show(variant, title, subtitle, props == null ? void 0 : props.isClosable, props == null ? void 0 : props.
|
|
6700
|
+
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);
|
|
6717
6701
|
};
|
|
6718
6702
|
var hideMessage = () => {
|
|
6719
6703
|
useMessageStore.getState().hide();
|
|
@@ -6791,7 +6775,7 @@
|
|
|
6791
6775
|
};
|
|
6792
6776
|
|
|
6793
6777
|
var MessageView = _ref => {
|
|
6794
|
-
var
|
|
6778
|
+
var _views$closingIcon, _views$closingIcon2;
|
|
6795
6779
|
var {
|
|
6796
6780
|
variant,
|
|
6797
6781
|
hide,
|
|
@@ -6803,7 +6787,7 @@
|
|
|
6803
6787
|
showIcon = false,
|
|
6804
6788
|
isClosable = false,
|
|
6805
6789
|
timeout = 3000,
|
|
6806
|
-
|
|
6790
|
+
views
|
|
6807
6791
|
} = _ref;
|
|
6808
6792
|
React.useEffect(() => {
|
|
6809
6793
|
if (timeout && !isClosable) {
|
|
@@ -6833,21 +6817,21 @@
|
|
|
6833
6817
|
}[variant];
|
|
6834
6818
|
var iconComponent = {
|
|
6835
6819
|
info: /*#__PURE__*/React__default.createElement(InfoIcon, Object.assign({
|
|
6836
|
-
|
|
6820
|
+
widthHeight: 24,
|
|
6837
6821
|
color: iconColor
|
|
6838
|
-
},
|
|
6839
|
-
success: /*#__PURE__*/React__default.createElement(SuccessIcon, Object.assign({
|
|
6840
|
-
|
|
6822
|
+
}, views == null ? void 0 : views.icon)),
|
|
6823
|
+
success: (/*#__PURE__*/React__default.createElement(SuccessIcon, Object.assign({
|
|
6824
|
+
widthHeight: 24,
|
|
6841
6825
|
color: iconColor
|
|
6842
|
-
},
|
|
6843
|
-
warning: /*#__PURE__*/React__default.createElement(WarningIcon, Object.assign({
|
|
6844
|
-
|
|
6826
|
+
}, views == null ? void 0 : views.icon))),
|
|
6827
|
+
warning: (/*#__PURE__*/React__default.createElement(WarningIcon, Object.assign({
|
|
6828
|
+
widthHeight: 24,
|
|
6845
6829
|
color: iconColor
|
|
6846
|
-
},
|
|
6830
|
+
}, views == null ? void 0 : views.icon))),
|
|
6847
6831
|
error: /*#__PURE__*/React__default.createElement(ErrorIcon, Object.assign({
|
|
6848
|
-
|
|
6832
|
+
widthHeight: 24,
|
|
6849
6833
|
color: iconColor
|
|
6850
|
-
},
|
|
6834
|
+
}, views == null ? void 0 : views.icon))
|
|
6851
6835
|
}[variant];
|
|
6852
6836
|
var isShowIcon = showIcon && iconComponent;
|
|
6853
6837
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
@@ -6864,20 +6848,20 @@
|
|
|
6864
6848
|
onClick: isClosable ? () => {} : () => {
|
|
6865
6849
|
hide();
|
|
6866
6850
|
}
|
|
6867
|
-
}, containerStyle,
|
|
6851
|
+
}, containerStyle, views == null ? void 0 : views.container), isShowIcon && iconComponent, /*#__PURE__*/React__default.createElement(Vertical, {
|
|
6868
6852
|
gap: 8,
|
|
6869
6853
|
width: "100%"
|
|
6870
6854
|
}, /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6871
6855
|
size: "md",
|
|
6872
6856
|
weight: "semiBold"
|
|
6873
|
-
},
|
|
6857
|
+
}, views == null ? void 0 : views.title), title), subtitle && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6874
6858
|
size: "sm"
|
|
6875
|
-
},
|
|
6859
|
+
}, views == null ? void 0 : views.subtitle), subtitle))), isWithAction && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6876
6860
|
marginRight: 10,
|
|
6877
6861
|
onClick: action,
|
|
6878
6862
|
padding: "6px 10px",
|
|
6879
6863
|
whiteSpace: "nowrap"
|
|
6880
|
-
}, containerStyle,
|
|
6864
|
+
}, containerStyle, views == null ? void 0 : views.actionText), actionText)), isClosable && (/*#__PURE__*/React__default.createElement(View, Object.assign({
|
|
6881
6865
|
position: "absolute",
|
|
6882
6866
|
zIndex: 10000,
|
|
6883
6867
|
right: 8,
|
|
@@ -6885,10 +6869,10 @@
|
|
|
6885
6869
|
onClick: () => {
|
|
6886
6870
|
hide();
|
|
6887
6871
|
}
|
|
6888
|
-
},
|
|
6889
|
-
|
|
6872
|
+
}, views == null || (_views$closingIcon = views.closingIcon) == null ? void 0 : _views$closingIcon.container), /*#__PURE__*/React__default.createElement(CloseIcon, Object.assign({
|
|
6873
|
+
widthHeight: 18,
|
|
6890
6874
|
color: iconColor
|
|
6891
|
-
},
|
|
6875
|
+
}, views == null || (_views$closingIcon2 = views.closingIcon) == null ? void 0 : _views$closingIcon2.icon)))));
|
|
6892
6876
|
};
|
|
6893
6877
|
|
|
6894
6878
|
var MessageLayout = _ref => {
|
|
@@ -6903,7 +6887,7 @@
|
|
|
6903
6887
|
variant,
|
|
6904
6888
|
subtitle,
|
|
6905
6889
|
isClosable,
|
|
6906
|
-
|
|
6890
|
+
views,
|
|
6907
6891
|
action,
|
|
6908
6892
|
actionText,
|
|
6909
6893
|
showIcon,
|
|
@@ -6935,7 +6919,7 @@
|
|
|
6935
6919
|
title: title,
|
|
6936
6920
|
theme: theme,
|
|
6937
6921
|
isClosable: isClosable,
|
|
6938
|
-
|
|
6922
|
+
views: views,
|
|
6939
6923
|
action: action,
|
|
6940
6924
|
actionText: actionText,
|
|
6941
6925
|
showIcon: showIcon,
|
|
@@ -7038,16 +7022,22 @@
|
|
|
7038
7022
|
handleClick
|
|
7039
7023
|
};
|
|
7040
7024
|
};
|
|
7041
|
-
|
|
7025
|
+
|
|
7026
|
+
var UploadView = _ref => {
|
|
7042
7027
|
var {
|
|
7043
|
-
accept
|
|
7028
|
+
accept,
|
|
7044
7029
|
isLoading = false,
|
|
7045
7030
|
progress = 0,
|
|
7046
7031
|
icon,
|
|
7047
7032
|
text,
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7033
|
+
previewUrl,
|
|
7034
|
+
thumbnailUrl,
|
|
7035
|
+
errorMessage,
|
|
7036
|
+
fileInputRef,
|
|
7037
|
+
videoRef,
|
|
7038
|
+
selectedFile,
|
|
7039
|
+
handleFileChange,
|
|
7040
|
+
handleClick,
|
|
7051
7041
|
containerProps,
|
|
7052
7042
|
errorMessageProps,
|
|
7053
7043
|
progressProps,
|
|
@@ -7055,74 +7045,75 @@
|
|
|
7055
7045
|
imageProps,
|
|
7056
7046
|
iconProps,
|
|
7057
7047
|
textProps,
|
|
7058
|
-
|
|
7048
|
+
fileType,
|
|
7049
|
+
previewUrl: externalPreviewUrl,
|
|
7050
|
+
renderError = _ref2 => {
|
|
7059
7051
|
var {
|
|
7060
7052
|
errorMessage,
|
|
7061
7053
|
errorMessageProps
|
|
7062
|
-
} =
|
|
7054
|
+
} = _ref2;
|
|
7063
7055
|
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
7064
7056
|
color: "red",
|
|
7065
7057
|
fontSize: 12,
|
|
7066
7058
|
marginTop: 8
|
|
7067
7059
|
}, errorMessageProps), errorMessage);
|
|
7068
7060
|
},
|
|
7069
|
-
renderText =
|
|
7061
|
+
renderText = _ref3 => {
|
|
7070
7062
|
var {
|
|
7071
7063
|
text,
|
|
7072
7064
|
textProps
|
|
7073
|
-
} =
|
|
7065
|
+
} = _ref3;
|
|
7074
7066
|
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
7075
7067
|
marginTop: 8
|
|
7076
7068
|
}, textProps), text);
|
|
7077
7069
|
},
|
|
7078
|
-
renderFile =
|
|
7070
|
+
renderFile = _ref4 => {
|
|
7079
7071
|
var {
|
|
7080
7072
|
selectedFile,
|
|
7081
7073
|
textProps
|
|
7082
|
-
} =
|
|
7083
|
-
return /*#__PURE__*/React__default.createElement(Center, {
|
|
7074
|
+
} = _ref4;
|
|
7075
|
+
return selectedFile ? (/*#__PURE__*/React__default.createElement(Center, {
|
|
7084
7076
|
marginTop: 8,
|
|
7085
7077
|
gap: 10,
|
|
7086
7078
|
flexDirection: "column"
|
|
7087
7079
|
}, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
7088
7080
|
maxLines: 2
|
|
7089
|
-
}, textProps), selectedFile.name), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, textProps), "(", Math.round(selectedFile.size / 1024), " KB)"));
|
|
7081
|
+
}, textProps), selectedFile.name), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, textProps), "(", Math.round(selectedFile.size / 1024), " KB)"))) : null;
|
|
7090
7082
|
},
|
|
7091
|
-
renderVideo =
|
|
7083
|
+
renderVideo = _ref5 => {
|
|
7092
7084
|
var {
|
|
7093
7085
|
selectedFile,
|
|
7094
7086
|
thumbnailUrl,
|
|
7095
7087
|
videoRef,
|
|
7096
7088
|
videoProps,
|
|
7097
7089
|
imageProps
|
|
7098
|
-
} =
|
|
7099
|
-
console.log('thumbnailUrl', thumbnailUrl);
|
|
7090
|
+
} = _ref5;
|
|
7100
7091
|
return /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
7101
7092
|
width: "100%",
|
|
7102
7093
|
height: "100%",
|
|
7103
7094
|
position: "relative"
|
|
7104
7095
|
}, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
7105
7096
|
as: "video",
|
|
7106
|
-
width:
|
|
7107
|
-
height:
|
|
7108
|
-
src: selectedFile
|
|
7097
|
+
width: "100%",
|
|
7098
|
+
height: "100%",
|
|
7099
|
+
src: selectedFile ? URL.createObjectURL(selectedFile) : undefined,
|
|
7109
7100
|
style: {
|
|
7110
7101
|
objectFit: 'cover'
|
|
7111
7102
|
},
|
|
7112
7103
|
ref: videoRef
|
|
7113
|
-
}, videoProps)), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
7104
|
+
}, videoProps)), thumbnailUrl && (/*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
7114
7105
|
src: thumbnailUrl,
|
|
7115
7106
|
alt: "Video Thumbnail",
|
|
7116
7107
|
width: "100%",
|
|
7117
7108
|
height: "100%",
|
|
7118
7109
|
objectFit: "cover"
|
|
7119
|
-
}, imageProps)));
|
|
7110
|
+
}, imageProps))));
|
|
7120
7111
|
},
|
|
7121
|
-
renderImage =
|
|
7112
|
+
renderImage = _ref6 => {
|
|
7122
7113
|
var {
|
|
7123
7114
|
previewUrl,
|
|
7124
7115
|
imageProps
|
|
7125
|
-
} =
|
|
7116
|
+
} = _ref6;
|
|
7126
7117
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
7127
7118
|
src: previewUrl,
|
|
7128
7119
|
alt: "Preview",
|
|
@@ -7131,11 +7122,11 @@
|
|
|
7131
7122
|
objectFit: "cover"
|
|
7132
7123
|
}, imageProps));
|
|
7133
7124
|
},
|
|
7134
|
-
renderProgress =
|
|
7125
|
+
renderProgress = _ref7 => {
|
|
7135
7126
|
var {
|
|
7136
7127
|
progress,
|
|
7137
7128
|
progressProps
|
|
7138
|
-
} =
|
|
7129
|
+
} = _ref7;
|
|
7139
7130
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
7140
7131
|
gap: 8,
|
|
7141
7132
|
alignItems: "center"
|
|
@@ -7147,28 +7138,14 @@
|
|
|
7147
7138
|
}, /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
7148
7139
|
height: 4,
|
|
7149
7140
|
width: progress + "%",
|
|
7150
|
-
borderRadius: 2
|
|
7141
|
+
borderRadius: 2,
|
|
7142
|
+
backgroundColor: "#000"
|
|
7151
7143
|
})), /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
7152
7144
|
fontSize: 12
|
|
7153
7145
|
}, progress, "%"));
|
|
7154
7146
|
}
|
|
7155
|
-
} =
|
|
7156
|
-
var
|
|
7157
|
-
previewUrl,
|
|
7158
|
-
thumbnailUrl,
|
|
7159
|
-
errorMessage,
|
|
7160
|
-
videoRef,
|
|
7161
|
-
fileInputRef,
|
|
7162
|
-
selectedFile,
|
|
7163
|
-
handleFileChange,
|
|
7164
|
-
handleClick
|
|
7165
|
-
} = useUpload({
|
|
7166
|
-
accept,
|
|
7167
|
-
maxSize,
|
|
7168
|
-
onFileSelect,
|
|
7169
|
-
validateFile
|
|
7170
|
-
});
|
|
7171
|
-
var fileType = previewUrl && accept.includes('video') ? 'video' : previewUrl && accept.includes('image') ? 'image' : 'file';
|
|
7147
|
+
} = _ref;
|
|
7148
|
+
var finalPreviewUrl = externalPreviewUrl || previewUrl;
|
|
7172
7149
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
7173
7150
|
onClick: handleClick,
|
|
7174
7151
|
cursor: "pointer",
|
|
@@ -7178,26 +7155,27 @@
|
|
|
7178
7155
|
flexDirection: "column",
|
|
7179
7156
|
overflow: "hidden",
|
|
7180
7157
|
position: "relative"
|
|
7181
|
-
}, containerProps), progress
|
|
7182
|
-
previewUrl,
|
|
7158
|
+
}, containerProps), progress === 100 && fileType === 'image' && finalPreviewUrl && renderImage({
|
|
7159
|
+
previewUrl: finalPreviewUrl,
|
|
7183
7160
|
imageProps
|
|
7184
|
-
}), progress
|
|
7161
|
+
}), progress === 100 && fileType === 'video' && thumbnailUrl && renderVideo({
|
|
7162
|
+
selectedFile,
|
|
7185
7163
|
thumbnailUrl,
|
|
7186
7164
|
videoRef,
|
|
7187
7165
|
videoProps,
|
|
7188
|
-
|
|
7189
|
-
}), progress
|
|
7166
|
+
imageProps
|
|
7167
|
+
}), progress === 100 && fileType === 'file' && selectedFile && renderFile({
|
|
7190
7168
|
selectedFile,
|
|
7191
7169
|
textProps
|
|
7192
7170
|
}), progress < 100 && (icon || /*#__PURE__*/React__default.createElement(UploadIcon, Object.assign({
|
|
7193
|
-
|
|
7171
|
+
widthHeight: 32
|
|
7194
7172
|
}, iconProps))), !selectedFile && text && renderText({
|
|
7195
7173
|
text,
|
|
7196
7174
|
textProps
|
|
7197
7175
|
}), isLoading && renderProgress({
|
|
7198
7176
|
progress,
|
|
7199
7177
|
progressProps
|
|
7200
|
-
}), renderError({
|
|
7178
|
+
}), errorMessage && renderError({
|
|
7201
7179
|
errorMessage,
|
|
7202
7180
|
errorMessageProps
|
|
7203
7181
|
}), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
@@ -7212,6 +7190,54 @@
|
|
|
7212
7190
|
}));
|
|
7213
7191
|
};
|
|
7214
7192
|
|
|
7193
|
+
var _excluded$y = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
|
|
7194
|
+
var Uploader = _ref => {
|
|
7195
|
+
var {
|
|
7196
|
+
accept = '*/*',
|
|
7197
|
+
icon,
|
|
7198
|
+
text,
|
|
7199
|
+
maxSize,
|
|
7200
|
+
onFileSelect,
|
|
7201
|
+
validateFile,
|
|
7202
|
+
isLoading = false,
|
|
7203
|
+
progress = 0
|
|
7204
|
+
} = _ref,
|
|
7205
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
7206
|
+
var {
|
|
7207
|
+
previewUrl,
|
|
7208
|
+
thumbnailUrl,
|
|
7209
|
+
errorMessage,
|
|
7210
|
+
videoRef,
|
|
7211
|
+
fileInputRef,
|
|
7212
|
+
selectedFile,
|
|
7213
|
+
handleFileChange,
|
|
7214
|
+
handleClick
|
|
7215
|
+
} = useUpload({
|
|
7216
|
+
accept,
|
|
7217
|
+
maxSize,
|
|
7218
|
+
onFileSelect,
|
|
7219
|
+
validateFile
|
|
7220
|
+
});
|
|
7221
|
+
return /*#__PURE__*/React__default.createElement(UploadView, Object.assign({
|
|
7222
|
+
handleClick: handleClick,
|
|
7223
|
+
accept: accept,
|
|
7224
|
+
isLoading: isLoading,
|
|
7225
|
+
progress: progress,
|
|
7226
|
+
icon: icon,
|
|
7227
|
+
text: text,
|
|
7228
|
+
maxSize: maxSize,
|
|
7229
|
+
onFileSelect: onFileSelect,
|
|
7230
|
+
validateFile: validateFile,
|
|
7231
|
+
errorMessage: errorMessage,
|
|
7232
|
+
handleFileChange: handleFileChange,
|
|
7233
|
+
selectedFile: selectedFile,
|
|
7234
|
+
videoRef: videoRef,
|
|
7235
|
+
fileInputRef: fileInputRef,
|
|
7236
|
+
previewUrl: previewUrl,
|
|
7237
|
+
thumbnailUrl: thumbnailUrl
|
|
7238
|
+
}, props));
|
|
7239
|
+
};
|
|
7240
|
+
|
|
7215
7241
|
var useModalStore = /*#__PURE__*/zustand.create(set => ({
|
|
7216
7242
|
modals: [],
|
|
7217
7243
|
onHide: name => name,
|
|
@@ -7313,7 +7339,7 @@
|
|
|
7313
7339
|
xl: 28
|
|
7314
7340
|
};
|
|
7315
7341
|
|
|
7316
|
-
var _excluded$
|
|
7342
|
+
var _excluded$z = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
7317
7343
|
_excluded2$7 = ["children", "shadow", "isFullScreen", "shape"],
|
|
7318
7344
|
_excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
7319
7345
|
_excluded4$3 = ["children"],
|
|
@@ -7327,7 +7353,7 @@
|
|
|
7327
7353
|
onClose = () => {},
|
|
7328
7354
|
position = 'center'
|
|
7329
7355
|
} = _ref,
|
|
7330
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7356
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
7331
7357
|
var handleClick = () => {
|
|
7332
7358
|
if (!isClosePrevented) onClose();
|
|
7333
7359
|
};
|
|
@@ -7395,9 +7421,8 @@
|
|
|
7395
7421
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
7396
7422
|
var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
|
|
7397
7423
|
onClick: onClose,
|
|
7398
|
-
colorScheme: "transparent",
|
|
7399
7424
|
icon: /*#__PURE__*/React__default.createElement(CloseIcon, {
|
|
7400
|
-
|
|
7425
|
+
widthHeight: HeaderIconSizes[iconSize],
|
|
7401
7426
|
color: buttonColor
|
|
7402
7427
|
}),
|
|
7403
7428
|
padding: 0,
|
|
@@ -7497,13 +7522,13 @@
|
|
|
7497
7522
|
var defaultStyles = {};
|
|
7498
7523
|
// Create a context that includes both styles and the onClick function
|
|
7499
7524
|
var TableContext = /*#__PURE__*/React__default.createContext({
|
|
7500
|
-
|
|
7525
|
+
views: defaultStyles,
|
|
7501
7526
|
onRowClick: () => {}
|
|
7502
7527
|
});
|
|
7503
7528
|
var TableProvider = _ref => {
|
|
7504
7529
|
var {
|
|
7505
7530
|
children,
|
|
7506
|
-
|
|
7531
|
+
views = defaultStyles,
|
|
7507
7532
|
onRowClick
|
|
7508
7533
|
} = _ref;
|
|
7509
7534
|
return (
|
|
@@ -7511,7 +7536,7 @@
|
|
|
7511
7536
|
// Pass both styles and onClick to the context
|
|
7512
7537
|
React__default.createElement(TableContext.Provider, {
|
|
7513
7538
|
value: {
|
|
7514
|
-
|
|
7539
|
+
views,
|
|
7515
7540
|
onRowClick
|
|
7516
7541
|
}
|
|
7517
7542
|
}, children)
|
|
@@ -7522,82 +7547,82 @@
|
|
|
7522
7547
|
|
|
7523
7548
|
var TableContainer = props => {
|
|
7524
7549
|
var {
|
|
7525
|
-
|
|
7550
|
+
views
|
|
7526
7551
|
} = useTableContext();
|
|
7527
7552
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7528
7553
|
as: "table",
|
|
7529
7554
|
borderCollapse: "collapse"
|
|
7530
|
-
},
|
|
7555
|
+
}, views.table, props));
|
|
7531
7556
|
};
|
|
7532
7557
|
var TableHead = props => {
|
|
7533
7558
|
var {
|
|
7534
|
-
|
|
7559
|
+
views
|
|
7535
7560
|
} = useTableContext();
|
|
7536
7561
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7537
7562
|
as: "thead",
|
|
7538
7563
|
borderBottom: "0.5px solid #ddd",
|
|
7539
7564
|
textAlign: "left",
|
|
7540
7565
|
color: "color.gray.400"
|
|
7541
|
-
},
|
|
7566
|
+
}, views.thead, props));
|
|
7542
7567
|
};
|
|
7543
7568
|
var TableHeadCell = props => {
|
|
7544
7569
|
var {
|
|
7545
|
-
|
|
7570
|
+
views
|
|
7546
7571
|
} = useTableContext();
|
|
7547
7572
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7548
7573
|
as: "th",
|
|
7549
7574
|
padding: "14px",
|
|
7550
7575
|
whiteSpace: "nowrap",
|
|
7551
7576
|
fontWeight: "500"
|
|
7552
|
-
},
|
|
7577
|
+
}, views.th, props));
|
|
7553
7578
|
};
|
|
7554
7579
|
var TableRow = props => {
|
|
7555
7580
|
var {
|
|
7556
|
-
|
|
7581
|
+
views,
|
|
7557
7582
|
onRowClick
|
|
7558
7583
|
} = useTableContext();
|
|
7559
7584
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7560
7585
|
as: "tr"
|
|
7561
|
-
},
|
|
7586
|
+
}, views.tr, {
|
|
7562
7587
|
onClick: onRowClick
|
|
7563
7588
|
}, props));
|
|
7564
7589
|
};
|
|
7565
7590
|
var TableCell = props => {
|
|
7566
7591
|
var {
|
|
7567
|
-
|
|
7592
|
+
views
|
|
7568
7593
|
} = useTableContext();
|
|
7569
7594
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7570
7595
|
as: "td",
|
|
7571
7596
|
padding: "14px",
|
|
7572
7597
|
whiteSpace: "nowrap",
|
|
7573
7598
|
fontWeight: props.isFirstColumn ? '400' : '300'
|
|
7574
|
-
},
|
|
7599
|
+
}, views.td, props));
|
|
7575
7600
|
};
|
|
7576
7601
|
var TableBody = props => {
|
|
7577
7602
|
var {
|
|
7578
|
-
|
|
7603
|
+
views
|
|
7579
7604
|
} = useTableContext();
|
|
7580
7605
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7581
7606
|
as: "tbody"
|
|
7582
|
-
},
|
|
7607
|
+
}, views.tbody, props));
|
|
7583
7608
|
};
|
|
7584
7609
|
var TableFooter = props => {
|
|
7585
7610
|
var {
|
|
7586
|
-
|
|
7611
|
+
views
|
|
7587
7612
|
} = useTableContext();
|
|
7588
7613
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7589
7614
|
as: "tfoot"
|
|
7590
|
-
},
|
|
7615
|
+
}, views.tfoot, props));
|
|
7591
7616
|
};
|
|
7592
7617
|
var TableCaption = props => {
|
|
7593
7618
|
var {
|
|
7594
|
-
|
|
7619
|
+
views
|
|
7595
7620
|
} = useTableContext();
|
|
7596
7621
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7597
7622
|
as: "caption",
|
|
7598
7623
|
margin: '10px 0',
|
|
7599
7624
|
color: "color.gray.400"
|
|
7600
|
-
},
|
|
7625
|
+
}, views.caption, props));
|
|
7601
7626
|
};
|
|
7602
7627
|
var TableView = _ref => {
|
|
7603
7628
|
var {
|
|
@@ -7623,11 +7648,11 @@
|
|
|
7623
7648
|
var Table = _ref => {
|
|
7624
7649
|
var {
|
|
7625
7650
|
children,
|
|
7626
|
-
|
|
7651
|
+
views,
|
|
7627
7652
|
onClick
|
|
7628
7653
|
} = _ref;
|
|
7629
7654
|
return /*#__PURE__*/React__default.createElement(TableProvider, {
|
|
7630
|
-
|
|
7655
|
+
views: views,
|
|
7631
7656
|
onRowClick: onClick
|
|
7632
7657
|
}, children);
|
|
7633
7658
|
};
|
|
@@ -7694,7 +7719,7 @@
|
|
|
7694
7719
|
// Default to empty array
|
|
7695
7720
|
activeTab,
|
|
7696
7721
|
handleTabClick,
|
|
7697
|
-
|
|
7722
|
+
views = {},
|
|
7698
7723
|
// Default to empty object
|
|
7699
7724
|
renderTab,
|
|
7700
7725
|
renderContent
|
|
@@ -7702,7 +7727,7 @@
|
|
|
7702
7727
|
// If there's no active tab (e.g., tabs array is empty), render nothing or a placeholder
|
|
7703
7728
|
if (!activeTab) {
|
|
7704
7729
|
// Optionally render a placeholder when no tabs are active/available
|
|
7705
|
-
// return <View {...
|
|
7730
|
+
// return <View {...views.container}><Text>No tabs available.</Text></View>;
|
|
7706
7731
|
return null; // Or simply render nothing
|
|
7707
7732
|
}
|
|
7708
7733
|
return (
|
|
@@ -7711,7 +7736,7 @@
|
|
|
7711
7736
|
React__default.createElement(Vertical, Object.assign({
|
|
7712
7737
|
width: "100%",
|
|
7713
7738
|
height: '100%'
|
|
7714
|
-
},
|
|
7739
|
+
}, views.container), /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({}, views.headerTabs), tabs.map(tab => {
|
|
7715
7740
|
// Determine if the current tab in the loop is the active one
|
|
7716
7741
|
var isActive = tab.title === activeTab.title;
|
|
7717
7742
|
// Prepare the onClick handler for this specific tab
|
|
@@ -7726,17 +7751,17 @@
|
|
|
7726
7751
|
onClick: onClick,
|
|
7727
7752
|
borderBottomLeftRadius: 0,
|
|
7728
7753
|
borderBottomRightRadius: 0
|
|
7729
|
-
},
|
|
7754
|
+
}, views.tab, isActive ? views.activeTab : {}, {
|
|
7730
7755
|
// Example: Set variant based on active state (can be overridden by styles)
|
|
7731
7756
|
variant: isActive ? 'filled' : 'ghost',
|
|
7732
7757
|
cursor: "pointer" // Ensure pointer cursor
|
|
7733
7758
|
}), tab.icon, /*#__PURE__*/React__default.createElement(Text
|
|
7734
7759
|
// Apply base title styles and merge activeText styles if this tab is active
|
|
7735
|
-
, Object.assign({},
|
|
7760
|
+
, Object.assign({}, views.title, isActive ? views.activeText : {}), tab.title));
|
|
7736
7761
|
})), /*#__PURE__*/React__default.createElement(View, Object.assign({
|
|
7737
7762
|
width: '100%',
|
|
7738
7763
|
height: "100%"
|
|
7739
|
-
},
|
|
7764
|
+
}, views.content), renderContent ? renderContent(activeTab) :
|
|
7740
7765
|
// Otherwise, render the content property from the active tab object
|
|
7741
7766
|
activeTab.content))
|
|
7742
7767
|
);
|
|
@@ -7749,7 +7774,7 @@
|
|
|
7749
7774
|
var TabsComponent = _ref => {
|
|
7750
7775
|
var {
|
|
7751
7776
|
tabs,
|
|
7752
|
-
|
|
7777
|
+
views,
|
|
7753
7778
|
initialTabValue,
|
|
7754
7779
|
onTabChange,
|
|
7755
7780
|
renderTab,
|
|
@@ -7774,7 +7799,7 @@
|
|
|
7774
7799
|
// Render the presentation component with the necessary props
|
|
7775
7800
|
return /*#__PURE__*/React__default.createElement(TabsView, {
|
|
7776
7801
|
tabs: tabs,
|
|
7777
|
-
|
|
7802
|
+
views: views,
|
|
7778
7803
|
activeTab: activeTab,
|
|
7779
7804
|
handleTabClick: handleTabClick,
|
|
7780
7805
|
renderTab: renderTab,
|
|
@@ -7799,18 +7824,11 @@
|
|
|
7799
7824
|
};
|
|
7800
7825
|
};
|
|
7801
7826
|
|
|
7802
|
-
var
|
|
7803
|
-
sharp: 0,
|
|
7804
|
-
rounded: 4,
|
|
7805
|
-
pillShaped: 24
|
|
7806
|
-
};
|
|
7807
|
-
|
|
7808
|
-
var _excluded$z = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
7827
|
+
var _excluded$A = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
7809
7828
|
var ToggleView = _ref => {
|
|
7810
7829
|
var {
|
|
7811
7830
|
children,
|
|
7812
7831
|
shape = 'rounded',
|
|
7813
|
-
colorScheme = 'color.trueGray.400',
|
|
7814
7832
|
variant = 'ghost',
|
|
7815
7833
|
isHovered,
|
|
7816
7834
|
setIsHovered,
|
|
@@ -7819,14 +7837,14 @@
|
|
|
7819
7837
|
setIsToggled,
|
|
7820
7838
|
onToggle
|
|
7821
7839
|
} = _ref,
|
|
7822
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7823
|
-
var toggleColor = !isDisabled ?
|
|
7840
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
7841
|
+
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
7824
7842
|
var isActive = !!(isToggle || isHovered);
|
|
7825
|
-
var
|
|
7843
|
+
var toggleVariants = {
|
|
7826
7844
|
outline: {
|
|
7827
7845
|
borderWidth: 1,
|
|
7828
7846
|
borderStyle: 'solid',
|
|
7829
|
-
borderColor:
|
|
7847
|
+
borderColor: 'color.trueGray.400'
|
|
7830
7848
|
},
|
|
7831
7849
|
link: {
|
|
7832
7850
|
borderWidth: 1,
|
|
@@ -7856,25 +7874,24 @@
|
|
|
7856
7874
|
onMouseEnter: () => setIsHovered(true),
|
|
7857
7875
|
onMouseLeave: () => setIsHovered(false),
|
|
7858
7876
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
7859
|
-
borderRadius:
|
|
7877
|
+
borderRadius: shape === 'pillShaped' ? '50px' : '8px',
|
|
7860
7878
|
onClick: handleToggle
|
|
7861
|
-
},
|
|
7879
|
+
}, toggleVariants[variant], props), children);
|
|
7862
7880
|
};
|
|
7863
7881
|
|
|
7864
|
-
var _excluded$
|
|
7882
|
+
var _excluded$B = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
7865
7883
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
7866
7884
|
var ToggleComponent = _ref => {
|
|
7867
7885
|
var {
|
|
7868
7886
|
children,
|
|
7869
7887
|
shape,
|
|
7870
|
-
colorScheme,
|
|
7871
7888
|
variant,
|
|
7872
7889
|
isDisabled,
|
|
7873
7890
|
// Assigning a default value of false to the isToggled property if none is provided.
|
|
7874
7891
|
isToggled = false,
|
|
7875
7892
|
onToggle
|
|
7876
7893
|
} = _ref,
|
|
7877
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7894
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
7878
7895
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
7879
7896
|
var {
|
|
7880
7897
|
isHovered,
|
|
@@ -7889,7 +7906,6 @@
|
|
|
7889
7906
|
// Beginning of the JSX block to render the Toggle view component.
|
|
7890
7907
|
return /*#__PURE__*/React__default.createElement(ToggleView, Object.assign({
|
|
7891
7908
|
shape: shape,
|
|
7892
|
-
colorScheme: colorScheme,
|
|
7893
7909
|
variant: variant,
|
|
7894
7910
|
isDisabled: isDisabled,
|
|
7895
7911
|
isHovered: isHovered,
|
|
@@ -7924,9 +7940,7 @@
|
|
|
7924
7940
|
// Prop 'shape' with default value 'rounded', determines the shape of the toggle buttons.
|
|
7925
7941
|
shape = 'rounded',
|
|
7926
7942
|
// Prop 'variant' with default value 'ghost' represents the visual style variant of the toggles.
|
|
7927
|
-
variant = 'ghost'
|
|
7928
|
-
// Prop 'colorScheme' with default value 'color.trueGray.400' sets the color theme for toggles.
|
|
7929
|
-
colorScheme = 'color.trueGray.400'
|
|
7943
|
+
variant = 'ghost'
|
|
7930
7944
|
} = _ref;
|
|
7931
7945
|
// handleToggle is a memoized callback that handles the toggle state changes.
|
|
7932
7946
|
var handleToggle = React.useCallback((id, isActive) => {
|
|
@@ -7948,7 +7962,6 @@
|
|
|
7948
7962
|
}, items.map(item => (/*#__PURE__*/React__default.createElement(Toggle, {
|
|
7949
7963
|
role: "toggle-" + item.id,
|
|
7950
7964
|
key: item.id,
|
|
7951
|
-
colorScheme: colorScheme,
|
|
7952
7965
|
shape: shape,
|
|
7953
7966
|
variant: variant,
|
|
7954
7967
|
isToggled: activeToggles.includes(item.id) || item.isActive,
|
|
@@ -7964,8 +7977,6 @@
|
|
|
7964
7977
|
items,
|
|
7965
7978
|
// Destructure 'shape' prop to define the shape of the toggle buttons
|
|
7966
7979
|
shape,
|
|
7967
|
-
// Destructure 'colorScheme' prop for toggle button styling
|
|
7968
|
-
colorScheme,
|
|
7969
7980
|
// Destructure 'variant' prop to determine the visual style of the toggle group
|
|
7970
7981
|
variant,
|
|
7971
7982
|
// Destructure 'onToggleChange' prop for the callback when toggle state changes
|
|
@@ -7979,7 +7990,6 @@
|
|
|
7979
7990
|
return /*#__PURE__*/React__default.createElement(ToggleGroupView, {
|
|
7980
7991
|
items: items,
|
|
7981
7992
|
shape: shape,
|
|
7982
|
-
colorScheme: colorScheme,
|
|
7983
7993
|
variant: variant,
|
|
7984
7994
|
activeToggles: activeToggles,
|
|
7985
7995
|
setActiveToggles: setActiveToggles,
|
|
@@ -8233,14 +8243,12 @@
|
|
|
8233
8243
|
exports.WifiIcon = WifiIcon;
|
|
8234
8244
|
exports.XIcon = XIcon;
|
|
8235
8245
|
exports.YoutubeIcon = YoutubeIcon;
|
|
8236
|
-
exports.generateThumbnail = generateThumbnail;
|
|
8237
8246
|
exports.hideMessage = hideMessage;
|
|
8238
8247
|
exports.hideModal = hideModal;
|
|
8239
8248
|
exports.showMessage = showMessage;
|
|
8240
8249
|
exports.showModal = showModal;
|
|
8241
8250
|
exports.useMessageStore = useMessageStore;
|
|
8242
8251
|
exports.useModalStore = useModalStore;
|
|
8243
|
-
exports.useUpload = useUpload;
|
|
8244
8252
|
|
|
8245
8253
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8246
8254
|
|