@ornikar/kitt-universal 4.0.0 → 4.3.0
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/BaseMessage/BaseMessage.d.ts +16 -0
- package/dist/definitions/BaseMessage/BaseMessage.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts +10 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/helper.d.ts +6 -0
- package/dist/definitions/BaseMessage/helper.d.ts.map +1 -0
- package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
- package/dist/definitions/Message/Message.d.ts +4 -12
- package/dist/definitions/Message/Message.d.ts.map +1 -1
- package/dist/definitions/Notification/Notification.d.ts +8 -8
- package/dist/definitions/Notification/Notification.d.ts.map +1 -1
- package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/definitions/Tooltip/TooltipView.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 +22 -101
- 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/{buttonLateOceanTheme.d.ts → button.d.ts} +8 -8
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -0
- 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} +4 -2
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/feedback.d.ts +11 -0
- 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 +443 -405
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +443 -405
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +443 -405
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +492 -426
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +427 -370
- 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 +458 -372
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +122 -108
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +122 -108
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +122 -108
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +122 -108
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +122 -108
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +122 -108
- 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 +4 -4
- package/dist/definitions/themes/late-ocean/avatarLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.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/feedbackMessageLateOceanTheme.d.ts +0 -9
- package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.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
|
@@ -57,7 +57,7 @@ function SpinningIcon({
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
const IconContainer
|
|
60
|
+
const IconContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
61
61
|
displayName: "Icon__IconContainer",
|
|
62
62
|
componentId: "kitt-universal__sc-usm0ol-0"
|
|
63
63
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], ({
|
|
@@ -79,7 +79,7 @@ function Icon({
|
|
|
79
79
|
const clonedIcon = /*#__PURE__*/react.cloneElement(icon, {
|
|
80
80
|
color
|
|
81
81
|
});
|
|
82
|
-
return /*#__PURE__*/jsxRuntime.jsx(IconContainer
|
|
82
|
+
return /*#__PURE__*/jsxRuntime.jsx(IconContainer, {
|
|
83
83
|
align: align,
|
|
84
84
|
size: size,
|
|
85
85
|
color: color,
|
|
@@ -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
|
|
@@ -612,7 +612,7 @@ const StyledButtonText = /*#__PURE__*/styled__default(Typography.Text).withConfi
|
|
|
612
612
|
if (reactNative.Platform.OS !== 'web' || $isDisabled || !isSubtle($type)) return undefined;
|
|
613
613
|
return 'color: inherit';
|
|
614
614
|
});
|
|
615
|
-
const StyledIconContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
615
|
+
const StyledIconContainer$1 = /*#__PURE__*/styled__default.View.withConfig({
|
|
616
616
|
displayName: "ButtonContent__StyledIconContainer",
|
|
617
617
|
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
618
618
|
})(["", ""], ({
|
|
@@ -635,7 +635,7 @@ function ButtonIcon({
|
|
|
635
635
|
iconPosition,
|
|
636
636
|
testID
|
|
637
637
|
}) {
|
|
638
|
-
return /*#__PURE__*/jsxRuntime.jsx(StyledIconContainer, {
|
|
638
|
+
return /*#__PURE__*/jsxRuntime.jsx(StyledIconContainer$1, {
|
|
639
639
|
$iconPosition: iconPosition,
|
|
640
640
|
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
641
641
|
icon: icon,
|
|
@@ -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);
|
|
@@ -801,15 +801,15 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
801
801
|
});
|
|
802
802
|
});
|
|
803
803
|
|
|
804
|
-
const Container$
|
|
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
|
|
@@ -821,7 +821,7 @@ function Card({
|
|
|
821
821
|
children,
|
|
822
822
|
type
|
|
823
823
|
}) {
|
|
824
|
-
return /*#__PURE__*/jsxRuntime.jsx(Container$
|
|
824
|
+
return /*#__PURE__*/jsxRuntime.jsx(Container$5, {
|
|
825
825
|
type: type,
|
|
826
826
|
children: children
|
|
827
827
|
});
|
|
@@ -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, ({
|
|
@@ -1185,7 +1196,7 @@ const SelectedInnerRadio = /*#__PURE__*/styled__default.View.withConfig({
|
|
|
1185
1196
|
}) => theme.kitt.forms.radio.checked.innerSize, ({
|
|
1186
1197
|
theme
|
|
1187
1198
|
}) => theme.kitt.forms.radio.checked.innerSize / 2);
|
|
1188
|
-
const Container$
|
|
1199
|
+
const Container$4 = /*#__PURE__*/styled__default.Pressable.withConfig({
|
|
1189
1200
|
displayName: "Radio__Container",
|
|
1190
1201
|
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
1191
1202
|
})(["flex-direction:row;align-items:center;"]);
|
|
@@ -1203,7 +1214,7 @@ function Radio({
|
|
|
1203
1214
|
disabled = false,
|
|
1204
1215
|
children
|
|
1205
1216
|
}) {
|
|
1206
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Container$
|
|
1217
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Container$4, {
|
|
1207
1218
|
nativeID: id,
|
|
1208
1219
|
disabled: disabled,
|
|
1209
1220
|
accessibilityRole: "radio",
|
|
@@ -1370,7 +1381,7 @@ function FullScreenModalHeader({
|
|
|
1370
1381
|
});
|
|
1371
1382
|
}
|
|
1372
1383
|
|
|
1373
|
-
const Container$
|
|
1384
|
+
const Container$3 = /*#__PURE__*/styled__default.View.withConfig({
|
|
1374
1385
|
displayName: "FullScreenModal__Container",
|
|
1375
1386
|
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
1376
1387
|
})(["flex:1;background-color:", ";"], ({
|
|
@@ -1379,7 +1390,7 @@ const Container$4 = /*#__PURE__*/styled__default.View.withConfig({
|
|
|
1379
1390
|
function FullScreenModal({
|
|
1380
1391
|
children
|
|
1381
1392
|
}) {
|
|
1382
|
-
return /*#__PURE__*/jsxRuntime.jsx(Container$
|
|
1393
|
+
return /*#__PURE__*/jsxRuntime.jsx(Container$3, {
|
|
1383
1394
|
children: children
|
|
1384
1395
|
});
|
|
1385
1396
|
}
|
|
@@ -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';
|
|
@@ -1824,47 +1835,32 @@ function LargeLoader({
|
|
|
1824
1835
|
});
|
|
1825
1836
|
}
|
|
1826
1837
|
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
})
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
})
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
}) => theme.kitt.spacing * 4, ({
|
|
1854
|
-
theme
|
|
1855
|
-
}) => theme.kitt.spacing);
|
|
1856
|
-
const IconContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
1857
|
-
displayName: "Message__IconContainer",
|
|
1858
|
-
componentId: "kitt-universal__sc-c6400e-2"
|
|
1859
|
-
})(["margin-right:", "px;"], ({
|
|
1860
|
-
theme
|
|
1861
|
-
}) => theme.kitt.spacing * 4);
|
|
1862
|
-
const Content = /*#__PURE__*/styled__default.Text.withConfig({
|
|
1863
|
-
displayName: "Message__Content",
|
|
1864
|
-
componentId: "kitt-universal__sc-c6400e-3"
|
|
1865
|
-
})(["text-align:", ";flex:1;"], ({
|
|
1866
|
-
centeredText
|
|
1867
|
-
}) => centeredText ? 'center' : 'left');
|
|
1838
|
+
function IconContent({
|
|
1839
|
+
type,
|
|
1840
|
+
color
|
|
1841
|
+
}) {
|
|
1842
|
+
switch (type) {
|
|
1843
|
+
case 'warning':
|
|
1844
|
+
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.AlertCircleIcon, {
|
|
1845
|
+
color: color
|
|
1846
|
+
});
|
|
1847
|
+
|
|
1848
|
+
case 'success':
|
|
1849
|
+
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.CheckIcon, {
|
|
1850
|
+
color: color
|
|
1851
|
+
});
|
|
1852
|
+
|
|
1853
|
+
case 'danger':
|
|
1854
|
+
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.AlertTriangleIcon, {
|
|
1855
|
+
color: color
|
|
1856
|
+
});
|
|
1857
|
+
|
|
1858
|
+
default:
|
|
1859
|
+
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.InfoIcon, {
|
|
1860
|
+
color: color
|
|
1861
|
+
});
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1868
1864
|
|
|
1869
1865
|
const getColorByType = type => {
|
|
1870
1866
|
switch (type) {
|
|
@@ -1879,61 +1875,125 @@ const getColorByType = type => {
|
|
|
1879
1875
|
return 'black';
|
|
1880
1876
|
}
|
|
1881
1877
|
};
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
switch (type) {
|
|
1885
|
-
case 'warning':
|
|
1886
|
-
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.AlertCircleIcon, {});
|
|
1887
|
-
|
|
1878
|
+
const getIconButtonColor = messageType => {
|
|
1879
|
+
switch (messageType) {
|
|
1888
1880
|
case 'success':
|
|
1889
|
-
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.CheckIcon, {});
|
|
1890
|
-
|
|
1891
1881
|
case 'danger':
|
|
1892
|
-
return
|
|
1882
|
+
return 'white';
|
|
1893
1883
|
|
|
1884
|
+
case 'warning':
|
|
1894
1885
|
default:
|
|
1895
|
-
return
|
|
1886
|
+
return 'black';
|
|
1896
1887
|
}
|
|
1897
|
-
}
|
|
1888
|
+
};
|
|
1898
1889
|
|
|
1899
|
-
|
|
1890
|
+
const StyledMessageContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
1891
|
+
displayName: "BaseMessage__StyledMessageContainer",
|
|
1892
|
+
componentId: "kitt-universal__sc-eepeiz-0"
|
|
1893
|
+
})(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], ({
|
|
1894
|
+
$insets
|
|
1895
|
+
}) => $insets?.top ?? 0, ({
|
|
1896
|
+
theme,
|
|
1897
|
+
$hasNoRadius
|
|
1898
|
+
}) => $hasNoRadius ? 0 : theme.kitt.spacing * 5, ({
|
|
1899
|
+
theme,
|
|
1900
|
+
$type
|
|
1901
|
+
}) => theme.kitt.feedbackMessage[$type].backgroundColor);
|
|
1902
|
+
const StyledDismissWrapper = /*#__PURE__*/styled__default.View.withConfig({
|
|
1903
|
+
displayName: "BaseMessage__StyledDismissWrapper",
|
|
1904
|
+
componentId: "kitt-universal__sc-eepeiz-1"
|
|
1905
|
+
})(["align-items:center;align-items:flex-start;margin:", ";"], ({
|
|
1906
|
+
theme
|
|
1907
|
+
}) => {
|
|
1908
|
+
const {
|
|
1909
|
+
spacing
|
|
1910
|
+
} = theme.kitt;
|
|
1911
|
+
return `${spacing * 2.5}px ${spacing * 2}px 0 ${spacing * 5}px`;
|
|
1912
|
+
});
|
|
1913
|
+
const StyledIconContainer = /*#__PURE__*/styled__default.View.withConfig({
|
|
1914
|
+
displayName: "BaseMessage__StyledIconContainer",
|
|
1915
|
+
componentId: "kitt-universal__sc-eepeiz-2"
|
|
1916
|
+
})(["margin:", ";"], ({
|
|
1917
|
+
theme
|
|
1918
|
+
}) => {
|
|
1919
|
+
const {
|
|
1920
|
+
spacing
|
|
1921
|
+
} = theme.kitt;
|
|
1922
|
+
return `${spacing}px ${spacing * 5}px 0 0`;
|
|
1923
|
+
});
|
|
1924
|
+
const StyledTextContent = /*#__PURE__*/styled__default(Typography.Text).withConfig({
|
|
1925
|
+
displayName: "BaseMessage__StyledTextContent",
|
|
1926
|
+
componentId: "kitt-universal__sc-eepeiz-3"
|
|
1927
|
+
})(["flex:1;text-align:", ";"], ({
|
|
1928
|
+
$isCenteredText
|
|
1929
|
+
}) => $isCenteredText ? 'center' : 'left');
|
|
1930
|
+
const StyledMessageContent = /*#__PURE__*/styled__default.View.withConfig({
|
|
1931
|
+
displayName: "BaseMessage__StyledMessageContent",
|
|
1932
|
+
componentId: "kitt-universal__sc-eepeiz-4"
|
|
1933
|
+
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], ({
|
|
1934
|
+
theme
|
|
1935
|
+
}) => {
|
|
1936
|
+
const {
|
|
1937
|
+
spacing
|
|
1938
|
+
} = theme.kitt;
|
|
1939
|
+
return `${spacing * 4}px ${spacing * 5}px`;
|
|
1940
|
+
});
|
|
1941
|
+
function BaseMessage({
|
|
1900
1942
|
type = 'info',
|
|
1901
1943
|
children,
|
|
1902
|
-
|
|
1903
|
-
centeredText
|
|
1904
|
-
|
|
1905
|
-
|
|
1944
|
+
hasNoRadius,
|
|
1945
|
+
centeredText,
|
|
1946
|
+
insets,
|
|
1947
|
+
onDismiss
|
|
1906
1948
|
}) {
|
|
1907
1949
|
const color = getColorByType(type);
|
|
1908
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
1909
|
-
type: type,
|
|
1910
|
-
|
|
1911
|
-
insets: insets,
|
|
1912
|
-
children: [
|
|
1913
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1950
|
+
return /*#__PURE__*/jsxRuntime.jsxs(StyledMessageContainer, {
|
|
1951
|
+
$type: type,
|
|
1952
|
+
$hasNoRadius: hasNoRadius,
|
|
1953
|
+
$insets: insets,
|
|
1954
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(StyledMessageContent, {
|
|
1955
|
+
children: [centeredText ? null : /*#__PURE__*/jsxRuntime.jsx(StyledIconContainer, {
|
|
1956
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
1957
|
+
color: color,
|
|
1958
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(IconContent, {
|
|
1959
|
+
type: type,
|
|
1960
|
+
color: color
|
|
1961
|
+
})
|
|
1962
|
+
})
|
|
1963
|
+
}), /*#__PURE__*/jsxRuntime.jsx(StyledTextContent, {
|
|
1964
|
+
$isCenteredText: centeredText,
|
|
1965
|
+
base: "body",
|
|
1923
1966
|
color: color,
|
|
1924
1967
|
children: children
|
|
1925
|
-
})
|
|
1926
|
-
}), onDismiss ? /*#__PURE__*/jsxRuntime.jsx(
|
|
1927
|
-
|
|
1928
|
-
|
|
1968
|
+
})]
|
|
1969
|
+
}), onDismiss ? /*#__PURE__*/jsxRuntime.jsx(StyledDismissWrapper, {
|
|
1970
|
+
children: /*#__PURE__*/jsxRuntime.jsx(IconButton, {
|
|
1971
|
+
color: getIconButtonColor(type),
|
|
1929
1972
|
icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.XIcon, {}),
|
|
1930
|
-
|
|
1931
|
-
color: color
|
|
1973
|
+
onPress: onDismiss
|
|
1932
1974
|
})
|
|
1933
1975
|
}) : null]
|
|
1934
1976
|
});
|
|
1935
1977
|
}
|
|
1936
1978
|
|
|
1979
|
+
function Message({
|
|
1980
|
+
type = 'info',
|
|
1981
|
+
children,
|
|
1982
|
+
hasNoRadius,
|
|
1983
|
+
centeredText,
|
|
1984
|
+
insets,
|
|
1985
|
+
onDismiss
|
|
1986
|
+
}) {
|
|
1987
|
+
return /*#__PURE__*/jsxRuntime.jsx(BaseMessage, {
|
|
1988
|
+
insets: insets,
|
|
1989
|
+
hasNoRadius: hasNoRadius,
|
|
1990
|
+
type: type,
|
|
1991
|
+
centeredText: centeredText,
|
|
1992
|
+
onDismiss: onDismiss,
|
|
1993
|
+
children: children
|
|
1994
|
+
});
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1937
1997
|
// Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
|
|
1938
1998
|
const OverlayPressable = /*#__PURE__*/styled__default(reactNative.Pressable).withConfig({
|
|
1939
1999
|
displayName: "Overlay__OverlayPressable",
|
|
@@ -2050,11 +2110,11 @@ const ModalView = /*#__PURE__*/styled__default.View.withConfig({
|
|
|
2050
2110
|
const ContentView = /*#__PURE__*/styled__default.View.withConfig({
|
|
2051
2111
|
displayName: "Modal__ContentView",
|
|
2052
2112
|
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
2053
|
-
})(["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:", ";"], ({
|
|
2054
2114
|
theme
|
|
2055
2115
|
}) => theme.kitt.card.borderRadius, ({
|
|
2056
2116
|
theme
|
|
2057
|
-
}) => theme.kitt.
|
|
2117
|
+
}) => theme.kitt.colors.uiBackgroundLight);
|
|
2058
2118
|
function Modal({
|
|
2059
2119
|
visible,
|
|
2060
2120
|
children,
|
|
@@ -2089,19 +2149,22 @@ function Notification({
|
|
|
2089
2149
|
type,
|
|
2090
2150
|
children,
|
|
2091
2151
|
centeredText,
|
|
2092
|
-
|
|
2152
|
+
insets,
|
|
2153
|
+
onDelete,
|
|
2154
|
+
onDismiss
|
|
2093
2155
|
}) {
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2156
|
+
if ((process.env.NODE_ENV !== "production")) {
|
|
2157
|
+
if (onDelete) {
|
|
2158
|
+
throw new Error('onDelete is deprecated us onDismiss instead');
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
return /*#__PURE__*/jsxRuntime.jsx(BaseMessage, {
|
|
2163
|
+
hasNoRadius: true,
|
|
2099
2164
|
type: type,
|
|
2100
2165
|
centeredText: centeredText,
|
|
2101
|
-
insets:
|
|
2102
|
-
|
|
2103
|
-
},
|
|
2104
|
-
onDismiss: onDelete,
|
|
2166
|
+
insets: insets,
|
|
2167
|
+
onDismiss: onDismiss,
|
|
2105
2168
|
children: children
|
|
2106
2169
|
});
|
|
2107
2170
|
}
|
|
@@ -2169,12 +2232,16 @@ function SkeletonContent({
|
|
|
2169
2232
|
});
|
|
2170
2233
|
}
|
|
2171
2234
|
|
|
2235
|
+
const SkeletonContainer = /*#__PURE__*/styled__default(reactNative.View).withConfig({
|
|
2236
|
+
displayName: "Skeleton__SkeletonContainer",
|
|
2237
|
+
componentId: "kitt-universal__sc-1w5cm3i-0"
|
|
2238
|
+
})(["overflow:hidden;"]);
|
|
2172
2239
|
function Skeleton({
|
|
2173
2240
|
isLoading,
|
|
2174
2241
|
style
|
|
2175
2242
|
}) {
|
|
2176
2243
|
const [width, setWidth] = react.useState(0);
|
|
2177
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
2244
|
+
return /*#__PURE__*/jsxRuntime.jsx(SkeletonContainer, {
|
|
2178
2245
|
style: style,
|
|
2179
2246
|
onLayout: ({
|
|
2180
2247
|
nativeEvent
|
|
@@ -2187,16 +2254,16 @@ function Skeleton({
|
|
|
2187
2254
|
}
|
|
2188
2255
|
const Bar = /*#__PURE__*/styled__default(Skeleton).withConfig({
|
|
2189
2256
|
displayName: "Skeleton__Bar",
|
|
2190
|
-
componentId: "kitt-universal__sc-1w5cm3i-
|
|
2191
|
-
})(["width:100%;height:", "px;border-radius:", "px;
|
|
2257
|
+
componentId: "kitt-universal__sc-1w5cm3i-1"
|
|
2258
|
+
})(["width:100%;height:", "px;border-radius:", "px;"], ({
|
|
2192
2259
|
theme
|
|
2193
2260
|
}) => theme.kitt.spacing * 2, ({
|
|
2194
2261
|
theme
|
|
2195
2262
|
}) => theme.kitt.spacing * 2);
|
|
2196
2263
|
const Circle = /*#__PURE__*/styled__default(Skeleton).withConfig({
|
|
2197
2264
|
displayName: "Skeleton__Circle",
|
|
2198
|
-
componentId: "kitt-universal__sc-1w5cm3i-
|
|
2199
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2265
|
+
componentId: "kitt-universal__sc-1w5cm3i-2"
|
|
2266
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], ({
|
|
2200
2267
|
theme
|
|
2201
2268
|
}) => theme.kitt.spacing * 12, ({
|
|
2202
2269
|
theme
|
|
@@ -2205,8 +2272,8 @@ const Circle = /*#__PURE__*/styled__default(Skeleton).withConfig({
|
|
|
2205
2272
|
}) => theme.kitt.spacing * 6);
|
|
2206
2273
|
const Square = /*#__PURE__*/styled__default(Skeleton).withConfig({
|
|
2207
2274
|
displayName: "Skeleton__Square",
|
|
2208
|
-
componentId: "kitt-universal__sc-1w5cm3i-
|
|
2209
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2275
|
+
componentId: "kitt-universal__sc-1w5cm3i-3"
|
|
2276
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], ({
|
|
2210
2277
|
theme
|
|
2211
2278
|
}) => theme.kitt.spacing * 12, ({
|
|
2212
2279
|
theme
|
|
@@ -2563,7 +2630,7 @@ const StoryGrid = {
|
|
|
2563
2630
|
const Container$1 = /*#__PURE__*/styled__default.View.withConfig({
|
|
2564
2631
|
displayName: "Tag__Container",
|
|
2565
2632
|
componentId: "kitt-universal__sc-19jmowi-0"
|
|
2566
|
-
})(["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;"], ({
|
|
2567
2634
|
theme,
|
|
2568
2635
|
type,
|
|
2569
2636
|
variant
|
|
@@ -2627,6 +2694,7 @@ const lateOceanColorPalette = {
|
|
|
2627
2694
|
warmEmbrace: '#F4D3CE',
|
|
2628
2695
|
warmEmbraceLight1: '#FFEDE6',
|
|
2629
2696
|
black1000: '#000000',
|
|
2697
|
+
black800: '#2C293D',
|
|
2630
2698
|
black555: '#737373',
|
|
2631
2699
|
black200: '#CCCCCC',
|
|
2632
2700
|
black100: '#E5E5E5',
|
|
@@ -2642,7 +2710,7 @@ const lateOceanColorPalette = {
|
|
|
2642
2710
|
moonPurpleLight1: '#EDEBFC'
|
|
2643
2711
|
};
|
|
2644
2712
|
|
|
2645
|
-
const
|
|
2713
|
+
const colors = {
|
|
2646
2714
|
primary: lateOceanColorPalette.lateOcean,
|
|
2647
2715
|
primaryLight: lateOceanColorPalette.lateOceanLight1,
|
|
2648
2716
|
accent: lateOceanColorPalette.warmEmbrace,
|
|
@@ -2650,6 +2718,8 @@ const colorsLateOceanTheme = {
|
|
|
2650
2718
|
success: lateOceanColorPalette.viride,
|
|
2651
2719
|
correct: lateOceanColorPalette.viride,
|
|
2652
2720
|
danger: lateOceanColorPalette.englishVermillon,
|
|
2721
|
+
info: lateOceanColorPalette.aero,
|
|
2722
|
+
warning: lateOceanColorPalette.goldCrayola,
|
|
2653
2723
|
separator: lateOceanColorPalette.black100,
|
|
2654
2724
|
hover: lateOceanColorPalette.black100,
|
|
2655
2725
|
black: lateOceanColorPalette.black1000,
|
|
@@ -2665,24 +2735,24 @@ const colorsLateOceanTheme = {
|
|
|
2665
2735
|
};
|
|
2666
2736
|
|
|
2667
2737
|
const avatar = {
|
|
2668
|
-
borderRadius:
|
|
2738
|
+
borderRadius: 10,
|
|
2669
2739
|
default: {
|
|
2670
|
-
backgroundColor:
|
|
2740
|
+
backgroundColor: colors.primary
|
|
2671
2741
|
},
|
|
2672
2742
|
light: {
|
|
2673
2743
|
backgroundColor: lateOceanColorPalette.black100
|
|
2674
2744
|
}
|
|
2675
2745
|
};
|
|
2676
2746
|
|
|
2677
|
-
const
|
|
2678
|
-
borderRadius:
|
|
2747
|
+
const button = {
|
|
2748
|
+
borderRadius: 30,
|
|
2679
2749
|
borderWidth: {
|
|
2680
|
-
disabled:
|
|
2681
|
-
focus:
|
|
2750
|
+
disabled: 2,
|
|
2751
|
+
focus: 3
|
|
2682
2752
|
},
|
|
2683
|
-
minHeight:
|
|
2684
|
-
minWidth:
|
|
2685
|
-
maxWidth:
|
|
2753
|
+
minHeight: 40,
|
|
2754
|
+
minWidth: 40,
|
|
2755
|
+
maxWidth: 335,
|
|
2686
2756
|
scale: {
|
|
2687
2757
|
base: {
|
|
2688
2758
|
default: 1,
|
|
@@ -2709,9 +2779,9 @@ const buttonLateOceanTheme = {
|
|
|
2709
2779
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
2710
2780
|
},
|
|
2711
2781
|
primary: {
|
|
2712
|
-
backgroundColor:
|
|
2713
|
-
pressedBackgroundColor:
|
|
2714
|
-
hoverBackgroundColor:
|
|
2782
|
+
backgroundColor: colors.primary,
|
|
2783
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
2784
|
+
hoverBackgroundColor: colors.primaryLight,
|
|
2715
2785
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
2716
2786
|
},
|
|
2717
2787
|
white: {
|
|
@@ -2721,73 +2791,79 @@ const buttonLateOceanTheme = {
|
|
|
2721
2791
|
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
2722
2792
|
},
|
|
2723
2793
|
subtle: {
|
|
2724
|
-
backgroundColor:
|
|
2725
|
-
pressedBackgroundColor:
|
|
2726
|
-
hoverBackgroundColor:
|
|
2794
|
+
backgroundColor: colors.transparent,
|
|
2795
|
+
pressedBackgroundColor: colors.transparent,
|
|
2796
|
+
hoverBackgroundColor: colors.transparent,
|
|
2727
2797
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
2728
|
-
color:
|
|
2798
|
+
color: colors.primary,
|
|
2729
2799
|
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
2730
2800
|
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
2731
2801
|
},
|
|
2732
2802
|
'subtle-dark': {
|
|
2733
|
-
backgroundColor:
|
|
2734
|
-
pressedBackgroundColor:
|
|
2735
|
-
hoverBackgroundColor:
|
|
2803
|
+
backgroundColor: colors.transparent,
|
|
2804
|
+
pressedBackgroundColor: colors.transparent,
|
|
2805
|
+
hoverBackgroundColor: colors.transparent,
|
|
2736
2806
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
2737
|
-
color:
|
|
2807
|
+
color: colors.black,
|
|
2738
2808
|
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
2739
2809
|
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
2740
2810
|
},
|
|
2741
2811
|
disabled: {
|
|
2742
|
-
backgroundColor:
|
|
2743
|
-
pressedBackgroundColor:
|
|
2744
|
-
hoverBackgroundColor:
|
|
2812
|
+
backgroundColor: colors.disabled,
|
|
2813
|
+
pressedBackgroundColor: colors.disabled,
|
|
2814
|
+
hoverBackgroundColor: colors.disabled,
|
|
2745
2815
|
focusBorderColor: lateOceanColorPalette.black100,
|
|
2746
2816
|
borderColor: lateOceanColorPalette.black100
|
|
2747
2817
|
}
|
|
2748
2818
|
};
|
|
2749
2819
|
|
|
2750
|
-
const
|
|
2751
|
-
borderRadius:
|
|
2752
|
-
borderWidth:
|
|
2753
|
-
padding: '16px',
|
|
2820
|
+
const card = {
|
|
2821
|
+
borderRadius: 20,
|
|
2822
|
+
borderWidth: 2,
|
|
2754
2823
|
primary: {
|
|
2755
|
-
backgroundColor:
|
|
2756
|
-
borderColor:
|
|
2824
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2825
|
+
borderColor: colors.primary
|
|
2757
2826
|
},
|
|
2758
2827
|
secondary: {
|
|
2759
|
-
backgroundColor:
|
|
2760
|
-
borderColor:
|
|
2828
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2829
|
+
borderColor: colors.separator
|
|
2761
2830
|
},
|
|
2762
2831
|
subtle: {
|
|
2763
2832
|
backgroundColor: lateOceanColorPalette.black50,
|
|
2764
|
-
borderColor:
|
|
2833
|
+
borderColor: colors.separator
|
|
2765
2834
|
}
|
|
2766
2835
|
};
|
|
2767
2836
|
|
|
2768
|
-
const
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2837
|
+
const feedbackMessage = {
|
|
2838
|
+
danger: {
|
|
2839
|
+
backgroundColor: colors.danger
|
|
2840
|
+
},
|
|
2841
|
+
success: {
|
|
2842
|
+
backgroundColor: colors.success
|
|
2843
|
+
},
|
|
2844
|
+
info: {
|
|
2845
|
+
backgroundColor: colors.info
|
|
2846
|
+
},
|
|
2847
|
+
warning: {
|
|
2848
|
+
backgroundColor: colors.warning
|
|
2774
2849
|
}
|
|
2775
2850
|
};
|
|
2776
2851
|
|
|
2777
2852
|
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
2778
2853
|
const createTypographyTypeConfig = (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) => ({
|
|
2779
2854
|
baseAndSmall: {
|
|
2780
|
-
fontSize:
|
|
2781
|
-
lineHeight:
|
|
2855
|
+
fontSize: baseAndSmallFontSize,
|
|
2856
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier)
|
|
2782
2857
|
},
|
|
2783
2858
|
mediumAndWide: {
|
|
2784
|
-
fontSize:
|
|
2785
|
-
lineHeight:
|
|
2859
|
+
fontSize: mediumAndWideFontSize,
|
|
2860
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier)
|
|
2786
2861
|
}
|
|
2787
2862
|
});
|
|
2788
|
-
const
|
|
2863
|
+
const typography = {
|
|
2789
2864
|
colors: {
|
|
2790
2865
|
black: lateOceanColorPalette.black1000,
|
|
2866
|
+
'black-anthracite': lateOceanColorPalette.black800,
|
|
2791
2867
|
'black-light': lateOceanColorPalette.black555,
|
|
2792
2868
|
white: lateOceanColorPalette.white,
|
|
2793
2869
|
'white-light': lateOceanColorPalette.white,
|
|
@@ -2847,17 +2923,17 @@ const typographyLateOceanTheme = {
|
|
|
2847
2923
|
|
|
2848
2924
|
const inputStatesStyle = {
|
|
2849
2925
|
default: {
|
|
2850
|
-
backgroundColor:
|
|
2851
|
-
borderColor:
|
|
2926
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2927
|
+
borderColor: colors.separator,
|
|
2852
2928
|
color: 'black'
|
|
2853
2929
|
},
|
|
2854
2930
|
pending: {
|
|
2855
|
-
backgroundColor:
|
|
2856
|
-
borderColor:
|
|
2931
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2932
|
+
borderColor: colors.separator,
|
|
2857
2933
|
color: 'black'
|
|
2858
2934
|
},
|
|
2859
2935
|
valid: {
|
|
2860
|
-
backgroundColor:
|
|
2936
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2861
2937
|
borderColor: lateOceanColorPalette.black100,
|
|
2862
2938
|
color: 'black'
|
|
2863
2939
|
},
|
|
@@ -2866,56 +2942,61 @@ const inputStatesStyle = {
|
|
|
2866
2942
|
color: 'black'
|
|
2867
2943
|
},
|
|
2868
2944
|
focus: {
|
|
2869
|
-
borderColor:
|
|
2945
|
+
borderColor: colors.primary,
|
|
2870
2946
|
color: 'black'
|
|
2871
2947
|
},
|
|
2872
2948
|
disabled: {
|
|
2873
|
-
backgroundColor:
|
|
2874
|
-
borderColor:
|
|
2949
|
+
backgroundColor: colors.disabled,
|
|
2950
|
+
borderColor: colors.separator,
|
|
2875
2951
|
color: 'black-light'
|
|
2876
2952
|
},
|
|
2877
2953
|
invalid: {
|
|
2878
|
-
borderColor:
|
|
2954
|
+
borderColor: colors.separator,
|
|
2879
2955
|
color: 'black'
|
|
2880
2956
|
}
|
|
2881
2957
|
};
|
|
2882
2958
|
const input = {
|
|
2883
2959
|
color: {
|
|
2884
|
-
selection:
|
|
2885
|
-
placeholder:
|
|
2960
|
+
selection: colors.primary,
|
|
2961
|
+
placeholder: typography.colors['black-light']
|
|
2886
2962
|
},
|
|
2887
|
-
borderWidth:
|
|
2888
|
-
borderRadius:
|
|
2963
|
+
borderWidth: 2,
|
|
2964
|
+
borderRadius: 10,
|
|
2889
2965
|
icon: {
|
|
2890
2966
|
size: 20
|
|
2891
2967
|
},
|
|
2892
2968
|
padding: {
|
|
2893
|
-
default: '
|
|
2894
|
-
iOSSingleLine: '
|
|
2969
|
+
default: '5px 16px',
|
|
2970
|
+
iOSSingleLine: '9px 16px'
|
|
2971
|
+
},
|
|
2972
|
+
transition: {
|
|
2973
|
+
property: 'border-color',
|
|
2974
|
+
duration: '200ms',
|
|
2975
|
+
timingFunction: 'ease-in-out'
|
|
2895
2976
|
},
|
|
2896
2977
|
states: inputStatesStyle
|
|
2897
2978
|
};
|
|
2898
2979
|
|
|
2899
|
-
const
|
|
2980
|
+
const inputField = {
|
|
2900
2981
|
labelContainerPaddingBottom: 5,
|
|
2901
2982
|
iconMarginLeft: 6
|
|
2902
2983
|
};
|
|
2903
2984
|
|
|
2904
|
-
const
|
|
2985
|
+
const radio = {
|
|
2905
2986
|
size: 18,
|
|
2906
2987
|
unchecked: {
|
|
2907
|
-
backgroundColor:
|
|
2908
|
-
borderWidth:
|
|
2988
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2989
|
+
borderWidth: 2,
|
|
2909
2990
|
borderColor: lateOceanColorPalette.black200
|
|
2910
2991
|
},
|
|
2911
2992
|
checked: {
|
|
2912
|
-
backgroundColor:
|
|
2993
|
+
backgroundColor: colors.primary,
|
|
2913
2994
|
innerSize: 5,
|
|
2914
|
-
innerBackgroundColor:
|
|
2995
|
+
innerBackgroundColor: colors.uiBackgroundLight
|
|
2915
2996
|
},
|
|
2916
2997
|
disabled: {
|
|
2917
|
-
backgroundColor:
|
|
2918
|
-
borderColor:
|
|
2998
|
+
backgroundColor: colors.disabled,
|
|
2999
|
+
borderColor: colors.separator
|
|
2919
3000
|
}
|
|
2920
3001
|
};
|
|
2921
3002
|
|
|
@@ -2925,12 +3006,12 @@ const textArea = {
|
|
|
2925
3006
|
|
|
2926
3007
|
const forms = {
|
|
2927
3008
|
input,
|
|
2928
|
-
radio
|
|
2929
|
-
inputField
|
|
3009
|
+
radio,
|
|
3010
|
+
inputField,
|
|
2930
3011
|
textArea
|
|
2931
3012
|
};
|
|
2932
3013
|
|
|
2933
|
-
const
|
|
3014
|
+
const fullScreenModal = {
|
|
2934
3015
|
header: {
|
|
2935
3016
|
paddingVertical: 12,
|
|
2936
3017
|
paddingHorizontal: 16,
|
|
@@ -2962,77 +3043,77 @@ const iconButton = {
|
|
|
2962
3043
|
},
|
|
2963
3044
|
disabled: {
|
|
2964
3045
|
scale: 1,
|
|
2965
|
-
backgroundColor:
|
|
2966
|
-
borderColor:
|
|
3046
|
+
backgroundColor: button.disabled.backgroundColor,
|
|
3047
|
+
borderColor: button.disabled.borderColor
|
|
2967
3048
|
},
|
|
2968
3049
|
default: {
|
|
2969
|
-
pressedBackgroundColor:
|
|
3050
|
+
pressedBackgroundColor: button.default.pressedBackgroundColor
|
|
2970
3051
|
},
|
|
2971
3052
|
white: {
|
|
2972
|
-
pressedBackgroundColor:
|
|
3053
|
+
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
2973
3054
|
}
|
|
2974
3055
|
};
|
|
2975
3056
|
|
|
2976
|
-
const
|
|
3057
|
+
const listItem = {
|
|
2977
3058
|
padding: '12px 16px',
|
|
2978
|
-
borderColor:
|
|
2979
|
-
borderWidth:
|
|
2980
|
-
innerMargin:
|
|
3059
|
+
borderColor: colors.separator,
|
|
3060
|
+
borderWidth: 1,
|
|
3061
|
+
innerMargin: 8
|
|
2981
3062
|
};
|
|
2982
3063
|
|
|
2983
|
-
const
|
|
3064
|
+
const shadows = {
|
|
2984
3065
|
medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
|
|
2985
3066
|
};
|
|
2986
3067
|
|
|
2987
|
-
const
|
|
3068
|
+
const skeleton = {
|
|
2988
3069
|
backgroundColor: lateOceanColorPalette.black100,
|
|
2989
3070
|
flareColor: lateOceanColorPalette.black200,
|
|
2990
3071
|
animationDuration: 1000
|
|
2991
3072
|
};
|
|
2992
3073
|
|
|
2993
|
-
const
|
|
2994
|
-
borderRadius:
|
|
3074
|
+
const tag = {
|
|
3075
|
+
borderRadius: 10,
|
|
2995
3076
|
padding: '2px 12px',
|
|
2996
3077
|
primary: {
|
|
2997
3078
|
fill: {
|
|
2998
3079
|
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
2999
|
-
borderWidth:
|
|
3000
|
-
borderColor:
|
|
3080
|
+
borderWidth: 0,
|
|
3081
|
+
borderColor: colors.transparent
|
|
3001
3082
|
},
|
|
3002
3083
|
outline: {
|
|
3003
|
-
backgroundColor:
|
|
3004
|
-
borderWidth:
|
|
3005
|
-
borderColor:
|
|
3084
|
+
backgroundColor: colors.transparent,
|
|
3085
|
+
borderWidth: 1,
|
|
3086
|
+
borderColor: colors.primary
|
|
3006
3087
|
}
|
|
3007
3088
|
},
|
|
3008
3089
|
default: {
|
|
3009
3090
|
fill: {
|
|
3010
3091
|
backgroundColor: lateOceanColorPalette.black50,
|
|
3011
|
-
borderWidth:
|
|
3012
|
-
borderColor:
|
|
3092
|
+
borderWidth: 0,
|
|
3093
|
+
borderColor: colors.transparent
|
|
3013
3094
|
},
|
|
3014
3095
|
outline: {
|
|
3015
|
-
backgroundColor:
|
|
3016
|
-
borderWidth:
|
|
3017
|
-
borderColor:
|
|
3096
|
+
backgroundColor: colors.transparent,
|
|
3097
|
+
borderWidth: 1,
|
|
3098
|
+
borderColor: colors.black
|
|
3018
3099
|
}
|
|
3019
3100
|
},
|
|
3020
3101
|
danger: {
|
|
3021
3102
|
fill: {
|
|
3022
3103
|
backgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
3023
|
-
borderWidth:
|
|
3024
|
-
borderColor:
|
|
3104
|
+
borderWidth: 0,
|
|
3105
|
+
borderColor: colors.transparent
|
|
3025
3106
|
},
|
|
3026
3107
|
outline: {
|
|
3027
|
-
backgroundColor:
|
|
3028
|
-
borderWidth:
|
|
3029
|
-
borderColor:
|
|
3108
|
+
backgroundColor: colors.transparent,
|
|
3109
|
+
borderWidth: 1,
|
|
3110
|
+
borderColor: colors.danger
|
|
3030
3111
|
}
|
|
3031
3112
|
}
|
|
3032
3113
|
};
|
|
3033
3114
|
|
|
3034
3115
|
const tooltip = {
|
|
3035
|
-
backgroundColor:
|
|
3116
|
+
backgroundColor: colors.black,
|
|
3036
3117
|
borderRadius: 10,
|
|
3037
3118
|
opacity: 0.95,
|
|
3038
3119
|
horizontalPadding: 16,
|
|
@@ -3065,23 +3146,23 @@ const breakpoints = {
|
|
|
3065
3146
|
|
|
3066
3147
|
const theme = {
|
|
3067
3148
|
spacing: 4,
|
|
3068
|
-
colors
|
|
3149
|
+
colors,
|
|
3069
3150
|
palettes: {
|
|
3070
3151
|
lateOcean: lateOceanColorPalette
|
|
3071
3152
|
},
|
|
3072
3153
|
avatar,
|
|
3073
|
-
button
|
|
3074
|
-
card
|
|
3075
|
-
feedbackMessage
|
|
3154
|
+
button,
|
|
3155
|
+
card,
|
|
3156
|
+
feedbackMessage,
|
|
3076
3157
|
forms,
|
|
3077
|
-
typography
|
|
3078
|
-
tag
|
|
3079
|
-
shadows
|
|
3080
|
-
fullScreenModal
|
|
3158
|
+
typography,
|
|
3159
|
+
tag,
|
|
3160
|
+
shadows,
|
|
3161
|
+
fullScreenModal,
|
|
3081
3162
|
iconButton,
|
|
3082
|
-
listItem
|
|
3163
|
+
listItem,
|
|
3083
3164
|
tooltip,
|
|
3084
|
-
skeleton
|
|
3165
|
+
skeleton,
|
|
3085
3166
|
breakpoints
|
|
3086
3167
|
};
|
|
3087
3168
|
|
|
@@ -3229,24 +3310,6 @@ function TimePicker({
|
|
|
3229
3310
|
});
|
|
3230
3311
|
}
|
|
3231
3312
|
|
|
3232
|
-
var Arrow = function (props) {
|
|
3233
|
-
return /*#__PURE__*/jsxRuntime.jsx("svg", { ...props,
|
|
3234
|
-
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
3235
|
-
fillRule: "evenodd",
|
|
3236
|
-
clipRule: "evenodd",
|
|
3237
|
-
d: "M22.399 6.128C20.939 7.722 19.767 9 18 9s-2.938-1.278-4.399-2.872C11.187 3.494 7.984 0 0 0h36c-7.984 0-11.187 3.494-13.601 6.128z",
|
|
3238
|
-
fill: "currentColor"
|
|
3239
|
-
})
|
|
3240
|
-
});
|
|
3241
|
-
};
|
|
3242
|
-
|
|
3243
|
-
Arrow.defaultProps = {
|
|
3244
|
-
width: "36",
|
|
3245
|
-
height: "8",
|
|
3246
|
-
viewBox: "0 0 36 9",
|
|
3247
|
-
fill: "none",
|
|
3248
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3249
|
-
};
|
|
3250
3313
|
const StyledTooltipView = /*#__PURE__*/styled__default.View.withConfig({
|
|
3251
3314
|
displayName: "TooltipView__StyledTooltipView",
|
|
3252
3315
|
componentId: "kitt-universal__sc-156zm6m-0"
|
|
@@ -3267,7 +3330,7 @@ const StyledTooltipContent = /*#__PURE__*/styled__default.View.withConfig({
|
|
|
3267
3330
|
function ArrowView(props) {
|
|
3268
3331
|
const theme = /*#__PURE__*/styled.useTheme();
|
|
3269
3332
|
return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, { ...props,
|
|
3270
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
3333
|
+
children: /*#__PURE__*/jsxRuntime.jsx(kittIcons.TooltipArrowIcon, {
|
|
3271
3334
|
color: theme.kitt.tooltip.backgroundColor
|
|
3272
3335
|
})
|
|
3273
3336
|
});
|
|
@@ -3340,7 +3403,7 @@ function Tooltip({
|
|
|
3340
3403
|
};
|
|
3341
3404
|
_f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{opacity:withSpring(pressed.value?theme.kitt.tooltip.opacity:0)};}}";
|
|
3342
3405
|
_f.__workletHash = 15953928507970;
|
|
3343
|
-
_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)";
|
|
3344
3407
|
_f.__optimalization = 2;
|
|
3345
3408
|
|
|
3346
3409
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -3433,13 +3496,8 @@ function TypographyEmoji({
|
|
|
3433
3496
|
const {
|
|
3434
3497
|
fontSize
|
|
3435
3498
|
} = typeConfig[typeConfigKey];
|
|
3436
|
-
|
|
3437
|
-
if ((process.env.NODE_ENV !== "production")) {
|
|
3438
|
-
if (!fontSize.endsWith('px')) throw new Error(`Unexpected font-size value: ${fontSize}`);
|
|
3439
|
-
}
|
|
3440
|
-
|
|
3441
3499
|
return /*#__PURE__*/jsxRuntime.jsx(StyledTypographyEmoji, {
|
|
3442
|
-
size:
|
|
3500
|
+
size: fontSize,
|
|
3443
3501
|
emoji: emoji
|
|
3444
3502
|
});
|
|
3445
3503
|
}
|
|
@@ -3599,9 +3657,7 @@ function MatchWindowSize({
|
|
|
3599
3657
|
}) {
|
|
3600
3658
|
const match = useMatchWindowSize(matchWindowSizeOptions);
|
|
3601
3659
|
if (!match) return null;
|
|
3602
|
-
return
|
|
3603
|
-
children: children
|
|
3604
|
-
});
|
|
3660
|
+
return children;
|
|
3605
3661
|
}
|
|
3606
3662
|
|
|
3607
3663
|
exports.useWindowSize = reactNative.useWindowDimensions;
|
|
@@ -3614,6 +3670,7 @@ exports.Flex = Flex;
|
|
|
3614
3670
|
exports.FullScreenModal = FullScreenModal;
|
|
3615
3671
|
exports.Icon = Icon;
|
|
3616
3672
|
exports.IconButton = IconButton;
|
|
3673
|
+
exports.InputEmail = InputEmail;
|
|
3617
3674
|
exports.InputFeedback = InputFeedback;
|
|
3618
3675
|
exports.InputField = InputField;
|
|
3619
3676
|
exports.InputIcon = InputIcon;
|