@ornikar/kitt-universal 27.9.0 → 27.9.1-canary.b005d681364bb7e16454f696f46b5af55d721a97.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 (57) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/definitions/CardModal/CardModalBody.d.ts +1 -1
  3. package/dist/definitions/CardModal/CardModalBody.d.ts.map +1 -1
  4. package/dist/definitions/CardModal/CardModalHeader.d.ts +3 -17
  5. package/dist/definitions/CardModal/CardModalHeader.d.ts.map +1 -1
  6. package/dist/definitions/FullscreenModal/Header.d.ts +3 -18
  7. package/dist/definitions/FullscreenModal/Header.d.ts.map +1 -1
  8. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +7 -7
  9. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
  10. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts +1 -1
  11. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts.map +1 -1
  12. package/dist/definitions/Picker/Picker.d.ts.map +1 -1
  13. package/dist/definitions/TopNavBar/TopNavBar.d.ts +1 -1
  14. package/dist/definitions/TopNavBar/TopNavBar.d.ts.map +1 -1
  15. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/ModalPlatformDateTimePicker.d.ts.map +1 -1
  16. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +14 -12
  17. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  18. package/dist/definitions/themes/default.d.ts +0 -1
  19. package/dist/definitions/themes/default.d.ts.map +1 -1
  20. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +1 -1
  21. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  22. package/dist/index-metro.es.android.js +232 -366
  23. package/dist/index-metro.es.android.js.map +1 -1
  24. package/dist/index-metro.es.ios.js +232 -366
  25. package/dist/index-metro.es.ios.js.map +1 -1
  26. package/dist/index-node-22.17.cjs.js +150 -277
  27. package/dist/index-node-22.17.cjs.js.map +1 -1
  28. package/dist/index-node-22.17.cjs.web.js +142 -261
  29. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  30. package/dist/index-node-22.17.es.mjs +151 -278
  31. package/dist/index-node-22.17.es.mjs.map +1 -1
  32. package/dist/index-node-22.17.es.web.mjs +143 -262
  33. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  34. package/dist/index.es.js +237 -372
  35. package/dist/index.es.js.map +1 -1
  36. package/dist/index.es.web.js +219 -345
  37. package/dist/index.es.web.js.map +1 -1
  38. package/dist/linaria-themes-metro.es.android.js +2 -8
  39. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  40. package/dist/linaria-themes-metro.es.ios.js +2 -8
  41. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  42. package/dist/linaria-themes-node-22.17.cjs.js +2 -8
  43. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  44. package/dist/linaria-themes-node-22.17.cjs.web.js +2 -8
  45. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  46. package/dist/linaria-themes-node-22.17.es.mjs +2 -8
  47. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  48. package/dist/linaria-themes-node-22.17.es.web.mjs +2 -8
  49. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  50. package/dist/linaria-themes.es.js +2 -8
  51. package/dist/linaria-themes.es.js.map +1 -1
  52. package/dist/linaria-themes.es.web.js +2 -8
  53. package/dist/linaria-themes.es.web.js.map +1 -1
  54. package/dist/tsbuildinfo +1 -1
  55. package/package.json +1 -1
  56. package/dist/definitions/themes/late-ocean/iconButton.d.ts +0 -6
  57. package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +0 -1
package/dist/index.es.js CHANGED
@@ -13,7 +13,7 @@ export { useWindowDimensions as useWindowSize } from 'react-native';
13
13
  import _typeof from '@babel/runtime/helpers/typeof';
14
14
  import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
15
15
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
16
- import { SpinnerGapRegularIcon, UserRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, XRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon, ArrowLeftRegularIcon } from '@ornikar/kitt-icons/phosphor';
16
+ import { SpinnerGapRegularIcon, UserRegularIcon, XRegularIcon, ArrowLeftRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon } from '@ornikar/kitt-icons/phosphor';
17
17
  import { BottomSheetView, BottomSheetScrollView, BottomSheetSectionList, BottomSheetFlatList, BottomSheetHandle, BottomSheetBackdrop, BottomSheetFooter, BottomSheetTextInput, BottomSheetModal, useBottomSheetModal } from '@gorhom/bottom-sheet';
18
18
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
19
19
  import { parse } from '@twemoji/parser';
