@ornikar/kitt-universal 9.1.3 → 9.3.1

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 (63) hide show
  1. package/dist/definitions/ModalBehaviour/ModalBehaviour.d.ts +18 -0
  2. package/dist/definitions/ModalBehaviour/ModalBehaviour.d.ts.map +1 -0
  3. package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.d.ts +7 -0
  4. package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.d.ts.map +1 -0
  5. package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.web.d.ts +4 -0
  6. package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.web.d.ts.map +1 -0
  7. package/dist/definitions/ModalBehaviour/OnCloseContext.d.ts +11 -0
  8. package/dist/definitions/ModalBehaviour/OnCloseContext.d.ts.map +1 -0
  9. package/dist/definitions/NavigationModal/Body.d.ts +9 -0
  10. package/dist/definitions/NavigationModal/Body.d.ts.map +1 -0
  11. package/dist/definitions/NavigationModal/ContentPadding.d.ts +7 -0
  12. package/dist/definitions/NavigationModal/ContentPadding.d.ts.map +1 -0
  13. package/dist/definitions/NavigationModal/Footer.d.ts +11 -0
  14. package/dist/definitions/NavigationModal/Footer.d.ts.map +1 -0
  15. package/dist/definitions/NavigationModal/Header.d.ts +31 -0
  16. package/dist/definitions/NavigationModal/Header.d.ts.map +1 -0
  17. package/dist/definitions/NavigationModal/NavigationModal.d.ts +17 -0
  18. package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -0
  19. package/dist/definitions/NavigationModal/NavigationModalContainer.d.ts +8 -0
  20. package/dist/definitions/NavigationModal/NavigationModalContainer.d.ts.map +1 -0
  21. package/dist/definitions/index.d.ts +6 -0
  22. package/dist/definitions/index.d.ts.map +1 -1
  23. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +3498 -3556
  24. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  25. package/dist/definitions/native-base/acceptable-native-base-props.d.ts +9 -0
  26. package/dist/definitions/native-base/acceptable-native-base-props.d.ts.map +1 -0
  27. package/dist/definitions/native-base/layout.d.ts +23 -0
  28. package/dist/definitions/native-base/layout.d.ts.map +1 -0
  29. package/dist/definitions/native-base/primitives.d.ts +21 -0
  30. package/dist/definitions/native-base/primitives.d.ts.map +1 -0
  31. package/dist/definitions/themes/default.d.ts +1 -0
  32. package/dist/definitions/themes/default.d.ts.map +1 -1
  33. package/dist/definitions/themes/late-ocean/navigationModal.d.ts +6 -0
  34. package/dist/definitions/themes/late-ocean/navigationModal.d.ts.map +1 -0
  35. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  36. package/dist/index-browser-all.es.android.js +378 -70
  37. package/dist/index-browser-all.es.android.js.map +1 -1
  38. package/dist/index-browser-all.es.ios.js +378 -70
  39. package/dist/index-browser-all.es.ios.js.map +1 -1
  40. package/dist/index-browser-all.es.js +378 -70
  41. package/dist/index-browser-all.es.js.map +1 -1
  42. package/dist/index-browser-all.es.web.js +457 -126
  43. package/dist/index-browser-all.es.web.js.map +1 -1
  44. package/dist/index-node-14.17.cjs.js +337 -19
  45. package/dist/index-node-14.17.cjs.js.map +1 -1
  46. package/dist/index-node-14.17.cjs.web.css +1 -0
  47. package/dist/index-node-14.17.cjs.web.js +349 -19
  48. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  49. package/dist/linaria-themes-browser-all.es.android.js +7 -1
  50. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  51. package/dist/linaria-themes-browser-all.es.ios.js +7 -1
  52. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  53. package/dist/linaria-themes-browser-all.es.js +7 -1
  54. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  55. package/dist/linaria-themes-browser-all.es.web.js +7 -1
  56. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  57. package/dist/linaria-themes-node-14.17.cjs.js +7 -1
  58. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  59. package/dist/linaria-themes-node-14.17.cjs.web.js +7 -1
  60. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  61. package/dist/styles.css +1 -0
  62. package/dist/tsbuildinfo +1 -1
  63. package/package.json +6 -3
@@ -2,14 +2,14 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import { UserIcon, CheckboxMark, XIcon, EyeOffIcon, EyeIcon, ArcIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
4
4
  export * from '@ornikar/kitt-icons';
5
- import { Platform, Image, Linking, useWindowDimensions, Pressable, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$2, TextInput, View, Animated as Animated$1, Easing } from 'react-native';
5
+ import { Platform, Image, Linking, useWindowDimensions, Pressable as Pressable$1, StyleSheet, ScrollView as ScrollView$1, Modal as Modal$1, Text as Text$2, TextInput, View as View$1, Animated as Animated$1, Easing } from 'react-native';
6
6
  export { useWindowDimensions as useWindowSize } from 'react-native';
7
7
  import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
8
8
  import React, { cloneElement, useContext, createContext, forwardRef, useMemo, useEffect, useState, useRef, Fragment as Fragment$1, Children } from 'react';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
- import { Text as Text$1, Image as Image$1, extendTheme, NativeBaseProvider } from 'native-base';
11
- import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, useAnimatedProps, withDelay, withTiming, Easing as Easing$1, withRepeat, interpolate } from 'react-native-reanimated';
12
10
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
11
+ import { Text as Text$1, Image as Image$1, NativeBaseProvider, extendTheme, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, View as View$2, ScrollView as ScrollView$2, Pressable as Pressable$2 } from 'native-base';
12
+ import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, useAnimatedProps, withDelay, withTiming, Easing as Easing$1, withRepeat, interpolate } from 'react-native-reanimated';
13
13
  import { parse } from 'twemoji-parser';
14
14
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
15
15
  import _regeneratorRuntime from '@babel/runtime/regenerator';
@@ -115,7 +115,7 @@ var KittBreakpointNameEnum;
115
115
  KittBreakpointNameEnum["WIDE"] = "wide";
116
116
  })(KittBreakpointNameEnum || (KittBreakpointNameEnum = {}));
117
117
 
