@ornikar/kitt-universal 4.1.0 → 4.3.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/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/definitions/forms/InputEmail/InputEmail.d.ts +7 -0
- package/dist/definitions/forms/InputEmail/InputEmail.d.ts.map +1 -0
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts +8 -0
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -0
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +11 -0
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +19 -93
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/{avatarLateOceanTheme.d.ts → avatar.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/button.d.ts +6 -6
- package/dist/definitions/themes/late-ocean/card.d.ts +13 -0
- package/dist/definitions/themes/late-ocean/card.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{colorsLateOceanTheme.d.ts → colors.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{feedbackMessage.d.ts → feedback.d.ts} +1 -1
- package/dist/definitions/themes/late-ocean/feedback.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/forms.d.ts +1 -17
- package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/{fullScreenModalLateOceanTheme.d.ts → fullScreenModal.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/fullScreenModal.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/input.d.ts +9 -4
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/inputField.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/inputField.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/listItem.d.ts +8 -0
- package/dist/definitions/themes/late-ocean/listItem.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{radioLateOceanTheme.d.ts → radio.d.ts} +6 -5
- package/dist/definitions/themes/late-ocean/radio.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -0
- package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{skeletonTheme.d.ts → skeleton.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/tag.d.ts +18 -0
- package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{typographyLateOceanTheme.d.ts → typography.d.ts} +5 -4
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -0
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +1 -0
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +2 -2
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +274 -262
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +274 -262
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +274 -262
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +313 -275
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +248 -237
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.css +1 -0
- package/dist/index-node-14.17.cjs.web.js +279 -239
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +105 -99
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +105 -99
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +105 -99
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +105 -99
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +105 -99
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +105 -99
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/definitions/themes/late-ocean/avatarLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/cardLateOceanTheme.d.ts +0 -18
- package/dist/definitions/themes/late-ocean/cardLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/fullScreenModalLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/inputFieldLateOceanTheme.d.ts +0 -5
- package/dist/definitions/themes/late-ocean/inputFieldLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/listItemLateOceanTheme.d.ts +0 -7
- package/dist/definitions/themes/late-ocean/listItemLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/radioLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/shadowsLateOceanTheme.d.ts +0 -4
- package/dist/definitions/themes/late-ocean/shadowsLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/skeletonTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts +0 -41
- package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts.map +0 -1
|
@@ -181,8 +181,8 @@ const StyledTypography = /*#__PURE__*/styled__default.Text.withConfig({
|
|
|
181
181
|
/* type */
|
|
182
182
|
${!$typeForCurrentWindowSize ? '' : `
|
|
183
183
|
font-family: ${$isHeader ? headers.fontFamily[$variant] : bodies.fontFamily[$variant]};
|
|
184
|
-
font-size: ${$isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize};
|
|
185
|
-
line-height: ${$isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight};
|
|
184
|
+
font-size: ${$isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize}px;
|
|
185
|
+
line-height: ${$isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight}px;
|
|
186
186
|
`}
|
|
187
187
|
|
|
188
188
|
/* variant */
|
|
@@ -328,7 +328,7 @@ const StyledAvatarView = /*#__PURE__*/styled__default.View.withConfig({
|
|
|
328
328
|
$size
|
|
329
329
|
}) => {
|
|
330
330
|
if ($isRound) return `${$size / 2}px`;
|
|
331
|
-
return theme.kitt.avatar.borderRadius
|
|
331
|
+
return `${theme.kitt.avatar.borderRadius}px`;
|
|
332
332
|
}, ({
|
|
333
333
|
theme,
|
|
334
334
|
$isLight
|
|
@@ -408,7 +408,7 @@ const StyledPressable = /*#__PURE__*/styled__default.Pressable.withConfig({
|
|
|
408
408
|
const StyledAnimatedView = /*#__PURE__*/styled__default(Animated__default.View).withConfig({
|
|
409
409
|
displayName: "AnimatedButtonPressable__StyledAnimatedView",
|
|
410
410
|
componentId: "kitt-universal__sc-175vyve-1"
|
|
411
|
-
})(["border-radius:", ";"], ({
|
|
411
|
+
})(["border-radius:", "px;"], ({
|
|
412
412
|
theme
|
|
413
413
|
}) => theme.kitt.button.borderRadius);
|
|
414
414
|
const AnimatedButtonPressable = /*#__PURE__*/react.forwardRef(({
|
|
@@ -501,12 +501,12 @@ const AnimatedButtonPressable = /*#__PURE__*/react.forwardRef(({
|
|
|
501
501
|
const BaseStyledButtonPressable = /*#__PURE__*/styled__default.View.withConfig({
|
|
502
502
|
displayName: "BaseStyledButtonPressable",
|
|
503
503
|
componentId: "kitt-universal__sc-4k8lse-0"
|
|
504
|
-
})(["position:relative;min-width:", ";max-width:", ";width:", ";min-height:", ";border-radius:", ";flex-direction:row;align-items:center;justify-content:center;align-self:flex-start;background-color:", ";padding:", ";"], ({
|
|
504
|
+
})(["position:relative;min-width:", "px;max-width:", ";width:", ";min-height:", "px;border-radius:", "px;flex-direction:row;align-items:center;justify-content:center;align-self:flex-start;background-color:", ";padding:", ";"], ({
|
|
505
505
|
theme
|
|
506
506
|
}) => theme.kitt.button.minWidth, ({
|
|
507
507
|
theme,
|
|
508
508
|
$isStretch
|
|
509
|
-
}) => $isStretch ? '100%' : theme.kitt.button.maxWidth
|
|
509
|
+
}) => $isStretch ? '100%' : `${theme.kitt.button.maxWidth}px`, ({
|
|
510
510
|
$isStretch
|
|
511
511
|
}) => $isStretch ? '100%' : 'auto', ({
|
|
512
512
|
theme
|
|
@@ -746,14 +746,14 @@ function ButtonContent({
|
|
|
746
746
|
const StyledDisabled = /*#__PURE__*/styled__default.View.withConfig({
|
|
747
747
|
displayName: "StyledDisabled",
|
|
748
748
|
componentId: "kitt-universal__sc-16irf7q-0"
|
|
749
|
-
})(["position:absolute;top:0;left:0;right:0;bottom:0;border:", ";border-radius:", ";"], ({
|
|
749
|
+
})(["position:absolute;top:0;left:0;right:0;bottom:0;border:", ";border-radius:", "px;"], ({
|
|
750
750
|
theme
|
|
751
751
|
}) => {
|
|
752
752
|
const {
|
|
753
753
|
borderWidth,
|
|
754
754
|
disabled
|
|
755
755
|
} = theme.kitt.button;
|
|
756
|
-
return `${borderWidth.disabled} solid ${disabled.borderColor}`;
|
|
756
|
+
return `${borderWidth.disabled}px solid ${disabled.borderColor}`;
|
|
757
757
|
}, ({
|
|
758
758
|
theme
|
|
759
759
|
}) => theme.kitt.button.borderRadius);
|
|
@@ -804,12 +804,12 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
804
804
|
const Container$5 = /*#__PURE__*/styled__default.View.withConfig({
|
|
805
805
|
displayName: "Card__Container",
|
|
806
806
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
807
|
-
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], ({
|
|
807
|
+
})(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], ({
|
|
808
808
|
theme,
|
|
809
809
|
type
|
|
810
810
|
}) => theme.kitt.card[type].backgroundColor, ({
|
|
811
811
|
theme
|
|
812
|
-
}) => theme.kitt.
|
|
812
|
+
}) => theme.kitt.spacing * 4, ({
|
|
813
813
|
theme
|
|
814
814
|
}) => theme.kitt.card.borderRadius, ({
|
|
815
815
|
theme
|
|
@@ -896,107 +896,7 @@ function ExternalLink({
|
|
|
896
896
|
});
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
const
|
|
900
|
-
switch (state) {
|
|
901
|
-
case 'invalid':
|
|
902
|
-
return 'danger';
|
|
903
|
-
|
|
904
|
-
case 'valid':
|
|
905
|
-
default:
|
|
906
|
-
return 'black-light';
|
|
907
|
-
}
|
|
908
|
-
};
|
|
909
|
-
|
|
910
|
-
function InputFeedback({
|
|
911
|
-
state,
|
|
912
|
-
testID,
|
|
913
|
-
children
|
|
914
|
-
}) {
|
|
915
|
-
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
916
|
-
base: "body-small",
|
|
917
|
-
color: getColorFromState(state),
|
|
918
|
-
testID: testID,
|
|
919
|
-
children: children
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
const FieldContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
924
|
-
displayName: "InputField__FieldContainer",
|
|
925
|
-
componentId: "kitt-universal__sc-13fkixs-0"
|
|
926
|
-
})(["padding:5px 0 10px;"]);
|
|
927
|
-
const FeedbackContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
928
|
-
displayName: "InputField__FeedbackContainer",
|
|
929
|
-
componentId: "kitt-universal__sc-13fkixs-1"
|
|
930
|
-
})(["", ";"], ({
|
|
931
|
-
theme
|
|
932
|
-
}) => theme.responsive.ifWindowSizeMatches({
|
|
933
|
-
minWidth: KittBreakpoints.SMALL
|
|
934
|
-
}, 'padding-top: 10px', 'padding-top: 5px'));
|
|
935
|
-
const FieldLabelContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
936
|
-
displayName: "InputField__FieldLabelContainer",
|
|
937
|
-
componentId: "kitt-universal__sc-13fkixs-2"
|
|
938
|
-
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], ({
|
|
939
|
-
theme
|
|
940
|
-
}) => theme.kitt.forms.inputField.labelContainerPaddingBottom);
|
|
941
|
-
const LabelContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
942
|
-
displayName: "InputField__LabelContainer",
|
|
943
|
-
componentId: "kitt-universal__sc-13fkixs-3"
|
|
944
|
-
})(["margin-right:", "px;"], ({
|
|
945
|
-
theme
|
|
946
|
-
}) => theme.kitt.forms.inputField.iconMarginLeft);
|
|
947
|
-
function InputField({
|
|
948
|
-
label,
|
|
949
|
-
labelFeedback,
|
|
950
|
-
input,
|
|
951
|
-
feedback
|
|
952
|
-
}) {
|
|
953
|
-
return /*#__PURE__*/jsxRuntime.jsxs(FieldContainer, {
|
|
954
|
-
children: [label ? /*#__PURE__*/jsxRuntime.jsxs(FieldLabelContainer, {
|
|
955
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(LabelContainer, {
|
|
956
|
-
children: label
|
|
957
|
-
}), labelFeedback]
|
|
958
|
-
}) : null, input, feedback ? /*#__PURE__*/jsxRuntime.jsx(FeedbackContainer, {
|
|
959
|
-
children: feedback
|
|
960
|
-
}) : null]
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
function getIconColor(state, disabled) {
|
|
965
|
-
if (disabled) return 'black-light';
|
|
966
|
-
|
|
967
|
-
switch (state) {
|
|
968
|
-
case 'invalid':
|
|
969
|
-
return 'danger';
|
|
970
|
-
|
|
971
|
-
case 'valid':
|
|
972
|
-
return 'success';
|
|
973
|
-
|
|
974
|
-
default:
|
|
975
|
-
return undefined;
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
function InputIcon({
|
|
980
|
-
icon,
|
|
981
|
-
state,
|
|
982
|
-
disabled
|
|
983
|
-
}) {
|
|
984
|
-
const theme = /*#__PURE__*/styled.useTheme();
|
|
985
|
-
const color = getIconColor(state, disabled);
|
|
986
|
-
return /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
987
|
-
color: color,
|
|
988
|
-
icon: icon,
|
|
989
|
-
size: theme.kitt.forms.input.icon.size
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
function InputPressable({ ...props
|
|
994
|
-
}) {
|
|
995
|
-
return /*#__PURE__*/jsxRuntime.jsx(reactNative.Pressable, { ...props
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
const styledTextInputMixin = /*#__PURE__*/styled.css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], ({
|
|
899
|
+
const styledTextInputMixin = /*#__PURE__*/styled.css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], ({
|
|
1000
900
|
theme,
|
|
1001
901
|
$state
|
|
1002
902
|
}) => $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states.default.backgroundColor, ({
|
|
@@ -1010,7 +910,7 @@ const styledTextInputMixin = /*#__PURE__*/styled.css(["background-color:", ";bor
|
|
|
1010
910
|
theme
|
|
1011
911
|
}) => {
|
|
1012
912
|
const typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1013
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize
|
|
913
|
+
return `${theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize}px`;
|
|
1014
914
|
}, ({
|
|
1015
915
|
theme,
|
|
1016
916
|
$state
|
|
@@ -1029,10 +929,15 @@ function getInputUIState({
|
|
|
1029
929
|
return 'default';
|
|
1030
930
|
}
|
|
1031
931
|
|
|
932
|
+
const InputTextContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
933
|
+
displayName: "InputTextContainer",
|
|
934
|
+
componentId: "kitt-universal__sc-8j6fjq-0"
|
|
935
|
+
})(["position:relative;"]);
|
|
936
|
+
|
|
1032
937
|
const StyledTextInput = /*#__PURE__*/styled__default(reactNative.TextInput).withConfig({
|
|
1033
938
|
displayName: "InputText__StyledTextInput",
|
|
1034
939
|
componentId: "kitt-universal__sc-uke279-0"
|
|
1035
|
-
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, ({
|
|
940
|
+
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, ({
|
|
1036
941
|
theme,
|
|
1037
942
|
multiline
|
|
1038
943
|
}) => {
|
|
@@ -1047,17 +952,13 @@ const StyledTextInput = /*#__PURE__*/styled__default(reactNative.TextInput).with
|
|
|
1047
952
|
}) => {
|
|
1048
953
|
if (!multiline && reactNative.Platform.OS === 'ios') return 0;
|
|
1049
954
|
const typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1050
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight
|
|
955
|
+
return `${theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight}px`;
|
|
1051
956
|
}, ({
|
|
1052
957
|
$minHeight
|
|
1053
958
|
}) => $minHeight);
|
|
1054
|
-
const InputTextContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
1055
|
-
displayName: "InputText__InputTextContainer",
|
|
1056
|
-
componentId: "kitt-universal__sc-uke279-1"
|
|
1057
|
-
})(["position:relative;"]);
|
|
1058
959
|
const RightInputContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
1059
960
|
displayName: "InputText__RightInputContainer",
|
|
1060
|
-
componentId: "kitt-universal__sc-uke279-
|
|
961
|
+
componentId: "kitt-universal__sc-uke279-1"
|
|
1061
962
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
1062
963
|
const InputText = /*#__PURE__*/react.forwardRef(({
|
|
1063
964
|
id,
|
|
@@ -1082,6 +983,7 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
1082
983
|
formState
|
|
1083
984
|
});
|
|
1084
985
|
return /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
|
|
986
|
+
$isDisabled: disabled,
|
|
1085
987
|
children: [/*#__PURE__*/jsxRuntime.jsx(StyledTextInput, {
|
|
1086
988
|
ref: ref,
|
|
1087
989
|
nativeID: id,
|
|
@@ -1109,6 +1011,115 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
1109
1011
|
});
|
|
1110
1012
|
});
|
|
1111
1013
|
|
|
1014
|
+
function InputEmail(props) {
|
|
1015
|
+
return /*#__PURE__*/jsxRuntime.jsx(InputText, {
|
|
1016
|
+
autoCompleteType: "email",
|
|
1017
|
+
keyboardType: "email-address",
|
|
1018
|
+
textContentType: "emailAddress",
|
|
1019
|
+
...props
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
const getColorFromState = state => {
|
|
1024
|
+
switch (state) {
|
|
1025
|
+
case 'invalid':
|
|
1026
|
+
return 'danger';
|
|
1027
|
+
|
|
1028
|
+
case 'valid':
|
|
1029
|
+
default:
|
|
1030
|
+
return 'black-light';
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
function InputFeedback({
|
|
1035
|
+
state,
|
|
1036
|
+
testID,
|
|
1037
|
+
children
|
|
1038
|
+
}) {
|
|
1039
|
+
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
1040
|
+
base: "body-small",
|
|
1041
|
+
color: getColorFromState(state),
|
|
1042
|
+
testID: testID,
|
|
1043
|
+
children: children
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
const FieldContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
1048
|
+
displayName: "InputField__FieldContainer",
|
|
1049
|
+
componentId: "kitt-universal__sc-13fkixs-0"
|
|
1050
|
+
})(["padding:5px 0 10px;"]);
|
|
1051
|
+
const FeedbackContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
1052
|
+
displayName: "InputField__FeedbackContainer",
|
|
1053
|
+
componentId: "kitt-universal__sc-13fkixs-1"
|
|
1054
|
+
})(["", ";"], ({
|
|
1055
|
+
theme
|
|
1056
|
+
}) => theme.responsive.ifWindowSizeMatches({
|
|
1057
|
+
minWidth: KittBreakpoints.SMALL
|
|
1058
|
+
}, 'padding-top: 10px', 'padding-top: 5px'));
|
|
1059
|
+
const FieldLabelContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
1060
|
+
displayName: "InputField__FieldLabelContainer",
|
|
1061
|
+
componentId: "kitt-universal__sc-13fkixs-2"
|
|
1062
|
+
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], ({
|
|
1063
|
+
theme
|
|
1064
|
+
}) => theme.kitt.forms.inputField.labelContainerPaddingBottom);
|
|
1065
|
+
const LabelContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
1066
|
+
displayName: "InputField__LabelContainer",
|
|
1067
|
+
componentId: "kitt-universal__sc-13fkixs-3"
|
|
1068
|
+
})(["margin-right:", "px;"], ({
|
|
1069
|
+
theme
|
|
1070
|
+
}) => theme.kitt.forms.inputField.iconMarginLeft);
|
|
1071
|
+
function InputField({
|
|
1072
|
+
label,
|
|
1073
|
+
labelFeedback,
|
|
1074
|
+
input,
|
|
1075
|
+
feedback
|
|
1076
|
+
}) {
|
|
1077
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FieldContainer, {
|
|
1078
|
+
children: [label ? /*#__PURE__*/jsxRuntime.jsxs(FieldLabelContainer, {
|
|
1079
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(LabelContainer, {
|
|
1080
|
+
children: label
|
|
1081
|
+
}), labelFeedback]
|
|
1082
|
+
}) : null, input, feedback ? /*#__PURE__*/jsxRuntime.jsx(FeedbackContainer, {
|
|
1083
|
+
children: feedback
|
|
1084
|
+
}) : null]
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
function getIconColor(state, disabled) {
|
|
1089
|
+
if (disabled) return 'black-light';
|
|
1090
|
+
|
|
1091
|
+
switch (state) {
|
|
1092
|
+
case 'invalid':
|
|
1093
|
+
return 'danger';
|
|
1094
|
+
|
|
1095
|
+
case 'valid':
|
|
1096
|
+
return 'success';
|
|
1097
|
+
|
|
1098
|
+
default:
|
|
1099
|
+
return undefined;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
function InputIcon({
|
|
1104
|
+
icon,
|
|
1105
|
+
state,
|
|
1106
|
+
disabled
|
|
1107
|
+
}) {
|
|
1108
|
+
const theme = /*#__PURE__*/styled.useTheme();
|
|
1109
|
+
const color = getIconColor(state, disabled);
|
|
1110
|
+
return /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
1111
|
+
color: color,
|
|
1112
|
+
icon: icon,
|
|
1113
|
+
size: theme.kitt.forms.input.icon.size
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
function InputPressable({ ...props
|
|
1118
|
+
}) {
|
|
1119
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.Pressable, { ...props
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1112
1123
|
function InputPassword({
|
|
1113
1124
|
isPasswordDefaultVisible,
|
|
1114
1125
|
right,
|
|
@@ -1146,7 +1157,7 @@ function Label({
|
|
|
1146
1157
|
const OuterRadio = /*#__PURE__*/styled__default.View.withConfig({
|
|
1147
1158
|
displayName: "Radio__OuterRadio",
|
|
1148
1159
|
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
1149
|
-
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], ({
|
|
1160
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], ({
|
|
1150
1161
|
theme,
|
|
1151
1162
|
disabled
|
|
1152
1163
|
}) => theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].backgroundColor, ({
|
|
@@ -1694,10 +1705,10 @@ const SideContainerView = /*#__PURE__*/styled__default.View.withConfig({
|
|
|
1694
1705
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], ({
|
|
1695
1706
|
theme,
|
|
1696
1707
|
side
|
|
1697
|
-
}) => side === 'right' ? theme.kitt.listItem.innerMargin : 0, ({
|
|
1708
|
+
}) => side === 'right' ? `${theme.kitt.listItem.innerMargin}px` : 0, ({
|
|
1698
1709
|
theme,
|
|
1699
1710
|
side
|
|
1700
|
-
}) => side === 'left' ? theme.kitt.listItem.innerMargin : 0); // Handles the vertical alignment of the side elements of the list item
|
|
1711
|
+
}) => side === 'left' ? `${theme.kitt.listItem.innerMargin}px` : 0); // Handles the vertical alignment of the side elements of the list item
|
|
1701
1712
|
|
|
1702
1713
|
function ListItemSideContainer({
|
|
1703
1714
|
children,
|
|
@@ -1743,15 +1754,15 @@ const ContainerView = /*#__PURE__*/styled__default.View.withConfig({
|
|
|
1743
1754
|
} = theme.kitt.listItem;
|
|
1744
1755
|
|
|
1745
1756
|
if (borders === 'top') {
|
|
1746
|
-
return `border-top-width: ${borderWidth}`;
|
|
1757
|
+
return `border-top-width: ${borderWidth}px`;
|
|
1747
1758
|
}
|
|
1748
1759
|
|
|
1749
1760
|
if (borders === 'bottom') {
|
|
1750
|
-
return `border-bottom-width: ${borderWidth}`;
|
|
1761
|
+
return `border-bottom-width: ${borderWidth}px`;
|
|
1751
1762
|
}
|
|
1752
1763
|
|
|
1753
1764
|
if (borders === 'both') {
|
|
1754
|
-
return
|
|
1765
|
+
return styled.css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
|
|
1755
1766
|
}
|
|
1756
1767
|
|
|
1757
1768
|
return 'border: none';
|
|
@@ -2099,11 +2110,11 @@ const ModalView = /*#__PURE__*/styled__default.View.withConfig({
|
|
|
2099
2110
|
const ContentView = /*#__PURE__*/styled__default.View.withConfig({
|
|
2100
2111
|
displayName: "Modal__ContentView",
|
|
2101
2112
|
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
2102
|
-
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], ({
|
|
2113
|
+
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], ({
|
|
2103
2114
|
theme
|
|
2104
2115
|
}) => theme.kitt.card.borderRadius, ({
|
|
2105
2116
|
theme
|
|
2106
|
-
}) => theme.kitt.
|
|
2117
|
+
}) => theme.kitt.colors.uiBackgroundLight);
|
|
2107
2118
|
function Modal({
|
|
2108
2119
|
visible,
|
|
2109
2120
|
children,
|
|
@@ -2619,7 +2630,7 @@ const StoryGrid = {
|
|
|
2619
2630
|
const Container$1 = /*#__PURE__*/styled__default.View.withConfig({
|
|
2620
2631
|
displayName: "Tag__Container",
|
|
2621
2632
|
componentId: "kitt-universal__sc-19jmowi-0"
|
|
2622
|
-
})(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], ({
|
|
2633
|
+
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], ({
|
|
2623
2634
|
theme,
|
|
2624
2635
|
type,
|
|
2625
2636
|
variant
|
|
@@ -2683,6 +2694,7 @@ const lateOceanColorPalette = {
|
|
|
2683
2694
|
warmEmbrace: '#F4D3CE',
|
|
2684
2695
|
warmEmbraceLight1: '#FFEDE6',
|
|
2685
2696
|
black1000: '#000000',
|
|
2697
|
+
black800: '#2C293D',
|
|
2686
2698
|
black555: '#737373',
|
|
2687
2699
|
black200: '#CCCCCC',
|
|
2688
2700
|
black100: '#E5E5E5',
|
|
@@ -2698,7 +2710,7 @@ const lateOceanColorPalette = {
|
|
|
2698
2710
|
moonPurpleLight1: '#EDEBFC'
|
|
2699
2711
|
};
|
|
2700
2712
|
|
|
2701
|
-
const
|
|
2713
|
+
const colors = {
|
|
2702
2714
|
primary: lateOceanColorPalette.lateOcean,
|
|
2703
2715
|
primaryLight: lateOceanColorPalette.lateOceanLight1,
|
|
2704
2716
|
accent: lateOceanColorPalette.warmEmbrace,
|
|
@@ -2723,9 +2735,9 @@ const colorsLateOceanTheme = {
|
|
|
2723
2735
|
};
|
|
2724
2736
|
|
|
2725
2737
|
const avatar = {
|
|
2726
|
-
borderRadius:
|
|
2738
|
+
borderRadius: 10,
|
|
2727
2739
|
default: {
|
|
2728
|
-
backgroundColor:
|
|
2740
|
+
backgroundColor: colors.primary
|
|
2729
2741
|
},
|
|
2730
2742
|
light: {
|
|
2731
2743
|
backgroundColor: lateOceanColorPalette.black100
|
|
@@ -2733,14 +2745,14 @@ const avatar = {
|
|
|
2733
2745
|
};
|
|
2734
2746
|
|
|
2735
2747
|
const button = {
|
|
2736
|
-
borderRadius:
|
|
2748
|
+
borderRadius: 30,
|
|
2737
2749
|
borderWidth: {
|
|
2738
|
-
disabled:
|
|
2739
|
-
focus:
|
|
2750
|
+
disabled: 2,
|
|
2751
|
+
focus: 3
|
|
2740
2752
|
},
|
|
2741
|
-
minHeight:
|
|
2742
|
-
minWidth:
|
|
2743
|
-
maxWidth:
|
|
2753
|
+
minHeight: 40,
|
|
2754
|
+
minWidth: 40,
|
|
2755
|
+
maxWidth: 335,
|
|
2744
2756
|
scale: {
|
|
2745
2757
|
base: {
|
|
2746
2758
|
default: 1,
|
|
@@ -2767,9 +2779,9 @@ const button = {
|
|
|
2767
2779
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
2768
2780
|
},
|
|
2769
2781
|
primary: {
|
|
2770
|
-
backgroundColor:
|
|
2771
|
-
pressedBackgroundColor:
|
|
2772
|
-
hoverBackgroundColor:
|
|
2782
|
+
backgroundColor: colors.primary,
|
|
2783
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
2784
|
+
hoverBackgroundColor: colors.primaryLight,
|
|
2773
2785
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
2774
2786
|
},
|
|
2775
2787
|
white: {
|
|
@@ -2779,79 +2791,79 @@ const button = {
|
|
|
2779
2791
|
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
2780
2792
|
},
|
|
2781
2793
|
subtle: {
|
|
2782
|
-
backgroundColor:
|
|
2783
|
-
pressedBackgroundColor:
|
|
2784
|
-
hoverBackgroundColor:
|
|
2794
|
+
backgroundColor: colors.transparent,
|
|
2795
|
+
pressedBackgroundColor: colors.transparent,
|
|
2796
|
+
hoverBackgroundColor: colors.transparent,
|
|
2785
2797
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
2786
|
-
color:
|
|
2798
|
+
color: colors.primary,
|
|
2787
2799
|
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
2788
2800
|
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
2789
2801
|
},
|
|
2790
2802
|
'subtle-dark': {
|
|
2791
|
-
backgroundColor:
|
|
2792
|
-
pressedBackgroundColor:
|
|
2793
|
-
hoverBackgroundColor:
|
|
2803
|
+
backgroundColor: colors.transparent,
|
|
2804
|
+
pressedBackgroundColor: colors.transparent,
|
|
2805
|
+
hoverBackgroundColor: colors.transparent,
|
|
2794
2806
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
2795
|
-
color:
|
|
2807
|
+
color: colors.black,
|
|
2796
2808
|
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
2797
2809
|
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
2798
2810
|
},
|
|
2799
2811
|
disabled: {
|
|
2800
|
-
backgroundColor:
|
|
2801
|
-
pressedBackgroundColor:
|
|
2802
|
-
hoverBackgroundColor:
|
|
2812
|
+
backgroundColor: colors.disabled,
|
|
2813
|
+
pressedBackgroundColor: colors.disabled,
|
|
2814
|
+
hoverBackgroundColor: colors.disabled,
|
|
2803
2815
|
focusBorderColor: lateOceanColorPalette.black100,
|
|
2804
2816
|
borderColor: lateOceanColorPalette.black100
|
|
2805
2817
|
}
|
|
2806
2818
|
};
|
|
2807
2819
|
|
|
2808
|
-
const
|
|
2809
|
-
borderRadius:
|
|
2810
|
-
borderWidth:
|
|
2811
|
-
padding: '16px',
|
|
2820
|
+
const card = {
|
|
2821
|
+
borderRadius: 20,
|
|
2822
|
+
borderWidth: 2,
|
|
2812
2823
|
primary: {
|
|
2813
|
-
backgroundColor:
|
|
2814
|
-
borderColor:
|
|
2824
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2825
|
+
borderColor: colors.primary
|
|
2815
2826
|
},
|
|
2816
2827
|
secondary: {
|
|
2817
|
-
backgroundColor:
|
|
2818
|
-
borderColor:
|
|
2828
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2829
|
+
borderColor: colors.separator
|
|
2819
2830
|
},
|
|
2820
2831
|
subtle: {
|
|
2821
2832
|
backgroundColor: lateOceanColorPalette.black50,
|
|
2822
|
-
borderColor:
|
|
2833
|
+
borderColor: colors.separator
|
|
2823
2834
|
}
|
|
2824
2835
|
};
|
|
2825
2836
|
|
|
2826
2837
|
const feedbackMessage = {
|
|
2827
2838
|
danger: {
|
|
2828
|
-
backgroundColor:
|
|
2839
|
+
backgroundColor: colors.danger
|
|
2829
2840
|
},
|
|
2830
2841
|
success: {
|
|
2831
|
-
backgroundColor:
|
|
2842
|
+
backgroundColor: colors.success
|
|
2832
2843
|
},
|
|
2833
2844
|
info: {
|
|
2834
|
-
backgroundColor:
|
|
2845
|
+
backgroundColor: colors.info
|
|
2835
2846
|
},
|
|
2836
2847
|
warning: {
|
|
2837
|
-
backgroundColor:
|
|
2848
|
+
backgroundColor: colors.warning
|
|
2838
2849
|
}
|
|
2839
2850
|
};
|
|
2840
2851
|
|
|
2841
2852
|
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
2842
2853
|
const createTypographyTypeConfig = (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) => ({
|
|
2843
2854
|
baseAndSmall: {
|
|
2844
|
-
fontSize:
|
|
2845
|
-
lineHeight:
|
|
2855
|
+
fontSize: baseAndSmallFontSize,
|
|
2856
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier)
|
|
2846
2857
|
},
|
|
2847
2858
|
mediumAndWide: {
|
|
2848
|
-
fontSize:
|
|
2849
|
-
lineHeight:
|
|
2859
|
+
fontSize: mediumAndWideFontSize,
|
|
2860
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier)
|
|
2850
2861
|
}
|
|
2851
2862
|
});
|
|
2852
|
-
const
|
|
2863
|
+
const typography = {
|
|
2853
2864
|
colors: {
|
|
2854
2865
|
black: lateOceanColorPalette.black1000,
|
|
2866
|
+
'black-anthracite': lateOceanColorPalette.black800,
|
|
2855
2867
|
'black-light': lateOceanColorPalette.black555,
|
|
2856
2868
|
white: lateOceanColorPalette.white,
|
|
2857
2869
|
'white-light': lateOceanColorPalette.white,
|
|
@@ -2911,17 +2923,17 @@ const typographyLateOceanTheme = {
|
|
|
2911
2923
|
|
|
2912
2924
|
const inputStatesStyle = {
|
|
2913
2925
|
default: {
|
|
2914
|
-
backgroundColor:
|
|
2915
|
-
borderColor:
|
|
2926
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2927
|
+
borderColor: colors.separator,
|
|
2916
2928
|
color: 'black'
|
|
2917
2929
|
},
|
|
2918
2930
|
pending: {
|
|
2919
|
-
backgroundColor:
|
|
2920
|
-
borderColor:
|
|
2931
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2932
|
+
borderColor: colors.separator,
|
|
2921
2933
|
color: 'black'
|
|
2922
2934
|
},
|
|
2923
2935
|
valid: {
|
|
2924
|
-
backgroundColor:
|
|
2936
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2925
2937
|
borderColor: lateOceanColorPalette.black100,
|
|
2926
2938
|
color: 'black'
|
|
2927
2939
|
},
|
|
@@ -2930,56 +2942,61 @@ const inputStatesStyle = {
|
|
|
2930
2942
|
color: 'black'
|
|
2931
2943
|
},
|
|
2932
2944
|
focus: {
|
|
2933
|
-
borderColor:
|
|
2945
|
+
borderColor: colors.primary,
|
|
2934
2946
|
color: 'black'
|
|
2935
2947
|
},
|
|
2936
2948
|
disabled: {
|
|
2937
|
-
backgroundColor:
|
|
2938
|
-
borderColor:
|
|
2949
|
+
backgroundColor: colors.disabled,
|
|
2950
|
+
borderColor: colors.separator,
|
|
2939
2951
|
color: 'black-light'
|
|
2940
2952
|
},
|
|
2941
2953
|
invalid: {
|
|
2942
|
-
borderColor:
|
|
2954
|
+
borderColor: colors.separator,
|
|
2943
2955
|
color: 'black'
|
|
2944
2956
|
}
|
|
2945
2957
|
};
|
|
2946
2958
|
const input = {
|
|
2947
2959
|
color: {
|
|
2948
|
-
selection:
|
|
2949
|
-
placeholder:
|
|
2960
|
+
selection: colors.primary,
|
|
2961
|
+
placeholder: typography.colors['black-light']
|
|
2950
2962
|
},
|
|
2951
|
-
borderWidth:
|
|
2952
|
-
borderRadius:
|
|
2963
|
+
borderWidth: 2,
|
|
2964
|
+
borderRadius: 10,
|
|
2953
2965
|
icon: {
|
|
2954
2966
|
size: 20
|
|
2955
2967
|
},
|
|
2956
2968
|
padding: {
|
|
2957
|
-
default: '
|
|
2958
|
-
iOSSingleLine: '
|
|
2969
|
+
default: '5px 16px',
|
|
2970
|
+
iOSSingleLine: '7px 16px'
|
|
2971
|
+
},
|
|
2972
|
+
transition: {
|
|
2973
|
+
property: 'border-color',
|
|
2974
|
+
duration: '200ms',
|
|
2975
|
+
timingFunction: 'ease-in-out'
|
|
2959
2976
|
},
|
|
2960
2977
|
states: inputStatesStyle
|
|
2961
2978
|
};
|
|
2962
2979
|
|
|
2963
|
-
const
|
|
2980
|
+
const inputField = {
|
|
2964
2981
|
labelContainerPaddingBottom: 5,
|
|
2965
2982
|
iconMarginLeft: 6
|
|
2966
2983
|
};
|
|
2967
2984
|
|
|
2968
|
-
const
|
|
2985
|
+
const radio = {
|
|
2969
2986
|
size: 18,
|
|
2970
2987
|
unchecked: {
|
|
2971
|
-
backgroundColor:
|
|
2972
|
-
borderWidth:
|
|
2988
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2989
|
+
borderWidth: 2,
|
|
2973
2990
|
borderColor: lateOceanColorPalette.black200
|
|
2974
2991
|
},
|
|
2975
2992
|
checked: {
|
|
2976
|
-
backgroundColor:
|
|
2993
|
+
backgroundColor: colors.primary,
|
|
2977
2994
|
innerSize: 5,
|
|
2978
|
-
innerBackgroundColor:
|
|
2995
|
+
innerBackgroundColor: colors.uiBackgroundLight
|
|
2979
2996
|
},
|
|
2980
2997
|
disabled: {
|
|
2981
|
-
backgroundColor:
|
|
2982
|
-
borderColor:
|
|
2998
|
+
backgroundColor: colors.disabled,
|
|
2999
|
+
borderColor: colors.separator
|
|
2983
3000
|
}
|
|
2984
3001
|
};
|
|
2985
3002
|
|
|
@@ -2989,12 +3006,12 @@ const textArea = {
|
|
|
2989
3006
|
|
|
2990
3007
|
const forms = {
|
|
2991
3008
|
input,
|
|
2992
|
-
radio
|
|
2993
|
-
inputField
|
|
3009
|
+
radio,
|
|
3010
|
+
inputField,
|
|
2994
3011
|
textArea
|
|
2995
3012
|
};
|
|
2996
3013
|
|
|
2997
|
-
const
|
|
3014
|
+
const fullScreenModal = {
|
|
2998
3015
|
header: {
|
|
2999
3016
|
paddingVertical: 12,
|
|
3000
3017
|
paddingHorizontal: 16,
|
|
@@ -3037,66 +3054,66 @@ const iconButton = {
|
|
|
3037
3054
|
}
|
|
3038
3055
|
};
|
|
3039
3056
|
|
|
3040
|
-
const
|
|
3057
|
+
const listItem = {
|
|
3041
3058
|
padding: '12px 16px',
|
|
3042
|
-
borderColor:
|
|
3043
|
-
borderWidth:
|
|
3044
|
-
innerMargin:
|
|
3059
|
+
borderColor: colors.separator,
|
|
3060
|
+
borderWidth: 1,
|
|
3061
|
+
innerMargin: 8
|
|
3045
3062
|
};
|
|
3046
3063
|
|
|
3047
|
-
const
|
|
3064
|
+
const shadows = {
|
|
3048
3065
|
medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
|
|
3049
3066
|
};
|
|
3050
3067
|
|
|
3051
|
-
const
|
|
3068
|
+
const skeleton = {
|
|
3052
3069
|
backgroundColor: lateOceanColorPalette.black100,
|
|
3053
3070
|
flareColor: lateOceanColorPalette.black200,
|
|
3054
3071
|
animationDuration: 1000
|
|
3055
3072
|
};
|
|
3056
3073
|
|
|
3057
|
-
const
|
|
3058
|
-
borderRadius:
|
|
3074
|
+
const tag = {
|
|
3075
|
+
borderRadius: 10,
|
|
3059
3076
|
padding: '2px 12px',
|
|
3060
3077
|
primary: {
|
|
3061
3078
|
fill: {
|
|
3062
3079
|
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
3063
|
-
borderWidth:
|
|
3064
|
-
borderColor:
|
|
3080
|
+
borderWidth: 0,
|
|
3081
|
+
borderColor: colors.transparent
|
|
3065
3082
|
},
|
|
3066
3083
|
outline: {
|
|
3067
|
-
backgroundColor:
|
|
3068
|
-
borderWidth:
|
|
3069
|
-
borderColor:
|
|
3084
|
+
backgroundColor: colors.transparent,
|
|
3085
|
+
borderWidth: 1,
|
|
3086
|
+
borderColor: colors.primary
|
|
3070
3087
|
}
|
|
3071
3088
|
},
|
|
3072
3089
|
default: {
|
|
3073
3090
|
fill: {
|
|
3074
3091
|
backgroundColor: lateOceanColorPalette.black50,
|
|
3075
|
-
borderWidth:
|
|
3076
|
-
borderColor:
|
|
3092
|
+
borderWidth: 0,
|
|
3093
|
+
borderColor: colors.transparent
|
|
3077
3094
|
},
|
|
3078
3095
|
outline: {
|
|
3079
|
-
backgroundColor:
|
|
3080
|
-
borderWidth:
|
|
3081
|
-
borderColor:
|
|
3096
|
+
backgroundColor: colors.transparent,
|
|
3097
|
+
borderWidth: 1,
|
|
3098
|
+
borderColor: colors.black
|
|
3082
3099
|
}
|
|
3083
3100
|
},
|
|
3084
3101
|
danger: {
|
|
3085
3102
|
fill: {
|
|
3086
3103
|
backgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
3087
|
-
borderWidth:
|
|
3088
|
-
borderColor:
|
|
3104
|
+
borderWidth: 0,
|
|
3105
|
+
borderColor: colors.transparent
|
|
3089
3106
|
},
|
|
3090
3107
|
outline: {
|
|
3091
|
-
backgroundColor:
|
|
3092
|
-
borderWidth:
|
|
3093
|
-
borderColor:
|
|
3108
|
+
backgroundColor: colors.transparent,
|
|
3109
|
+
borderWidth: 1,
|
|
3110
|
+
borderColor: colors.danger
|
|
3094
3111
|
}
|
|
3095
3112
|
}
|
|
3096
3113
|
};
|
|
3097
3114
|
|
|
3098
3115
|
const tooltip = {
|
|
3099
|
-
backgroundColor:
|
|
3116
|
+
backgroundColor: colors.black,
|
|
3100
3117
|
borderRadius: 10,
|
|
3101
3118
|
opacity: 0.95,
|
|
3102
3119
|
horizontalPadding: 16,
|
|
@@ -3129,23 +3146,23 @@ const breakpoints = {
|
|
|
3129
3146
|
|
|
3130
3147
|
const theme = {
|
|
3131
3148
|
spacing: 4,
|
|
3132
|
-
colors
|
|
3149
|
+
colors,
|
|
3133
3150
|
palettes: {
|
|
3134
3151
|
lateOcean: lateOceanColorPalette
|
|
3135
3152
|
},
|
|
3136
3153
|
avatar,
|
|
3137
3154
|
button,
|
|
3138
|
-
card
|
|
3155
|
+
card,
|
|
3139
3156
|
feedbackMessage,
|
|
3140
3157
|
forms,
|
|
3141
|
-
typography
|
|
3142
|
-
tag
|
|
3143
|
-
shadows
|
|
3144
|
-
fullScreenModal
|
|
3158
|
+
typography,
|
|
3159
|
+
tag,
|
|
3160
|
+
shadows,
|
|
3161
|
+
fullScreenModal,
|
|
3145
3162
|
iconButton,
|
|
3146
|
-
listItem
|
|
3163
|
+
listItem,
|
|
3147
3164
|
tooltip,
|
|
3148
|
-
skeleton
|
|
3165
|
+
skeleton,
|
|
3149
3166
|
breakpoints
|
|
3150
3167
|
};
|
|
3151
3168
|
|
|
@@ -3386,7 +3403,7 @@ function Tooltip({
|
|
|
3386
3403
|
};
|
|
3387
3404
|
_f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{opacity:withSpring(pressed.value?theme.kitt.tooltip.opacity:0)};}}";
|
|
3388
3405
|
_f.__workletHash = 15953928507970;
|
|
3389
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (
|
|
3406
|
+
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (59:41)";
|
|
3390
3407
|
_f.__optimalization = 2;
|
|
3391
3408
|
|
|
3392
3409
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -3479,13 +3496,8 @@ function TypographyEmoji({
|
|
|
3479
3496
|
const {
|
|
3480
3497
|
fontSize
|
|
3481
3498
|
} = typeConfig[typeConfigKey];
|
|
3482
|
-
|
|
3483
|
-
if ((process.env.NODE_ENV !== "production")) {
|
|
3484
|
-
if (!fontSize.endsWith('px')) throw new Error(`Unexpected font-size value: ${fontSize}`);
|
|
3485
|
-
}
|
|
3486
|
-
|
|
3487
3499
|
return /*#__PURE__*/jsxRuntime.jsx(StyledTypographyEmoji, {
|
|
3488
|
-
size:
|
|
3500
|
+
size: fontSize,
|
|
3489
3501
|
emoji: emoji
|
|
3490
3502
|
});
|
|
3491
3503
|
}
|
|
@@ -3645,9 +3657,7 @@ function MatchWindowSize({
|
|
|
3645
3657
|
}) {
|
|
3646
3658
|
const match = useMatchWindowSize(matchWindowSizeOptions);
|
|
3647
3659
|
if (!match) return null;
|
|
3648
|
-
return
|
|
3649
|
-
children: children
|
|
3650
|
-
});
|
|
3660
|
+
return children;
|
|
3651
3661
|
}
|
|
3652
3662
|
|
|
3653
3663
|
exports.useWindowSize = reactNative.useWindowDimensions;
|
|
@@ -3660,6 +3670,7 @@ exports.Flex = Flex;
|
|
|
3660
3670
|
exports.FullScreenModal = FullScreenModal;
|
|
3661
3671
|
exports.Icon = Icon;
|
|
3662
3672
|
exports.IconButton = IconButton;
|
|
3673
|
+
exports.InputEmail = InputEmail;
|
|
3663
3674
|
exports.InputFeedback = InputFeedback;
|
|
3664
3675
|
exports.InputField = InputField;
|
|
3665
3676
|
exports.InputIcon = InputIcon;
|