@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
|
@@ -740,13 +740,23 @@ const card = {
|
|
|
740
740
|
};
|
|
741
741
|
|
|
742
742
|
const webAnimationContentDuration$2 = 400;
|
|
743
|
-
const webAnimationContentEasing$2 =
|
|
743
|
+
const webAnimationContentEasing$2 = {
|
|
744
|
+
x1: 0.77,
|
|
745
|
+
y1: 0,
|
|
746
|
+
x2: 0.175,
|
|
747
|
+
y2: 1
|
|
748
|
+
};
|
|
744
749
|
const webAnimationOverlayDuration$2 = 250;
|
|
745
|
-
const webAnimationOverlayEasing$2 =
|
|
750
|
+
const webAnimationOverlayEasing$2 = {
|
|
751
|
+
x1: 0.42,
|
|
752
|
+
y1: 0,
|
|
753
|
+
x2: 1,
|
|
754
|
+
y2: 1
|
|
755
|
+
};
|
|
746
756
|
const maxWidth = 540;
|
|
747
757
|
const overlayHorizontalPadding = 24;
|
|
748
758
|
const cardModal = {
|
|
749
|
-
borderRadius:
|
|
759
|
+
borderRadius: spacing * 2,
|
|
750
760
|
maxWidth,
|
|
751
761
|
maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
|
|
752
762
|
minHeight: 280,
|
|
@@ -834,11 +844,21 @@ const choices = {
|
|
|
834
844
|
};
|
|
835
845
|
|
|
836
846
|
const webAnimationContentDuration$1 = 400;
|
|
837
|
-
const webAnimationContentEasing$1 =
|
|
847
|
+
const webAnimationContentEasing$1 = {
|
|
848
|
+
x1: 0.77,
|
|
849
|
+
y1: 0,
|
|
850
|
+
x2: 0.175,
|
|
851
|
+
y2: 1
|
|
852
|
+
};
|
|
838
853
|
const webAnimationOverlayDuration$1 = 250;
|
|
839
|
-
const webAnimationOverlayEasing$1 =
|
|
854
|
+
const webAnimationOverlayEasing$1 = {
|
|
855
|
+
x1: 0.42,
|
|
856
|
+
y1: 0,
|
|
857
|
+
x2: 1,
|
|
858
|
+
y2: 1
|
|
859
|
+
};
|
|
840
860
|
const dialogModal = {
|
|
841
|
-
borderRadius:
|
|
861
|
+
borderRadius: spacing * 2,
|
|
842
862
|
maxWidth: 540,
|
|
843
863
|
overlayPadding: {
|
|
844
864
|
horizontal: 24,
|
|
@@ -1768,9 +1788,19 @@ const forms = {
|
|
|
1768
1788
|
};
|
|
1769
1789
|
|
|
1770
1790
|
const webAnimationContentDuration = 600;
|
|
1771
|
-
const webAnimationContentEasing =
|
|
1791
|
+
const webAnimationContentEasing = {
|
|
1792
|
+
x1: 0.77,
|
|
1793
|
+
y1: 0,
|
|
1794
|
+
x2: 0.175,
|
|
1795
|
+
y2: 1
|
|
1796
|
+
};
|
|
1772
1797
|
const webAnimationOverlayDuration = 250;
|
|
1773
|
-
const webAnimationOverlayEasing =
|
|
1798
|
+
const webAnimationOverlayEasing = {
|
|
1799
|
+
x1: 0.42,
|
|
1800
|
+
y1: 0,
|
|
1801
|
+
x2: 1,
|
|
1802
|
+
y2: 1
|
|
1803
|
+
};
|
|
1774
1804
|
const fullscreenModal = {
|
|
1775
1805
|
header: {
|
|
1776
1806
|
height: 56
|
|
@@ -1807,10 +1837,10 @@ const highlight = {
|
|
|
1807
1837
|
},
|
|
1808
1838
|
primary: {
|
|
1809
1839
|
default: {
|
|
1810
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1840
|
+
backgroundColor: deepPurpleColorPalette['blue.1']
|
|
1811
1841
|
},
|
|
1812
1842
|
hover: {
|
|
1813
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1843
|
+
backgroundColor: deepPurpleColorPalette['blue.2']
|
|
1814
1844
|
}
|
|
1815
1845
|
},
|
|
1816
1846
|
secondary: {
|
|
@@ -1831,10 +1861,14 @@ const highlight = {
|
|
|
1831
1861
|
},
|
|
1832
1862
|
dark: {
|
|
1833
1863
|
default: {
|
|
1834
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1864
|
+
backgroundColor: deepPurpleColorPalette['grey.0'],
|
|
1865
|
+
borderWidth: 1,
|
|
1866
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1835
1867
|
},
|
|
1836
1868
|
hover: {
|
|
1837
|
-
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1869
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1870
|
+
borderWidth: 1,
|
|
1871
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1838
1872
|
}
|
|
1839
1873
|
},
|
|
1840
1874
|
success: {
|
|
@@ -1914,8 +1948,8 @@ const listItem = {
|
|
|
1914
1948
|
|
|
1915
1949
|
const mapMarker = {
|
|
1916
1950
|
home: {
|
|
1917
|
-
default:
|
|
1918
|
-
selected:
|
|
1951
|
+
default: deepPurpleColorPalette['grey.9'],
|
|
1952
|
+
selected: deepPurpleColorPalette['grey.7'],
|
|
1919
1953
|
svg: {
|
|
1920
1954
|
height: 36
|
|
1921
1955
|
},
|
|
@@ -1925,8 +1959,8 @@ const mapMarker = {
|
|
|
1925
1959
|
}
|
|
1926
1960
|
},
|
|
1927
1961
|
meetingPoint: {
|
|
1928
|
-
default:
|
|
1929
|
-
selected:
|
|
1962
|
+
default: deepPurpleColorPalette['deepPurple.8'],
|
|
1963
|
+
selected: deepPurpleColorPalette['deepPurple.6'],
|
|
1930
1964
|
svg: {
|
|
1931
1965
|
width: 40,
|
|
1932
1966
|
height: 43
|
|
@@ -4005,7 +4039,12 @@ function NativeOpacityAnimation$2({
|
|
|
4005
4039
|
duration,
|
|
4006
4040
|
easing
|
|
4007
4041
|
} = theme.kitt.cardModal.animation.overlay;
|
|
4008
|
-
const
|
|
4042
|
+
const {
|
|
4043
|
+
x1,
|
|
4044
|
+
y1,
|
|
4045
|
+
x2,
|
|
4046
|
+
y2
|
|
4047
|
+
} = easing;
|
|
4009
4048
|
return {
|
|
4010
4049
|
opacity: withTiming(visible ? 1 : 0, {
|
|
4011
4050
|
duration,
|
|
@@ -4043,7 +4082,12 @@ function NativeRotationAnimation$1({
|
|
|
4043
4082
|
duration,
|
|
4044
4083
|
easing
|
|
4045
4084
|
} = theme.kitt.cardModal.animation.content;
|
|
4046
|
-
const
|
|
4085
|
+
const {
|
|
4086
|
+
x1,
|
|
4087
|
+
y1,
|
|
4088
|
+
x2,
|
|
4089
|
+
y2
|
|
4090
|
+
} = easing;
|
|
4047
4091
|
rotation.value = withTiming(visible ? 0 : 5, {
|
|
4048
4092
|
duration,
|
|
4049
4093
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
@@ -4620,7 +4664,12 @@ function NativeOpacityAnimation$1({
|
|
|
4620
4664
|
duration,
|
|
4621
4665
|
easing
|
|
4622
4666
|
} = theme.kitt.dialogModal.animation.overlay;
|
|
4623
|
-
const
|
|
4667
|
+
const {
|
|
4668
|
+
x1,
|
|
4669
|
+
y1,
|
|
4670
|
+
x2,
|
|
4671
|
+
y2
|
|
4672
|
+
} = easing;
|
|
4624
4673
|
return {
|
|
4625
4674
|
opacity: withTiming(visible ? 1 : 0, {
|
|
4626
4675
|
duration,
|
|
@@ -4658,7 +4707,12 @@ function NativeRotationAnimation({
|
|
|
4658
4707
|
duration,
|
|
4659
4708
|
easing
|
|
4660
4709
|
} = theme.kitt.dialogModal.animation.content;
|
|
4661
|
-
const
|
|
4710
|
+
const {
|
|
4711
|
+
x1,
|
|
4712
|
+
y1,
|
|
4713
|
+
x2,
|
|
4714
|
+
y2
|
|
4715
|
+
} = easing;
|
|
4662
4716
|
rotation.value = withTiming(visible ? 0 : 5, {
|
|
4663
4717
|
duration,
|
|
4664
4718
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
@@ -6285,13 +6339,13 @@ function DocumentPicker({
|
|
|
6285
6339
|
// ensure that the press event is not prevented by Button component
|
|
6286
6340
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
6287
6341
|
onPress: async () => {
|
|
6288
|
-
var _childElement$props$o, _childElement$props
|
|
6342
|
+
var _childElement$props$o, _childElement$props, _result$assets$;
|
|
6289
6343
|
if (disabled) return;
|
|
6290
6344
|
(_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
|
|
6291
6345
|
const result = await getDocumentAsync(_objectSpread(_objectSpread({}, documentPickerOptions), {}, {
|
|
6292
6346
|
multiple: false
|
|
6293
6347
|
}));
|
|
6294
|
-
if (!result.canceled && result.assets[0]
|
|
6348
|
+
if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
|
|
6295
6349
|
onDocumentUpload(result.assets[0].file);
|
|
6296
6350
|
}
|
|
6297
6351
|
},
|
|
@@ -6318,7 +6372,7 @@ function ImagePicker({
|
|
|
6318
6372
|
const result = await launchImageLibraryAsync(_objectSpread(_objectSpread({}, imagePickerOptions), {}, {
|
|
6319
6373
|
allowsMultipleSelection: false
|
|
6320
6374
|
}));
|
|
6321
|
-
if (!result.canceled) {
|
|
6375
|
+
if (!result.canceled && result.assets[0]) {
|
|
6322
6376
|
onImageSelected(result.assets[0]);
|
|
6323
6377
|
}
|
|
6324
6378
|
},
|
|
@@ -6770,17 +6824,17 @@ function GoogleMapsAutocompleteProvider({
|
|
|
6770
6824
|
dispatch({
|
|
6771
6825
|
type: 'search-error'
|
|
6772
6826
|
});
|
|
6773
|
-
return;
|
|
6774
6827
|
}
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6828
|
+
if (results) {
|
|
6829
|
+
// We cache the results to avoid calling the API again if the user types the same value
|
|
6830
|
+
searchResultsCache.current[value] = results;
|
|
6831
|
+
dispatch({
|
|
6832
|
+
type: 'search-success',
|
|
6833
|
+
payload: {
|
|
6834
|
+
results
|
|
6835
|
+
}
|
|
6836
|
+
});
|
|
6837
|
+
}
|
|
6784
6838
|
} catch (error) {
|
|
6785
6839
|
dispatch({
|
|
6786
6840
|
type: 'search-error'
|
|
@@ -7869,7 +7923,12 @@ function NativeOpacityAnimation({
|
|
|
7869
7923
|
duration,
|
|
7870
7924
|
easing
|
|
7871
7925
|
} = theme.kitt.fullscreenModal.animation.overlay;
|
|
7872
|
-
const
|
|
7926
|
+
const {
|
|
7927
|
+
x1,
|
|
7928
|
+
y1,
|
|
7929
|
+
x2,
|
|
7930
|
+
y2
|
|
7931
|
+
} = easing;
|
|
7873
7932
|
return {
|
|
7874
7933
|
opacity: withTiming(visible ? 1 : 0, {
|
|
7875
7934
|
duration,
|
|
@@ -7908,7 +7967,12 @@ function NativeSlideInAnimation({
|
|
|
7908
7967
|
duration,
|
|
7909
7968
|
easing
|
|
7910
7969
|
} = theme.kitt.fullscreenModal.animation.content;
|
|
7911
|
-
const
|
|
7970
|
+
const {
|
|
7971
|
+
x1,
|
|
7972
|
+
y1,
|
|
7973
|
+
x2,
|
|
7974
|
+
y2
|
|
7975
|
+
} = easing;
|
|
7912
7976
|
return {
|
|
7913
7977
|
transform: [{
|
|
7914
7978
|
translateY: withTiming(visible ? 0 : wHeight, {
|
|
@@ -8180,13 +8244,16 @@ function AnimatedCaret({
|
|
|
8180
8244
|
function AnimatedContainer({
|
|
8181
8245
|
children,
|
|
8182
8246
|
size,
|
|
8183
|
-
animatedStyles
|
|
8247
|
+
animatedStyles,
|
|
8248
|
+
variant
|
|
8184
8249
|
}) {
|
|
8185
8250
|
const sx = useSx();
|
|
8186
8251
|
const theme = useTheme();
|
|
8187
8252
|
const styles = sx({
|
|
8188
8253
|
borderRadius: theme.kitt.highlight.borderRadius,
|
|
8189
|
-
padding: theme.kitt.highlight.padding[size]
|
|
8254
|
+
padding: theme.kitt.highlight.padding[size],
|
|
8255
|
+
borderWidth: theme.kitt.highlight[variant].default.borderWidth,
|
|
8256
|
+
borderColor: theme.kitt.highlight[variant].default.borderColor
|
|
8190
8257
|
});
|
|
8191
8258
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
8192
8259
|
style: [styles, animatedStyles],
|
|
@@ -8310,6 +8377,8 @@ function Highlight({
|
|
|
8310
8377
|
borderRadius: "kitt.highlight.borderRadius",
|
|
8311
8378
|
padding: theme.kitt.highlight.padding[size],
|
|
8312
8379
|
backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
|
|
8380
|
+
borderWidth: theme.kitt.highlight[variant].default.borderWidth,
|
|
8381
|
+
borderColor: theme.kitt.highlight[variant].default.borderColor,
|
|
8313
8382
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
8314
8383
|
space: highlightStyle[size].spaceBetween,
|
|
8315
8384
|
children: [icon && /*#__PURE__*/jsx(View, {
|
|
@@ -8564,12 +8633,11 @@ const SvgPinMarkerinline = props => /*#__PURE__*/jsxs(Svg, _objectSpread(_object
|
|
|
8564
8633
|
width: 34,
|
|
8565
8634
|
height: 36,
|
|
8566
8635
|
viewBox: "0 0 34 36",
|
|
8567
|
-
fill: "
|
|
8636
|
+
fill: "currentColor",
|
|
8568
8637
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8569
8638
|
}, props), {}, {
|
|
8570
8639
|
children: [/*#__PURE__*/jsx(Path, {
|
|
8571
8640
|
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",
|
|
8572
|
-
fill: "#7B66FF",
|
|
8573
8641
|
stroke: "#fff"
|
|
8574
8642
|
}), /*#__PURE__*/jsx(Path, {
|
|
8575
8643
|
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",
|
|
@@ -8594,6 +8662,13 @@ const SvgShadowinline = props => /*#__PURE__*/jsx(Svg, _objectSpread(_objectSpre
|
|
|
8594
8662
|
})
|
|
8595
8663
|
}));
|
|
8596
8664
|
|
|
8665
|
+
let MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
|
|
8666
|
+
MapMarkerVariantEnum["HOME"] = "home";
|
|
8667
|
+
MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
|
|
8668
|
+
MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
|
|
8669
|
+
return MapMarkerVariantEnum;
|
|
8670
|
+
}({});
|
|
8671
|
+
|
|
8597
8672
|
const SCALE_DURATION = 300;
|
|
8598
8673
|
const TRANSLATE_Y_DURATION = 150;
|
|
8599
8674
|
const useNativeAnimation = ({
|
|
@@ -8650,19 +8725,13 @@ const getBackgroundColor = ({
|
|
|
8650
8725
|
isSelected,
|
|
8651
8726
|
variant
|
|
8652
8727
|
}) => {
|
|
8653
|
-
if (variant ===
|
|
8728
|
+
if (variant === MapMarkerVariantEnum.HOME || variant === MapMarkerVariantEnum.CLOSE_MEETING_POINT) {
|
|
8654
8729
|
return isSelected || isHovered ? theme.mapMarker.home.selected : theme.mapMarker.home.default;
|
|
8655
8730
|
}
|
|
8656
8731
|
return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint.default;
|
|
8657
8732
|
};
|
|
8658
8733
|
|
|
8659
8734
|
const _excluded$b = ["onPress", "testID"];
|
|
8660
|
-
let MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
|
|
8661
|
-
MapMarkerVariantEnum["HOME"] = "home";
|
|
8662
|
-
MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
|
|
8663
|
-
MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
|
|
8664
|
-
return MapMarkerVariantEnum;
|
|
8665
|
-
}({});
|
|
8666
8735
|
function StaticMapMarker$1({
|
|
8667
8736
|
variant,
|
|
8668
8737
|
isHovered,
|
|
@@ -8765,6 +8834,8 @@ const getColorByType = type => {
|
|
|
8765
8834
|
switch (type) {
|
|
8766
8835
|
case 'success':
|
|
8767
8836
|
case 'danger':
|
|
8837
|
+
case 'info':
|
|
8838
|
+
return 'white';
|
|
8768
8839
|
case 'warning':
|
|
8769
8840
|
default:
|
|
8770
8841
|
return 'black';
|
|
@@ -8774,6 +8845,8 @@ const getIconButtonColor = messageType => {
|
|
|
8774
8845
|
switch (messageType) {
|
|
8775
8846
|
case 'success':
|
|
8776
8847
|
case 'danger':
|
|
8848
|
+
case 'info':
|
|
8849
|
+
return 'ghost';
|
|
8777
8850
|
case 'warning':
|
|
8778
8851
|
default:
|
|
8779
8852
|
return 'black';
|
|
@@ -8794,7 +8867,7 @@ function BaseMessage({
|
|
|
8794
8867
|
justifyContent: "space-between",
|
|
8795
8868
|
minHeight: "kitt.feedbackMessage.minHeight",
|
|
8796
8869
|
paddingTop: insets === null || insets === void 0 ? void 0 : insets.top,
|
|
8797
|
-
borderRadius: hasNoRadius ? undefined : 'kitt.
|
|
8870
|
+
borderRadius: hasNoRadius ? undefined : 'kitt.2',
|
|
8798
8871
|
backgroundColor: `kitt.feedbackMessage.${type}.backgroundColor`,
|
|
8799
8872
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
8800
8873
|
flexGrow: 1,
|
|
@@ -8802,9 +8875,9 @@ function BaseMessage({
|
|
|
8802
8875
|
alignSelf: "center",
|
|
8803
8876
|
alignItems: "flex-start",
|
|
8804
8877
|
paddingY: "kitt.4",
|
|
8805
|
-
paddingX: "kitt.
|
|
8878
|
+
paddingX: "kitt.4",
|
|
8806
8879
|
children: [centeredText ? null : /*#__PURE__*/jsx(View, {
|
|
8807
|
-
marginRight: "kitt.
|
|
8880
|
+
marginRight: "kitt.2",
|
|
8808
8881
|
children: /*#__PURE__*/jsx(Icon, {
|
|
8809
8882
|
color: color,
|
|
8810
8883
|
icon: /*#__PURE__*/jsx(IconContent, {
|
|
@@ -12593,13 +12666,14 @@ function TabBar(_ref) {
|
|
|
12593
12666
|
}, props), {}, {
|
|
12594
12667
|
children: Children.map(tabItems, (child, index) => {
|
|
12595
12668
|
const tab = tabs[index];
|
|
12669
|
+
if (!tab) throw new Error(`TabBar: tab is undefined at index ${index}`);
|
|
12596
12670
|
return /*#__PURE__*/jsx(View, {
|
|
12597
12671
|
children: /*#__PURE__*/cloneElement(child, {
|
|
12598
12672
|
color,
|
|
12599
12673
|
onPress: event => {
|
|
12600
12674
|
var _child$props$onPress, _child$props;
|
|
12601
12675
|
onChangeTab({
|
|
12602
|
-
tab
|
|
12676
|
+
tab,
|
|
12603
12677
|
index
|
|
12604
12678
|
});
|
|
12605
12679
|
(_child$props$onPress = (_child$props = child.props).onPress) === null || _child$props$onPress === void 0 || _child$props$onPress.call(_child$props, event);
|