118
- var _excluded$i = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
118
+ var _excluded$k = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
119
119
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
120
120
  var TypographyColorContext = /*#__PURE__*/createContext('black');
121
121
  function useTypographyColor() {
@@ -176,7 +176,7 @@ function Typography(_ref) {
176
176
  } : _ref$type,
177
177
  variant = _ref.variant,
178
178
  color = _ref.color,
179
- otherProps = _objectWithoutProperties(_ref, _excluded$i);
179
+ otherProps = _objectWithoutProperties(_ref, _excluded$k);
180
180
 
181
181
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
182
182
  var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
@@ -187,6 +187,18 @@ function Typography(_ref) {
187
187
  base: baseOrDefaultToBody
188
188
  }));
189
189
 
190
+ if (process.env.NODE_ENV !== 'production') {
191
+ Object.entries(type).forEach(function (_ref2) {
192
+ var _ref3 = _slicedToArray(_ref2, 2),
193
+ key = _ref3[0],
194
+ value = _ref3[1];
195
+
196
+ if (value && isTypeHeader(value) !== isHeader) {
197
+ throw new Error("Invalid value for \"".concat(key, "\": \"").concat(value, "\" is ").concat(isHeader ? 'not' : '', " an header. Don't mix headers and bodies."));
198
+ }
199
+ });
200
+ }
201
+
190
202
  var text = /*#__PURE__*/jsx(Text$1, _objectSpread({
191
203
  accessibilityRole: accessibilityRole || undefined,
192
204
  fontSize: fontSizeForNativeBase,
@@ -259,7 +271,7 @@ Typography.h4 = createHeading(4, 'header4');
259
271
 
260
272
  Typography.h5 = createHeading(5, 'header5');
261
273
 
262
- var _excluded$h = ["size", "round", "light", "sizeVariant"];
274
+ var _excluded$j = ["size", "round", "light", "sizeVariant"];
263
275
 
264
276
  var getInitials = function (firstname, lastname) {
265
277
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
@@ -330,7 +342,7 @@ function Avatar(_ref6) {
330
342
  round = _ref6.round,
331
343
  light = _ref6.light,
332
344
  sizeVariant = _ref6.sizeVariant,
333
- props = _objectWithoutProperties(_ref6, _excluded$h);
345
+ props = _objectWithoutProperties(_ref6, _excluded$j);
334
346
 
335
347
  return /*#__PURE__*/jsx(StyledAvatarView, {
336
348
  $size: size,
@@ -509,12 +521,12 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
509
521
  return defaultPadding;
510
522
  });
511
523
 
512
- var _excluded$g = ["color"],
524
+ var _excluded$i = ["color"],
513
525
  _excluded2$3 = ["color"];
514
526
 
515
527
  function TypographyIconSpecifiedColor(_ref) {
516
528
  var color = _ref.color,
517
- props = _objectWithoutProperties(_ref, _excluded$g);
529
+ props = _objectWithoutProperties(_ref, _excluded$i);
518
530
 
519
531
  var theme = /*#__PURE__*/useTheme();
520
532
  return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
@@ -546,7 +558,7 @@ function isSubtle(type) {
546
558
  return type.startsWith('subtle');
547
559
  }
548
560
 
549
- var _excluded$f = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
561
+ var _excluded$h = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
550
562
 
551
563
  var getTextColorByType = function (type, variant) {
552
564
  switch (type) {
@@ -688,7 +700,7 @@ function ButtonContent(_ref7) {
688
700
  $isStretch = _ref7.$isStretch,
689
701
  icon = _ref7.icon,
690
702
  children = _ref7.children,
691
- props = _objectWithoutProperties(_ref7, _excluded$f);
703
+ props = _objectWithoutProperties(_ref7, _excluded$h);
692
704
 
693
705
  var color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
694
706
  return /*#__PURE__*/jsx(ButtonContentContainer, {
@@ -854,7 +866,7 @@ function Emoji(_ref) {
854
866
  });
855
867
  }
856
868
 
857
- var _excluded$e = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
869
+ var _excluded$g = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
858
870
  _excluded2$2 = ["phoneNumber", "children"],
859
871
  _excluded3$1 = ["phoneNumber", "children"],
860
872
  _excluded4 = ["emailAddress", "children"];
@@ -864,7 +876,7 @@ function ExternalAppLink(_ref) {
864
876
  appValue = _ref.appValue,
865
877
  onPress = _ref.onPress,
866
878
  onOpenAppError = _ref.onOpenAppError,
867
- rest = _objectWithoutProperties(_ref, _excluded$e);
879
+ rest = _objectWithoutProperties(_ref, _excluded$g);
868
880
 
869
881
  var href = "".concat(appScheme, ":").concat(appValue);
870
882
 
@@ -887,26 +899,25 @@ function ExternalAppLink(_ref) {
887
899
  break;
888
900
  }
889
901
 
890
- Linking.openURL(href)["catch"](function (err) {
891
- console.error("An error occurred while opening ".concat(href), err);
892
- onOpenAppError === null || onOpenAppError === void 0 ? void 0 : onOpenAppError("An error occurred while opening ".concat(href));
893
- });
894
-
895
902
  if (!onPress) {
896
- _context.next = 10;
903
+ _context.next = 9;
897
904
  break;
898
905
  }
899
906
 
900
907
  onPress(e);
901
908
 
902
909
  if (!(e !== null && e !== void 0 && e.defaultPrevented)) {
903
- _context.next = 10;
910
+ _context.next = 9;
904
911
  break;
905
912
  }
906
913
 
907
914
  return _context.abrupt("return");
908
915
 
909
- case 10:
916
+ case 9:
917
+ Linking.openURL(href)["catch"](function (err) {
918
+ console.error("An error occurred while opening ".concat(href), err);
919
+ onOpenAppError === null || onOpenAppError === void 0 ? void 0 : onOpenAppError("An error occurred while opening ".concat(href));
920
+ });
910
921
  _context.next = 13;
911
922
  break;
912
923
 
@@ -983,14 +994,14 @@ var defaultOpenLinkBehavior = {
983
994
  web: 'targetBlank'
984
995
  };
985
996
 
986
- var _excluded$d = ["as", "href", "openLinkBehavior", "onPress"];
997
+ var _excluded$f = ["as", "href", "openLinkBehavior", "onPress"];
987
998
  function ExternalLink(_ref) {
988
999
  var Component = _ref.as,
989
1000
  href = _ref.href,
990
1001
  _ref$openLinkBehavior = _ref.openLinkBehavior,
991
1002
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
992
1003
  onPress = _ref.onPress,
993
- rest = _objectWithoutProperties(_ref, _excluded$d);
1004
+ rest = _objectWithoutProperties(_ref, _excluded$f);
994
1005
 
995
1006
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
996
1007
  onPress: function handleOnPress(e) {
@@ -1487,6 +1498,11 @@ var listItem = {
1487
1498
  innerMargin: 8
1488
1499
  };
1489
1500
 
1501
+ var navigationModal = {
1502
+ height: 56,
1503
+ padding: 16
1504
+ };
1505
+
1490
1506
  var pageLoader = {
1491
1507
  size: 60,
1492
1508
  strokeWidth: 3,
@@ -1632,7 +1648,8 @@ var theme = {
1632
1648
  skeleton: skeleton,
1633
1649
  tag: tag,
1634
1650
  tooltip: tooltip,
1635
- typography: typography
1651
+ typography: typography,
1652
+ navigationModal: navigationModal
1636
1653
  };
1637
1654
 
1638
1655
  function matchWindowSize(_ref, _ref2) {
@@ -1929,7 +1946,7 @@ function DatePickerInputs(_ref4) {
1929
1946
  });
1930
1947
  }
1931
1948
 
1932
- var _excluded$c = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "setIsFocused", "currentValue", "setCurrentValue", "onChange", "isFocused"];
1949
+ var _excluded$e = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "setIsFocused", "currentValue", "setCurrentValue", "onChange", "isFocused"];
1933
1950
  function DatePickerAndroid(_ref) {
1934
1951
  var onBlur = _ref.onBlur,
1935
1952
  onFocus = _ref.onFocus,
@@ -1941,7 +1958,7 @@ function DatePickerAndroid(_ref) {
1941
1958
  setCurrentValue = _ref.setCurrentValue,
1942
1959
  _onChange = _ref.onChange,
1943
1960
  isFocused = _ref.isFocused,
1944
- props = _objectWithoutProperties(_ref, _excluded$c);
1961
+ props = _objectWithoutProperties(_ref, _excluded$e);
1945
1962
 
1946
1963
  var handleClose = function () {
1947
1964
  if (onBlur) onBlur();
@@ -1981,7 +1998,7 @@ function DatePickerAndroid(_ref) {
1981
1998
  }
1982
1999
 
1983
2000
  // Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
1984
- var OverlayPressable = /*#__PURE__*/styled(Pressable).withConfig({
2001
+ var OverlayPressable = /*#__PURE__*/styled(Pressable$1).withConfig({
1985
2002
  displayName: "Overlay__OverlayPressable"
1986
2003
  })(function (_ref) {
1987
2004
  var theme = _ref.theme;
@@ -2008,7 +2025,7 @@ var BodyView = /*#__PURE__*/styled.View.withConfig({
2008
2025
  });
2009
2026
  function ModalBody(_ref3) {
2010
2027
  var children = _ref3.children;
2011
- return /*#__PURE__*/jsx(ScrollView, {
2028
+ return /*#__PURE__*/jsx(ScrollView$1, {
2012
2029
  children: /*#__PURE__*/jsx(BodyView, {
2013
2030
  children: children
2014
2031
  })
@@ -2031,11 +2048,11 @@ function ModalFooter(_ref3) {
2031
2048
  });
2032
2049
  }
2033
2050
 
2034
- var _excluded$b = ["as", "children"];
2051
+ var _excluded$d = ["as", "children"];
2035
2052
  function StyleWebWrapper(_ref) {
2036
2053
  var as = _ref.as,
2037
2054
  children = _ref.children,
2038
- props = _objectWithoutProperties(_ref, _excluded$b);
2055
+ props = _objectWithoutProperties(_ref, _excluded$d);
2039
2056
 
2040
2057
  if (Platform.OS !== 'web') return children;
2041
2058
  // as or default to div. If as is undefined, T is div but typescript is not sure
@@ -2044,7 +2061,7 @@ function StyleWebWrapper(_ref) {
2044
2061
  }));
2045
2062
  }
2046
2063
 
2047
- var _excluded$a = ["color", "disabled"];
2064
+ var _excluded$c = ["color", "disabled"];
2048
2065
  var PressableIconButtonWebWrapper = undefined;
2049
2066
  var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
2050
2067
  displayName: "PressableIconButton__StyledPressableIconButton"
@@ -2077,7 +2094,7 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
2077
2094
  function PressableIconButton(_ref5) {
2078
2095
  var color = _ref5.color,
2079
2096
  disabled = _ref5.disabled,
2080
- props = _objectWithoutProperties(_ref5, _excluded$a);
2097
+ props = _objectWithoutProperties(_ref5, _excluded$c);
2081
2098
 
2082
2099
  return /*#__PURE__*/jsx(StyleWebWrapper, {
2083
2100
  as: PressableIconButtonWebWrapper,
@@ -2258,7 +2275,7 @@ function IconButton(_ref7) {
2258
2275
  });
2259
2276
  }
2260
2277
 
2261
- var OnCloseContext = /*#__PURE__*/createContext(function () {});
2278
+ var OnCloseContext$1 = /*#__PURE__*/createContext(function () {});
2262
2279
 
2263
2280
  var HeaderView = /*#__PURE__*/styled.View.withConfig({
2264
2281
  displayName: "Header__HeaderView"
@@ -2292,7 +2309,7 @@ function ModalHeader(_ref6) {
2292
2309
  var left = _ref6.left,
2293
2310
  right = _ref6.right,
2294
2311
  children = _ref6.children;
2295
- var onClose = useContext(OnCloseContext);
2312
+ var onClose = useContext(OnCloseContext$1);
2296
2313
  var isIconLeft = !!left;
2297
2314
  return /*#__PURE__*/jsxs(HeaderView, {
2298
2315
  children: [isIconLeft && /*#__PURE__*/jsx(LeftIconView, {
@@ -2333,7 +2350,7 @@ function Modal(_ref5) {
2333
2350
  onClose = _ref5.onClose,
2334
2351
  onEntered = _ref5.onEntered,
2335
2352
  onExited = _ref5.onExited;
2336
- return /*#__PURE__*/jsx(OnCloseContext.Provider, {
2353
+ return /*#__PURE__*/jsx(OnCloseContext$1.Provider, {
2337
2354
  value: onClose,
2338
2355
  children: /*#__PURE__*/jsx(Modal$1, {
2339
2356
  transparent: true,
@@ -2390,7 +2407,7 @@ function PlatformDateTimePicker(_ref) {
2390
2407
  }));
2391
2408
  }
2392
2409
 
2393
- var _excluded$9 = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2410
+ var _excluded$b = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2394
2411
 
2395
2412
  function ModalTitle(_ref) {
2396
2413
  var children = _ref.children;
@@ -2410,7 +2427,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2410
2427
  validateButtonLabel = _ref2.validateButtonLabel,
2411
2428
  onClose = _ref2.onClose,
2412
2429
  onChange = _ref2.onChange,
2413
- props = _objectWithoutProperties(_ref2, _excluded$9);
2430
+ props = _objectWithoutProperties(_ref2, _excluded$b);
2414
2431
 
2415
2432
  var _useState = useState(value),
2416
2433
  _useState2 = _slicedToArray(_useState, 2),
@@ -2454,7 +2471,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2454
2471
  });
2455
2472
  }
2456
2473
 
2457
- var _excluded$8 = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2474
+ var _excluded$a = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2458
2475
  function DatePicker(_ref) {
2459
2476
  var value = _ref.value,
2460
2477
  pickerUITestID = _ref.pickerUITestID,
@@ -2465,7 +2482,7 @@ function DatePicker(_ref) {
2465
2482
  onFocus = _ref.onFocus,
2466
2483
  onBlur = _ref.onBlur,
2467
2484
  pickerDefaultDate = _ref.pickerDefaultDate,
2468
- props = _objectWithoutProperties(_ref, _excluded$8);
2485
+ props = _objectWithoutProperties(_ref, _excluded$a);
2469
2486
 
2470
2487
  var _useState = useState(isDefaultVisible),
2471
2488
  _useState2 = _slicedToArray(_useState, 2),
@@ -2532,7 +2549,7 @@ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
2532
2549
  displayName: "InputTextContainer"
2533
2550
  })(["position:relative;"]);
2534
2551
 
2535
- var _excluded$7 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing", "onFocus", "onBlur"];
2552
+ var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing", "onFocus", "onBlur"];
2536
2553
  var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
2537
2554
  displayName: "InputText__StyledTextInput"
2538
2555
  })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
@@ -2581,7 +2598,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2581
2598
  onSubmitEditing = _ref4.onSubmitEditing,
2582
2599
  _onFocus = _ref4.onFocus,
2583
2600
  _onBlur = _ref4.onBlur,
2584
- props = _objectWithoutProperties(_ref4, _excluded$7);
2601
+ props = _objectWithoutProperties(_ref4, _excluded$9);
2585
2602
 
2586
2603
  var theme = /*#__PURE__*/useTheme();
2587
2604
 
@@ -2730,14 +2747,14 @@ function InputIcon(_ref) {
2730
2747
  function InputPressable(_ref) {
2731
2748
  var props = _extends({}, _ref);
2732
2749
 
2733
- return /*#__PURE__*/jsx(Pressable, _objectSpread({}, props));
2750
+ return /*#__PURE__*/jsx(Pressable$1, _objectSpread({}, props));
2734
2751
  }
2735
2752
 
2736
- var _excluded$6 = ["isPasswordDefaultVisible", "right"];
2753
+ var _excluded$8 = ["isPasswordDefaultVisible", "right"];
2737
2754
  function InputPassword(_ref) {
2738
2755
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
2739
2756
  right = _ref.right,
2740
- props = _objectWithoutProperties(_ref, _excluded$6);
2757
+ props = _objectWithoutProperties(_ref, _excluded$8);
2741
2758
 
2742
2759
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
2743
2760
  _useState2 = _slicedToArray(_useState, 2),
@@ -2776,7 +2793,7 @@ var getTypographyColor = function (type) {
2776
2793
  return type ? 'white' : 'black';
2777
2794
  };
2778
2795
 
2779
- var InputTagContainer = /*#__PURE__*/styled(View).withConfig({
2796
+ var InputTagContainer = /*#__PURE__*/styled(View$1).withConfig({
2780
2797
  displayName: "InputTag__InputTagContainer"
2781
2798
  })(["align-items:center;justify-content:center;flex-direction:row;align-self:flex-start;overflow:hidden;padding-horizontal:", "px;background-color:", ";border-radius:", "px;"], function (_ref) {
2782
2799
  var theme = _ref.theme;
@@ -2798,7 +2815,7 @@ var InputTagContainer = /*#__PURE__*/styled(View).withConfig({
2798
2815
  var theme = _ref3.theme;
2799
2816
  return theme.kitt.forms.inputTag.borderRadius;
2800
2817
  });
2801
- var IconContainer = /*#__PURE__*/styled(View).withConfig({
2818
+ var IconContainer = /*#__PURE__*/styled(View$1).withConfig({
2802
2819
  displayName: "InputTag__IconContainer"
2803
2820
  })(["margin-right:", "px;"], function (_ref4) {
2804
2821
  var theme = _ref4.theme;
@@ -2940,7 +2957,7 @@ function TextArea(_ref) {
2940
2957
  }, props));
2941
2958
  }
2942
2959
 
2943
- var Body = /*#__PURE__*/styled.View.withConfig({
2960
+ var Body$1 = /*#__PURE__*/styled.View.withConfig({
2944
2961
  displayName: "Body"
2945
2962
  })(["", " background-color:", ";flex:1;"], function (_ref) {
2946
2963
  var theme = _ref.theme;
@@ -2953,7 +2970,7 @@ var Body = /*#__PURE__*/styled.View.withConfig({
2953
2970
  });
2954
2971
  function FullScreenModalBody(_ref3) {
2955
2972
  var children = _ref3.children;
2956
- return /*#__PURE__*/jsx(Body, {
2973
+ return /*#__PURE__*/jsx(Body$1, {
2957
2974
  children: children
2958
2975
  });
2959
2976
  }
@@ -2977,7 +2994,7 @@ function getHeaderHorizontalMediumPadding(spacing) {
2977
2994
  return spacing * 6;
2978
2995
  }
2979
2996
 
2980
- var Header = /*#__PURE__*/styled.View.withConfig({
2997
+ var Header$1 = /*#__PURE__*/styled.View.withConfig({
2981
2998
  displayName: "Header"
2982
2999
  })(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
2983
3000
  var theme = _ref2.theme,
@@ -3061,7 +3078,7 @@ function FullScreenModalHeader(_ref6) {
3061
3078
  setRightWidth(event.nativeEvent.layout.width);
3062
3079
  };
3063
3080
 
3064
- return /*#__PURE__*/jsxs(Header, {
3081
+ return /*#__PURE__*/jsxs(Header$1, {
3065
3082
  insetTop: Platform.OS === 'ios' ? undefined : top,
3066
3083
  children: [left ? /*#__PURE__*/jsx(SideContainer, {
3067
3084
  onLayout: function onLayout(e) {
@@ -3139,20 +3156,20 @@ function SpinningIcon(_ref) {
3139
3156
  });
3140
3157
  }
3141
3158
 
3142
- var _excluded$5 = ["children"];
3159
+ var _excluded$7 = ["children"];
3143
3160
  var ContentView = /*#__PURE__*/styled.View.withConfig({
3144
3161
  displayName: "ListItemContent__ContentView"
3145
3162
  })(["flex:1 0 0%;align-self:center;"]);
3146
3163
  function ListItemContent(_ref) {
3147
3164
  var children = _ref.children,
3148
- rest = _objectWithoutProperties(_ref, _excluded$5);
3165
+ rest = _objectWithoutProperties(_ref, _excluded$7);
3149
3166
 
3150
3167
  return /*#__PURE__*/jsx(ContentView, _objectSpread(_objectSpread({}, rest), {}, {
3151
3168
  children: children
3152
3169
  }));
3153
3170
  }
3154
3171
 
3155
- var _excluded$4 = ["children", "side"],
3172
+ var _excluded$6 = ["children", "side"],
3156
3173
  _excluded2$1 = ["children", "align"];
3157
3174
  var SideContainerView = /*#__PURE__*/styled.View.withConfig({
3158
3175
  displayName: "ListItemSideContent__SideContainerView"
@@ -3170,7 +3187,7 @@ function ListItemSideContainer(_ref3) {
3170
3187
  var children = _ref3.children,
3171
3188
  _ref3$side = _ref3.side,
3172
3189
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
3173
- rest = _objectWithoutProperties(_ref3, _excluded$4);
3190
+ rest = _objectWithoutProperties(_ref3, _excluded$6);
3174
3191
 
3175
3192
  return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
3176
3193
  side: side
@@ -3197,7 +3214,7 @@ function ListItemSideContent(_ref5) {
3197
3214
  }));
3198
3215
  }
3199
3216
 
3200
- var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
3217
+ var _excluded$5 = ["children", "withPadding", "borders", "left", "right", "onPress"];
3201
3218
  var ContainerView = /*#__PURE__*/styled.View.withConfig({
3202
3219
  displayName: "ListItem__ContainerView"
3203
3220
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
@@ -3236,9 +3253,9 @@ function ListItem(_ref5) {
3236
3253
  left = _ref5.left,
3237
3254
  right = _ref5.right,
3238
3255
  onPress = _ref5.onPress,
3239
- rest = _objectWithoutProperties(_ref5, _excluded$3);
3256
+ rest = _objectWithoutProperties(_ref5, _excluded$5);
3240
3257
 
3241
- var Wrapper = onPress ? Pressable : Fragment$1;
3258
+ var Wrapper = onPress ? Pressable$1 : Fragment$1;
3242
3259
  var wrapperProps = onPress ? _objectSpread({
3243
3260
  accessibilityRole: 'button',
3244
3261
  onPress: onPress
@@ -3424,6 +3441,64 @@ function Message(_ref) {
3424
3441
  });
3425
3442
  }
3426
3443
 
3444
+ function ModalBehaviourPortal(_ref) {
3445
+ var children = _ref.children;
3446
+ // eslint-disable-next-line react/jsx-no-useless-fragment
3447
+ return /*#__PURE__*/jsx(Fragment, {
3448
+ children: children
3449
+ });
3450
+ }
3451
+
3452
+ var OnCloseContext = /*#__PURE__*/createContext(function () {});
3453
+ function OnCloseProvider(_ref) {
3454
+ var children = _ref.children,
3455
+ onClose = _ref.onClose;
3456
+ return /*#__PURE__*/jsx(OnCloseContext.Provider, {
3457
+ value: onClose,
3458
+ children: children
3459
+ });
3460
+ }
3461
+ function useOnCloseModalBehaviour() {
3462
+ var onClose = useContext(OnCloseContext);
3463
+ return onClose;
3464
+ }
3465
+
3466
+ function CloseButton(_ref) {
3467
+ var children = _ref.children,
3468
+ onPress = _ref.onPress;
3469
+ var onCloseContextCallback = useOnCloseModalBehaviour();
3470
+ return /*#__PURE__*/cloneElement(children, {
3471
+ onPress: function handleClose() {
3472
+ if (onPress) onPress();
3473
+ onCloseContextCallback();
3474
+ }
3475
+ });
3476
+ }
3477
+
3478
+ var ModalBehaviourContainer = /*#__PURE__*/styled(View$1).withConfig({
3479
+ displayName: "ModalBehaviour__ModalBehaviourContainer"
3480
+ })(["", ""], function () {
3481
+ if (Platform.OS !== 'web') return undefined;
3482
+ return css(["position:fixed;top:0;left:0;width:100%;"]);
3483
+ });
3484
+ function ModalBehaviour(_ref2) {
3485
+ var children = _ref2.children,
3486
+ visible = _ref2.visible,
3487
+ style = _ref2.style,
3488
+ onClose = _ref2.onClose;
3489
+ return /*#__PURE__*/jsx(OnCloseProvider, {
3490
+ onClose: onClose,
3491
+ children: /*#__PURE__*/jsx(ModalBehaviourPortal, {
3492
+ visible: visible,
3493
+ children: visible ? /*#__PURE__*/jsx(ModalBehaviourContainer, {
3494
+ style: style,
3495
+ children: children
3496
+ }) : null
3497
+ })
3498
+ });
3499
+ }
3500
+ ModalBehaviour.CloseButton = CloseButton;
3501
+
3427
3502
  var createKittSpaces = function (spacing) {
3428
3503
  var sizes = {};
3429
3504
 
@@ -3432,12 +3507,17 @@ var createKittSpaces = function (spacing) {
3432
3507
  }
3433
3508
 
3434
3509
  return sizes;
3435
- }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3510
+ }; // reset native-base to be able to set size / space as a number
3511
+ // https://docs.nativebase.io/next/default-theme#h2-size
3512
+
3436
3513
 
3514
+ var overridenNativeBaseSizeandSpaceScale = Object.fromEntries([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64, 72, 80, 96, 0.5, 1.5, 2.5, 3.5].map(function (value) {
3515
+ return [value, value];
3516
+ })); // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3437
3517
 
3438
3518
  var createKittNativeBaseCustomTheme = function (theme) {
3439
3519
  var spaces = createKittSpaces(theme.spacing);
3440
- return extendTheme({
3520
+ var extendedTheme = extendTheme({
3441
3521
  colors: {
3442
3522
  kitt: _objectSpread(_objectSpread({}, theme.colors), {}, {
3443
3523
  typography: theme.typography.colors
@@ -3446,10 +3526,8 @@ var createKittNativeBaseCustomTheme = function (theme) {
3446
3526
  radii: {
3447
3527
  'kitt.borderRadius': theme.card.borderRadius
3448
3528
  },
3449
- sizes: _objectSpread(_objectSpread({}, spaces), Object.fromEntries([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64, 78, 80, 96, 0.5, 1.5, 2.5, 3.5].map(function (value) {
3450
- return [value, value];
3451
- }))),
3452
- space: spaces,
3529
+ sizes: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3530
+ space: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3453
3531
  breakpoints: {
3454
3532
  // kitt breakpoints
3455
3533
  base: KittBreakpoints.BASE,
@@ -3545,6 +3623,9 @@ var createKittNativeBaseCustomTheme = function (theme) {
3545
3623
  }
3546
3624
  }
3547
3625
  });
3626
+ return _objectSpread(_objectSpread({}, extendedTheme), {}, {
3627
+ space: extendedTheme.space
3628
+ });
3548
3629
  };
3549
3630
  function KittNativeBaseProvider(_ref) {
3550
3631
  var theme = _ref.theme,
@@ -3561,6 +3642,233 @@ function KittNativeBaseProvider(_ref) {
3561
3642
  });
3562
3643
  }
3563
3644
 
3645
+ var Stack = Stack$1;
3646
+ var VStack = VStack$1;
3647
+ var HStack = HStack$1;
3648
+
3649
+ var View = View$2;
3650
+ var ScrollView = ScrollView$2;
3651
+ var Pressable = Pressable$2;
3652
+
3653
+ var _excluded$4 = ["children"];
3654
+ var ViewWithPadding = /*#__PURE__*/styled(View$1).withConfig({
3655
+ displayName: "ContentPadding__ViewWithPadding"
3656
+ })(["padding:", ";"], function (_ref) {
3657
+ var theme = _ref.theme;
3658
+ return "0 ".concat(theme.kitt.navigationModal.padding, "px");
3659
+ });
3660
+ function ContentPadding(_ref2) {
3661
+ var children = _ref2.children,
3662
+ props = _objectWithoutProperties(_ref2, _excluded$4);
3663
+
3664
+ return /*#__PURE__*/jsx(ViewWithPadding, _objectSpread(_objectSpread({}, props), {}, {
3665
+ children: children
3666
+ }));
3667
+ }
3668
+
3669
+ var _excluded$3 = ["children", "shouldHandleBottomNotch", "style"];
3670
+ var StyledViewWithPadding = /*#__PURE__*/styled(ContentPadding).withConfig({
3671
+ displayName: "Body__StyledViewWithPadding"
3672
+ })(["padding-top:", "px;padding-bottom:", "px;"], function (_ref) {
3673
+ var theme = _ref.theme;
3674
+ return theme.kitt.spacing * 6;
3675
+ }, function (_ref2) {
3676
+ var theme = _ref2.theme,
3677
+ $insetBottom = _ref2.$insetBottom;
3678
+ return Math.max(theme.kitt.spacing * 4, $insetBottom);
3679
+ });
3680
+ function Body(_ref3) {
3681
+ var children = _ref3.children,
3682
+ shouldHandleBottomNotch = _ref3.shouldHandleBottomNotch,
3683
+ style = _ref3.style,
3684
+ props = _objectWithoutProperties(_ref3, _excluded$3);
3685
+
3686
+ var _useSafeAreaInsets = useSafeAreaInsets(),
3687
+ bottom = _useSafeAreaInsets.bottom;
3688
+
3689
+ var insetBottom = shouldHandleBottomNotch ? bottom : 0;
3690
+ return /*#__PURE__*/jsx(StyledViewWithPadding, _objectSpread(_objectSpread({}, props), {}, {
3691
+ $insetBottom: insetBottom,
3692
+ style: style,
3693
+ children: children
3694
+ }));
3695
+ }
3696
+
3697
+ var FooterContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
3698
+ displayName: "Footer__FooterContainer"
3699
+ })(["padding-top:", "px;padding-bottom:", "px;", ";"], function (_ref) {
3700
+ var theme = _ref.theme;
3701
+ return theme.kitt.spacing * 3;
3702
+ }, function (_ref2) {
3703
+ var theme = _ref2.theme,
3704
+ $insetBottom = _ref2.$insetBottom;
3705
+ return Math.max(theme.kitt.spacing * 3, $insetBottom);
3706
+ }, function (_ref3) {
3707
+ var $hasSeparator = _ref3.$hasSeparator;
3708
+ if (!$hasSeparator) return undefined;
3709
+ return css(["border-top-width:1px;border-top-color:", ";"], function (_ref4) {
3710
+ var theme = _ref4.theme;
3711
+ return theme.kitt.colors.separator;
3712
+ });
3713
+ });
3714
+ function Footer(_ref5) {
3715
+ var _ref5$shouldHandleBot = _ref5.shouldHandleBottomNotch,
3716
+ shouldHandleBottomNotch = _ref5$shouldHandleBot === void 0 ? true : _ref5$shouldHandleBot,
3717
+ _ref5$hasSeparator = _ref5.hasSeparator,
3718
+ hasSeparator = _ref5$hasSeparator === void 0 ? true : _ref5$hasSeparator,
3719
+ children = _ref5.children,
3720
+ style = _ref5.style;
3721
+
3722
+ var _useSafeAreaInsets = useSafeAreaInsets(),
3723
+ bottom = _useSafeAreaInsets.bottom;
3724
+
3725
+ var insetBottom = shouldHandleBottomNotch ? bottom : 0;
3726
+ return /*#__PURE__*/jsx(FooterContainer, {
3727
+ $insetBottom: insetBottom,
3728
+ $hasSeparator: hasSeparator,
3729
+ style: style,
3730
+ children: children
3731
+ });
3732
+ }
3733
+
3734
+ var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
3735
+ displayName: "Header__HeaderContainer"
3736
+ })(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;", ";"], function (_ref) {
3737
+ var theme = _ref.theme;
3738
+ return theme.kitt.navigationModal.height;
3739
+ }, function (_ref2) {
3740
+ var theme = _ref2.theme,
3741
+ $isTransparent = _ref2.$isTransparent;
3742
+ if ($isTransparent) return 'transparent';
3743
+ return theme.kitt.colors.uiBackgroundLight;
3744
+ }, function (_ref3) {
3745
+ var theme = _ref3.theme,
3746
+ $hasRight = _ref3.$hasRight;
3747
+ return $hasRight ? theme.kitt.spacing * 2 : theme.kitt.navigationModal.padding;
3748
+ }, function (_ref4) {
3749
+ var theme = _ref4.theme,
3750
+ $hasLeft = _ref4.$hasLeft;
3751
+ return $hasLeft ? theme.kitt.spacing * 2 : theme.kitt.navigationModal.padding;
3752
+ }, function (_ref5) {
3753
+ var $hasSeparator = _ref5.$hasSeparator;
3754
+ if (!$hasSeparator) return undefined;
3755
+ return css(["border-bottom-width:1px;border-bottom-color:", ";"], function (_ref6) {
3756
+ var theme = _ref6.theme;
3757
+ return theme.kitt.colors.separator;
3758
+ });
3759
+ });
3760
+ var Row = /*#__PURE__*/styled(View$1).withConfig({
3761
+ displayName: "Header__Row"
3762
+ })(["flex-direction:row;justify-content:", ";align-items:center;"], function (_ref7) {
3763
+ var $hasContent = _ref7.$hasContent,
3764
+ $hasLeft = _ref7.$hasLeft;
3765
+ return !$hasContent && !$hasLeft ? 'flex-end' : 'space-between';
3766
+ });
3767
+ var ButtonContainer = /*#__PURE__*/styled.View.withConfig({
3768
+ displayName: "Header__ButtonContainer"
3769
+ })(["width:", "px;"], function (_ref8) {
3770
+ var theme = _ref8.theme;
3771
+ return theme.kitt.iconButton.width;
3772
+ });
3773
+ var ChildrenComponent = /*#__PURE__*/styled(View$1).withConfig({
3774
+ displayName: "Header__ChildrenComponent"
3775
+ })(["flex:1;align-items:center;", ";"], function (_ref9) {
3776
+ var theme = _ref9.theme,
3777
+ $hasLeft = _ref9.$hasLeft,
3778
+ $hasRight = _ref9.$hasRight;
3779
+ var paddingHorizontal = theme.kitt.spacing * 2;
3780
+ return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
3781
+ });
3782
+ var HeaderTitle = /*#__PURE__*/styled(Typography.Text).withConfig({
3783
+ displayName: "Header__HeaderTitle"
3784
+ })(["flex:1;text-align:", ";", ";"], function (_ref10) {
3785
+ var $hasLeft = _ref10.$hasLeft,
3786
+ $hasRight = _ref10.$hasRight;
3787
+ if (!$hasLeft && $hasRight) return 'left';
3788
+ return 'center';
3789
+ }, function (_ref11) {
3790
+ var theme = _ref11.theme,
3791
+ $hasLeft = _ref11.$hasLeft,
3792
+ $hasRight = _ref11.$hasRight;
3793
+ var paddingHorizontal = theme.kitt.spacing * 2;
3794
+ return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
3795
+ });
3796
+ function Header(_ref12) {
3797
+ var _ref12$hasSeparator = _ref12.hasSeparator,
3798
+ hasSeparator = _ref12$hasSeparator === void 0 ? true : _ref12$hasSeparator,
3799
+ isTransparent = _ref12.isTransparent,
3800
+ title = _ref12.title,
3801
+ children = _ref12.children,
3802
+ right = _ref12.right,
3803
+ left = _ref12.left,
3804
+ style = _ref12.style;
3805
+ var sharedProps = {
3806
+ $hasLeft: Boolean(left),
3807
+ $hasRight: Boolean(right)
3808
+ };
3809
+ return /*#__PURE__*/jsx(HeaderContainer, {
3810
+ $isTransparent: isTransparent,
3811
+ $hasSeparator: hasSeparator,
3812
+ $hasLeft: Boolean(left),
3813
+ $hasRight: Boolean(right),
3814
+ style: style,
3815
+ children: /*#__PURE__*/jsxs(Row, _objectSpread(_objectSpread({
3816
+ $hasContent: Boolean(title || children)
3817
+ }, sharedProps), {}, {
3818
+ children: [left ? /*#__PURE__*/jsx(ButtonContainer, {
3819
+ children: left
3820
+ }) : null, title ? /*#__PURE__*/jsx(HeaderTitle, _objectSpread(_objectSpread({}, sharedProps), {}, {
3821
+ variant: "bold",
3822
+ children: title
3823
+ })) : null, children ? /*#__PURE__*/jsx(ChildrenComponent, _objectSpread(_objectSpread({}, sharedProps), {}, {
3824
+ children: children
3825
+ })) : null, right || left ? /*#__PURE__*/jsx(ButtonContainer, {
3826
+ children: right
3827
+ }) : null]
3828
+ }))
3829
+ });
3830
+ }
3831
+
3832
+ var NavigationModalContainer = /*#__PURE__*/styled(View$1).withConfig({
3833
+ displayName: "NavigationModalContainer"
3834
+ })(["position:relative;background-color:", ";flex:1;", ""], function (_ref) {
3835
+ var theme = _ref.theme,
3836
+ $backgroundColor = _ref.$backgroundColor;
3837
+ return $backgroundColor || theme.kitt.colors.uiBackgroundLight;
3838
+ }, function () {
3839
+ if (Platform.OS !== 'web') return undefined;
3840
+ return css(["min-height:100vh;"]);
3841
+ });
3842
+
3843
+ var ContainerWithoutHeader = /*#__PURE__*/styled(View$1).withConfig({
3844
+ displayName: "NavigationModal__ContainerWithoutHeader"
3845
+ })(["justify-content:space-between;flex:1;"]);
3846
+ function NavigationModal(_ref) {
3847
+ var body = _ref.body,
3848
+ header = _ref.header,
3849
+ footer = _ref.footer,
3850
+ backgroundColor = _ref.backgroundColor;
3851
+ return /*#__PURE__*/jsxs(NavigationModalContainer, {
3852
+ $backgroundColor: backgroundColor,
3853
+ children: [header ? /*#__PURE__*/jsx(View$1, {
3854
+ children: header
3855
+ }) : null, /*#__PURE__*/jsxs(ContainerWithoutHeader, {
3856
+ children: [/*#__PURE__*/jsx(ScrollView$1, {
3857
+ bounces: false,
3858
+ contentContainerStyle: {
3859
+ flexGrow: 1,
3860
+ position: 'relative'
3861
+ },
3862
+ children: body
3863
+ }), footer || null]
3864
+ })]
3865
+ });
3866
+ }
3867
+ NavigationModal.Header = Header;
3868
+ NavigationModal.Footer = Footer;
3869
+ NavigationModal.Body = Body;
3870
+ NavigationModal.Padding = ContentPadding;
3871
+
3564
3872
  function Notification(_ref) {
3565
3873
  var type = _ref.type,
3566
3874
  children = _ref.children,
@@ -3825,7 +4133,7 @@ function Picker(_ref) {
3825
4133
  color: item.props.value === value ? theme.picker.ios.selected.color : undefined
3826
4134
  });
3827
4135
  })
3828
- }) : /*#__PURE__*/jsx(ScrollView, {
4136
+ }) : /*#__PURE__*/jsx(ScrollView$1, {
3829
4137
  testID: testID,
3830
4138
  children: React.Children.map(children, function (child) {
3831
4139
  var item = child;
@@ -3913,7 +4221,7 @@ function SkeletonContent(_ref3) {
3913
4221
  });
3914
4222
  }
3915
4223
 
3916
- var SkeletonContainer = /*#__PURE__*/styled(View).withConfig({
4224
+ var SkeletonContainer = /*#__PURE__*/styled(View$1).withConfig({
3917
4225
  displayName: "Skeleton__SkeletonContainer"
3918
4226
  })(["overflow:hidden;"]);
3919
4227
  function Skeleton(_ref) {
@@ -4563,7 +4871,7 @@ var StyledTooltipContent = /*#__PURE__*/styled.View.withConfig({
4563
4871
 
4564
4872
  function ArrowView(props) {
4565
4873
  var theme = /*#__PURE__*/useTheme();
4566
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4874
+ return /*#__PURE__*/jsx(View$1, _objectSpread(_objectSpread({}, props), {}, {
4567
4875
  children: /*#__PURE__*/jsx(TooltipArrowIcon, {
4568
4876
  color: theme.kitt.tooltip.backgroundColor
4569
4877
  })
@@ -4669,16 +4977,16 @@ function Tooltip(_ref) {
4669
4977
  });
4670
4978
  }, [x, y, reference, floating, update, refs, middlewareData, onUpdate]);
4671
4979
  return /*#__PURE__*/jsxs(TooltipContainer, {
4672
- children: [/*#__PURE__*/jsx(View, {
4980
+ children: [/*#__PURE__*/jsx(View$1, {
4673
4981
  ref: reference,
4674
- children: /*#__PURE__*/jsx(Pressable, {
4982
+ children: /*#__PURE__*/jsx(Pressable$1, {
4675
4983
  accessibilityRole: "button",
4676
4984
  onPress: function handlePress() {
4677
4985
  pressed.value = !pressed.value;
4678
4986
  },
4679
4987
  children: children
4680
4988
  })
4681
- }), /*#__PURE__*/jsx(View, {
4989
+ }), /*#__PURE__*/jsx(View$1, {
4682
4990
  ref: floating,
4683
4991
  accessibilityElementsHidden: !pressed.value,
4684
4992
  importantForAccessibility: pressed.value === true ? 'auto' : 'no-hide-descendants',
@@ -4911,5 +5219,5 @@ function withTheme(WrappedComponent) {
4911
5219
  });
4912
5220
  }
4913
5221
 
4914
- export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, Notification, Overlay, PageLoader, Picker, Radio, DeprecatedSection as Section, Skeleton, SpinningIcon, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
5222
+ export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, HStack, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, ScrollView, DeprecatedSection as Section, Skeleton, SpinningIcon, Stack, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
4915
5223
  //# sourceMappingURL=index-browser-all.es.android.js.map