@@ -1820,12 +1820,12 @@ var fullscreenModal = {
1820
1820
  header: {
1821
1821
  height: 56
1822
1822
  },
1823
- sharedHorizontalPadding: 16,
1823
+ horizontalPadding: 16,
1824
1824
  footer: {
1825
1825
  verticalPadding: 12
1826
1826
  },
1827
1827
  body: {
1828
- verticalPadding: 24
1828
+ verticalPadding: 16
1829
1829
  },
1830
1830
  animation: {
1831
1831
  overlay: {
@@ -1912,11 +1912,6 @@ var icon = {
1912
1912
  defaultSize: 20
1913
1913
  };
1914
1914
 
1915
- var iconButton = {
1916
- width: button.height.medium,
1917
- height: button.height.medium
1918
- };
1919
-
1920
1915
  var listItem = {
1921
1916
  padding: '12px 16px',
1922
1917
  verticalPadding: 12,
@@ -2648,7 +2643,6 @@ var theme = {
2648
2643
  highlight: highlight,
2649
2644
  icon: icon,
2650
2645
  buttonBadge: buttonBadge,
2651
- iconButton: iconButton,
2652
2646
  listItem: listItem,
2653
2647
  pageLoader: pageLoader,
2654
2648
  picker: picker,
@@ -2755,7 +2749,7 @@ function ActionCardDisabled(_ref) {
2755
2749
  });
2756
2750
  }
2757
2751
 
2758
- var _excluded$S = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2752
+ var _excluded$R = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2759
2753
  function ActionCard(_ref) {
2760
2754
  var children = _ref.children,
2761
2755
  _ref$variant = _ref.variant,
@@ -2768,7 +2762,7 @@ function ActionCard(_ref) {
2768
2762
  isHovered = _ref.isHovered,
2769
2763
  isPressed = _ref.isPressed,
2770
2764
  isFocused = _ref.isFocused,
2771
- props = _objectWithoutProperties(_ref, _excluded$S);
2765
+ props = _objectWithoutProperties(_ref, _excluded$R);
2772
2766
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2773
2767
  children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
2774
2768
  borderRadius: borderRadius,
@@ -3092,7 +3086,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
3092
3086
  return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
3093
3087
  };
3094
3088
 
3095
- var _excluded$R = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3089
+ var _excluded$Q = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3096
3090
  var TypographyFamilyContext = /*#__PURE__*/createContext(null);
3097
3091
  var TypographyTypeContext = /*#__PURE__*/createContext(null);
3098
3092
  var TypographyColorContext = /*#__PURE__*/createContext('black');
@@ -3216,7 +3210,7 @@ function Typography(_ref2) {
3216
3210
  } : _ref2$type,
3217
3211
  variant = _ref2.variant,
3218
3212
  color = _ref2.color,
3219
- otherProps = _objectWithoutProperties(_ref2, _excluded$R);
3213
+ otherProps = _objectWithoutProperties(_ref2, _excluded$Q);
3220
3214
  var sx = useSx();
3221
3215
  var typographyFamilyInContext = useContext(TypographyFamilyContext);
3222
3216
  var typographyTypeInContext = useContext(TypographyTypeContext);
@@ -3358,12 +3352,12 @@ function Icon(_ref) {
3358
3352
  });
3359
3353
  }
3360
3354
 
3361
- var _excluded$Q = ["color", "size"],
3355
+ var _excluded$P = ["color", "size"],
3362
3356
  _excluded2$5 = ["color"];
3363
3357
  function TypographyIconSpecifiedColor(_ref) {
3364
3358
  var color = _ref.color,
3365
3359
  size = _ref.size,
3366
- props = _objectWithoutProperties(_ref, _excluded$Q);
3360
+ props = _objectWithoutProperties(_ref, _excluded$P);
3367
3361
  var colorValue = getTypographyColorValue(color);
3368
3362
  var sx = useSx();
3369
3363
  var _sx = sx({
@@ -3403,7 +3397,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
3403
3397
  return "".concat(baseKey, ".default");
3404
3398
  };
3405
3399
 
3406
- var _excluded$P = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3400
+ var _excluded$O = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3407
3401
  function ButtonContentChildren(_ref) {
3408
3402
  var type = _ref.type,
3409
3403
  icon = _ref.icon,
@@ -3503,7 +3497,7 @@ function ButtonContent(_ref2) {
3503
3497
  _ref2.isFocused;
3504
3498
  var innerSpacing = _ref2.innerSpacing,
3505
3499
  size = _ref2.size,
3506
- props = _objectWithoutProperties(_ref2, _excluded$P);
3500
+ props = _objectWithoutProperties(_ref2, _excluded$O);
3507
3501
  var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
3508
3502
  return /*#__PURE__*/jsx(View, {
3509
3503
  _web: {
@@ -3748,7 +3742,7 @@ function LoaderIcon(_ref) {
3748
3742
  });
3749
3743
  }
3750
3744
 
3751
- var _excluded$O = ["as", "onPress", "disabled", "icon", "stretch"];
3745
+ var _excluded$N = ["as", "onPress", "disabled", "icon", "stretch"];
3752
3746
  var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3753
3747
  var as = _ref.as,
3754
3748
  onPress = _ref.onPress,
@@ -3759,7 +3753,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3759
3753
  base: true,
3760
3754
  medium: false
3761
3755
  } : _ref$stretch,
3762
- props = _objectWithoutProperties(_ref, _excluded$O);
3756
+ props = _objectWithoutProperties(_ref, _excluded$N);
3763
3757
  var _useState = useState(false),
3764
3758
  _useState2 = _slicedToArray(_useState, 2),
3765
3759
  isLoading = _useState2[0],
@@ -3837,7 +3831,7 @@ function ActionsButton(_ref) {
3837
3831
  }, props));
3838
3832
  }
3839
3833
 
3840
- var _excluded$N = ["children", "layout", "reversed"];
3834
+ var _excluded$M = ["children", "layout", "reversed"];
3841
3835
  function getCurrentLayout(layout) {
3842
3836
  if (!layout) return {
3843
3837
  base: 'stretch',
@@ -3869,7 +3863,7 @@ function Actions(_ref) {
3869
3863
  reversed = _ref$reversed === void 0 ? {
3870
3864
  base: false
3871
3865
  } : _ref$reversed,
3872
- props = _objectWithoutProperties(_ref, _excluded$N);
3866
+ props = _objectWithoutProperties(_ref, _excluded$M);
3873
3867
  var shouldReverse = typeof reversed === 'boolean' ? {
3874
3868
  base: !!reversed
3875
3869
  } : createResponsiveStyleFromProp(reversed, true, false);
@@ -3922,7 +3916,7 @@ function getInitials(firstname, lastname) {
3922
3916
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
3923
3917
  }
3924
3918
 
3925
- var _excluded$M = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3919
+ var _excluded$L = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3926
3920
  function AvatarContent(_ref) {
3927
3921
  var size = _ref.size,
3928
3922
  src = _ref.src,
@@ -3985,7 +3979,7 @@ function Avatar(_ref2) {
3985
3979
  height = _ref2.height,
3986
3980
  dark = _ref2.dark,
3987
3981
  disabled = _ref2.disabled,
3988
- props = _objectWithoutProperties(_ref2, _excluded$M);
3982
+ props = _objectWithoutProperties(_ref2, _excluded$L);
3989
3983
  var currentSize = getCurrentSize({
3990
3984
  size: size,
3991
3985
  sizeVariant: sizeVariant
@@ -4023,7 +4017,7 @@ function Avatar(_ref2) {
4023
4017
  });
4024
4018
  }
4025
4019
 
4026
- var _excluded$L = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
4020
+ var _excluded$K = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
4027
4021
  function BottomSheetComp(_ref, ref) {
4028
4022
  var Content = _ref.children,
4029
4023
  _ref$hasScrollView = _ref.hasScrollView,
@@ -4036,7 +4030,7 @@ function BottomSheetComp(_ref, ref) {
4036
4030
  enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
4037
4031
  _ref$snapPoints = _ref.snapPoints,
4038
4032
  snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
4039
- rest = _objectWithoutProperties(_ref, _excluded$L);
4033
+ rest = _objectWithoutProperties(_ref, _excluded$K);
4040
4034
  var _useSafeAreaInsets = useSafeAreaInsets(),
4041
4035
  top = _useSafeAreaInsets.top;
4042
4036
  var Wrapper = useMemo(function () {
@@ -4348,13 +4342,13 @@ function CardModalAnimation(_ref) {
4348
4342
  });
4349
4343
  }
4350
4344
 
4351
- var _excluded$K = ["children", "visible", "onClose", "onExited"];
4345
+ var _excluded$J = ["children", "visible", "onClose", "onExited"];
4352
4346
  function CardModalBehaviour(_ref) {
4353
4347
  var children = _ref.children,
4354
4348
  visible = _ref.visible,
4355
4349
  onClose = _ref.onClose,
4356
4350
  onExited = _ref.onExited,
4357
- props = _objectWithoutProperties(_ref, _excluded$K);
4351
+ props = _objectWithoutProperties(_ref, _excluded$J);
4358
4352
  var _useState = useState(visible),
4359
4353
  _useState2 = _slicedToArray(_useState, 2),
4360
4354
  isModalBehaviourVisible = _useState2[0],
@@ -4379,32 +4373,23 @@ function CardModalBehaviour(_ref) {
4379
4373
  });
4380
4374
  }
4381
4375
 
4382
- var _excluded$J = ["children", "paddingX", "paddingY"];
4376
+ var _excluded$I = ["children", "padding"];
4383
4377
  function CardModalBody(_ref) {
4384
4378
  var children = _ref.children,
4385
- _ref$paddingX = _ref.paddingX,
4386
- paddingX = _ref$paddingX === void 0 ? {
4387
- base: 'kitt.4',
4388
- medium: 'kitt.6'
4389
- } : _ref$paddingX,
4390
- _ref$paddingY = _ref.paddingY,
4391
- paddingY = _ref$paddingY === void 0 ? {
4392
- base: 'kitt.4',
4393
- medium: 'kitt.6'
4394
- } : _ref$paddingY,
4395
- props = _objectWithoutProperties(_ref, _excluded$J);
4379
+ _ref$padding = _ref.padding,
4380
+ padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
4381
+ props = _objectWithoutProperties(_ref, _excluded$I);
4396
4382
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4397
4383
  showsVerticalScrollIndicator: false,
4398
4384
  _contentContainerStyle: {
4399
- paddingX: paddingX,
4400
- paddingY: paddingY
4385
+ padding: padding
4401
4386
  }
4402
4387
  }, props), {}, {
4403
4388
  children: children
4404
4389
  }));
4405
4390
  }
4406
4391
 
4407
- var _excluded$I = ["children", "padding", "hasSeparator"];
4392
+ var _excluded$H = ["children", "padding", "hasSeparator"];
4408
4393
  function CardModalFooter(_ref) {
4409
4394
  var children = _ref.children,
4410
4395
  _ref$padding = _ref.padding,
@@ -4414,7 +4399,7 @@ function CardModalFooter(_ref) {
4414
4399
  } : _ref$padding,
4415
4400
  _ref$hasSeparator = _ref.hasSeparator,
4416
4401
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4417
- props = _objectWithoutProperties(_ref, _excluded$I);
4402
+ props = _objectWithoutProperties(_ref, _excluded$H);
4418
4403
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4419
4404
  marginTop: "kitt.2",
4420
4405
  padding: padding,
@@ -4428,58 +4413,148 @@ function CardModalFooter(_ref) {
4428
4413
  }));
4429
4414
  }
4430
4415
 
4431
- var _excluded$H = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
4432
- function CardModalHeader(_ref) {
4433
- var children = _ref.children,
4416
+ var getButtonTypeAndVariant = function (iconColor) {
4417
+ switch (iconColor) {
4418
+ case 'black':
4419
+ return {
4420
+ type: 'tertiary'
4421
+ };
4422
+ case 'secondary':
4423
+ return {
4424
+ type: 'secondary'
4425
+ };
4426
+ case 'primary':
4427
+ return {
4428
+ type: 'primary'
4429
+ };
4430
+ case 'primary-plain':
4431
+ return {
4432
+ type: 'primary'
4433
+ };
4434
+ case 'ghost':
4435
+ return {
4436
+ type: 'tertiary',
4437
+ variant: 'revert'
4438
+ };
4439
+ default:
4440
+ return {
4441
+ type: 'secondary'
4442
+ };
4443
+ }
4444
+ };
4445
+
4446
+ var _excluded$G = ["color", "ariaLabel"];
4447
+ /**
4448
+ * @deprecated IconButton should only be used as a navigation button
4449
+ * Other use cases should use a <Button> component with an icon
4450
+ */
4451
+ function IconButton(_ref) {
4452
+ var _ref$color = _ref.color,
4453
+ color = _ref$color === void 0 ? 'black' : _ref$color;
4454
+ _ref.ariaLabel;
4455
+ var props = _objectWithoutProperties(_ref, _excluded$G);
4456
+ var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
4457
+ legacyColorToType = _getButtonTypeAndVari.type,
4458
+ legacyColorToVariant = _getButtonTypeAndVari.variant;
4459
+ return /*#__PURE__*/jsx(Button, _objectSpread({
4460
+ variant: legacyColorToVariant,
4461
+ type: legacyColorToType
4462
+ }, props));
4463
+ }
4464
+ function CloseIconButton(props) {
4465
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
4466
+ icon: /*#__PURE__*/jsx(XRegularIcon, {})
4467
+ }, props));
4468
+ }
4469
+
4470
+ function TopNavBar(_ref) {
4471
+ var left = _ref.left,
4472
+ right = _ref.right,
4434
4473
  title = _ref.title,
4435
- _ref$paddingBottom = _ref.paddingBottom,
4436
- paddingBottom = _ref$paddingBottom === void 0 ? {
4437
- base: 'kitt.4',
4438
- medium: 'kitt.2'
4439
- } : _ref$paddingBottom,
4474
+ _ref$titleAlign = _ref.titleAlign,
4475
+ titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
4476
+ stickers = _ref.stickers,
4477
+ _ref$mode = _ref.mode,
4478
+ mode = _ref$mode === void 0 ? 'default' : _ref$mode,
4440
4479
  _ref$hasSeparator = _ref.hasSeparator,
4441
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4442
- right = _ref.right,
4443
- left = _ref.left,
4444
- props = _objectWithoutProperties(_ref, _excluded$H);
4445
- var defaultContainerPadding = {
4446
- base: 'kitt.4',
4447
- medium: 'kitt.6'
4448
- };
4449
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4450
- padding: paddingBottom,
4451
- borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4452
- borderColor: "kitt.separator",
4453
- justifyContent: "center",
4480
+ hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator;
4481
+ var isLargeTitleMode = mode === 'largeTitle';
4482
+ var leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
4483
+ width: "kitt.button.minWidth"
4484
+ });
4485
+ return /*#__PURE__*/jsxs(VStack, {
4486
+ space: isLargeTitleMode ? 'kitt.2' : undefined,
4454
4487
  width: "100%",
4455
- height: "kitt.cardModal.header.height",
4456
- paddingRight: right ? 'kitt.2' : defaultContainerPadding,
4457
- paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
4458
- children: /*#__PURE__*/jsxs(View, {
4488
+ height: mode === 'default' ? 56 : undefined,
4489
+ justifyContent: "center",
4490
+ paddingX: "kitt.2",
4491
+ paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
4492
+ paddingBottom: "kitt.3",
4493
+ borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
4494
+ borderColor: "kitt.separator",
4495
+ children: [/*#__PURE__*/jsxs(HStack, {
4459
4496
  alignItems: "center",
4460
- flexDirection: "row",
4461
- justifyContent: !children && !left ? 'flex-end' : 'space-between',
4462
- children: [left ? /*#__PURE__*/jsx(View, {
4463
- width: "kitt.iconButton.width",
4464
- children: left
4465
- }) : null, /*#__PURE__*/jsxs(View, {
4497
+ justifyContent: !title && !left ? 'flex-end' : 'space-between',
4498
+ children: [left !== null && left !== void 0 ? left : leftEmptySpace, mode === 'default' ? /*#__PURE__*/jsx(View, {
4466
4499
  flexGrow: "1",
4467
- paddingRight: right ? 'kitt.2' : 0,
4468
- paddingLeft: left ? 'kitt.2' : 0,
4469
- children: [title ? /*#__PURE__*/jsx(Typography.Text, {
4470
- textAlign: !left && right ? 'left' : 'center',
4500
+ flexShrink: 1,
4501
+ paddingRight: "kitt.2",
4502
+ paddingLeft: "kitt.2",
4503
+ children: title ? /*#__PURE__*/jsx(Typography.Text, {
4504
+ textAlign: titleAlign,
4471
4505
  variant: "bold",
4506
+ ellipsizeMode: "tail",
4507
+ numberOfLines: 1,
4472
4508
  children: title
4473
- }) : null, children]
4474
- }), right ? /*#__PURE__*/jsx(View, {
4475
- width: "kitt.iconButton.width",
4476
- children: right
4477
- }) : null]
4478
- })
4479
- }));
4509
+ }) : null
4510
+ }) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
4511
+ width: "kitt.button.minWidth"
4512
+ })]
4513
+ }), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
4514
+ space: "kitt.4",
4515
+ paddingX: "kitt.2",
4516
+ children: [stickers ? /*#__PURE__*/jsx(HStack, {
4517
+ width: "100%",
4518
+ space: "kitt.1",
4519
+ flexShrink: 1,
4520
+ flexWrap: "wrap",
4521
+ style: {
4522
+ rowGap: theme.getSpacing(1)
4523
+ },
4524
+ children: stickers.map(function (sticker, index) {
4525
+ return (
4526
+ /*#__PURE__*/
4527
+ // eslint-disable-next-line react/no-array-index-key
4528
+ jsx(View, {
4529
+ children: sticker
4530
+ }, index)
4531
+ );
4532
+ })
4533
+ }) : null, /*#__PURE__*/jsx(Typography.Text, {
4534
+ base: "heading-m",
4535
+ children: title
4536
+ })]
4537
+ }) : null]
4538
+ });
4539
+ }
4540
+ function CloseButton(props) {
4541
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
4542
+ icon: /*#__PURE__*/jsx(XRegularIcon, {})
4543
+ }, props));
4544
+ }
4545
+ function BackButton(props) {
4546
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
4547
+ icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
4548
+ }, props));
4549
+ }
4550
+ TopNavBar.CloseButton = CloseButton;
4551
+ TopNavBar.BackButton = BackButton;
4552
+
4553
+ function CardModalHeader(props) {
4554
+ return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
4480
4555
  }
