@ornikar/kitt-universal 27.9.0 → 27.9.1-canary.51004cd27185355acc481c9933556ade7509bc80.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 (54) hide show
  1. package/CHANGELOG.md +14 -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 +6 -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 +4 -8
  17. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  18. package/dist/definitions/themes/default.d.ts +1 -1
  19. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +1 -1
  20. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  21. package/dist/index-metro.es.android.js +154 -276
  22. package/dist/index-metro.es.android.js.map +1 -1
  23. package/dist/index-metro.es.ios.js +154 -276
  24. package/dist/index-metro.es.ios.js.map +1 -1
  25. package/dist/index-node-22.17.cjs.js +152 -266
  26. package/dist/index-node-22.17.cjs.js.map +1 -1
  27. package/dist/index-node-22.17.cjs.web.js +143 -252
  28. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  29. package/dist/index-node-22.17.es.mjs +153 -267
  30. package/dist/index-node-22.17.es.mjs.map +1 -1
  31. package/dist/index-node-22.17.es.web.mjs +144 -253
  32. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  33. package/dist/index.es.js +160 -282
  34. package/dist/index.es.js.map +1 -1
  35. package/dist/index.es.web.js +220 -336
  36. package/dist/index.es.web.js.map +1 -1
  37. package/dist/linaria-themes-metro.es.android.js +3 -3
  38. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  39. package/dist/linaria-themes-metro.es.ios.js +3 -3
  40. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  41. package/dist/linaria-themes-node-22.17.cjs.js +3 -3
  42. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  43. package/dist/linaria-themes-node-22.17.cjs.web.js +3 -3
  44. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  45. package/dist/linaria-themes-node-22.17.es.mjs +3 -3
  46. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  47. package/dist/linaria-themes-node-22.17.es.web.mjs +3 -3
  48. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  49. package/dist/linaria-themes.es.js +3 -3
  50. package/dist/linaria-themes.es.js.map +1 -1
  51. package/dist/linaria-themes.es.web.js +3 -3
  52. package/dist/linaria-themes.es.web.js.map +1 -1
  53. package/dist/tsbuildinfo +1 -1
  54. package/package.json +1 -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: {
@@ -2647,8 +2647,8 @@ var theme = {
2647
2647
  forms: forms,
2648
2648
  highlight: highlight,
2649
2649
  icon: icon,
2650
- buttonBadge: buttonBadge,
2651
2650
  iconButton: iconButton,
2651
+ buttonBadge: buttonBadge,
2652
2652
  listItem: listItem,
2653
2653
  pageLoader: pageLoader,
2654
2654
  picker: picker,
@@ -4379,25 +4379,16 @@ function CardModalBehaviour(_ref) {
4379
4379
  });
4380
4380
  }
4381
4381
 
4382
- var _excluded$J = ["children", "paddingX", "paddingY"];
4382
+ var _excluded$J = ["children", "padding"];
4383
4383
  function CardModalBody(_ref) {
4384
4384
  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,
4385
+ _ref$padding = _ref.padding,
4386
+ padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
4395
4387
  props = _objectWithoutProperties(_ref, _excluded$J);
4396
4388
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4397
4389
  showsVerticalScrollIndicator: false,
4398
4390
  _contentContainerStyle: {
4399
- paddingX: paddingX,
4400
- paddingY: paddingY
4391
+ padding: padding
4401
4392
  }
4402
4393
  }, props), {}, {
4403
4394
  children: children
@@ -4428,55 +4419,145 @@ function CardModalFooter(_ref) {
4428
4419
  }));
4429
4420
  }
4430
4421
 
