@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
@@ -39,6 +39,10 @@ const View = nativeBase.View;
39
39
  const ScrollView = nativeBase.ScrollView;
40
40
  const Pressable = nativeBase.Pressable;
41
41
  const Image = nativeBase.Image;
42
+ // See: https://fettblog.eu/typescript-react-generic-forward-refs/
43
+ const FlatList = nativeBase.FlatList;
44
+ // See: https://fettblog.eu/typescript-react-generic-forward-refs/
45
+ const SectionList = nativeBase.SectionList;
42
46
 
43
47
  function createResponsiveStyleFromProp(responsiveBooleanValue, valueIfTrue, valueIfFalse) {
44
48
  // Handles simple boolean values
@@ -930,27 +934,112 @@ function Actions({
930
934
  Actions.Button = ActionsButton;
931
935
  Actions.Item = ActionsItem;
932
936
 
933
- const getInitials = (firstname, lastname) => `${firstname[0]}${lastname[0]}`.toUpperCase();
937
+ const lateOceanColorPalette = {
938
+ lateOcean: '#4C34E0',
939
+ lateOceanLight1: '#705DE6',
940
+ lateOceanLight2: '#9485EC',
941
+ lateOceanLight3: '#D6BAF9',
942
+ warmEmbrace: '#F4D3CE',
943
+ warmEmbraceLight1: '#FFEDE6',
944
+ black1000: '#000000',
945
+ black800: '#333333',
946
+ black555: '#737373',
947
+ black400: '#999999',
948
+ black200: '#CCCCCC',
949
+ black100: '#E5E5E5',
950
+ black50: '#F2F2F2',
951
+ black25: '#F9F9F9',
952
+ white: '#FFFFFF',
953
+ viride: '#38836D',
954
+ englishVermillon: '#D44148',
955
+ goldCrayola: '#F8C583',
956
+ aero: '#89BDDD',
957
+ transparent: 'transparent',
958
+ moonPurple: '#DBD6F9',
959
+ moonPurpleLight1: '#EDEBFC'
960
+ };
934
961
 
935
- const StyledAvatarView = /*#__PURE__*/styled__default.View.withConfig({
936
- displayName: "Avatar__StyledAvatarView",
937
- componentId: "kitt-universal__sc-9miubv-0"
938
- })(["border-radius:", ";background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], ({
939
- theme,
940
- $isRound,
941
- $size,
942
- $sizeVariant
943
- }) => {
944
- if ($isRound) return `${$size / 2}px`;
945
- return `${$sizeVariant === 'large' ? theme.kitt.avatar.large.borderRadius : theme.kitt.avatar.borderRadius}px`;
946
- }, ({
947
- theme,
948
- $isLight
949
- }) => $isLight ? theme.kitt.avatar.light.backgroundColor : theme.kitt.avatar.default.backgroundColor, ({
950
- $size
951
- }) => $size, ({
952
- $size
953
- }) => $size);
962
+ const colors = {
963
+ primary: lateOceanColorPalette.lateOcean,
964
+ primaryLight: lateOceanColorPalette.lateOceanLight1,
965
+ accent: lateOceanColorPalette.warmEmbrace,
966
+ accentLight: lateOceanColorPalette.warmEmbraceLight1,
967
+ success: lateOceanColorPalette.viride,
968
+ correct: lateOceanColorPalette.viride,
969
+ danger: lateOceanColorPalette.englishVermillon,
970
+ info: lateOceanColorPalette.aero,
971
+ warning: lateOceanColorPalette.goldCrayola,
972
+ separator: lateOceanColorPalette.black100,
973
+ hover: lateOceanColorPalette.black100,
974
+ white: lateOceanColorPalette.white,
975
+ black: lateOceanColorPalette.black1000,
976
+ blackDisabled: lateOceanColorPalette.black400,
977
+ blackLight: lateOceanColorPalette.black555,
978
+ blackAnthracite: lateOceanColorPalette.black800,
979
+ uiBackground: lateOceanColorPalette.black25,
980
+ uiBackgroundLight: lateOceanColorPalette.white,
981
+ transparent: lateOceanColorPalette.transparent,
982
+ disabled: lateOceanColorPalette.black50,
983
+ overlay: {
984
+ dark: 'rgba(41, 48, 51, 0.25)',
985
+ light: 'rgba(255, 255, 255, 0.90)'
986
+ }
987
+ };
988
+
989
+ const defaultAvatarSize = 40;
990
+ const defaultAvatarIconSize = 20;
991
+ const largeAvatarSize = 120;
992
+ const largeAvatarIconSize = 30;
993
+ const avatar = {
994
+ borderRadius: 10,
995
+ size: defaultAvatarSize,
996
+ iconSize: defaultAvatarIconSize,
997
+ default: {
998
+ backgroundColor: colors.primary
999
+ },
1000
+ light: {
1001
+ backgroundColor: lateOceanColorPalette.black100
1002
+ },
1003
+ large: {
1004
+ borderRadius: 30,
1005
+ size: largeAvatarSize,
1006
+ iconSize: largeAvatarIconSize
1007
+ }
1008
+ };
1009
+
1010
+ function getCurrentRadius({
1011
+ size,
1012
+ sizeVariant,
1013
+ round
1014
+ }) {
1015
+ if (round) {
1016
+ if (size) return size * 0.5;
1017
+ if (sizeVariant === 'large') return largeAvatarSize * 0.5;
1018
+ return defaultAvatarSize * 0.5;
1019
+ }
1020
+
1021
+ if (sizeVariant === 'large') return 'kitt.avatar.large.borderRadius';
1022
+ return 'kitt.avatar.borderRadius';
1023
+ }
1024
+
1025
+ function getCurrentSize({
1026
+ size,
1027
+ sizeVariant
1028
+ }) {
1029
+ if (size) return size;
1030
+ if (sizeVariant === 'large') return 'kitt.avatar.large.size';
1031
+ return 'kitt.avatar.size';
1032
+ }
1033
+
1034
+ function getIconSize(size, sizeVariant) {
1035
+ if (typeof size === 'number') return size * 0.5;
1036
+ if (sizeVariant === 'large') return largeAvatarIconSize;
1037
+ return defaultAvatarIconSize;
1038
+ }
1039
+
1040
+ function getInitials(firstname, lastname) {
1041
+ return `${firstname[0]}${lastname[0]}`.toUpperCase();
1042
+ }
954
1043
 
955
1044
  function AvatarContent({
956
1045
  size,
@@ -962,14 +1051,13 @@ function AvatarContent({
962
1051
  sizeVariant
963
1052
  }) {
964
1053
  if (src) {
965
- return /*#__PURE__*/jsxRuntime.jsx(reactNative.Image, {
1054
+ return /*#__PURE__*/jsxRuntime.jsx(Image, {
966
1055
  source: {
967
1056
  uri: src
968
1057
  },
969
- style: {
970
- width: size,
971
- height: size
972
- },
1058
+ width: size,
1059
+ height: size,
1060
+ alt: alt,
973
1061
  accessibilityLabel: alt
974
1062
  });
975
1063
  }
@@ -986,24 +1074,36 @@ function AvatarContent({
986
1074
  return /*#__PURE__*/jsxRuntime.jsx(Icon, {
987
1075
  icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.UserIcon, {}),
988
1076
  color: isLight ? 'black' : 'white',
989
- size: size / 2
1077
+ size: getIconSize(size, sizeVariant)
990
1078
  });
991
1079
  }
992
1080
 
993
1081
  function Avatar({
994
- size = 40,
1082
+ size,
995
1083
  round,
996
1084
  light,
997
1085
  sizeVariant,
998
1086
  ...props
999
1087
  }) {
1000
- return /*#__PURE__*/jsxRuntime.jsx(StyledAvatarView, {
1001
- $size: size,
1002
- $isRound: round,
1003
- $isLight: light,
1004
- $sizeVariant: sizeVariant,
1088
+ const currentSize = getCurrentSize({
1089
+ size,
1090
+ sizeVariant
1091
+ });
1092
+ const currentBorderRadius = getCurrentRadius({
1093
+ size,
1094
+ sizeVariant,
1095
+ round
1096
+ });
1097
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
1098
+ overflow: "hidden",
1099
+ alignItems: "center",
1100
+ justifyContent: "center",
1101
+ width: currentSize,
1102
+ height: currentSize,
1103
+ borderRadius: currentBorderRadius,
1104
+ backgroundColor: `kitt.avatar.${light ? 'light' : 'default'}.backgroundColor`,
1005
1105
  children: /*#__PURE__*/jsxRuntime.jsx(AvatarContent, {
1006
- size: size,
1106
+ size: currentSize,
1007
1107
  isLight: light,
1008
1108
  sizeVariant: sizeVariant,
1009
1109
  ...props
@@ -2349,71 +2449,6 @@ function ExternalLink({
2349
2449
  });
2350
2450
  }
2351
2451
 
2352
- const lateOceanColorPalette = {
2353
- lateOcean: '#4C34E0',
2354
- lateOceanLight1: '#705DE6',
2355
- lateOceanLight2: '#9485EC',
2356
- lateOceanLight3: '#D6BAF9',
2357
- warmEmbrace: '#F4D3CE',
2358
- warmEmbraceLight1: '#FFEDE6',
2359
- black1000: '#000000',
2360
- black800: '#333333',
2361
- black555: '#737373',
2362
- black400: '#999999',
2363
- black200: '#CCCCCC',
2364
- black100: '#E5E5E5',
2365
- black50: '#F2F2F2',
2366
- black25: '#F9F9F9',
2367
- white: '#FFFFFF',
2368
- viride: '#38836D',
2369
- englishVermillon: '#D44148',
2370
- goldCrayola: '#F8C583',
2371
- aero: '#89BDDD',
2372
- transparent: 'transparent',
2373
- moonPurple: '#DBD6F9',
2374
- moonPurpleLight1: '#EDEBFC'
2375
- };
2376
-
2377
- const colors = {
2378
- primary: lateOceanColorPalette.lateOcean,
2379
- primaryLight: lateOceanColorPalette.lateOceanLight1,
2380
- accent: lateOceanColorPalette.warmEmbrace,
2381
- accentLight: lateOceanColorPalette.warmEmbraceLight1,
2382
- success: lateOceanColorPalette.viride,
2383
- correct: lateOceanColorPalette.viride,
2384
- danger: lateOceanColorPalette.englishVermillon,
2385
- info: lateOceanColorPalette.aero,
2386
- warning: lateOceanColorPalette.goldCrayola,
2387
- separator: lateOceanColorPalette.black100,
2388
- hover: lateOceanColorPalette.black100,
2389
- white: lateOceanColorPalette.white,
2390
- black: lateOceanColorPalette.black1000,
2391
- blackDisabled: lateOceanColorPalette.black400,
2392
- blackLight: lateOceanColorPalette.black555,
2393
- blackAnthracite: lateOceanColorPalette.black800,
2394
- uiBackground: lateOceanColorPalette.black25,
2395
- uiBackgroundLight: lateOceanColorPalette.white,
2396
- transparent: lateOceanColorPalette.transparent,
2397
- disabled: lateOceanColorPalette.black50,
2398
- overlay: {
2399
- dark: 'rgba(41, 48, 51, 0.25)',
2400
- light: 'rgba(255, 255, 255, 0.90)'
2401
- }
2402
- };
2403
-
2404
- const avatar = {
2405
- borderRadius: 10,
2406
- default: {
2407
- backgroundColor: colors.primary
2408
- },
2409
- light: {
2410
- backgroundColor: lateOceanColorPalette.black100
2411
- },
2412
- large: {
2413
- borderRadius: 30
2414
- }
2415
- };
2416
-
2417
2452
  const spacing = 4;
2418
2453
 
2419
2454
  const bottomSheet = {
@@ -3071,7 +3106,21 @@ const shadows = {
3071
3106
  const skeleton = {
3072
3107
  backgroundColor: lateOceanColorPalette.black100,
3073
3108
  flareColor: lateOceanColorPalette.black200,
3074
- animationDuration: 1000
3109
+ animationDuration: 1000,
3110
+ shape: {
3111
+ bar: {
3112
+ size: 8,
3113
+ borderRadius: 4
3114
+ },
3115
+ circle: {
3116
+ size: 48,
3117
+ borderRadius: 24
3118
+ },
3119
+ square: {
3120
+ size: 48,
3121
+ borderRadius: 6
3122
+ }
3123
+ }
3075
3124
  };
3076
3125
 
3077
3126
  const tag = {
@@ -4702,6 +4751,32 @@ function Highlight({
4702
4751
  });
4703
4752
  }
4704
4753
 
4754
+ const KittMapConfigProviderContext = /*#__PURE__*/React.createContext(undefined);
4755
+ function KittMapConfigProvider({
4756
+ children,
4757
+ mapId,
4758
+ apiToken
4759
+ }) {
4760
+ const providerValue = React.useMemo(() => ({
4761
+ mapId,
4762
+ apiToken
4763
+ }), [mapId, apiToken]);
4764
+ return /*#__PURE__*/jsxRuntime.jsx(KittMapConfigProviderContext.Provider, {
4765
+ value: providerValue,
4766
+ children: children
4767
+ });
4768
+ }
4769
+
4770
+ function useKittMapConfig() {
4771
+ const context = React.useContext(KittMapConfigProviderContext);
4772
+
4773
+ if (!context) {
4774
+ throw new Error('<KittMapConfigProvider> missing in the react tree');
4775
+ }
4776
+
4777
+ return context;
4778
+ }
4779
+
4705
4780
  const ContentView = /*#__PURE__*/styled__default.View.withConfig({
4706
4781
  displayName: "ListItemContent__ContentView",
4707
4782
  componentId: "kitt-universal__sc-57q0u9-0"
@@ -4824,6 +4899,222 @@ ListItem.Content = ListItemContent;
4824
4899
  ListItem.SideContent = ListItemSideContent;
4825
4900
  ListItem.SideContainer = ListItemSideContainer;
4826
4901
 
4902
+ const SvgMarkerLargeinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
4903
+ fill: "none",
4904
+ viewBox: "0 0 54 56",
4905
+ width: 54,
4906
+ xmlns: "http://www.w3.org/2000/svg",
4907
+ ...props,
4908
+ children: [/*#__PURE__*/jsxRuntime.jsxs("linearGradient", {
4909
+ id: "marker-large_inline_svg__b",
4910
+ gradientUnits: "userSpaceOnUse",
4911
+ x1: 26.828,
4912
+ x2: 7.181,
4913
+ y1: 5.072,
4914
+ y2: 39.102,
4915
+ children: [/*#__PURE__*/jsxRuntime.jsx("stop", {
4916
+ offset: 0,
4917
+ stopOpacity: 0.01
4918
+ }), /*#__PURE__*/jsxRuntime.jsx("stop", {
4919
+ offset: 1
4920
+ })]
4921
+ }), /*#__PURE__*/jsxRuntime.jsxs("filter", {
4922
+ id: "marker-large_inline_svg__a",
4923
+ colorInterpolationFilters: "sRGB",
4924
+ filterUnits: "userSpaceOnUse",
4925
+ height: 48.706,
4926
+ width: 42.761,
4927
+ x: 10.437,
4928
+ y: 5.167,
4929
+ children: [/*#__PURE__*/jsxRuntime.jsx("feFlood", {
4930
+ floodOpacity: 0,
4931
+ result: "BackgroundImageFix"
4932
+ }), /*#__PURE__*/jsxRuntime.jsx("feBlend", {
4933
+ in: "SourceGraphic",
4934
+ in2: "BackgroundImageFix",
4935
+ result: "shape"
4936
+ }), /*#__PURE__*/jsxRuntime.jsx("feGaussianBlur", {
4937
+ result: "effect1_foregroundBlur_257_3018",
4938
+ stdDeviation: 2.718
4939
+ })]
4940
+ }), /*#__PURE__*/jsxRuntime.jsx("mask", {
4941
+ id: "marker-large_inline_svg__c",
4942
+ height: 43,
4943
+ maskUnits: "userSpaceOnUse",
4944
+ width: 31,
4945
+ x: 3,
4946
+ y: 3,
4947
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
4948
+ 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",
4949
+ fill: "#fff"
4950
+ })
4951
+ }), /*#__PURE__*/jsxRuntime.jsx("g", {
4952
+ filter: "url(#marker-large_inline_svg__a)",
4953
+ opacity: 0.25,
4954
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
4955
+ 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",
4956
+ fill: "url(#marker-large_inline_svg__b)"
4957
+ })
4958
+ }), /*#__PURE__*/jsxRuntime.jsx("g", {
4959
+ mask: "url(#marker-large_inline_svg__c)",
4960
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
4961
+ d: "M3 3h31v43H3z",
4962
+ fill: "#4c34e0"
4963
+ })
4964
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
4965
+ 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",
4966
+ stroke: "#fff",
4967
+ strokeWidth: 3
4968
+ })]
4969
+ });
4970
+
4971
+ const SvgMarkerinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
4972
+ viewBox: "0 0 40 39",
4973
+ fill: "none",
4974
+ xmlns: "http://www.w3.org/2000/svg",
4975
+ ...props,
4976
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
4977
+ 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",
4978
+ fill: "url(#marker_inline_svg__a)",
4979
+ opacity: 0.25,
4980
+ filter: "url(#marker_inline_svg__b)"
4981
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
4982
+ 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",
4983
+ fill: "#4C34E0"
4984
+ }), /*#__PURE__*/jsxRuntime.jsx("mask", {
4985
+ id: "marker_inline_svg__c",
4986
+ style: {
4987
+ maskType: "alpha"
4988
+ },
4989
+ maskUnits: "userSpaceOnUse",
4990
+ x: 3,
4991
+ y: 3,
4992
+ width: 20,
4993
+ height: 28,
4994
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
4995
+ 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",
4996
+ fill: "#fff"
4997
+ })
4998
+ }), /*#__PURE__*/jsxRuntime.jsx("g", {
4999
+ mask: "url(#marker_inline_svg__c)",
5000
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
5001
+ fill: "#4C34E0",
5002
+ d: "M3 3h20v27H3z"
5003
+ })
5004
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
5005
+ 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",
5006
+ stroke: "#fff",
5007
+ strokeWidth: 3
5008
+ }), /*#__PURE__*/jsxRuntime.jsxs("defs", {
5009
+ children: [/*#__PURE__*/jsxRuntime.jsxs("linearGradient", {
5010
+ id: "marker_inline_svg__a",
5011
+ x1: 18.616,
5012
+ y1: 0.226,
5013
+ x2: 3.501,
5014
+ y2: 26.405,
5015
+ gradientUnits: "userSpaceOnUse",
5016
+ children: [/*#__PURE__*/jsxRuntime.jsx("stop", {
5017
+ stopOpacity: 0.01
5018
+ }), /*#__PURE__*/jsxRuntime.jsx("stop", {
5019
+ offset: 1
5020
+ })]
5021
+ }), /*#__PURE__*/jsxRuntime.jsxs("filter", {
5022
+ id: "marker_inline_svg__b",
5023
+ x: 6.046,
5024
+ y: 0.339,
5025
+ width: 32.817,
5026
+ height: 37.4,
5027
+ filterUnits: "userSpaceOnUse",
5028
+ colorInterpolationFilters: "sRGB",
5029
+ children: [/*#__PURE__*/jsxRuntime.jsx("feFlood", {
5030
+ floodOpacity: 0,
5031
+ result: "BackgroundImageFix"
5032
+ }), /*#__PURE__*/jsxRuntime.jsx("feBlend", {
5033
+ in: "SourceGraphic",
5034
+ in2: "BackgroundImageFix",
5035
+ result: "shape"
5036
+ }), /*#__PURE__*/jsxRuntime.jsx("feGaussianBlur", {
5037
+ stdDeviation: 2.071,
5038
+ result: "effect1_foregroundBlur_257_3020"
5039
+ })]
5040
+ })]
5041
+ })]
5042
+ });
5043
+
5044
+ const SvgPositionMarkerinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
5045
+ viewBox: "0 0 47 47",
5046
+ fill: "none",
5047
+ xmlns: "http://www.w3.org/2000/svg",
5048
+ ...props,
5049
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
5050
+ fillRule: "evenodd",
5051
+ clipRule: "evenodd",
5052
+ 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",
5053
+ fill: "#38836D",
5054
+ opacity: 0.8,
5055
+ filter: "url(#position-marker_inline_svg__a)"
5056
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
5057
+ d: "M31 18.5a7.5 7.5 0 11-15 0 7.5 7.5 0 0115 0z",
5058
+ fill: "#fff",
5059
+ stroke: "#38836D",
5060
+ strokeWidth: 10
5061
+ }), /*#__PURE__*/jsxRuntime.jsx("circle", {
5062
+ cx: 23.5,
5063
+ cy: 18.5,
5064
+ r: 2.5,
5065
+ fill: "#fff"
5066
+ }), /*#__PURE__*/jsxRuntime.jsx("defs", {
5067
+ children: /*#__PURE__*/jsxRuntime.jsxs("filter", {
5068
+ id: "position-marker_inline_svg__a",
5069
+ x: 0.127,
5070
+ y: 0.127,
5071
+ width: 46.746,
5072
+ height: 46.746,
5073
+ filterUnits: "userSpaceOnUse",
5074
+ colorInterpolationFilters: "sRGB",
5075
+ children: [/*#__PURE__*/jsxRuntime.jsx("feFlood", {
5076
+ floodOpacity: 0,
5077
+ result: "BackgroundImageFix"
5078
+ }), /*#__PURE__*/jsxRuntime.jsx("feBlend", {
5079
+ in: "SourceGraphic",
5080
+ in2: "BackgroundImageFix",
5081
+ result: "shape"
5082
+ }), /*#__PURE__*/jsxRuntime.jsx("feGaussianBlur", {
5083
+ stdDeviation: 5.437,
5084
+ result: "effect1_foregroundBlur_257_3019"
5085
+ })]
5086
+ })
5087
+ })]
5088
+ });
5089
+
5090
+ function MapMarkerSimple({
5091
+ width = 40,
5092
+ height = 39
5093
+ }) {
5094
+ return /*#__PURE__*/jsxRuntime.jsx(SvgMarkerinline, {
5095
+ width: width,
5096
+ height: height
5097
+ });
5098
+ }
5099
+ function MapMarkerLarge({
5100
+ width = 54,
5101
+ height = 56
5102
+ }) {
5103
+ return /*#__PURE__*/jsxRuntime.jsx(SvgMarkerLargeinline, {
5104
+ width: width,
5105
+ height: height
5106
+ });
5107
+ }
5108
+ function MapMarkerPosition({
5109
+ width = 47,
5110
+ height = 47
5111
+ }) {
5112
+ return /*#__PURE__*/jsxRuntime.jsx(SvgPositionMarkerinline, {
5113
+ width: width,
5114
+ height: height
5115
+ });
5116
+ }
5117
+
4827
5118
  function IconContent({
4828
5119
  type,
4829
5120
  color
@@ -5002,6 +5293,14 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
5002
5293
  const extendedTheme = nativeBase.extendTheme({
5003
5294
  colors: {
5004
5295
  kitt: { ...theme.colors,
5296
+ avatar: {
5297
+ default: {
5298
+ backgroundColor: theme.colors.primary
5299
+ },
5300
+ light: {
5301
+ backgroundColor: theme.palettes.lateOcean.black100
5302
+ }
5303
+ },
5005
5304
  button: {
5006
5305
  default: theme.button.default,
5007
5306
  primary: theme.button.primary,
@@ -5021,13 +5320,31 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
5021
5320
  borderColor: theme.forms.radioButtonGroup.item.borderColor,
5022
5321
  backgroundColor: theme.forms.radioButtonGroup.item.backgroundColor
5023
5322
  }
5323
+ },
5324
+ skeleton: {
5325
+ backgroundColor: theme.skeleton.backgroundColor,
5326
+ flareColor: theme.skeleton.flareColor
5024
5327
  }
5025
5328
  }
5026
5329
  },
5027
5330
  app: appTheme?.colors
5028
5331
  },
5029
5332
  radii: {
5333
+ // Make original native base values unsusable
5334
+ lg: Number.MAX_SAFE_INTEGER,
5335
+ md: Number.MAX_SAFE_INTEGER,
5336
+ sm: Number.MAX_SAFE_INTEGER,
5337
+ xl: Number.MAX_SAFE_INTEGER,
5338
+ xs: Number.MAX_SAFE_INTEGER,
5339
+ // Allow values like kitt.X
5340
+ ...spaces,
5030
5341
  kitt: {
5342
+ avatar: {
5343
+ borderRadius: theme.avatar.borderRadius,
5344
+ large: {
5345
+ borderRadius: theme.avatar.large.borderRadius
5346
+ }
5347
+ },
5031
5348
  borderRadius: theme.card.borderRadius,
5032
5349
  button: {
5033
5350
  borderRadius: theme.button.borderRadius
@@ -5050,6 +5367,19 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
5050
5367
  },
5051
5368
  tooltip: {
5052
5369
  borderRadius: theme.tooltip.borderRadius
5370
+ },
5371
+ skeleton: {
5372
+ shape: {
5373
+ bar: {
5374
+ borderRadius: theme.skeleton.shape.bar.borderRadius
5375
+ },
5376
+ circle: {
5377
+ borderRadius: theme.skeleton.shape.circle.borderRadius
5378
+ },
5379
+ square: {
5380
+ borderRadius: theme.skeleton.shape.square.borderRadius
5381
+ }
5382
+ }
5053
5383
  }
5054
5384
  },
5055
5385
  app: appTheme?.radii
@@ -5080,6 +5410,14 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
5080
5410
  sizes: { ...spaces,
5081
5411
  ...overridenNativeBaseSizeandSpaceScale,
5082
5412
  kitt: {
5413
+ avatar: {
5414
+ size: theme.avatar.size,
5415
+ iconSize: theme.avatar.iconSize,
5416
+ large: {
5417
+ size: theme.avatar.large.size,
5418
+ iconSize: theme.avatar.large.iconSize
5419
+ }
5420
+ },
5083
5421
  button: {
5084
5422
  minWidth: theme.button.minWidth,
5085
5423
  maxWidth: theme.button.maxWidth,
@@ -5111,6 +5449,19 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
5111
5449
  width: theme.tooltip.arrow.width,
5112
5450
  height: theme.tooltip.arrow.height
5113
5451
  }
5452
+ },
5453
+ skeleton: {
5454
+ shape: {
5455
+ bar: {
5456
+ size: theme.skeleton.shape.bar.size
5457
+ },
5458
+ circle: {
5459
+ size: theme.skeleton.shape.circle.size
5460
+ },
5461
+ square: {
5462
+ size: theme.skeleton.shape.square.size
5463
+ }
5464
+ }
5114
5465
  }
5115
5466
  },
5116
5467
  app: appTheme?.sizes
@@ -6168,16 +6519,14 @@ function SkeletonContent({
6168
6519
  });
6169
6520
  }
6170
6521
 
6171
- const SkeletonContainer = /*#__PURE__*/styled__default(reactNative.View).withConfig({
6172
- displayName: "Skeleton__SkeletonContainer",
6173
- componentId: "kitt-universal__sc-1w5cm3i-0"
6174
- })(["overflow:hidden;"]);
6175
6522
  function Skeleton({
6176
- isLoading,
6177
- style
6523
+ isLoading = false,
6524
+ style,
6525
+ ...props
6178
6526
  }) {
6179
6527
  const [width, setWidth] = React.useState(0);
6180
- return /*#__PURE__*/jsxRuntime.jsx(SkeletonContainer, {
6528
+ return /*#__PURE__*/jsxRuntime.jsx(View, { ...props,
6529
+ overflow: "hidden",
6181
6530
  style: style,
6182
6531
  onLayout: ({
6183
6532
  nativeEvent
@@ -6188,38 +6537,284 @@ function Skeleton({
6188
6537
  })
6189
6538
  });
6190
6539
  }
6191
- const Bar = /*#__PURE__*/styled__default(Skeleton).withConfig({
6192
- displayName: "Skeleton__Bar",
6193
- componentId: "kitt-universal__sc-1w5cm3i-1"
6194
- })(["width:100%;height:", "px;border-radius:", "px;"], ({
6195
- theme
6196
- }) => theme.kitt.spacing * 2, ({
6197
- theme
6198
- }) => theme.kitt.spacing * 2);
6199
- const Circle = /*#__PURE__*/styled__default(Skeleton).withConfig({
6200
- displayName: "Skeleton__Circle",
6201
- componentId: "kitt-universal__sc-1w5cm3i-2"
6202
- })(["width:", "px;height:", "px;border-radius:", "px;"], ({
6203
- theme
6204
- }) => theme.kitt.spacing * 12, ({
6205
- theme
6206
- }) => theme.kitt.spacing * 12, ({
6207
- theme
6208
- }) => theme.kitt.spacing * 6);
6209
- const Square = /*#__PURE__*/styled__default(Skeleton).withConfig({
6210
- displayName: "Skeleton__Square",
6211
- componentId: "kitt-universal__sc-1w5cm3i-3"
6212
- })(["width:", "px;height:", "px;border-radius:", "px;"], ({
6213
- theme
6214
- }) => theme.kitt.spacing * 12, ({
6215
- theme
6216
- }) => theme.kitt.spacing * 12, ({
6217
- theme
6218
- }) => theme.kitt.spacing * 1.5);
6540
+
6541
+ function Bar({
6542
+ size,
6543
+ ...props
6544
+ }) {
6545
+ const currentBorderRadius = size ? size * 0.5 : 'kitt.skeleton.shape.bar.borderRadius';
6546
+ return /*#__PURE__*/jsxRuntime.jsx(Skeleton, { ...props,
6547
+ width: "100%",
6548
+ height: size || 'kitt.skeleton.shape.bar.size',
6549
+ borderRadius: currentBorderRadius
6550
+ });
6551
+ }
6552
+
6553
+ function Circle({
6554
+ size,
6555
+ ...props
6556
+ }) {
6557
+ const currentSize = size || 'kitt.skeleton.shape.circle.size';
6558
+ const currentBorderRadius = size ? size * 0.5 : 'kitt.skeleton.shape.circle.borderRadius';
6559
+ return /*#__PURE__*/jsxRuntime.jsx(Skeleton, { ...props,
6560
+ width: currentSize,
6561
+ height: currentSize,
6562
+ borderRadius: currentBorderRadius
6563
+ });
6564
+ }
6565
+
6566
+ function Square({
6567
+ size,
6568
+ ...props
6569
+ }) {
6570
+ const currentSize = size || 'kitt.skeleton.shape.square.size';
6571
+ const currentBorderRadius = size ? size * 0.5 : 'kitt.skeleton.shape.square.borderRadius';
6572
+ return /*#__PURE__*/jsxRuntime.jsx(Skeleton, { ...props,
6573
+ width: currentSize,
6574
+ height: currentSize,
6575
+ borderRadius: currentBorderRadius
6576
+ });
6577
+ }
6578
+
6219
6579
  Skeleton.Bar = Bar;
6220
6580
  Skeleton.Circle = Circle;
6221
6581
  Skeleton.Square = Square;
6222
6582
 
6583
+ function getStaticMapImageUrl({
6584
+ mapId,
6585
+ apiToken,
6586
+ mapWidth,
6587
+ mapHeight,
6588
+ center,
6589
+ is2x
6590
+ }) {
6591
+ const width = Math.round(mapWidth);
6592
+ const height = Math.round(mapHeight);
6593
+ const centerPart = `${center.long},${center.lat},${center.zoom}/`;
6594
+ const urlParts = [`https://api.mapbox.com/styles/v1/ornikar/${mapId}/static/`, centerPart, `${width}x${height}`, is2x ? '@2x' : ''];
6595
+ const mapImageUrl = new URL(urlParts.join(''));
6596
+ mapImageUrl.searchParams.append('access_token', apiToken);
6597
+ return mapImageUrl.toString();
6598
+ }
6599
+
6600
+ function useGetStaticMapImageUrl({
6601
+ forceMapId,
6602
+ forceApiToken,
6603
+ mapWidth,
6604
+ mapHeight,
6605
+ center,
6606
+ is2x
6607
+ }) {
6608
+ const {
6609
+ mapId,
6610
+ apiToken
6611
+ } = useKittMapConfig();
6612
+ const [currentUrl, setCurrentUrl] = React.useState('');
6613
+ const currentMapIdRef = React.useRef(forceMapId || mapId);
6614
+ const currentApiTokenRef = React.useRef(forceApiToken || apiToken);
6615
+ React.useEffect(() => {
6616
+ const newUrl = getStaticMapImageUrl({
6617
+ center,
6618
+ is2x,
6619
+ mapHeight,
6620
+ mapWidth,
6621
+ mapId: currentMapIdRef.current,
6622
+ apiToken: currentApiTokenRef.current
6623
+ });
6624
+ setCurrentUrl(newUrl);
6625
+ }, [mapHeight, mapWidth, center, is2x]);
6626
+ return currentUrl;
6627
+ }
6628
+
6629
+ function StaticMapError({
6630
+ onReload
6631
+ }) {
6632
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
6633
+ alignItems: "center",
6634
+ justifyContent: "center",
6635
+ height: "100%",
6636
+ backgroundColor: "kitt.separator",
6637
+ children: /*#__PURE__*/jsxRuntime.jsx(IconButton, {
6638
+ icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.RotateCCWIcon, {}),
6639
+ onPress: onReload
6640
+ })
6641
+ });
6642
+ }
6643
+
6644
+ function StaticMapImage({
6645
+ url,
6646
+ alt,
6647
+ width,
6648
+ height,
6649
+ onLoadEnd,
6650
+ onError
6651
+ }) {
6652
+ return /*#__PURE__*/jsxRuntime.jsx(Image, {
6653
+ source: {
6654
+ uri: url
6655
+ },
6656
+ width: width,
6657
+ height: height,
6658
+ alt: alt,
6659
+ onError: onError,
6660
+ onLoadEnd: onLoadEnd
6661
+ });
6662
+ }
6663
+
6664
+ function StaticMapLoader() {
6665
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
6666
+ alignItems: "center",
6667
+ justifyContent: "center",
6668
+ height: "100%",
6669
+ children: /*#__PURE__*/jsxRuntime.jsx(Skeleton, {
6670
+ isLoading: true,
6671
+ width: "100%",
6672
+ height: "100%"
6673
+ })
6674
+ });
6675
+ }
6676
+
6677
+ function getMarkerPosition(variant) {
6678
+ if (variant === 'position') return [{
6679
+ translateX: -2
6680
+ }, {
6681
+ translateY: 8
6682
+ }];
6683
+ if (variant === 'large') return [{
6684
+ translateX: 8
6685
+ }, {
6686
+ translateY: -20
6687
+ }];
6688
+ return [{
6689
+ translateX: 6
6690
+ }, {
6691
+ translateY: -15
6692
+ }];
6693
+ }
6694
+
6695
+ function StaticMapMarker({
6696
+ variant = 'simple'
6697
+ }) {
6698
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
6699
+ position: "absolute",
6700
+ top: "0",
6701
+ left: "0",
6702
+ width: "100%",
6703
+ height: "100%",
6704
+ children: /*#__PURE__*/jsxRuntime.jsxs(View, {
6705
+ justifyContent: "center",
6706
+ alignItems: "center",
6707
+ height: "100%",
6708
+ style: {
6709
+ transform: getMarkerPosition(variant)
6710
+ },
6711
+ children: [variant === 'position' ? /*#__PURE__*/jsxRuntime.jsx(MapMarkerPosition, {}) : null, variant === 'large' ? /*#__PURE__*/jsxRuntime.jsx(MapMarkerLarge, {}) : null, variant === 'simple' ? /*#__PURE__*/jsxRuntime.jsx(MapMarkerSimple, {}) : null]
6712
+ })
6713
+ });
6714
+ }
6715
+
6716
+ function getRangedWidthValue(nextWidth, maxValue) {
6717
+ const rangedMapWidth = Math.max(1, Math.min(nextWidth, maxValue));
6718
+ return rangedMapWidth;
6719
+ }
6720
+
6721
+ function getShouldDisplay2x() {
6722
+ const currentDevicePixelRatio = reactNative.PixelRatio.get();
6723
+ return currentDevicePixelRatio > 1;
6724
+ }
6725
+
6726
+ const mapBoxMaxPictureWidth = 1280; // Mapbox requestable width for image is between 1 - 1280px
6727
+
6728
+ function getPictureWidth(nextWidth) {
6729
+ return getRangedWidthValue(nextWidth, mapBoxMaxPictureWidth);
6730
+ }
6731
+
6732
+ function StaticMap({
6733
+ width = 0,
6734
+ height,
6735
+ alt,
6736
+ apiToken,
6737
+ mapId,
6738
+ marker,
6739
+ center,
6740
+ onLoaded,
6741
+ onError,
6742
+ ...props
6743
+ }) {
6744
+ const [currentWidth, setCurrentWidth] = React.useState(getPictureWidth(width));
6745
+ const [isLoading, setIsLoading] = React.useState(true);
6746
+ const [hasError, setHasError] = React.useState(false);
6747
+ const [currentMapKey, setCurrentMapKey] = React.useState(0);
6748
+ const shouldDisplay2xImage = getShouldDisplay2x();
6749
+ const mapUrl = useGetStaticMapImageUrl({
6750
+ forceApiToken: apiToken,
6751
+ forceMapId: mapId,
6752
+ mapWidth: currentWidth,
6753
+ mapHeight: height,
6754
+ center,
6755
+ is2x: shouldDisplay2xImage
6756
+ });
6757
+ return /*#__PURE__*/jsxRuntime.jsxs(View, {
6758
+ position: "relative",
6759
+ maxWidth: mapBoxMaxPictureWidth,
6760
+ height: height,
6761
+ onLayout: event => {
6762
+ const {
6763
+ nativeEvent
6764
+ } = event;
6765
+ const rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
6766
+ setCurrentWidth(rangedMapWidth);
6767
+ },
6768
+ ...props,
6769
+ "data-chromatic": process.env.KITT_MAP_CHROMATIC_IGNORE === 'true' ? 'ignore' : undefined,
6770
+ children: [currentWidth > 1 && mapUrl ? /*#__PURE__*/jsxRuntime.jsx(StaticMapImage, {
6771
+ url: mapUrl,
6772
+ width: currentWidth,
6773
+ height: height,
6774
+ alt: alt,
6775
+ onLoadEnd: () => {
6776
+ setIsLoading(false);
6777
+ if (onLoaded) onLoaded();
6778
+ },
6779
+ onError: () => {
6780
+ setHasError(true);
6781
+ if (onError) onError();
6782
+ }
6783
+ }, `map-key-${currentMapKey}`) : null, marker && !isLoading && !hasError ? /*#__PURE__*/jsxRuntime.jsx(View, {
6784
+ position: "absolute",
6785
+ top: "0",
6786
+ left: "0",
6787
+ width: "100%",
6788
+ height: "100%",
6789
+ children: marker
6790
+ }) : null, isLoading ? /*#__PURE__*/jsxRuntime.jsx(View, {
6791
+ position: "absolute",
6792
+ top: "0",
6793
+ left: "0",
6794
+ width: "100%",
6795
+ height: "100%",
6796
+ children: /*#__PURE__*/jsxRuntime.jsx(StaticMapLoader, {})
6797
+ }) : null, hasError ? /*#__PURE__*/jsxRuntime.jsx(View, {
6798
+ position: "absolute",
6799
+ top: "0",
6800
+ left: "0",
6801
+ width: "100%",
6802
+ height: "100%",
6803
+ children: /*#__PURE__*/jsxRuntime.jsx(StaticMapError, {
6804
+ onReload: () => {
6805
+ setHasError(false);
6806
+ setIsLoading(true);
6807
+ setCurrentMapKey(prev => prev + 1);
6808
+ }
6809
+ })
6810
+ }) : null]
6811
+ });
6812
+ }
6813
+ StaticMap.Image = StaticMapImage;
6814
+ StaticMap.Loader = StaticMapLoader;
6815
+ StaticMap.Error = StaticMapError;
6816
+ StaticMap.Marker = StaticMapMarker;
6817
+
6223
6818
  const Flex = /*#__PURE__*/styled__default.View.withConfig({
6224
6819
  shouldForwardProp: (prop, defaultValidatorFn) => !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop)
6225
6820
  }).withConfig({
@@ -7253,6 +7848,7 @@ exports.DialogModal = DialogModal;
7253
7848
  exports.Emoji = Emoji;
7254
7849
  exports.ExternalAppLink = ExternalAppLink;
7255
7850
  exports.ExternalLink = ExternalLink;
7851
+ exports.FlatList = FlatList;
7256
7852
  exports.Flex = Flex;
7257
7853
  exports.HStack = HStack;
7258
7854
  exports.Highlight = Highlight;
@@ -7270,12 +7866,16 @@ exports.InputTag = InputTag;
7270
7866
  exports.InputText = InputText;
7271
7867
  exports.KittBreakpoints = KittBreakpoints;
7272
7868
  exports.KittBreakpointsMax = KittBreakpointsMax;
7869
+ exports.KittMapConfigProvider = KittMapConfigProvider;
7273
7870
  exports.KittNativeBaseProvider = KittNativeBaseProvider;
7274
7871
  exports.KittThemeDecorator = KittThemeDecorator;
7275
7872
  exports.KittThemeProvider = KittThemeProvider;
7276
7873
  exports.Label = Label;
7277
7874
  exports.ListItem = ListItem;
7278
7875
  exports.LoaderIcon = LoaderIcon;
7876
+ exports.MapMarkerLarge = MapMarkerLarge;
7877
+ exports.MapMarkerPosition = MapMarkerPosition;
7878
+ exports.MapMarkerSimple = MapMarkerSimple;
7279
7879
  exports.MatchWindowSize = MatchWindowSize;
7280
7880
  exports.Message = Message;
7281
7881
  exports.Modal = Modal;
@@ -7290,9 +7890,11 @@ exports.Radio = Radio;
7290
7890
  exports.RadioButtonGroup = RadioButtonGroup;
7291
7891
  exports.ScrollView = ScrollView;
7292
7892
  exports.Section = DeprecatedSection;
7893
+ exports.SectionList = SectionList;
7293
7894
  exports.Skeleton = Skeleton;
7294
7895
  exports.SpinningIcon = SpinningIcon;
7295
7896
  exports.Stack = Stack;
7897
+ exports.StaticMap = StaticMap;
7296
7898
  exports.Story = Story;
7297
7899
  exports.StoryBlock = StoryBlock;
7298
7900
  exports.StoryContainer = StoryContainer;
@@ -7314,11 +7916,14 @@ exports.View = View;
7314
7916
  exports.createChoicesComponent = createChoicesComponent;
7315
7917
  exports.createResponsiveStyleFromProp = createResponsiveStyleFromProp;
7316
7918
  exports.createWindowSizeHelper = createWindowSizeHelper;
7919
+ exports.getStaticMapImageUrl = getStaticMapImageUrl;
7317
7920
  exports.hex2rgba = hex2rgba;
7318
7921
  exports.matchWindowSize = matchWindowSize;
7319
7922
  exports.theme = theme;
7320
7923
  exports.useBottomSheet = useBottomSheet;
7321
7924
  exports.useCurrentBreakpointName = useCurrentBreakpointName;
7925
+ exports.useGetStaticMapImageUrl = useGetStaticMapImageUrl;
7926
+ exports.useKittMapConfig = useKittMapConfig;
7322
7927
  exports.useKittTheme = useKittTheme;
7323
7928
  exports.useMatchWindowSize = useMatchWindowSize;
7324
7929
  exports.useStaticBottomSheet = useStaticBottomSheet;