@ornikar/kitt-universal 9.2.0 → 9.3.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 (55) 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/themes/default.d.ts +1 -0
  25. package/dist/definitions/themes/default.d.ts.map +1 -1
  26. package/dist/definitions/themes/late-ocean/navigationModal.d.ts +6 -0
  27. package/dist/definitions/themes/late-ocean/navigationModal.d.ts.map +1 -0
  28. package/dist/index-browser-all.es.android.js +324 -41
  29. package/dist/index-browser-all.es.android.js.map +1 -1
  30. package/dist/index-browser-all.es.ios.js +324 -41
  31. package/dist/index-browser-all.es.ios.js.map +1 -1
  32. package/dist/index-browser-all.es.js +324 -41
  33. package/dist/index-browser-all.es.js.map +1 -1
  34. package/dist/index-browser-all.es.web.js +346 -40
  35. package/dist/index-browser-all.es.web.js.map +1 -1
  36. package/dist/index-node-14.17.cjs.js +298 -8
  37. package/dist/index-node-14.17.cjs.js.map +1 -1
  38. package/dist/index-node-14.17.cjs.web.css +1 -0
  39. package/dist/index-node-14.17.cjs.web.js +310 -8
  40. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  41. package/dist/linaria-themes-browser-all.es.android.js +7 -1
  42. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  43. package/dist/linaria-themes-browser-all.es.ios.js +7 -1
  44. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  45. package/dist/linaria-themes-browser-all.es.js +7 -1
  46. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  47. package/dist/linaria-themes-browser-all.es.web.js +7 -1
  48. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  49. package/dist/linaria-themes-node-14.17.cjs.js +7 -1
  50. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  51. package/dist/linaria-themes-node-14.17.cjs.web.js +7 -1
  52. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  53. package/dist/styles.css +1 -0
  54. package/dist/tsbuildinfo +1 -1
  55. package/package.json +4 -2
@@ -116,7 +116,7 @@ var KittBreakpointNameEnum;
116
116
  KittBreakpointNameEnum["WIDE"] = "wide";
117
117
  })(KittBreakpointNameEnum || (KittBreakpointNameEnum = {}));
118
118
 
119
- var _excluded$i = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
119
+ var _excluded$k = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
120
120
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
121
121
  var TypographyColorContext = /*#__PURE__*/createContext('black');