4431
- var _excluded$H = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
4432
- function CardModalHeader(_ref) {
4433
- var children = _ref.children,
4422
+ var getButtonTypeAndVariant = function (iconColor) {
4423
+ switch (iconColor) {
4424
+ case 'black':
4425
+ return {
4426
+ type: 'tertiary'
4427
+ };
4428
+ case 'secondary':
4429
+ return {
4430
+ type: 'secondary'
4431
+ };
4432
+ case 'primary':
4433
+ return {
4434
+ type: 'primary'
4435
+ };
4436
+ case 'primary-plain':
4437
+ return {
4438
+ type: 'primary'
4439
+ };
4440
+ case 'ghost':
4441
+ return {
4442
+ type: 'tertiary',
4443
+ variant: 'revert'
4444
+ };
4445
+ default:
4446
+ return {
4447
+ type: 'secondary'
4448
+ };
4449
+ }
4450
+ };
4451
+
4452
+ var _excluded$H = ["color", "ariaLabel"];
4453
+ /**
4454
+ * @deprecated IconButton should only be used as a navigation button
4455
+ * Other use cases should use a <Button> component with an icon
4456
+ */
4457
+ function IconButton(_ref) {
4458
+ var _ref$color = _ref.color,
4459
+ color = _ref$color === void 0 ? 'black' : _ref$color;
4460
+ _ref.ariaLabel;
4461
+ var props = _objectWithoutProperties(_ref, _excluded$H);
4462
+ var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
4463
+ legacyColorToType = _getButtonTypeAndVari.type,
4464
+ legacyColorToVariant = _getButtonTypeAndVari.variant;
4465
+ return /*#__PURE__*/jsx(Button, _objectSpread({
4466
+ variant: legacyColorToVariant,
4467
+ type: legacyColorToType
4468
+ }, props));
4469
+ }
4470
+ function CloseIconButton(props) {
4471
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
4472
+ icon: /*#__PURE__*/jsx(XRegularIcon, {})
4473
+ }, props));
4474
+ }
4475
+
4476
+ function TopNavBar(_ref) {
4477
+ var left = _ref.left,
4478
+ right = _ref.right,
4434
4479
  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,
4480
+ _ref$titleAlign = _ref.titleAlign,
4481
+ titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
4482
+ stickers = _ref.stickers,
4483
+ _ref$mode = _ref.mode,
4484
+ mode = _ref$mode === void 0 ? 'default' : _ref$mode,
4440
4485
  _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",
4486
+ hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator;
4487
+ var isLargeTitleMode = mode === 'largeTitle';
4488
+ var leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
4489
+ width: "kitt.iconButton.width"
4490
+ });
4491
+ return /*#__PURE__*/jsxs(VStack, {
4492
+ space: isLargeTitleMode ? 'kitt.2' : undefined,
4454
4493
  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, {
4494
+ height: mode === 'default' ? 56 : undefined,
4495
+ justifyContent: "center",
4496
+ paddingX: "kitt.2",
4497
+ paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
4498
+ paddingBottom: "kitt.3",
4499
+ borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
4500
+ borderColor: "kitt.separator",
4501
+ children: [/*#__PURE__*/jsxs(HStack, {
4459
4502
  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, {
4503
+ justifyContent: !title && !left ? 'flex-end' : 'space-between',
4504
+ children: [left !== null && left !== void 0 ? left : leftEmptySpace, mode === 'default' ? /*#__PURE__*/jsx(View, {
4466
4505
  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',
4506
+ flexShrink: 1,
4507
+ paddingRight: "kitt.2",
4508
+ paddingLeft: "kitt.2",
4509
+ children: title ? /*#__PURE__*/jsx(Typography.Text, {
4510
+ textAlign: titleAlign,
4471
4511
  variant: "bold",
4512
+ ellipsizeMode: "tail",
4513
+ numberOfLines: 1,
4472
4514
  children: title
4473
- }) : null, children]
4474
- }), right ? /*#__PURE__*/jsx(View, {
4475
- width: "kitt.iconButton.width",
4476
- children: right
4477
- }) : null]
4478
- })
4479
- }));
4515
+ }) : null
4516
+ }) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
4517
+ width: "kitt.iconButton.width"
4518
+ })]
4519
+ }), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
4520
+ space: "kitt.4",
4521
+ paddingX: "kitt.2",
4522
+ children: [stickers ? /*#__PURE__*/jsx(HStack, {
4523
+ width: "100%",
4524
+ space: "kitt.1",
4525
+ flexShrink: 1,
4526
+ flexWrap: "wrap",
4527
+ style: {
4528
+ rowGap: theme.getSpacing(1)
4529
+ },
4530
+ children: stickers.map(function (sticker, index) {
4531
+ return (
4532
+ /*#__PURE__*/
4533
+ // eslint-disable-next-line react/no-array-index-key
4534
+ jsx(View, {
4535
+ children: sticker
4536
+ }, index)
4537
+ );
4538
+ })
4539
+ }) : null, /*#__PURE__*/jsx(Typography.Text, {
4540
+ base: "heading-m",
4541
+ children: title
4542
+ })]
4543
+ }) : null]
4544
+ });
4545
+ }
4546
+ function CloseButton(props) {
4547
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
4548
+ icon: /*#__PURE__*/jsx(XRegularIcon, {})
4549
+ }, props));
4550
+ }
4551
+ function BackButton(props) {
4552
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
4553
+ icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
4554
+ }, props));
4555
+ }
4556
+ TopNavBar.CloseButton = CloseButton;
4557
+ TopNavBar.BackButton = BackButton;
4558
+
4559
+ function CardModalHeader(props) {
4560
+ return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
4480
4561
  }
