@ornikar/kitt-universal 9.26.0 → 9.28.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.
Files changed (76) hide show
  1. package/babel-plugin-csf-to-jest.js +121 -0
  2. package/dist/definitions/Avatar/Avatar.d.ts +1 -7
  3. package/dist/definitions/Avatar/Avatar.d.ts.map +1 -1
  4. package/dist/definitions/Avatar/utils/getCurrentRadius.d.ts +9 -0
  5. package/dist/definitions/Avatar/utils/getCurrentRadius.d.ts.map +1 -0
  6. package/dist/definitions/Avatar/utils/getCurrentSize.d.ts +8 -0
  7. package/dist/definitions/Avatar/utils/getCurrentSize.d.ts.map +1 -0
  8. package/dist/definitions/Avatar/utils/getIconSize.d.ts +3 -0
  9. package/dist/definitions/Avatar/utils/getIconSize.d.ts.map +1 -0
  10. package/dist/definitions/Avatar/utils/getInitials.d.ts +2 -0
  11. package/dist/definitions/Avatar/utils/getInitials.d.ts.map +1 -0
  12. package/dist/definitions/KittMapConfigProvider/KittMapConfigProvider.d.ts +13 -0
  13. package/dist/definitions/KittMapConfigProvider/KittMapConfigProvider.d.ts.map +1 -0
  14. package/dist/definitions/KittMapConfigProvider/hooks/useKittMapConfig.d.ts +3 -0
  15. package/dist/definitions/KittMapConfigProvider/hooks/useKittMapConfig.d.ts.map +1 -0
  16. package/dist/definitions/MapMarker/MapMarker.d.ts +15 -0
  17. package/dist/definitions/MapMarker/MapMarker.d.ts.map +1 -0
  18. package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.web.d.ts.map +1 -1
  19. package/dist/definitions/Skeleton/Skeleton.d.ts +15 -6
  20. package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
  21. package/dist/definitions/StaticMap/StaticMap.d.ts +34 -0
  22. package/dist/definitions/StaticMap/StaticMap.d.ts.map +1 -0
  23. package/dist/definitions/StaticMap/StaticMapError.d.ts +7 -0
  24. package/dist/definitions/StaticMap/StaticMapError.d.ts.map +1 -0
  25. package/dist/definitions/StaticMap/StaticMapImage.d.ts +12 -0
  26. package/dist/definitions/StaticMap/StaticMapImage.d.ts.map +1 -0
  27. package/dist/definitions/StaticMap/StaticMapLoader.d.ts +3 -0
  28. package/dist/definitions/StaticMap/StaticMapLoader.d.ts.map +1 -0
  29. package/dist/definitions/StaticMap/StaticMapMarker.d.ts +8 -0
  30. package/dist/definitions/StaticMap/StaticMapMarker.d.ts.map +1 -0
  31. package/dist/definitions/StaticMap/hooks/useGetStaticMapImageUrl.d.ts +8 -0
  32. package/dist/definitions/StaticMap/hooks/useGetStaticMapImageUrl.d.ts.map +1 -0
  33. package/dist/definitions/StaticMap/utils/getRangedWidthValue.d.ts +2 -0
  34. package/dist/definitions/StaticMap/utils/getRangedWidthValue.d.ts.map +1 -0
  35. package/dist/definitions/StaticMap/utils/getShouldDisplay2x.d.ts +2 -0
  36. package/dist/definitions/StaticMap/utils/getShouldDisplay2x.d.ts.map +1 -0
  37. package/dist/definitions/StaticMap/utils/getShouldDisplay2x.web.d.ts +2 -0
  38. package/dist/definitions/StaticMap/utils/getShouldDisplay2x.web.d.ts.map +1 -0
  39. package/dist/definitions/StaticMap/utils/getStaticMapImageUrl.d.ts +15 -0
  40. package/dist/definitions/StaticMap/utils/getStaticMapImageUrl.d.ts.map +1 -0
  41. package/dist/definitions/index.d.ts +9 -0
  42. package/dist/definitions/index.d.ts.map +1 -1
  43. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +121 -0
  44. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  45. package/dist/definitions/native-base/primitives.d.ts +17 -1
  46. package/dist/definitions/native-base/primitives.d.ts.map +1 -1
  47. package/dist/definitions/themes/late-ocean/avatar.d.ts +8 -0
  48. package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
  49. package/dist/definitions/themes/late-ocean/skeleton.d.ts +6 -0
  50. package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
  51. package/dist/index-browser-all.es.android.js +796 -235
  52. package/dist/index-browser-all.es.android.js.map +1 -1
  53. package/dist/index-browser-all.es.ios.js +796 -235
  54. package/dist/index-browser-all.es.ios.js.map +1 -1
  55. package/dist/index-browser-all.es.js +852 -232
  56. package/dist/index-browser-all.es.js.map +1 -1
  57. package/dist/index-browser-all.es.web.js +865 -245
  58. package/dist/index-browser-all.es.web.js.map +1 -1
  59. package/dist/index-node-14.17.cjs.js +739 -134
  60. package/dist/index-node-14.17.cjs.js.map +1 -1
  61. package/dist/index-node-14.17.cjs.web.js +746 -136
  62. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  63. package/dist/linaria-themes-browser-all.es.android.js +24 -2
  64. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  65. package/dist/linaria-themes-browser-all.es.ios.js +24 -2
  66. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  67. package/dist/linaria-themes-browser-all.es.js +24 -2
  68. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  69. package/dist/linaria-themes-browser-all.es.web.js +24 -2
  70. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  71. package/dist/linaria-themes-node-14.17.cjs.js +24 -2
  72. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  73. package/dist/linaria-themes-node-14.17.cjs.web.js +24 -2
  74. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  75. package/dist/tsbuildinfo +1 -1
  76. package/package.json +2 -2
@@ -30,6 +30,10 @@ const View = nativeBase.View;
30
30
  const ScrollView = nativeBase.ScrollView;
31
31
  const Pressable = nativeBase.Pressable;
32
32
  const Image = nativeBase.Image;
33
+ // See: https://fettblog.eu/typescript-react-generic-forward-refs/
34
+ const FlatList = nativeBase.FlatList;
35
+ // See: https://fettblog.eu/typescript-react-generic-forward-refs/
36
+ const SectionList = nativeBase.SectionList;
33
37
 
