@ornikar/kitt-universal 27.3.1-canary.2a1e1042a7d526c8c6b6197a77f84626e0e5d206.0 → 27.5.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/CHANGELOG.md +11 -14
- package/dist/definitions/BaseMessage/helper.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/GoogleMapsAutocompleteProvider.d.ts.map +1 -1
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts +1 -1
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts.map +1 -1
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
- package/dist/definitions/MapMarker/MapMarker.d.ts +2 -5
- package/dist/definitions/MapMarker/MapMarker.d.ts.map +1 -1
- package/dist/definitions/MapMarker/constants.d.ts +6 -0
- package/dist/definitions/MapMarker/constants.d.ts.map +1 -0
- package/dist/definitions/MapMarker/utils/getBackgroundColor.d.ts +2 -1
- package/dist/definitions/MapMarker/utils/getBackgroundColor.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/TabBar/TabBar.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/cardModal.d.ts +21 -4
- package/dist/definitions/themes/late-ocean/cardModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/dialogModal.d.ts +21 -4
- package/dist/definitions/themes/late-ocean/dialogModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +21 -4
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/highlight.d.ts +4 -0
- package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -2
- package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -1
- package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +6 -18
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +124 -50
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +124 -50
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +123 -49
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +2 -2
- package/dist/index-node-22.17.cjs.web.js +87 -41
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +123 -49
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +2 -2
- package/dist/index-node-22.17.es.web.mjs +87 -41
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +210 -174
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +157 -113
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +50 -16
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +50 -16
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +50 -16
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +50 -16
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +50 -16
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +50 -16
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +51 -17
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +51 -17
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/tsbuildinfo +1 -1
- package/package.json +28 -28
|
@@ -760,13 +760,23 @@ const card = {
|
|
|
760
760
|
};
|
|
761
761
|
|
|
762
762
|
const webAnimationContentDuration$2 = 400;
|
|
763
|
-
const webAnimationContentEasing$2 =
|
|
763
|
+
const webAnimationContentEasing$2 = {
|
|
764
|
+
x1: 0.77,
|
|
765
|
+
y1: 0,
|
|
766
|
+
x2: 0.175,
|
|
767
|
+
y2: 1
|
|
768
|
+
};
|
|
764
769
|
const webAnimationOverlayDuration$2 = 250;
|
|
765
|
-
const webAnimationOverlayEasing$2 =
|
|
770
|
+
const webAnimationOverlayEasing$2 = {
|
|
771
|
+
x1: 0.42,
|
|
772
|
+
y1: 0,
|
|
773
|
+
x2: 1,
|
|
774
|
+
y2: 1
|
|
775
|
+
};
|
|
766
776
|
const maxWidth = 540;
|
|
767
777
|
const overlayHorizontalPadding = 24;
|
|
768
778
|
const cardModal = {
|
|
769
|
-
borderRadius:
|
|
779
|
+
borderRadius: spacing * 2,
|
|
770
780
|
maxWidth,
|
|
771
781
|
maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
|
|
772
782
|
minHeight: 280,
|
|
@@ -854,11 +864,21 @@ const choices = {
|
|
|
854
864
|
};
|
|
855
865
|
|
|
856
866
|
const webAnimationContentDuration$1 = 400;
|
|
857
|
-
const webAnimationContentEasing$1 =
|
|
867
|
+
const webAnimationContentEasing$1 = {
|
|
868
|
+
x1: 0.77,
|
|
869
|
+
y1: 0,
|
|
870
|
+
x2: 0.175,
|
|
871
|
+
y2: 1
|
|
872
|
+
};
|
|
858
873
|
const webAnimationOverlayDuration$1 = 250;
|
|
859
|
-
const webAnimationOverlayEasing$1 =
|
|
874
|
+
const webAnimationOverlayEasing$1 = {
|
|
875
|
+
x1: 0.42,
|
|
876
|
+
y1: 0,
|
|
877
|
+
x2: 1,
|
|
878
|
+
y2: 1
|
|
879
|
+
};
|
|
860
880
|
const dialogModal = {
|
|
861
|
-
borderRadius:
|
|
881
|
+
borderRadius: spacing * 2,
|
|
862
882
|
maxWidth: 540,
|
|
863
883
|
overlayPadding: {
|
|
864
884
|
horizontal: 24,
|
|
@@ -1788,9 +1808,19 @@ const forms = {
|
|
|
1788
1808
|
};
|
|
1789
1809
|
|
|
1790
1810
|
const webAnimationContentDuration = 600;
|
|
1791
|
-
const webAnimationContentEasing =
|
|
1811
|
+
const webAnimationContentEasing = {
|
|
1812
|
+
x1: 0.77,
|
|
1813
|
+
y1: 0,
|
|
1814
|
+
x2: 0.175,
|
|
1815
|
+
y2: 1
|
|
1816
|
+
};
|
|
1792
1817
|
const webAnimationOverlayDuration = 250;
|
|
1793
|
-
const webAnimationOverlayEasing =
|
|
1818
|
+
const webAnimationOverlayEasing = {
|
|
1819
|
+
x1: 0.42,
|
|
1820
|
+
y1: 0,
|
|
1821
|
+
x2: 1,
|
|
1822
|
+
y2: 1
|
|
1823
|
+
};
|
|
1794
1824
|
const fullscreenModal = {
|
|
1795
1825
|
header: {
|
|
1796
1826
|
height: 56
|
|
@@ -1827,10 +1857,10 @@ const highlight = {
|
|
|
1827
1857
|
},
|
|
1828
1858
|
primary: {
|
|
1829
1859
|
default: {
|
|
1830
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1860
|
+
backgroundColor: deepPurpleColorPalette['blue.1']
|
|
1831
1861
|
},
|
|
1832
1862
|
hover: {
|
|
1833
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1863
|
+
backgroundColor: deepPurpleColorPalette['blue.2']
|
|
1834
1864
|
}
|
|
1835
1865
|
},
|
|
1836
1866
|
secondary: {
|
|
@@ -1851,10 +1881,14 @@ const highlight = {
|
|
|
1851
1881
|
},
|
|
1852
1882
|
dark: {
|
|
1853
1883
|
default: {
|
|
1854
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1884
|
+
backgroundColor: deepPurpleColorPalette['grey.0'],
|
|
1885
|
+
borderWidth: 1,
|
|
1886
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1855
1887
|
},
|
|
1856
1888
|
hover: {
|
|
1857
|
-
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1889
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1890
|
+
borderWidth: 1,
|
|
1891
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1858
1892
|
}
|
|
1859
1893
|
},
|
|
1860
1894
|
success: {
|
|
@@ -1934,8 +1968,8 @@ const listItem = {
|
|
|
1934
1968
|
|
|
1935
1969
|
const mapMarker = {
|
|
1936
1970
|
home: {
|
|
1937
|
-
default:
|
|
1938
|
-
selected:
|
|
1971
|
+
default: deepPurpleColorPalette['grey.9'],
|
|
1972
|
+
selected: deepPurpleColorPalette['grey.7'],
|
|
1939
1973
|
svg: {
|
|
1940
1974
|
height: 36
|
|
1941
1975
|
},
|
|
@@ -1945,8 +1979,8 @@ const mapMarker = {
|
|
|
1945
1979
|
}
|
|
1946
1980
|
},
|
|
1947
1981
|
meetingPoint: {
|
|
1948
|
-
default:
|
|
1949
|
-
selected:
|
|
1982
|
+
default: deepPurpleColorPalette['deepPurple.8'],
|
|
1983
|
+
selected: deepPurpleColorPalette['deepPurple.6'],
|
|
1950
1984
|
svg: {
|
|
1951
1985
|
width: 40,
|
|
1952
1986
|
height: 43
|
|
@@ -4031,7 +4065,12 @@ function NativeOpacityAnimation$2({
|
|
|
4031
4065
|
duration,
|
|
4032
4066
|
easing
|
|
4033
4067
|
} = theme.kitt.cardModal.animation.overlay;
|
|
4034
|
-
const
|
|
4068
|
+
const {
|
|
4069
|
+
x1,
|
|
4070
|
+
y1,
|
|
4071
|
+
x2,
|
|
4072
|
+
y2
|
|
4073
|
+
} = easing;
|
|
4035
4074
|
return {
|
|
4036
4075
|
opacity: Animated.withTiming(visible ? 1 : 0, {
|
|
4037
4076
|
duration,
|
|
@@ -4069,7 +4108,12 @@ function NativeRotationAnimation$1({
|
|
|
4069
4108
|
duration,
|
|
4070
4109
|
easing
|
|
4071
4110
|
} = theme.kitt.cardModal.animation.content;
|
|
4072
|
-
const
|
|
4111
|
+
const {
|
|
4112
|
+
x1,
|
|
4113
|
+
y1,
|
|
4114
|
+
x2,
|
|
4115
|
+
y2
|
|
4116
|
+
} = easing;
|
|
4073
4117
|
rotation.value = Animated.withTiming(visible ? 0 : 5, {
|
|
4074
4118
|
duration,
|
|
4075
4119
|
easing: Animated.Easing.bezier(x1, y1, x2, y2)
|
|
@@ -4642,7 +4686,12 @@ function NativeOpacityAnimation$1({
|
|
|
4642
4686
|
duration,
|
|
4643
4687
|
easing
|
|
4644
4688
|
} = theme.kitt.dialogModal.animation.overlay;
|
|
4645
|
-
const
|
|
4689
|
+
const {
|
|
4690
|
+
x1,
|
|
4691
|
+
y1,
|
|
4692
|
+
x2,
|
|
4693
|
+
y2
|
|
4694
|
+
} = easing;
|
|
4646
4695
|
return {
|
|
4647
4696
|
opacity: Animated.withTiming(visible ? 1 : 0, {
|
|
4648
4697
|
duration,
|
|
@@ -4680,7 +4729,12 @@ function NativeRotationAnimation({
|
|
|
4680
4729
|
duration,
|
|
4681
4730
|
easing
|
|
4682
4731
|
} = theme.kitt.dialogModal.animation.content;
|
|
4683
|
-
const
|
|
4732
|
+
const {
|
|
4733
|
+
x1,
|
|
4734
|
+
y1,
|
|
4735
|
+
x2,
|
|
4736
|
+
y2
|
|
4737
|
+
} = easing;
|
|
4684
4738
|
rotation.value = Animated.withTiming(visible ? 0 : 5, {
|
|
4685
4739
|
duration,
|
|
4686
4740
|
easing: Animated.Easing.bezier(x1, y1, x2, y2)
|
|
@@ -6302,7 +6356,7 @@ function DocumentPicker({
|
|
|
6302
6356
|
...documentPickerOptions,
|
|
6303
6357
|
multiple: false
|
|
6304
6358
|
});
|
|
6305
|
-
if (!result.canceled && result.assets[0]
|
|
6359
|
+
if (!result.canceled && result.assets[0]?.file) {
|
|
6306
6360
|
onDocumentUpload(result.assets[0].file);
|
|
6307
6361
|
}
|
|
6308
6362
|
},
|
|
@@ -6329,7 +6383,7 @@ function ImagePicker({
|
|
|
6329
6383
|
...imagePickerOptions,
|
|
6330
6384
|
allowsMultipleSelection: false
|
|
6331
6385
|
});
|
|
6332
|
-
if (!result.canceled) {
|
|
6386
|
+
if (!result.canceled && result.assets[0]) {
|
|
6333
6387
|
onImageSelected(result.assets[0]);
|
|
6334
6388
|
}
|
|
6335
6389
|
},
|
|
@@ -6778,17 +6832,17 @@ function GoogleMapsAutocompleteProvider({
|
|
|
6778
6832
|
dispatch({
|
|
6779
6833
|
type: 'search-error'
|
|
6780
6834
|
});
|
|
6781
|
-
return;
|
|
6782
6835
|
}
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6836
|
+
if (results) {
|
|
6837
|
+
// We cache the results to avoid calling the API again if the user types the same value
|
|
6838
|
+
searchResultsCache.current[value] = results;
|
|
6839
|
+
dispatch({
|
|
6840
|
+
type: 'search-success',
|
|
6841
|
+
payload: {
|
|
6842
|
+
results
|
|
6843
|
+
}
|
|
6844
|
+
});
|
|
6845
|
+
}
|
|
6792
6846
|
} catch (error) {
|
|
6793
6847
|
dispatch({
|
|
6794
6848
|
type: 'search-error'
|
|
@@ -7866,7 +7920,12 @@ function NativeOpacityAnimation({
|
|
|
7866
7920
|
duration,
|
|
7867
7921
|
easing
|
|
7868
7922
|
} = theme.kitt.fullscreenModal.animation.overlay;
|
|
7869
|
-
const
|
|
7923
|
+
const {
|
|
7924
|
+
x1,
|
|
7925
|
+
y1,
|
|
7926
|
+
x2,
|
|
7927
|
+
y2
|
|
7928
|
+
} = easing;
|
|
7870
7929
|
return {
|
|
7871
7930
|
opacity: Animated.withTiming(visible ? 1 : 0, {
|
|
7872
7931
|
duration,
|
|
@@ -7905,7 +7964,12 @@ function NativeSlideInAnimation({
|
|
|
7905
7964
|
duration,
|
|
7906
7965
|
easing
|
|
7907
7966
|
} = theme.kitt.fullscreenModal.animation.content;
|
|
7908
|
-
const
|
|
7967
|
+
const {
|
|
7968
|
+
x1,
|
|
7969
|
+
y1,
|
|
7970
|
+
x2,
|
|
7971
|
+
y2
|
|
7972
|
+
} = easing;
|
|
7909
7973
|
return {
|
|
7910
7974
|
transform: [{
|
|
7911
7975
|
translateY: Animated.withTiming(visible ? 0 : wHeight, {
|
|
@@ -8174,13 +8238,16 @@ function AnimatedCaret({
|
|
|
8174
8238
|
function AnimatedContainer({
|
|
8175
8239
|
children,
|
|
8176
8240
|
size,
|
|
8177
|
-
animatedStyles
|
|
8241
|
+
animatedStyles,
|
|
8242
|
+
variant
|
|
8178
8243
|
}) {
|
|
8179
8244
|
const sx = nativeBase.useSx();
|
|
8180
8245
|
const theme = useTheme();
|
|
8181
8246
|
const styles = sx({
|
|
8182
8247
|
borderRadius: theme.kitt.highlight.borderRadius,
|
|
8183
|
-
padding: theme.kitt.highlight.padding[size]
|
|
8248
|
+
padding: theme.kitt.highlight.padding[size],
|
|
8249
|
+
borderWidth: theme.kitt.highlight[variant].default.borderWidth,
|
|
8250
|
+
borderColor: theme.kitt.highlight[variant].default.borderColor
|
|
8184
8251
|
});
|
|
8185
8252
|
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
8186
8253
|
style: [styles, animatedStyles],
|
|
@@ -8304,6 +8371,8 @@ function Highlight({
|
|
|
8304
8371
|
borderRadius: "kitt.highlight.borderRadius",
|
|
8305
8372
|
padding: theme.kitt.highlight.padding[size],
|
|
8306
8373
|
backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
|
|
8374
|
+
borderWidth: theme.kitt.highlight[variant].default.borderWidth,
|
|
8375
|
+
borderColor: theme.kitt.highlight[variant].default.borderColor,
|
|
8307
8376
|
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
8308
8377
|
space: highlightStyle[size].spaceBetween,
|
|
8309
8378
|
children: [icon && /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -8558,12 +8627,11 @@ const SvgPinMarkerinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
|
8558
8627
|
width: 34,
|
|
8559
8628
|
height: 36,
|
|
8560
8629
|
viewBox: "0 0 34 36",
|
|
8561
|
-
fill: "
|
|
8630
|
+
fill: "currentColor",
|
|
8562
8631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8563
8632
|
...props,
|
|
8564
8633
|
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
8565
8634
|
d: "M17 .5C26.113.5 33.5 7.887 33.5 17c0 8.272-6.087 15.121-14.025 16.315-.05.008-.157.054-.337.211-.173.151-.351.345-.56.57a5.972 5.972 0 0 1-.662.637c-.232.181-.545.367-.916.367-.37 0-.684-.186-.916-.367a5.972 5.972 0 0 1-.662-.637c-.209-.224-.387-.419-.56-.57-.18-.157-.287-.203-.337-.21C6.586 32.12.5 25.271.5 17 .5 7.887 7.887.5 17 .5Z",
|
|
8566
|
-
fill: "#7B66FF",
|
|
8567
8635
|
stroke: "#fff"
|
|
8568
8636
|
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
8569
8637
|
d: "M17 10a5.506 5.506 0 0 0-5.5 5.5c0 4.706 5 8.26 5.213 8.41a.5.5 0 0 0 .574 0c.213-.15 5.213-3.704 5.213-8.41A5.506 5.506 0 0 0 17 10Zm0 3.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z",
|
|
@@ -8588,6 +8656,13 @@ const SvgShadowinline = props => /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
|
8588
8656
|
})
|
|
8589
8657
|
});
|
|
8590
8658
|
|
|
8659
|
+
let MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
|
|
8660
|
+
MapMarkerVariantEnum["HOME"] = "home";
|
|
8661
|
+
MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
|
|
8662
|
+
MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
|
|
8663
|
+
return MapMarkerVariantEnum;
|
|
8664
|
+
}({});
|
|
8665
|
+
|
|
8591
8666
|
const SCALE_DURATION = 300;
|
|
8592
8667
|
const TRANSLATE_Y_DURATION = 150;
|
|
8593
8668
|
const useNativeAnimation = ({
|
|
@@ -8644,18 +8719,12 @@ const getBackgroundColor = ({
|
|
|
8644
8719
|
isSelected,
|
|
8645
8720
|
variant
|
|
8646
8721
|
}) => {
|
|
8647
|
-
if (variant ===
|
|
8722
|
+
if (variant === MapMarkerVariantEnum.HOME || variant === MapMarkerVariantEnum.CLOSE_MEETING_POINT) {
|
|
8648
8723
|
return isSelected || isHovered ? theme.mapMarker.home.selected : theme.mapMarker.home.default;
|
|
8649
8724
|
}
|
|
8650
8725
|
return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint.default;
|
|
8651
8726
|
};
|
|
8652
8727
|
|
|
8653
|
-
let MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
|
|
8654
|
-
MapMarkerVariantEnum["HOME"] = "home";
|
|
8655
|
-
MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
|
|
8656
|
-
MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
|
|
8657
|
-
return MapMarkerVariantEnum;
|
|
8658
|
-
}({});
|
|
8659
8728
|
function StaticMapMarker$1({
|
|
8660
8729
|
variant,
|
|
8661
8730
|
isHovered,
|
|
@@ -8758,6 +8827,8 @@ const getColorByType = type => {
|
|
|
8758
8827
|
switch (type) {
|
|
8759
8828
|
case 'success':
|
|
8760
8829
|
case 'danger':
|
|
8830
|
+
case 'info':
|
|
8831
|
+
return 'white';
|
|
8761
8832
|
case 'warning':
|
|
8762
8833
|
default:
|
|
8763
8834
|
return 'black';
|
|
@@ -8767,6 +8838,8 @@ const getIconButtonColor = messageType => {
|
|
|
8767
8838
|
switch (messageType) {
|
|
8768
8839
|
case 'success':
|
|
8769
8840
|
case 'danger':
|
|
8841
|
+
case 'info':
|
|
8842
|
+
return 'ghost';
|
|
8770
8843
|
case 'warning':
|
|
8771
8844
|
default:
|
|
8772
8845
|
return 'black';
|
|
@@ -8787,7 +8860,7 @@ function BaseMessage({
|
|
|
8787
8860
|
justifyContent: "space-between",
|
|
8788
8861
|
minHeight: "kitt.feedbackMessage.minHeight",
|
|
8789
8862
|
paddingTop: insets?.top,
|
|
8790
|
-
borderRadius: hasNoRadius ? undefined : 'kitt.
|
|
8863
|
+
borderRadius: hasNoRadius ? undefined : 'kitt.2',
|
|
8791
8864
|
backgroundColor: `kitt.feedbackMessage.${type}.backgroundColor`,
|
|
8792
8865
|
children: [/*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
8793
8866
|
flexGrow: 1,
|
|
@@ -8795,9 +8868,9 @@ function BaseMessage({
|
|
|
8795
8868
|
alignSelf: "center",
|
|
8796
8869
|
alignItems: "flex-start",
|
|
8797
8870
|
paddingY: "kitt.4",
|
|
8798
|
-
paddingX: "kitt.
|
|
8871
|
+
paddingX: "kitt.4",
|
|
8799
8872
|
children: [centeredText ? null : /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8800
|
-
marginRight: "kitt.
|
|
8873
|
+
marginRight: "kitt.2",
|
|
8801
8874
|
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
8802
8875
|
color: color,
|
|
8803
8876
|
icon: /*#__PURE__*/jsxRuntime.jsx(IconContent, {
|
|
@@ -12588,12 +12661,13 @@ function TabBar({
|
|
|
12588
12661
|
...props,
|
|
12589
12662
|
children: React.Children.map(tabItems, (child, index) => {
|
|
12590
12663
|
const tab = tabs[index];
|
|
12664
|
+
if (!tab) throw new Error(`TabBar: tab is undefined at index ${index}`);
|
|
12591
12665
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
12592
12666
|
children: /*#__PURE__*/React.cloneElement(child, {
|
|
12593
12667
|
color,
|
|
12594
12668
|
onPress: event => {
|
|
12595
12669
|
onChangeTab({
|
|
12596
|
-
tab
|
|
12670
|
+
tab,
|
|
12597
12671
|
index
|
|
12598
12672
|
});
|
|
12599
12673
|
child.props.onPress?.(event);
|