@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
|
@@ -11,7 +11,7 @@ import { BottomSheetScrollView, BottomSheetView, useBottomSheetDynamicSnapPoints
|
|
|
11
11
|
import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
12
12
|
import { parse } from 'twemoji-parser';
|
|
13
13
|
import * as WebBrowser from 'expo-web-browser';
|
|
14
|
-
import { CaretUpFillIcon, CaretDownFillIcon, EyeClosedRegularIcon, EyeRegularIcon, XRegularIcon } from '@ornikar/kitt-icons/phosphor';
|
|
14
|
+
import { CaretUpFillIcon, CaretDownFillIcon, EyeClosedRegularIcon, EyeRegularIcon, CaretDownRegularIcon, XRegularIcon } from '@ornikar/kitt-icons/phosphor';
|
|
15
15
|
import Downshift from 'downshift';
|
|
16
16
|
import DateTimePicker, { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
|
|
17
17
|
import { FormattedMessage } from 'react-intl';
|
|
@@ -966,209 +966,64 @@ const datePicker = {
|
|
|
966
966
|
}
|
|
967
967
|
};
|
|
968
968
|
|
|
969
|
-
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
970
|
-
/** @deprecated legacy typography type config is deprecated. */
|
|
971
|
-
const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
|
|
972
|
-
baseAndSmall: {
|
|
973
|
-
fontSize: baseAndSmallFontSize,
|
|
974
|
-
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
975
|
-
},
|
|
976
|
-
mediumAndWide: {
|
|
977
|
-
fontSize: mediumAndWideFontSize,
|
|
978
|
-
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
979
|
-
}
|
|
980
|
-
});
|
|
981
|
-
const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
|
|
982
|
-
const config = {
|
|
983
|
-
fontSize,
|
|
984
|
-
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
985
|
-
};
|
|
986
|
-
return {
|
|
987
|
-
baseAndSmall: config,
|
|
988
|
-
mediumAndWide: config
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
const typography = {
|
|
992
|
-
colors: {
|
|
993
|
-
black: colors.black,
|
|
994
|
-
'black-anthracite': colors.blackAnthracite,
|
|
995
|
-
'black-disabled': lateOceanColorPalette.black400,
|
|
996
|
-
'black-light': lateOceanColorPalette.black555,
|
|
997
|
-
white: colors.white,
|
|
998
|
-
'white-light': colors.white,
|
|
999
|
-
primary: colors.primary,
|
|
1000
|
-
'primary-light': colors.primaryLight,
|
|
1001
|
-
accent: colors.accent,
|
|
1002
|
-
success: colors.success,
|
|
1003
|
-
danger: colors.danger,
|
|
1004
|
-
warning: colors.warning
|
|
1005
|
-
},
|
|
1006
|
-
types: {
|
|
1007
|
-
headings: {
|
|
1008
|
-
fontFamily: {
|
|
1009
|
-
native: {
|
|
1010
|
-
regular: 'Moderat-Bold',
|
|
1011
|
-
bold: 'Moderat-Bold'
|
|
1012
|
-
},
|
|
1013
|
-
web: {
|
|
1014
|
-
regular: 'Moderat',
|
|
1015
|
-
bold: 'Moderat'
|
|
1016
|
-
}
|
|
1017
|
-
},
|
|
1018
|
-
fontWeight: {
|
|
1019
|
-
regular: 400,
|
|
1020
|
-
bold: 700
|
|
1021
|
-
},
|
|
1022
|
-
fontStyle: 'normal',
|
|
1023
|
-
configs: {
|
|
1024
|
-
/* legacy */
|
|
1025
|
-
header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
|
|
1026
|
-
header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
|
|
1027
|
-
header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
|
|
1028
|
-
header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
|
|
1029
|
-
header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
|
|
1030
|
-
/* latest */
|
|
1031
|
-
'heading-xxl': createTypographyConfig(56, 1.1),
|
|
1032
|
-
'heading-xl': createTypographyConfig(48, 1.1),
|
|
1033
|
-
'heading-l': createTypographyConfig(40, 1.1),
|
|
1034
|
-
'heading-m': createTypographyConfig(32, 1.2),
|
|
1035
|
-
'heading-s': createTypographyConfig(24, 1.2),
|
|
1036
|
-
'heading-xs': createTypographyConfig(18, 1.3),
|
|
1037
|
-
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
1038
|
-
}
|
|
1039
|
-
},
|
|
1040
|
-
'headings-impact': {
|
|
1041
|
-
fontFamily: {
|
|
1042
|
-
native: {
|
|
1043
|
-
regular: 'Transducer-Black',
|
|
1044
|
-
bold: 'Transducer-Black'
|
|
1045
|
-
},
|
|
1046
|
-
web: {
|
|
1047
|
-
regular: 'TransducerBlack',
|
|
1048
|
-
bold: 'TransducerBlack'
|
|
1049
|
-
}
|
|
1050
|
-
},
|
|
1051
|
-
fontWeight: 900,
|
|
1052
|
-
fontStyle: 'normal',
|
|
1053
|
-
configs: {
|
|
1054
|
-
/* legacy */
|
|
1055
|
-
'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
|
|
1056
|
-
'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
|
|
1057
|
-
'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
|
|
1058
|
-
'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
|
|
1059
|
-
'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
|
|
1060
|
-
'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
|
|
1061
|
-
'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
|
|
1062
|
-
'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
|
|
1063
|
-
/* latest */
|
|
1064
|
-
'heading-impact-xxl': createTypographyConfig(56, 1.2),
|
|
1065
|
-
'heading-impact-xl': createTypographyConfig(48, 1.2),
|
|
1066
|
-
'heading-impact-l': createTypographyConfig(40, 1.2),
|
|
1067
|
-
'heading-impact-m': createTypographyConfig(32, 1.2),
|
|
1068
|
-
'heading-impact-s': createTypographyConfig(24, 1.2),
|
|
1069
|
-
'heading-impact-xs': createTypographyConfig(18, 1.2),
|
|
1070
|
-
'heading-impact-xxs': createTypographyConfig(16, 1.2),
|
|
1071
|
-
'heading-impact-xxxs': createTypographyConfig(14, 1.2)
|
|
1072
|
-
}
|
|
1073
|
-
},
|
|
1074
|
-
bodies: {
|
|
1075
|
-
fontFamily: {
|
|
1076
|
-
web: {
|
|
1077
|
-
regular: 'Moderat',
|
|
1078
|
-
bold: 'Moderat'
|
|
1079
|
-
},
|
|
1080
|
-
native: {
|
|
1081
|
-
regular: 'Moderat-Regular',
|
|
1082
|
-
bold: 'Moderat-Bold'
|
|
1083
|
-
}
|
|
1084
|
-
},
|
|
1085
|
-
fontWeight: {
|
|
1086
|
-
regular: 400,
|
|
1087
|
-
bold: 700
|
|
1088
|
-
},
|
|
1089
|
-
fontStyle: {
|
|
1090
|
-
regular: 'normal',
|
|
1091
|
-
bold: 'normal'
|
|
1092
|
-
},
|
|
1093
|
-
configs: {
|
|
1094
|
-
/* legacy */
|
|
1095
|
-
'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
|
|
1096
|
-
'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
|
|
1097
|
-
body: createLegacyTypographyTypeConfig(1.4, 16, 16),
|
|
1098
|
-
'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
|
|
1099
|
-
'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
|
|
1100
|
-
/* latest */
|
|
1101
|
-
'body-xl': createTypographyConfig(24, 1.4),
|
|
1102
|
-
'body-l': createTypographyConfig(18, 1.4),
|
|
1103
|
-
'body-m': createTypographyConfig(16, 1.4),
|
|
1104
|
-
'body-s': createTypographyConfig(14, 1.4),
|
|
1105
|
-
'body-xs': createTypographyConfig(12, 1.4)
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
},
|
|
1109
|
-
link: {
|
|
1110
|
-
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
1111
|
-
disabledColor: colors.blackDisabled
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
|
|
1115
969
|
const inputStatesStyle = {
|
|
1116
970
|
default: {
|
|
1117
|
-
backgroundColor:
|
|
1118
|
-
borderColor:
|
|
1119
|
-
color:
|
|
971
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
972
|
+
borderColor: lateOceanColorPalette['eggshell.4'],
|
|
973
|
+
color: lateOceanColorPalette.black
|
|
1120
974
|
},
|
|
1121
975
|
pending: {
|
|
1122
|
-
backgroundColor:
|
|
1123
|
-
borderColor:
|
|
1124
|
-
color:
|
|
976
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
977
|
+
borderColor: lateOceanColorPalette['eggshell.3'],
|
|
978
|
+
color: lateOceanColorPalette.black
|
|
1125
979
|
},
|
|
1126
980
|
valid: {
|
|
1127
|
-
backgroundColor:
|
|
1128
|
-
borderColor: lateOceanColorPalette.
|
|
1129
|
-
color:
|
|
981
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
982
|
+
borderColor: lateOceanColorPalette['eggshell.4'],
|
|
983
|
+
color: lateOceanColorPalette.black
|
|
1130
984
|
},
|
|
1131
985
|
hover: {
|
|
1132
|
-
|
|
1133
|
-
|
|
986
|
+
backgroundColor: lateOceanColorPalette['eggshell.1'],
|
|
987
|
+
borderColor: lateOceanColorPalette['eggshell.5'],
|
|
988
|
+
color: lateOceanColorPalette.black
|
|
1134
989
|
},
|
|
1135
990
|
focus: {
|
|
1136
|
-
borderColor:
|
|
1137
|
-
color:
|
|
991
|
+
borderColor: lateOceanColorPalette['violine.9'],
|
|
992
|
+
color: lateOceanColorPalette.black
|
|
1138
993
|
},
|
|
1139
994
|
disabled: {
|
|
1140
|
-
backgroundColor:
|
|
1141
|
-
borderColor:
|
|
1142
|
-
color:
|
|
995
|
+
backgroundColor: lateOceanColorPalette['eggshell.2'],
|
|
996
|
+
borderColor: lateOceanColorPalette['eggshell.4'],
|
|
997
|
+
color: lateOceanColorPalette['eggshell.6']
|
|
1143
998
|
},
|
|
1144
999
|
invalid: {
|
|
1145
|
-
borderColor:
|
|
1146
|
-
color:
|
|
1000
|
+
borderColor: lateOceanColorPalette['eggshell.3'],
|
|
1001
|
+
color: lateOceanColorPalette.black
|
|
1147
1002
|
}
|
|
1148
1003
|
};
|
|
1149
1004
|
const webAnimationDuration = '200ms';
|
|
1150
1005
|
const webAnimationTimingFunction = 'ease-in-out';
|
|
1151
|
-
const
|
|
1006
|
+
const webAnimationProperties = ['border-color', 'background-color'];
|
|
1152
1007
|
const input = {
|
|
1153
1008
|
minHeight: 40,
|
|
1154
1009
|
color: {
|
|
1155
|
-
selection:
|
|
1156
|
-
placeholder:
|
|
1010
|
+
selection: lateOceanColorPalette['violine.9'],
|
|
1011
|
+
placeholder: lateOceanColorPalette['eggshell.9']
|
|
1157
1012
|
},
|
|
1158
|
-
borderWidth:
|
|
1159
|
-
borderRadius:
|
|
1013
|
+
borderWidth: 1,
|
|
1014
|
+
borderRadius: 8,
|
|
1160
1015
|
icon: {
|
|
1161
1016
|
size: 20
|
|
1162
1017
|
},
|
|
1163
1018
|
rightContainer: {
|
|
1164
|
-
padding:
|
|
1019
|
+
padding: 16
|
|
1165
1020
|
},
|
|
1166
1021
|
padding: {
|
|
1167
1022
|
horizontal: 16,
|
|
1168
|
-
vertical:
|
|
1023
|
+
vertical: 0
|
|
1169
1024
|
},
|
|
1170
1025
|
transition: {
|
|
1171
|
-
|
|
1026
|
+
properties: webAnimationProperties,
|
|
1172
1027
|
duration: webAnimationDuration,
|
|
1173
1028
|
timingFunction: webAnimationTimingFunction
|
|
1174
1029
|
},
|
|
@@ -1178,11 +1033,8 @@ const input = {
|
|
|
1178
1033
|
const inputField = {
|
|
1179
1034
|
containerPaddingTop: 5,
|
|
1180
1035
|
containerPaddingBottom: 10,
|
|
1181
|
-
feedbackPaddingTop:
|
|
1182
|
-
|
|
1183
|
-
small: 10
|
|
1184
|
-
},
|
|
1185
|
-
labelContainerPaddingBottom: 5,
|
|
1036
|
+
feedbackPaddingTop: 4,
|
|
1037
|
+
labelContainerPaddingBottom: 4,
|
|
1186
1038
|
labelFeedbackMarginLeft: 6
|
|
1187
1039
|
};
|
|
1188
1040
|
|
|
@@ -1314,21 +1166,52 @@ const fullscreenModal = {
|
|
|
1314
1166
|
};
|
|
1315
1167
|
|
|
1316
1168
|
const highlight = {
|
|
1317
|
-
borderRadius: spacing *
|
|
1169
|
+
borderRadius: spacing * 2,
|
|
1318
1170
|
/** @deprecated use primary instead */
|
|
1319
1171
|
regular: {
|
|
1320
|
-
|
|
1172
|
+
default: {
|
|
1173
|
+
backgroundColor: colors.accentLight
|
|
1174
|
+
},
|
|
1175
|
+
hover: {
|
|
1176
|
+
backgroundColor: colors.accentLight
|
|
1177
|
+
}
|
|
1321
1178
|
},
|
|
1322
1179
|
primary: {
|
|
1323
|
-
|
|
1180
|
+
default: {
|
|
1181
|
+
backgroundColor: lateOceanColorPalette['lavender.3']
|
|
1182
|
+
},
|
|
1183
|
+
hover: {
|
|
1184
|
+
backgroundColor: lateOceanColorPalette['lavender.5']
|
|
1185
|
+
}
|
|
1324
1186
|
},
|
|
1325
1187
|
secondary: {
|
|
1326
|
-
|
|
1188
|
+
default: {
|
|
1189
|
+
backgroundColor: lateOceanColorPalette['violine.2']
|
|
1190
|
+
},
|
|
1191
|
+
hover: {
|
|
1192
|
+
backgroundColor: lateOceanColorPalette['violine.4']
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1195
|
+
ghost: {
|
|
1196
|
+
default: {
|
|
1197
|
+
backgroundColor: lateOceanColorPalette.white
|
|
1198
|
+
},
|
|
1199
|
+
hover: {
|
|
1200
|
+
backgroundColor: lateOceanColorPalette['eggshell.2']
|
|
1201
|
+
}
|
|
1327
1202
|
},
|
|
1328
1203
|
dark: {
|
|
1329
|
-
|
|
1204
|
+
default: {
|
|
1205
|
+
backgroundColor: lateOceanColorPalette['eggshell.3']
|
|
1206
|
+
},
|
|
1207
|
+
hover: {
|
|
1208
|
+
backgroundColor: lateOceanColorPalette['eggshell.2']
|
|
1209
|
+
}
|
|
1330
1210
|
},
|
|
1331
|
-
padding:
|
|
1211
|
+
padding: {
|
|
1212
|
+
medium: spacing * 4,
|
|
1213
|
+
large: spacing * 6
|
|
1214
|
+
}
|
|
1332
1215
|
};
|
|
1333
1216
|
|
|
1334
1217
|
const getIconSizeFromFontSize = fontSize => {
|
|
@@ -1451,6 +1334,152 @@ const pageLoader = {
|
|
|
1451
1334
|
}
|
|
1452
1335
|
};
|
|
1453
1336
|
|
|
1337
|
+
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
1338
|
+
/** @deprecated legacy typography type config is deprecated. */
|
|
1339
|
+
const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
|
|
1340
|
+
baseAndSmall: {
|
|
1341
|
+
fontSize: baseAndSmallFontSize,
|
|
1342
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
1343
|
+
},
|
|
1344
|
+
mediumAndWide: {
|
|
1345
|
+
fontSize: mediumAndWideFontSize,
|
|
1346
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
1347
|
+
}
|
|
1348
|
+
});
|
|
1349
|
+
const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
|
|
1350
|
+
const config = {
|
|
1351
|
+
fontSize,
|
|
1352
|
+
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
1353
|
+
};
|
|
1354
|
+
return {
|
|
1355
|
+
baseAndSmall: config,
|
|
1356
|
+
mediumAndWide: config
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
const typography = {
|
|
1360
|
+
colors: {
|
|
1361
|
+
black: colors.black,
|
|
1362
|
+
'black-anthracite': colors.blackAnthracite,
|
|
1363
|
+
'black-disabled': lateOceanColorPalette.black400,
|
|
1364
|
+
'black-light': lateOceanColorPalette.black555,
|
|
1365
|
+
white: colors.white,
|
|
1366
|
+
'white-light': colors.white,
|
|
1367
|
+
primary: colors.primary,
|
|
1368
|
+
'primary-light': colors.primaryLight,
|
|
1369
|
+
accent: colors.accent,
|
|
1370
|
+
success: colors.success,
|
|
1371
|
+
danger: colors.danger,
|
|
1372
|
+
warning: colors.warning
|
|
1373
|
+
},
|
|
1374
|
+
types: {
|
|
1375
|
+
headings: {
|
|
1376
|
+
fontFamily: {
|
|
1377
|
+
native: {
|
|
1378
|
+
regular: 'Moderat-Bold',
|
|
1379
|
+
bold: 'Moderat-Bold'
|
|
1380
|
+
},
|
|
1381
|
+
web: {
|
|
1382
|
+
regular: 'Moderat',
|
|
1383
|
+
bold: 'Moderat'
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
fontWeight: {
|
|
1387
|
+
regular: 400,
|
|
1388
|
+
bold: 700
|
|
1389
|
+
},
|
|
1390
|
+
fontStyle: 'normal',
|
|
1391
|
+
configs: {
|
|
1392
|
+
/* legacy */
|
|
1393
|
+
header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
|
|
1394
|
+
header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
|
|
1395
|
+
header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
|
|
1396
|
+
header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
|
|
1397
|
+
header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
|
|
1398
|
+
/* latest */
|
|
1399
|
+
'heading-xxl': createTypographyConfig(56, 1.1),
|
|
1400
|
+
'heading-xl': createTypographyConfig(48, 1.1),
|
|
1401
|
+
'heading-l': createTypographyConfig(40, 1.1),
|
|
1402
|
+
'heading-m': createTypographyConfig(32, 1.2),
|
|
1403
|
+
'heading-s': createTypographyConfig(24, 1.2),
|
|
1404
|
+
'heading-xs': createTypographyConfig(18, 1.3),
|
|
1405
|
+
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
'headings-impact': {
|
|
1409
|
+
fontFamily: {
|
|
1410
|
+
native: {
|
|
1411
|
+
regular: 'Transducer-Black',
|
|
1412
|
+
bold: 'Transducer-Black'
|
|
1413
|
+
},
|
|
1414
|
+
web: {
|
|
1415
|
+
regular: 'TransducerBlack',
|
|
1416
|
+
bold: 'TransducerBlack'
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
fontWeight: 900,
|
|
1420
|
+
fontStyle: 'normal',
|
|
1421
|
+
configs: {
|
|
1422
|
+
/* legacy */
|
|
1423
|
+
'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
|
|
1424
|
+
'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
|
|
1425
|
+
'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
|
|
1426
|
+
'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
|
|
1427
|
+
'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
|
|
1428
|
+
'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
|
|
1429
|
+
'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
|
|
1430
|
+
'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
|
|
1431
|
+
/* latest */
|
|
1432
|
+
'heading-impact-xxl': createTypographyConfig(56, 1.2),
|
|
1433
|
+
'heading-impact-xl': createTypographyConfig(48, 1.2),
|
|
1434
|
+
'heading-impact-l': createTypographyConfig(40, 1.2),
|
|
1435
|
+
'heading-impact-m': createTypographyConfig(32, 1.2),
|
|
1436
|
+
'heading-impact-s': createTypographyConfig(24, 1.2),
|
|
1437
|
+
'heading-impact-xs': createTypographyConfig(18, 1.2),
|
|
1438
|
+
'heading-impact-xxs': createTypographyConfig(16, 1.2),
|
|
1439
|
+
'heading-impact-xxxs': createTypographyConfig(14, 1.2)
|
|
1440
|
+
}
|
|
1441
|
+
},
|
|
1442
|
+
bodies: {
|
|
1443
|
+
fontFamily: {
|
|
1444
|
+
web: {
|
|
1445
|
+
regular: 'Moderat',
|
|
1446
|
+
bold: 'Moderat'
|
|
1447
|
+
},
|
|
1448
|
+
native: {
|
|
1449
|
+
regular: 'Moderat-Regular',
|
|
1450
|
+
bold: 'Moderat-Bold'
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
fontWeight: {
|
|
1454
|
+
regular: 400,
|
|
1455
|
+
bold: 700
|
|
1456
|
+
},
|
|
1457
|
+
fontStyle: {
|
|
1458
|
+
regular: 'normal',
|
|
1459
|
+
bold: 'normal'
|
|
1460
|
+
},
|
|
1461
|
+
configs: {
|
|
1462
|
+
/* legacy */
|
|
1463
|
+
'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
|
|
1464
|
+
'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
|
|
1465
|
+
body: createLegacyTypographyTypeConfig(1.4, 16, 16),
|
|
1466
|
+
'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
|
|
1467
|
+
'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
|
|
1468
|
+
/* latest */
|
|
1469
|
+
'body-xl': createTypographyConfig(24, 1.4),
|
|
1470
|
+
'body-l': createTypographyConfig(18, 1.4),
|
|
1471
|
+
'body-m': createTypographyConfig(16, 1.4),
|
|
1472
|
+
'body-s': createTypographyConfig(14, 1.4),
|
|
1473
|
+
'body-xs': createTypographyConfig(12, 1.4)
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
link: {
|
|
1478
|
+
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
1479
|
+
disabledColor: colors.blackDisabled
|
|
1480
|
+
}
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1454
1483
|
const picker = {
|
|
1455
1484
|
ios: {
|
|
1456
1485
|
default: {
|
|
@@ -1965,7 +1994,7 @@ function getCurrentBackgroundColorForNativeBaseTheme({
|
|
|
1965
1994
|
return `${baseKey}.backgroundColor`;
|
|
1966
1995
|
}
|
|
1967
1996
|
|
|
1968
|
-
function AnimatedContainer$
|
|
1997
|
+
function AnimatedContainer$2({
|
|
1969
1998
|
disabled,
|
|
1970
1999
|
animatedStyles,
|
|
1971
2000
|
children,
|
|
@@ -2504,7 +2533,7 @@ function getVariantValuesIfExist(theme, type, variant) {
|
|
|
2504
2533
|
return theme.kitt.button[type].default;
|
|
2505
2534
|
}
|
|
2506
2535
|
|
|
2507
|
-
const useNativeAnimation$
|
|
2536
|
+
const useNativeAnimation$4 = ({
|
|
2508
2537
|
type,
|
|
2509
2538
|
variant,
|
|
2510
2539
|
isPressedInternal
|
|
@@ -2579,7 +2608,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
2579
2608
|
onPressIn,
|
|
2580
2609
|
onPressOut,
|
|
2581
2610
|
animatedStyles
|
|
2582
|
-
} = useNativeAnimation$
|
|
2611
|
+
} = useNativeAnimation$4({
|
|
2583
2612
|
type,
|
|
2584
2613
|
variant
|
|
2585
2614
|
});
|
|
@@ -2618,7 +2647,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
2618
2647
|
isHovered,
|
|
2619
2648
|
isPressed,
|
|
2620
2649
|
isFocused
|
|
2621
|
-
}) => /*#__PURE__*/jsx(AnimatedContainer$
|
|
2650
|
+
}) => /*#__PURE__*/jsx(AnimatedContainer$2, {
|
|
2622
2651
|
animatedStyles: animatedStyles,
|
|
2623
2652
|
type: type,
|
|
2624
2653
|
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
|
|
@@ -6045,7 +6074,7 @@ const Radio = /*#__PURE__*/forwardRef(({
|
|
|
6045
6074
|
});
|
|
6046
6075
|
});
|
|
6047
6076
|
|
|
6048
|
-
function AnimatedContainer({
|
|
6077
|
+
function AnimatedContainer$1({
|
|
6049
6078
|
children,
|
|
6050
6079
|
isFirst,
|
|
6051
6080
|
isLast,
|
|
@@ -6100,7 +6129,7 @@ function HoverBorder({
|
|
|
6100
6129
|
});
|
|
6101
6130
|
}
|
|
6102
6131
|
|
|
6103
|
-
const useNativeAnimation$
|
|
6132
|
+
const useNativeAnimation$2 = ({
|
|
6104
6133
|
isDisabled,
|
|
6105
6134
|
isSelected,
|
|
6106
6135
|
isPressedInternal
|
|
@@ -6181,7 +6210,7 @@ function RadioButton({
|
|
|
6181
6210
|
onPressIn,
|
|
6182
6211
|
onPressOut,
|
|
6183
6212
|
animatedStyles
|
|
6184
|
-
} = useNativeAnimation$
|
|
6213
|
+
} = useNativeAnimation$2({
|
|
6185
6214
|
isDisabled: disabled,
|
|
6186
6215
|
isSelected: selected,
|
|
6187
6216
|
isPressedInternal
|
|
@@ -6208,7 +6237,7 @@ function RadioButton({
|
|
|
6208
6237
|
isHovered,
|
|
6209
6238
|
isPressed,
|
|
6210
6239
|
isFocused
|
|
6211
|
-
}) => /*#__PURE__*/jsx(AnimatedContainer, {
|
|
6240
|
+
}) => /*#__PURE__*/jsx(AnimatedContainer$1, {
|
|
6212
6241
|
animatedStyles: animatedStyles,
|
|
6213
6242
|
isFocused: isFocused || isFocusedInternal,
|
|
6214
6243
|
isPressed: isPressed || isPressedInternal,
|
|
@@ -6628,15 +6657,228 @@ FullscreenModal.Footer = FullscreenModalFooter;
|
|
|
6628
6657
|
FullscreenModal.Body = FullscreenModalBody;
|
|
6629
6658
|
FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
|
|
6630
6659
|
|
|
6660
|
+
function AnimatedCaret({
|
|
6661
|
+
children,
|
|
6662
|
+
animatedStyles
|
|
6663
|
+
}) {
|
|
6664
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
6665
|
+
style: [animatedStyles],
|
|
6666
|
+
children: children
|
|
6667
|
+
});
|
|
6668
|
+
}
|
|
6669
|
+
|
|
6670
|
+
function AnimatedContainer({
|
|
6671
|
+
children,
|
|
6672
|
+
size,
|
|
6673
|
+
animatedStyles
|
|
6674
|
+
}) {
|
|
6675
|
+
const sx = useSx();
|
|
6676
|
+
const theme = useTheme();
|
|
6677
|
+
const styles = sx({
|
|
6678
|
+
borderRadius: theme.kitt.highlight.borderRadius,
|
|
6679
|
+
padding: theme.kitt.highlight.padding[size]
|
|
6680
|
+
});
|
|
6681
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
6682
|
+
style: [styles, animatedStyles],
|
|
6683
|
+
children: children
|
|
6684
|
+
});
|
|
6685
|
+
}
|
|
6686
|
+
|
|
6687
|
+
function AnimatedContent({
|
|
6688
|
+
children,
|
|
6689
|
+
animatedStyles
|
|
6690
|
+
}) {
|
|
6691
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
6692
|
+
style: [{
|
|
6693
|
+
overflow: 'hidden'
|
|
6694
|
+
}, animatedStyles],
|
|
6695
|
+
children: children
|
|
6696
|
+
});
|
|
6697
|
+
}
|
|
6698
|
+
|
|
6699
|
+
const withTimingConfig = {
|
|
6700
|
+
duration: 100,
|
|
6701
|
+
easing: Easing$1.ease
|
|
6702
|
+
};
|
|
6703
|
+
const useNativeAnimation$1 = ({
|
|
6704
|
+
variant,
|
|
6705
|
+
isExpanded,
|
|
6706
|
+
isInitialRender,
|
|
6707
|
+
contentHeight
|
|
6708
|
+
}) => {
|
|
6709
|
+
const theme = useTheme();
|
|
6710
|
+
const color = useSharedValue(0);
|
|
6711
|
+
const rotation = useSharedValue(0);
|
|
6712
|
+
const translate = useSharedValue(0);
|
|
6713
|
+
const containerAnimatedStyles = useAnimatedStyle(() => {
|
|
6714
|
+
return {
|
|
6715
|
+
backgroundColor: interpolateColor(color.value, [0, 1], [theme.kitt.highlight[variant].default.backgroundColor, theme.kitt.highlight[variant].hover.backgroundColor])
|
|
6716
|
+
};
|
|
6717
|
+
});
|
|
6718
|
+
const caretAnimatedStyles = useAnimatedStyle(() => {
|
|
6719
|
+
rotation.value = withTiming(isExpanded ? 180 : 0, {
|
|
6720
|
+
duration: 300,
|
|
6721
|
+
easing: Easing$1.ease
|
|
6722
|
+
});
|
|
6723
|
+
return {
|
|
6724
|
+
transform: [{
|
|
6725
|
+
rotate: `${rotation.value}deg`
|
|
6726
|
+
}, {
|
|
6727
|
+
translateY: translate.value
|
|
6728
|
+
}]
|
|
6729
|
+
};
|
|
6730
|
+
});
|
|
6731
|
+
const contentAnimatedStyles = useAnimatedStyle(() => {
|
|
6732
|
+
return {
|
|
6733
|
+
height: withTiming(isExpanded ? contentHeight : 0, {
|
|
6734
|
+
duration: isInitialRender ? 0 : 300,
|
|
6735
|
+
easing: Easing$1.ease
|
|
6736
|
+
})
|
|
6737
|
+
};
|
|
6738
|
+
});
|
|
6739
|
+
return {
|
|
6740
|
+
onPressIn: () => {
|
|
6741
|
+
color.value = withTiming(1, withTimingConfig);
|
|
6742
|
+
translate.value = withTiming(2, withTimingConfig);
|
|
6743
|
+
},
|
|
6744
|
+
onPressOut: () => {
|
|
6745
|
+
color.value = withTiming(0, withTimingConfig);
|
|
6746
|
+
translate.value = withTiming(0, withTimingConfig);
|
|
6747
|
+
},
|
|
6748
|
+
containerAnimatedStyles,
|
|
6749
|
+
caretAnimatedStyles,
|
|
6750
|
+
contentAnimatedStyles
|
|
6751
|
+
};
|
|
6752
|
+
};
|
|
6753
|
+
|
|
6631
6754
|
function Highlight({
|
|
6632
|
-
variant = '
|
|
6755
|
+
variant = 'primary',
|
|
6756
|
+
canCollapse = false,
|
|
6757
|
+
isInitialCollapsed = true,
|
|
6758
|
+
title,
|
|
6759
|
+
icon = null,
|
|
6760
|
+
size = 'medium',
|
|
6633
6761
|
children
|
|
6634
6762
|
}) {
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6763
|
+
const theme = useTheme();
|
|
6764
|
+
const [isExpanded, setIsExpanded] = useState(!isInitialCollapsed);
|
|
6765
|
+
const [contentHeight, setContentHeight] = useState(0);
|
|
6766
|
+
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
6767
|
+
const highlightStyle = {
|
|
6768
|
+
medium: {
|
|
6769
|
+
marginBottom: 'kitt.1',
|
|
6770
|
+
spaceBetween: 'kitt.2',
|
|
6771
|
+
contentMarginY: 8
|
|
6772
|
+
},
|
|
6773
|
+
large: {
|
|
6774
|
+
marginBottom: 'kitt.2',
|
|
6775
|
+
spaceBetween: 'kitt.4',
|
|
6776
|
+
contentMarginY: 16
|
|
6777
|
+
}
|
|
6778
|
+
};
|
|
6779
|
+
const {
|
|
6780
|
+
containerAnimatedStyles,
|
|
6781
|
+
caretAnimatedStyles,
|
|
6782
|
+
contentAnimatedStyles,
|
|
6783
|
+
onPressIn,
|
|
6784
|
+
onPressOut
|
|
6785
|
+
} = useNativeAnimation$1({
|
|
6786
|
+
variant,
|
|
6787
|
+
isExpanded,
|
|
6788
|
+
isInitialRender,
|
|
6789
|
+
contentHeight
|
|
6790
|
+
});
|
|
6791
|
+
const handleLayout = event => {
|
|
6792
|
+
const layoutHeight = event.nativeEvent.layout.height;
|
|
6793
|
+
const newContentHeight = layoutHeight + highlightStyle[size].contentMarginY;
|
|
6794
|
+
if (layoutHeight > 0 && newContentHeight !== contentHeight) {
|
|
6795
|
+
setContentHeight(newContentHeight);
|
|
6796
|
+
}
|
|
6797
|
+
};
|
|
6798
|
+
if (!canCollapse) {
|
|
6799
|
+
return /*#__PURE__*/jsx(View, {
|
|
6800
|
+
borderRadius: "kitt.highlight.borderRadius",
|
|
6801
|
+
padding: theme.kitt.highlight.padding[size],
|
|
6802
|
+
backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
|
|
6803
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
6804
|
+
space: highlightStyle[size].spaceBetween,
|
|
6805
|
+
children: [icon && /*#__PURE__*/jsx(View, {
|
|
6806
|
+
children: icon
|
|
6807
|
+
}), /*#__PURE__*/jsxs(View, {
|
|
6808
|
+
flexGrow: 1,
|
|
6809
|
+
flexShrink: 1,
|
|
6810
|
+
children: [title && /*#__PURE__*/jsx(View, {
|
|
6811
|
+
marginBottom: highlightStyle[size].marginBottom,
|
|
6812
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
6813
|
+
variant: "bold",
|
|
6814
|
+
base: "body",
|
|
6815
|
+
ellipsizeMode: "clip",
|
|
6816
|
+
children: title
|
|
6817
|
+
})
|
|
6818
|
+
}), children]
|
|
6819
|
+
})]
|
|
6820
|
+
})
|
|
6821
|
+
});
|
|
6822
|
+
}
|
|
6823
|
+
return /*#__PURE__*/jsx(Pressable, {
|
|
6824
|
+
onPress: () => {
|
|
6825
|
+
setIsExpanded(!isExpanded);
|
|
6826
|
+
setIsInitialRender(false);
|
|
6827
|
+
},
|
|
6828
|
+
onPressIn: onPressIn,
|
|
6829
|
+
onPressOut: onPressOut,
|
|
6830
|
+
children: ({
|
|
6831
|
+
isHovered
|
|
6832
|
+
}) => {
|
|
6833
|
+
return /*#__PURE__*/jsxs(AnimatedContainer, {
|
|
6834
|
+
isHovered: isHovered,
|
|
6835
|
+
size: size,
|
|
6836
|
+
variant: variant,
|
|
6837
|
+
animatedStyles: containerAnimatedStyles,
|
|
6838
|
+
children: [title && /*#__PURE__*/jsxs(HStack, {
|
|
6839
|
+
space: highlightStyle[size].spaceBetween,
|
|
6840
|
+
alignItems: "center",
|
|
6841
|
+
children: [icon && /*#__PURE__*/jsx(View, {
|
|
6842
|
+
flexGrow: 1,
|
|
6843
|
+
children: icon
|
|
6844
|
+
}), /*#__PURE__*/jsx(View, {
|
|
6845
|
+
flexGrow: 1,
|
|
6846
|
+
flexShrink: 1,
|
|
6847
|
+
width: "100%",
|
|
6848
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
6849
|
+
variant: "bold",
|
|
6850
|
+
base: "body",
|
|
6851
|
+
ellipsizeMode: "clip",
|
|
6852
|
+
children: title
|
|
6853
|
+
})
|
|
6854
|
+
}), /*#__PURE__*/jsx(View, {
|
|
6855
|
+
flexGrow: 2,
|
|
6856
|
+
flexShrink: 2,
|
|
6857
|
+
alignItems: "center",
|
|
6858
|
+
justifyContent: "center",
|
|
6859
|
+
children: /*#__PURE__*/jsx(AnimatedCaret, {
|
|
6860
|
+
isHovered: isHovered,
|
|
6861
|
+
isExpanded: isExpanded,
|
|
6862
|
+
animatedStyles: caretAnimatedStyles,
|
|
6863
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6864
|
+
icon: /*#__PURE__*/jsx(CaretDownRegularIcon, {})
|
|
6865
|
+
})
|
|
6866
|
+
})
|
|
6867
|
+
})]
|
|
6868
|
+
}), /*#__PURE__*/jsx(AnimatedContent, {
|
|
6869
|
+
isExpanded: isExpanded,
|
|
6870
|
+
isInitialRender: isInitialRender,
|
|
6871
|
+
contentHeight: contentHeight,
|
|
6872
|
+
animatedStyles: contentAnimatedStyles,
|
|
6873
|
+
children: /*#__PURE__*/jsx(View, {
|
|
6874
|
+
marginTop: highlightStyle[size].contentMarginY,
|
|
6875
|
+
position: "absolute",
|
|
6876
|
+
onLayout: handleLayout,
|
|
6877
|
+
children: children
|
|
6878
|
+
})
|
|
6879
|
+
})]
|
|
6880
|
+
});
|
|
6881
|
+
}
|
|
6640
6882
|
});
|
|
6641
6883
|
}
|
|
6642
6884
|
|
|
@@ -7653,16 +7895,44 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7653
7895
|
},
|
|
7654
7896
|
highlight: {
|
|
7655
7897
|
regular: {
|
|
7656
|
-
|
|
7898
|
+
default: {
|
|
7899
|
+
backgroundColor: theme.highlight.regular.default.backgroundColor
|
|
7900
|
+
},
|
|
7901
|
+
hover: {
|
|
7902
|
+
backgroundColor: theme.highlight.regular.hover.backgroundColor
|
|
7903
|
+
}
|
|
7657
7904
|
},
|
|
7658
7905
|
primary: {
|
|
7659
|
-
|
|
7906
|
+
default: {
|
|
7907
|
+
backgroundColor: theme.highlight.primary.default.backgroundColor
|
|
7908
|
+
},
|
|
7909
|
+
hover: {
|
|
7910
|
+
backgroundColor: theme.highlight.primary.hover.backgroundColor
|
|
7911
|
+
}
|
|
7660
7912
|
},
|
|
7661
7913
|
secondary: {
|
|
7662
|
-
|
|
7914
|
+
default: {
|
|
7915
|
+
backgroundColor: theme.highlight.secondary.default.backgroundColor
|
|
7916
|
+
},
|
|
7917
|
+
hover: {
|
|
7918
|
+
backgroundColor: theme.highlight.secondary.hover.backgroundColor
|
|
7919
|
+
}
|
|
7663
7920
|
},
|
|
7664
7921
|
dark: {
|
|
7665
|
-
|
|
7922
|
+
default: {
|
|
7923
|
+
backgroundColor: theme.highlight.dark.default.backgroundColor
|
|
7924
|
+
},
|
|
7925
|
+
hover: {
|
|
7926
|
+
backgroundColor: theme.highlight.dark.hover.backgroundColor
|
|
7927
|
+
}
|
|
7928
|
+
},
|
|
7929
|
+
ghost: {
|
|
7930
|
+
default: {
|
|
7931
|
+
backgroundColor: theme.highlight.ghost.default.backgroundColor
|
|
7932
|
+
},
|
|
7933
|
+
hover: {
|
|
7934
|
+
backgroundColor: theme.highlight.ghost.hover.backgroundColor
|
|
7935
|
+
}
|
|
7666
7936
|
}
|
|
7667
7937
|
},
|
|
7668
7938
|
verticalSteps: {
|
|
@@ -8175,7 +8445,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8175
8445
|
}
|
|
8176
8446
|
},
|
|
8177
8447
|
highlight: {
|
|
8178
|
-
|
|
8448
|
+
medium: {
|
|
8449
|
+
padding: theme.highlight.padding.medium
|
|
8450
|
+
},
|
|
8451
|
+
large: {
|
|
8452
|
+
padding: theme.highlight.padding.large
|
|
8453
|
+
}
|
|
8179
8454
|
},
|
|
8180
8455
|
listItem: {
|
|
8181
8456
|
verticalPadding: theme.listItem.verticalPadding,
|
|
@@ -8808,9 +9083,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8808
9083
|
borderColor: theme.forms.input.states.default.borderColor,
|
|
8809
9084
|
bg: theme.forms.input.states.default.backgroundColor,
|
|
8810
9085
|
_hover: {
|
|
9086
|
+
bg: theme.forms.input.states.hover.backgroundColor,
|
|
8811
9087
|
borderColor: theme.forms.input.states.hover.borderColor,
|
|
8812
9088
|
color: theme.forms.input.states.hover.color,
|
|
8813
9089
|
_focus: {
|
|
9090
|
+
bg: theme.forms.input.states.default.backgroundColor,
|
|
8814
9091
|
borderColor: theme.forms.input.states.focus.borderColor,
|
|
8815
9092
|
color: theme.forms.input.states.focus.color
|
|
8816
9093
|
}
|
|
@@ -10156,6 +10433,7 @@ function ModalDateTimePicker({
|
|
|
10156
10433
|
title,
|
|
10157
10434
|
visible,
|
|
10158
10435
|
value,
|
|
10436
|
+
minuteInterval,
|
|
10159
10437
|
validateButtonLabel,
|
|
10160
10438
|
testID,
|
|
10161
10439
|
pickerTestID,
|
|
@@ -10190,6 +10468,7 @@ function ModalDateTimePicker({
|
|
|
10190
10468
|
}) : null, /*#__PURE__*/jsx(CardModal.Body, {
|
|
10191
10469
|
children: /*#__PURE__*/jsx(DateTimePicker, {
|
|
10192
10470
|
is24Hour: true,
|
|
10471
|
+
minuteInterval: minuteInterval,
|
|
10193
10472
|
testID: pickerTestID,
|
|
10194
10473
|
value: currentValue,
|
|
10195
10474
|
mode: "time",
|
|
@@ -10283,6 +10562,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
|
|
|
10283
10562
|
disabled = false,
|
|
10284
10563
|
stretch,
|
|
10285
10564
|
value,
|
|
10565
|
+
minuteInterval,
|
|
10286
10566
|
validateButtonLabel,
|
|
10287
10567
|
isDefaultVisible,
|
|
10288
10568
|
placeholder = '--:--',
|
|
@@ -10322,11 +10602,13 @@ const TimePicker = /*#__PURE__*/forwardRef(({
|
|
|
10322
10602
|
is24Hour: true,
|
|
10323
10603
|
testID: pickerTestID,
|
|
10324
10604
|
value: pickerValue,
|
|
10605
|
+
minuteInterval: minuteInterval,
|
|
10325
10606
|
mode: "time",
|
|
10326
10607
|
display: "default",
|
|
10327
10608
|
onChange: (event, date) => handleChange(date)
|
|
10328
10609
|
}) : null, Platform.OS !== 'android' ? /*#__PURE__*/jsx(ModalDateTimePicker, {
|
|
10329
10610
|
visible: isPickerVisible,
|
|
10611
|
+
minuteInterval: minuteInterval,
|
|
10330
10612
|
title: title,
|
|
10331
10613
|
testID: modalTestID,
|
|
10332
10614
|
pickerTestID: pickerTestID,
|