@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
@@ -4895,6 +4895,7 @@ function AutocompleteItemsListContainer({
4895
4895
 
4896
4896
  function AutocompleteOption({
4897
4897
  children,
4898
+ testID = 'kitt.Autocomplete.option',
4898
4899
  ...props
4899
4900
  }) {
4900
4901
  return /*#__PURE__*/jsxRuntime.jsx(View, {
@@ -4903,6 +4904,7 @@ function AutocompleteOption({
4903
4904
  small: 'kitt.4'
4904
4905
  },
4905
4906
  paddingY: "kitt.forms.autocomplete.option.verticalPadding",
4907
+ testID: testID,
4906
4908
  ...props,
4907
4909
  children: children
4908
4910
  });
@@ -6051,6 +6053,7 @@ function InputAddressOption({
6051
6053
  };
6052
6054
  return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
6053
6055
  item: item,
6056
+ testID: "kitt.InputAddressOption.item",
6054
6057
  children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
6055
6058
  space: "kitt.2",
6056
6059
  children: [/*#__PURE__*/jsxRuntime.jsx(View, {
@@ -7004,8 +7007,6 @@ function FullscreenModalBody({
7004
7007
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7005
7008
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7006
7009
  return /*#__PURE__*/jsxRuntime.jsx(View, {
7007
- flexGrow: 1,
7008
- flexShrink: 1,
7009
7010
  ...props,
7010
7011
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7011
7012
  paddingTop: paddingTop,
@@ -7218,31 +7219,28 @@ function FullscreenModalHeader({
7218
7219
  }
7219
7220
 
7220
7221
  function FullscreenModal({
7221
- children,
7222
7222
  body,
7223
7223
  header,
7224
7224
  footer,
7225
7225
  backgroundColor
7226
7226
  }) {
7227
- return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
7227
+ return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
7228
7228
  backgroundColor: backgroundColor,
7229
- children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7230
- children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7231
- children: header
7232
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7233
- flexGrow: 1,
7234
- flexShrink: 1,
7235
- justifyContent: "space-between",
7236
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7237
- bounces: false,
7238
- contentContainerStyle: {
7239
- flexGrow: 1,
7240
- position: 'relative'
7241
- },
7242
- children: body
7243
- }), footer || null]
7244
- })]
7245
- })
7229
+ children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7230
+ children: header
7231
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7232
+ flexGrow: 1,
7233
+ flexShrink: 1,
7234
+ justifyContent: "space-between",
7235
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7236
+ bounces: false,
7237
+ contentContainerStyle: {
7238
+ flexGrow: 1,
7239
+ position: 'relative'
7240
+ },
7241
+ children: body
7242
+ }), footer || null]
7243
+ })]
7246
7244
  });
7247
7245
  }
7248
7246
  FullscreenModal.Header = FullscreenModalHeader;
@@ -7632,6 +7630,8 @@ function IconButton({
7632
7630
  testID,
7633
7631
  ariaLabel,
7634
7632
  accessibilityRole = 'button',
7633
+ withBadge,
7634
+ bagdeCount,
7635
7635
  isHoveredInternal,
7636
7636
  isPressedInternal,
7637
7637
  isFocusedInternal,
@@ -7670,26 +7670,55 @@ function IconButton({
7670
7670
  }) => {
7671
7671
  const isCurrentHovered = isHovered || isHoveredInternal;
7672
7672
  const isCurrentPressed = isPressed || isPressedInternal;
7673
- return /*#__PURE__*/jsxRuntime.jsxs(AnimatedScale, {
7674
- isDisabled: disabled,
7675
- isHovered: isCurrentHovered,
7676
- isPressed: isCurrentPressed,
7677
- scaleStyles: scaleStyles,
7678
- children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
7679
- color: color,
7673
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7674
+ children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedScale, {
7680
7675
  isDisabled: disabled,
7681
7676
  isHovered: isCurrentHovered,
7682
7677
  isPressed: isCurrentPressed,
7683
- isFocused: isFocused || isFocusedInternal,
7684
- opacityStyles: opacityStyles
7685
- }), /*#__PURE__*/jsxRuntime.jsx(View, {
7686
- alignItems: "center",
7687
- justifyContent: "center",
7688
- children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
7689
- color: getIconButtonTextColorByColor(color, disabled),
7690
- icon: icon
7678
+ scaleStyles: scaleStyles,
7679
+ children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
7680
+ color: color,
7681
+ isDisabled: disabled,
7682
+ isHovered: isCurrentHovered,
7683
+ isPressed: isCurrentPressed,
7684
+ isFocused: isFocused || isFocusedInternal,
7685
+ opacityStyles: opacityStyles
7686
+ }), /*#__PURE__*/jsxRuntime.jsx(View, {
7687
+ alignItems: "center",
7688
+ justifyContent: "center",
7689
+ children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
7690
+ color: getIconButtonTextColorByColor(color, disabled),
7691
+ icon: icon
7692
+ })
7693
+ })]
7694
+ }), withBadge ? /*#__PURE__*/jsxRuntime.jsx(View, {
7695
+ height: "10px",
7696
+ width: "10px",
7697
+ backgroundColor: lateOceanColorPalette['coral.10'],
7698
+ borderRadius: "kitt.iconButton.borderRadius",
7699
+ position: "absolute",
7700
+ top: "1px",
7701
+ right: "1px"
7702
+ }) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsxRuntime.jsx(View, {
7703
+ height: "20px",
7704
+ width: "20px",
7705
+ backgroundColor: lateOceanColorPalette['coral.10'],
7706
+ borderRadius: "kitt.iconButton.borderRadius",
7707
+ position: "absolute",
7708
+ top: "-6px",
7709
+ right: "-6px",
7710
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
7711
+ alignItems: "center",
7712
+ justifyContent: "center",
7713
+ marginTop: "2px",
7714
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
7715
+ base: "body-xs",
7716
+ variant: "bold",
7717
+ color: "white",
7718
+ children: bagdeCount > 5 ? '+5' : bagdeCount
7719
+ })
7691
7720
  })
7692
- })]
7721
+ }) : null]
7693
7722
  });
7694
7723
  }
7695
7724
  });
@@ -10776,17 +10805,13 @@ function NavigationModal({
10776
10805
  body,
10777
10806
  backgroundColor,
10778
10807
  footer,
10779
- header,
10780
- children
10808
+ header
10781
10809
  }) {
10782
10810
  const Component = useBreakpointValue({
10783
10811
  base: FullscreenModal,
10784
10812
  small: CardModal
10785
10813
  });
10786
- return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
10787
- backgroundColor: backgroundColor,
10788
- children: children
10789
- }) : /*#__PURE__*/jsxRuntime.jsx(Component, {
10814
+ return /*#__PURE__*/jsxRuntime.jsx(Component, {
10790
10815
  body: body,
10791
10816
  backgroundColor: backgroundColor,
10792
10817
  footer: footer,