4481
4556
 
4482
- var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4557
+ var _excluded$F = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4483
4558
  function CardModal(_ref) {
4484
4559
  var _ref$backgroundColor = _ref.backgroundColor,
4485
4560
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4490,7 +4565,7 @@ function CardModal(_ref) {
4490
4565
  header = _ref.header,
4491
4566
  body = _ref.body,
4492
4567
  footer = _ref.footer,
4493
- props = _objectWithoutProperties(_ref, _excluded$G);
4568
+ props = _objectWithoutProperties(_ref, _excluded$F);
4494
4569
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4495
4570
  overflow: "hidden",
4496
4571
  backgroundColor: backgroundColor,
@@ -4736,11 +4811,11 @@ function ChoiceItemContainer(_ref) {
4736
4811
  }));
4737
4812
  }
4738
4813
 
4739
- var _excluded$F = ["direction", "contentContainerStyle"];
4814
+ var _excluded$E = ["direction", "contentContainerStyle"];
4740
4815
  function ChoicesContainer(_ref) {
4741
4816
  var direction = _ref.direction,
4742
4817
  contentContainerStyle = _ref.contentContainerStyle,
4743
- props = _objectWithoutProperties(_ref, _excluded$F);
4818
+ props = _objectWithoutProperties(_ref, _excluded$E);
4744
4819
  if (direction === 'row') {
4745
4820
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
4746
4821
  horizontal: true,
@@ -4966,13 +5041,13 @@ function DialogModalAnimation(_ref) {
4966
5041
  });
4967
5042
  }
