@ornikar/kitt-universal 27.4.0 → 27.5.1-canary.3a59d4ae3422049417956fa37f27d2e8f5f84aba.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 (111) hide show
  1. package/AGENTS.md +30 -0
  2. package/CHANGELOG.md +28 -0
  3. package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts.map +1 -1
  4. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +1 -1
  5. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  6. package/dist/definitions/GoogleMapsAutocompleteProvider/GoogleMapsAutocompleteProvider.d.ts.map +1 -1
  7. package/dist/definitions/MapMarker/MapMarker.d.ts +2 -5
  8. package/dist/definitions/MapMarker/MapMarker.d.ts.map +1 -1
  9. package/dist/definitions/MapMarker/constants.d.ts +6 -0
  10. package/dist/definitions/MapMarker/constants.d.ts.map +1 -0
  11. package/dist/definitions/MapMarker/utils/getBackgroundColor.d.ts +2 -1
  12. package/dist/definitions/MapMarker/utils/getBackgroundColor.d.ts.map +1 -1
  13. package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
  14. package/dist/definitions/TabBar/TabBar.d.ts +6 -4
  15. package/dist/definitions/TabBar/TabBar.d.ts.map +1 -1
  16. package/dist/definitions/TabBar/TabBarItem.d.ts +11 -1
  17. package/dist/definitions/TabBar/TabBarItem.d.ts.map +1 -1
  18. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
  19. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +180 -12
  20. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  21. package/dist/definitions/themes/default.d.ts +1 -12
  22. package/dist/definitions/themes/default.d.ts.map +1 -1
  23. package/dist/definitions/themes/late-ocean/cardModal.d.ts +21 -4
  24. package/dist/definitions/themes/late-ocean/cardModal.d.ts.map +1 -1
  25. package/dist/definitions/themes/late-ocean/dialogModal.d.ts +21 -4
  26. package/dist/definitions/themes/late-ocean/dialogModal.d.ts.map +1 -1
  27. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +21 -4
  28. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  29. package/dist/definitions/themes/late-ocean/icon.d.ts +0 -20
  30. package/dist/definitions/themes/late-ocean/icon.d.ts.map +1 -1
  31. package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -2
  32. package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -1
  33. package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -1
  34. package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
  35. package/dist/definitions/themes/late-ocean/tabBar.d.ts +34 -0
  36. package/dist/definitions/themes/late-ocean/tabBar.d.ts.map +1 -0
  37. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  38. package/dist/definitions/typography/TypographyIcon.d.ts.map +1 -1
  39. package/dist/definitions/typography/utils/getTypographyFamily.d.ts +2 -1
  40. package/dist/definitions/typography/utils/getTypographyFamily.d.ts.map +1 -1
  41. package/dist/index-metro.es.android.js +665 -289
  42. package/dist/index-metro.es.android.js.map +1 -1
  43. package/dist/index-metro.es.ios.js +665 -289
  44. package/dist/index-metro.es.ios.js.map +1 -1
  45. package/dist/index-node-22.17.cjs.js +555 -178
  46. package/dist/index-node-22.17.cjs.js.map +1 -1
  47. package/dist/index-node-22.17.cjs.web.css +2 -2
  48. package/dist/index-node-22.17.cjs.web.js +522 -172
  49. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  50. package/dist/index-node-22.17.es.mjs +555 -178
  51. package/dist/index-node-22.17.es.mjs.map +1 -1
  52. package/dist/index-node-22.17.es.web.css +2 -2
  53. package/dist/index-node-22.17.es.web.mjs +522 -172
  54. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  55. package/dist/index.es.js +664 -316
  56. package/dist/index.es.js.map +1 -1
  57. package/dist/index.es.web.js +641 -284
  58. package/dist/index.es.web.js.map +1 -1
  59. package/dist/linaria-themes-metro.es.android.js +219 -46
  60. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  61. package/dist/linaria-themes-metro.es.ios.js +219 -46
  62. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  63. package/dist/linaria-themes-node-22.17.cjs.js +219 -46
  64. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  65. package/dist/linaria-themes-node-22.17.cjs.web.js +219 -46
  66. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  67. package/dist/linaria-themes-node-22.17.es.mjs +219 -46
  68. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  69. package/dist/linaria-themes-node-22.17.es.web.mjs +219 -46
  70. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  71. package/dist/linaria-themes.es.js +219 -46
  72. package/dist/linaria-themes.es.js.map +1 -1
  73. package/dist/linaria-themes.es.web.js +219 -46
  74. package/dist/linaria-themes.es.web.js.map +1 -1
  75. package/dist/styles.css +2 -2
  76. package/dist/tsbuildinfo +1 -1
  77. package/package.json +2 -2
  78. package/scripts/codemods/__testfixtures__/card-modal/basic.input.js +19 -0
  79. package/scripts/codemods/__testfixtures__/card-modal/basic.output.js +15 -0
  80. package/scripts/codemods/__testfixtures__/card-modal/withExpressions.input.js +23 -0
  81. package/scripts/codemods/__testfixtures__/card-modal/withExpressions.output.js +19 -0
  82. package/scripts/codemods/__testfixtures__/card-modal/wrongOrder.input.js +19 -0
  83. package/scripts/codemods/__testfixtures__/card-modal/wrongOrder.output.js +15 -0
  84. package/scripts/codemods/__testfixtures__/csf1-csf2/decorator.input.tsx +11 -0
  85. package/scripts/codemods/__testfixtures__/csf1-csf2/decorator.output.tsx +17 -0
  86. package/scripts/codemods/__testfixtures__/csf1-csf2/default.input.tsx +88 -0
  87. package/scripts/codemods/__testfixtures__/csf1-csf2/default.output.tsx +94 -0
  88. package/scripts/codemods/__testfixtures__/csf1-csf2/parameters.input.tsx +21 -0
  89. package/scripts/codemods/__testfixtures__/csf1-csf2/parameters.output.tsx +28 -0
  90. package/scripts/codemods/__testfixtures__/fullscreen-modal/basic.input.js +19 -0
  91. package/scripts/codemods/__testfixtures__/fullscreen-modal/basic.output.js +15 -0
  92. package/scripts/codemods/__testfixtures__/fullscreen-modal/withExpressions.input.js +23 -0
  93. package/scripts/codemods/__testfixtures__/fullscreen-modal/withExpressions.output.js +19 -0
  94. package/scripts/codemods/__testfixtures__/fullscreen-modal/wrongOrder.input.js +19 -0
  95. package/scripts/codemods/__testfixtures__/fullscreen-modal/wrongOrder.output.js +15 -0
  96. package/scripts/codemods/__testfixtures__/navigation-modal/basic.input.js +19 -0
  97. package/scripts/codemods/__testfixtures__/navigation-modal/basic.output.js +15 -0
  98. package/scripts/codemods/__testfixtures__/navigation-modal/withExpressions.input.js +23 -0
  99. package/scripts/codemods/__testfixtures__/navigation-modal/withExpressions.output.js +19 -0
  100. package/scripts/codemods/__testfixtures__/navigation-modal/wrongOrder.input.js +19 -0
  101. package/scripts/codemods/__testfixtures__/navigation-modal/wrongOrder.output.js +15 -0
  102. package/scripts/codemods/__tests__/card-modal.test.js +10 -0
  103. package/scripts/codemods/__tests__/csf1-csf2.test.ts +10 -0
  104. package/scripts/codemods/__tests__/fullscreen-modal.test.js +10 -0
  105. package/scripts/codemods/__tests__/navigation-modal.test.js +10 -0
  106. package/scripts/codemods/card-modal.js +155 -0
  107. package/scripts/codemods/csf1-csf2.js +257 -0
  108. package/scripts/codemods/fullscreen-modal.js +155 -0
  109. package/scripts/codemods/navigation-modal.js +155 -0
  110. package/scripts/{run-transformers.js → run-codemods.js} +30 -32
  111. package/scripts/transformers/modals.js +0 -102
@@ -751,9 +751,19 @@ var card = {
751
751
  };
752
752
 
753
753
  var webAnimationContentDuration$2 = 400;
754
- var webAnimationContentEasing$2 = [0.77, 0, 0.175, 1];
754
+ var webAnimationContentEasing$2 = {
755
+ x1: 0.77,
756
+ y1: 0,
757
+ x2: 0.175,
758
+ y2: 1
759
+ };
755
760
  var webAnimationOverlayDuration$2 = 250;
756
- var webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
761
+ var webAnimationOverlayEasing$2 = {
762
+ x1: 0.42,
763
+ y1: 0,
764
+ x2: 1,
765
+ y2: 1
766
+ };
757
767
  var maxWidth = 540;
758
768
  var overlayHorizontalPadding = 24;