4481
4562
 
4482
4563
  var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
@@ -6371,11 +6452,7 @@ var _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClos
6371
6452
  function ModalTitle(_ref) {
6372
6453
  var children = _ref.children;
6373
6454
  return /*#__PURE__*/jsx(CardModal.Header, {
6374
- children: /*#__PURE__*/jsx(Typography.Text, {
6375
- base: "body-m",
6376
- variant: "bold",
6377
- children: children
6378
- })
6455
+ title: children
6379
6456
  });
6380
6457
  }
6381
6458
  function ModalPlatformDateTimePicker(_ref2) {
@@ -8455,64 +8532,17 @@ function FullscreenModalContainer(_ref) {
8455
8532
  });
8456
8533
  }
8457
8534
 
8458
- var _excluded$c = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
8535
+ var _excluded$c = ["shouldHandleTopNotch"];
8459
8536
  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,
8537
+ var _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
8468
8538
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
8469
8539
  props = _objectWithoutProperties(_ref, _excluded$c);
8470
8540
  var _useSafeAreaInsets = useSafeAreaInsets(),
8471
8541
  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",
8542
+ return /*#__PURE__*/jsx(View, {
8480
8543
  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
- }));
8544
+ children: /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props))
8545
+ });
8516
8546
  }
8517
8547
 
8518
8548
  function FullscreenModal(_ref) {
@@ -8811,60 +8841,6 @@ function Highlight(_ref) {
8811
8841
  });
8812
8842
  }
