@ornikar/kitt-universal 9.2.0 → 9.3.2

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 (56) 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 +4 -0
  22. package/dist/definitions/index.d.ts.map +1 -1
  23. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +1 -1
  24. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  25. package/dist/definitions/themes/default.d.ts +1 -0
  26. package/dist/definitions/themes/default.d.ts.map +1 -1
  27. package/dist/definitions/themes/late-ocean/navigationModal.d.ts +6 -0
  28. package/dist/definitions/themes/late-ocean/navigationModal.d.ts.map +1 -0
  29. package/dist/index-browser-all.es.android.js +333 -47
  30. package/dist/index-browser-all.es.android.js.map +1 -1
  31. package/dist/index-browser-all.es.ios.js +333 -47
  32. package/dist/index-browser-all.es.ios.js.map +1 -1
  33. package/dist/index-browser-all.es.js +333 -47
  34. package/dist/index-browser-all.es.js.map +1 -1
  35. package/dist/index-browser-all.es.web.js +355 -46
  36. package/dist/index-browser-all.es.web.js.map +1 -1
  37. package/dist/index-node-14.17.cjs.js +307 -14
  38. package/dist/index-node-14.17.cjs.js.map +1 -1
  39. package/dist/index-node-14.17.cjs.web.css +1 -0
  40. package/dist/index-node-14.17.cjs.web.js +319 -14
  41. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  42. package/dist/linaria-themes-browser-all.es.android.js +7 -1
  43. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  44. package/dist/linaria-themes-browser-all.es.ios.js +7 -1
  45. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  46. package/dist/linaria-themes-browser-all.es.js +7 -1
  47. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  48. package/dist/linaria-themes-browser-all.es.web.js +7 -1
  49. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  50. package/dist/linaria-themes-node-14.17.cjs.js +7 -1
  51. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  52. package/dist/linaria-themes-node-14.17.cjs.web.js +7 -1
  53. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  54. package/dist/styles.css +1 -0
  55. package/dist/tsbuildinfo +1 -1
  56. package/package.json +5 -3