759
769
  var cardModal = {
@@ -845,9 +855,19 @@ var choices = {
845
855
  };
846
856
 
847
857
  var webAnimationContentDuration$1 = 400;
848
- var webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
858
+ var webAnimationContentEasing$1 = {
859
+ x1: 0.77,
860
+ y1: 0,
861
+ x2: 0.175,
862
+ y2: 1
863
+ };
849
864
  var webAnimationOverlayDuration$1 = 250;
850
- var webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
865
+ var webAnimationOverlayEasing$1 = {
866
+ x1: 0.42,
867
+ y1: 0,
868
+ x2: 1,
869
+ y2: 1
870
+ };
851
871
  var dialogModal = {
852
872
  borderRadius: spacing * 2,
853
873
  maxWidth: 540,
@@ -1779,9 +1799,19 @@ var forms = {
1779
1799
  };
1780
1800
 
1781
1801
  var webAnimationContentDuration = 600;
1782
- var webAnimationContentEasing = [0.77, 0, 0.175, 1];
1802
+ var webAnimationContentEasing = {
1803
+ x1: 0.77,
1804
+ y1: 0,
1805
+ x2: 0.175,
1806
+ y2: 1
1807
+ };
1783
1808
  var webAnimationOverlayDuration = 250;
1784
- var webAnimationOverlayEasing = [0.42, 0, 1, 1];
1809
+ var webAnimationOverlayEasing = {
1810
+ x1: 0.42,
1811
+ y1: 0,
1812
+ x2: 1,
1813
+ y2: 1
1814
+ };
1785
1815
  var fullscreenModal = {
1786
1816
  header: {
1787
1817
  height: 56
@@ -1874,43 +1904,8 @@ var highlight = {
1874
1904
  }
1875
1905
  };
1876
1906
 
1877
- var getIconSizeFromFontSize = function (fontSize) {
1878
- if (fontSize <= 14) return 16;
1879
- if (fontSize <= 16) return 20;
1880
- return 24;
1881
- };
1882
- var createTypographyIconSizeConfig = function (baseAndSmallFontSize, mediumAndWideFontSize) {
1883
- var baseAndSmallIconSize = getIconSizeFromFontSize(baseAndSmallFontSize);
1884
- var mediumAndWideIconSize = getIconSizeFromFontSize(mediumAndWideFontSize);
1885
- return {
1886
- baseAndSmall: {
1887
- iconSize: baseAndSmallIconSize
1888
- },
1889
- mediumAndWide: {
1890
- iconSize: mediumAndWideIconSize
1891
- }
1892
- };
1893
- };
1894
1907
  var icon = {
1895
- defaultSize: 20,
1896
- // Note: this is based on typography updated sizes, not current https://github.com/ornikar/kitt/pull/2130
1897
- typographySize: {
1898
- // also known as xxlarge
1899
- header1: createTypographyIconSizeConfig(40, 56),
1900
- // also known as xlarge
1901
- header2: createTypographyIconSizeConfig(32, 48),
1902
- // also known as medium
1903
- header3: createTypographyIconSizeConfig(24, 40),
1904
- // also known as xsmall
1905
- header4: createTypographyIconSizeConfig(18, 24),
1906
- // also known as xxsmall
1907
- header5: createTypographyIconSizeConfig(18, 18),
1908
- 'body-large': createTypographyIconSizeConfig(18, 24),
1909
- 'body-medium': createTypographyIconSizeConfig(18, 18),
1910
- body: createTypographyIconSizeConfig(16, 16),
1911
- 'body-small': createTypographyIconSizeConfig(14, 14),
1912
- 'body-xsmall': createTypographyIconSizeConfig(12, 12)
1913
- }
1908
+ defaultSize: 20
1914
1909
  };
1915
1910
 
1916
1911
  var iconButton = {
@@ -1929,8 +1924,8 @@ var listItem = {
1929
1924
 
1930
1925
  var mapMarker = {
1931
1926
  home: {
1932
- "default": colors.primaryLight,
1933
- selected: colors.primary,
1927
+ "default": deepPurpleColorPalette['grey.9'],
1928
+ selected: deepPurpleColorPalette['grey.7'],
1934
1929
  svg: {
1935
1930
  height: 36
1936
1931
  },
@@ -1940,8 +1935,8 @@ var mapMarker = {
1940
1935
  }
1941
1936
  },
1942
1937
  meetingPoint: {
1943
- "default": colors.black,
1944
- selected: colors.blackAnthracite,
1938
+ "default": deepPurpleColorPalette['deepPurple.8'],
1939
+ selected: deepPurpleColorPalette['deepPurple.6'],
1945
1940
  svg: {
1946
1941
  width: 40,
1947
1942
  height: 43
@@ -2337,6 +2332,183 @@ var skeleton$1 = {
2337
2332
  }
2338
2333
  };
2339
2334
 
2335
+ var tabBar = {
2336
+ underline: {
2337
+ "default": {
2338
+ active: {
2339
+ color: {
2340
+ "default": deepPurpleColorPalette['deepPurple.8'],
2341
+ focused: deepPurpleColorPalette['deepPurple.8'],
2342
+ hovered: deepPurpleColorPalette['deepPurple.8'],
2343
+ pressed: deepPurpleColorPalette['deepPurple.8']
2344
+ },
2345
+ indicator: {
2346
+ backgroundColor: deepPurpleColorPalette['deepPurple.8']
2347
+ }
2348
+ },
2349
+ inactive: {
2350
+ color: {
2351
+ "default": deepPurpleColorPalette['grey.5'],
2352
+ focused: deepPurpleColorPalette['grey.5'],
2353
+ hovered: deepPurpleColorPalette['deepPurple.8'],
2354
+ pressed: deepPurpleColorPalette['deepPurple.8']
2355
+ },
2356
+ indicator: {
2357
+ backgroundColor: undefined
2358
+ }
2359
+ },
2360
+ disabled: {
2361
+ color: {
2362
+ "default": deepPurpleColorPalette['grey.3'],
2363
+ focused: deepPurpleColorPalette['grey.3'],
2364
+ hovered: deepPurpleColorPalette['grey.3'],
2365
+ pressed: deepPurpleColorPalette['grey.3']
2366
+ },
2367
+ indicator: {
2368
+ backgroundColor: undefined
2369
+ }
2370
+ },
2371
+ borderBottomColor: deepPurpleColorPalette['beige.3']
2372
+ },
2373
+ revert: {
2374
+ active: {
2375
+ color: {
2376
+ "default": deepPurpleColorPalette['grey.0'],
2377
+ focused: deepPurpleColorPalette['grey.0'],
2378
+ hovered: deepPurpleColorPalette['grey.0'],
2379
+ pressed: deepPurpleColorPalette['grey.0']
2380
+ },
2381
+ indicator: {
2382
+ backgroundColor: deepPurpleColorPalette['grey.0']
2383
+ }
2384
+ },
2385
+ inactive: {
2386
+ color: {
2387
+ "default": deepPurpleColorPalette['white-alpha.80'],
2388
+ focused: deepPurpleColorPalette['white-alpha.80'],
2389
+ hovered: deepPurpleColorPalette['grey.0'],
2390
+ pressed: deepPurpleColorPalette['grey.0']
2391
+ },
2392
+ indicator: {
2393
+ backgroundColor: undefined
2394
+ }
2395
+ },
2396
+ disabled: {
2397
+ color: {
2398
+ "default": deepPurpleColorPalette['white-alpha.20'],
2399
+ focused: deepPurpleColorPalette['white-alpha.20'],
2400
+ hovered: deepPurpleColorPalette['white-alpha.20'],
2401
+ pressed: deepPurpleColorPalette['white-alpha.20']
2402
+ },
2403
+ indicator: {
2404
+ backgroundColor: undefined
2405
+ }
2406
+ },
2407
+ borderBottomColor: deepPurpleColorPalette['white-alpha.20']
2408
+ }
2409
+ },
2410
+ solid: {
2411
+ "default": {
2412
+ active: {
2413
+ color: {
2414
+ "default": deepPurpleColorPalette['grey.0'],
2415
+ focused: deepPurpleColorPalette['grey.0'],
2416
+ hovered: deepPurpleColorPalette['grey.0'],
2417
+ pressed: deepPurpleColorPalette['grey.0']
2418
+ },
2419
+ backgroundColor: {
2420
+ "default": deepPurpleColorPalette['deepPurple.8'],
2421
+ focused: deepPurpleColorPalette['deepPurple.8'],
2422
+ hovered: deepPurpleColorPalette['deepPurple.8'],
2423
+ pressed: deepPurpleColorPalette['deepPurple.8']
2424
+ },
2425
+ borderRadius: 4,
2426
+ indicator: {
2427
+ backgroundColor: undefined
2428
+ }
2429
+ },
2430
+ inactive: {
2431
+ color: {
2432
+ "default": deepPurpleColorPalette['grey.5'],
2433
+ focused: deepPurpleColorPalette['grey.5'],
2434
+ hovered: deepPurpleColorPalette['grey.5'],
2435
+ pressed: deepPurpleColorPalette['grey.5']
2436
+ },
2437
+ backgroundColor: {
2438
+ "default": undefined,
2439
+ focused: undefined,
2440
+ hovered: deepPurpleColorPalette['beige.1'],
2441
+ pressed: deepPurpleColorPalette['beige.1']
2442
+ },
2443
+ borderRadius: 4,
2444
+ indicator: {
2445
+ backgroundColor: undefined
2446
+ }
2447
+ },
2448
+ disabled: {
2449
+ color: {
2450
+ "default": deepPurpleColorPalette['grey.3'],
2451
+ focused: deepPurpleColorPalette['grey.3'],
2452
+ hovered: deepPurpleColorPalette['grey.3'],
2453
+ pressed: deepPurpleColorPalette['grey.3']
2454
+ },
2455
+ indicator: {
2456
+ backgroundColor: undefined
2457
+ }
2458
+ }
2459
+ },
2460
+ revert: {
2461
+ active: {
2462
+ color: {
2463
+ "default": deepPurpleColorPalette['deepPurple.8'],
2464
+ focused: deepPurpleColorPalette['deepPurple.8'],
2465
+ hovered: deepPurpleColorPalette['deepPurple.8'],
2466
+ pressed: deepPurpleColorPalette['deepPurple.8']
2467
+ },
2468
+ backgroundColor: {
2469
+ "default": deepPurpleColorPalette['grey.0'],
2470
+ focused: deepPurpleColorPalette['grey.0'],
2471
+ hovered: deepPurpleColorPalette['grey.0'],
2472
+ pressed: deepPurpleColorPalette['grey.0']
2473
+ },
2474
+ borderRadius: 4,
2475
+ indicator: {
2476
+ backgroundColor: undefined
2477
+ }
2478
+ },
2479
+ inactive: {
2480
+ color: {
2481
+ "default": deepPurpleColorPalette['white-alpha.80'],
2482
+ focused: deepPurpleColorPalette['white-alpha.80'],
2483
+ hovered: deepPurpleColorPalette['white-alpha.80'],
2484
+ pressed: deepPurpleColorPalette['white-alpha.80']
2485
+ },
2486
+ backgroundColor: {
2487
+ "default": undefined,
2488
+ focused: undefined,
2489
+ hovered: deepPurpleColorPalette['white-alpha.10'],
2490
+ pressed: deepPurpleColorPalette['white-alpha.10']
2491
+ },
2492
+ borderRadius: 4,
2493
+ indicator: {
2494
+ backgroundColor: undefined
2495
+ }
2496
+ },
2497
+ disabled: {
2498
+ color: {
2499
+ "default": deepPurpleColorPalette['white-alpha.20'],
2500
+ focused: deepPurpleColorPalette['white-alpha.20'],
2501
+ hovered: deepPurpleColorPalette['white-alpha.20'],
2502
+ pressed: deepPurpleColorPalette['white-alpha.20']
2503
+ },
2504
+ indicator: {
2505
+ backgroundColor: undefined
2506
+ }
2507
+ }
2508
+ }
2509
+ }
2510
+ };
2511
+
2340
2512
  var tag = {
2341
2513
  borderRadius: 16,
2342
2514
  icon: {
@@ -2478,6 +2650,7 @@ var theme = {
2478
2650
  picker: picker,
2479
2651
  shadows: shadows,
2480
2652
  skeleton: skeleton$1,
2653
+ tabBar: tabBar,
2481
2654
  tag: tag,
2482
2655
  tooltip: tooltip,
2483
2656
  typography: typography,
@@ -2578,7 +2751,7 @@ function ActionCardDisabled(_ref) {
2578
2751
  });
2579
2752
  }
2580
2753
 
2581
- var _excluded$S = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2754
+ var _excluded$R = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2582
2755
  function ActionCard(_ref) {
2583
2756
  var children = _ref.children,
2584
2757
  _ref$variant = _ref.variant,
@@ -2591,7 +2764,7 @@ function ActionCard(_ref) {
2591
2764
  isHovered = _ref.isHovered,
2592
2765
  isPressed = _ref.isPressed,
2593
2766
  isFocused = _ref.isFocused,
2594
- props = _objectWithoutProperties(_ref, _excluded$S);
2767
+ props = _objectWithoutProperties(_ref, _excluded$R);
2595
2768
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2596
2769
  children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
2597
2770
  borderRadius: borderRadius,
@@ -2913,17 +3086,23 @@ var getTypographyFamilyWithAncestorValue = function (type, typographyFamilyInCon
2913
3086
  if (typographyFamilyInContext != null) return typographyFamilyInContext;
2914
3087
  throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
2915
3088
  };
3089
+ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext) {
3090
+ // check if all values are not undefined
3091
+ var isAllValuesUndefined = Object.values(type).every(function (value) {
3092
+ return value === undefined;
3093
+ });
3094
+
3095
+ // if every values are undefined and we hgave a typographyTypeInContext, we use the parent typography type (typographyTypeInContext)
3096
+ return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
3097
+ };
2916
3098
 
2917
- var _excluded$R = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3099
+ var _excluded$Q = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
2918
3100
  var TypographyFamilyContext = /*#__PURE__*/createContext(null);
2919
3101
  var TypographyTypeContext = /*#__PURE__*/createContext(null);
2920
3102
  var TypographyColorContext = /*#__PURE__*/createContext('black');
2921
3103
  function useTypographyColor() {
2922
3104
  return useContext(TypographyColorContext);
2923
3105
  }
2924
- function useTypographyAncestorType() {
2925
- return useContext(TypographyTypeContext);
2926
- }
2927
3106
  var TypographyDefaultColorContext = /*#__PURE__*/createContext(undefined);
2928
3107
  function useTypographyDefaultColor() {
2929
3108
  return useContext(TypographyDefaultColorContext);
@@ -3024,7 +3203,7 @@ function getUniversalFontWeight(type, variant, typographyFamily) {
3024
3203
  };
3025
3204
  }
3026
3205
  function Typography(_ref2) {
3027
- var _type$base;
3206
+ var _typographyType$base;
3028
3207
  var accessibilityRole = _ref2.accessibilityRole,
3029
3208
  legacyBase = _ref2.base,
3030
3209
  legacySmall = _ref2.small,
@@ -3041,12 +3220,14 @@ function Typography(_ref2) {
3041
3220
  } : _ref2$type,
3042
3221
  variant = _ref2.variant,
3043
3222
  color = _ref2.color,
3044
- otherProps = _objectWithoutProperties(_ref2, _excluded$R);
3223
+ otherProps = _objectWithoutProperties(_ref2, _excluded$Q);
3045
3224
  var sx = useSx();
3046
3225
  var typographyFamilyInContext = useContext(TypographyFamilyContext);
3226
+ var typographyTypeInContext = useContext(TypographyTypeContext);
3047
3227
  var defaultColor = useTypographyDefaultColor();
3048
3228
  var hasTypographyAncestor = typographyFamilyInContext !== null;
3049
- var baseOrDefaultToBody = hasTypographyAncestor ? type.base : (_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body-m';
3229
+ var typographyType = getTypographyTypeWithAncestorValue(type, typographyTypeInContext);
3230
+ var baseOrDefaultToBody = (_typographyType$base = typographyType.base) !== null && _typographyType$base !== void 0 ? _typographyType$base : 'body-m';
3050
3231
  var typographyFamily = getTypographyFamilyWithAncestorValue(baseOrDefaultToBody, typographyFamilyInContext);
3051
3232
  var fontSizeForNativeBase = createNativeBaseFontSize(_objectSpread(_objectSpread({}, type), {}, {
3052
3233
  base: baseOrDefaultToBody
@@ -3083,7 +3264,7 @@ function Typography(_ref2) {
3083
3264
  var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(TypographyFamilyContext.Provider, {
3084
3265
  value: typographyFamily,
3085
3266
  children: /*#__PURE__*/jsx(TypographyTypeContext.Provider, {
3086
- value: type,
3267
+ value: typographyType,
3087
3268
  children: text
3088
3269
  })
3089
3270
  }) : text;
@@ -3181,30 +3362,12 @@ function Icon(_ref) {
3181
3362
  });
3182
3363
  }
3183
3364
 
3184
- var _excluded$Q = ["color", "size"],
3365
+ var _excluded$P = ["color", "size"],
3185
3366
  _excluded2$6 = ["color"];
3186
- function getIconSizeConfigKeyFromTypeName(breakpointName) {
3187
- return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
3188
- }
3189
- function createNativeBaseIconSize(type) {
3190
- var typeWithMediumForced = _objectSpread(_objectSpread({}, type), {}, {
3191
- medium: type.medium || type.small || type.base
3192
- });
3193
- var iconSizeForNativeBase = {};
3194
- [KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(function (typeName) {
3195
- var value = typeWithMediumForced[typeName];
3196
- if (value) {
3197
- iconSizeForNativeBase[typeName] = "kitt.icon.typographySize.".concat(value, ".").concat(getIconSizeConfigKeyFromTypeName(typeName), ".iconSize");
3198
- }
3199
- });
3200
- return iconSizeForNativeBase;
3201
- }
3202
3367
  function TypographyIconSpecifiedColor(_ref) {
3203
3368
  var color = _ref.color,
3204
3369
  size = _ref.size,
3205
- props = _objectWithoutProperties(_ref, _excluded$Q);
3206
- var ancestorType = useTypographyAncestorType();
3207
- var iconSize = size || (ancestorType ? createNativeBaseIconSize(ancestorType) : undefined);
3370
+ props = _objectWithoutProperties(_ref, _excluded$P);
3208
3371
  var colorValue = getTypographyColorValue(color);
3209
3372
  var sx = useSx();
3210
3373
  var _sx = sx({
@@ -3212,7 +3375,7 @@ function TypographyIconSpecifiedColor(_ref) {
3212
3375
  }),
3213
3376
  colorStyleValue = _sx.color;
3214
3377
  return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
3215
- size: iconSize,
3378
+ size: size,
3216
3379
  color: colorStyleValue
3217
3380
  }));
3218
3381
  }
@@ -3244,7 +3407,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
3244
3407
  return "".concat(baseKey, ".default");
3245
3408
  };
3246
3409
 
3247
- var _excluded$P = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3410
+ var _excluded$O = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3248
3411
  function ButtonContentChildren(_ref) {
3249
3412
  var type = _ref.type,
3250
3413
  icon = _ref.icon,
@@ -3344,7 +3507,7 @@ function ButtonContent(_ref2) {
3344
3507
  _ref2.isFocused;
3345
3508
  var innerSpacing = _ref2.innerSpacing,
3346
3509
  size = _ref2.size,
3347
- props = _objectWithoutProperties(_ref2, _excluded$P);
3510
+ props = _objectWithoutProperties(_ref2, _excluded$O);
3348
3511
  var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
3349
3512
  return /*#__PURE__*/jsx(View, {
3350
3513
  _web: {
@@ -3543,7 +3706,7 @@ function LoaderIcon(_ref) {
3543
3706
  });
3544
3707
  }
3545
3708
 
3546
- var _excluded$O = ["as", "onPress", "disabled", "icon", "stretch"];
3709
+ var _excluded$N = ["as", "onPress", "disabled", "icon", "stretch"];
3547
3710
  var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3548
3711
  var as = _ref.as,
3549
3712
  onPress = _ref.onPress,
@@ -3554,7 +3717,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3554
3717
  base: true,
3555
3718
  medium: false
3556
3719
  } : _ref$stretch,
3557
- props = _objectWithoutProperties(_ref, _excluded$O);
3720
+ props = _objectWithoutProperties(_ref, _excluded$N);
3558
3721
  var _useState = useState(false),
3559
3722
  _useState2 = _slicedToArray(_useState, 2),
3560
3723
  isLoading = _useState2[0],
@@ -3632,7 +3795,7 @@ function ActionsButton(_ref) {
3632
3795
  }, props));
3633
3796
  }
3634
3797
 
3635
- var _excluded$N = ["children", "layout", "reversed"];
3798
+ var _excluded$M = ["children", "layout", "reversed"];
3636
3799
  function getCurrentLayout(layout) {
3637
3800
  if (!layout) return {
3638
3801
  base: 'stretch',
@@ -3664,7 +3827,7 @@ function Actions(_ref) {
3664
3827
  reversed = _ref$reversed === void 0 ? {
3665
3828
  base: false
3666
3829
  } : _ref$reversed,
3667
- props = _objectWithoutProperties(_ref, _excluded$N);
3830
+ props = _objectWithoutProperties(_ref, _excluded$M);
3668
3831
  var shouldReverse = typeof reversed === 'boolean' ? {
3669
3832
  base: !!reversed
3670
3833
  } : createResponsiveStyleFromProp(reversed, true, false);
@@ -3717,7 +3880,7 @@ function getInitials(firstname, lastname) {
3717
3880
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
3718
3881
  }
3719
3882
 
3720
- var _excluded$M = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3883
+ var _excluded$L = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3721
3884
  function AvatarContent(_ref) {
3722
3885
  var size = _ref.size,
3723
3886
  src = _ref.src,
@@ -3780,7 +3943,7 @@ function Avatar(_ref2) {
3780
3943
  height = _ref2.height,
3781
3944
  dark = _ref2.dark,
3782
3945
  disabled = _ref2.disabled,
3783
- props = _objectWithoutProperties(_ref2, _excluded$M);
3946
+ props = _objectWithoutProperties(_ref2, _excluded$L);
3784
3947
  var currentSize = getCurrentSize({
3785
3948
  size: size,
3786
3949
  sizeVariant: sizeVariant
@@ -3963,7 +4126,7 @@ function CardModalRotationContainer(props) {
3963
4126
  }, props));
3964
4127
  }
3965
4128
 
3966
- var _excluded$L = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4129
+ var _excluded$K = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
3967
4130
  var contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
3968
4131
  var contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
3969
4132
  var contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
@@ -4002,7 +4165,7 @@ function CardModalAnimation(_ref) {
4002
4165
  onExit = _ref.onExit,
4003
4166
  onExited = _ref.onExited,
4004
4167
  onClose = _ref.onClose,
4005
- props = _objectWithoutProperties(_ref, _excluded$L);
4168
+ props = _objectWithoutProperties(_ref, _excluded$K);
4006
4169
  var theme = useTheme();
4007
4170
  var animation = theme.kitt.cardModal.animation;
4008
4171
  var sharedProps = {
@@ -4035,13 +4198,13 @@ function CardModalAnimation(_ref) {
4035
4198
  }));
4036
4199
  }
4037
4200
 
4038
- var _excluded$K = ["children", "visible", "onClose", "onExited"];
4201
+ var _excluded$J = ["children", "visible", "onClose", "onExited"];
4039
4202
  function CardModalBehaviour(_ref) {
4040
4203
  var children = _ref.children,
4041
4204
  visible = _ref.visible,
4042
4205
  onClose = _ref.onClose,
4043
4206
  onExited = _ref.onExited,
4044
- props = _objectWithoutProperties(_ref, _excluded$K);
4207
+ props = _objectWithoutProperties(_ref, _excluded$J);
4045
4208
  var _useState = useState(visible),
4046
4209
  _useState2 = _slicedToArray(_useState, 2),
4047
4210
  isModalBehaviourVisible = _useState2[0],
@@ -4066,7 +4229,7 @@ function CardModalBehaviour(_ref) {
4066
4229
  });
4067
4230
  }
4068
4231
 
4069
- var _excluded$J = ["children", "paddingX", "paddingY"];
4232
+ var _excluded$I = ["children", "paddingX", "paddingY"];
4070
4233
  function CardModalBody(_ref) {
4071
4234
  var children = _ref.children,
4072
4235
  _ref$paddingX = _ref.paddingX,
@@ -4079,7 +4242,7 @@ function CardModalBody(_ref) {
4079
4242
  base: 'kitt.4',
4080
4243
  medium: 'kitt.6'
4081
4244
  } : _ref$paddingY,
4082
- props = _objectWithoutProperties(_ref, _excluded$J);
4245
+ props = _objectWithoutProperties(_ref, _excluded$I);
4083
4246
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4084
4247
  showsVerticalScrollIndicator: false,
4085
4248
  _contentContainerStyle: {
@@ -4091,7 +4254,7 @@ function CardModalBody(_ref) {
4091
4254
  }));
4092
4255
  }
4093
4256
 
4094
- var _excluded$I = ["children", "padding", "hasSeparator"];
4257
+ var _excluded$H = ["children", "padding", "hasSeparator"];
4095
4258
  function CardModalFooter(_ref) {
4096
4259
  var children = _ref.children,
4097
4260
  _ref$padding = _ref.padding,
@@ -4101,7 +4264,7 @@ function CardModalFooter(_ref) {
4101
4264
  } : _ref$padding,
4102
4265
  _ref$hasSeparator = _ref.hasSeparator,
4103
4266
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4104
- props = _objectWithoutProperties(_ref, _excluded$I);
4267
+ props = _objectWithoutProperties(_ref, _excluded$H);
4105
4268
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4106
4269
  marginTop: "kitt.2",
4107
4270
  padding: padding,
@@ -4115,7 +4278,7 @@ function CardModalFooter(_ref) {
4115
4278
  }));
4116
4279
  }
4117
4280
 
4118
- var _excluded$H = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
4281
+ var _excluded$G = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
4119
4282
  function CardModalHeader(_ref) {
4120
4283
  var children = _ref.children,
4121
4284
  title = _ref.title,
@@ -4128,7 +4291,7 @@ function CardModalHeader(_ref) {
4128
4291
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4129
4292
  right = _ref.right,
4130
4293
  left = _ref.left,
4131
- props = _objectWithoutProperties(_ref, _excluded$H);
4294
+ props = _objectWithoutProperties(_ref, _excluded$G);
4132
4295
  var defaultContainerPadding = {
4133
4296
  base: 'kitt.4',
4134
4297
  medium: 'kitt.6'
@@ -4166,7 +4329,7 @@ function CardModalHeader(_ref) {
4166
4329
  }));
4167
4330
  }
4168
4331
 
4169
- var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4332
+ var _excluded$F = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4170
4333
  function CardModal(_ref) {
4171
4334
  var _ref$backgroundColor = _ref.backgroundColor,
4172
4335
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4177,7 +4340,7 @@ function CardModal(_ref) {
4177
4340
  header = _ref.header,
4178
4341
  body = _ref.body,
4179
4342
  footer = _ref.footer,
4180
- props = _objectWithoutProperties(_ref, _excluded$G);
4343
+ props = _objectWithoutProperties(_ref, _excluded$F);
4181
4344
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4182
4345
  overflow: "hidden",
4183
4346
  backgroundColor: backgroundColor,
@@ -4392,11 +4555,11 @@ function ChoiceItemContainer(_ref) {
4392
4555
  }));
4393
4556
  }
4394
4557
 
4395
- var _excluded$F = ["direction", "contentContainerStyle"];
4558
+ var _excluded$E = ["direction", "contentContainerStyle"];
4396
4559
  function ChoicesContainer(_ref) {
4397
4560
  var direction = _ref.direction,
4398
4561
  contentContainerStyle = _ref.contentContainerStyle,
4399
- props = _objectWithoutProperties(_ref, _excluded$F);
4562
+ props = _objectWithoutProperties(_ref, _excluded$E);
4400
4563
  if (direction === 'row') {
4401
4564
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
4402
4565
  horizontal: true,
@@ -4471,7 +4634,7 @@ var ChoicesElements = {
4471
4634
  ButtonChoices: ButtonChoices
4472
4635
  };
4473
4636
 
4474
- var _excluded$E = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4637
+ var _excluded$D = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4475
4638
  var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
4476
4639
  var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
4477
4640
  var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
@@ -4510,7 +4673,7 @@ function DialogModalAnimation(_ref) {
4510
4673
  onExit = _ref.onExit,
4511
4674
  onExited = _ref.onExited,
4512
4675
  onClose = _ref.onClose,
4513
- props = _objectWithoutProperties(_ref, _excluded$E);
4676
+ props = _objectWithoutProperties(_ref, _excluded$D);
4514
4677
  var theme = useTheme();
4515
4678
  var animation = theme.kitt.dialogModal.animation;
4516
4679
  var sharedProps = {
@@ -4545,13 +4708,13 @@ function DialogModalAnimation(_ref) {
4545
4708
  }));
4546
4709
  }
4547
4710
 
4548
- var _excluded$D = ["children", "visible", "onClose", "onExited"];
4711
+ var _excluded$C = ["children", "visible", "onClose", "onExited"];
4549
4712
  function DialogModalBehaviour(_ref) {
4550
4713
  var children = _ref.children,
4551
4714
  visible = _ref.visible,
4552
4715
  onClose = _ref.onClose,
4553
4716
  onExited = _ref.onExited,
4554
- props = _objectWithoutProperties(_ref, _excluded$D);
4717
+ props = _objectWithoutProperties(_ref, _excluded$C);
4555
4718
  var _useState = useState(visible),
4556
4719
  _useState2 = _slicedToArray(_useState, 2),
4557
4720
  isModalBehaviourVisible = _useState2[0],
@@ -4582,7 +4745,7 @@ function DialogModalBehaviour(_ref) {
4582
4745
  });
4583
4746
  }
4584
4747
 
4585
- var _excluded$C = ["stretch"];
4748
+ var _excluded$B = ["stretch"];
4586
4749
  function DialogModal(_ref) {
4587
4750
  var illustration = _ref.illustration,
4588
4751
  title = _ref.title,
@@ -4622,7 +4785,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
4622
4785
  function DialogModalButton(_ref2) {
4623
4786
  var _ref2$stretch = _ref2.stretch,
4624
4787
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
4625
- props = _objectWithoutProperties(_ref2, _excluded$C);
4788
+ props = _objectWithoutProperties(_ref2, _excluded$B);
4626
4789
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
4627
4790
  stretch: stretch
4628
4791
  }, props));
@@ -4659,7 +4822,7 @@ function Emoji(_ref) {
4659
4822
  });
4660
4823
  }
4661
4824
 
4662
- var _excluded$B = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
4825
+ var _excluded$A = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
4663
4826
  _excluded2$5 = ["phoneNumber", "children"],
4664
4827
  _excluded3$4 = ["phoneNumber", "children"],
4665
4828
  _excluded4$3 = ["emailAddress", "children"];
@@ -4669,7 +4832,7 @@ function ExternalAppLink(_ref) {
4669
4832
  appValue = _ref.appValue,
4670
4833
  onPress = _ref.onPress,
4671
4834
  onOpenAppError = _ref.onOpenAppError,
4672
- rest = _objectWithoutProperties(_ref, _excluded$B);
4835
+ rest = _objectWithoutProperties(_ref, _excluded$A);
4673
4836
  var href = "".concat(appScheme, ":").concat(appValue);
4674
4837
  var handleOnPress = /*#__PURE__*/function () {
4675
4838
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -4764,14 +4927,14 @@ var defaultOpenLinkBehavior = {
4764
4927
  web: 'targetBlank'
4765
4928
  };
4766
4929
 
4767
- var _excluded$A = ["as", "href", "openLinkBehavior", "onPress"];
4930
+ var _excluded$z = ["as", "href", "openLinkBehavior", "onPress"];
4768
4931
  function ExternalLink(_ref) {
4769
4932
  var Component = _ref.as,
4770
4933
  href = _ref.href,
4771
4934
  _ref$openLinkBehavior = _ref.openLinkBehavior,
4772
4935
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
4773
4936
  onPress = _ref.onPress,
4774
- rest = _objectWithoutProperties(_ref, _excluded$A);
4937
+ rest = _objectWithoutProperties(_ref, _excluded$z);
4775
4938
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
4776
4939
  accessibilityRole: "link",
4777
4940
  href: href,
@@ -4847,7 +5010,7 @@ function InputTextContainer(props) {
4847
5010
  }, props));
4848
5011
  }
4849
5012
 
4850
- var _excluded$z = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5013
+ var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
4851
5014
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
4852
5015
  var id = _ref.id,
4853
5016
  right = _ref.right;
@@ -4868,7 +5031,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
4868
5031
  multiline = _ref.multiline,
4869
5032
  height = _ref.height,
4870
5033
  onSubmitEditing = _ref.onSubmitEditing,
4871
- props = _objectWithoutProperties(_ref, _excluded$z);
5034
+ props = _objectWithoutProperties(_ref, _excluded$y);
4872
5035
  var theme = useTheme();
4873
5036
  var fontSizeForNativeBase = createNativeBaseFontSize({
4874
5037
  base: 'body-m'
@@ -4992,12 +5155,12 @@ function AutocompleteItemsListContainer(_ref) {
4992
5155
  });
4993
5156
  }
4994
5157
 
4995
- var _excluded$y = ["children", "testID"];
5158
+ var _excluded$x = ["children", "testID"];
4996
5159
  function AutocompleteOption(_ref) {
4997
5160
  var children = _ref.children,
4998
5161
  _ref$testID = _ref.testID,
4999
5162
  testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
5000
- props = _objectWithoutProperties(_ref, _excluded$y);
5163
+ props = _objectWithoutProperties(_ref, _excluded$x);
5001
5164
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5002
5165
  paddingX: {
5003
5166
  base: 'kitt.2',
@@ -5010,7 +5173,7 @@ function AutocompleteOption(_ref) {
5010
5173
  }));
5011
5174
  }
5012
5175
 
5013
- var _excluded$x = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5176
+ var _excluded$w = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5014
5177
  _excluded2$4 = ["onClick", "onPress"],
5015
5178
  _excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
5016
5179
  _excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
@@ -5044,7 +5207,7 @@ function Autocomplete(_ref) {
5044
5207
  _ref$zIndex = _ref.zIndex,
5045
5208
  zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
5046
5209
  maxItemContainerHeight = _ref.maxItemContainerHeight,
5047
- props = _objectWithoutProperties(_ref, _excluded$x);
5210
+ props = _objectWithoutProperties(_ref, _excluded$w);
5048
5211
  var childrenArray = Children.toArray(_children);
5049
5212
  var items = childrenArray.filter(isReactElement).map(function (child) {
5050
5213
  return {
@@ -5251,7 +5414,7 @@ function getBorderColor$1(_ref) {
5251
5414
  return 'kitt.forms.checkbox.default.borderColor';
5252
5415
  }
5253
5416
 
5254
- var _excluded$w = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5417
+ var _excluded$v = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5255
5418
  var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5256
5419
  var checked = _ref.checked,
5257
5420
  _ref$hitSlop = _ref.hitSlop,
@@ -5261,7 +5424,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5261
5424
  onChange = _ref.onChange,
5262
5425
  onBlur = _ref.onBlur,
5263
5426
  onFocus = _ref.onFocus,
5264
- props = _objectWithoutProperties(_ref, _excluded$w);
5427
+ props = _objectWithoutProperties(_ref, _excluded$v);
5265
5428
  var theme = useTheme();
5266
5429
  return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
5267
5430
  hitSlop: hitSlop
@@ -5577,7 +5740,7 @@ function PartContainer(_ref) {
5577
5740
  });
5578
5741
  }
5579
5742
 
5580
- var _excluded$v = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
5743
+ var _excluded$u = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
5581
5744
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5582
5745
  var id = _ref.id,
5583
5746
  value = _ref.value,
@@ -5595,7 +5758,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5595
5758
  onBlur = _ref.onBlur,
5596
5759
  onFocus = _ref.onFocus,
5597
5760
  onSubmitEditing = _ref.onSubmitEditing;
5598
- _objectWithoutProperties(_ref, _excluded$v);
5761
+ _objectWithoutProperties(_ref, _excluded$u);
5599
5762
  var monthRef = useRef(null);
5600
5763
  var yearRef = useRef(null);
5601
5764
  var defaultValue = value;
@@ -5735,10 +5898,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5735
5898
  });
5736
5899
  });
5737
5900
 
5738
- var _excluded$u = ["value"];
5901
+ var _excluded$t = ["value"];
5739
5902
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5740
5903
  var value = _ref.value,
5741
- props = _objectWithoutProperties(_ref, _excluded$u);
5904
+ props = _objectWithoutProperties(_ref, _excluded$t);
5742
5905
  // in apps, final-form can give a string value that will break the component
5743
5906
  var currentValue = value || undefined;
5744
5907
  return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
@@ -5756,7 +5919,7 @@ function DocumentPicker(_ref) {
5756
5919
  var childElement = Children.only(children);
5757
5920
  var handlePickDocument = /*#__PURE__*/function () {
5758
5921
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5759
- var _childElement$props$o, _childElement$props;
5922
+ var _childElement$props$o, _childElement$props, _result$assets$;
5760
5923
  var result;
5761
5924
  return _regeneratorRuntime().wrap(function (_context) {
5762
5925
  while (1) switch (_context.prev = _context.next) {
@@ -5774,7 +5937,7 @@ function DocumentPicker(_ref) {
5774
5937
  }));
5775
5938
  case 5:
5776
5939
  result = _context.sent;
5777
- if (!result.canceled && result.assets[0].file) {
5940
+ if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
5778
5941
  onDocumentUpload(result.assets[0].file);
5779
5942
  }
5780
5943
  case 7:
@@ -5827,7 +5990,7 @@ function ImagePicker(_ref) {
5827
5990
  }));
5828
5991
  case 5:
5829
5992
  result = _context.sent;
5830
- if (!result.canceled) {
5993
+ if (!result.canceled && result.assets[0]) {
5831
5994
  onImageSelected(result.assets[0]);
5832
5995
  }
5833
5996
  case 7:
@@ -6136,36 +6299,34 @@ function GoogleMapsAutocompleteProvider(_ref) {
6136
6299
  _yield$predictionsPro = _context.sent;
6137
6300
  results = _yield$predictionsPro.results;
6138
6301
  status = _yield$predictionsPro.status;
6139
- if (!(status !== 'OK')) {
6140
- _context.next = 13;
6141
- break;
6302
+ if (status !== 'OK') {
6303
+ dispatch({
6304
+ type: 'search-error'
6305
+ });
6142
6306
  }
6143
- dispatch({
6144
- type: 'search-error'
6145
- });
6146
- return _context.abrupt("return");
6147
- case 13:
6148
- // We cache the results to avoid calling the API again if the user types the same value
6149
- searchResultsCache.current[value] = results;
6150
- dispatch({
6151
- type: 'search-success',
6152
- payload: {
6153
- results: results
6154
- }
6155
- });
6156
- _context.next = 20;
6307
+ if (results) {
6308
+ // We cache the results to avoid calling the API again if the user types the same value
6309
+ searchResultsCache.current[value] = results;
6310
+ dispatch({
6311
+ type: 'search-success',
6312
+ payload: {
6313
+ results: results
6314
+ }
6315
+ });
6316
+ }
6317
+ _context.next = 17;
6157
6318
  break;
6158
- case 17:
6159
- _context.prev = 17;
6319
+ case 14:
6320
+ _context.prev = 14;
6160
6321
  _context.t0 = _context["catch"](4);
6161
6322
  dispatch({
6162
6323
  type: 'search-error'
6163
6324
  });
6164
- case 20:
6325
+ case 17:
6165
6326
  case "end":
6166
6327
  return _context.stop();
6167
6328
  }
6168
- }, _callee, null, [[4, 17]]);
6329
+ }, _callee, null, [[4, 14]]);
6169
6330
  }));