122
122
  function useTypographyColor() {
@@ -177,7 +177,7 @@ function Typography(_ref) {
177
177
  } : _ref$type,
178
178
  variant = _ref.variant,
179
179
  color = _ref.color,
180
- otherProps = _objectWithoutProperties(_ref, _excluded$i);
180
+ otherProps = _objectWithoutProperties(_ref, _excluded$k);
181
181
 
182
182
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
183
183
  var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
@@ -272,7 +272,7 @@ Typography.h4 = createHeading(4, 'header4');
272
272
 
273
273
  Typography.h5 = createHeading(5, 'header5');
274
274
 
275
- var _excluded$h = ["size", "round", "light", "sizeVariant"];
275
+ var _excluded$j = ["size", "round", "light", "sizeVariant"];
276
276
 
277
277
  var getInitials = function (firstname, lastname) {
278
278
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
@@ -343,7 +343,7 @@ function Avatar(_ref6) {
343
343
  round = _ref6.round,
344
344
  light = _ref6.light,
345
345
  sizeVariant = _ref6.sizeVariant,
346
- props = _objectWithoutProperties(_ref6, _excluded$h);
346
+ props = _objectWithoutProperties(_ref6, _excluded$j);
347
347
 
348
348
  return /*#__PURE__*/jsx(StyledAvatarView, {
349
349
  $size: size,
@@ -522,12 +522,12 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
522
522
  return defaultPadding;
523
523
  });
524
524
 
525
- var _excluded$g = ["color"],
525
+ var _excluded$i = ["color"],
526
526
  _excluded2$3 = ["color"];
527
527
 
528
528
  function TypographyIconSpecifiedColor(_ref) {
529
529
  var color = _ref.color,
530
- props = _objectWithoutProperties(_ref, _excluded$g);
530
+ props = _objectWithoutProperties(_ref, _excluded$i);
531
531
 
532
532
  var theme = /*#__PURE__*/useTheme();
533
533
  return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
@@ -559,7 +559,7 @@ function isSubtle(type) {
559
559
  return type.startsWith('subtle');
560
560
  }
561
561
 
562
- var _excluded$f = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
562
+ var _excluded$h = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
563
563
 
564
564
  var getTextColorByType = function (type, variant) {
565
565
  switch (type) {
@@ -701,7 +701,7 @@ function ButtonContent(_ref7) {
701
701
  $isStretch = _ref7.$isStretch,
702
702
  icon = _ref7.icon,
703
703
  children = _ref7.children,
704
- props = _objectWithoutProperties(_ref7, _excluded$f);
704
+ props = _objectWithoutProperties(_ref7, _excluded$h);
705
705
 
706
706
  var color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
707
707
  return /*#__PURE__*/jsx(ButtonContentContainer, {
@@ -867,7 +867,7 @@ function Emoji(_ref) {
867
867
  });
868
868
  }
869
869
 
870
- var _excluded$e = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
870
+ var _excluded$g = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
871
871
  _excluded2$2 = ["phoneNumber", "children"],
872
872
  _excluded3$1 = ["phoneNumber", "children"],
873
873
  _excluded4 = ["emailAddress", "children"];
@@ -877,7 +877,7 @@ function ExternalAppLink(_ref) {
877
877
  appValue = _ref.appValue,
878
878
  onPress = _ref.onPress,
879
879
  onOpenAppError = _ref.onOpenAppError,
880
- rest = _objectWithoutProperties(_ref, _excluded$e);
880
+ rest = _objectWithoutProperties(_ref, _excluded$g);
881
881
 
882
882
  var href = "".concat(appScheme, ":").concat(appValue);
883
883
 
@@ -995,14 +995,14 @@ var defaultOpenLinkBehavior = {
995
995
  web: 'targetBlank'
996
996
  };
997
997
 
998
- var _excluded$d = ["as", "href", "openLinkBehavior", "onPress"];
998
+ var _excluded$f = ["as", "href", "openLinkBehavior", "onPress"];
999
999
  function ExternalLink(_ref) {
1000
1000
  var Component = _ref.as,
1001
1001
  href = _ref.href,
1002
1002
  _ref$openLinkBehavior = _ref.openLinkBehavior,
1003
1003
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
1004
1004
  onPress = _ref.onPress,
1005
- rest = _objectWithoutProperties(_ref, _excluded$d);
1005
+ rest = _objectWithoutProperties(_ref, _excluded$f);
1006
1006
 
1007
1007
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
1008
1008
  onPress: function handleOnPress(e) {
@@ -1499,6 +1499,11 @@ var listItem = {
1499
1499
  innerMargin: 8
1500
1500
  };
1501
1501
 
1502
+ var navigationModal = {
1503
+ height: 56,
1504
+ padding: 16
1505
+ };
1506
+
1502
1507
  var pageLoader = {
1503
1508
  size: 60,
1504
1509
  strokeWidth: 3,
@@ -1644,7 +1649,8 @@ var theme = {
1644
1649
  skeleton: skeleton,
1645
1650
  tag: tag,
1646
1651
  tooltip: tooltip,
1647
- typography: typography
1652
+ typography: typography,
1653
+ navigationModal: navigationModal
1648
1654
  };
1649
1655
 
1650
1656
  function matchWindowSize(_ref, _ref2) {
@@ -1941,7 +1947,7 @@ function DatePickerInputs(_ref4) {
1941
1947
  });
1942
1948
  }
1943
1949
 
1944
- var _excluded$c = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "setIsFocused", "currentValue", "setCurrentValue", "onChange", "isFocused"];
1950
+ var _excluded$e = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "setIsFocused", "currentValue", "setCurrentValue", "onChange", "isFocused"];
1945
1951
  function DatePickerAndroid(_ref) {
1946
1952
  var onBlur = _ref.onBlur,
1947
1953
  onFocus = _ref.onFocus,
@@ -1953,7 +1959,7 @@ function DatePickerAndroid(_ref) {
1953
1959
  setCurrentValue = _ref.setCurrentValue,
1954
1960
  _onChange = _ref.onChange,
1955
1961
  isFocused = _ref.isFocused,
1956
- props = _objectWithoutProperties(_ref, _excluded$c);
1962
+ props = _objectWithoutProperties(_ref, _excluded$e);
1957
1963
 
1958
1964
  var handleClose = function () {
1959
1965
  if (onBlur) onBlur();
@@ -2043,11 +2049,11 @@ function ModalFooter(_ref3) {
2043
2049
  });
2044
2050
  }
2045
2051
 
2046
- var _excluded$b = ["as", "children"];
2052
+ var _excluded$d = ["as", "children"];
2047
2053
  function StyleWebWrapper(_ref) {
2048
2054
  var as = _ref.as,
2049
2055
  children = _ref.children,
2050
- props = _objectWithoutProperties(_ref, _excluded$b);
2056
+ props = _objectWithoutProperties(_ref, _excluded$d);
2051
2057
 
2052
2058
  if (Platform.OS !== 'web') return children;
2053
2059
  // as or default to div. If as is undefined, T is div but typescript is not sure
@@ -2077,7 +2083,7 @@ function withTheme(WrappedComponent) {
2077
2083
  });
2078
2084
  }
2079
2085
 
2080
- var _excluded$a = ["color", "disabled"];
2086
+ var _excluded$c = ["color", "disabled"];
2081
2087
  var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
2082
2088
  name: "PressableIconButtonWebWrapper",
2083
2089
  "class": "kitt-u_PressableIconButtonWebWrapper_p1nlccvg",
@@ -2141,7 +2147,7 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
2141
2147
  function PressableIconButton(_ref9) {
2142
2148
  var color = _ref9.color,
2143
2149
  disabled = _ref9.disabled,
2144
- props = _objectWithoutProperties(_ref9, _excluded$a);
2150
+ props = _objectWithoutProperties(_ref9, _excluded$c);
2145
2151
 
2146
2152
  return /*#__PURE__*/jsx(StyleWebWrapper, {
2147
2153
  as: PressableIconButtonWebWrapper,
@@ -2322,7 +2328,7 @@ function IconButton(_ref7) {
2322
2328
  });
2323
2329
  }
2324
2330
 
2325
- var OnCloseContext = /*#__PURE__*/createContext(function () {});
2331
+ var OnCloseContext$1 = /*#__PURE__*/createContext(function () {});
2326
2332
 
2327
2333
  var HeaderView = /*#__PURE__*/styled.View.withConfig({
2328
2334
  displayName: "Header__HeaderView"
@@ -2356,7 +2362,7 @@ function ModalHeader(_ref6) {
2356
2362
  var left = _ref6.left,
2357
2363
  right = _ref6.right,
2358
2364
  children = _ref6.children;
2359
- var onClose = useContext(OnCloseContext);
2365
+ var onClose = useContext(OnCloseContext$1);
2360
2366
  var isIconLeft = !!left;
2361
2367
  return /*#__PURE__*/jsxs(HeaderView, {
2362
2368
  children: [isIconLeft && /*#__PURE__*/jsx(LeftIconView, {
@@ -2397,7 +2403,7 @@ function Modal(_ref5) {
2397
2403
  onClose = _ref5.onClose,
2398
2404
  onEntered = _ref5.onEntered,
2399
2405
  onExited = _ref5.onExited;
2400
- return /*#__PURE__*/jsx(OnCloseContext.Provider, {
2406
+ return /*#__PURE__*/jsx(OnCloseContext$1.Provider, {
2401
2407
  value: onClose,
2402
2408
  children: /*#__PURE__*/jsx(Modal$1, {
2403
2409
  transparent: true,
@@ -2454,7 +2460,7 @@ function PlatformDateTimePicker(_ref) {
2454
2460
  }));
2455
2461
  }
2456
2462
 
2457
- var _excluded$9 = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2463
+ var _excluded$b = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2458
2464
 
2459
2465
  function ModalTitle(_ref) {
2460
2466
  var children = _ref.children;
@@ -2474,7 +2480,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2474
2480
  validateButtonLabel = _ref2.validateButtonLabel,
2475
2481
  onClose = _ref2.onClose,
2476
2482
  onChange = _ref2.onChange,
2477
- props = _objectWithoutProperties(_ref2, _excluded$9);
2483
+ props = _objectWithoutProperties(_ref2, _excluded$b);
2478
2484
 
2479
2485
  var _useState = useState(value),
2480
2486
  _useState2 = _slicedToArray(_useState, 2),
@@ -2518,7 +2524,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2518
2524
  });
2519
2525
  }
2520
2526
 
2521
- var _excluded$8 = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2527
+ var _excluded$a = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2522
2528
  function DatePicker(_ref) {
2523
2529
  var value = _ref.value,
2524
2530
  pickerUITestID = _ref.pickerUITestID,
@@ -2529,7 +2535,7 @@ function DatePicker(_ref) {
2529
2535
  onFocus = _ref.onFocus,
2530
2536
  onBlur = _ref.onBlur,
2531
2537
  pickerDefaultDate = _ref.pickerDefaultDate,
2532
- props = _objectWithoutProperties(_ref, _excluded$8);
2538
+ props = _objectWithoutProperties(_ref, _excluded$a);
2533
2539
 
2534
2540
  var _useState = useState(isDefaultVisible),
2535
2541
  _useState2 = _slicedToArray(_useState, 2),
@@ -2596,7 +2602,7 @@ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
2596
2602
  displayName: "InputTextContainer"
2597
2603
  })(["position:relative;"]);
2598
2604
 
2599
- var _excluded$7 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing", "onFocus", "onBlur"];
2605
+ var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing", "onFocus", "onBlur"];
2600
2606
  var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
2601
2607
  displayName: "InputText__StyledTextInput"
2602
2608
  })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
@@ -2645,7 +2651,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2645
2651
  onSubmitEditing = _ref4.onSubmitEditing,
2646
2652
  _onFocus = _ref4.onFocus,
2647
2653
  _onBlur = _ref4.onBlur,
2648
- props = _objectWithoutProperties(_ref4, _excluded$7);
2654
+ props = _objectWithoutProperties(_ref4, _excluded$9);
2649
2655
 
2650
2656
  var theme = /*#__PURE__*/useTheme();
2651
2657
 
@@ -2797,11 +2803,11 @@ function InputPressable(_ref) {
2797
2803
  return /*#__PURE__*/jsx(Pressable$1, _objectSpread({}, props));
2798
2804
  }
2799
2805
 
2800
- var _excluded$6 = ["isPasswordDefaultVisible", "right"];
2806
+ var _excluded$8 = ["isPasswordDefaultVisible", "right"];
2801
2807
  function InputPassword(_ref) {
2802
2808
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
2803
2809
  right = _ref.right,
2804
- props = _objectWithoutProperties(_ref, _excluded$6);
2810
+ props = _objectWithoutProperties(_ref, _excluded$8);
2805
2811
 
2806
2812
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
2807
2813
  _useState2 = _slicedToArray(_useState, 2),
@@ -3004,7 +3010,7 @@ function TextArea(_ref) {
3004
3010
  }, props));
3005
3011
  }
3006
3012
 
3007
- var Body = /*#__PURE__*/styled.View.withConfig({
3013
+ var Body$1 = /*#__PURE__*/styled.View.withConfig({
3008
3014
  displayName: "Body"
3009
3015
  })(["", " background-color:", ";flex:1;"], function (_ref) {
3010
3016
  var theme = _ref.theme;
@@ -3017,7 +3023,7 @@ var Body = /*#__PURE__*/styled.View.withConfig({
3017
3023
  });
3018
3024
  function FullScreenModalBody(_ref3) {
3019
3025
  var children = _ref3.children;
3020
- return /*#__PURE__*/jsx(Body, {
3026
+ return /*#__PURE__*/jsx(Body$1, {
3021
3027
  children: children
3022
3028
  });
3023
3029
  }
@@ -3041,7 +3047,7 @@ function getHeaderHorizontalMediumPadding(spacing) {
3041
3047
  return spacing * 6;
3042
3048
  }
3043
3049
 
3044
- var Header = /*#__PURE__*/styled.View.withConfig({
3050
+ var Header$1 = /*#__PURE__*/styled.View.withConfig({
3045
3051
  displayName: "Header"
3046
3052
  })(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
3047
3053
  var theme = _ref2.theme,
@@ -3125,7 +3131,7 @@ function FullScreenModalHeader(_ref6) {
3125
3131
  setRightWidth(event.nativeEvent.layout.width);
3126
3132
  };
3127
3133
 
3128
- return /*#__PURE__*/jsxs(Header, {
3134
+ return /*#__PURE__*/jsxs(Header$1, {
3129
3135
  insetTop: Platform.OS === 'ios' ? undefined : top,
3130
3136
  children: [left ? /*#__PURE__*/jsx(SideContainer, {
3131
3137
  onLayout: function onLayout(e) {
@@ -3203,20 +3209,20 @@ function SpinningIcon(_ref) {
3203
3209
  });
3204
3210
  }
3205
3211
 
3206
- var _excluded$5 = ["children"];
3212
+ var _excluded$7 = ["children"];
3207
3213
  var ContentView = /*#__PURE__*/styled.View.withConfig({
3208
3214
  displayName: "ListItemContent__ContentView"
3209
3215
  })(["flex:1 0 0%;align-self:center;"]);
3210
3216
  function ListItemContent(_ref) {
3211
3217
  var children = _ref.children,
3212
- rest = _objectWithoutProperties(_ref, _excluded$5);
3218
+ rest = _objectWithoutProperties(_ref, _excluded$7);
3213
3219
 
3214
3220
  return /*#__PURE__*/jsx(ContentView, _objectSpread(_objectSpread({}, rest), {}, {
3215
3221
  children: children
3216
3222
  }));
3217
3223
  }
3218
3224
 
3219
- var _excluded$4 = ["children", "side"],
3225
+ var _excluded$6 = ["children", "side"],
3220
3226
  _excluded2$1 = ["children", "align"];
3221
3227
  var SideContainerView = /*#__PURE__*/styled.View.withConfig({
3222
3228
  displayName: "ListItemSideContent__SideContainerView"
@@ -3234,7 +3240,7 @@ function ListItemSideContainer(_ref3) {
3234
3240
  var children = _ref3.children,
3235
3241
  _ref3$side = _ref3.side,
3236
3242
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
3237
- rest = _objectWithoutProperties(_ref3, _excluded$4);
3243
+ rest = _objectWithoutProperties(_ref3, _excluded$6);
3238
3244
 
3239
3245
  return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
3240
3246
  side: side
@@ -3261,7 +3267,7 @@ function ListItemSideContent(_ref5) {
3261
3267
  }));
3262
3268
  }
3263
3269
 
3264
- var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
3270
+ var _excluded$5 = ["children", "withPadding", "borders", "left", "right", "onPress"];
3265
3271
  var ContainerView = /*#__PURE__*/styled.View.withConfig({
3266
3272
  displayName: "ListItem__ContainerView"
3267
3273
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
@@ -3300,7 +3306,7 @@ function ListItem(_ref5) {
3300
3306
  left = _ref5.left,
3301
3307
  right = _ref5.right,
3302
3308
  onPress = _ref5.onPress,
3303
- rest = _objectWithoutProperties(_ref5, _excluded$3);
3309
+ rest = _objectWithoutProperties(_ref5, _excluded$5);
3304
3310
 
3305
3311
  var Wrapper = onPress ? Pressable$1 : Fragment$1;
3306
3312
  var wrapperProps = onPress ? _objectSpread({
@@ -3488,6 +3494,64 @@ function Message(_ref) {
3488
3494
  });
3489
3495
  }
3490
3496
 
3497
+ function ModalBehaviourPortal(_ref) {
3498
+ var children = _ref.children;
3499
+ // eslint-disable-next-line react/jsx-no-useless-fragment
3500
+ return /*#__PURE__*/jsx(Fragment, {
3501
+ children: children
3502
+ });
3503
+ }
3504
+
3505
+ var OnCloseContext = /*#__PURE__*/createContext(function () {});
3506
+ function OnCloseProvider(_ref) {
3507
+ var children = _ref.children,
3508
+ onClose = _ref.onClose;
3509
+ return /*#__PURE__*/jsx(OnCloseContext.Provider, {
3510
+ value: onClose,
3511
+ children: children
3512
+ });
3513
+ }
3514
+ function useOnCloseModalBehaviour() {
3515
+ var onClose = useContext(OnCloseContext);
3516
+ return onClose;
3517
+ }
3518
+
3519
+ function CloseButton(_ref) {
3520
+ var children = _ref.children,
3521
+ onPress = _ref.onPress;
3522
+ var onCloseContextCallback = useOnCloseModalBehaviour();
3523
+ return /*#__PURE__*/cloneElement(children, {
3524
+ onPress: function handleClose() {
3525
+ if (onPress) onPress();
3526
+ onCloseContextCallback();
3527
+ }
3528
+ });
3529
+ }
3530
+
3531
+ var ModalBehaviourContainer = /*#__PURE__*/styled(View$1).withConfig({
3532
+ displayName: "ModalBehaviour__ModalBehaviourContainer"
3533
+ })(["", ""], function () {
3534
+ if (Platform.OS !== 'web') return undefined;
3535
+ return css(["position:fixed;top:0;left:0;width:100%;"]);
3536
+ });
3537
+ function ModalBehaviour(_ref2) {
3538
+ var children = _ref2.children,
3539
+ visible = _ref2.visible,
3540
+ style = _ref2.style,
3541
+ onClose = _ref2.onClose;
3542
+ return /*#__PURE__*/jsx(OnCloseProvider, {
3543
+ onClose: onClose,
3544
+ children: /*#__PURE__*/jsx(ModalBehaviourPortal, {
3545
+ visible: visible,
3546
+ children: visible ? /*#__PURE__*/jsx(ModalBehaviourContainer, {
3547
+ style: style,
3548
+ children: children
3549
+ }) : null
3550
+ })
3551
+ });
3552
+ }
3553
+ ModalBehaviour.CloseButton = CloseButton;
3554
+
3491
3555
  var createKittSpaces = function (spacing) {
3492
3556
  var sizes = {};
3493
3557
 
@@ -3636,6 +3700,225 @@ var View = View$2;
3636
3700
  var ScrollView = ScrollView$2;
3637
3701
  var Pressable = Pressable$2;
3638
3702
 
3703
+ var _excluded$4 = ["children"];
3704
+ var ViewWithPadding = /*#__PURE__*/styled(View$1).withConfig({
3705
+ displayName: "ContentPadding__ViewWithPadding"
3706
+ })(["padding:", ";"], function (_ref) {
3707
+ var theme = _ref.theme;
3708
+ return "0 ".concat(theme.kitt.navigationModal.padding, "px");
3709
+ });
3710
+ function ContentPadding(_ref2) {
3711
+ var children = _ref2.children,
3712
+ props = _objectWithoutProperties(_ref2, _excluded$4);
3713
+
3714
+ return /*#__PURE__*/jsx(ViewWithPadding, _objectSpread(_objectSpread({}, props), {}, {
3715
+ children: children
3716
+ }));
3717
+ }
3718
+
3719
+ var _excluded$3 = ["children", "shouldHandleBottomNotch", "style"];
3720
+ var StyledViewWithPadding = /*#__PURE__*/styled(ContentPadding).withConfig({
3721
+ displayName: "Body__StyledViewWithPadding"
3722
+ })(["padding-top:", "px;padding-bottom:", "px;"], function (_ref) {
3723
+ var theme = _ref.theme;
3724
+ return theme.kitt.spacing * 6;
3725
+ }, function (_ref2) {
3726
+ var theme = _ref2.theme,
3727
+ $insetBottom = _ref2.$insetBottom;
3728
+ return Math.max(theme.kitt.spacing * 4, $insetBottom);
3729
+ });
3730
+ function Body(_ref3) {
3731
+ var children = _ref3.children,
3732
+ shouldHandleBottomNotch = _ref3.shouldHandleBottomNotch,
3733
+ style = _ref3.style,
3734
+ props = _objectWithoutProperties(_ref3, _excluded$3);
3735
+
3736
+ var _useSafeAreaInsets = useSafeAreaInsets(),
3737
+ bottom = _useSafeAreaInsets.bottom;
3738
+
3739
+ var insetBottom = shouldHandleBottomNotch ? bottom : 0;
3740
+ return /*#__PURE__*/jsx(StyledViewWithPadding, _objectSpread(_objectSpread({}, props), {}, {
3741
+ $insetBottom: insetBottom,
3742
+ style: style,
3743
+ children: children
3744
+ }));
3745
+ }
3746
+
3747
+ var FooterContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
3748
+ displayName: "Footer__FooterContainer"
3749
+ })(["padding-top:", "px;padding-bottom:", "px;", ";"], function (_ref) {
3750
+ var theme = _ref.theme;
3751
+ return theme.kitt.spacing * 3;
3752
+ }, function (_ref2) {
3753
+ var theme = _ref2.theme,
3754
+ $insetBottom = _ref2.$insetBottom;
3755
+ return Math.max(theme.kitt.spacing * 3, $insetBottom);
3756
+ }, function (_ref3) {
3757
+ var $hasSeparator = _ref3.$hasSeparator;
3758
+ if (!$hasSeparator) return undefined;
3759
+ return css(["border-top-width:1px;border-top-color:", ";"], function (_ref4) {
3760
+ var theme = _ref4.theme;
3761
+ return theme.kitt.colors.separator;
3762
+ });
3763
+ });
3764
+ function Footer(_ref5) {
3765
+ var _ref5$shouldHandleBot = _ref5.shouldHandleBottomNotch,
3766
+ shouldHandleBottomNotch = _ref5$shouldHandleBot === void 0 ? true : _ref5$shouldHandleBot,
3767
+ _ref5$hasSeparator = _ref5.hasSeparator,
3768
+ hasSeparator = _ref5$hasSeparator === void 0 ? true : _ref5$hasSeparator,
3769
+ children = _ref5.children,
3770
+ style = _ref5.style;
3771
+
3772
+ var _useSafeAreaInsets = useSafeAreaInsets(),
3773
+ bottom = _useSafeAreaInsets.bottom;
3774
+
3775
+ var insetBottom = shouldHandleBottomNotch ? bottom : 0;
3776
+ return /*#__PURE__*/jsx(FooterContainer, {
3777
+ $insetBottom: insetBottom,
3778
+ $hasSeparator: hasSeparator,
3779
+ style: style,
3780
+ children: children
3781
+ });
3782
+ }
3783
+
3784
+ var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
3785
+ displayName: "Header__HeaderContainer"
3786
+ })(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;", ";"], function (_ref) {
3787
+ var theme = _ref.theme;
3788
+ return theme.kitt.navigationModal.height;
3789
+ }, function (_ref2) {
3790
+ var theme = _ref2.theme,
3791
+ $isTransparent = _ref2.$isTransparent;
3792
+ if ($isTransparent) return 'transparent';
3793
+ return theme.kitt.colors.uiBackgroundLight;
3794
+ }, function (_ref3) {
3795
+ var theme = _ref3.theme,
3796
+ $hasRight = _ref3.$hasRight;
3797
+ return $hasRight ? theme.kitt.spacing * 2 : theme.kitt.navigationModal.padding;
3798
+ }, function (_ref4) {
3799
+ var theme = _ref4.theme,
3800
+ $hasLeft = _ref4.$hasLeft;
3801
+ return $hasLeft ? theme.kitt.spacing * 2 : theme.kitt.navigationModal.padding;
3802
+ }, function (_ref5) {
3803
+ var $hasSeparator = _ref5.$hasSeparator;
3804
+ if (!$hasSeparator) return undefined;
3805
+ return css(["border-bottom-width:1px;border-bottom-color:", ";"], function (_ref6) {
3806
+ var theme = _ref6.theme;
3807
+ return theme.kitt.colors.separator;
3808
+ });
3809
+ });
3810
+ var Row = /*#__PURE__*/styled(View$1).withConfig({
3811
+ displayName: "Header__Row"
3812
+ })(["flex-direction:row;justify-content:", ";align-items:center;"], function (_ref7) {
3813
+ var $hasContent = _ref7.$hasContent,
3814
+ $hasLeft = _ref7.$hasLeft;
3815
+ return !$hasContent && !$hasLeft ? 'flex-end' : 'space-between';
3816
+ });
3817
+ var ButtonContainer = /*#__PURE__*/styled.View.withConfig({
3818
+ displayName: "Header__ButtonContainer"
3819
+ })(["width:", "px;"], function (_ref8) {
3820
+ var theme = _ref8.theme;
3821
+ return theme.kitt.iconButton.width;
3822
+ });
3823
+ var ChildrenComponent = /*#__PURE__*/styled(View$1).withConfig({
3824
+ displayName: "Header__ChildrenComponent"
3825
+ })(["flex:1;align-items:center;", ";"], function (_ref9) {
3826
+ var theme = _ref9.theme,
3827
+ $hasLeft = _ref9.$hasLeft,
3828
+ $hasRight = _ref9.$hasRight;
3829
+ var paddingHorizontal = theme.kitt.spacing * 2;
3830
+ return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
3831
+ });
3832
+ var HeaderTitle = /*#__PURE__*/styled(Typography.Text).withConfig({
3833
+ displayName: "Header__HeaderTitle"
3834
+ })(["flex:1;text-align:", ";", ";"], function (_ref10) {
3835
+ var $hasLeft = _ref10.$hasLeft,
3836
+ $hasRight = _ref10.$hasRight;
3837
+ if (!$hasLeft && $hasRight) return 'left';
3838
+ return 'center';
3839
+ }, function (_ref11) {
3840
+ var theme = _ref11.theme,
3841
+ $hasLeft = _ref11.$hasLeft,
3842
+ $hasRight = _ref11.$hasRight;
3843
+ var paddingHorizontal = theme.kitt.spacing * 2;
3844
+ return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
3845
+ });
3846
+ function Header(_ref12) {
3847
+ var _ref12$hasSeparator = _ref12.hasSeparator,
3848
+ hasSeparator = _ref12$hasSeparator === void 0 ? true : _ref12$hasSeparator,
3849
+ isTransparent = _ref12.isTransparent,
3850
+ title = _ref12.title,
3851
+ children = _ref12.children,
3852
+ right = _ref12.right,
3853
+ left = _ref12.left,
3854
+ style = _ref12.style;
3855
+ var sharedProps = {
3856
+ $hasLeft: Boolean(left),
3857
+ $hasRight: Boolean(right)
3858
+ };
3859
+ return /*#__PURE__*/jsx(HeaderContainer, {
3860
+ $isTransparent: isTransparent,
3861
+ $hasSeparator: hasSeparator,
3862
+ $hasLeft: Boolean(left),
3863
+ $hasRight: Boolean(right),
3864
+ style: style,
3865
+ children: /*#__PURE__*/jsxs(Row, _objectSpread(_objectSpread({
3866
+ $hasContent: Boolean(title || children)
3867
+ }, sharedProps), {}, {
3868
+ children: [left ? /*#__PURE__*/jsx(ButtonContainer, {
3869
+ children: left
3870
+ }) : null, title ? /*#__PURE__*/jsx(HeaderTitle, _objectSpread(_objectSpread({}, sharedProps), {}, {
3871
+ variant: "bold",
3872
+ children: title
3873
+ })) : null, children ? /*#__PURE__*/jsx(ChildrenComponent, _objectSpread(_objectSpread({}, sharedProps), {}, {
3874
+ children: children
3875
+ })) : null, right || left ? /*#__PURE__*/jsx(ButtonContainer, {
3876
+ children: right
3877
+ }) : null]
3878
+ }))
3879
+ });
3880
+ }
3881
+
3882
+ var NavigationModalContainer = /*#__PURE__*/styled(View$1).withConfig({
3883
+ displayName: "NavigationModalContainer"
3884
+ })(["position:relative;background-color:", ";flex:1;", ""], function (_ref) {
3885
+ var theme = _ref.theme,
3886
+ $backgroundColor = _ref.$backgroundColor;
3887
+ return $backgroundColor || theme.kitt.colors.uiBackgroundLight;
3888
+ }, function () {
3889
+ if (Platform.OS !== 'web') return undefined;
3890
+ return css(["min-height:100vh;"]);
3891
+ });
3892
+
3893
+ var ContainerWithoutHeader = /*#__PURE__*/styled(View$1).withConfig({
3894
+ displayName: "NavigationModal__ContainerWithoutHeader"
3895
+ })(["justify-content:space-between;flex:1;"]);
3896
+ function NavigationModal(_ref) {
3897
+ var body = _ref.body,
3898
+ header = _ref.header,
3899
+ footer = _ref.footer,
3900
+ backgroundColor = _ref.backgroundColor;
3901
+ return /*#__PURE__*/jsxs(NavigationModalContainer, {
3902
+ $backgroundColor: backgroundColor,
3903
+ children: [header ? /*#__PURE__*/jsx(View$1, {
3904
+ children: header
3905
+ }) : null, /*#__PURE__*/jsxs(ContainerWithoutHeader, {
3906
+ children: [/*#__PURE__*/jsx(ScrollView$1, {
3907
+ bounces: false,
3908
+ contentContainerStyle: {
3909
+ flexGrow: 1,
3910
+ position: 'relative'
3911
+ },
3912
+ children: body
3913
+ }), footer || null]
3914
+ })]
3915
+ });
3916
+ }
3917
+ NavigationModal.Header = Header;
3918
+ NavigationModal.Footer = Footer;
3919
+ NavigationModal.Body = Body;
3920
+ NavigationModal.Padding = ContentPadding;
3921
+
3639
3922
  function Notification(_ref) {
3640
3923
  var type = _ref.type,
3641
3924
  children = _ref.children,
@@ -4977,5 +5260,5 @@ function MatchWindowSize(_ref) {
4977
5260
  return children;
4978
5261
  }
4979
5262
 
4980
- 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 };
5263
+ 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 };
4981
5264
  //# sourceMappingURL=index-browser-all.es.js.map