34
38
  function createResponsiveStyleFromProp(responsiveBooleanValue, valueIfTrue, valueIfFalse) {
35
39
  // Handles simple boolean values
@@ -924,27 +928,112 @@ function Actions({
924
928
  Actions.Button = ActionsButton;
925
929
  Actions.Item = ActionsItem;
926
930
 
927
- const getInitials = (firstname, lastname) => `${firstname[0]}${lastname[0]}`.toUpperCase();
931
+ const lateOceanColorPalette = {
932
+ lateOcean: '#4C34E0',
933
+ lateOceanLight1: '#705DE6',
934
+ lateOceanLight2: '#9485EC',
935
+ lateOceanLight3: '#D6BAF9',
936
+ warmEmbrace: '#F4D3CE',
937
+ warmEmbraceLight1: '#FFEDE6',
938
+ black1000: '#000000',
939
+ black800: '#333333',
940
+ black555: '#737373',
941
+ black400: '#999999',
942
+ black200: '#CCCCCC',
943
+ black100: '#E5E5E5',
944
+ black50: '#F2F2F2',
945
+ black25: '#F9F9F9',
946
+ white: '#FFFFFF',
947
+ viride: '#38836D',
948
+ englishVermillon: '#D44148',
949
+ goldCrayola: '#F8C583',
950
+ aero: '#89BDDD',
951
+ transparent: 'transparent',
952
+ moonPurple: '#DBD6F9',
953
+ moonPurpleLight1: '#EDEBFC'
954
+ };
928
955
 
929
- const StyledAvatarView = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
930
- displayName: "Avatar__StyledAvatarView",
931
- componentId: "kitt-universal__sc-9miubv-0"
932
- })(["border-radius:", ";background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], ({
933
- theme,
934
- $isRound,
935
- $size,
936
- $sizeVariant
937
- }) => {
938
- if ($isRound) return `${$size / 2}px`;
939
- return `${$sizeVariant === 'large' ? theme.kitt.avatar.large.borderRadius : theme.kitt.avatar.borderRadius}px`;
940
- }, ({
941
- theme,
942
- $isLight
943
- }) => $isLight ? theme.kitt.avatar.light.backgroundColor : theme.kitt.avatar.default.backgroundColor, ({
944
- $size
945
- }) => $size, ({
946
- $size
947
- }) => $size);
956
+ const colors = {
957
+ primary: lateOceanColorPalette.lateOcean,
958
+ primaryLight: lateOceanColorPalette.lateOceanLight1,
959
+ accent: lateOceanColorPalette.warmEmbrace,
960
+ accentLight: lateOceanColorPalette.warmEmbraceLight1,
961
+ success: lateOceanColorPalette.viride,
962
+ correct: lateOceanColorPalette.viride,
963
+ danger: lateOceanColorPalette.englishVermillon,
964
+ info: lateOceanColorPalette.aero,
965
+ warning: lateOceanColorPalette.goldCrayola,
966
+ separator: lateOceanColorPalette.black100,
967
+ hover: lateOceanColorPalette.black100,
968
+ white: lateOceanColorPalette.white,
969
+ black: lateOceanColorPalette.black1000,
970
+ blackDisabled: lateOceanColorPalette.black400,
971
+ blackLight: lateOceanColorPalette.black555,
972
+ blackAnthracite: lateOceanColorPalette.black800,
973
+ uiBackground: lateOceanColorPalette.black25,
974
+ uiBackgroundLight: lateOceanColorPalette.white,
975
+ transparent: lateOceanColorPalette.transparent,
976
+ disabled: lateOceanColorPalette.black50,
977
+ overlay: {
978
+ dark: 'rgba(41, 48, 51, 0.25)',
979
+ light: 'rgba(255, 255, 255, 0.90)'
980
+ }
981
+ };
982
+
983
+ const defaultAvatarSize = 40;
984
+ const defaultAvatarIconSize = 20;
985
+ const largeAvatarSize = 120;
986
+ const largeAvatarIconSize = 30;
987
+ const avatar = {
988
+ borderRadius: 10,
989
+ size: defaultAvatarSize,
990
+ iconSize: defaultAvatarIconSize,
991
+ default: {
992
+ backgroundColor: colors.primary
993
+ },
994
+ light: {
995
+ backgroundColor: lateOceanColorPalette.black100
996
+ },
997
+ large: {
998
+ borderRadius: 30,
999
+ size: largeAvatarSize,
1000
+ iconSize: largeAvatarIconSize
1001
+ }
1002
+ };
1003
+
1004
+ function getCurrentRadius({
1005
+ size,
1006
+ sizeVariant,
1007
+ round
1008
+ }) {
1009
+ if (round) {
1010
+ if (size) return size * 0.5;
1011
+ if (sizeVariant === 'large') return largeAvatarSize * 0.5;
1012
+ return defaultAvatarSize * 0.5;
1013
+ }
1014
+
1015
+ if (sizeVariant === 'large') return 'kitt.avatar.large.borderRadius';
1016
+ return 'kitt.avatar.borderRadius';
1017
+ }
1018
+
1019
+ function getCurrentSize({
1020
+ size,
1021
+ sizeVariant
1022
+ }) {
1023
+ if (size) return size;
1024
+ if (sizeVariant === 'large') return 'kitt.avatar.large.size';
1025
+ return 'kitt.avatar.size';
1026
+ }
1027
+
1028
+ function getIconSize(size, sizeVariant) {
1029
+ if (typeof size === 'number') return size * 0.5;
1030
+ if (sizeVariant === 'large') return largeAvatarIconSize;
1031
+ return defaultAvatarIconSize;
1032
+ }
1033
+
1034
+ function getInitials(firstname, lastname) {
1035
+ return `${firstname[0]}${lastname[0]}`.toUpperCase();
1036
+ }
948
1037
 