6170
6331
  return function () {
6171
6332
  return _ref2.apply(this, arguments);
@@ -6324,7 +6485,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
6324
6485
  };
6325
6486
  }
6326
6487
 
6327
- var _excluded$t = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
6488
+ var _excluded$s = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
6328
6489
  function InputAddress(_ref) {
6329
6490
  var initialValue = _ref.initialValue,
6330
6491
  _ref$itemToString = _ref.itemToString,
@@ -6332,7 +6493,7 @@ function InputAddress(_ref) {
6332
6493
  errorElement = _ref.errorElement,
6333
6494
  emptyResultsElement = _ref.emptyResultsElement,
6334
6495
  _onChange = _ref.onChange,
6335
- props = _objectWithoutProperties(_ref, _excluded$t);
6496
+ props = _objectWithoutProperties(_ref, _excluded$s);
6336
6497
  var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
6337
6498
  state = _useGoogleMapsAutocom.state,
6338
6499
  _onInputChange = _useGoogleMapsAutocom.onInputChange,
@@ -6429,10 +6590,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
6429
6590
  }, props));
6430
6591
  });
6431
6592
 
6432
- var _excluded$s = ["onChange"];
6593
+ var _excluded$r = ["onChange"];
6433
6594
  var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
6434
6595
  var onChange = _ref.onChange,
