@ornikar/kitt-universal 23.0.2 → 23.2.1
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/CHANGELOG.md +26 -0
- package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.d.ts +11 -0
- package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.web.d.ts +4 -0
- package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.web.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts +13 -0
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts +4 -0
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.d.ts +12 -0
- package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.web.d.ts +4 -0
- package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.web.d.ts.map +1 -0
- package/dist/definitions/Highlight/Highlight.d.ts +10 -5
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
- package/dist/definitions/Highlight/hooks/useNativeAnimation.d.ts +18 -0
- package/dist/definitions/Highlight/hooks/useNativeAnimation.d.ts.map +1 -0
- package/dist/definitions/Highlight/hooks/useNativeAnimation.web.d.ts +3 -0
- package/dist/definitions/Highlight/hooks/useNativeAnimation.web.d.ts.map +1 -0
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +4 -1
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.d.ts +2 -0
- package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +37 -11
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +1 -4
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/forms.d.ts +1 -4
- package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/highlight.d.ts +11 -2
- package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/input.d.ts +2 -2
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/inputField.d.ts +1 -4
- package/dist/definitions/themes/late-ocean/inputField.d.ts.map +1 -1
- package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts +1 -1
- package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +487 -205
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +487 -205
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +486 -204
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.css +1 -1
- package/dist/index-node-20.10.cjs.web.js +451 -203
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +487 -205
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.css +1 -1
- package/dist/index-node-20.10.es.web.mjs +452 -204
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +501 -212
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +467 -211
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +212 -183
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +212 -183
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js +212 -183
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js +212 -183
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs +212 -183
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs +212 -183
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +218 -189
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +218 -189
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ import { BottomSheetScrollView, BottomSheetView, useBottomSheetDynamicSnapPoints
|
|
|
15
15
|
import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
16
16
|
import { parse } from 'twemoji-parser';
|
|
17
17
|
import * as WebBrowser from 'expo-web-browser';
|
|
18
|
-
import { CaretUpFillIcon, CaretDownFillIcon, EyeClosedRegularIcon, EyeRegularIcon, XRegularIcon } from '@ornikar/kitt-icons/phosphor';
|
|
18
|
+
import { CaretUpFillIcon, CaretDownFillIcon, EyeClosedRegularIcon, EyeRegularIcon, CaretDownRegularIcon, XRegularIcon } from '@ornikar/kitt-icons/phosphor';
|
|
19
19
|
import Downshift from 'downshift';
|
|
20
20
|
import Svg, { Path, LinearGradient, Stop, Mask, G, Defs, Circle as Circle$1 } from 'react-native-svg';
|
|
21
21
|
import DateTimePicker, { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
|
|
@@ -969,209 +969,64 @@ const datePicker = {
|
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
971
|
|
|
972
|
-
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
973
|
-
/** @deprecated legacy typography type config is deprecated. */
|
|
974
|
-
const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
|
|
975
|
-
baseAndSmall: {
|
|
976
|
-
fontSize: baseAndSmallFontSize,
|
|
977
|
-
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
978
|
-
},
|
|
979
|
-
mediumAndWide: {
|
|
980
|
-
fontSize: mediumAndWideFontSize,
|
|
981
|
-
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
982
|
-
}
|
|
983
|
-
});
|
|
984
|
-
const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
|
|
985
|
-
const config = {
|
|
986
|
-
fontSize,
|
|
987
|
-
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
988
|
-
};
|
|
989
|
-
return {
|
|
990
|
-
baseAndSmall: config,
|
|
991
|
-
mediumAndWide: config
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
const typography = {
|
|
995
|
-
colors: {
|
|
996
|
-
black: colors.black,
|
|
997
|
-
'black-anthracite': colors.blackAnthracite,
|
|
998
|
-
'black-disabled': lateOceanColorPalette.black400,
|
|
999
|
-
'black-light': lateOceanColorPalette.black555,
|
|
1000
|
-
white: colors.white,
|
|
1001
|
-
'white-light': colors.white,
|
|
1002
|
-
primary: colors.primary,
|
|
1003
|
-
'primary-light': colors.primaryLight,
|
|
1004
|
-
accent: colors.accent,
|
|
1005
|
-
success: colors.success,
|
|
1006
|
-
danger: colors.danger,
|
|
1007
|
-
warning: colors.warning
|
|
1008
|
-
},
|
|
1009
|
-
types: {
|
|
1010
|
-
headings: {
|
|
1011
|
-
fontFamily: {
|
|
1012
|
-
native: {
|
|
1013
|
-
regular: 'Moderat-Bold',
|
|
1014
|
-
bold: 'Moderat-Bold'
|
|
1015
|
-
},
|
|
1016
|
-
web: {
|
|
1017
|
-
regular: 'Moderat',
|
|
1018
|
-
bold: 'Moderat'
|
|
1019
|
-
}
|
|
1020
|
-
},
|
|
1021
|
-
fontWeight: {
|
|
1022
|
-
regular: 400,
|
|
1023
|
-
bold: 700
|
|
1024
|
-
},
|
|
1025
|
-
fontStyle: 'normal',
|
|
1026
|
-
configs: {
|
|
1027
|
-
/* legacy */
|
|
1028
|
-
header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
|
|
1029
|
-
header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
|
|
1030
|
-
header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
|
|
1031
|
-
header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
|
|
1032
|
-
header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
|
|
1033
|
-
/* latest */
|
|
1034
|
-
'heading-xxl': createTypographyConfig(56, 1.1),
|
|
1035
|
-
'heading-xl': createTypographyConfig(48, 1.1),
|
|
1036
|
-
'heading-l': createTypographyConfig(40, 1.1),
|
|
1037
|
-
'heading-m': createTypographyConfig(32, 1.2),
|
|
1038
|
-
'heading-s': createTypographyConfig(24, 1.2),
|
|
1039
|
-
'heading-xs': createTypographyConfig(18, 1.3),
|
|
1040
|
-
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
1041
|
-
}
|
|
1042
|
-
},
|
|
1043
|
-
'headings-impact': {
|
|
1044
|
-
fontFamily: {
|
|
1045
|
-
native: {
|
|
1046
|
-
regular: 'Transducer-Black',
|
|
1047
|
-
bold: 'Transducer-Black'
|
|
1048
|
-
},
|
|
1049
|
-
web: {
|
|
1050
|
-
regular: 'TransducerBlack',
|
|
1051
|
-
bold: 'TransducerBlack'
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
fontWeight: 900,
|
|
1055
|
-
fontStyle: 'normal',
|
|
1056
|
-
configs: {
|
|
1057
|
-
/* legacy */
|
|
1058
|
-
'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
|
|
1059
|
-
'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
|
|
1060
|
-
'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
|
|
1061
|
-
'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
|
|
1062
|
-
'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
|
|
1063
|
-
'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
|
|
1064
|
-
'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
|
|
1065
|
-
'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
|
|
1066
|
-
/* latest */
|
|
1067
|
-
'heading-impact-xxl': createTypographyConfig(56, 1.2),
|
|
1068
|
-
'heading-impact-xl': createTypographyConfig(48, 1.2),
|
|
1069
|
-
'heading-impact-l': createTypographyConfig(40, 1.2),
|
|
1070
|
-
'heading-impact-m': createTypographyConfig(32, 1.2),
|
|
1071
|
-
'heading-impact-s': createTypographyConfig(24, 1.2),
|
|
1072
|
-
'heading-impact-xs': createTypographyConfig(18, 1.2),
|
|
1073
|
-
'heading-impact-xxs': createTypographyConfig(16, 1.2),
|
|
1074
|
-
'heading-impact-xxxs': createTypographyConfig(14, 1.2)
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
bodies: {
|
|
1078
|
-
fontFamily: {
|
|
1079
|
-
web: {
|
|
1080
|
-
regular: 'Moderat',
|
|
1081
|
-
bold: 'Moderat'
|
|
1082
|
-
},
|
|
1083
|
-
native: {
|
|
1084
|
-
regular: 'Moderat-Regular',
|
|
1085
|
-
bold: 'Moderat-Bold'
|
|
1086
|
-
}
|
|
1087
|
-
},
|
|
1088
|
-
fontWeight: {
|
|
1089
|
-
regular: 400,
|
|
1090
|
-
bold: 700
|
|
1091
|
-
},
|
|
1092
|
-
fontStyle: {
|
|
1093
|
-
regular: 'normal',
|
|
1094
|
-
bold: 'normal'
|
|
1095
|
-
},
|
|
1096
|
-
configs: {
|
|
1097
|
-
/* legacy */
|
|
1098
|
-
'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
|
|
1099
|
-
'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
|
|
1100
|
-
body: createLegacyTypographyTypeConfig(1.4, 16, 16),
|
|
1101
|
-
'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
|
|
1102
|
-
'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
|
|
1103
|
-
/* latest */
|
|
1104
|
-
'body-xl': createTypographyConfig(24, 1.4),
|
|
1105
|
-
'body-l': createTypographyConfig(18, 1.4),
|
|
1106
|
-
'body-m': createTypographyConfig(16, 1.4),
|
|
1107
|
-
'body-s': createTypographyConfig(14, 1.4),
|
|
1108
|
-
'body-xs': createTypographyConfig(12, 1.4)
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
},
|
|
1112
|
-
link: {
|
|
1113
|
-
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
1114
|
-
disabledColor: colors.blackDisabled
|
|
1115
|
-
}
|
|
1116
|
-
};
|
|
1117
|
-
|
|
1118
972
|
const inputStatesStyle = {
|
|
1119
973
|
default: {
|
|
1120
|
-
backgroundColor:
|
|
1121
|
-
borderColor:
|
|
1122
|
-
color:
|
|
974
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
975
|
+
borderColor: lateOceanColorPalette['eggshell.4'],
|
|
976
|
+
color: lateOceanColorPalette.black
|
|
1123
977
|
},
|
|
1124
978
|
pending: {
|
|
1125
|
-
backgroundColor:
|
|
1126
|
-
borderColor:
|
|
1127
|
-
color:
|
|
979
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
980
|
+
borderColor: lateOceanColorPalette['eggshell.3'],
|
|
981
|
+
color: lateOceanColorPalette.black
|
|
1128
982
|
},
|
|
1129
983
|
valid: {
|
|
1130
|
-
backgroundColor:
|
|
1131
|
-
borderColor: lateOceanColorPalette.
|
|
1132
|
-
color:
|
|
984
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
985
|
+
borderColor: lateOceanColorPalette['eggshell.4'],
|
|
986
|
+
color: lateOceanColorPalette.black
|
|
1133
987
|
},
|
|
1134
988
|
hover: {
|
|
1135
|
-
|
|
1136
|
-
|
|
989
|
+
backgroundColor: lateOceanColorPalette['eggshell.1'],
|
|
990
|
+
borderColor: lateOceanColorPalette['eggshell.5'],
|
|
991
|
+
color: lateOceanColorPalette.black
|
|
1137
992
|
},
|
|
1138
993
|
focus: {
|
|
1139
|
-
borderColor:
|
|
1140
|
-
color:
|
|
994
|
+
borderColor: lateOceanColorPalette['violine.9'],
|
|
995
|
+
color: lateOceanColorPalette.black
|
|
1141
996
|
},
|
|
1142
997
|
disabled: {
|
|
1143
|
-
backgroundColor:
|
|
1144
|
-
borderColor:
|
|
1145
|
-
color:
|
|
998
|
+
backgroundColor: lateOceanColorPalette['eggshell.2'],
|
|
999
|
+
borderColor: lateOceanColorPalette['eggshell.4'],
|
|
1000
|
+
color: lateOceanColorPalette['eggshell.6']
|
|
1146
1001
|
},
|
|
1147
1002
|
invalid: {
|
|
1148
|
-
borderColor:
|
|
1149
|
-
color:
|
|
1003
|
+
borderColor: lateOceanColorPalette['eggshell.3'],
|
|
1004
|
+
color: lateOceanColorPalette.black
|
|
1150
1005
|
}
|
|
1151
1006
|
};
|
|
1152
1007
|
const webAnimationDuration = '200ms';
|
|
1153
1008
|
const webAnimationTimingFunction = 'ease-in-out';
|
|
1154
|
-
const
|
|
1009
|
+
const webAnimationProperties = ['border-color', 'background-color'];
|
|
1155
1010
|
const input = {
|
|
1156
1011
|
minHeight: 40,
|
|
1157
1012
|
color: {
|
|
1158
|
-
selection:
|
|
1159
|
-
placeholder:
|
|
1013
|
+
selection: lateOceanColorPalette['violine.9'],
|
|
1014
|
+
placeholder: lateOceanColorPalette['eggshell.9']
|
|
1160
1015
|
},
|
|
1161
|
-
borderWidth:
|
|
1162
|
-
borderRadius:
|
|
1016
|
+
borderWidth: 1,
|
|
1017
|
+
borderRadius: 8,
|
|
1163
1018
|
icon: {
|
|
1164
1019
|
size: 20
|
|
1165
1020
|
},
|
|
1166
1021
|
rightContainer: {
|
|
1167
|
-
padding:
|
|
1022
|
+
padding: 16
|
|
1168
1023
|
},
|
|
1169
1024
|
padding: {
|
|
1170
1025
|
horizontal: 16,
|
|
1171
|
-
vertical:
|
|
1026
|
+
vertical: 0
|
|
1172
1027
|
},
|
|
1173
1028
|
transition: {
|
|
1174
|
-
|
|
1029
|
+
properties: webAnimationProperties,
|
|
1175
1030
|
duration: webAnimationDuration,
|
|
1176
1031
|
timingFunction: webAnimationTimingFunction
|
|
1177
1032
|
},
|
|
@@ -1181,11 +1036,8 @@ const input = {
|
|
|
1181
1036
|
const inputField = {
|
|
1182
1037
|
containerPaddingTop: 5,
|
|
1183
1038
|
containerPaddingBottom: 10,
|
|
1184
|
-
feedbackPaddingTop:
|
|
1185
|
-
|
|
1186
|
-
small: 10
|
|
1187
|
-
},
|
|
1188
|
-
labelContainerPaddingBottom: 5,
|
|
1039
|
+
feedbackPaddingTop: 4,
|
|
1040
|
+
labelContainerPaddingBottom: 4,
|
|
1189
1041
|
labelFeedbackMarginLeft: 6
|
|
1190
1042
|
};
|
|
1191
1043
|
|
|
@@ -1317,21 +1169,52 @@ const fullscreenModal = {
|
|
|
1317
1169
|
};
|
|
1318
1170
|
|
|
1319
1171
|
const highlight = {
|
|
1320
|
-
borderRadius: spacing *
|
|
1172
|
+
borderRadius: spacing * 2,
|
|
1321
1173
|
/** @deprecated use primary instead */
|
|
1322
1174
|
regular: {
|
|
1323
|
-
|
|
1175
|
+
default: {
|
|
1176
|
+
backgroundColor: colors.accentLight
|
|
1177
|
+
},
|
|
1178
|
+
hover: {
|
|
1179
|
+
backgroundColor: colors.accentLight
|
|
1180
|
+
}
|
|
1324
1181
|
},
|
|
1325
1182
|
primary: {
|
|
1326
|
-
|
|
1183
|
+
default: {
|
|
1184
|
+
backgroundColor: lateOceanColorPalette['lavender.3']
|
|
1185
|
+
},
|
|
1186
|
+
hover: {
|
|
1187
|
+
backgroundColor: lateOceanColorPalette['lavender.5']
|
|
1188
|
+
}
|
|
1327
1189
|
},
|
|
1328
1190
|
secondary: {
|
|
1329
|
-
|
|
1191
|
+
default: {
|
|
1192
|
+
backgroundColor: lateOceanColorPalette['violine.2']
|
|
1193
|
+
},
|
|
1194
|
+
hover: {
|
|
1195
|
+
backgroundColor: lateOceanColorPalette['violine.4']
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
ghost: {
|
|
1199
|
+
default: {
|
|
1200
|
+
backgroundColor: lateOceanColorPalette.white
|
|
1201
|
+
},
|
|
1202
|
+
hover: {
|
|
1203
|
+
backgroundColor: lateOceanColorPalette['eggshell.2']
|
|
1204
|
+
}
|
|
1330
1205
|
},
|
|
1331
1206
|
dark: {
|
|
1332
|
-
|
|
1207
|
+
default: {
|
|
1208
|
+
backgroundColor: lateOceanColorPalette['eggshell.3']
|
|
1209
|
+
},
|
|
1210
|
+
hover: {
|
|
1211
|
+
backgroundColor: lateOceanColorPalette['eggshell.2']
|
|
1212
|
+
}
|
|
1333
1213
|
},
|
|
1334
|
-
padding:
|
|
1214
|
+
padding: {
|
|
1215
|
+
medium: spacing * 4,
|
|
1216
|
+
large: spacing * 6
|
|
1217
|
+
}
|
|
1335
1218
|
};
|
|
1336
1219
|
|
|
1337
1220
|
const getIconSizeFromFontSize = fontSize => {
|
|
@@ -1454,6 +1337,152 @@ const pageLoader = {
|
|
|
1454
1337
|
}
|
|
1455
1338
|
};
|
|
1456
1339
|
|
|
1340
|
+
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
1341
|
+
/** @deprecated legacy typography type config is deprecated. */
|
|
1342
|
+
const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
|
|
1343
|
+
baseAndSmall: {
|
|
1344
|
+
fontSize: baseAndSmallFontSize,
|
|
1345
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
1346
|
+
},
|
|
1347
|
+
mediumAndWide: {
|
|
1348
|
+
fontSize: mediumAndWideFontSize,
|
|
1349
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
1350
|
+
}
|
|
1351
|
+
});
|
|
1352
|
+
const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
|
|
1353
|
+
const config = {
|
|
1354
|
+
fontSize,
|
|
1355
|
+
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
1356
|
+
};
|
|
1357
|
+
return {
|
|
1358
|
+
baseAndSmall: config,
|
|
1359
|
+
mediumAndWide: config
|
|
1360
|
+
};
|
|
1361
|
+
};
|
|
1362
|
+
const typography = {
|
|
1363
|
+
colors: {
|
|
1364
|
+
black: colors.black,
|
|
1365
|
+
'black-anthracite': colors.blackAnthracite,
|
|
1366
|
+
'black-disabled': lateOceanColorPalette.black400,
|
|
1367
|
+
'black-light': lateOceanColorPalette.black555,
|
|
1368
|
+
white: colors.white,
|
|
1369
|
+
'white-light': colors.white,
|
|
1370
|
+
primary: colors.primary,
|
|
1371
|
+
'primary-light': colors.primaryLight,
|
|
1372
|
+
accent: colors.accent,
|
|
1373
|
+
success: colors.success,
|
|
1374
|
+
danger: colors.danger,
|
|
1375
|
+
warning: colors.warning
|
|
1376
|
+
},
|
|
1377
|
+
types: {
|
|
1378
|
+
headings: {
|
|
1379
|
+
fontFamily: {
|
|
1380
|
+
native: {
|
|
1381
|
+
regular: 'Moderat-Bold',
|
|
1382
|
+
bold: 'Moderat-Bold'
|
|
1383
|
+
},
|
|
1384
|
+
web: {
|
|
1385
|
+
regular: 'Moderat',
|
|
1386
|
+
bold: 'Moderat'
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
fontWeight: {
|
|
1390
|
+
regular: 400,
|
|
1391
|
+
bold: 700
|
|
1392
|
+
},
|
|
1393
|
+
fontStyle: 'normal',
|
|
1394
|
+
configs: {
|
|
1395
|
+
/* legacy */
|
|
1396
|
+
header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
|
|
1397
|
+
header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
|
|
1398
|
+
header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
|
|
1399
|
+
header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
|
|
1400
|
+
header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
|
|
1401
|
+
/* latest */
|
|
1402
|
+
'heading-xxl': createTypographyConfig(56, 1.1),
|
|
1403
|
+
'heading-xl': createTypographyConfig(48, 1.1),
|
|
1404
|
+
'heading-l': createTypographyConfig(40, 1.1),
|
|
1405
|
+
'heading-m': createTypographyConfig(32, 1.2),
|
|
1406
|
+
'heading-s': createTypographyConfig(24, 1.2),
|
|
1407
|
+
'heading-xs': createTypographyConfig(18, 1.3),
|
|
1408
|
+
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
'headings-impact': {
|
|
1412
|
+
fontFamily: {
|
|
1413
|
+
native: {
|
|
1414
|
+
regular: 'Transducer-Black',
|
|
1415
|
+
bold: 'Transducer-Black'
|
|
1416
|
+
},
|
|
1417
|
+
web: {
|
|
1418
|
+
regular: 'TransducerBlack',
|
|
1419
|
+
bold: 'TransducerBlack'
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
fontWeight: 900,
|
|
1423
|
+
fontStyle: 'normal',
|
|
1424
|
+
configs: {
|
|
1425
|
+
/* legacy */
|
|
1426
|
+
'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
|
|
1427
|
+
'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
|
|
1428
|
+
'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
|
|
1429
|
+
'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
|
|
1430
|
+
'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
|
|
1431
|
+
'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
|
|
1432
|
+
'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
|
|
1433
|
+
'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
|
|
1434
|
+
/* latest */
|
|
1435
|
+
'heading-impact-xxl': createTypographyConfig(56, 1.2),
|
|
1436
|
+
'heading-impact-xl': createTypographyConfig(48, 1.2),
|
|
1437
|
+
'heading-impact-l': createTypographyConfig(40, 1.2),
|
|
1438
|
+
'heading-impact-m': createTypographyConfig(32, 1.2),
|
|
1439
|
+
'heading-impact-s': createTypographyConfig(24, 1.2),
|
|
1440
|
+
'heading-impact-xs': createTypographyConfig(18, 1.2),
|
|
1441
|
+
'heading-impact-xxs': createTypographyConfig(16, 1.2),
|
|
1442
|
+
'heading-impact-xxxs': createTypographyConfig(14, 1.2)
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
bodies: {
|
|
1446
|
+
fontFamily: {
|
|
1447
|
+
web: {
|
|
1448
|
+
regular: 'Moderat',
|
|
1449
|
+
bold: 'Moderat'
|
|
1450
|
+
},
|
|
1451
|
+
native: {
|
|
1452
|
+
regular: 'Moderat-Regular',
|
|
1453
|
+
bold: 'Moderat-Bold'
|
|
1454
|
+
}
|
|
1455
|
+
},
|
|
1456
|
+
fontWeight: {
|
|
1457
|
+
regular: 400,
|
|
1458
|
+
bold: 700
|
|
1459
|
+
},
|
|
1460
|
+
fontStyle: {
|
|
1461
|
+
regular: 'normal',
|
|
1462
|
+
bold: 'normal'
|
|
1463
|
+
},
|
|
1464
|
+
configs: {
|
|
1465
|
+
/* legacy */
|
|
1466
|
+
'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
|
|
1467
|
+
'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
|
|
1468
|
+
body: createLegacyTypographyTypeConfig(1.4, 16, 16),
|
|
1469
|
+
'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
|
|
1470
|
+
'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
|
|
1471
|
+
/* latest */
|
|
1472
|
+
'body-xl': createTypographyConfig(24, 1.4),
|
|
1473
|
+
'body-l': createTypographyConfig(18, 1.4),
|
|
1474
|
+
'body-m': createTypographyConfig(16, 1.4),
|
|
1475
|
+
'body-s': createTypographyConfig(14, 1.4),
|
|
1476
|
+
'body-xs': createTypographyConfig(12, 1.4)
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
link: {
|
|
1481
|
+
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
1482
|
+
disabledColor: colors.blackDisabled
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
|
|
1457
1486
|
const picker = {
|
|
1458
1487
|
ios: {
|
|
1459
1488
|
default: _objectSpread(_objectSpread({
|
|
@@ -1969,7 +1998,7 @@ function getCurrentBackgroundColorForNativeBaseTheme({
|
|
|
1969
1998
|
return `${baseKey}.backgroundColor`;
|
|
1970
1999
|
}
|
|
1971
2000
|
|
|
1972
|
-
function AnimatedContainer$
|
|
2001
|
+
function AnimatedContainer$2({
|
|
1973
2002
|
disabled,
|
|
1974
2003
|
animatedStyles,
|
|
1975
2004
|
children,
|
|
@@ -2503,7 +2532,7 @@ function getVariantValuesIfExist(theme, type, variant) {
|
|
|
2503
2532
|
return theme.kitt.button[type].default;
|
|
2504
2533
|
}
|
|
2505
2534
|
|
|
2506
|
-
const useNativeAnimation$
|
|
2535
|
+
const useNativeAnimation$4 = ({
|
|
2507
2536
|
type,
|
|
2508
2537
|
variant,
|
|
2509
2538
|
isPressedInternal
|
|
@@ -2578,7 +2607,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
2578
2607
|
onPressIn,
|
|
2579
2608
|
onPressOut,
|
|
2580
2609
|
animatedStyles
|
|
2581
|
-
} = useNativeAnimation$
|
|
2610
|
+
} = useNativeAnimation$4({
|
|
2582
2611
|
type: _type,
|
|
2583
2612
|
variant: _variant
|
|
2584
2613
|
});
|
|
@@ -2617,7 +2646,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
2617
2646
|
isHovered,
|
|
2618
2647
|
isPressed,
|
|
2619
2648
|
isFocused
|
|
2620
|
-
}) => /*#__PURE__*/jsx(AnimatedContainer$
|
|
2649
|
+
}) => /*#__PURE__*/jsx(AnimatedContainer$2, {
|
|
2621
2650
|
animatedStyles: animatedStyles,
|
|
2622
2651
|
type: _type,
|
|
2623
2652
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -3424,7 +3453,7 @@ function AnimatedChoiceItemView({
|
|
|
3424
3453
|
});
|
|
3425
3454
|
}
|
|
3426
3455
|
|
|
3427
|
-
const useNativeAnimation$
|
|
3456
|
+
const useNativeAnimation$3 = ({
|
|
3428
3457
|
selected,
|
|
3429
3458
|
disabled,
|
|
3430
3459
|
isPressedInternal
|
|
@@ -3495,7 +3524,7 @@ function ChoiceItem({
|
|
|
3495
3524
|
onPressIn,
|
|
3496
3525
|
onPressOut,
|
|
3497
3526
|
backgroundStyles
|
|
3498
|
-
} = useNativeAnimation$
|
|
3527
|
+
} = useNativeAnimation$3({
|
|
3499
3528
|
selected,
|
|
3500
3529
|
disabled,
|
|
3501
3530
|
isPressedInternal
|
|
@@ -6050,7 +6079,7 @@ const Radio = /*#__PURE__*/forwardRef(({
|
|
|
6050
6079
|
});
|
|
6051
6080
|
});
|
|
6052
6081
|
|
|
6053
|
-
function AnimatedContainer({
|
|
6082
|
+
function AnimatedContainer$1({
|
|
6054
6083
|
children,
|
|
6055
6084
|
isFirst,
|
|
6056
6085
|
isLast,
|
|
@@ -6105,7 +6134,7 @@ function HoverBorder({
|
|
|
6105
6134
|
});
|
|
6106
6135
|
}
|
|
6107
6136
|
|
|
6108
|
-
const useNativeAnimation$
|
|
6137
|
+
const useNativeAnimation$2 = ({
|
|
6109
6138
|
isDisabled,
|
|
6110
6139
|
isSelected,
|
|
6111
6140
|
isPressedInternal
|
|
@@ -6186,7 +6215,7 @@ function RadioButton({
|
|
|
6186
6215
|
onPressIn,
|
|
6187
6216
|
onPressOut,
|
|
6188
6217
|
animatedStyles
|
|
6189
|
-
} = useNativeAnimation$
|
|
6218
|
+
} = useNativeAnimation$2({
|
|
6190
6219
|
isDisabled: disabled,
|
|
6191
6220
|
isSelected: selected,
|
|
6192
6221
|
isPressedInternal
|
|
@@ -6213,7 +6242,7 @@ function RadioButton({
|
|
|
6213
6242
|
isHovered,
|
|
6214
6243
|
isPressed,
|
|
6215
6244
|
isFocused
|
|
6216
|
-
}) => /*#__PURE__*/jsx(AnimatedContainer, {
|
|
6245
|
+
}) => /*#__PURE__*/jsx(AnimatedContainer$1, {
|
|
6217
6246
|
animatedStyles: animatedStyles,
|
|
6218
6247
|
isFocused: isFocused || isFocusedInternal,
|
|
6219
6248
|
isPressed: isPressed || isPressedInternal,
|
|
@@ -6636,15 +6665,228 @@ FullscreenModal.Footer = FullscreenModalFooter;
|
|
|
6636
6665
|
FullscreenModal.Body = FullscreenModalBody;
|
|
6637
6666
|
FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
|
|
6638
6667
|
|
|
6668
|
+
function AnimatedCaret({
|
|
6669
|
+
children,
|
|
6670
|
+
animatedStyles
|
|
6671
|
+
}) {
|
|
6672
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
6673
|
+
style: [animatedStyles],
|
|
6674
|
+
children: children
|
|
6675
|
+
});
|
|
6676
|
+
}
|
|
6677
|
+
|
|
6678
|
+
function AnimatedContainer({
|
|
6679
|
+
children,
|
|
6680
|
+
size,
|
|
6681
|
+
animatedStyles
|
|
6682
|
+
}) {
|
|
6683
|
+
const sx = useSx();
|
|
6684
|
+
const theme = useTheme();
|
|
6685
|
+
const styles = sx({
|
|
6686
|
+
borderRadius: theme.kitt.highlight.borderRadius,
|
|
6687
|
+
padding: theme.kitt.highlight.padding[size]
|
|
6688
|
+
});
|
|
6689
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
6690
|
+
style: [styles, animatedStyles],
|
|
6691
|
+
children: children
|
|
6692
|
+
});
|
|
6693
|
+
}
|
|
6694
|
+
|
|
6695
|
+
function AnimatedContent({
|
|
6696
|
+
children,
|
|
6697
|
+
animatedStyles
|
|
6698
|
+
}) {
|
|
6699
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
6700
|
+
style: [{
|
|
6701
|
+
overflow: 'hidden'
|
|
6702
|
+
}, animatedStyles],
|
|
6703
|
+
children: children
|
|
6704
|
+
});
|
|
6705
|
+
}
|
|
6706
|
+
|
|
6707
|
+
const withTimingConfig = {
|
|
6708
|
+
duration: 100,
|
|
6709
|
+
easing: Easing$1.ease
|
|
6710
|
+
};
|
|
6711
|
+
const useNativeAnimation$1 = ({
|
|
6712
|
+
variant,
|
|
6713
|
+
isExpanded,
|
|
6714
|
+
isInitialRender,
|
|
6715
|
+
contentHeight
|
|
6716
|
+
}) => {
|
|
6717
|
+
const theme = useTheme();
|
|
6718
|
+
const color = useSharedValue(0);
|
|
6719
|
+
const rotation = useSharedValue(0);
|
|
6720
|
+
const translate = useSharedValue(0);
|
|
6721
|
+
const containerAnimatedStyles = useAnimatedStyle(() => {
|
|
6722
|
+
return {
|
|
6723
|
+
backgroundColor: interpolateColor(color.value, [0, 1], [theme.kitt.highlight[variant].default.backgroundColor, theme.kitt.highlight[variant].hover.backgroundColor])
|
|
6724
|
+
};
|
|
6725
|
+
});
|
|
6726
|
+
const caretAnimatedStyles = useAnimatedStyle(() => {
|
|
6727
|
+
rotation.value = withTiming(isExpanded ? 180 : 0, {
|
|
6728
|
+
duration: 300,
|
|
6729
|
+
easing: Easing$1.ease
|
|
6730
|
+
});
|
|
6731
|
+
return {
|
|
6732
|
+
transform: [{
|
|
6733
|
+
rotate: `${rotation.value}deg`
|
|
6734
|
+
}, {
|
|
6735
|
+
translateY: translate.value
|
|
6736
|
+
}]
|
|
6737
|
+
};
|
|
6738
|
+
});
|
|
6739
|
+
const contentAnimatedStyles = useAnimatedStyle(() => {
|
|
6740
|
+
return {
|
|
6741
|
+
height: withTiming(isExpanded ? contentHeight : 0, {
|
|
6742
|
+
duration: isInitialRender ? 0 : 300,
|
|
6743
|
+
easing: Easing$1.ease
|
|
6744
|
+
})
|
|
6745
|
+
};
|
|
6746
|
+
});
|
|
6747
|
+
return {
|
|
6748
|
+
onPressIn: () => {
|
|
6749
|
+
color.value = withTiming(1, withTimingConfig);
|
|
6750
|
+
translate.value = withTiming(2, withTimingConfig);
|
|
6751
|
+
},
|
|
6752
|
+
onPressOut: () => {
|
|
6753
|
+
color.value = withTiming(0, withTimingConfig);
|
|
6754
|
+
translate.value = withTiming(0, withTimingConfig);
|
|
6755
|
+
},
|
|
6756
|
+
containerAnimatedStyles,
|
|
6757
|
+
caretAnimatedStyles,
|
|
6758
|
+
contentAnimatedStyles
|
|
6759
|
+
};
|
|
6760
|
+
};
|
|
6761
|
+
|
|
6639
6762
|
function Highlight({
|
|
6640
|
-
variant = '
|
|
6763
|
+
variant = 'primary',
|
|
6764
|
+
canCollapse = false,
|
|
6765
|
+
isInitialCollapsed = true,
|
|
6766
|
+
title,
|
|
6767
|
+
icon = null,
|
|
6768
|
+
size = 'medium',
|
|
6641
6769
|
children
|
|
6642
6770
|
}) {
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6771
|
+
const theme = useTheme();
|
|
6772
|
+
const [isExpanded, setIsExpanded] = useState(!isInitialCollapsed);
|
|
6773
|
+
const [contentHeight, setContentHeight] = useState(0);
|
|
6774
|
+
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
6775
|
+
const highlightStyle = {
|
|
6776
|
+
medium: {
|
|
6777
|
+
marginBottom: 'kitt.1',
|
|
6778
|
+
spaceBetween: 'kitt.2',
|
|
6779
|
+
contentMarginY: 8
|
|
6780
|
+
},
|
|
6781
|
+
large: {
|
|
6782
|
+
marginBottom: 'kitt.2',
|
|
6783
|
+
spaceBetween: 'kitt.4',
|
|
6784
|
+
contentMarginY: 16
|
|
6785
|
+
}
|
|
6786
|
+
};
|
|
6787
|
+
const {
|
|
6788
|
+
containerAnimatedStyles,
|
|
6789
|
+
caretAnimatedStyles,
|
|
6790
|
+
contentAnimatedStyles,
|
|
6791
|
+
onPressIn,
|
|
6792
|
+
onPressOut
|
|
6793
|
+
} = useNativeAnimation$1({
|
|
6794
|
+
variant,
|
|
6795
|
+
isExpanded,
|
|
6796
|
+
isInitialRender,
|
|
6797
|
+
contentHeight
|
|
6798
|
+
});
|
|
6799
|
+
const handleLayout = event => {
|
|
6800
|
+
const layoutHeight = event.nativeEvent.layout.height;
|
|
6801
|
+
const newContentHeight = layoutHeight + highlightStyle[size].contentMarginY;
|
|
6802
|
+
if (layoutHeight > 0 && newContentHeight !== contentHeight) {
|
|
6803
|
+
setContentHeight(newContentHeight);
|
|
6804
|
+
}
|
|
6805
|
+
};
|
|
6806
|
+
if (!canCollapse) {
|
|
6807
|
+
return /*#__PURE__*/jsx(View, {
|
|
6808
|
+
borderRadius: "kitt.highlight.borderRadius",
|
|
6809
|
+
padding: theme.kitt.highlight.padding[size],
|
|
6810
|
+
backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
|
|
6811
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
6812
|
+
space: highlightStyle[size].spaceBetween,
|
|
6813
|
+
children: [icon && /*#__PURE__*/jsx(View, {
|
|
6814
|
+
children: icon
|
|
6815
|
+
}), /*#__PURE__*/jsxs(View, {
|
|
6816
|
+
flexGrow: 1,
|
|
6817
|
+
flexShrink: 1,
|
|
6818
|
+
children: [title && /*#__PURE__*/jsx(View, {
|
|
6819
|
+
marginBottom: highlightStyle[size].marginBottom,
|
|
6820
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
6821
|
+
variant: "bold",
|
|
6822
|
+
base: "body",
|
|
6823
|
+
ellipsizeMode: "clip",
|
|
6824
|
+
children: title
|
|
6825
|
+
})
|
|
6826
|
+
}), children]
|
|
6827
|
+
})]
|
|
6828
|
+
})
|
|
6829
|
+
});
|
|
6830
|
+
}
|
|
6831
|
+
return /*#__PURE__*/jsx(Pressable, {
|
|
6832
|
+
onPress: () => {
|
|
6833
|
+
setIsExpanded(!isExpanded);
|
|
6834
|
+
setIsInitialRender(false);
|
|
6835
|
+
},
|
|
6836
|
+
onPressIn: onPressIn,
|
|
6837
|
+
onPressOut: onPressOut,
|
|
6838
|
+
children: ({
|
|
6839
|
+
isHovered
|
|
6840
|
+
}) => {
|
|
6841
|
+
return /*#__PURE__*/jsxs(AnimatedContainer, {
|
|
6842
|
+
isHovered: isHovered,
|
|
6843
|
+
size: size,
|
|
6844
|
+
variant: variant,
|
|
6845
|
+
animatedStyles: containerAnimatedStyles,
|
|
6846
|
+
children: [title && /*#__PURE__*/jsxs(HStack, {
|
|
6847
|
+
space: highlightStyle[size].spaceBetween,
|
|
6848
|
+
alignItems: "center",
|
|
6849
|
+
children: [icon && /*#__PURE__*/jsx(View, {
|
|
6850
|
+
flexGrow: 1,
|
|
6851
|
+
children: icon
|
|
6852
|
+
}), /*#__PURE__*/jsx(View, {
|
|
6853
|
+
flexGrow: 1,
|
|
6854
|
+
flexShrink: 1,
|
|
6855
|
+
width: "100%",
|
|
6856
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
6857
|
+
variant: "bold",
|
|
6858
|
+
base: "body",
|
|
6859
|
+
ellipsizeMode: "clip",
|
|
6860
|
+
children: title
|
|
6861
|
+
})
|
|
6862
|
+
}), /*#__PURE__*/jsx(View, {
|
|
6863
|
+
flexGrow: 2,
|
|
6864
|
+
flexShrink: 2,
|
|
6865
|
+
alignItems: "center",
|
|
6866
|
+
justifyContent: "center",
|
|
6867
|
+
children: /*#__PURE__*/jsx(AnimatedCaret, {
|
|
6868
|
+
isHovered: isHovered,
|
|
6869
|
+
isExpanded: isExpanded,
|
|
6870
|
+
animatedStyles: caretAnimatedStyles,
|
|
6871
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6872
|
+
icon: /*#__PURE__*/jsx(CaretDownRegularIcon, {})
|
|
6873
|
+
})
|
|
6874
|
+
})
|
|
6875
|
+
})]
|
|
6876
|
+
}), /*#__PURE__*/jsx(AnimatedContent, {
|
|
6877
|
+
isExpanded: isExpanded,
|
|
6878
|
+
isInitialRender: isInitialRender,
|
|
6879
|
+
contentHeight: contentHeight,
|
|
6880
|
+
animatedStyles: contentAnimatedStyles,
|
|
6881
|
+
children: /*#__PURE__*/jsx(View, {
|
|
6882
|
+
marginTop: highlightStyle[size].contentMarginY,
|
|
6883
|
+
position: "absolute",
|
|
6884
|
+
onLayout: handleLayout,
|
|
6885
|
+
children: children
|
|
6886
|
+
})
|
|
6887
|
+
})]
|
|
6888
|
+
});
|
|
6889
|
+
}
|
|
6648
6890
|
});
|
|
6649
6891
|
}
|
|
6650
6892
|
|
|
@@ -7607,16 +7849,44 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7607
7849
|
},
|
|
7608
7850
|
highlight: {
|
|
7609
7851
|
regular: {
|
|
7610
|
-
|
|
7852
|
+
default: {
|
|
7853
|
+
backgroundColor: theme.highlight.regular.default.backgroundColor
|
|
7854
|
+
},
|
|
7855
|
+
hover: {
|
|
7856
|
+
backgroundColor: theme.highlight.regular.hover.backgroundColor
|
|
7857
|
+
}
|
|
7611
7858
|
},
|
|
7612
7859
|
primary: {
|
|
7613
|
-
|
|
7860
|
+
default: {
|
|
7861
|
+
backgroundColor: theme.highlight.primary.default.backgroundColor
|
|
7862
|
+
},
|
|
7863
|
+
hover: {
|
|
7864
|
+
backgroundColor: theme.highlight.primary.hover.backgroundColor
|
|
7865
|
+
}
|
|
7614
7866
|
},
|
|
7615
7867
|
secondary: {
|
|
7616
|
-
|
|
7868
|
+
default: {
|
|
7869
|
+
backgroundColor: theme.highlight.secondary.default.backgroundColor
|
|
7870
|
+
},
|
|
7871
|
+
hover: {
|
|
7872
|
+
backgroundColor: theme.highlight.secondary.hover.backgroundColor
|
|
7873
|
+
}
|
|
7617
7874
|
},
|
|
7618
7875
|
dark: {
|
|
7619
|
-
|
|
7876
|
+
default: {
|
|
7877
|
+
backgroundColor: theme.highlight.dark.default.backgroundColor
|
|
7878
|
+
},
|
|
7879
|
+
hover: {
|
|
7880
|
+
backgroundColor: theme.highlight.dark.hover.backgroundColor
|
|
7881
|
+
}
|
|
7882
|
+
},
|
|
7883
|
+
ghost: {
|
|
7884
|
+
default: {
|
|
7885
|
+
backgroundColor: theme.highlight.ghost.default.backgroundColor
|
|
7886
|
+
},
|
|
7887
|
+
hover: {
|
|
7888
|
+
backgroundColor: theme.highlight.ghost.hover.backgroundColor
|
|
7889
|
+
}
|
|
7620
7890
|
}
|
|
7621
7891
|
},
|
|
7622
7892
|
verticalSteps: {
|
|
@@ -8122,7 +8392,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8122
8392
|
}
|
|
8123
8393
|
},
|
|
8124
8394
|
highlight: {
|
|
8125
|
-
|
|
8395
|
+
medium: {
|
|
8396
|
+
padding: theme.highlight.padding.medium
|
|
8397
|
+
},
|
|
8398
|
+
large: {
|
|
8399
|
+
padding: theme.highlight.padding.large
|
|
8400
|
+
}
|
|
8126
8401
|
},
|
|
8127
8402
|
listItem: {
|
|
8128
8403
|
verticalPadding: theme.listItem.verticalPadding,
|
|
@@ -8753,9 +9028,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8753
9028
|
borderColor: theme.forms.input.states.default.borderColor,
|
|
8754
9029
|
bg: theme.forms.input.states.default.backgroundColor,
|
|
8755
9030
|
_hover: {
|
|
9031
|
+
bg: theme.forms.input.states.hover.backgroundColor,
|
|
8756
9032
|
borderColor: theme.forms.input.states.hover.borderColor,
|
|
8757
9033
|
color: theme.forms.input.states.hover.color,
|
|
8758
9034
|
_focus: {
|
|
9035
|
+
bg: theme.forms.input.states.default.backgroundColor,
|
|
8759
9036
|
borderColor: theme.forms.input.states.focus.borderColor,
|
|
8760
9037
|
color: theme.forms.input.states.focus.color
|
|
8761
9038
|
}
|
|
@@ -10106,6 +10383,7 @@ function ModalDateTimePicker({
|
|
|
10106
10383
|
title,
|
|
10107
10384
|
visible,
|
|
10108
10385
|
value,
|
|
10386
|
+
minuteInterval,
|
|
10109
10387
|
validateButtonLabel,
|
|
10110
10388
|
testID,
|
|
10111
10389
|
pickerTestID,
|
|
@@ -10140,6 +10418,7 @@ function ModalDateTimePicker({
|
|
|
10140
10418
|
}) : null, /*#__PURE__*/jsx(CardModal.Body, {
|
|
10141
10419
|
children: /*#__PURE__*/jsx(DateTimePicker, {
|
|
10142
10420
|
is24Hour: true,
|
|
10421
|
+
minuteInterval: minuteInterval,
|
|
10143
10422
|
testID: pickerTestID,
|
|
10144
10423
|
value: currentValue,
|
|
10145
10424
|
mode: "time",
|
|
@@ -10233,6 +10512,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
|
|
|
10233
10512
|
disabled: _disabled = false,
|
|
10234
10513
|
stretch,
|
|
10235
10514
|
value,
|
|
10515
|
+
minuteInterval,
|
|
10236
10516
|
validateButtonLabel,
|
|
10237
10517
|
isDefaultVisible,
|
|
10238
10518
|
placeholder: _placeholder = '--:--',
|
|
@@ -10272,11 +10552,13 @@ const TimePicker = /*#__PURE__*/forwardRef(({
|
|
|
10272
10552
|
is24Hour: true,
|
|
10273
10553
|
testID: _pickerTestID,
|
|
10274
10554
|
value: pickerValue,
|
|
10555
|
+
minuteInterval: minuteInterval,
|
|
10275
10556
|
mode: "time",
|
|
10276
10557
|
display: "default",
|
|
10277
10558
|
onChange: (event, date) => handleChange(date)
|
|
10278
10559
|
}) : null, Platform.OS !== 'android' ? /*#__PURE__*/jsx(ModalDateTimePicker, {
|
|
10279
10560
|
visible: isPickerVisible,
|
|
10561
|
+
minuteInterval: minuteInterval,
|
|
10280
10562
|
title: title,
|
|
10281
10563
|
testID: modalTestID,
|
|
10282
10564
|
pickerTestID: _pickerTestID,
|