949
1038
  function AvatarContent({
950
1039
  size,
@@ -956,14 +1045,13 @@ function AvatarContent({
956
1045
  sizeVariant
957
1046
  }) {
958
1047
  if (src) {
959
- return /*#__PURE__*/jsxRuntime.jsx(BabelPluginStyledComponentsReactNative.Image, {
1048
+ return /*#__PURE__*/jsxRuntime.jsx(Image, {
960
1049
  source: {
961
1050
  uri: src
962
1051
  },
963
- style: {
964
- width: size,
965
- height: size
966
- },
1052
+ width: size,
1053
+ height: size,
1054
+ alt: alt,
967
1055
  accessibilityLabel: alt
968
1056
  });
969
1057
  }
@@ -980,24 +1068,36 @@ function AvatarContent({
980
1068
  return /*#__PURE__*/jsxRuntime.jsx(Icon, {
981
1069
  icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.UserIcon, {}),
982
1070
  color: isLight ? 'black' : 'white',
983
- size: size / 2
1071
+ size: getIconSize(size, sizeVariant)
984
1072
  });
985
1073
  }
986
1074
 
987
1075
  function Avatar({
988
- size = 40,
1076
+ size,
989
1077
  round,
990
1078
  light,
991
1079
  sizeVariant,
992
1080
  ...props
993
1081
  }) {
994
- return /*#__PURE__*/jsxRuntime.jsx(StyledAvatarView, {
995
- $size: size,
996
- $isRound: round,
997
- $isLight: light,
998
- $sizeVariant: sizeVariant,
1082
+ const currentSize = getCurrentSize({
1083
+ size,
1084
+ sizeVariant
1085
+ });
1086
+ const currentBorderRadius = getCurrentRadius({
1087
+ size,
1088
+ sizeVariant,
1089
+ round
1090
+ });
1091
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
1092
+ overflow: "hidden",
1093
+ alignItems: "center",
1094
+ justifyContent: "center",
1095
+ width: currentSize,
1096
+ height: currentSize,
1097
+ borderRadius: currentBorderRadius,
1098
+ backgroundColor: `kitt.avatar.${light ? 'light' : 'default'}.backgroundColor`,
999
1099
  children: /*#__PURE__*/jsxRuntime.jsx(AvatarContent, {
1000
- size: size,
1100
+ size: currentSize,
1001
1101
  isLight: light,
1002
1102
  sizeVariant: sizeVariant,
1003
1103
  ...props
@@ -1055,9 +1155,10 @@ function ModalBehaviourPortal({
1055
1155
  visible,
1056
1156
  children
1057
1157
  }) {
1058
- useBlockBodyScroll(Boolean(visible));
1158
+ useBlockBodyScroll(Boolean(visible)); // eslint-disable-next-line react/jsx-no-useless-fragment -- Portal propTypes define a required children, preventing a null children value
1159
+
1059
1160
  return /*#__PURE__*/jsxRuntime.jsx(reactPortal.Portal, {
1060
- children: children
1161
+ children: children || /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {})
1061
1162
  });
1062
1163
  }
1063
1164
 
@@ -1898,71 +1999,6 @@ function ExternalLink({
1898
1999
  });
1899
2000
  }
1900
2001
 
1901
- const lateOceanColorPalette = {
1902
- lateOcean: '#4C34E0',
1903
- lateOceanLight1: '#705DE6',
1904
- lateOceanLight2: '#9485EC',
1905
- lateOceanLight3: '#D6BAF9',
1906
- warmEmbrace: '#F4D3CE',
1907
- warmEmbraceLight1: '#FFEDE6',
1908
- black1000: '#000000',
1909
- black800: '#333333',
1910
- black555: '#737373',
1911
- black400: '#999999',
1912
- black200: '#CCCCCC',
1913
- black100: '#E5E5E5',
1914
- black50: '#F2F2F2',
1915
- black25: '#F9F9F9',
1916
- white: '#FFFFFF',
1917
- viride: '#38836D',
1918
- englishVermillon: '#D44148',
1919
- goldCrayola: '#F8C583',
1920
- aero: '#89BDDD',
1921
- transparent: 'transparent',
1922
- moonPurple: '#DBD6F9',
1923
- moonPurpleLight1: '#EDEBFC'
1924
- };
1925
-
1926
- const colors = {
1927
- primary: lateOceanColorPalette.lateOcean,
1928
- primaryLight: lateOceanColorPalette.lateOceanLight1,
1929
- accent: lateOceanColorPalette.warmEmbrace,
1930
- accentLight: lateOceanColorPalette.warmEmbraceLight1,
1931
- success: lateOceanColorPalette.viride,
1932
- correct: lateOceanColorPalette.viride,
1933
- danger: lateOceanColorPalette.englishVermillon,
1934
- info: lateOceanColorPalette.aero,
1935
- warning: lateOceanColorPalette.goldCrayola,
1936
- separator: lateOceanColorPalette.black100,
1937
- hover: lateOceanColorPalette.black100,
1938
- white: lateOceanColorPalette.white,
1939
- black: lateOceanColorPalette.black1000,
1940
- blackDisabled: lateOceanColorPalette.black400,
1941
- blackLight: lateOceanColorPalette.black555,
1942
- blackAnthracite: lateOceanColorPalette.black800,
1943
- uiBackground: lateOceanColorPalette.black25,
1944
- uiBackgroundLight: lateOceanColorPalette.white,
1945
- transparent: lateOceanColorPalette.transparent,
1946
- disabled: lateOceanColorPalette.black50,
1947
- overlay: {
1948
- dark: 'rgba(41, 48, 51, 0.25)',
1949
- light: 'rgba(255, 255, 255, 0.90)'
1950
- }
1951
- };
1952
-
1953
- const avatar = {
1954
- borderRadius: 10,
1955
- default: {
1956
- backgroundColor: colors.primary
1957
- },
1958
- light: {
1959
- backgroundColor: lateOceanColorPalette.black100
1960
- },
1961
- large: {
1962
- borderRadius: 30
1963
- }
1964
- };
1965
-
1966
2002
  const spacing = 4;
1967
2003
 
1968
2004
  const bottomSheet = {
@@ -2620,7 +2656,21 @@ const shadows = {
2620
2656
  const skeleton = {
2621
2657
  backgroundColor: lateOceanColorPalette.black100,
2622
2658
  flareColor: lateOceanColorPalette.black200,
2623
- animationDuration: 1000
2659
+ animationDuration: 1000,
2660
+ shape: {
2661
+ bar: {
2662
+ size: 8,
2663
+ borderRadius: 4
2664
+ },
2665
+ circle: {
2666
+ size: 48,
2667
+ borderRadius: 24
2668
+ },
2669
+ square: {
2670
+ size: 48,
2671
+ borderRadius: 6
2672
+ }
2673
+ }
2624
2674
  };
2625
2675
 
2626
2676
  const tag = {
@@ -3819,6 +3869,32 @@ function IconButton({
3819
3869
  });
3820
3870
  }
3821
3871
 
3872
+ const KittMapConfigProviderContext = /*#__PURE__*/react.createContext(undefined);
3873
+ function KittMapConfigProvider({
3874
+ children,
3875
+ mapId,
3876
+ apiToken
3877
+ }) {
3878
+ const providerValue = react.useMemo(() => ({
3879
+ mapId,
3880
+ apiToken
3881
+ }), [mapId, apiToken]);
3882
+ return /*#__PURE__*/jsxRuntime.jsx(KittMapConfigProviderContext.Provider, {
3883
+ value: providerValue,
3884
+ children: children
3885
+ });
3886
+ }
3887
+
3888
+ function useKittMapConfig() {
3889
+ const context = react.useContext(KittMapConfigProviderContext);
3890
+
3891
+ if (!context) {
3892
+ throw new Error('<KittMapConfigProvider> missing in the react tree');
3893
+ }
3894
+
3895
+ return context;
3896
+ }
3897
+
3822
3898
  const ContentView$1 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
3823
3899
  displayName: "ListItemContent__ContentView",
3824
3900
  componentId: "kitt-universal__sc-57q0u9-0"
@@ -3941,6 +4017,222 @@ ListItem.Content = ListItemContent;
3941
4017
  ListItem.SideContent = ListItemSideContent;
3942
4018
  ListItem.SideContainer = ListItemSideContainer;
3943
4019
 
4020
+ const SvgMarkerLargeinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
4021
+ fill: "none",
4022
+ viewBox: "0 0 54 56",
4023
+ width: 54,
4024
+ xmlns: "http://www.w3.org/2000/svg",
4025
+ ...props,
4026
+ children: [/*#__PURE__*/jsxRuntime.jsxs("linearGradient", {
4027
+ id: "marker-large_inline_svg__b",
4028
+ gradientUnits: "userSpaceOnUse",
4029
+ x1: 26.828,
4030
+ x2: 7.181,
4031
+ y1: 5.072,
4032
+ y2: 39.102,
4033
+ children: [/*#__PURE__*/jsxRuntime.jsx("stop", {
4034
+ offset: 0,
4035
+ stopOpacity: 0.01
4036
+ }), /*#__PURE__*/jsxRuntime.jsx("stop", {
4037
+ offset: 1
4038
+ })]
4039
+ }), /*#__PURE__*/jsxRuntime.jsxs("filter", {
4040
+ id: "marker-large_inline_svg__a",
4041
+ colorInterpolationFilters: "sRGB",
4042
+ filterUnits: "userSpaceOnUse",
4043
+ height: 48.706,
4044
+ width: 42.761,
4045
+ x: 10.437,
4046
+ y: 5.167,
4047
+ children: [/*#__PURE__*/jsxRuntime.jsx("feFlood", {
4048
+ floodOpacity: 0,
4049
+ result: "BackgroundImageFix"
4050
+ }), /*#__PURE__*/jsxRuntime.jsx("feBlend", {
4051
+ in: "SourceGraphic",
4052
+ in2: "BackgroundImageFix",
4053
+ result: "shape"
4054
+ }), /*#__PURE__*/jsxRuntime.jsx("feGaussianBlur", {
4055
+ result: "effect1_foregroundBlur_257_3018",
4056
+ stdDeviation: 2.718
4057
+ })]
4058
+ }), /*#__PURE__*/jsxRuntime.jsx("mask", {
4059
+ id: "marker-large_inline_svg__c",
4060
+ height: 43,
4061
+ maskUnits: "userSpaceOnUse",
4062
+ width: 31,
4063
+ x: 3,
4064
+ y: 3,
4065
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
4066
+ d: "M16.303 44.99a3.002 3.002 0 004.394 0C29.631 35.38 34 26.678 34 18.938 34 10.12 27.04 3 18.5 3S3 10.12 3 18.938c0 7.74 4.369 16.442 13.303 26.052z",
4067
+ fill: "#fff"
4068
+ })
4069
+ }), /*#__PURE__*/jsxRuntime.jsx("g", {
4070
+ filter: "url(#marker-large_inline_svg__a)",
4071
+ opacity: 0.25,
4072
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
4073
+ d: "M24.022 48.149c-3.018 1.02-6.128-.775-6.753-3.899-1.372-6.862-2.799-18.548 1.348-25.73C22.966 10.985 32.545 8.374 40 12.678c7.454 4.303 9.982 13.903 5.63 21.44-4.146 7.182-14.98 11.79-21.608 14.032z",
4074
+ fill: "url(#marker-large_inline_svg__b)"
4075
+ })
4076
+ }), /*#__PURE__*/jsxRuntime.jsx("g", {
4077
+ mask: "url(#marker-large_inline_svg__c)",
4078
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
4079
+ d: "M3 3h31v43H3z",
4080
+ fill: "#4c34e0"
4081
+ })
4082
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
4083
+ d: "M15.677 46.315c-2.682-3.029-6.253-7.443-9.145-12.356C3.622 29.015 1.5 23.735 1.5 18.938 1.5 9.27 9.152 1.5 18.5 1.5c9.349 0 17 7.771 17 17.438 0 4.797-2.122 10.077-5.032 15.02-2.892 4.914-6.463 9.328-9.145 12.357-1.536 1.735-4.11 1.735-5.646 0z",
4084
+ stroke: "#fff",
4085
+ strokeWidth: 3
4086
+ })]
4087
+ });
4088
+
4089
+ const SvgMarkerinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
4090
+ viewBox: "0 0 40 39",
4091
+ fill: "none",
4092
+ xmlns: "http://www.w3.org/2000/svg",
4093
+ ...props,
4094
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
4095
+ d: "M16.417 33.38c-2.3.776-4.668-.592-5.146-2.971-1.059-5.274-2.171-14.297 1.027-19.837 3.348-5.798 10.717-7.806 16.452-4.495 5.735 3.31 7.68 10.697 4.333 16.495-3.198 5.54-11.57 9.088-16.666 10.808z",
4096
+ fill: "url(#marker_inline_svg__a)",
4097
+ opacity: 0.25,
4098
+ filter: "url(#marker_inline_svg__b)"
4099
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
4100
+ d: "M10.89 29.536a2.81 2.81 0 004.22 0C20.428 23.492 23 18.054 23 13.256 23 7.58 18.507 3 13 3S3 7.58 3 13.256c0 4.798 2.572 10.236 7.89 16.28z",
4101
+ fill: "#4C34E0"
4102
+ }), /*#__PURE__*/jsxRuntime.jsx("mask", {
4103
+ id: "marker_inline_svg__c",
4104
+ style: {
4105
+ maskType: "alpha"
4106
+ },
4107
+ maskUnits: "userSpaceOnUse",
4108
+ x: 3,
4109
+ y: 3,
4110
+ width: 20,
4111
+ height: 28,
4112
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
4113
+ d: "M10.89 29.536a2.81 2.81 0 004.22 0C20.428 23.492 23 18.054 23 13.256 23 7.58 18.507 3 13 3S3 7.58 3 13.256c0 4.798 2.572 10.236 7.89 16.28z",
4114
+ fill: "#fff"
4115
+ })
4116
+ }), /*#__PURE__*/jsxRuntime.jsx("g", {
4117
+ mask: "url(#marker_inline_svg__c)",
4118
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
4119
+ fill: "#4C34E0",
4120
+ d: "M3 3h20v27H3z"
4121
+ })
4122
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
4123
+ d: "M10.374 31c-1.884-2.216-4.125-5.144-5.888-8.307C2.71 19.505 1.5 16.22 1.5 13.256 1.5 6.734 6.681 1.5 13 1.5s11.5 5.234 11.5 11.756c0 2.964-1.21 6.249-2.986 9.437-1.763 3.163-4.004 6.091-5.888 8.307-1.414 1.662-3.838 1.662-5.252 0z",
4124
+ stroke: "#fff",
4125
+ strokeWidth: 3
4126
+ }), /*#__PURE__*/jsxRuntime.jsxs("defs", {
4127
+ children: [/*#__PURE__*/jsxRuntime.jsxs("linearGradient", {
4128
+ id: "marker_inline_svg__a",
4129
+ x1: 18.616,
4130
+ y1: 0.226,
4131
+ x2: 3.501,
4132
+ y2: 26.405,
4133
+ gradientUnits: "userSpaceOnUse",
4134
+ children: [/*#__PURE__*/jsxRuntime.jsx("stop", {
4135
+ stopOpacity: 0.01
4136
+ }), /*#__PURE__*/jsxRuntime.jsx("stop", {
4137
+ offset: 1
4138
+ })]
4139
+ }), /*#__PURE__*/jsxRuntime.jsxs("filter", {
4140
+ id: "marker_inline_svg__b",
4141
+ x: 6.046,
4142
+ y: 0.339,
4143
+ width: 32.817,
4144
+ height: 37.4,
4145
+ filterUnits: "userSpaceOnUse",
4146
+ colorInterpolationFilters: "sRGB",
4147
+ children: [/*#__PURE__*/jsxRuntime.jsx("feFlood", {
4148
+ floodOpacity: 0,
4149
+ result: "BackgroundImageFix"
4150
+ }), /*#__PURE__*/jsxRuntime.jsx("feBlend", {
4151
+ in: "SourceGraphic",
4152
+ in2: "BackgroundImageFix",
4153
+ result: "shape"
4154
+ }), /*#__PURE__*/jsxRuntime.jsx("feGaussianBlur", {
4155
+ stdDeviation: 2.071,
4156
+ result: "effect1_foregroundBlur_257_3020"
4157
+ })]
4158
+ })]
4159
+ })]
4160
+ });
4161
+
4162
+ const SvgPositionMarkerinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
4163
+ viewBox: "0 0 47 47",
4164
+ fill: "none",
4165
+ xmlns: "http://www.w3.org/2000/svg",
4166
+ ...props,
4167
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
4168
+ fillRule: "evenodd",
4169
+ clipRule: "evenodd",
4170
+ d: "M23.5 36C30.404 36 36 30.404 36 23.5S30.404 11 23.5 11 11 16.596 11 23.5 16.596 36 23.5 36z",
4171
+ fill: "#38836D",
4172
+ opacity: 0.8,
4173
+ filter: "url(#position-marker_inline_svg__a)"
4174
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
4175
+ d: "M31 18.5a7.5 7.5 0 11-15 0 7.5 7.5 0 0115 0z",
4176
+ fill: "#fff",
4177
+ stroke: "#38836D",
4178
+ strokeWidth: 10
4179
+ }), /*#__PURE__*/jsxRuntime.jsx("circle", {
4180
+ cx: 23.5,
4181
+ cy: 18.5,
4182
+ r: 2.5,
4183
+ fill: "#fff"
4184
+ }), /*#__PURE__*/jsxRuntime.jsx("defs", {
4185
+ children: /*#__PURE__*/jsxRuntime.jsxs("filter", {
4186
+ id: "position-marker_inline_svg__a",
4187
+ x: 0.127,
4188
+ y: 0.127,
4189
+ width: 46.746,
4190
+ height: 46.746,
4191
+ filterUnits: "userSpaceOnUse",
4192
+ colorInterpolationFilters: "sRGB",
4193
+ children: [/*#__PURE__*/jsxRuntime.jsx("feFlood", {
4194
+ floodOpacity: 0,
4195
+ result: "BackgroundImageFix"
4196
+ }), /*#__PURE__*/jsxRuntime.jsx("feBlend", {
4197
+ in: "SourceGraphic",
4198
+ in2: "BackgroundImageFix",
4199
+ result: "shape"
4200
+ }), /*#__PURE__*/jsxRuntime.jsx("feGaussianBlur", {
4201
+ stdDeviation: 5.437,
4202
+ result: "effect1_foregroundBlur_257_3019"
4203
+ })]
4204
+ })
4205
+ })]
4206
+ });
4207
+
4208
+ function MapMarkerSimple({
4209
+ width = 40,
4210
+ height = 39
4211
+ }) {
4212
+ return /*#__PURE__*/jsxRuntime.jsx(SvgMarkerinline, {
4213
+ width: width,
4214
+ height: height
4215
+ });
4216
+ }
4217
+ function MapMarkerLarge({
4218
+ width = 54,
4219
+ height = 56
4220
+ }) {
4221
+ return /*#__PURE__*/jsxRuntime.jsx(SvgMarkerLargeinline, {
4222
+ width: width,
4223
+ height: height
4224
+ });
4225
+ }
4226
+ function MapMarkerPosition({
4227
+ width = 47,
4228
+ height = 47
4229
+ }) {
4230
+ return /*#__PURE__*/jsxRuntime.jsx(SvgPositionMarkerinline, {
4231
+ width: width,
4232
+ height: height
4233
+ });
4234
+ }
4235
+
3944
4236
  function IconContent({
3945
4237
  type,
3946
4238
  color
@@ -4250,6 +4542,14 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4250
4542
  const extendedTheme = nativeBase.extendTheme({
4251
4543
  colors: {
4252
4544
  kitt: { ...theme.colors,
4545
+ avatar: {
4546
+ default: {
4547
+ backgroundColor: theme.colors.primary
4548
+ },
4549
+ light: {
4550
+ backgroundColor: theme.palettes.lateOcean.black100
4551
+ }
4552
+ },
4253
4553
  button: {
4254
4554
  default: theme.button.default,
4255
4555
  primary: theme.button.primary,
@@ -4269,13 +4569,31 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4269
4569
  borderColor: theme.forms.radioButtonGroup.item.borderColor,
4270
4570
  backgroundColor: theme.forms.radioButtonGroup.item.backgroundColor
4271
4571
  }
4572
+ },
4573
+ skeleton: {
4574
+ backgroundColor: theme.skeleton.backgroundColor,
4575
+ flareColor: theme.skeleton.flareColor
4272
4576
  }
4273
4577
  }
4274
4578
  },
4275
4579
  app: appTheme?.colors
4276
4580
  },
4277
4581
  radii: {
4582
+ // Make original native base values unsusable
4583
+ lg: Number.MAX_SAFE_INTEGER,
4584
+ md: Number.MAX_SAFE_INTEGER,
4585
+ sm: Number.MAX_SAFE_INTEGER,
4586
+ xl: Number.MAX_SAFE_INTEGER,
4587
+ xs: Number.MAX_SAFE_INTEGER,
4588
+ // Allow values like kitt.X
4589
+ ...spaces,
4278
4590
  kitt: {
4591
+ avatar: {
4592
+ borderRadius: theme.avatar.borderRadius,
4593
+ large: {
4594
+ borderRadius: theme.avatar.large.borderRadius
4595
+ }
4596
+ },
4279
4597
  borderRadius: theme.card.borderRadius,
4280
4598
  button: {
4281
4599
  borderRadius: theme.button.borderRadius
@@ -4298,6 +4616,19 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4298
4616
  },
4299
4617
  tooltip: {
4300
4618
  borderRadius: theme.tooltip.borderRadius
4619
+ },
4620
+ skeleton: {
4621
+ shape: {
4622
+ bar: {
4623
+ borderRadius: theme.skeleton.shape.bar.borderRadius
4624
+ },
4625
+ circle: {
4626
+ borderRadius: theme.skeleton.shape.circle.borderRadius
4627
+ },
4628
+ square: {
4629
+ borderRadius: theme.skeleton.shape.square.borderRadius
4630
+ }
4631
+ }
4301
4632
  }
4302
4633
  },
4303
4634
  app: appTheme?.radii
@@ -4328,6 +4659,14 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4328
4659
  sizes: { ...spaces,
4329
4660
  ...overridenNativeBaseSizeandSpaceScale,
4330
4661
  kitt: {
4662
+ avatar: {
4663
+ size: theme.avatar.size,
4664
+ iconSize: theme.avatar.iconSize,
4665
+ large: {
4666
+ size: theme.avatar.large.size,
4667
+ iconSize: theme.avatar.large.iconSize
4668
+ }
4669
+ },
4331
4670
  button: {
4332
4671
  minWidth: theme.button.minWidth,
4333
4672
  maxWidth: theme.button.maxWidth,
@@ -4359,6 +4698,19 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4359
4698
  width: theme.tooltip.arrow.width,
4360
4699
  height: theme.tooltip.arrow.height
4361
4700
  }
4701
+ },
4702
+ skeleton: {
4703
+ shape: {
4704
+ bar: {
4705
+ size: theme.skeleton.shape.bar.size
4706
+ },
4707
+ circle: {
4708
+ size: theme.skeleton.shape.circle.size
4709
+ },
4710
+ square: {
4711
+ size: theme.skeleton.shape.square.size
4712
+ }
4713
+ }
4362
4714
  }
4363
4715
  },
4364
4716
  app: appTheme?.sizes
@@ -5111,16 +5463,14 @@ function SkeletonContent({
5111
5463
  });
5112
5464
  }
5113
5465
 
5114
- const SkeletonContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
5115
- displayName: "Skeleton__SkeletonContainer",
5116
- componentId: "kitt-universal__sc-1w5cm3i-0"
5117
- })(["overflow:hidden;"]);
5118
5466
  function Skeleton({
5119
- isLoading,
5120
- style
5467
+ isLoading = false,
5468
+ style,
5469
+ ...props
5121
5470
  }) {
5122
5471
  const [width, setWidth] = react.useState(0);
5123
- return /*#__PURE__*/jsxRuntime.jsx(SkeletonContainer, {
5472
+ return /*#__PURE__*/jsxRuntime.jsx(View, { ...props,
5473
+ overflow: "hidden",
5124
5474
  style: style,
5125
5475
  onLayout: ({
5126
5476
  nativeEvent
@@ -5131,38 +5481,288 @@ function Skeleton({
5131
5481
  })
5132
5482
  });
5133
5483
  }
5134
- const Bar = /*#__PURE__*/styled__default(Skeleton).withConfig({
5135
- displayName: "Skeleton__Bar",
5136
- componentId: "kitt-universal__sc-1w5cm3i-1"
5137
- })(["width:100%;height:", "px;border-radius:", "px;"], ({
5138
- theme
5139
- }) => theme.kitt.spacing * 2, ({
5140
- theme
5141
- }) => theme.kitt.spacing * 2);
5142
- const Circle = /*#__PURE__*/styled__default(Skeleton).withConfig({
5143
- displayName: "Skeleton__Circle",
5144
- componentId: "kitt-universal__sc-1w5cm3i-2"
5145
- })(["width:", "px;height:", "px;border-radius:", "px;"], ({
5146
- theme
5147
- }) => theme.kitt.spacing * 12, ({
5148
- theme
5149
- }) => theme.kitt.spacing * 12, ({
5150
- theme
5151
- }) => theme.kitt.spacing * 6);
5152
- const Square = /*#__PURE__*/styled__default(Skeleton).withConfig({
5153
- displayName: "Skeleton__Square",
5154
- componentId: "kitt-universal__sc-1w5cm3i-3"
5155
- })(["width:", "px;height:", "px;border-radius:", "px;"], ({
5156
- theme
5157
- }) => theme.kitt.spacing * 12, ({
5158
- theme
5159
- }) => theme.kitt.spacing * 12, ({
5160
- theme
5161
- }) => theme.kitt.spacing * 1.5);
5484
+
5485
+ function Bar({
5486
+ size,
5487
+ ...props
5488
+ }) {
5489
+ const currentBorderRadius = size ? size * 0.5 : 'kitt.skeleton.shape.bar.borderRadius';
5490
+ return /*#__PURE__*/jsxRuntime.jsx(Skeleton, { ...props,
5491
+ width: "100%",
5492
+ height: size || 'kitt.skeleton.shape.bar.size',
5493
+ borderRadius: currentBorderRadius
5494
+ });
5495
+ }
5496
+
5497
+ function Circle({
5498
+ size,
5499
+ ...props
5500
+ }) {
5501
+ const currentSize = size || 'kitt.skeleton.shape.circle.size';
5502
+ const currentBorderRadius = size ? size * 0.5 : 'kitt.skeleton.shape.circle.borderRadius';
5503
+ return /*#__PURE__*/jsxRuntime.jsx(Skeleton, { ...props,
5504
+ width: currentSize,
5505
+ height: currentSize,
5506
+ borderRadius: currentBorderRadius
5507
+ });
5508
+ }
5509
+
5510
+ function Square({
5511
+ size,
5512
+ ...props
5513
+ }) {
5514
+ const currentSize = size || 'kitt.skeleton.shape.square.size';
5515
+ const currentBorderRadius = size ? size * 0.5 : 'kitt.skeleton.shape.square.borderRadius';
5516
+ return /*#__PURE__*/jsxRuntime.jsx(Skeleton, { ...props,
5517
+ width: currentSize,
5518
+ height: currentSize,
5519
+ borderRadius: currentBorderRadius
5520
+ });
5521
+ }
5522
+
5162
5523
  Skeleton.Bar = Bar;
5163
5524
  Skeleton.Circle = Circle;
5164
5525
  Skeleton.Square = Square;
5165
5526
 
5527
+ function getStaticMapImageUrl({
5528
+ mapId,
5529
+ apiToken,
5530
+ mapWidth,
5531
+ mapHeight,
5532
+ center,
5533
+ is2x
5534
+ }) {
5535
+ const width = Math.round(mapWidth);
5536
+ const height = Math.round(mapHeight);
5537
+ const centerPart = `${center.long},${center.lat},${center.zoom}/`;
5538
+ const urlParts = [`https://api.mapbox.com/styles/v1/ornikar/${mapId}/static/`, centerPart, `${width}x${height}`, is2x ? '@2x' : ''];
5539
+ const mapImageUrl = new URL(urlParts.join(''));
5540
+ mapImageUrl.searchParams.append('access_token', apiToken);
5541
+ return mapImageUrl.toString();
5542
+ }
5543
+
5544
+ function useGetStaticMapImageUrl({
5545
+ forceMapId,
5546
+ forceApiToken,
5547
+ mapWidth,
5548
+ mapHeight,
5549
+ center,
5550
+ is2x
5551
+ }) {
5552
+ const {
5553
+ mapId,
5554
+ apiToken
5555
+ } = useKittMapConfig();
5556
+ const [currentUrl, setCurrentUrl] = react.useState('');
5557
+ const currentMapIdRef = react.useRef(forceMapId || mapId);
5558
+ const currentApiTokenRef = react.useRef(forceApiToken || apiToken);
5559
+ react.useEffect(() => {
5560
+ const newUrl = getStaticMapImageUrl({
5561
+ center,
5562
+ is2x,
5563
+ mapHeight,
5564
+ mapWidth,
5565
+ mapId: currentMapIdRef.current,
5566
+ apiToken: currentApiTokenRef.current
5567
+ });
5568
+ setCurrentUrl(newUrl);
5569
+ }, [mapHeight, mapWidth, center, is2x]);
5570
+ return currentUrl;
5571
+ }
5572
+
5573
+ function StaticMapError({
5574
+ onReload
5575
+ }) {
5576
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
5577
+ alignItems: "center",
5578
+ justifyContent: "center",
5579
+ height: "100%",
5580
+ backgroundColor: "kitt.separator",
5581
+ children: /*#__PURE__*/jsxRuntime.jsx(IconButton, {
5582
+ icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.RotateCCWIcon, {}),
5583
+ onPress: onReload
5584
+ })
5585
+ });
5586
+ }
5587
+
5588
+ function StaticMapImage({
5589
+ url,
5590
+ alt,
5591
+ width,
5592
+ height,
5593
+ onLoadEnd,
5594
+ onError
5595
+ }) {
5596
+ return /*#__PURE__*/jsxRuntime.jsx(Image, {
5597
+ source: {
5598
+ uri: url
5599
+ },
5600
+ width: width,
5601
+ height: height,
5602
+ alt: alt,
5603
+ onError: onError,
5604
+ onLoadEnd: onLoadEnd
5605
+ });
5606
+ }
5607
+
5608
+ function StaticMapLoader() {
5609
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
5610
+ alignItems: "center",
5611
+ justifyContent: "center",
5612
+ height: "100%",
5613
+ children: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
5614
+ isLoading: true,
5615
+ width: "100%",
5616
+ height: "100%"
5617
+ })
5618
+ });
5619
+ }
5620
+
5621
+ function getMarkerPosition(variant) {
5622
+ if (variant === 'position') return [{
5623
+ translateX: -2
5624
+ }, {
5625
+ translateY: 8
5626
+ }];
5627
+ if (variant === 'large') return [{
5628
+ translateX: 8
5629
+ }, {
5630
+ translateY: -20
5631
+ }];
5632
+ return [{
5633
+ translateX: 6
5634
+ }, {
5635
+ translateY: -15
5636
+ }];
5637
+ }
5638
+
5639
+ function StaticMapMarker({
5640
+ variant = 'simple'
5641
+ }) {
5642
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
5643
+ position: "absolute",
5644
+ top: "0",
5645
+ left: "0",
5646
+ width: "100%",
5647
+ height: "100%",
5648
+ children: /*#__PURE__*/jsxRuntime.jsxs(View, {
5649
+ justifyContent: "center",
5650
+ alignItems: "center",
5651
+ height: "100%",
5652
+ style: {
5653
+ transform: getMarkerPosition(variant)
5654
+ },
5655
+ children: [variant === 'position' ? /*#__PURE__*/jsxRuntime.jsx(MapMarkerPosition, {}) : null, variant === 'large' ? /*#__PURE__*/jsxRuntime.jsx(MapMarkerLarge, {}) : null, variant === 'simple' ? /*#__PURE__*/jsxRuntime.jsx(MapMarkerSimple, {}) : null]
5656
+ })
5657
+ });
5658
+ }
5659
+
5660
+ function getRangedWidthValue(nextWidth, maxValue) {
5661
+ const rangedMapWidth = Math.max(1, Math.min(nextWidth, maxValue));
5662
+ return rangedMapWidth;
5663
+ }
5664
+
5665
+ function getShouldDisplay2x() {
5666
+ if (typeof window === 'undefined') {
5667
+ return true;
5668
+ } // requesting retina picture is up to the device capabilities;
5669
+
5670
+
5671
+ return window.devicePixelRatio ? window.devicePixelRatio > 1 : false;
5672
+ }
5673
+
5674
+ const mapBoxMaxPictureWidth = 1280; // Mapbox requestable width for image is between 1 - 1280px
5675
+
5676
+ function getPictureWidth(nextWidth) {
5677
+ return getRangedWidthValue(nextWidth, mapBoxMaxPictureWidth);
5678
+ }
5679
+
5680
+ function StaticMap({
5681
+ width = 0,
5682
+ height,
5683
+ alt,
5684
+ apiToken,
5685
+ mapId,
5686
+ marker,
5687
+ center,
5688
+ onLoaded,
5689
+ onError,
5690
+ ...props
5691
+ }) {
5692
+ const [currentWidth, setCurrentWidth] = react.useState(getPictureWidth(width));
5693
+ const [isLoading, setIsLoading] = react.useState(true);
5694
+ const [hasError, setHasError] = react.useState(false);
5695
+ const [currentMapKey, setCurrentMapKey] = react.useState(0);
5696
+ const shouldDisplay2xImage = getShouldDisplay2x();
5697
+ const mapUrl = useGetStaticMapImageUrl({
5698
+ forceApiToken: apiToken,
5699
+ forceMapId: mapId,
5700
+ mapWidth: currentWidth,
5701
+ mapHeight: height,
5702
+ center,
5703
+ is2x: shouldDisplay2xImage
5704
+ });
5705
+ return /*#__PURE__*/jsxRuntime.jsxs(View, {
5706
+ position: "relative",
5707
+ maxWidth: mapBoxMaxPictureWidth,
5708
+ height: height,
5709
+ onLayout: event => {
5710
+ const {
5711
+ nativeEvent
5712
+ } = event;
5713
+ const rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
5714
+ setCurrentWidth(rangedMapWidth);
5715
+ },
5716
+ ...props,
5717
+ "data-chromatic": process.env.KITT_MAP_CHROMATIC_IGNORE === 'true' ? 'ignore' : undefined,
5718
+ children: [currentWidth > 1 && mapUrl ? /*#__PURE__*/jsxRuntime.jsx(StaticMapImage, {
5719
+ url: mapUrl,
5720
+ width: currentWidth,
5721
+ height: height,
5722
+ alt: alt,
5723
+ onLoadEnd: () => {
5724
+ setIsLoading(false);
5725
+ if (onLoaded) onLoaded();
5726
+ },
5727
+ onError: () => {
5728
+ setHasError(true);
5729
+ if (onError) onError();
5730
+ }
5731
+ }, `map-key-${currentMapKey}`) : null, marker && !isLoading && !hasError ? /*#__PURE__*/jsxRuntime.jsx(View, {
5732
+ position: "absolute",
5733
+ top: "0",
5734
+ left: "0",
5735
+ width: "100%",
5736
+ height: "100%",
5737
+ children: marker
5738
+ }) : null, isLoading ? /*#__PURE__*/jsxRuntime.jsx(View, {
5739
+ position: "absolute",
5740
+ top: "0",
5741
+ left: "0",
5742
+ width: "100%",
5743
+ height: "100%",
5744
+ children: /*#__PURE__*/jsxRuntime.jsx(StaticMapLoader, {})
5745
+ }) : null, hasError ? /*#__PURE__*/jsxRuntime.jsx(View, {
5746
+ position: "absolute",
5747
+ top: "0",
5748
+ left: "0",
5749
+ width: "100%",
5750
+ height: "100%",
5751
+ children: /*#__PURE__*/jsxRuntime.jsx(StaticMapError, {
5752
+ onReload: () => {
5753
+ setHasError(false);
5754
+ setIsLoading(true);
5755
+ setCurrentMapKey(prev => prev + 1);
5756
+ }
5757
+ })
5758
+ }) : null]
5759
+ });
5760
+ }
5761
+ StaticMap.Image = StaticMapImage;
5762
+ StaticMap.Loader = StaticMapLoader;
5763
+ StaticMap.Error = StaticMapError;
5764
+ StaticMap.Marker = StaticMapMarker;
5765
+
5166
5766
  const Flex = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