6435
- props = _objectWithoutProperties(_ref, _excluded$s);
6596
+ props = _objectWithoutProperties(_ref, _excluded$r);
6436
6597
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
6437
6598
  ref: ref
6438
6599
  }, props), {}, {
@@ -6449,11 +6610,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
6449
6610
  }));
6450
6611
  });
6451
6612
 
6452
- var _excluded$r = ["isPasswordDefaultVisible", "right"];
6613
+ var _excluded$q = ["isPasswordDefaultVisible", "right"];
6453
6614
  var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
6454
6615
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
6455
6616
  right = _ref.right,
6456
- props = _objectWithoutProperties(_ref, _excluded$r);
6617
+ props = _objectWithoutProperties(_ref, _excluded$q);
6457
6618
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
6458
6619
  _useState2 = _slicedToArray(_useState, 2),
6459
6620
  isVisible = _useState2[0],
@@ -6481,7 +6642,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
6481
6642
  }));
6482
6643
  });
6483
6644
 
6484
- var _excluded$q = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
6645
+ var _excluded$p = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
6485
6646
  function isPhoneNumberValid(number) {
6486
6647
  return isValidNumber(number);
6487
6648
  }
@@ -6495,7 +6656,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
6495
6656
  _ref$phoneNumberLengt = _ref.phoneNumberLength,