4968
5043
 
4969
- var _excluded$E = ["children", "visible", "onClose", "onExited"];
5044
+ var _excluded$D = ["children", "visible", "onClose", "onExited"];
4970
5045
  function DialogModalBehaviour(_ref) {
4971
5046
  var children = _ref.children,
4972
5047
  visible = _ref.visible,
4973
5048
  onClose = _ref.onClose,
4974
5049
  onExited = _ref.onExited,
4975
- props = _objectWithoutProperties(_ref, _excluded$E);
5050
+ props = _objectWithoutProperties(_ref, _excluded$D);
4976
5051
  var _useState = useState(visible),
4977
5052
  _useState2 = _slicedToArray(_useState, 2),
4978
5053
  isModalBehaviourVisible = _useState2[0],
@@ -5003,7 +5078,7 @@ function DialogModalBehaviour(_ref) {
5003
5078
  });
5004
5079
  }
5005
5080
 
5006
- var _excluded$D = ["stretch"];
5081
+ var _excluded$C = ["stretch"];
5007
5082
  function DialogModal(_ref) {
5008
5083
  var illustration = _ref.illustration,
5009
5084
  title = _ref.title,
@@ -5043,7 +5118,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
5043
5118
  function DialogModalButton(_ref2) {
5044
5119
  var _ref2$stretch = _ref2.stretch,
5045
5120
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
5046
- props = _objectWithoutProperties(_ref2, _excluded$D);
5121
+ props = _objectWithoutProperties(_ref2, _excluded$C);
5047
5122
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
5048
5123
  stretch: stretch
5049
5124
  }, props));
@@ -5080,7 +5155,7 @@ function Emoji(_ref) {
5080
5155
  });
5081
5156
  }
5082
5157
 
5083
- var _excluded$C = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5158
+ var _excluded$B = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5084
5159
  _excluded2$4 = ["phoneNumber", "children"],
5085
5160
  _excluded3$3 = ["phoneNumber", "children"],
5086
5161
  _excluded4$3 = ["emailAddress", "children"];
@@ -5090,7 +5165,7 @@ function ExternalAppLink(_ref) {
5090
5165
  appValue = _ref.appValue,
5091
5166
  onPress = _ref.onPress,
5092
5167
  onOpenAppError = _ref.onOpenAppError,
5093
- rest = _objectWithoutProperties(_ref, _excluded$C);
5168
+ rest = _objectWithoutProperties(_ref, _excluded$B);
5094
5169
  var href = "".concat(appScheme, ":").concat(appValue);
5095
5170
  var handleOnPress = /*#__PURE__*/function () {
5096
5171
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -5242,7 +5317,7 @@ function useOpenExternalLink(errorHandler) {
5242
5317
  }();
5243
5318
  }
5244
5319
 
5245
- var _excluded$B = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5320
+ var _excluded$A = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5246
5321
  function ExternalLink(_ref) {
5247
5322
  var Component = _ref.as,
5248
5323
  href = _ref.href,
@@ -5251,7 +5326,7 @@ function ExternalLink(_ref) {
5251
5326
  onPress = _ref.onPress,
5252
5327
  _ref$onOpenLinkError = _ref.onOpenLinkError,
5253
5328
  onOpenLinkError = _ref$onOpenLinkError === void 0 ? console.error : _ref$onOpenLinkError,
5254
- rest = _objectWithoutProperties(_ref, _excluded$B);
5329
+ rest = _objectWithoutProperties(_ref, _excluded$A);
5255
5330
  var openExternalLink = useOpenExternalLink();
5256
5331
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5257
5332
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
@@ -5308,7 +5383,7 @@ function InputTextContainer(_ref) {
5308
5383
  });
5309
5384
  }
5310
5385
 
5311
- var _excluded$A = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5386
+ var _excluded$z = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5312
5387
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5313
5388
  var id = _ref.id,
5314
5389
  right = _ref.right;
@@ -5329,7 +5404,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5329
5404
  multiline = _ref.multiline,
5330
5405
  height = _ref.height,
5331
5406
  onSubmitEditing = _ref.onSubmitEditing,
5332
- props = _objectWithoutProperties(_ref, _excluded$A);
5407
+ props = _objectWithoutProperties(_ref, _excluded$z);
5333
5408
  var theme = useTheme();
5334
5409
  var fontSizeForNativeBase = createNativeBaseFontSize({
5335
5410
  base: 'body-m'
@@ -5454,12 +5529,12 @@ function AutocompleteItemsListContainer(_ref) {
5454
5529
  });
5455
5530
  }
5456
5531
 
5457
- var _excluded$z = ["children", "testID"];
5532
+ var _excluded$y = ["children", "testID"];
5458
5533
  function AutocompleteOption(_ref) {
5459
5534
  var children = _ref.children,
5460
5535
  _ref$testID = _ref.testID,
5461
5536
  testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
5462
- props = _objectWithoutProperties(_ref, _excluded$z);
5537
+ props = _objectWithoutProperties(_ref, _excluded$y);
5463
5538
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5464
5539
  paddingX: {
5465
5540
  base: 'kitt.2',
@@ -5472,7 +5547,7 @@ function AutocompleteOption(_ref) {
5472
5547
  }));
5473
5548
  }
5474
5549
 
5475
- var _excluded$y = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5550
+ var _excluded$x = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5476
5551
  _excluded2$3 = ["onClick", "onPress"],
5477
5552
  _excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
5478
5553
  _excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