5167
5767
  shouldForwardProp: (prop, defaultValidatorFn) => !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop)
5168
5768
  }).withConfig({
@@ -6028,6 +6628,7 @@ exports.DialogModal = DialogModal;
6028
6628
  exports.Emoji = Emoji;
6029
6629
  exports.ExternalAppLink = ExternalAppLink;
6030
6630
  exports.ExternalLink = ExternalLink;
6631
+ exports.FlatList = FlatList;
6031
6632
  exports.Flex = Flex;
6032
6633
  exports.HStack = HStack;
6033
6634
  exports.Highlight = Highlight;
@@ -6045,12 +6646,16 @@ exports.InputTag = InputTag;
6045
6646
  exports.InputText = InputText;
6046
6647
  exports.KittBreakpoints = KittBreakpoints;
6047
6648
  exports.KittBreakpointsMax = KittBreakpointsMax;
6649
+ exports.KittMapConfigProvider = KittMapConfigProvider;
6048
6650
  exports.KittNativeBaseProvider = KittNativeBaseProvider;
6049
6651
  exports.KittThemeDecorator = KittThemeDecorator;
6050
6652
  exports.KittThemeProvider = KittThemeProvider;
6051
6653
  exports.Label = Label;
6052
6654
  exports.ListItem = ListItem;
6053
6655
  exports.LoaderIcon = LoaderIcon;
6656
+ exports.MapMarkerLarge = MapMarkerLarge;
6657
+ exports.MapMarkerPosition = MapMarkerPosition;
6658
+ exports.MapMarkerSimple = MapMarkerSimple;
6054
6659
  exports.MatchWindowSize = MatchWindowSize;
6055
6660
  exports.Message = Message;
6056
6661
  exports.Modal = Modal;
@@ -6065,9 +6670,11 @@ exports.Radio = Radio;
6065
6670
  exports.RadioButtonGroup = RadioButtonGroup;
6066
6671
  exports.ScrollView = ScrollView;
6067
6672
  exports.Section = DeprecatedSection;
6673
+ exports.SectionList = SectionList;
6068
6674
  exports.Skeleton = Skeleton;
6069
6675
  exports.SpinningIcon = SpinningIcon;
6070
6676
  exports.Stack = Stack;
6677
+ exports.StaticMap = StaticMap;
6071
6678
  exports.Story = Story;
6072
6679
  exports.StoryBlock = StoryBlock;
6073
6680
  exports.StoryContainer = StoryContainer;
@@ -6089,11 +6696,14 @@ exports.View = View;
6089
6696
  exports.createChoicesComponent = createChoicesComponent;
6090
6697
  exports.createResponsiveStyleFromProp = createResponsiveStyleFromProp;
6091
6698
  exports.createWindowSizeHelper = createWindowSizeHelper;
6699
+ exports.getStaticMapImageUrl = getStaticMapImageUrl;
6092
6700
  exports.hex2rgba = hex2rgba;
6093
6701
  exports.matchWindowSize = matchWindowSize;
6094
6702
  exports.theme = theme;
6095
6703
  exports.useBottomSheet = useBottomSheet;
6096
6704
  exports.useCurrentBreakpointName = useCurrentBreakpointName;
6705
+ exports.useGetStaticMapImageUrl = useGetStaticMapImageUrl;
6706
+ exports.useKittMapConfig = useKittMapConfig;
6097
6707
  exports.useKittTheme = useKittTheme;
6098
6708
  exports.useMatchWindowSize = useMatchWindowSize;
6099
6709
  exports.useStaticBottomSheet = useStaticBottomSheet;