6496
6657
  phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
6497
6658
  onChange = _ref.onChange,
6498
- props = _objectWithoutProperties(_ref, _excluded$q);
6659
+ props = _objectWithoutProperties(_ref, _excluded$p);
6499
6660
  var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
6500
6661
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
6501
6662
  ref: ref
@@ -6931,7 +7092,7 @@ function RadioButton(_ref) {
6931
7092
  });
6932
7093
  }
6933
7094
 
6934
- var _excluded$p = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
7095
+ var _excluded$o = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
6935
7096
  function RadioButtonGroupItem(_ref) {
6936
7097
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
6937
7098
  return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
@@ -6944,7 +7105,7 @@ function RadioButtonGroup(_ref2) {
6944
7105
  onFocus = _ref2.onFocus,
6945
7106
  onBlur = _ref2.onBlur,
6946
7107
  onChange = _ref2.onChange,
6947
- props = _objectWithoutProperties(_ref2, _excluded$p);
7108
+ props = _objectWithoutProperties(_ref2, _excluded$o);
6948
7109
  var _useState = useState(value),
6949
7110
  _useState2 = _slicedToArray(_useState, 2),
6950
7111
  currentValue = _useState2[0],
@@ -6976,12 +7137,12 @@ function RadioButtonGroup(_ref2) {
6976
7137
  }
6977
7138
  RadioButtonGroup.RadioButton = RadioButtonGroupItem;
6978
7139
 
6979
- var _excluded$o = ["helper", "limit"];
7140
+ var _excluded$n = ["helper", "limit"];
6980
7141
  var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
6981
7142
  var _props$value, _props$value2;
6982
7143
  var helper = _ref.helper,
6983
7144
  limit = _ref.limit,
6984
- props = _objectWithoutProperties(_ref, _excluded$o);
7145
+ props = _objectWithoutProperties(_ref, _excluded$n);
6985
7146
  var shouldDisplayLimit = limit && limit > 0;
6986
7147
  var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
6987
7148
  var limitContainerAnimatedStyle = useAnimatedStyle(function () {
@@ -7140,7 +7301,7 @@ function ToggleAnimated(_ref) {
7140
7301
  });
7141
7302
  }
7142
7303
 
7143
- var _excluded$n = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
7304
+ var _excluded$m = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
7144
7305
  var getLabelTypographyType = function (size) {
7145
7306
  return size === 'medium' ? 'body-m' : 'body-l';
7146
7307
  };
@@ -7162,7 +7323,7 @@ function Toggle(_ref) {
7162
7323
  value = _ref$value === void 0 ? false : _ref$value,
7163
7324
  _ref$onChange = _ref.onChange,
7164
7325
  onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
7165
- props = _objectWithoutProperties(_ref, _excluded$n);
7326
+ props = _objectWithoutProperties(_ref, _excluded$m);
7166
7327
  var theme = useKittTheme();
7167
7328
  return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
7168
7329
  alignItems: "center"
@@ -7201,13 +7362,13 @@ function Toggle(_ref) {
7201
7362
  }));
7202
7363
  }
7203
7364
 
7204
- var _excluded$m = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
7365
+ var _excluded$l = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
7205
7366
  function FullscreenModalBody(_ref) {
7206
7367
  var children = _ref.children,
7207
7368
  shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
7208
7369
  style = _ref.style,
7209
7370
  shouldHandleTopNotch = _ref.shouldHandleTopNotch,
7210
- props = _objectWithoutProperties(_ref, _excluded$m);
7371
+ props = _objectWithoutProperties(_ref, _excluded$l);
7211
7372
  var _useSafeAreaInsets = useSafeAreaInsets(),
7212
7373
  bottom = _useSafeAreaInsets.bottom,
7213
7374
  top = _useSafeAreaInsets.top;
@@ -7227,14 +7388,14 @@ function FullscreenModalBody(_ref) {
7227
7388
  }));
7228
7389
  }
7229
7390
 
7230
- var _excluded$l = ["shouldHandleBottomNotch", "hasSeparator", "children"];
7391
+ var _excluded$k = ["shouldHandleBottomNotch", "hasSeparator", "children"];
7231
7392
  function FullscreenModalFooter(_ref) {
7232
7393
  var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
7233
7394
  shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
7234
7395
  _ref$hasSeparator = _ref.hasSeparator,
7235
7396
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
7236
7397
  children = _ref.children,
7237
- props = _objectWithoutProperties(_ref, _excluded$l);
7398
+ props = _objectWithoutProperties(_ref, _excluded$k);
7238
7399
  var _useSafeAreaInsets = useSafeAreaInsets(),
7239
7400
  bottom = _useSafeAreaInsets.bottom;
7240
7401
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
@@ -7251,7 +7412,7 @@ function FullscreenModalFooter(_ref) {
7251
7412
  }));
7252
7413
  }
7253
7414
 
7254
- var _excluded$k = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
7415
+ var _excluded$j = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
7255
7416
  var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7256
7417
  var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7257
7418
  var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
@@ -7290,7 +7451,7 @@ function FullscreenModalAnimation(_ref) {
7290
7451
  onExit = _ref.onExit,
7291
7452
  onExited = _ref.onExited,
7292
7453
  onClose = _ref.onClose,
7293
- props = _objectWithoutProperties(_ref, _excluded$k);
7454
+ props = _objectWithoutProperties(_ref, _excluded$j);
7294
7455
  var theme = useTheme();
7295
7456
  var animation = theme.kitt.fullscreenModal.animation;
7296
7457
  var sharedProps = {
@@ -7317,13 +7478,13 @@ function FullscreenModalAnimation(_ref) {
7317
7478
  }));
7318
7479
  }
7319
7480
 
7320
- var _excluded$j = ["children", "visible", "onClose", "onExited"];
7481
+ var _excluded$i = ["children", "visible", "onClose", "onExited"];
7321
7482
  function FullscreenModalBehaviour(_ref) {
7322
7483
  var children = _ref.children,
7323
7484
  visible = _ref.visible,
7324
7485
  onClose = _ref.onClose,
7325
7486
  onExited = _ref.onExited,
7326
- props = _objectWithoutProperties(_ref, _excluded$j);
7487
+ props = _objectWithoutProperties(_ref, _excluded$i);
7327
7488
  var _useState = useState(visible),
7328
7489
  _useState2 = _slicedToArray(_useState, 2),
7329
7490
  isModalBehaviourVisible = _useState2[0],
@@ -7370,7 +7531,7 @@ function FullscreenModalContainer(_ref) {
7370
7531
  });
7371
7532
  }
7372
7533
 
7373
- var _excluded$i = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
7534
+ var _excluded$h = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
7374
7535
  function FullscreenModalHeader(_ref) {
7375
7536
  var _ref$hasSeparator = _ref.hasSeparator,
7376
7537
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
@@ -7381,7 +7542,7 @@ function FullscreenModalHeader(_ref) {
7381
7542
  left = _ref.left,
7382
7543
  _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
7383
7544
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
7384
- props = _objectWithoutProperties(_ref, _excluded$i);
7545
+ props = _objectWithoutProperties(_ref, _excluded$h);
7385
7546
  var _useSafeAreaInsets = useSafeAreaInsets(),
7386
7547
  top = _useSafeAreaInsets.top;
7387
7548
  var hasRight = Boolean(right);
@@ -7727,7 +7888,7 @@ var getButtonTypeAndVariant = function (iconColor) {
7727
7888
  }
7728
7889
  };
7729
7890
 
7730
- var _excluded$h = ["color", "ariaLabel"];
7891
+ var _excluded$g = ["color", "ariaLabel"];
7731
7892
  /**
7732
7893
  * @deprecated IconButton should only be used as a navigation button
7733
7894
  * Other use cases should use a <Button> component with an icon
@@ -7736,7 +7897,7 @@ function IconButton(_ref) {
7736
7897
  var _ref$color = _ref.color,
7737
7898
  color = _ref$color === void 0 ? 'black' : _ref$color;
7738
7899
  _ref.ariaLabel;
7739
- var props = _objectWithoutProperties(_ref, _excluded$h);
7900
+ var props = _objectWithoutProperties(_ref, _excluded$g);
7740
7901
  var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
7741
7902
  legacyColorToType = _getButtonTypeAndVari.type,
7742
7903
  legacyColorToVariant = _getButtonTypeAndVari.variant;
@@ -7832,10 +7993,10 @@ function useKittMapConfig() {
7832
7993
  return context;
7833
7994
  }
7834
7995
 
7835
- var _excluded$g = ["children"];
7996
+ var _excluded$f = ["children"];
7836
7997
  function ListItemContent(_ref) {
7837
7998
  var children = _ref.children,
7838
- rest = _objectWithoutProperties(_ref, _excluded$g);
7999
+ rest = _objectWithoutProperties(_ref, _excluded$f);
7839
8000
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
7840
8001
  alignSelf: "center",
7841
8002
  flexBasis: "0%",
@@ -7846,14 +8007,14 @@ function ListItemContent(_ref) {
7846
8007
  }));
7847
8008
  }
7848
8009
 
7849
- var _excluded$f = ["children", "side"],
8010
+ var _excluded$e = ["children", "side"],
7850
8011
  _excluded2$3 = ["children", "align"];
7851
8012
  // Handles the vertical alignment of the side elements of the list item
7852
8013
  function ListItemSideContainer(_ref) {
7853
8014
  var children = _ref.children,
7854
8015
  _ref$side = _ref.side,
7855
8016
  side = _ref$side === void 0 ? 'left' : _ref$side,
7856
- rest = _objectWithoutProperties(_ref, _excluded$f);
8017
+ rest = _objectWithoutProperties(_ref, _excluded$e);
7857
8018
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
7858
8019
  flexDirection: "row",
7859
8020
  marginLeft: side === 'right' ? 'kitt.2' : undefined,
@@ -7874,7 +8035,7 @@ function ListItemSideContent(_ref2) {
7874
8035
  }));
7875
8036
  }
7876
8037
 
7877
- var _excluded$e = ["children", "withPadding", "borders", "left", "right", "onPress"];
8038
+ var _excluded$d = ["children", "withPadding", "borders", "left", "right", "onPress"];
7878
8039
  function ListItem(_ref) {
7879
8040
  var children = _ref.children,
7880
8041
  withPadding = _ref.withPadding,
@@ -7882,7 +8043,7 @@ function ListItem(_ref) {
7882
8043
  left = _ref.left,
7883
8044
  right = _ref.right,
7884
8045
  onPress = _ref.onPress,
7885
- rest = _objectWithoutProperties(_ref, _excluded$e);
8046
+ rest = _objectWithoutProperties(_ref, _excluded$d);
7886
8047
  var Wrapper = onPress ? Pressable$2 : Fragment$1;
7887
8048
  var wrapperProps = onPress ? _objectSpread({
7888
8049
  accessibilityRole: 'button',
@@ -7956,12 +8117,11 @@ var SvgPinMarkerinline = function SvgPinMarkerinline(props) {
7956
8117
  width: 34,
7957
8118
  height: 36,
7958
8119
  viewBox: "0 0 34 36",
7959
- fill: "none",
8120
+ fill: "currentColor",
7960
8121
  xmlns: "http://www.w3.org/2000/svg"
7961
8122
  }, props), {}, {
7962
8123
  children: [/*#__PURE__*/jsx("path", {
7963
8124
  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",
7964
- fill: "#7B66FF",
7965
8125
  stroke: "#fff"
7966
8126
  }), /*#__PURE__*/jsx("path", {
7967
8127
  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",
@@ -7989,6 +8149,13 @@ var SvgShadowinline = function SvgShadowinline(props) {
7989
8149
  }));
7990
8150
  };