@@ -5512,7 +5587,7 @@ function Autocomplete(_ref) {
5512
5587
  _ref$zIndex = _ref.zIndex,
5513
5588
  zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
5514
5589
  maxItemContainerHeight = _ref.maxItemContainerHeight,
5515
- props = _objectWithoutProperties(_ref, _excluded$y);
5590
+ props = _objectWithoutProperties(_ref, _excluded$x);
5516
5591
  var childrenArray = Children.toArray(_children);
5517
5592
  var items = childrenArray.filter(isReactElement).map(function (child) {
5518
5593
  return {
@@ -5727,7 +5802,7 @@ function getBorderColor$1(_ref) {
5727
5802
  return 'kitt.forms.checkbox.default.borderColor';
5728
5803
  }
5729
5804
 
5730
- var _excluded$x = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5805
+ var _excluded$w = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5731
5806
  var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5732
5807
  var checked = _ref.checked,
5733
5808
  _ref$hitSlop = _ref.hitSlop,
@@ -5737,7 +5812,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5737
5812
  onChange = _ref.onChange,
5738
5813
  onBlur = _ref.onBlur,
5739
5814
  onFocus = _ref.onFocus,
5740
- props = _objectWithoutProperties(_ref, _excluded$x);
5815
+ props = _objectWithoutProperties(_ref, _excluded$w);
5741
5816
  var theme = useTheme();
5742
5817
  return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
5743
5818
  hitSlop: hitSlop
@@ -6055,7 +6130,7 @@ function PartContainer(_ref) {
6055
6130
  });
6056
6131
  }
6057
6132
 
6058
- var _excluded$w = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
6133
+ var _excluded$v = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
6059
6134
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6060
6135
  var id = _ref.id,
6061
6136
  value = _ref.value,
@@ -6073,7 +6148,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6073
6148
  onBlur = _ref.onBlur,
6074
6149
  onFocus = _ref.onFocus,
6075
6150
  onSubmitEditing = _ref.onSubmitEditing;
6076
- _objectWithoutProperties(_ref, _excluded$w);
6151
+ _objectWithoutProperties(_ref, _excluded$v);
6077
6152
  var monthRef = useRef(null);
6078
6153
  var yearRef = useRef(null);
6079
6154
  var defaultValue = value;
@@ -6282,7 +6357,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
6282
6357
  });
6283
6358
  });
6284
6359
 
6285
- var _excluded$v = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6360
+ var _excluded$u = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6286
6361
  var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
6287
6362
  var onBlur = _ref.onBlur,
6288
6363
  onFocus = _ref.onFocus,
@@ -6291,7 +6366,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
6291
6366
  isDefaultVisible = _ref.isDefaultVisible,
6292
6367
  value = _ref.value,
6293
6368
  _onChange = _ref.onChange,
6294
- props = _objectWithoutProperties(_ref, _excluded$v);
6369
+ props = _objectWithoutProperties(_ref, _excluded$u);
6295
6370
  var _useState = useState(false),
6296
6371
  _useState2 = _slicedToArray(_useState, 2),
6297
6372
  isFocused = _useState2[0],
@@ -6367,15 +6442,11 @@ function PlatformDateTimePicker(_ref) {
6367
6442
  }));
6368
6443
  }
6369
6444
 
6370
- var _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6445
+ var _excluded$t = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6371
6446
  function ModalTitle(_ref) {
6372
6447
  var children = _ref.children;
6373
6448
  return /*#__PURE__*/jsx(CardModal.Header, {
6374
- children: /*#__PURE__*/jsx(Typography.Text, {
6375
- base: "body-m",
6376
- variant: "bold",
6377
- children: children
6378
- })
6449
+ title: children
6379
6450
  });
6380
6451
  }
6381
6452
  function ModalPlatformDateTimePicker(_ref2) {
@@ -6385,7 +6456,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6385
6456
  validateButtonLabel = _ref2.validateButtonLabel,
6386
6457
  onClose = _ref2.onClose,
6387
6458
  onChange = _ref2.onChange,
6388
- props = _objectWithoutProperties(_ref2, _excluded$u);
6459
+ props = _objectWithoutProperties(_ref2, _excluded$t);
6389
6460
  var _useState = useState(value),
6390
6461
  _useState2 = _slicedToArray(_useState, 2),
6391
6462
  currentValue = _useState2[0],
@@ -6431,7 +6502,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6431
6502
  });
6432
6503
  }
6433
6504
 
6434
- var _excluded$t = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
6505
+ var _excluded$s = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
6435
6506
  var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6436
6507
  var value = _ref.value,
6437
6508
  pickerUITestID = _ref.pickerUITestID,
@@ -6445,7 +6516,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6445
6516
  onChange = _ref.onChange,
6446
6517
  onFocus = _ref.onFocus,
6447
6518
  onBlur = _ref.onBlur,
6448
- props = _objectWithoutProperties(_ref, _excluded$t);
6519
+ props = _objectWithoutProperties(_ref, _excluded$s);
6449
6520
  var _useState = useState(isDefaultVisible),
6450
6521
  _useState2 = _slicedToArray(_useState, 2),
6451
6522
  isPickerUIVisible = _useState2[0],
@@ -6492,7 +6563,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6492
6563
  });
6493
6564
  });
6494
6565
 
6495
- var _excluded$s = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6566
+ var _excluded$r = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6496
6567
  var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6497
6568
  var value = _ref.value,
6498
6569
  pickerUITestID = _ref.pickerUITestID,
@@ -6500,7 +6571,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6500
6571
  pickerDefaultDate = _ref.pickerDefaultDate,
6501
6572
  onChange = _ref.onChange,
6502
6573
  onBlur = _ref.onBlur,
6503
- props = _objectWithoutProperties(_ref, _excluded$s);
6574
+ props = _objectWithoutProperties(_ref, _excluded$r);
6504
6575
  if (Platform.OS === 'android') {
6505
6576
  return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
6506
6577
  ref: ref,
@@ -6522,14 +6593,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6522
6593
  }, props));
6523
6594
  });
6524
6595
 
6525
- var _excluded$r = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6596
+ var _excluded$q = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6526
6597
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6527
6598
  var _ref$fillMode = _ref.fillMode,
6528
6599
  fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
6529
6600
  enterKeyHint = _ref.enterKeyHint,
6530
6601
  value = _ref.value,
6531
6602
  onSubmitEditing = _ref.onSubmitEditing,
6532
- props = _objectWithoutProperties(_ref, _excluded$r);
6603
+ props = _objectWithoutProperties(_ref, _excluded$q);
6533
6604
  // in apps, final-form can give a string value that will break the component
6534
6605
  var currentValue = value || undefined;
6535
6606
  if (fillMode === 'keyboard') {
@@ -6645,10 +6716,10 @@ function ImagePicker(_ref) {
6645
6716
  });
6646
6717
  }
6647
6718
 
6648
- var _excluded$q = ["children"];
6719
+ var _excluded$p = ["children"];
6649
6720
  function ListItemContent(_ref) {
6650
6721
  var children = _ref.children,
6651
- rest = _objectWithoutProperties(_ref, _excluded$q);
6722
+ rest = _objectWithoutProperties(_ref, _excluded$p);
6652
6723
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6653
6724
  alignSelf: "center",
6654
6725
  flexBasis: "0%",
@@ -6659,14 +6730,14 @@ function ListItemContent(_ref) {
6659
6730
  }));
6660
6731
  }
6661
6732
 
6662
- var _excluded$p = ["children", "side"],
6733
+ var _excluded$o = ["children", "side"],
6663
6734
  _excluded2$2 = ["children", "align"];
6664
6735
  // Handles the vertical alignment of the side elements of the list item
