@ornikar/kitt-universal 25.51.1-canary.f795a58d6b1d7afa1371e143a23a37803d7590e5.0 → 25.53.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 (30) hide show
  1. package/CHANGELOG.md +9 -5
  2. package/dist/definitions/CardModal/CardModal.d.ts +0 -3
  3. package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
  4. package/dist/definitions/FullscreenModal/Body.d.ts.map +1 -1
  5. package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +3 -18
  6. package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
  7. package/dist/definitions/IconButton/IconButton.d.ts +3 -1
  8. package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
  9. package/dist/definitions/NavigationModal/NavigationModal.d.ts +3 -2
  10. package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
  11. package/dist/definitions/forms/Autocomplete/AutocompleteOption.d.ts +1 -1
  12. package/dist/definitions/forms/Autocomplete/AutocompleteOption.d.ts.map +1 -1
  13. package/dist/index-metro.es.android.js +72 -48
  14. package/dist/index-metro.es.android.js.map +1 -1
  15. package/dist/index-metro.es.ios.js +72 -48
  16. package/dist/index-metro.es.ios.js.map +1 -1
  17. package/dist/index-node-20.10.cjs.js +68 -43
  18. package/dist/index-node-20.10.cjs.js.map +1 -1
  19. package/dist/index-node-20.10.cjs.web.js +68 -43
  20. package/dist/index-node-20.10.cjs.web.js.map +1 -1
  21. package/dist/index-node-20.10.es.mjs +68 -43
  22. package/dist/index-node-20.10.es.mjs.map +1 -1
  23. package/dist/index-node-20.10.es.web.mjs +68 -43
  24. package/dist/index-node-20.10.es.web.mjs.map +1 -1
  25. package/dist/index.es.js +73 -48
  26. package/dist/index.es.js.map +1 -1
  27. package/dist/index.es.web.js +73 -48
  28. package/dist/index.es.web.js.map +1 -1
  29. package/dist/tsbuildinfo +1 -1
  30. package/package.json +2 -2
@@ -4966,16 +4966,19 @@ function AutocompleteItemsListContainer(_ref) {
4966
4966
  });
4967
4967
  }
4968
4968
 
4969
- var _excluded$y = ["children"];
4969
+ var _excluded$y = ["children", "testID"];
4970
4970
  function AutocompleteOption(_ref) {
4971
4971
  var children = _ref.children,
4972
+ _ref$testID = _ref.testID,
4973
+ testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
4972
4974
  props = _objectWithoutProperties(_ref, _excluded$y);
4973
4975
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
4974
4976
  paddingX: {
4975
4977
  base: 'kitt.2',
4976
4978
  small: 'kitt.4'
4977
4979
  },
4978
- paddingY: "kitt.forms.autocomplete.option.verticalPadding"
4980
+ paddingY: "kitt.forms.autocomplete.option.verticalPadding",
4981
+ testID: testID
4979
4982
  }, props), {}, {
4980
4983
  children: children
4981
4984
  }));
@@ -6236,6 +6239,7 @@ function InputAddressOption(_ref) {
6236
6239
  };