8813
8843
 
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
8844
  function InfoCard(_ref) {
8869
8845
  var title = _ref.title,
8870
8846
  action = _ref.action,
@@ -9086,7 +9062,7 @@ var getBackgroundColor = function (_ref) {
9086
9062
  return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint["default"];
9087
9063
  };
9088
9064
 
9089
- var _excluded$a = ["onPress", "testID"];
9065
+ var _excluded$b = ["onPress", "testID"];
9090
9066
  function StaticMapMarker$1(_ref) {
9091
9067
  var variant = _ref.variant,
9092
9068
  isHovered = _ref.isHovered,
@@ -9145,7 +9121,7 @@ function StaticMapMarker$1(_ref) {
9145
9121
  function MapMarker(_ref2) {
9146
9122
  var onPress = _ref2.onPress,
9147
9123
  testID = _ref2.testID,
9148
- props = _objectWithoutProperties(_ref2, _excluded$a);
9124
+ props = _objectWithoutProperties(_ref2, _excluded$b);
9149
9125
  return /*#__PURE__*/jsx(Pressable$1, {
9150
9126
  testID: testID,
9151
9127
  onPress: onPress,
@@ -10592,9 +10568,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10592
10568
  },
10593
10569
  icon: theme.icon,
10594
10570
  cardModal: {
10595
- header: {
10596
- height: theme.cardModal.header.height
10597
- },
10598
10571
  maxWidth: theme.cardModal.maxWidth,
10599
10572
  maxWidthWithPadding: theme.cardModal.maxWidthWithPadding,
10600
10573
  minHeight: theme.cardModal.minHeight
@@ -10899,11 +10872,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10899
10872
  width: theme.iconButton.width,
10900
10873
  height: theme.iconButton.height
10901
10874
  },
10902
- fullscreenModal: {
10903
- header: {
10904
- height: theme.fullscreenModal.header.height
10905
- }
10906
- },
10907
10875
  pageLoader: {
10908
10876
  size: theme.pageLoader.size
10909
10877
  },
@@ -10998,7 +10966,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10998
10966
  }
10999
10967
  },
11000
10968
  fullscreenModal: {
11001
- horizontalPadding: theme.fullscreenModal.sharedHorizontalPadding,
10969
+ horizontalPadding: theme.fullscreenModal.horizontalPadding,
11002
10970
  body: {
11003
10971
  verticalPadding: theme.fullscreenModal.body.verticalPadding
11004
10972
  },
@@ -11819,6 +11787,7 @@ function KittNativeBaseProvider(_ref) {
11819
11787
  });
11820
11788
  }
11821
11789
 
11790
+ var _excluded$a = ["right"];
11822
11791
  function NavigationBottomSheet(_ref) {
11823
11792
  var children = _ref.children,
11824
11793
  hasScrollView = _ref.hasScrollView,
@@ -11857,19 +11826,15 @@ function NavigationBottomSheet(_ref) {
11857
11826
  })
11858
11827
  });
11859
11828
  }
11829
+
11830
+ /**
11831
+ * Web only: display right CloseButton
11832
+ */
11833
+
11860
11834
  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
- });
11835
+ _ref2.right;
11836
+ var props = _objectWithoutProperties(_ref2, _excluded$a);
11837
+ return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
11873
11838
  }
11874
11839
  function NavigationBottomSheetBody(props) {
11875
11840
  return /*#__PURE__*/jsx(VStack, _objectSpread({
@@ -12313,14 +12278,9 @@ function Picker(_ref) {
12313
12278
  onClose: handleClose,
12314
12279
  children: /*#__PURE__*/jsxs(CardModal, {
12315
12280
  children: [/*#__PURE__*/jsx(CardModal.Header, {
12316
- right: /*#__PURE__*/jsx(IconButton, {
12317
- icon: /*#__PURE__*/jsx(XRegularIcon, {}),
12281
+ title: title,
12282
+ right: /*#__PURE__*/jsx(TopNavBar.CloseButton, {
12318
12283
  onPress: handleClose
12319
- }),
12320
- children: /*#__PURE__*/jsx(Typography.Text, {
12321
- base: "body-m",
12322
- variant: "bold",
12323
- children: title
12324
12284
  })
12325
12285
  }), Platform.OS === 'ios' && shouldDisplayNativePickerOnIOS ? /*#__PURE__*/jsx(Picker$1, {
12326
12286
  testID: testID,
@@ -13902,88 +13862,6 @@ function Tooltip(_ref) {
13902
13862
  Tooltip.Arrow = Arrow;
13903
13863
  Tooltip.Content = TooltipContent;
13904
13864
 
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
13865
  function getTypographyTypeConfig(type, theme) {
13988
13866
  var configs = theme.kitt.typography.types[getTypographyFamily(type)].configs;
13989
13867
  return configs[type];