6665
6736
  function ListItemSideContainer(_ref) {
6666
6737
  var children = _ref.children,
6667
6738
  _ref$side = _ref.side,
6668
6739
  side = _ref$side === void 0 ? 'left' : _ref$side,
6669
- rest = _objectWithoutProperties(_ref, _excluded$p);
6740
+ rest = _objectWithoutProperties(_ref, _excluded$o);
6670
6741
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6671
6742
  flexDirection: "row",
6672
6743
  marginLeft: side === 'right' ? 'kitt.2' : undefined,
@@ -6687,7 +6758,7 @@ function ListItemSideContent(_ref2) {
6687
6758
  }));
6688
6759
  }
6689
6760
 
6690
- var _excluded$o = ["children", "withPadding", "borders", "left", "right", "onPress"];
6761
+ var _excluded$n = ["children", "withPadding", "borders", "left", "right", "onPress"];
6691
6762
  function ListItem(_ref) {
6692
6763
  var children = _ref.children,
6693
6764
  withPadding = _ref.withPadding,
@@ -6695,7 +6766,7 @@ function ListItem(_ref) {
6695
6766
  left = _ref.left,
6696
6767
  right = _ref.right,
6697
6768
  onPress = _ref.onPress,
6698
- rest = _objectWithoutProperties(_ref, _excluded$o);
6769
+ rest = _objectWithoutProperties(_ref, _excluded$n);
6699
6770
  var Wrapper = onPress ? Pressable$2 : Fragment$1;
6700
6771
  var wrapperProps = onPress ? _objectSpread({
6701
6772
  accessibilityRole: 'button',
@@ -6728,10 +6799,10 @@ ListItem.Content = ListItemContent;
6728
6799
  ListItem.SideContent = ListItemSideContent;
6729
6800
  ListItem.SideContainer = ListItemSideContainer;
6730
6801
 
6731
- var _excluded$n = ["title"];
6802
+ var _excluded$m = ["title"];
6732
6803
  function BottomSheetActionsItem(_ref) {
6733
6804
  var title = _ref.title,
6734
- props = _objectWithoutProperties(_ref, _excluded$n);
6805
+ props = _objectWithoutProperties(_ref, _excluded$m);
6735
6806
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
6736
6807
  children: /*#__PURE__*/jsx(ListItem, {
6737
6808
  withPadding: true,
@@ -7335,7 +7406,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
7335
7406
  };
7336
7407
  }
7337
7408
 
7338
- var _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
7409
+ var _excluded$l = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
7339
7410
  function InputAddress(_ref) {
7340
7411
  var initialValue = _ref.initialValue,
7341
7412
  _ref$itemToString = _ref.itemToString,
@@ -7343,7 +7414,7 @@ function InputAddress(_ref) {
7343
7414
  errorElement = _ref.errorElement,
7344
7415
  emptyResultsElement = _ref.emptyResultsElement,
7345
7416
  _onChange = _ref.onChange,
7346
- props = _objectWithoutProperties(_ref, _excluded$m);
7417
+ props = _objectWithoutProperties(_ref, _excluded$l);
7347
7418
  var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
7348
7419
  state = _useGoogleMapsAutocom.state,
7349
7420
  _onInputChange = _useGoogleMapsAutocom.onInputChange,
@@ -7440,10 +7511,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
7440
7511
  }, props));
7441
7512
  });
7442
7513
 
7443
- var _excluded$l = ["onChange"];
7514
+ var _excluded$k = ["onChange"];
7444
7515
  var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
7445
7516
  var onChange = _ref.onChange,
7446
- props = _objectWithoutProperties(_ref, _excluded$l);
7517
+ props = _objectWithoutProperties(_ref, _excluded$k);
7447
7518
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
7448
7519
  ref: ref
7449
7520
  }, props), {}, {
@@ -7460,11 +7531,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
7460
7531
  }));
7461
7532
  });
7462
7533
 
7463
- var _excluded$k = ["isPasswordDefaultVisible", "right"];
7534
+ var _excluded$j = ["isPasswordDefaultVisible", "right"];
7464
7535
  var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
7465
7536
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
7466
7537
  right = _ref.right,
7467
- props = _objectWithoutProperties(_ref, _excluded$k);
7538
+ props = _objectWithoutProperties(_ref, _excluded$j);
7468
7539
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
7469
7540
  _useState2 = _slicedToArray(_useState, 2),
7470
7541
  isVisible = _useState2[0],
@@ -7492,7 +7563,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
7492
7563
  }));
7493
7564
  });
7494
7565
 
7495
- var _excluded$j = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
7566
+ var _excluded$i = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
7496
7567
  function isPhoneNumberValid(number) {
7497
7568
  return isValidNumber(number);
7498
7569
  }
@@ -7506,7 +7577,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
7506
7577
  _ref$phoneNumberLengt = _ref.phoneNumberLength,
7507
7578
  phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
7508
7579
  onChange = _ref.onChange,
7509
- props = _objectWithoutProperties(_ref, _excluded$j);
7580
+ props = _objectWithoutProperties(_ref, _excluded$i);
7510
7581
  var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
7511
7582
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
7512
7583
  ref: ref
@@ -7943,7 +8014,7 @@ function RadioButton(_ref) {
7943
8014
  });
7944
8015
  }
7945
8016
 
7946
- var _excluded$i = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
8017
+ var _excluded$h = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
7947
8018
  function RadioButtonGroupItem(_ref) {
7948
8019
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
7949
8020
  return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
@@ -7956,7 +8027,7 @@ function RadioButtonGroup(_ref2) {
7956
8027
  onFocus = _ref2.onFocus,
7957
8028
  onBlur = _ref2.onBlur,
7958
8029
  onChange = _ref2.onChange,
7959
- props = _objectWithoutProperties(_ref2, _excluded$i);
8030
+ props = _objectWithoutProperties(_ref2, _excluded$h);
7960
8031
  var _useState = useState(value),
7961
8032
  _useState2 = _slicedToArray(_useState, 2),
7962
8033
  currentValue = _useState2[0],
@@ -7988,12 +8059,12 @@ function RadioButtonGroup(_ref2) {
7988
8059
  }
7989
8060
  RadioButtonGroup.RadioButton = RadioButtonGroupItem;
7990
8061
 
7991
- var _excluded$h = ["helper", "limit"];
8062
+ var _excluded$g = ["helper", "limit"];
7992
8063
  var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
7993
8064
  var _props$value, _props$value2;
7994
8065
  var helper = _ref.helper,
7995
8066
  limit = _ref.limit,
7996
- props = _objectWithoutProperties(_ref, _excluded$h);
8067
+ props = _objectWithoutProperties(_ref, _excluded$g);
7997
8068
  var shouldDisplayLimit = limit && limit > 0;
7998
8069
  var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
7999
8070
  var limitContainerAnimatedStyle = useAnimatedStyle(function () {
@@ -8152,7 +8223,7 @@ function ToggleAnimated(_ref) {
8152
8223
  });
8153
8224
  }
8154
8225
 
8155
- var _excluded$g = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
8226
+ var _excluded$f = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
8156
8227
  var getLabelTypographyType = function (size) {
8157
8228
  return size === 'medium' ? 'body-m' : 'body-l';
8158
8229
  };
@@ -8174,7 +8245,7 @@ function Toggle(_ref) {
8174
8245
  value = _ref$value === void 0 ? false : _ref$value,
8175
8246
  _ref$onChange = _ref.onChange,
8176
8247
  onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
8177
- props = _objectWithoutProperties(_ref, _excluded$g);
8248
+ props = _objectWithoutProperties(_ref, _excluded$f);
8178
8249
  var theme = useKittTheme();
8179
8250
  return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
8180
8251
  alignItems: "center"
@@ -8213,13 +8284,13 @@ function Toggle(_ref) {
8213
8284
  }));
8214
8285
  }
