@@ -661,12 +661,14 @@ import {
661
661
getOverrideProps ,
662
662
} from \\"@aws-amplify/ui-react\\";
663
663
664
- export type HiProps = React.PropsWithChildren<
664
+ export type ComplexTest1Props = React.PropsWithChildren<
665
665
Partial<FlexProps > & {
666
666
overrides ?: EscapeHatchProps | undefined | null ;
667
667
}
668
668
>;
669
- export default function Hi(props: HiProps): React.ReactElement {
669
+ export default function ComplexTest1(
670
+ props: ComplexTest1Props
671
+ ): React.ReactElement {
670
672
const { overrides: overridesProp , ... rest } = props ;
671
673
const overrides = { ... overridesProp };
672
674
return (
@@ -709,17 +711,17 @@ import {
709
711
EscapeHatchProps ,
710
712
Flex ,
711
713
FlexProps ,
714
+ View ,
712
715
getOverrideProps ,
713
716
} from \\"@aws-amplify/ui-react\\";
714
- import Box from \\"./Box\\";
715
717
716
- export type VerticalFlexFixedProps = React.PropsWithChildren<
718
+ export type ComplexTest2Props = React.PropsWithChildren<
717
719
Partial<FlexProps > & {
718
720
overrides ?: EscapeHatchProps | undefined | null ;
719
721
}
720
722
>;
721
- export default function VerticalFlexFixed (
722
- props: VerticalFlexFixedProps
723
+ export default function ComplexTest2 (
724
+ props: ComplexTest2Props
723
725
): React.ReactElement {
724
726
const { overrides: overridesProp , ... rest } = props ;
725
727
const overrides = { ... overridesProp };
@@ -749,24 +751,24 @@ export default function VerticalFlexFixed(
749
751
direction =\\"column\\"
750
752
{ ... getOverrideProps (overrides , \\" Flex.Flex[0]\\ " )}
751
753
>
752
- <Box
754
+ <View
753
755
width =\\"123px\\"
754
756
padding =\\"0px 0px 0px 0px\\"
755
757
backgroundColor =\\"rgb(255,0,0)\\"
756
758
position =\\"relative\\"
757
759
src =\\"https://via.placeholder.com/153x289?text=Amplify+Studio+is+Awesome!\\"
758
760
height =\\"125px\\"
759
- { ... getOverrideProps (overrides , \\" Flex.Flex[0].Box [0]\\ " )}
760
- ></Box >
761
- <Box
761
+ { ... getOverrideProps (overrides , \\" Flex.Flex[0].View [0]\\ " )}
762
+ ></View >
763
+ <View
762
764
width =\\"123px\\"
763
765
padding =\\"0px 0px 0px 0px\\"
764
766
backgroundColor =\\"rgb(219.30000364780426,255,0)\\"
765
767
position =\\"relative\\"
766
768
src =\\"https://via.placeholder.com/153x289?text=Amplify+Studio+is+Awesome!\\"
767
769
height =\\"122px\\"
768
- { ... getOverrideProps (overrides , \\" Flex.Flex[0].Box [1]\\ " )}
769
- ></Box >
770
+ { ... getOverrideProps (overrides , \\" Flex.Flex[0].View [1]\\ " )}
771
+ ></View >
770
772
</Flex >
771
773
</Flex >
772
774
);
@@ -782,18 +784,18 @@ import {
782
784
Flex ,
783
785
FlexProps ,
784
786
Text ,
787
+ View ,
785
788
getOverrideProps ,
786
789
} from \\"@aws-amplify/ui-react\\";
787
- import Box from \\"./Box\\";
788
790
import ReneButton from \\"./ReneButton\\";
789
791
790
- export type NewComponentProps = React.PropsWithChildren<
792
+ export type ComplexTest3Props = React.PropsWithChildren<
791
793
Partial<FlexProps > & {
792
794
overrides ?: EscapeHatchProps | undefined | null ;
793
795
}
794
796
>;
795
- export default function NewComponent (
796
- props: NewComponentProps
797
+ export default function ComplexTest3 (
798
+ props: ComplexTest3Props
797
799
): React.ReactElement {
798
800
const { overrides: overridesProp , ... rest } = props ;
799
801
const overrides = { ... overridesProp };
@@ -825,15 +827,15 @@ export default function NewComponent(
825
827
children =\\"Hello World!\\"
826
828
{ ... getOverrideProps (overrides , \\" Flex.Text[0]\\ " )}
827
829
></Text >
828
- <Box
830
+ <View
829
831
width =\\"390px\\"
830
832
padding =\\"0px 0px 0px 0px\\"
831
833
backgroundColor =\\"rgb(196.00000351667404,196.00000351667404,196.00000351667404)\\"
832
834
position =\\"relative\\"
833
835
src =\\"https://via.placeholder.com/430x452?text=Amplify+Studio+is+Awesome!\\"
834
836
height =\\"69px\\"
835
- { ... getOverrideProps (overrides , \\" Flex.Box [0]\\ " )}
836
- ></Box >
837
+ { ... getOverrideProps (overrides , \\" Flex.View [0]\\ " )}
838
+ ></View >
837
839
<ReneButton
838
840
width =\\"293px\\"
839
841
height =\\"45px\\"
@@ -867,20 +869,20 @@ import {
867
869
Flex ,
868
870
FlexProps ,
869
871
Variant ,
872
+ View ,
870
873
getOverrideProps ,
871
874
getOverridesFromVariants ,
872
875
} from \\"@aws-amplify/ui-react\\";
873
- import Box from \\"./Box\\";
874
876
875
- export type GroupReferenceProps = React.PropsWithChildren<
877
+ export type ComplexTest4Props = React.PropsWithChildren<
876
878
Partial<FlexProps > & {
877
879
colors ?: \\" Red/Orange\\ " ;
878
880
} & {
879
881
overrides ?: EscapeHatchProps | undefined | null ;
880
882
}
881
883
>;
882
- export default function GroupReference (
883
- props: GroupReferenceProps
884
+ export default function ComplexTest4 (
885
+ props: ComplexTest4Props
884
886
): React.ReactElement {
885
887
const { overrides: overridesProp , ... rest } = props ;
886
888
const variants : Variant [] = [
@@ -895,7 +897,7 @@ export default function GroupReference(
895
897
position: \\" relative\\ " ,
896
898
direction: \\" row\\ " ,
897
899
},
898
- \\" Flex.Flex.Box [1]\\ " : {
900
+ \\" Flex.Flex.View [1]\\ " : {
899
901
padding: \\" 0px 0px 0px 0px\\ " ,
900
902
backgroundColor: \\" rgb(255,153.00000607967377,0)\\ " ,
901
903
top: \\" 1px\\ " ,
@@ -905,7 +907,7 @@ export default function GroupReference(
905
907
position: \\" absolute\\ " ,
906
908
height: \\" 122px\\ " ,
907
909
},
908
- \\" Flex.Flex.Box [0]\\ " : {
910
+ \\" Flex.Flex.View [0]\\ " : {
909
911
padding: \\" 0px 0px 0px 0px\\ " ,
910
912
backgroundColor: \\" rgb(255,0,0)\\ " ,
911
913
top: \\" 0px\\ " ,
@@ -949,7 +951,7 @@ export default function GroupReference(
949
951
height =\\"123px\\"
950
952
{ ... getOverrideProps (overrides , \\" Flex.Flex[0]\\ " )}
951
953
>
952
- <Box
954
+ <View
953
955
padding =\\"0px 0px 0px 0px\\"
954
956
backgroundColor =\\"rgb(35.699965953826904,0,255)\\"
955
957
top =\\"0px\\"
@@ -958,9 +960,9 @@ export default function GroupReference(
958
960
width =\\"122px\\"
959
961
position =\\"absolute\\"
960
962
height =\\"123px\\"
961
- { ... getOverrideProps (overrides , \\" Flex.Flex[0].Box [0]\\ " )}
962
- ></Box >
963
- <Box
963
+ { ... getOverrideProps (overrides , \\" Flex.Flex[0].View [0]\\ " )}
964
+ ></View >
965
+ <View
964
966
padding =\\"0px 0px 0px 0px\\"
965
967
backgroundColor =\\"rgb(0,255,25.49997568130493)\\"
966
968
top =\\"1px\\"
@@ -969,8 +971,8 @@ export default function GroupReference(
969
971
width =\\"120px\\"
970
972
position =\\"absolute\\"
971
973
height =\\"122px\\"
972
- { ... getOverrideProps (overrides , \\" Flex.Flex[0].Box [1]\\ " )}
973
- ></Box >
974
+ { ... getOverrideProps (overrides , \\" Flex.Flex[0].View [1]\\ " )}
975
+ ></View >
974
976
</Flex >
975
977
</Flex >
976
978
);
@@ -985,16 +987,18 @@ import {
985
987
EscapeHatchProps ,
986
988
Flex ,
987
989
FlexProps ,
990
+ View ,
988
991
getOverrideProps ,
989
992
} from \\"@aws-amplify/ui-react\\";
990
- import Box from \\"./Box\\";
991
993
992
- export type FlexTestProps = React.PropsWithChildren<
994
+ export type ComplexTest5Props = React.PropsWithChildren<
993
995
Partial<FlexProps > & {
994
996
overrides ?: EscapeHatchProps | undefined | null ;
995
997
}
996
998
>;
997
- export default function FlexTest(props: FlexTestProps): React.ReactElement {
999
+ export default function ComplexTest5(
1000
+ props: ComplexTest5Props
1001
+ ): React.ReactElement {
998
1002
const { overrides: overridesProp , ... rest } = props ;
999
1003
const overrides = { ... overridesProp };
1000
1004
return (
@@ -1009,24 +1013,24 @@ export default function FlexTest(props: FlexTestProps): React.ReactElement {
1009
1013
{ ... rest }
1010
1014
{ ... getOverrideProps (overrides , \\" Flex\\ " )}
1011
1015
>
1012
- <Box
1016
+ <View
1013
1017
width =\\"120px\\"
1014
1018
padding =\\"0px 0px 0px 0px\\"
1015
1019
backgroundColor =\\"rgb(35.699965953826904,0,255)\\"
1016
1020
position =\\"relative\\"
1017
1021
src =\\"https://via.placeholder.com/240x120?text=Amplify+Studio+is+Awesome!\\"
1018
1022
height =\\"120px\\"
1019
- { ... getOverrideProps (overrides , \\" Flex.Box [0]\\ " )}
1020
- ></Box >
1021
- <Box
1023
+ { ... getOverrideProps (overrides , \\" Flex.View [0]\\ " )}
1024
+ ></View >
1025
+ <View
1022
1026
width =\\"120px\\"
1023
1027
padding =\\"0px 0px 0px 0px\\"
1024
1028
backgroundColor =\\"rgb(0,255,25.49997568130493)\\"
1025
1029
position =\\"relative\\"
1026
1030
src =\\"https://via.placeholder.com/240x120?text=Amplify+Studio+is+Awesome!\\"
1027
1031
height =\\"120px\\"
1028
- { ... getOverrideProps (overrides , \\" Flex.Box [1]\\ " )}
1029
- ></Box >
1032
+ { ... getOverrideProps (overrides , \\" Flex.View [1]\\ " )}
1033
+ ></View >
1030
1034
</Flex >
1031
1035
);
1032
1036
}
@@ -1044,12 +1048,14 @@ import {
1044
1048
getOverrideProps ,
1045
1049
} from \\"@aws-amplify/ui-react\\";
1046
1050
1047
- export type MohitHomeProps = React.PropsWithChildren<
1051
+ export type ComplexTest6Props = React.PropsWithChildren<
1048
1052
Partial<FlexProps > & {
1049
1053
overrides ?: EscapeHatchProps | undefined | null ;
1050
1054
}
1051
1055
>;
1052
- export default function MohitHome(props: MohitHomeProps): React.ReactElement {
1056
+ export default function ComplexTest6(
1057
+ props: ComplexTest6Props
1058
+ ): React.ReactElement {
1053
1059
const { overrides: overridesProp , ... rest } = props ;
1054
1060
const overrides = { ... overridesProp };
1055
1061
return (
@@ -1119,27 +1125,30 @@ import {
1119
1125
EscapeHatchProps ,
1120
1126
Image ,
1121
1127
Text ,
1128
+ View ,
1129
+ ViewProps ,
1122
1130
getOverrideProps ,
1123
1131
} from \\"@aws-amplify/ui-react\\";
1124
- import Box, { BoxProps } from \\"./Box\\";
1125
1132
1126
- export type ImageFlexProps = React.PropsWithChildren<
1127
- Partial<BoxProps > & {
1133
+ export type ComplexTest7Props = React.PropsWithChildren<
1134
+ Partial<ViewProps > & {
1128
1135
overrides ?: EscapeHatchProps | undefined | null ;
1129
1136
}
1130
1137
>;
1131
- export default function ImageFlex(props: ImageFlexProps): React.ReactElement {
1138
+ export default function ComplexTest7(
1139
+ props: ComplexTest7Props
1140
+ ): React.ReactElement {
1132
1141
const { overrides: overridesProp , ... rest } = props ;
1133
1142
const overrides = { ... overridesProp };
1134
1143
return (
1135
1144
/* @ts-ignore: TS2322 */
1136
- <Box
1145
+ <View
1137
1146
width =\\"401px\\"
1138
1147
padding =\\"0px 0px 0px 0px\\"
1139
1148
position =\\"relative\\"
1140
1149
height =\\"192px\\"
1141
1150
{ ... rest }
1142
- { ... getOverrideProps (overrides , \\" Box \\ " )}
1151
+ { ... getOverrideProps (overrides , \\" View \\ " )}
1143
1152
>
1144
1153
<Image
1145
1154
border =\\"4px SOLID rgb(0,0,0)\\"
@@ -1151,7 +1160,7 @@ export default function ImageFlex(props: ImageFlexProps): React.ReactElement {
1151
1160
width =\\"150.84925842285156px\\"
1152
1161
position =\\"absolute\\"
1153
1162
height =\\"196px\\"
1154
- { ... getOverrideProps (overrides , \\" Box .Image[0]\\ " )}
1163
+ { ... getOverrideProps (overrides , \\" View .Image[0]\\ " )}
1155
1164
></Image >
1156
1165
<Text
1157
1166
padding =\\"0px 0px 0px 0px\\"
@@ -1167,7 +1176,7 @@ export default function ImageFlex(props: ImageFlexProps): React.ReactElement {
1167
1176
fontWeight =\\"400\\"
1168
1177
height =\\"27.839996337890625px\\"
1169
1178
children =\\"Test\\"
1170
- { ... getOverrideProps (overrides , \\" Box .Text[0]\\ " )}
1179
+ { ... getOverrideProps (overrides , \\" View .Text[0]\\ " )}
1171
1180
></Text >
1172
1181
<Image
1173
1182
border =\\"4px SOLID rgb(0,0,0)\\"
@@ -1179,9 +1188,9 @@ export default function ImageFlex(props: ImageFlexProps): React.ReactElement {
1179
1188
width =\\"169.42330932617188px\\"
1180
1189
position =\\"absolute\\"
1181
1190
height =\\"189.0880126953125px\\"
1182
- { ... getOverrideProps (overrides , \\" Box .Image[1]\\ " )}
1191
+ { ... getOverrideProps (overrides , \\" View .Image[1]\\ " )}
1183
1192
></Image >
1184
- </Box >
1193
+ </View >
1185
1194
);
1186
1195
}
1187
1196
"
@@ -1194,17 +1203,17 @@ import {
1194
1203
EscapeHatchProps ,
1195
1204
Flex ,
1196
1205
FlexProps ,
1206
+ View ,
1197
1207
getOverrideProps ,
1198
1208
} from \\"@aws-amplify/ui-react\\";
1199
- import Box from \\"./Box\\";
1200
1209
1201
- export type VerticalFlexFillProps = React.PropsWithChildren<
1210
+ export type ComplexTest8Props = React.PropsWithChildren<
1202
1211
Partial<FlexProps > & {
1203
1212
overrides ?: EscapeHatchProps | undefined | null ;
1204
1213
}
1205
1214
>;
1206
- export default function VerticalFlexFill (
1207
- props: VerticalFlexFillProps
1215
+ export default function ComplexTest8 (
1216
+ props: ComplexTest8Props
1208
1217
): React.ReactElement {
1209
1218
const { overrides: overridesProp , ... rest } = props ;
1210
1219
const overrides = { ... overridesProp };
@@ -1232,24 +1241,24 @@ export default function VerticalFlexFill(
1232
1241
direction =\\"column\\"
1233
1242
{ ... getOverrideProps (overrides , \\" Flex.Flex[0]\\ " )}
1234
1243
>
1235
- <Box
1244
+ <View
1236
1245
width =\\"145px\\"
1237
1246
padding =\\"0px 0px 0px 0px\\"
1238
1247
backgroundColor =\\"rgb(219.30000364780426,255,0)\\"
1239
1248
position =\\"relative\\"
1240
1249
src =\\"https://via.placeholder.com/472x723?text=Amplify+Studio+is+Awesome!\\"
1241
1250
height =\\"119px\\"
1242
- { ... getOverrideProps (overrides , \\" Flex.Flex[0].Box [0]\\ " )}
1243
- ></Box >
1244
- <Box
1251
+ { ... getOverrideProps (overrides , \\" Flex.Flex[0].View [0]\\ " )}
1252
+ ></View >
1253
+ <View
1245
1254
width =\\"145px\\"
1246
1255
padding =\\"0px 0px 0px 0px\\"
1247
1256
backgroundColor =\\"rgb(255,0,0)\\"
1248
1257
position =\\"relative\\"
1249
1258
src =\\"https://via.placeholder.com/472x723?text=Amplify+Studio+is+Awesome!\\"
1250
1259
height =\\"124px\\"
1251
- { ... getOverrideProps (overrides , \\" Flex.Flex[0].Box [1]\\ " )}
1252
- ></Box >
1260
+ { ... getOverrideProps (overrides , \\" Flex.Flex[0].View [1]\\ " )}
1261
+ ></View >
1253
1262
</Flex >
1254
1263
</Flex >
1255
1264
);
0 commit comments