@ovotech/element-native 3.5.0 → 3.6.0-canary-0ed6e33-174
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/ActionCard/ActionCard.js +13 -11
- package/dist/components/CTALink/CTALink.d.ts +1 -1
- package/dist/components/DescriptionList/styled.d.ts +214 -222
- package/dist/components/DescriptionList/styled.js +4 -2
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +2 -1
- package/dist/components/Label/Label.d.ts +243 -0
- package/dist/components/Label/Label.js +38 -0
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/Label/index.js +5 -0
- package/dist/components/Lead/Lead.d.ts +243 -0
- package/dist/components/Lead/Lead.js +38 -0
- package/dist/components/Lead/index.d.ts +1 -0
- package/dist/components/Lead/index.js +5 -0
- package/dist/components/List/List.d.ts +4 -245
- package/dist/components/List/List.js +17 -66
- package/dist/components/List/styled.d.ts +7 -473
- package/dist/components/List/styled.js +9 -26
- package/dist/components/SelectField/Select.js +5 -3
- package/dist/components/Spinner/Spinner.d.ts +8 -0
- package/dist/components/Spinner/Spinner.js +82 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Spinner/index.js +5 -0
- package/dist/components/Toggle/Toggle.d.ts +10 -0
- package/dist/components/Toggle/Toggle.js +56 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Toggle/index.js +5 -0
- package/dist/components/Toggle/styles.d.ts +939 -0
- package/dist/components/Toggle/styles.js +28 -0
- package/dist/components/index.d.ts +29 -25
- package/dist/components/index.js +29 -25
- package/dist/esm/components/ActionCard/ActionCard.js +13 -11
- package/dist/esm/components/DescriptionList/styled.js +4 -2
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +2 -1
- package/dist/esm/components/Label/Label.js +12 -0
- package/dist/esm/components/Label/index.js +1 -0
- package/dist/esm/components/Lead/Lead.js +12 -0
- package/dist/esm/components/Lead/index.js +1 -0
- package/dist/esm/components/List/List.js +19 -67
- package/dist/esm/components/List/styled.js +8 -25
- package/dist/esm/components/SelectField/Select.js +5 -3
- package/dist/esm/components/Spinner/Spinner.js +55 -0
- package/dist/esm/components/Spinner/index.js +1 -0
- package/dist/esm/components/Toggle/Toggle.js +53 -0
- package/dist/esm/components/Toggle/index.js +1 -0
- package/dist/esm/components/Toggle/styles.js +22 -0
- package/dist/esm/components/index.js +29 -25
- package/dist/esm/providers/IconsProvider.js +2 -1
- package/dist/esm/providers/icons/Logo.js +3 -3
- package/dist/esm/providers/icons/Torch.js +14 -0
- package/dist/esm/providers/icons/index.js +1 -0
- package/dist/providers/IconsProvider.js +1 -0
- package/dist/providers/icons/Logo.js +1 -1
- package/dist/providers/icons/Torch.d.ts +2 -0
- package/dist/providers/icons/Torch.js +41 -0
- package/dist/providers/icons/index.d.ts +1 -0
- package/dist/providers/icons/index.js +1 -0
- package/dist/providers/types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ViewProps } from 'react-native';
|
|
3
3
|
import { Breakpoints } from '../../hooks';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const SquareBullet: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
5
5
|
core: {
|
|
6
6
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
7
7
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
@@ -235,7 +235,7 @@ export declare const UlBullet: import("styled-components").StyledComponent<typeo
|
|
|
235
235
|
}, ViewProps & {
|
|
236
236
|
visible?: boolean | undefined;
|
|
237
237
|
} & Breakpoints, never>;
|
|
238
|
-
export declare const
|
|
238
|
+
export declare const TextBullet: import("styled-components").StyledComponent<typeof import("react-native").Text, {
|
|
239
239
|
core: {
|
|
240
240
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
241
241
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
@@ -467,7 +467,7 @@ export declare const StyledBullet: import("styled-components").StyledComponent<t
|
|
|
467
467
|
};
|
|
468
468
|
};
|
|
469
469
|
}, Breakpoints, never>;
|
|
470
|
-
export declare const
|
|
470
|
+
export declare const FlexRow: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
471
471
|
core: {
|
|
472
472
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
473
473
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
@@ -698,10 +698,8 @@ export declare const StyledUlItem: import("styled-components").StyledComponent<t
|
|
|
698
698
|
};
|
|
699
699
|
};
|
|
700
700
|
};
|
|
701
|
-
}, {
|
|
702
|
-
|
|
703
|
-
}, never>;
|
|
704
|
-
export declare const StyledOlItem: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
701
|
+
}, {}, never>;
|
|
702
|
+
export declare const LiContent: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
705
703
|
core: {
|
|
706
704
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
707
705
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
@@ -933,469 +931,5 @@ export declare const StyledOlItem: import("styled-components").StyledComponent<t
|
|
|
933
931
|
};
|
|
934
932
|
};
|
|
935
933
|
}, {
|
|
936
|
-
|
|
934
|
+
children?: import("react").ReactNode;
|
|
937
935
|
}, never>;
|
|
938
|
-
export declare const StyledList: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
939
|
-
core: {
|
|
940
|
-
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
941
|
-
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
942
|
-
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
943
|
-
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
944
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
945
|
-
transition: Record<"medium" | "slow" | "fast", string>;
|
|
946
|
-
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
947
|
-
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
948
|
-
lightest: string;
|
|
949
|
-
lighter: string;
|
|
950
|
-
light: string;
|
|
951
|
-
base: string;
|
|
952
|
-
dark: string;
|
|
953
|
-
darker: string;
|
|
954
|
-
darkest: string;
|
|
955
|
-
}> & {
|
|
956
|
-
brand: Record<string, string>;
|
|
957
|
-
};
|
|
958
|
-
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
959
|
-
native: string;
|
|
960
|
-
web: string;
|
|
961
|
-
}>;
|
|
962
|
-
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
963
|
-
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
964
|
-
small: string | number;
|
|
965
|
-
large: string | number;
|
|
966
|
-
}>;
|
|
967
|
-
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
968
|
-
small: string | number;
|
|
969
|
-
large: string | number;
|
|
970
|
-
}>;
|
|
971
|
-
letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
|
|
972
|
-
};
|
|
973
|
-
semantic: {
|
|
974
|
-
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
975
|
-
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
976
|
-
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
977
|
-
focus: Record<"surface" | "outline" | "hover", string>;
|
|
978
|
-
inverted: Record<"surface" | "border", string> & {
|
|
979
|
-
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
980
|
-
};
|
|
981
|
-
success: {
|
|
982
|
-
border: string;
|
|
983
|
-
surface: string;
|
|
984
|
-
surfaceEmphasis: string;
|
|
985
|
-
message: string;
|
|
986
|
-
messageOnEmphasis: string;
|
|
987
|
-
};
|
|
988
|
-
warning: {
|
|
989
|
-
border: string;
|
|
990
|
-
surface: string;
|
|
991
|
-
surfaceEmphasis: string;
|
|
992
|
-
message: string;
|
|
993
|
-
messageOnEmphasis: string;
|
|
994
|
-
};
|
|
995
|
-
error: {
|
|
996
|
-
border: string;
|
|
997
|
-
surface: string;
|
|
998
|
-
surfaceEmphasis: string;
|
|
999
|
-
message: string;
|
|
1000
|
-
messageOnEmphasis: string;
|
|
1001
|
-
};
|
|
1002
|
-
info: {
|
|
1003
|
-
border: string;
|
|
1004
|
-
surface: string;
|
|
1005
|
-
surfaceEmphasis: string;
|
|
1006
|
-
message: string;
|
|
1007
|
-
messageOnEmphasis: string;
|
|
1008
|
-
};
|
|
1009
|
-
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
1010
|
-
};
|
|
1011
|
-
component: {
|
|
1012
|
-
heading1: {
|
|
1013
|
-
fontFamily: string;
|
|
1014
|
-
fontWeight: string | number;
|
|
1015
|
-
fontSize: {
|
|
1016
|
-
small: string | number;
|
|
1017
|
-
large: string | number;
|
|
1018
|
-
};
|
|
1019
|
-
lineHeight: {
|
|
1020
|
-
small: string | number;
|
|
1021
|
-
large: string | number;
|
|
1022
|
-
};
|
|
1023
|
-
};
|
|
1024
|
-
heading2: {
|
|
1025
|
-
fontFamily: string;
|
|
1026
|
-
fontWeight: string | number;
|
|
1027
|
-
fontSize: {
|
|
1028
|
-
small: string | number;
|
|
1029
|
-
large: string | number;
|
|
1030
|
-
};
|
|
1031
|
-
lineHeight: {
|
|
1032
|
-
small: string | number;
|
|
1033
|
-
large: string | number;
|
|
1034
|
-
};
|
|
1035
|
-
};
|
|
1036
|
-
heading3: {
|
|
1037
|
-
fontFamily: string;
|
|
1038
|
-
fontWeight: string | number;
|
|
1039
|
-
fontSize: {
|
|
1040
|
-
small: string | number;
|
|
1041
|
-
large: string | number;
|
|
1042
|
-
};
|
|
1043
|
-
lineHeight: {
|
|
1044
|
-
small: string | number;
|
|
1045
|
-
large: string | number;
|
|
1046
|
-
};
|
|
1047
|
-
};
|
|
1048
|
-
heading4: {
|
|
1049
|
-
fontFamily: string;
|
|
1050
|
-
fontWeight: string | number;
|
|
1051
|
-
fontSize: {
|
|
1052
|
-
small: string | number;
|
|
1053
|
-
large: string | number;
|
|
1054
|
-
};
|
|
1055
|
-
lineHeight: {
|
|
1056
|
-
small: string | number;
|
|
1057
|
-
large: string | number;
|
|
1058
|
-
};
|
|
1059
|
-
};
|
|
1060
|
-
lead: {
|
|
1061
|
-
fontFamily: string;
|
|
1062
|
-
fontWeight: string | number;
|
|
1063
|
-
fontSize: {
|
|
1064
|
-
small: string | number;
|
|
1065
|
-
large: string | number;
|
|
1066
|
-
};
|
|
1067
|
-
lineHeight: {
|
|
1068
|
-
small: string | number;
|
|
1069
|
-
large: string | number;
|
|
1070
|
-
};
|
|
1071
|
-
};
|
|
1072
|
-
body: {
|
|
1073
|
-
fontFamily: string;
|
|
1074
|
-
fontWeight: string | number;
|
|
1075
|
-
fontSize: {
|
|
1076
|
-
small: string | number;
|
|
1077
|
-
large: string | number;
|
|
1078
|
-
};
|
|
1079
|
-
lineHeight: {
|
|
1080
|
-
small: string | number;
|
|
1081
|
-
large: string | number;
|
|
1082
|
-
};
|
|
1083
|
-
};
|
|
1084
|
-
small: {
|
|
1085
|
-
fontFamily: string;
|
|
1086
|
-
fontWeight: string | number;
|
|
1087
|
-
fontSize: {
|
|
1088
|
-
small: string | number;
|
|
1089
|
-
large: string | number;
|
|
1090
|
-
};
|
|
1091
|
-
lineHeight: {
|
|
1092
|
-
small: string | number;
|
|
1093
|
-
large: string | number;
|
|
1094
|
-
};
|
|
1095
|
-
};
|
|
1096
|
-
label: {
|
|
1097
|
-
fontFamily: string;
|
|
1098
|
-
fontWeight: string | number;
|
|
1099
|
-
fontSize: {
|
|
1100
|
-
small: string | number;
|
|
1101
|
-
large: string | number;
|
|
1102
|
-
};
|
|
1103
|
-
lineHeight: {
|
|
1104
|
-
small: string | number;
|
|
1105
|
-
large: string | number;
|
|
1106
|
-
};
|
|
1107
|
-
};
|
|
1108
|
-
cta: {
|
|
1109
|
-
primary: {
|
|
1110
|
-
message: string;
|
|
1111
|
-
surface: string;
|
|
1112
|
-
messageHover: string;
|
|
1113
|
-
surfaceHover: string;
|
|
1114
|
-
messageFocused: string;
|
|
1115
|
-
surfaceFocused: string;
|
|
1116
|
-
outlineFocused: string;
|
|
1117
|
-
backgroundFocused: string;
|
|
1118
|
-
};
|
|
1119
|
-
secondary: {
|
|
1120
|
-
message: string;
|
|
1121
|
-
surface: string;
|
|
1122
|
-
messageHover: string;
|
|
1123
|
-
surfaceHover: string;
|
|
1124
|
-
messageFocused: string;
|
|
1125
|
-
surfaceFocused: string;
|
|
1126
|
-
outlineFocused: string;
|
|
1127
|
-
backgroundFocused: string;
|
|
1128
|
-
};
|
|
1129
|
-
destructive: {
|
|
1130
|
-
message: string;
|
|
1131
|
-
surface: string;
|
|
1132
|
-
messageHover: string;
|
|
1133
|
-
surfaceHover: string;
|
|
1134
|
-
messageFocused: string;
|
|
1135
|
-
surfaceFocused: string;
|
|
1136
|
-
outlineFocused: string;
|
|
1137
|
-
backgroundFocused: string;
|
|
1138
|
-
};
|
|
1139
|
-
};
|
|
1140
|
-
badge: {
|
|
1141
|
-
variants: {
|
|
1142
|
-
neutral: {
|
|
1143
|
-
foreground: string;
|
|
1144
|
-
background: string;
|
|
1145
|
-
};
|
|
1146
|
-
red: {
|
|
1147
|
-
foreground: string;
|
|
1148
|
-
background: string;
|
|
1149
|
-
};
|
|
1150
|
-
orange: {
|
|
1151
|
-
foreground: string;
|
|
1152
|
-
background: string;
|
|
1153
|
-
};
|
|
1154
|
-
yellow: {
|
|
1155
|
-
foreground: string;
|
|
1156
|
-
background: string;
|
|
1157
|
-
};
|
|
1158
|
-
green: {
|
|
1159
|
-
foreground: string;
|
|
1160
|
-
background: string;
|
|
1161
|
-
};
|
|
1162
|
-
blue: {
|
|
1163
|
-
foreground: string;
|
|
1164
|
-
background: string;
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
|
-
};
|
|
1168
|
-
};
|
|
1169
|
-
}, Breakpoints, never>;
|
|
1170
|
-
export declare const StyledLi: import("styled-components").StyledComponent<typeof import("react-native").Text, {
|
|
1171
|
-
core: {
|
|
1172
|
-
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
1173
|
-
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
1174
|
-
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
1175
|
-
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
1176
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
1177
|
-
transition: Record<"medium" | "slow" | "fast", string>;
|
|
1178
|
-
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
1179
|
-
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
1180
|
-
lightest: string;
|
|
1181
|
-
lighter: string;
|
|
1182
|
-
light: string;
|
|
1183
|
-
base: string;
|
|
1184
|
-
dark: string;
|
|
1185
|
-
darker: string;
|
|
1186
|
-
darkest: string;
|
|
1187
|
-
}> & {
|
|
1188
|
-
brand: Record<string, string>;
|
|
1189
|
-
};
|
|
1190
|
-
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
1191
|
-
native: string;
|
|
1192
|
-
web: string;
|
|
1193
|
-
}>;
|
|
1194
|
-
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
1195
|
-
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
1196
|
-
small: string | number;
|
|
1197
|
-
large: string | number;
|
|
1198
|
-
}>;
|
|
1199
|
-
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
1200
|
-
small: string | number;
|
|
1201
|
-
large: string | number;
|
|
1202
|
-
}>;
|
|
1203
|
-
letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
|
|
1204
|
-
};
|
|
1205
|
-
semantic: {
|
|
1206
|
-
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
1207
|
-
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
1208
|
-
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
1209
|
-
focus: Record<"surface" | "outline" | "hover", string>;
|
|
1210
|
-
inverted: Record<"surface" | "border", string> & {
|
|
1211
|
-
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
1212
|
-
};
|
|
1213
|
-
success: {
|
|
1214
|
-
border: string;
|
|
1215
|
-
surface: string;
|
|
1216
|
-
surfaceEmphasis: string;
|
|
1217
|
-
message: string;
|
|
1218
|
-
messageOnEmphasis: string;
|
|
1219
|
-
};
|
|
1220
|
-
warning: {
|
|
1221
|
-
border: string;
|
|
1222
|
-
surface: string;
|
|
1223
|
-
surfaceEmphasis: string;
|
|
1224
|
-
message: string;
|
|
1225
|
-
messageOnEmphasis: string;
|
|
1226
|
-
};
|
|
1227
|
-
error: {
|
|
1228
|
-
border: string;
|
|
1229
|
-
surface: string;
|
|
1230
|
-
surfaceEmphasis: string;
|
|
1231
|
-
message: string;
|
|
1232
|
-
messageOnEmphasis: string;
|
|
1233
|
-
};
|
|
1234
|
-
info: {
|
|
1235
|
-
border: string;
|
|
1236
|
-
surface: string;
|
|
1237
|
-
surfaceEmphasis: string;
|
|
1238
|
-
message: string;
|
|
1239
|
-
messageOnEmphasis: string;
|
|
1240
|
-
};
|
|
1241
|
-
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
1242
|
-
};
|
|
1243
|
-
component: {
|
|
1244
|
-
heading1: {
|
|
1245
|
-
fontFamily: string;
|
|
1246
|
-
fontWeight: string | number;
|
|
1247
|
-
fontSize: {
|
|
1248
|
-
small: string | number;
|
|
1249
|
-
large: string | number;
|
|
1250
|
-
};
|
|
1251
|
-
lineHeight: {
|
|
1252
|
-
small: string | number;
|
|
1253
|
-
large: string | number;
|
|
1254
|
-
};
|
|
1255
|
-
};
|
|
1256
|
-
heading2: {
|
|
1257
|
-
fontFamily: string;
|
|
1258
|
-
fontWeight: string | number;
|
|
1259
|
-
fontSize: {
|
|
1260
|
-
small: string | number;
|
|
1261
|
-
large: string | number;
|
|
1262
|
-
};
|
|
1263
|
-
lineHeight: {
|
|
1264
|
-
small: string | number;
|
|
1265
|
-
large: string | number;
|
|
1266
|
-
};
|
|
1267
|
-
};
|
|
1268
|
-
heading3: {
|
|
1269
|
-
fontFamily: string;
|
|
1270
|
-
fontWeight: string | number;
|
|
1271
|
-
fontSize: {
|
|
1272
|
-
small: string | number;
|
|
1273
|
-
large: string | number;
|
|
1274
|
-
};
|
|
1275
|
-
lineHeight: {
|
|
1276
|
-
small: string | number;
|
|
1277
|
-
large: string | number;
|
|
1278
|
-
};
|
|
1279
|
-
};
|
|
1280
|
-
heading4: {
|
|
1281
|
-
fontFamily: string;
|
|
1282
|
-
fontWeight: string | number;
|
|
1283
|
-
fontSize: {
|
|
1284
|
-
small: string | number;
|
|
1285
|
-
large: string | number;
|
|
1286
|
-
};
|
|
1287
|
-
lineHeight: {
|
|
1288
|
-
small: string | number;
|
|
1289
|
-
large: string | number;
|
|
1290
|
-
};
|
|
1291
|
-
};
|
|
1292
|
-
lead: {
|
|
1293
|
-
fontFamily: string;
|
|
1294
|
-
fontWeight: string | number;
|
|
1295
|
-
fontSize: {
|
|
1296
|
-
small: string | number;
|
|
1297
|
-
large: string | number;
|
|
1298
|
-
};
|
|
1299
|
-
lineHeight: {
|
|
1300
|
-
small: string | number;
|
|
1301
|
-
large: string | number;
|
|
1302
|
-
};
|
|
1303
|
-
};
|
|
1304
|
-
body: {
|
|
1305
|
-
fontFamily: string;
|
|
1306
|
-
fontWeight: string | number;
|
|
1307
|
-
fontSize: {
|
|
1308
|
-
small: string | number;
|
|
1309
|
-
large: string | number;
|
|
1310
|
-
};
|
|
1311
|
-
lineHeight: {
|
|
1312
|
-
small: string | number;
|
|
1313
|
-
large: string | number;
|
|
1314
|
-
};
|
|
1315
|
-
};
|
|
1316
|
-
small: {
|
|
1317
|
-
fontFamily: string;
|
|
1318
|
-
fontWeight: string | number;
|
|
1319
|
-
fontSize: {
|
|
1320
|
-
small: string | number;
|
|
1321
|
-
large: string | number;
|
|
1322
|
-
};
|
|
1323
|
-
lineHeight: {
|
|
1324
|
-
small: string | number;
|
|
1325
|
-
large: string | number;
|
|
1326
|
-
};
|
|
1327
|
-
};
|
|
1328
|
-
label: {
|
|
1329
|
-
fontFamily: string;
|
|
1330
|
-
fontWeight: string | number;
|
|
1331
|
-
fontSize: {
|
|
1332
|
-
small: string | number;
|
|
1333
|
-
large: string | number;
|
|
1334
|
-
};
|
|
1335
|
-
lineHeight: {
|
|
1336
|
-
small: string | number;
|
|
1337
|
-
large: string | number;
|
|
1338
|
-
};
|
|
1339
|
-
};
|
|
1340
|
-
cta: {
|
|
1341
|
-
primary: {
|
|
1342
|
-
message: string;
|
|
1343
|
-
surface: string;
|
|
1344
|
-
messageHover: string;
|
|
1345
|
-
surfaceHover: string;
|
|
1346
|
-
messageFocused: string;
|
|
1347
|
-
surfaceFocused: string;
|
|
1348
|
-
outlineFocused: string;
|
|
1349
|
-
backgroundFocused: string;
|
|
1350
|
-
};
|
|
1351
|
-
secondary: {
|
|
1352
|
-
message: string;
|
|
1353
|
-
surface: string;
|
|
1354
|
-
messageHover: string;
|
|
1355
|
-
surfaceHover: string;
|
|
1356
|
-
messageFocused: string;
|
|
1357
|
-
surfaceFocused: string;
|
|
1358
|
-
outlineFocused: string;
|
|
1359
|
-
backgroundFocused: string;
|
|
1360
|
-
};
|
|
1361
|
-
destructive: {
|
|
1362
|
-
message: string;
|
|
1363
|
-
surface: string;
|
|
1364
|
-
messageHover: string;
|
|
1365
|
-
surfaceHover: string;
|
|
1366
|
-
messageFocused: string;
|
|
1367
|
-
surfaceFocused: string;
|
|
1368
|
-
outlineFocused: string;
|
|
1369
|
-
backgroundFocused: string;
|
|
1370
|
-
};
|
|
1371
|
-
};
|
|
1372
|
-
badge: {
|
|
1373
|
-
variants: {
|
|
1374
|
-
neutral: {
|
|
1375
|
-
foreground: string;
|
|
1376
|
-
background: string;
|
|
1377
|
-
};
|
|
1378
|
-
red: {
|
|
1379
|
-
foreground: string;
|
|
1380
|
-
background: string;
|
|
1381
|
-
};
|
|
1382
|
-
orange: {
|
|
1383
|
-
foreground: string;
|
|
1384
|
-
background: string;
|
|
1385
|
-
};
|
|
1386
|
-
yellow: {
|
|
1387
|
-
foreground: string;
|
|
1388
|
-
background: string;
|
|
1389
|
-
};
|
|
1390
|
-
green: {
|
|
1391
|
-
foreground: string;
|
|
1392
|
-
background: string;
|
|
1393
|
-
};
|
|
1394
|
-
blue: {
|
|
1395
|
-
foreground: string;
|
|
1396
|
-
background: string;
|
|
1397
|
-
};
|
|
1398
|
-
};
|
|
1399
|
-
};
|
|
1400
|
-
};
|
|
1401
|
-
}, Breakpoints, never>;
|
|
@@ -27,18 +27,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
return result;
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.
|
|
30
|
+
exports.LiContent = exports.FlexRow = exports.TextBullet = exports.SquareBullet = void 0;
|
|
31
31
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
32
32
|
var utils_1 = require("../../utils");
|
|
33
|
-
exports.
|
|
34
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic,
|
|
33
|
+
exports.SquareBullet = styled_native_1.default.View(function (_a) {
|
|
34
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, visible = _a.visible, smallAndUp = _a.smallAndUp;
|
|
35
35
|
var lineHeight = smallAndUp
|
|
36
36
|
? core.lineHeight.body.large
|
|
37
37
|
: core.lineHeight.body.small;
|
|
38
38
|
var topMargin = ((0, utils_1.pxToNumber)(lineHeight) - (0, utils_1.pxToNumber)(core.space[2])) / 2;
|
|
39
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
39
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-self: flex-start;\n width: ", ";\n height: ", ";\n margin-right: ", ";\n margin-top: ", "px;\n background-color: ", ";\n "], ["\n align-self: flex-start;\n width: ", ";\n height: ", ";\n margin-right: ", ";\n margin-top: ", "px;\n background-color: ", ";\n "])), core.space[2], core.space[2], core.space[2], topMargin, visible ? semantic.message.base : 'transparent');
|
|
40
40
|
});
|
|
41
|
-
exports.
|
|
41
|
+
exports.TextBullet = styled_native_1.default.Text(function (_a) {
|
|
42
42
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
43
43
|
var fontSize = smallAndUp
|
|
44
44
|
? core.fontSize.body.large
|
|
@@ -46,25 +46,8 @@ exports.StyledBullet = styled_native_1.default.Text(function (_a) {
|
|
|
46
46
|
var lineHeight = smallAndUp
|
|
47
47
|
? core.lineHeight.body.large
|
|
48
48
|
: core.lineHeight.body.small;
|
|
49
|
-
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n
|
|
49
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-right: ", ";\n min-width: ", ";\n min-height: ", ";\n font-size: ", ";\n line-height: ", ";\n text-align: left;\n color: ", ";\n "], ["\n margin-right: ", ";\n min-width: ", ";\n min-height: ", ";\n font-size: ", ";\n line-height: ", ";\n text-align: left;\n color: ", ";\n "])), core.space[1], core.space[3], core.space[3], fontSize, lineHeight, semantic.message.base);
|
|
50
50
|
});
|
|
51
|
-
exports.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
});
|
|
55
|
-
exports.StyledOlItem = exports.StyledUlItem;
|
|
56
|
-
exports.StyledList = styled_native_1.default.View(function (_a) {
|
|
57
|
-
var core = _a.theme.core, smallAndUp = _a.smallAndUp;
|
|
58
|
-
return (0, styled_native_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex-direction: column;\n flex: 1;\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n flex-direction: column;\n flex: 1;\n margin-top: ", ";\n margin-bottom: ", ";\n "])), smallAndUp ? core.space[3] : core.space[2], smallAndUp ? core.space[3] : core.space[2]);
|
|
59
|
-
});
|
|
60
|
-
exports.StyledLi = styled_native_1.default.Text(function (_a) {
|
|
61
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
62
|
-
var fontSize = smallAndUp
|
|
63
|
-
? core.fontSize.body.large
|
|
64
|
-
: core.fontSize.body.small;
|
|
65
|
-
var lineHeight = smallAndUp
|
|
66
|
-
? core.lineHeight.body.large
|
|
67
|
-
: core.lineHeight.body.large;
|
|
68
|
-
return (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), core.fontFamily.body.native, lineHeight, semantic.message.base, fontSize);
|
|
69
|
-
});
|
|
70
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
51
|
+
exports.FlexRow = styled_native_1.default.View(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n"], ["\n flex-direction: row;\n"])));
|
|
52
|
+
exports.LiContent = styled_native_1.default.View(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex-direction: column;\n flex: 1;\n"], ["\n flex-direction: column;\n flex: 1;\n"])));
|
|
53
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -52,11 +52,13 @@ var P_1 = require("../P");
|
|
|
52
52
|
var Strong_1 = require("../Strong");
|
|
53
53
|
var SelectInput = styled_native_1.default.TouchableOpacity(function (_a) {
|
|
54
54
|
var _b = _a.theme, semantic = _b.semantic, core = _b.core, hasError = _a.hasError;
|
|
55
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n border-color: ", ";\n border-width: ", "
|
|
55
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n border-color: ", ";\n border-width: ", ";\n border-radius: ", ";\n padding: ", ";\n padding-right: 14px;\n height: 44px;\n "], ["\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n border-color: ", ";\n border-width: ", ";\n border-radius: ", ";\n padding: ", ";\n padding-right: 14px;\n height: 44px;\n "])), core.color.brand.white, hasError
|
|
56
|
+
? semantic.error.border
|
|
57
|
+
: semantic.border.functional, core.borderWidth.small, core.radius.small, core.space[2]);
|
|
56
58
|
});
|
|
57
59
|
var DropdownWrapper = styled_native_1.default.View(function (_a) {
|
|
58
60
|
var core = _a.theme.core;
|
|
59
|
-
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 1;\n justify-content: center;\n align-items: center;\n
|
|
61
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 1;\n justify-content: center;\n align-items: center;\n /* 40 is an opacity for hex https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4 */\n background-color: ", "40;\n "], ["\n flex: 1;\n justify-content: center;\n align-items: center;\n /* 40 is an opacity for hex https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4 */\n background-color: ", "40;\n "])), core.color.neutral.darkest);
|
|
60
62
|
});
|
|
61
63
|
var DropdownContainer = styled_native_1.default.SafeAreaView(function (_a) {
|
|
62
64
|
var core = _a.theme.core;
|
|
@@ -82,7 +84,7 @@ var StyledP = (0, styled_native_1.default)(P_1.P)(function (_a) {
|
|
|
82
84
|
});
|
|
83
85
|
var StyledCategory = (0, styled_native_1.default)(P_1.P)(function (_a) {
|
|
84
86
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
85
|
-
return (0, styled_native_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: ", ";\n color: ", "
|
|
87
|
+
return (0, styled_native_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n padding-horizontal: ", ";\n padding-vertical: ", ";\n "], ["\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n padding-horizontal: ", ";\n padding-vertical: ", ";\n "])), core.fontSize.label.large, semantic.message.secondary, semantic.surface.cutout, core.space[4], core.space[1]);
|
|
86
88
|
});
|
|
87
89
|
var Select = function (_a) {
|
|
88
90
|
var _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.defaultSelected, defaultSelected = _c === void 0 ? { label: '', value: 'default' } : _c, _d = _a.noOptionMessage, noOptionMessage = _d === void 0 ? 'No option selected' : _d, _e = _a.onSelected, onSelected = _e === void 0 ? function () { return null; } : _e, _f = _a.hasError, hasError = _f === void 0 ? false : _f, _g = _a.testID, testID = _g === void 0 ? 'select' : _g;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare type SpinnerSize = 'large' | 'small';
|
|
2
|
+
declare type SpinnerProps = {
|
|
3
|
+
inverted?: boolean;
|
|
4
|
+
size?: SpinnerSize | number;
|
|
5
|
+
accessibilityLabel?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const Spinner: ({ inverted, size, accessibilityLabel, }: SpinnerProps) => JSX.Element;
|
|
8
|
+
export {};
|