8215
8286
 
8216
- var _excluded$f = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
8287
+ var _excluded$e = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
8217
8288
  function FullscreenModalBody(_ref) {
8218
8289
  var children = _ref.children,
8219
8290
  shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
8220
8291
  style = _ref.style,
8221
8292
  shouldHandleTopNotch = _ref.shouldHandleTopNotch,
8222
- props = _objectWithoutProperties(_ref, _excluded$f);
8293
+ props = _objectWithoutProperties(_ref, _excluded$e);
8223
8294
  var _useSafeAreaInsets = useSafeAreaInsets(),
8224
8295
  bottom = _useSafeAreaInsets.bottom,
8225
8296
  top = _useSafeAreaInsets.top;
@@ -8239,14 +8310,14 @@ function FullscreenModalBody(_ref) {
8239
8310
  }));
8240
8311
  }
8241
8312
 
8242
- var _excluded$e = ["shouldHandleBottomNotch", "hasSeparator", "children"];
8313
+ var _excluded$d = ["shouldHandleBottomNotch", "hasSeparator", "children"];
8243
8314
  function FullscreenModalFooter(_ref) {
8244
8315
  var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
8245
8316
  shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
8246
8317
  _ref$hasSeparator = _ref.hasSeparator,
8247
8318
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
8248
8319
  children = _ref.children,
8249
- props = _objectWithoutProperties(_ref, _excluded$e);
8320
+ props = _objectWithoutProperties(_ref, _excluded$d);
8250
8321
  var _useSafeAreaInsets = useSafeAreaInsets(),
8251
8322
  bottom = _useSafeAreaInsets.bottom;
8252
8323
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
@@ -8402,13 +8473,13 @@ function FullscreenModalAnimation(_ref) {
8402
8473
  });
8403
8474
  }
8404
8475
 
8405
- var _excluded$d = ["children", "visible", "onClose", "onExited"];
8476
+ var _excluded$c = ["children", "visible", "onClose", "onExited"];
8406
8477
  function FullscreenModalBehaviour(_ref) {
8407
8478
  var children = _ref.children,
8408
8479
  visible = _ref.visible,
8409
8480
  onClose = _ref.onClose,
8410
8481
  onExited = _ref.onExited,
8411
- props = _objectWithoutProperties(_ref, _excluded$d);
8482
+ props = _objectWithoutProperties(_ref, _excluded$c);
8412
8483
  var _useState = useState(visible),
8413
8484
  _useState2 = _slicedToArray(_useState, 2),
8414
8485
  isModalBehaviourVisible = _useState2[0],
@@ -8455,64 +8526,17 @@ function FullscreenModalContainer(_ref) {
8455
8526
  });
8456
8527
  }
8457
8528
 
8458
- var _excluded$c = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
8529
+ var _excluded$b = ["shouldHandleTopNotch"];
8459
8530
  function FullscreenModalHeader(_ref) {
8460
- var _ref$hasSeparator = _ref.hasSeparator,
8461
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
8462
- isTransparent = _ref.isTransparent,
8463
- title = _ref.title,
8464
- children = _ref.children,
8465
- right = _ref.right,
8466
- left = _ref.left,
8467
- _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
8531
+ var _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
8468
8532
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
8469
- props = _objectWithoutProperties(_ref, _excluded$c);
8533
+ props = _objectWithoutProperties(_ref, _excluded$b);
8470
8534
  var _useSafeAreaInsets = useSafeAreaInsets(),
8471
8535
  top = _useSafeAreaInsets.top;
8472
- var hasRight = Boolean(right);
8473
- var hasLeft = Boolean(left);
8474
- var hasContent = Boolean(title || children);
8475
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
8476
- backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
8477
- minHeight: "kitt.fullscreenModal.header.height",
8478
- width: "100%",
8479
- justifyContent: "center",
8536
+ return /*#__PURE__*/jsx(View, {
8480
8537
  paddingTop: shouldHandleTopNotch ? top : undefined,
8481
- paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
8482
- paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
8483
- borderBottomColor: "kitt.separator",
8484
- borderBottomWidth: hasSeparator ? 1 : undefined
8485
- }, props), {}, {
8486
- children: /*#__PURE__*/jsxs(View, {
8487
- flexDirection: "row",
8488
- alignItems: "center",
8489
- justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
8490
- children: [left ? /*#__PURE__*/jsx(View, {
8491
- width: "kitt.iconButton.width",
8492
- children: left
8493
- }) : null, title ? /*#__PURE__*/jsx(View, {
8494
- flexGrow: 1,
8495
- flexShrink: 1,
8496
- paddingLeft: hasLeft ? 'kitt.2' : undefined,
8497
- paddingRight: hasRight ? 'kitt.2' : 0,
8498
- children: /*#__PURE__*/jsx(Typography.Text, {
8499
- variant: "bold",
8500
- textAlign: !hasLeft && hasRight ? 'left' : 'center',
8501
- children: title
8502
- })
8503
- }) : null, children ? /*#__PURE__*/jsx(View, {
8504
- flexGrow: 1,
8505
- flexShrink: 1,
8506
- alignItems: "center",
8507
- paddingLeft: hasLeft ? 'kitt.2' : undefined,
8508
- paddingRight: hasRight ? 'kitt.2' : undefined,
8509
- children: children
8510
- }) : null, right || left ? /*#__PURE__*/jsx(View, {
8511
- width: "kitt.iconButton.width",
8512
- children: right
8513
- }) : null]
8514
- })
8515
- }));
8538
+ children: /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props))
8539
+ });
8516
8540
  }
8517
8541
 
8518
8542
  function FullscreenModal(_ref) {
@@ -8811,60 +8835,6 @@ function Highlight(_ref) {
8811
8835
  });
8812
8836
  }
8813
8837
 
8814
- var getButtonTypeAndVariant = function (iconColor) {
8815
- switch (iconColor) {
8816
- case 'black':
8817
- return {
8818
- type: 'tertiary'
8819
- };
8820
- case 'secondary':
8821
- return {
8822
- type: 'secondary'
8823
- };
8824
- case 'primary':
8825
- return {
8826
- type: 'primary'
8827
- };
8828
- case 'primary-plain':
8829
- return {
8830
- type: 'primary'
8831
- };
8832
- case 'ghost':
8833
- return {
8834
- type: 'tertiary',
8835
- variant: 'revert'
8836
- };
8837
- default:
8838
- return {
8839
- type: 'secondary'
8840
- };
8841
- }
8842
- };
8843
-
8844
- var _excluded$b = ["color", "ariaLabel"];
8845
- /**
8846
- * @deprecated IconButton should only be used as a navigation button
8847
- * Other use cases should use a <Button> component with an icon
8848
- */
8849
- function IconButton(_ref) {
8850
- var _ref$color = _ref.color,
8851
- color = _ref$color === void 0 ? 'black' : _ref$color;
8852
- _ref.ariaLabel;
8853
- var props = _objectWithoutProperties(_ref, _excluded$b);
8854
- var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
8855
- legacyColorToType = _getButtonTypeAndVari.type,
8856
- legacyColorToVariant = _getButtonTypeAndVari.variant;
8857
- return /*#__PURE__*/jsx(Button, _objectSpread({
8858
- variant: legacyColorToVariant,
8859
- type: legacyColorToType
8860
- }, props));
8861
- }
8862
- function CloseIconButton(props) {
8863
- return /*#__PURE__*/jsx(IconButton, _objectSpread({
8864
- icon: /*#__PURE__*/jsx(XRegularIcon, {})
8865
- }, props));
8866
- }
8867
-
8868
8838
  function InfoCard(_ref) {
8869
8839
  var title = _ref.title,
8870
8840
  action = _ref.action,
@@ -10592,9 +10562,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10592
10562
  },