@@ -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;
@@ -202,7 +202,7 @@ function Typography(_ref) {
202
202
  var text = /*#__PURE__*/jsx(Text$1, _objectSpread({
203
203
  accessibilityRole: accessibilityRole || undefined,
204
204
  fontSize: fontSizeForNativeBase,
205
- lineHeight: fontSizeForNativeBase,
205
+ lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
206
206
  fontWeight: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant),
207
207
  fontFamily: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant),
208
208
  color: color ? "kitt.typography.".concat(color) : undefined,
@@ -271,7 +271,7 @@ Typography.h4 = createHeading(4, 'header4');
271
271
 
272
272
  Typography.h5 = createHeading(5, 'header5');
273
273
 
274
- var _excluded$h = ["size", "round", "light", "sizeVariant"];
274
+ var _excluded$j = ["size", "round", "light", "sizeVariant"];
275
275
 
276
276
  var getInitials = function (firstname, lastname) {
277
277
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
@@ -342,7 +342,7 @@ function Avatar(_ref6) {
342
342
  round = _ref6.round,
343
343
  light = _ref6.light,
344
344
  sizeVariant = _ref6.sizeVariant,
345
- props = _objectWithoutProperties(_ref6, _excluded$h);
345
+ props = _objectWithoutProperties(_ref6, _excluded$j);
346
346
 
347
347
  return /*#__PURE__*/jsx(StyledAvatarView, {
348
348
  $size: size,
@@ -521,12 +521,12 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
521
521
  return defaultPadding;
522
522
  });
523
523
 
524
- var _excluded$g = ["color"],
524
+ var _excluded$i = ["color"],
525
525
  _excluded2$3 = ["color"];
526
526
 
527
527
  function TypographyIconSpecifiedColor(_ref) {
528
528
  var color = _ref.color,
529
- props = _objectWithoutProperties(_ref, _excluded$g);
529
+ props = _objectWithoutProperties(_ref, _excluded$i);
530
530
 
531
531
  var theme = /*#__PURE__*/useTheme();
532
532
  return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
@@ -558,7 +558,7 @@ function isSubtle(type) {
558
558
  return type.startsWith('subtle');
559
559
  }
560
560
 
561
- var _excluded$f = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
561
+ var _excluded$h = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
562
562
 
563
563
  var getTextColorByType = function (type, variant) {
564
564
  switch (type) {
@@ -700,7 +700,7 @@ function ButtonContent(_ref7) {
700
700
  $isStretch = _ref7.$isStretch,
701
701
  icon = _ref7.icon,
702
702
  children = _ref7.children,
703
- props = _objectWithoutProperties(_ref7, _excluded$f);
703
+ props = _objectWithoutProperties(_ref7, _excluded$h);
704
704
 
705
705
  var color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
706
706
  return /*#__PURE__*/jsx(ButtonContentContainer, {
@@ -866,7 +866,7 @@ function Emoji(_ref) {
866
866
  });
867
867
  }
868
868
 
869
- var _excluded$e = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
869
+ var _excluded$g = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
870
870
  _excluded2$2 = ["phoneNumber", "children"],
871
871
  _excluded3$1 = ["phoneNumber", "children"],
872
872
  _excluded4 = ["emailAddress", "children"];
@@ -876,7 +876,7 @@ function ExternalAppLink(_ref) {
876
876
  appValue = _ref.appValue,
877
877
  onPress = _ref.onPress,
878
878
  onOpenAppError = _ref.onOpenAppError,
879
- rest = _objectWithoutProperties(_ref, _excluded$e);
879
+ rest = _objectWithoutProperties(_ref, _excluded$g);
880
880
 
881
881
  var href = "".concat(appScheme, ":").concat(appValue);
882
882
 
@@ -994,14 +994,14 @@ var defaultOpenLinkBehavior = {
994
994
  web: 'targetBlank'
995
995
  };
996
996
 
997
- var _excluded$d = ["as", "href", "openLinkBehavior", "onPress"];
997
+ var _excluded$f = ["as", "href", "openLinkBehavior", "onPress"];
998
998
  function ExternalLink(_ref) {
999
999
  var Component = _ref.as,
1000
1000
  href = _ref.href,
1001
1001
  _ref$openLinkBehavior = _ref.openLinkBehavior,
1002
1002
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
1003
1003
  onPress = _ref.onPress,
1004
- rest = _objectWithoutProperties(_ref, _excluded$d);
1004
+ rest = _objectWithoutProperties(_ref, _excluded$f);
1005
1005
 
1006
1006
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
1007
1007
  onPress: function handleOnPress(e) {
@@ -1498,6 +1498,11 @@ var listItem = {
1498
1498
  innerMargin: 8
1499
1499
  };
1500
1500
 
1501
+ var navigationModal = {
1502
+ height: 56,
1503
+ padding: 16
1504
+ };
1505
+
1501
1506
  var pageLoader = {
1502
1507
  size: 60,
1503
1508
  strokeWidth: 3,
@@ -1643,7 +1648,8 @@ var theme = {
1643
1648
  skeleton: skeleton,
1644
1649
  tag: tag,
1645
1650
  tooltip: tooltip,
1646
- typography: typography
1651
+ typography: typography,
1652
+ navigationModal: navigationModal
1647
1653
  };
1648
1654
 
1649
1655
  function matchWindowSize(_ref, _ref2) {
@@ -1940,7 +1946,7 @@ function DatePickerInputs(_ref4) {
1940
1946
  });
1941
1947
  }
1942
1948
 
1943
- 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"];
1944
1950
  function DatePickerAndroid(_ref) {
1945
1951
  var onBlur = _ref.onBlur,
1946
1952
  onFocus = _ref.onFocus,
@@ -1952,7 +1958,7 @@ function DatePickerAndroid(_ref) {
1952
1958
  setCurrentValue = _ref.setCurrentValue,
1953
1959
  _onChange = _ref.onChange,
1954
1960
  isFocused = _ref.isFocused,
1955
- props = _objectWithoutProperties(_ref, _excluded$c);
1961
+ props = _objectWithoutProperties(_ref, _excluded$e);
1956
1962
 
1957
1963
  var handleClose = function () {
1958
1964
  if (onBlur) onBlur();
@@ -2042,11 +2048,11 @@ function ModalFooter(_ref3) {
2042
2048
  });
2043
2049
  }
2044
2050
 
2045
- var _excluded$b = ["as", "children"];
2051
+ var _excluded$d = ["as", "children"];
2046
2052
  function StyleWebWrapper(_ref) {
2047
2053
  var as = _ref.as,
2048
2054
  children = _ref.children,
2049
- props = _objectWithoutProperties(_ref, _excluded$b);
2055
+ props = _objectWithoutProperties(_ref, _excluded$d);
2050
2056
 
2051
2057
  if (Platform.OS !== 'web') return children;
2052
2058
  // as or default to div. If as is undefined, T is div but typescript is not sure
@@ -2055,7 +2061,7 @@ function StyleWebWrapper(_ref) {
2055
2061
  }));
2056
2062
  }
2057
2063
 
2058
- var _excluded$a = ["color", "disabled"];
2064
+ var _excluded$c = ["color", "disabled"];
2059
2065
  var PressableIconButtonWebWrapper = undefined;
2060
2066
  var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
2061
2067
  displayName: "PressableIconButton__StyledPressableIconButton"
@@ -2088,7 +2094,7 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
2088
2094
  function PressableIconButton(_ref5) {
2089
2095
  var color = _ref5.color,
2090
2096
  disabled = _ref5.disabled,
2091
- props = _objectWithoutProperties(_ref5, _excluded$a);
2097
+ props = _objectWithoutProperties(_ref5, _excluded$c);
2092
2098
 
2093
2099
  return /*#__PURE__*/jsx(StyleWebWrapper, {
2094
2100
  as: PressableIconButtonWebWrapper,
@@ -2269,7 +2275,7 @@ function IconButton(_ref7) {
2269
2275
  });
2270
2276
  }
2271
2277
 
2272
- var OnCloseContext = /*#__PURE__*/createContext(function () {});
2278
+ var OnCloseContext$1 = /*#__PURE__*/createContext(function () {});
2273
2279
 
2274
2280
  var HeaderView = /*#__PURE__*/styled.View.withConfig({
2275
2281
  displayName: "Header__HeaderView"
@@ -2303,7 +2309,7 @@ function ModalHeader(_ref6) {
2303
2309
  var left = _ref6.left,
2304
2310
  right = _ref6.right,
2305
2311
  children = _ref6.children;
2306
- var onClose = useContext(OnCloseContext);
2312
+ var onClose = useContext(OnCloseContext$1);
2307
2313
  var isIconLeft = !!left;
2308
2314
  return /*#__PURE__*/jsxs(HeaderView, {
2309
2315
  children: [isIconLeft && /*#__PURE__*/jsx(LeftIconView, {
@@ -2344,7 +2350,7 @@ function Modal(_ref5) {
2344
2350
  onClose = _ref5.onClose,
2345
2351
  onEntered = _ref5.onEntered,
2346
2352
  onExited = _ref5.onExited;
2347
- return /*#__PURE__*/jsx(OnCloseContext.Provider, {
2353
+ return /*#__PURE__*/jsx(OnCloseContext$1.Provider, {
2348
2354
  value: onClose,
2349
2355
  children: /*#__PURE__*/jsx(Modal$1, {
2350
2356
  transparent: true,
@@ -2401,7 +2407,7 @@ function PlatformDateTimePicker(_ref) {
2401
2407
  }));
2402
2408
  }
2403
2409
 
2404
- var _excluded$9 = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2410
+ var _excluded$b = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2405
2411
 
2406
2412
  function ModalTitle(_ref) {
2407
2413
  var children = _ref.children;
@@ -2421,7 +2427,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2421
2427
  validateButtonLabel = _ref2.validateButtonLabel,
2422
2428
  onClose = _ref2.onClose,
2423
2429
  onChange = _ref2.onChange,
2424
- props = _objectWithoutProperties(_ref2, _excluded$9);
2430
+ props = _objectWithoutProperties(_ref2, _excluded$b);
2425
2431
 
2426
2432
  var _useState = useState(value),
2427
2433
  _useState2 = _slicedToArray(_useState, 2),
@@ -2465,7 +2471,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2465
2471
  });
2466
2472
  }
2467
2473
 
2468
- 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"];
2469
2475
  function DatePicker(_ref) {
2470
2476
  var value = _ref.value,
2471
2477
  pickerUITestID = _ref.pickerUITestID,
@@ -2476,7 +2482,7 @@ function DatePicker(_ref) {
2476
2482
  onFocus = _ref.onFocus,
2477
2483
  onBlur = _ref.onBlur,
2478
2484
  pickerDefaultDate = _ref.pickerDefaultDate,
2479
- props = _objectWithoutProperties(_ref, _excluded$8);
2485
+ props = _objectWithoutProperties(_ref, _excluded$a);
2480
2486
 
2481
2487
  var _useState = useState(isDefaultVisible),
2482
2488
  _useState2 = _slicedToArray(_useState, 2),
@@ -2543,7 +2549,7 @@ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
2543
2549
  displayName: "InputTextContainer"
2544
2550
  })(["position:relative;"]);
2545
2551
 
2546
- 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"];
2547
2553
  var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
2548
2554
  displayName: "InputText__StyledTextInput"
2549
2555
  })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
@@ -2592,7 +2598,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2592
2598
  onSubmitEditing = _ref4.onSubmitEditing,
2593
2599
  _onFocus = _ref4.onFocus,
2594
2600
  _onBlur = _ref4.onBlur,
2595
- props = _objectWithoutProperties(_ref4, _excluded$7);
2601
+ props = _objectWithoutProperties(_ref4, _excluded$9);
2596
2602
 
2597
2603
  var theme = /*#__PURE__*/useTheme();
2598
2604
 
@@ -2744,11 +2750,11 @@ function InputPressable(_ref) {
2744
2750
  return /*#__PURE__*/jsx(Pressable$1, _objectSpread({}, props));
2745
2751
  }
2746
2752
 
2747
- var _excluded$6 = ["isPasswordDefaultVisible", "right"];
2753
+ var _excluded$8 = ["isPasswordDefaultVisible", "right"];
2748
2754
  function InputPassword(_ref) {
2749
2755
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
2750
2756
  right = _ref.right,
2751
- props = _objectWithoutProperties(_ref, _excluded$6);
2757
+ props = _objectWithoutProperties(_ref, _excluded$8);
2752
2758
 
2753
2759
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
2754
2760
  _useState2 = _slicedToArray(_useState, 2),
@@ -2951,7 +2957,7 @@ function TextArea(_ref) {
2951
2957
  }, props));
2952
2958
  }
2953
2959
 
2954
- var Body = /*#__PURE__*/styled.View.withConfig({
2960
+ var Body$1 = /*#__PURE__*/styled.View.withConfig({
2955
2961
  displayName: "Body"
2956
2962
  })(["", " background-color:", ";flex:1;"], function (_ref) {
2957
2963
  var theme = _ref.theme;
@@ -2964,7 +2970,7 @@ var Body = /*#__PURE__*/styled.View.withConfig({
2964
2970
  });
2965
2971
  function FullScreenModalBody(_ref3) {
2966
2972
  var children = _ref3.children;
2967
- return /*#__PURE__*/jsx(Body, {
2973
+ return /*#__PURE__*/jsx(Body$1, {
2968
2974
  children: children
2969
2975
  });
2970
2976
  }
@@ -2988,7 +2994,7 @@ function getHeaderHorizontalMediumPadding(spacing) {
2988
2994
  return spacing * 6;
2989
2995
  }
2990
2996
 
2991
- var Header = /*#__PURE__*/styled.View.withConfig({
2997
+ var Header$1 = /*#__PURE__*/styled.View.withConfig({
2992
2998
  displayName: "Header"
2993
2999
  })(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
2994
3000
  var theme = _ref2.theme,
@@ -3072,7 +3078,7 @@ function FullScreenModalHeader(_ref6) {
3072
3078
  setRightWidth(event.nativeEvent.layout.width);
3073
3079
  };
3074
3080
 
3075
- return /*#__PURE__*/jsxs(Header, {
3081
+ return /*#__PURE__*/jsxs(Header$1, {
3076
3082
  insetTop: Platform.OS === 'ios' ? undefined : top,
3077
3083
  children: [left ? /*#__PURE__*/jsx(SideContainer, {
3078
3084
  onLayout: function onLayout(e) {
@@ -3150,20 +3156,20 @@ function SpinningIcon(_ref) {
3150
3156
  });
3151
3157
  }
3152
3158
 
3153
- var _excluded$5 = ["children"];
3159
+ var _excluded$7 = ["children"];
3154
3160
  var ContentView = /*#__PURE__*/styled.View.withConfig({
3155
3161
  displayName: "ListItemContent__ContentView"
3156
3162
  })(["flex:1 0 0%;align-self:center;"]);
3157
3163
  function ListItemContent(_ref) {
3158
3164
  var children = _ref.children,
3159
- rest = _objectWithoutProperties(_ref, _excluded$5);
3165
+ rest = _objectWithoutProperties(_ref, _excluded$7);
3160
3166
 
3161
3167
  return /*#__PURE__*/jsx(ContentView, _objectSpread(_objectSpread({}, rest), {}, {
3162
3168
  children: children
3163
3169
  }));
3164
3170
  }
3165
3171
 
3166
- var _excluded$4 = ["children", "side"],
3172
+ var _excluded$6 = ["children", "side"],
3167
3173
  _excluded2$1 = ["children", "align"];
3168
3174
  var SideContainerView = /*#__PURE__*/styled.View.withConfig({
3169
3175
  displayName: "ListItemSideContent__SideContainerView"
@@ -3181,7 +3187,7 @@ function ListItemSideContainer(_ref3) {
3181
3187
  var children = _ref3.children,
3182
3188
  _ref3$side = _ref3.side,
3183
3189
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
3184
- rest = _objectWithoutProperties(_ref3, _excluded$4);
3190
+ rest = _objectWithoutProperties(_ref3, _excluded$6);
3185
3191
 
3186
3192
  return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
3187
3193
  side: side
@@ -3208,7 +3214,7 @@ function ListItemSideContent(_ref5) {
3208
3214
  }));
3209
3215
  }
3210
3216
 
3211
- var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
3217
+ var _excluded$5 = ["children", "withPadding", "borders", "left", "right", "onPress"];
3212
3218
  var ContainerView = /*#__PURE__*/styled.View.withConfig({
3213
3219
  displayName: "ListItem__ContainerView"
3214
3220
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
@@ -3247,7 +3253,7 @@ function ListItem(_ref5) {
3247
3253
  left = _ref5.left,
3248
3254
  right = _ref5.right,
3249
3255
  onPress = _ref5.onPress,
3250
- rest = _objectWithoutProperties(_ref5, _excluded$3);
3256
+ rest = _objectWithoutProperties(_ref5, _excluded$5);
3251
3257
 
3252
3258
  var Wrapper = onPress ? Pressable$1 : Fragment$1;
3253
3259
  var wrapperProps = onPress ? _objectSpread({
@@ -3435,6 +3441,64 @@ function Message(_ref) {
3435
3441
  });
3436
3442
  }
3437
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
+
3438
3502
  var createKittSpaces = function (spacing) {
3439
3503
  var sizes = {};
3440
3504
 
@@ -3443,8 +3507,13 @@ var createKittSpaces = function (spacing) {
3443
3507
  }
3444
3508
 
3445
3509
  return sizes;
3446
- }; // 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
+
3447
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
3448
3517
 
3449
3518
  var createKittNativeBaseCustomTheme = function (theme) {
3450
3519
  var spaces = createKittSpaces(theme.spacing);
@@ -3457,10 +3526,8 @@ var createKittNativeBaseCustomTheme = function (theme) {
3457
3526
  radii: {
3458
3527
  'kitt.borderRadius': theme.card.borderRadius
3459
3528
  },
3460
- 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) {
3461
- return [value, value];
3462
- }))),
3463
- space: spaces,
3529
+ sizes: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3530
+ space: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3464
3531
  breakpoints: {
3465
3532
  // kitt breakpoints
3466
3533
  base: KittBreakpoints.BASE,
@@ -3583,6 +3650,225 @@ var View = View$2;
3583
3650
  var ScrollView = ScrollView$2;
3584
3651
  var Pressable = Pressable$2;
3585
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
+
3586
3872
  function Notification(_ref) {
3587
3873
  var type = _ref.type,
3588
3874
  children = _ref.children,
@@ -4933,5 +5219,5 @@ function withTheme(WrappedComponent) {
4933
5219
  });
4934
5220
  }
4935
5221
 
4936
- 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, 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 };
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 };
4937
5223
  //# sourceMappingURL=index-browser-all.es.android.js.map