@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
@@ -5131,6 +5131,7 @@ function AutocompleteItemsListContainer({
5131
5131
 
5132
5132
  function AutocompleteOption({
5133
5133
  children,
5134
+ testID = 'kitt.Autocomplete.option',
5134
5135
  ...props
5135
5136
  }) {
5136
5137
  return /*#__PURE__*/jsx(View, {
@@ -5139,6 +5140,7 @@ function AutocompleteOption({
5139
5140
  small: 'kitt.4'
5140
5141
  },
5141
5142
  paddingY: "kitt.forms.autocomplete.option.verticalPadding",
5143
+ testID: testID,
5142
5144
  ...props,
5143
5145
  children: children
5144
5146
  });
@@ -6803,6 +6805,7 @@ function InputAddressOption({
6803
6805
  };
6804
6806
  return /*#__PURE__*/jsx(Autocomplete.Option, {
6805
6807
  item: item,
6808
+ testID: "kitt.InputAddressOption.item",
6806
6809
  children: /*#__PURE__*/jsxs(HStack, {
6807
6810
  space: "kitt.2",
6808
6811
  children: [/*#__PURE__*/jsx(View, {
@@ -7758,8 +7761,6 @@ function FullscreenModalBody({
7758
7761
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7759
7762
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7760
7763
  return /*#__PURE__*/jsx(View, {
7761
- flexGrow: 1,
7762
- flexShrink: 1,
7763
7764
  ...props,
7764
7765
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7765
7766
  paddingTop: paddingTop,
@@ -8037,31 +8038,28 @@ function FullscreenModalHeader({
8037
8038
  }
8038
8039
 
8039
8040
  function FullscreenModal({
8040
- children,
8041
8041
  body,
8042
8042
  header,
8043
8043
  footer,
8044
8044
  backgroundColor
8045
8045
  }) {
8046
- return /*#__PURE__*/jsx(FullscreenModalContainer, {
8046
+ return /*#__PURE__*/jsxs(FullscreenModalContainer, {
8047
8047
  backgroundColor: backgroundColor,
8048
- children: children || /*#__PURE__*/jsxs(Fragment, {
8049
- children: [header ? /*#__PURE__*/jsx(View, {
8050
- children: header
8051
- }) : null, /*#__PURE__*/jsxs(View, {
8052
- flexGrow: 1,
8053
- flexShrink: 1,
8054
- justifyContent: "space-between",
8055
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8056
- bounces: false,
8057
- contentContainerStyle: {
8058
- flexGrow: 1,
8059
- position: 'relative'
8060
- },
8061
- children: body
8062
- }), footer || null]
8063
- })]
8064
- })
8048
+ children: [header ? /*#__PURE__*/jsx(View, {
8049
+ children: header
8050
+ }) : null, /*#__PURE__*/jsxs(View, {
8051
+ flexGrow: 1,
8052
+ flexShrink: 1,
8053
+ justifyContent: "space-between",
8054
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8055
+ bounces: false,
8056
+ contentContainerStyle: {
8057
+ flexGrow: 1,
8058
+ position: 'relative'
8059
+ },
8060
+ children: body
8061
+ }), footer || null]
8062
+ })]
8065
8063
  });
8066
8064
  }
8067
8065
  FullscreenModal.Header = FullscreenModalHeader;
@@ -8467,6 +8465,8 @@ function IconButton({
8467
8465
  testID,
8468
8466
  ariaLabel,
8469
8467
  accessibilityRole = 'button',
8468
+ withBadge,
8469
+ bagdeCount,
8470
8470
  isHoveredInternal,
8471
8471
  isPressedInternal,
8472
8472
  isFocusedInternal,
@@ -8508,26 +8508,55 @@ function IconButton({
8508
8508
  }) => {
8509
8509
  const isCurrentHovered = isHovered || isHoveredInternal;
8510
8510
  const isCurrentPressed = isPressed || isPressedInternal;
8511
- return /*#__PURE__*/jsxs(AnimatedScale, {
8512
- isDisabled: disabled,
8513
- isHovered: isCurrentHovered,
8514
- isPressed: isCurrentPressed,
8515
- scaleStyles: scaleStyles,
8516
- children: [/*#__PURE__*/jsx(AnimatedBackground, {
8517
- color: color,
8511
+ return /*#__PURE__*/jsxs(Fragment, {
8512
+ children: [/*#__PURE__*/jsxs(AnimatedScale, {
8518
8513
  isDisabled: disabled,
8519
8514
  isHovered: isCurrentHovered,
8520
8515
  isPressed: isCurrentPressed,
8521
- isFocused: isFocused || isFocusedInternal,
8522
- opacityStyles: opacityStyles
8523
- }), /*#__PURE__*/jsx(View, {
8524
- alignItems: "center",
8525
- justifyContent: "center",
8526
- children: /*#__PURE__*/jsx(TypographyIcon, {
8527
- color: getIconButtonTextColorByColor(color, disabled),
8528
- icon: icon
8516
+ scaleStyles: scaleStyles,
8517
+ children: [/*#__PURE__*/jsx(AnimatedBackground, {
8518
+ color: color,
8519
+ isDisabled: disabled,
8520
+ isHovered: isCurrentHovered,
8521
+ isPressed: isCurrentPressed,
8522
+ isFocused: isFocused || isFocusedInternal,
8523
+ opacityStyles: opacityStyles
8524
+ }), /*#__PURE__*/jsx(View, {
8525
+ alignItems: "center",
8526
+ justifyContent: "center",
8527
+ children: /*#__PURE__*/jsx(TypographyIcon, {
8528
+ color: getIconButtonTextColorByColor(color, disabled),
8529
+ icon: icon
8530
+ })
8531
+ })]
8532
+ }), withBadge ? /*#__PURE__*/jsx(View, {
8533
+ height: "10px",
8534
+ width: "10px",
8535
+ backgroundColor: lateOceanColorPalette['coral.10'],
8536
+ borderRadius: "kitt.iconButton.borderRadius",
8537
+ position: "absolute",
8538
+ top: "1px",
8539
+ right: "1px"
8540
+ }) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
8541
+ height: "20px",
8542
+ width: "20px",
8543
+ backgroundColor: lateOceanColorPalette['coral.10'],
8544
+ borderRadius: "kitt.iconButton.borderRadius",
8545
+ position: "absolute",
8546
+ top: "-6px",
8547
+ right: "-6px",
8548
+ children: /*#__PURE__*/jsx(View, {
8549
+ alignItems: "center",
8550
+ justifyContent: "center",
8551
+ marginTop: "2px",
8552
+ children: /*#__PURE__*/jsx(Typography.Text, {
8553
+ base: "body-xs",
8554
+ variant: "bold",
8555
+ color: "white",
8556
+ children: bagdeCount > 5 ? '+5' : bagdeCount
8557
+ })
8529
8558
  })
8530
- })]
8559
+ }) : null]
8531
8560
  });
8532
8561
  }
8533
8562
  });
@@ -11491,17 +11520,13 @@ function NavigationModal({
11491
11520
  body,
11492
11521
  backgroundColor,
11493
11522
  footer,
11494
- header,
11495
- children
11523
+ header
11496
11524
  }) {
11497
11525
  const Component = useBreakpointValue({
11498
11526
  base: FullscreenModal,
11499
11527
  small: CardModal
11500
11528
  });
11501
- return children ? /*#__PURE__*/jsx(Component, {
11502
- backgroundColor: backgroundColor,
11503
- children: children
11504
- }) : /*#__PURE__*/jsx(Component, {
11529
+ return /*#__PURE__*/jsx(Component, {
11505
11530
  body: body,
11506
11531
  backgroundColor: backgroundColor,
11507
11532
  footer: footer,