10593
10563
  icon: theme.icon,
10594
10564
  cardModal: {
10595
- header: {
10596
- height: theme.cardModal.header.height
10597
- },
10598
10565
  maxWidth: theme.cardModal.maxWidth,
10599
10566
  maxWidthWithPadding: theme.cardModal.maxWidthWithPadding,
10600
10567
  minHeight: theme.cardModal.minHeight
@@ -10895,15 +10862,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10895
10862
  }
10896
10863
  }
10897
10864
  },
10898
- iconButton: {
10899
- width: theme.iconButton.width,
10900
- height: theme.iconButton.height
10901
- },
10902
- fullscreenModal: {
10903
- header: {
10904
- height: theme.fullscreenModal.header.height
10905
- }
10906
- },
10907
10865
  pageLoader: {
10908
10866
  size: theme.pageLoader.size
10909
10867
  },
@@ -10998,7 +10956,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10998
10956
  }
10999
10957
  },
11000
10958
  fullscreenModal: {
11001
- horizontalPadding: theme.fullscreenModal.sharedHorizontalPadding,
10959
+ horizontalPadding: theme.fullscreenModal.horizontalPadding,
11002
10960
  body: {
11003
10961
  verticalPadding: theme.fullscreenModal.body.verticalPadding
11004
10962
  },
@@ -11857,19 +11815,13 @@ function NavigationBottomSheet(_ref) {
11857
11815
  })
11858
11816
  });
11859
11817
  }
11860
- function NavigationBottomSheetHeader(_ref2) {
11861
- var children = _ref2.children;
11862
- _ref2.left;
11863
- return /*#__PURE__*/jsx(HStack, {
11864
- marginBottom: "kitt.6",
11865
- children: /*#__PURE__*/jsx(Typography.Text, {
11866
- flexGrow: 1,
11867
- flexShrink: 1,
11868
- variant: "bold",
11869
- textAlign: "center",
11870
- children: children
11871
- })
11872
- });
11818
+
11819
+ /**
11820
+ * Web only: display right CloseButton
11821
+ */
11822
+
11823
+ function NavigationBottomSheetHeader(props) {
11824
+ return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
11873
11825
  }
11874
11826
  function NavigationBottomSheetBody(props) {
11875
11827
  return /*#__PURE__*/jsx(VStack, _objectSpread({
@@ -12313,14 +12265,9 @@ function Picker(_ref) {
12313
12265
  onClose: handleClose,
12314
12266
  children: /*#__PURE__*/jsxs(CardModal, {
12315
12267
  children: [/*#__PURE__*/jsx(CardModal.Header, {
12316
- right: /*#__PURE__*/jsx(IconButton, {
12317
- icon: /*#__PURE__*/jsx(XRegularIcon, {}),
12268
+ title: title,
12269
+ right: /*#__PURE__*/jsx(TopNavBar.CloseButton, {
12318
12270
  onPress: handleClose
12319
- }),
12320
- children: /*#__PURE__*/jsx(Typography.Text, {
12321
- base: "body-m",
12322
- variant: "bold",
12323
- children: title
12324
12271
  })
12325
12272
  }), Platform.OS === 'ios' && shouldDisplayNativePickerOnIOS ? /*#__PURE__*/jsx(Picker$1, {
12326
12273
  testID: testID,
@@ -13902,88 +13849,6 @@ function Tooltip(_ref) {
13902
13849
  Tooltip.Arrow = Arrow;
13903
13850
  Tooltip.Content = TooltipContent;
13904
13851
 
13905
- function TopNavBar(_ref) {
13906
- var left = _ref.left,
13907
- right = _ref.right,
13908
- title = _ref.title,
13909
- _ref$titleAlign = _ref.titleAlign,
13910
- titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
13911
- stickers = _ref.stickers,
13912
- _ref$mode = _ref.mode,
13913
- mode = _ref$mode === void 0 ? 'default' : _ref$mode,
13914
- _ref$hasSeparator = _ref.hasSeparator,
13915
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator;
13916
- var isLargeTitleMode = mode === 'largeTitle';
13917
- return /*#__PURE__*/jsxs(VStack, {
13918
- space: isLargeTitleMode ? 'kitt.2' : undefined,
13919
- width: "100%",
13920
- height: mode === 'default' ? 56 : undefined,
13921
- justifyContent: "center",
13922
- paddingX: "kitt.2",
13923
- paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
13924
- paddingBottom: "kitt.3",
13925
- borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
13926
- borderColor: "kitt.separator",
13927
- children: [/*#__PURE__*/jsxs(HStack, {
13928
- alignItems: "center",
13929
- justifyContent: !title && !left ? 'flex-end' : 'space-between',
13930
- children: [left !== null && left !== void 0 ? left : /*#__PURE__*/jsx(View, {
13931
- width: "kitt.button.minWidth"
13932
- }), mode === 'default' ? /*#__PURE__*/jsx(View, {
13933
- flexGrow: "1",
13934
- flexShrink: 1,
13935
- paddingRight: "kitt.2",
13936
- paddingLeft: "kitt.2",
13937
- children: title ? /*#__PURE__*/jsx(Typography.Text, {
13938
- textAlign: titleAlign,
13939
- variant: "bold",
13940
- ellipsizeMode: "tail",
13941
- numberOfLines: 1,
13942
- children: title
13943
- }) : null
13944
- }) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
13945
- width: "kitt.button.minWidth"
13946
- })]
13947
- }), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
13948
- space: "kitt.4",
13949
- paddingX: "kitt.2",
13950
- children: [stickers ? /*#__PURE__*/jsx(HStack, {
13951
- width: "100%",
13952
- space: "kitt.1",
13953
- flexShrink: 1,
13954
- flexWrap: "wrap",
13955
- style: {
13956
- rowGap: theme.getSpacing(1)
13957
- },
13958
- children: stickers.map(function (sticker, index) {
13959
- return (
13960
- /*#__PURE__*/
13961
- // eslint-disable-next-line react/no-array-index-key
13962
- jsx(View, {
13963
- children: sticker
13964
- }, index)
13965
- );
13966
- })
13967
- }) : null, /*#__PURE__*/jsx(Typography.Text, {
13968
- base: "heading-m",
13969
- children: title
13970
- })]
13971
- }) : null]
13972
- });
13973
- }
13974
- function CloseButton(props) {
13975
- return /*#__PURE__*/jsx(IconButton, _objectSpread({
13976
- icon: /*#__PURE__*/jsx(XRegularIcon, {})
13977
- }, props));
13978
- }
13979
- function BackButton(props) {
13980
- return /*#__PURE__*/jsx(IconButton, _objectSpread({
13981
- icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
13982
- }, props));
13983
- }
13984
- TopNavBar.CloseButton = CloseButton;
13985
- TopNavBar.BackButton = BackButton;
13986
-
13987
13852
  function getTypographyTypeConfig(type, theme) {
13988
13853
  var configs = theme.kitt.typography.types[getTypographyFamily(type)].configs;
13989
13854
  return configs[type];