6237
6240
  return /*#__PURE__*/jsx(Autocomplete.Option, {
6238
6241
  item: item,
6242
+ testID: "kitt.InputAddressOption.item",
6239
6243
  children: /*#__PURE__*/jsxs(HStack, {
6240
6244
  space: "kitt.2",
6241
6245
  children: [/*#__PURE__*/jsx(View, {
@@ -7183,10 +7187,7 @@ function FullscreenModalBody(_ref) {
7183
7187
  verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
7184
7188
  var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7185
7189
  var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7186
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
7187
- flexGrow: 1,
7188
- flexShrink: 1
7189
- }, props), {}, {
7190
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
7190
7191
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7191
7192
  paddingTop: paddingTop,
7192
7193
  paddingBottom: paddingBottom,
@@ -7399,30 +7400,27 @@ function FullscreenModalHeader(_ref) {
7399
7400
  }
7400
7401
 
7401
7402
  function FullscreenModal(_ref) {
7402
- var children = _ref.children,
7403
- body = _ref.body,
7403
+ var body = _ref.body,
7404
7404
  header = _ref.header,
7405
7405
  footer = _ref.footer,
7406
7406
  backgroundColor = _ref.backgroundColor;
7407
- return /*#__PURE__*/jsx(FullscreenModalContainer, {
7407
+ return /*#__PURE__*/jsxs(FullscreenModalContainer, {
7408
7408
  backgroundColor: backgroundColor,
7409
- children: children || /*#__PURE__*/jsxs(Fragment, {
7410
- children: [header ? /*#__PURE__*/jsx(View, {
7411
- children: header
7412
- }) : null, /*#__PURE__*/jsxs(View, {
7413
- flexGrow: 1,
7414
- flexShrink: 1,
7415
- justifyContent: "space-between",
7416
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7417
- bounces: false,
7418
- contentContainerStyle: {
7419
- flexGrow: 1,
7420
- position: 'relative'
7421
- },
7422
- children: body
7423
- }), footer || null]
7424
- })]
7425
- })
7409
+ children: [header ? /*#__PURE__*/jsx(View, {
7410
+ children: header
7411
+ }) : null, /*#__PURE__*/jsxs(View, {
7412
+ flexGrow: 1,
7413
+ flexShrink: 1,
7414
+ justifyContent: "space-between",
7415
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7416
+ bounces: false,
7417
+ contentContainerStyle: {
7418
+ flexGrow: 1,
7419
+ position: 'relative'
7420
+ },
7421
+ children: body
7422
+ }), footer || null]
7423
+ })]
7426
7424
  });
7427
7425
  }
7428
7426
  FullscreenModal.Header = FullscreenModalHeader;
@@ -7814,6 +7812,8 @@ function IconButton(_ref) {
7814
7812
  ariaLabel = _ref.ariaLabel,
7815
7813
  _ref$accessibilityRol = _ref.accessibilityRole,
7816
7814
  accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
7815
+ withBadge = _ref.withBadge,
7816
+ bagdeCount = _ref.bagdeCount,
7817
7817
  isHoveredInternal = _ref.isHoveredInternal,
7818
7818
  isPressedInternal = _ref.isPressedInternal,
7819
7819
  isFocusedInternal = _ref.isFocusedInternal,
@@ -7849,26 +7849,55 @@ function IconButton(_ref) {
7849
7849
  isFocused = _ref2.isFocused;
7850
7850
  var isCurrentHovered = isHovered || isHoveredInternal;
7851
7851
  var isCurrentPressed = isPressed || isPressedInternal;
7852
- return /*#__PURE__*/jsxs(AnimatedScale, {
7853
- isDisabled: disabled,
7854
- isHovered: isCurrentHovered,
7855
- isPressed: isCurrentPressed,
7856
- scaleStyles: scaleStyles,
7857
- children: [/*#__PURE__*/jsx(AnimatedBackground, {
7858
- color: color,
7852
+ return /*#__PURE__*/jsxs(Fragment, {
7853
+ children: [/*#__PURE__*/jsxs(AnimatedScale, {
7859
7854
  isDisabled: disabled,
7860
7855
  isHovered: isCurrentHovered,
7861
7856
  isPressed: isCurrentPressed,
7862
- isFocused: isFocused || isFocusedInternal,
7863
- opacityStyles: opacityStyles
7864
- }), /*#__PURE__*/jsx(View, {
7865
- alignItems: "center",
7866
- justifyContent: "center",
7867
- children: /*#__PURE__*/jsx(TypographyIcon, {
7868
- color: getIconButtonTextColorByColor(color, disabled),
7869
- icon: icon
7857
+ scaleStyles: scaleStyles,
7858
+ children: [/*#__PURE__*/jsx(AnimatedBackground, {
7859
+ color: color,
7860
+ isDisabled: disabled,
7861
+ isHovered: isCurrentHovered,
7862
+ isPressed: isCurrentPressed,
7863
+ isFocused: isFocused || isFocusedInternal,
7864
+ opacityStyles: opacityStyles
7865
+ }), /*#__PURE__*/jsx(View, {
7866
+ alignItems: "center",
7867
+ justifyContent: "center",
7868
+ children: /*#__PURE__*/jsx(TypographyIcon, {
7869
+ color: getIconButtonTextColorByColor(color, disabled),
7870
+ icon: icon
7871
+ })
7872
+ })]
7873
+ }), withBadge ? /*#__PURE__*/jsx(View, {
7874
+ height: "10px",
7875
+ width: "10px",
7876
+ backgroundColor: lateOceanColorPalette['coral.10'],
7877
+ borderRadius: "kitt.iconButton.borderRadius",
7878
+ position: "absolute",
7879
+ top: "1px",
7880
+ right: "1px"
7881
+ }) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
7882
+ height: "20px",
7883
+ width: "20px",
7884
+ backgroundColor: lateOceanColorPalette['coral.10'],
7885
+ borderRadius: "kitt.iconButton.borderRadius",
7886
+ position: "absolute",
7887
+ top: "-6px",
7888
+ right: "-6px",
7889
+ children: /*#__PURE__*/jsx(View, {
7890
+ alignItems: "center",
7891
+ justifyContent: "center",
7892
+ marginTop: "2px",
7893
+ children: /*#__PURE__*/jsx(Typography.Text, {
7894
+ base: "body-xs",
7895
+ variant: "bold",
7896
+ color: "white",
7897
+ children: bagdeCount > 5 ? '+5' : bagdeCount
7898
+ })
7870
7899
  })
7871
- })]
7900
+ }) : null]
7872
7901
  });
7873
7902
  }
7874
7903
  });
@@ -10963,16 +10992,12 @@ function NavigationModal(_ref) {
10963
10992
  var body = _ref.body,
10964
10993
  backgroundColor = _ref.backgroundColor,
10965
10994
  footer = _ref.footer,
10966
- header = _ref.header,
10967
- children = _ref.children;
10995
+ header = _ref.header;
10968
10996
  var Component = useBreakpointValue({
10969
10997
  base: FullscreenModal,
10970
10998
  small: CardModal
10971
10999
  });
10972
- return children ? /*#__PURE__*/jsx(Component, {
10973
- backgroundColor: backgroundColor,
10974
- children: children
10975
- }) : /*#__PURE__*/jsx(Component, {
11000
+ return /*#__PURE__*/jsx(Component, {
10976
11001
  body: body,
10977
11002
  backgroundColor: backgroundColor,
10978
11003
  footer: footer,