7991
8151
 
8152
+ var MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
8153
+ MapMarkerVariantEnum["HOME"] = "home";
8154
+ MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
8155
+ MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
8156
+ return MapMarkerVariantEnum;
8157
+ }({});
8158
+
7992
8159
  var SCALE_DURATION = 300;
7993
8160
  var TRANSLATE_Y_DURATION = 150;
7994
8161
  var useNativeAnimation = function (_ref) {
@@ -8043,19 +8210,13 @@ var getBackgroundColor$1 = function (_ref) {
8043
8210
  var isHovered = _ref.isHovered,
8044
8211
  isSelected = _ref.isSelected,
8045
8212
  variant = _ref.variant;
8046
- if (variant === 'home') {
8213
+ if (variant === MapMarkerVariantEnum.HOME || variant === MapMarkerVariantEnum.CLOSE_MEETING_POINT) {
8047
8214
  return isSelected || isHovered ? theme.mapMarker.home.selected : theme.mapMarker.home["default"];
8048
8215
  }
8049
8216
  return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint["default"];
8050
8217
  };
8051
8218
 
8052
- var _excluded$d = ["onPress", "testID"];
8053
- var MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
8054
- MapMarkerVariantEnum["HOME"] = "home";
8055
- MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
8056
- MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
8057
- return MapMarkerVariantEnum;
8058
- }({});
8219
+ var _excluded$c = ["onPress", "testID"];
8059
8220
  function StaticMapMarker$1(_ref) {
8060
8221
  var variant = _ref.variant,
8061
8222
  isHovered = _ref.isHovered,
@@ -8114,7 +8275,7 @@ function StaticMapMarker$1(_ref) {
8114
8275
  function MapMarker(_ref2) {
8115
8276
  var onPress = _ref2.onPress,
8116
8277
  testID = _ref2.testID,
8117
- props = _objectWithoutProperties(_ref2, _excluded$d);
8278
+ props = _objectWithoutProperties(_ref2, _excluded$c);
8118
8279
  return /*#__PURE__*/jsx(Pressable$1, {
8119
8280
  testID: testID,
8120
8281
  onPress: onPress,
@@ -8263,6 +8424,7 @@ var overridenNativeBaseSizeandSpaceScale = Object.fromEntries([1, 2, 3, 4, 5, 6,
8263
8424
  }));
8264
8425
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
8265
8426
  function createKittNativeBaseCustomTheme(theme, appTheme) {
8427
+ var _theme$tabBar$solid$d, _theme$tabBar$solid$d2, _theme$tabBar$solid$d3, _theme$tabBar$solid$d4, _theme$tabBar$solid$d5, _theme$tabBar$solid$d6, _theme$tabBar$solid$d7, _theme$tabBar$solid$d8, _theme$tabBar$solid$r, _theme$tabBar$solid$r2, _theme$tabBar$solid$r3, _theme$tabBar$solid$r4, _theme$tabBar$solid$r5, _theme$tabBar$solid$r6, _theme$tabBar$solid$r7, _theme$tabBar$solid$r8;
8266
8428
  var spaces = createKittSpaces(theme);
8267
8429
  var appBreakpoints = (appTheme === null || appTheme === void 0 ? void 0 : appTheme.breakpoints) || {};
8268
8430
  var extendedTheme = extendTheme({
@@ -8965,6 +9127,148 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8965
9127
  backgroundColor: theme.picker.web.optionsContainer.backgroundColor
8966
9128
  }
8967
9129
  }
9130
+ },
9131
+ tabBar: {
9132
+ underline: {
9133
+ "default": {
9134
+ active: {
9135
+ color: {
9136
+ "default": theme.tabBar.underline["default"].active.color["default"],
9137
+ focused: theme.tabBar.underline["default"].active.color.focused,
9138
+ hovered: theme.tabBar.underline["default"].active.color.hovered,
9139
+ pressed: theme.tabBar.underline["default"].active.color.pressed
9140
+ },
9141
+ indicator: {
9142
+ backgroundColor: theme.tabBar.underline["default"].active.indicator.backgroundColor
9143
+ }
9144
+ },
9145
+ inactive: {
9146
+ color: {
9147
+ "default": theme.tabBar.underline["default"].inactive.color["default"],
9148
+ focused: theme.tabBar.underline["default"].inactive.color.focused,
9149
+ hovered: theme.tabBar.underline["default"].inactive.color.hovered,
9150
+ pressed: theme.tabBar.underline["default"].inactive.color.pressed
9151
+ }
9152
+ },
9153
+ disabled: {
9154
+ color: {
9155
+ "default": theme.tabBar.underline["default"].disabled.color["default"],
9156
+ focused: theme.tabBar.underline["default"].disabled.color.focused,
9157
+ hovered: theme.tabBar.underline["default"].disabled.color.hovered,
9158
+ pressed: theme.tabBar.underline["default"].disabled.color.pressed
9159
+ }
9160
+ },
9161
+ borderBottomColor: theme.tabBar.underline["default"].borderBottomColor
9162
+ },
9163
+ revert: {
9164
+ active: {
9165
+ color: {
9166
+ "default": theme.tabBar.underline.revert.active.color["default"],
9167
+ focused: theme.tabBar.underline.revert.active.color.focused,
9168
+ hovered: theme.tabBar.underline.revert.active.color.hovered,
9169
+ pressed: theme.tabBar.underline.revert.active.color.pressed
9170
+ },
9171
+ indicator: {
9172
+ backgroundColor: theme.tabBar.underline.revert.active.indicator.backgroundColor
9173
+ }
9174
+ },
9175
+ inactive: {
9176
+ color: {
9177
+ "default": theme.tabBar.underline.revert.inactive.color["default"],
9178
+ focused: theme.tabBar.underline.revert.inactive.color.focused,
9179
+ hovered: theme.tabBar.underline.revert.inactive.color.hovered,
9180
+ pressed: theme.tabBar.underline.revert.inactive.color.pressed
9181
+ }
9182
+ },
9183
+ disabled: {
9184
+ color: {
9185
+ "default": theme.tabBar.underline.revert.disabled.color["default"],
9186
+ focused: theme.tabBar.underline.revert.disabled.color.focused,
9187
+ hovered: theme.tabBar.underline.revert.disabled.color.hovered,
9188
+ pressed: theme.tabBar.underline.revert.disabled.color.pressed
9189
+ }
9190
+ },
9191
+ borderBottomColor: theme.tabBar.underline.revert.borderBottomColor
9192
+ }
9193
+ },
9194
+ solid: {
9195
+ "default": {
9196
+ active: {
9197
+ color: {
9198
+ "default": theme.tabBar.solid["default"].active.color["default"],
9199
+ focused: theme.tabBar.solid["default"].active.color.focused,
9200
+ hovered: theme.tabBar.solid["default"].active.color.hovered,
9201
+ pressed: theme.tabBar.solid["default"].active.color.pressed
9202
+ },
9203
+ backgroundColor: {
9204
+ "default": (_theme$tabBar$solid$d = theme.tabBar.solid["default"].active.backgroundColor) === null || _theme$tabBar$solid$d === void 0 ? void 0 : _theme$tabBar$solid$d["default"],
9205
+ focused: (_theme$tabBar$solid$d2 = theme.tabBar.solid["default"].active.backgroundColor) === null || _theme$tabBar$solid$d2 === void 0 ? void 0 : _theme$tabBar$solid$d2.focused,
9206
+ hovered: (_theme$tabBar$solid$d3 = theme.tabBar.solid["default"].active.backgroundColor) === null || _theme$tabBar$solid$d3 === void 0 ? void 0 : _theme$tabBar$solid$d3.hovered,
9207
+ pressed: (_theme$tabBar$solid$d4 = theme.tabBar.solid["default"].active.backgroundColor) === null || _theme$tabBar$solid$d4 === void 0 ? void 0 : _theme$tabBar$solid$d4.pressed
9208
+ }
9209
+ },
9210
+ inactive: {
9211
+ color: {
9212
+ "default": theme.tabBar.solid["default"].inactive.color["default"],
9213
+ focused: theme.tabBar.solid["default"].inactive.color.focused,
9214
+ hovered: theme.tabBar.solid["default"].inactive.color.hovered,
9215
+ pressed: theme.tabBar.solid["default"].inactive.color.pressed
9216
+ },
9217
+ backgroundColor: {
9218
+ "default": (_theme$tabBar$solid$d5 = theme.tabBar.solid["default"].inactive.backgroundColor) === null || _theme$tabBar$solid$d5 === void 0 ? void 0 : _theme$tabBar$solid$d5["default"],
9219
+ focused: (_theme$tabBar$solid$d6 = theme.tabBar.solid["default"].inactive.backgroundColor) === null || _theme$tabBar$solid$d6 === void 0 ? void 0 : _theme$tabBar$solid$d6.focused,
9220
+ hovered: (_theme$tabBar$solid$d7 = theme.tabBar.solid["default"].inactive.backgroundColor) === null || _theme$tabBar$solid$d7 === void 0 ? void 0 : _theme$tabBar$solid$d7.hovered,
9221
+ pressed: (_theme$tabBar$solid$d8 = theme.tabBar.solid["default"].inactive.backgroundColor) === null || _theme$tabBar$solid$d8 === void 0 ? void 0 : _theme$tabBar$solid$d8.pressed
9222
+ }
9223
+ },
9224
+ disabled: {
9225
+ color: {
9226
+ "default": theme.tabBar.solid["default"].disabled.color["default"],
9227
+ focused: theme.tabBar.solid["default"].disabled.color.focused,
9228
+ hovered: theme.tabBar.solid["default"].disabled.color.hovered,
9229
+ pressed: theme.tabBar.solid["default"].disabled.color.pressed
9230
+ }
9231
+ }
9232
+ },
9233
+ revert: {
9234
+ active: {
9235
+ color: {
9236
+ "default": theme.tabBar.solid.revert.active.color["default"],
9237
+ focused: theme.tabBar.solid.revert.active.color.focused,
9238
+ hovered: theme.tabBar.solid.revert.active.color.hovered,
9239
+ pressed: theme.tabBar.solid.revert.active.color.pressed
9240
+ },
9241
+ backgroundColor: {
9242
+ "default": (_theme$tabBar$solid$r = theme.tabBar.solid.revert.active.backgroundColor) === null || _theme$tabBar$solid$r === void 0 ? void 0 : _theme$tabBar$solid$r["default"],
9243
+ focused: (_theme$tabBar$solid$r2 = theme.tabBar.solid.revert.active.backgroundColor) === null || _theme$tabBar$solid$r2 === void 0 ? void 0 : _theme$tabBar$solid$r2.focused,
9244
+ hovered: (_theme$tabBar$solid$r3 = theme.tabBar.solid.revert.active.backgroundColor) === null || _theme$tabBar$solid$r3 === void 0 ? void 0 : _theme$tabBar$solid$r3.hovered,
9245
+ pressed: (_theme$tabBar$solid$r4 = theme.tabBar.solid.revert.active.backgroundColor) === null || _theme$tabBar$solid$r4 === void 0 ? void 0 : _theme$tabBar$solid$r4.pressed
9246
+ }
9247
+ },
9248
+ inactive: {
9249
+ color: {
9250
+ "default": theme.tabBar.solid.revert.inactive.color["default"],
9251
+ focused: theme.tabBar.solid.revert.inactive.color.focused,
9252
+ hovered: theme.tabBar.solid.revert.inactive.color.hovered,
9253
+ pressed: theme.tabBar.solid.revert.inactive.color.pressed
9254
+ },
9255
+ backgroundColor: {
9256
+ "default": (_theme$tabBar$solid$r5 = theme.tabBar.solid.revert.inactive.backgroundColor) === null || _theme$tabBar$solid$r5 === void 0 ? void 0 : _theme$tabBar$solid$r5["default"],
9257
+ focused: (_theme$tabBar$solid$r6 = theme.tabBar.solid.revert.inactive.backgroundColor) === null || _theme$tabBar$solid$r6 === void 0 ? void 0 : _theme$tabBar$solid$r6.focused,
9258
+ hovered: (_theme$tabBar$solid$r7 = theme.tabBar.solid.revert.inactive.backgroundColor) === null || _theme$tabBar$solid$r7 === void 0 ? void 0 : _theme$tabBar$solid$r7.hovered,
9259
+ pressed: (_theme$tabBar$solid$r8 = theme.tabBar.solid.revert.inactive.backgroundColor) === null || _theme$tabBar$solid$r8 === void 0 ? void 0 : _theme$tabBar$solid$r8.pressed
9260
+ }
9261
+ },
9262
+ disabled: {
9263
+ color: {
9264
+ "default": theme.tabBar.solid.revert.disabled.color["default"],
9265
+ focused: theme.tabBar.solid.revert.disabled.color.focused,
9266
+ hovered: theme.tabBar.solid.revert.disabled.color.hovered,
9267
+ pressed: theme.tabBar.solid.revert.disabled.color.pressed
9268
+ }
9269
+ }
9270
+ }
9271
+ }
8968
9272
  }
8969
9273
  }),
8970
9274
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.colors
@@ -9040,6 +9344,44 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9040
9344
  highlight: {
9041
9345
  borderRadius: theme.highlight.borderRadius
9042
9346
  },
9347
+ tabBar: {
9348
+ underline: {
9349
+ "default": {
9350
+ active: {
9351
+ borderRadius: theme.tabBar.underline["default"].active.borderRadius
9352
+ },
9353
+ inactive: {
9354
+ borderRadius: theme.tabBar.underline["default"].inactive.borderRadius
9355
+ }
9356
+ },
9357
+ revert: {
9358
+ active: {
9359
+ borderRadius: theme.tabBar.underline.revert.active.borderRadius
9360
+ },
9361
+ inactive: {
9362
+ borderRadius: theme.tabBar.underline.revert.inactive.borderRadius
9363
+ }
9364
+ }
9365
+ },
9366
+ solid: {
9367
+ "default": {
9368
+ active: {
9369
+ borderRadius: theme.tabBar.solid["default"].active.borderRadius
9370
+ },
9371
+ inactive: {
9372
+ borderRadius: theme.tabBar.solid["default"].inactive.borderRadius
9373
+ }
9374
+ },
9375
+ revert: {
9376
+ active: {
9377
+ borderRadius: theme.tabBar.solid.revert.active.borderRadius
9378
+ },
9379
+ inactive: {
9380
+ borderRadius: theme.tabBar.solid.revert.inactive.borderRadius
9381
+ }
9382
+ }
9383
+ }
9384
+ },
9043
9385
  tag: {
9044
9386
  borderRadius: theme.tag.borderRadius
9045
9387
  },
@@ -10607,7 +10949,7 @@ function KittNativeBaseProvider(_ref) {
10607
10949
  });
10608
10950
  }
10609
10951
 
10610
- var _excluded$c = ["scrollEnabled", "ListHeaderComponent", "ListFooterComponent", "data", "numColumns", "ListHeaderComponentStyle", "ListFooterComponentStyle", "contentContainerStyle", "keyExtractor", "renderItem"];
10952
+ var _excluded$b = ["scrollEnabled", "ListHeaderComponent", "ListFooterComponent", "data", "numColumns", "ListHeaderComponentStyle", "ListFooterComponentStyle", "contentContainerStyle", "keyExtractor", "renderItem"];
10611
10953
  function NativeOnlyFlatList(_ref) {
10612
10954
  var scrollEnabled = _ref.scrollEnabled,
10613
10955
  ListHeaderComponent = _ref.ListHeaderComponent,
@@ -10622,7 +10964,7 @@ function NativeOnlyFlatList(_ref) {
10622
10964
  return index.toString();
10623
10965
  } : _ref$keyExtractor,
10624
10966
  renderItem = _ref.renderItem,
10625
- props = _objectWithoutProperties(_ref, _excluded$c);
10967
+ props = _objectWithoutProperties(_ref, _excluded$b);
10626
10968
  return /*#__PURE__*/jsxs(ScrollView$1, _objectSpread(_objectSpread({
10627
10969
  scrollEnabled: scrollEnabled,
10628
10970
  contentContainerStyle: contentContainerStyle
@@ -10652,7 +10994,7 @@ function NativeOnlyFlatList(_ref) {
10652
10994
  }));
10653
10995
  }
10654
10996
 
10655
- var _excluded$b = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
10997
+ var _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
10656
10998
  function NavigationModalBehaviour(_ref) {
10657
10999
  var children = _ref.children,
10658
11000
  visible = _ref.visible,
@@ -10662,7 +11004,7 @@ function NavigationModalBehaviour(_ref) {
10662
11004
  onEnter = _ref.onEnter,
10663
11005
  onExit = _ref.onExit,
10664
11006
  onClose = _ref.onClose,
10665
- props = _objectWithoutProperties(_ref, _excluded$b);
11007
+ props = _objectWithoutProperties(_ref, _excluded$a);
10666
11008
  var AnimationComponent = useBreakpointValue({
10667
11009
  base: FullscreenModalAnimation,
10668
11010
  small: CardModalAnimation
@@ -10925,7 +11267,7 @@ function webUseSelectReducer(state, actionAndChanges, options) {
10925
11267
  }
10926
11268
  }
10927
11269
 
10928
- var _excluded$a = ["onClick"],
11270
+ var _excluded$9 = ["onClick"],
10929
11271
  _excluded2$2 = ["ref"],
10930
11272
  _excluded3$2 = ["onClick", "aria-selected"];
10931
11273
  var enter = "kitt-u_enter_ereraf";
@@ -10992,7 +11334,7 @@ function Picker(_ref) {
10992
11334
  getItemProps = _useSelect.getItemProps;
10993
11335
  var _getToggleButtonProps = getToggleButtonProps(),
10994
11336
  onPressTrigger = _getToggleButtonProps.onClick,
10995
- restToggleProps = _objectWithoutProperties(_getToggleButtonProps, _excluded$a);
11337
+ restToggleProps = _objectWithoutProperties(_getToggleButtonProps, _excluded$9);
10996
11338
  var _useFloating = useFloating({
10997
11339
  placement: itemsPlacement,
10998
11340
  strategy: 'fixed',
@@ -11072,6 +11414,7 @@ function Picker(_ref) {
11072
11414
  paddingY: "kitt.2",
11073
11415
  children: childrenArray.map(function (child, index) {
11074
11416
  var currentValue = items[index];
11417
+ if (currentValue === undefined) throw new Error("Picker: No value found for item at index ".concat(index));
11075
11418
  var _getItemProps = getItemProps({
11076
11419
  item: currentValue,
11077
11420
  index: index,
@@ -11178,7 +11521,7 @@ function SkeletonContent(_ref) {
11178
11521
  });
11179
11522
  }
11180
11523
 
11181
- var _excluded$9 = ["isLoading", "style"],
11524
+ var _excluded$8 = ["isLoading", "style"],
11182
11525
  _excluded2$1 = ["size"],
11183
11526
  _excluded3$1 = ["size"],
11184
11527
  _excluded4$1 = ["size"];
@@ -11186,7 +11529,7 @@ function Skeleton(_ref) {
11186
11529
  var _ref$isLoading = _ref.isLoading,
11187
11530
  isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
11188
11531
  style = _ref.style,
11189
- props = _objectWithoutProperties(_ref, _excluded$9);
11532
+ props = _objectWithoutProperties(_ref, _excluded$8);
11190
11533
  var _useState = useState(0),
11191
11534
  _useState2 = _slicedToArray(_useState, 2),
11192
11535
  width = _useState2[0],
@@ -11369,7 +11712,7 @@ function getShouldDisplay2x() {
11369
11712
  return window.devicePixelRatio ? window.devicePixelRatio > 1 : false;
11370
11713
  }
11371
11714
 
11372
- var _excluded$8 = ["width", "height", "alt", "apiToken", "mapId", "marker", "center", "onLoaded", "onError"];
11715
+ var _excluded$7 = ["width", "height", "alt", "apiToken", "mapId", "marker", "center", "onLoaded", "onError"];
11373
11716
  var mapBoxMaxPictureWidth = 1280;
11374
11717
 
11375
11718
  // Mapbox requestable width for image is between 1 - 1280px
@@ -11387,7 +11730,7 @@ function StaticMap(_ref) {
11387
11730
  center = _ref.center,
11388
11731
  onLoaded = _ref.onLoaded,
11389
11732
  onError = _ref.onError,
11390
- props = _objectWithoutProperties(_ref, _excluded$8);
11733
+ props = _objectWithoutProperties(_ref, _excluded$7);
11391
11734
  var _useState = useState(getPictureWidth(width)),
11392
11735
  _useState2 = _slicedToArray(_useState, 2),
11393
11736
  currentWidth = _useState2[0],
@@ -11477,12 +11820,12 @@ StaticMap.Loader = StaticMapLoader;
11477
11820
  StaticMap.Error = StaticMapError;
11478
11821
  StaticMap.Marker = StaticMapMarker;
11479
11822
 
11480
- var _excluded$7 = ["direction", "wrap"];
11823
+ var _excluded$6 = ["direction", "wrap"];
11481
11824
  function Flex(_ref) {
11482
11825
  var direction = _ref.direction,
11483
11826
  _ref$wrap = _ref.wrap,
11484
11827
  wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
11485
- props = _objectWithoutProperties(_ref, _excluded$7);
11828
+ props = _objectWithoutProperties(_ref, _excluded$6);
11486
11829
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
11487
11830
  flexDirection: direction,
11488
11831
  flexWrap: wrap
@@ -11620,7 +11963,7 @@ function Story(_ref) {
11620
11963
  });
11621
11964
  }
11622
11965
 
11623
- var _excluded$6 = ["title", "children", "internalIsDemoSection"],
11966
+ var _excluded$5 = ["title", "children", "internalIsDemoSection"],
11624
11967
  _excluded2 = ["title", "children"],
11625
11968
  _excluded3 = ["title", "children"],
11626
11969
  _excluded4 = ["children"];
@@ -11628,7 +11971,7 @@ function StorySection(_ref) {
11628
11971
  var title = _ref.title,
11629
11972
  children = _ref.children,
11630
11973
  internalIsDemoSection = _ref.internalIsDemoSection,
11631
- props = _objectWithoutProperties(_ref, _excluded$6);
11974
+ props = _objectWithoutProperties(_ref, _excluded$5);
11632
11975
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
11633
11976
  return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
11634
11977
  marginBottom: "kitt.8"
@@ -11765,99 +12108,100 @@ var StoryGrid = {
11765
12108
  Col: StoryGridCol
11766
12109
  };
11767
12110
 
11768
- function useTabBarItemColor(color, isActive) {
11769
- var _useKittTheme = useKittTheme(),
11770
- kittTheme = _useKittTheme.kitt;
11771
- switch (color) {
11772
- case 'black':
11773
- {
11774
- return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
11775
- }
11776
- case 'white':
11777
- {
11778
- return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple['white-alpha.80'];
11779
- }
11780
- default:
11781
- {
11782
- return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
11783
- }
11784
- }
11785
- }
11786
- function useTabBarIndicatorColor(color, isActive) {
11787
- var _useKittTheme2 = useKittTheme(),
11788
- kittTheme = _useKittTheme2.kitt;
11789
- switch (color) {
11790
- case 'black':
11791
- {
11792
- return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
11793
- }
11794
- case 'white':
11795
- {
11796
- return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple.transparent;
11797
- }
11798
- default:
11799
- {
11800
- return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
11801
- }
11802
- }
11803
- }
12111
+ var getVariantFromColor = function (color) {
12112
+ if (color === 'white') return 'revert';
12113
+ return 'default';
12114
+ };
12115
+ var getTabBarItemActiveState = function (isActive, disabled) {
12116
+ if (disabled) return 'disabled';
12117
+ if (isActive) return 'active';
12118
+ return 'inactive';
12119
+ };
12120
+ var getTabBarItemState = function (isHovered, isPressed, isFocused) {
12121
+ if (isHovered) return 'hovered';
12122
+ if (isPressed) return 'pressed';
12123
+ if (isFocused) return 'focused';
12124
+ return 'default';
12125
+ };
11804
12126
  function TabBarItem(_ref) {
11805
12127
  var name = _ref.name,
11806
12128
  icon = _ref.icon,
11807
- _ref$color = _ref.color,
11808
- color = _ref$color === void 0 ? 'black' : _ref$color,
12129
+ _ref$variant = _ref.variant,
12130
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
12131
+ _ref$type = _ref.type,
12132
+ type = _ref$type === void 0 ? 'underline' : _ref$type,
12133
+ color = _ref.color,
11809
12134
  testID = _ref.testID,
12135
+ disabled = _ref.disabled,
11810
12136
  _ref$isActive = _ref.isActive,
11811
12137
  isActive = _ref$isActive === void 0 ? false : _ref$isActive,
12138
+ _ref$isFocusedInterna = _ref.isFocusedInternal,
12139
+ isFocusedInternal = _ref$isFocusedInterna === void 0 ? false : _ref$isFocusedInterna,
12140
+ _ref$isHoveredInterna = _ref.isHoveredInternal,
12141
+ isHoveredInternal = _ref$isHoveredInterna === void 0 ? false : _ref$isHoveredInterna,
12142
+ _ref$isPressedInterna = _ref.isPressedInternal,
12143
+ isPressedInternal = _ref$isPressedInterna === void 0 ? false : _ref$isPressedInterna,
11812
12144
  onPress = _ref.onPress;
11813
- var typographyColor = useTabBarItemColor(color, isActive);
11814
- var indicatorColor = useTabBarIndicatorColor(color, isActive);
12145
+ // Keep backward compatibility with color property
12146
+ var definedVariant = color ? getVariantFromColor(color) : variant;
12147
+ var activeState = getTabBarItemActiveState(isActive, disabled);
12148
+ var baseTheme = "kitt.tabBar.".concat(type, ".").concat(definedVariant, ".").concat(activeState);
11815
12149
  return /*#__PURE__*/jsx(Pressable, {
12150
+ disabled: disabled,
11816
12151
  testID: testID,
11817
12152
  onPress: onPress,
11818
- children: /*#__PURE__*/jsxs(HStack, {
11819
- height: 56,
11820
- alignItems: "center",
11821
- position: "relative",
11822
- children: [icon ? /*#__PURE__*/jsx(View, {
11823
- marginRight: "kitt.1",
11824
- children: /*#__PURE__*/jsx(TypographyIcon, {
11825
- color: typographyColor,
11826
- icon: icon
11827
- })
11828
- }) : null, /*#__PURE__*/jsx(Typography.Text, {
11829
- numberOfLines: 1,
11830
- color: typographyColor,
11831
- variant: isActive ? 'bold' : undefined,
11832
- children: name
11833
- }), /*#__PURE__*/jsx(View, {
11834
- borderRadius: 100,
11835
- backgroundColor: indicatorColor,
11836
- position: "absolute",
11837
- bottom: -1 // in order to be over tab bar's border bottom
11838
- ,
11839
- width: "100%",
11840
- height: 4
11841
- })]
11842
- })
12153
+ children: function children(_ref2) {
12154
+ var isHovered = _ref2.isHovered,
12155
+ isPressed = _ref2.isPressed,
12156
+ isFocused = _ref2.isFocused;
12157
+ var state = getTabBarItemState(isHovered || isHoveredInternal, isPressed || isPressedInternal, isFocused || isFocusedInternal);
12158
+ return /*#__PURE__*/jsxs(HStack, {
12159
+ alignItems: "center",
12160
+ position: "relative",
12161
+ paddingY: "kitt.2",
12162
+ paddingRight: "kitt.2",
12163
+ paddingLeft: icon ? undefined : 'kitt.2',
12164
+ backgroundColor: "".concat(baseTheme, ".backgroundColor.").concat(state),
12165
+ borderRadius: "".concat(baseTheme, ".borderRadius"),
12166
+ children: [icon ? /*#__PURE__*/jsx(View, {
12167
+ marginRight: "kitt.2",
12168
+ children: /*#__PURE__*/jsx(TypographyIcon, {
12169
+ color: "".concat(baseTheme, ".color.").concat(state),
12170
+ icon: icon
12171
+ })
12172
+ }) : null, /*#__PURE__*/jsx(Typography.Text, {
12173
+ base: "label-large",
12174
+ numberOfLines: 1,
12175
+ color: "".concat(baseTheme, ".color.").concat(state),
12176
+ children: name
12177
+ }), type !== 'solid' ? /*#__PURE__*/jsx(View, {
12178
+ backgroundColor: "".concat(baseTheme, ".indicator.backgroundColor"),
12179
+ position: "absolute",
12180
+ bottom: -1 // in order to be over tab bar's border bottom
12181
+ ,
12182
+ left: 0,
12183
+ right: 0,
12184
+ height: 2
12185
+ }) : null]
12186
+ });
12187
+ }
11843
12188
  });
11844
12189
  }
11845
12190
 
11846
- var _excluded$5 = ["tabs", "color", "align", "activeTabIndex", "renderTabItem", "onChangeTab"];
11847
12191
  function TabBar(_ref) {
11848
12192
  var tabs = _ref.tabs,
11849
- _ref$color = _ref.color,
11850
- color = _ref$color === void 0 ? 'black' : _ref$color,
12193
+ _ref$variant = _ref.variant,
12194
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
12195
+ _ref$type = _ref.type,
12196
+ type = _ref$type === void 0 ? 'underline' : _ref$type,
11851
12197
  _ref$align = _ref.align,
11852
12198
  align = _ref$align === void 0 ? 'left' : _ref$align,
12199
+ color = _ref.color,
11853
12200
  _ref$activeTabIndex = _ref.activeTabIndex,
11854
12201
  activeTabIndex = _ref$activeTabIndex === void 0 ? 0 : _ref$activeTabIndex,
11855
12202
  renderTabItem = _ref.renderTabItem,
11856
- onChangeTab = _ref.onChangeTab,
11857
- props = _objectWithoutProperties(_ref, _excluded$5);
12203
+ onChangeTab = _ref.onChangeTab;
11858
12204
  var sx = useSx();
11859
- var _useKittTheme = useKittTheme(),
11860
- kittTheme = _useKittTheme.kitt;
11861
12205
  var tabItems = tabs.map(function (tab, index) {
11862
12206
  return renderTabItem({
11863
12207
  tab: tab,
@@ -11865,29 +12209,40 @@ function TabBar(_ref) {
11865
12209
  isActive: activeTabIndex === index
11866
12210
  });
11867
12211
  });
11868
- var scrollViewStyles = sx({
12212
+ var styles = {
11869
12213
  justifyContent: align,
11870
12214
  paddingRight: align === 'center' ? 'kitt.2' : 'kitt.12',
11871
- minWidth: '100%',
11872
- borderBottomWidth: 1,
11873
- borderBottomColor: kittTheme.palettes.deepPurple['beige.2']
11874
- });
12215
+ minWidth: '100%'
12216
+ };
12217
+
12218
+ // Keep backward compatibility with color property
12219
+ var definedVariant = color ? getVariantFromColor(color) : variant;
12220
+ if (type !== 'solid') {
12221
+ styles = _objectSpread(_objectSpread({}, styles), {}, {
12222
+ borderBottomWidth: 1,
12223
+ borderBottomColor: "kitt.tabBar.".concat(type, ".").concat(definedVariant, ".borderBottomColor")
12224
+ });
12225
+ }
12226
+ var scrollViewStyles = sx(styles);
12227
+ var space = type === 'solid' ? 'kitt.2' : 'kitt.4';
11875
12228
  return /*#__PURE__*/jsx(ScrollView, {
11876
12229
  horizontal: true,
11877
12230
  showsHorizontalScrollIndicator: false,
11878
12231
  contentContainerStyle: scrollViewStyles,
11879
- children: /*#__PURE__*/jsx(HStack, _objectSpread(_objectSpread({
11880
- space: align === 'center' ? 'kitt.16' : 'kitt.4'
11881
- }, props), {}, {
12232
+ children: /*#__PURE__*/jsx(HStack, {
12233
+ space: align === 'center' ? 'kitt.16' : space,
11882
12234
  children: Children.map(tabItems, function (child, index) {
11883
12235
  var tab = tabs[index];
12236
+ if (!tab) throw new Error("TabBar: tab is undefined at index ".concat(index));
11884
12237
  return /*#__PURE__*/jsx(View, {
11885
12238
  children: /*#__PURE__*/cloneElement(child, {
11886
12239
  color: color,
12240
+ variant: definedVariant,
12241
+ type: type,
11887
12242
  onPress: function onPress(event) {
11888
12243
  var _child$props$onPress, _child$props;
11889
12244
  onChangeTab({
11890
- tab: tabs[index],
12245
+ tab: tab,
11891
12246
  index: index
11892
12247
  });
11893
12248
  (_child$props$onPress = (_child$props = child.props).onPress) === null || _child$props$onPress === void 0 || _child$props$onPress.call(_child$props, event);
@@ -11895,7 +12250,7 @@ function TabBar(_ref) {
11895
12250
  })
11896
12251
  }, tab.key);
11897
12252
  })
11898
- }))
12253
+ })
11899
12254
  });
11900
12255
  }
11901
12256
  TabBar.Item = TabBarItem;
@@ -12042,6 +12397,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12042
12397
  _currentInputValue$sp2 = _slicedToArray(_currentInputValue$sp, 2),
12043
12398
  hours = _currentInputValue$sp2[0],
12044
12399
  minutes = _currentInputValue$sp2[1];
12400
+ if (!hours || !minutes) return;
12045
12401
 
12046
12402
  // Prepare the next date. It clones the date value passed as prop if available
12047
12403
  var nextDate = value ? new Date(value) : new Date();
@@ -12085,6 +12441,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12085
12441
  _sanitizedValue$split2 = _slicedToArray(_sanitizedValue$split, 2),
12086
12442
  hours = _sanitizedValue$split2[0],
12087
12443
  minutes = _sanitizedValue$split2[1];
12444
+ if (!hours || !minutes) return;
12088
12445
  var currentHours = getDisplayedHours(hours);
12089
12446
  var currentMinutes = getDisplayedMinutes(minutes);
12090
12447
  var nextValue = "".concat(currentHours, ":").concat(currentMinutes);