@ornikar/kitt-universal 25.52.0 → 25.54.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.
@@ -7000,6 +7000,8 @@ function FullscreenModalBody({
7000
7000
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7001
7001
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7002
7002
  return /*#__PURE__*/jsx(View, {
7003
+ flexGrow: 1,
7004
+ flexShrink: 1,
7003
7005
  ...props,
7004
7006
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7005
7007
  paddingTop: paddingTop,
@@ -7212,28 +7214,31 @@ function FullscreenModalHeader({
7212
7214
  }
7213
7215
 
7214
7216
  function FullscreenModal({
7217
+ children,
7215
7218
  body,
7216
7219
  header,
7217
7220
  footer,
7218
7221
  backgroundColor
7219
7222
  }) {
7220
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
7223
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
7221
7224
  backgroundColor: backgroundColor,
7222
- children: [header ? /*#__PURE__*/jsx(View, {
7223
- children: header
7224
- }) : null, /*#__PURE__*/jsxs(View, {
7225
- flexGrow: 1,
7226
- flexShrink: 1,
7227
- justifyContent: "space-between",
7228
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7229
- bounces: false,
7230
- contentContainerStyle: {
7231
- flexGrow: 1,
7232
- position: 'relative'
7233
- },
7234
- children: body
7235
- }), footer || null]
7236
- })]
7225
+ children: children || /*#__PURE__*/jsxs(Fragment, {
7226
+ children: [header ? /*#__PURE__*/jsx(View, {
7227
+ children: header
7228
+ }) : null, /*#__PURE__*/jsxs(View, {
7229
+ flexGrow: 1,
7230
+ flexShrink: 1,
7231
+ justifyContent: "space-between",
7232
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7233
+ bounces: false,
7234
+ contentContainerStyle: {
7235
+ flexGrow: 1,
7236
+ position: 'relative'
7237
+ },
7238
+ children: body
7239
+ }), footer || null]
7240
+ })]
7241
+ })
7237
7242
  });
7238
7243
  }
7239
7244
  FullscreenModal.Header = FullscreenModalHeader;
@@ -7623,6 +7628,8 @@ function IconButton({
7623
7628
  testID,
7624
7629
  ariaLabel,
7625
7630
  accessibilityRole = 'button',
7631
+ withBadge,
7632
+ bagdeCount,
7626
7633
  isHoveredInternal,
7627
7634
  isPressedInternal,
7628
7635
  isFocusedInternal,
@@ -7661,26 +7668,55 @@ function IconButton({
7661
7668
  }) => {
7662
7669
  const isCurrentHovered = isHovered || isHoveredInternal;
7663
7670
  const isCurrentPressed = isPressed || isPressedInternal;
7664
- return /*#__PURE__*/jsxs(AnimatedScale, {
7665
- isDisabled: disabled,
7666
- isHovered: isCurrentHovered,
7667
- isPressed: isCurrentPressed,
7668
- scaleStyles: scaleStyles,
7669
- children: [/*#__PURE__*/jsx(AnimatedBackground, {
7670
- color: color,
7671
+ return /*#__PURE__*/jsxs(Fragment, {
7672
+ children: [/*#__PURE__*/jsxs(AnimatedScale, {
7671
7673
  isDisabled: disabled,
7672
7674
  isHovered: isCurrentHovered,
7673
7675
  isPressed: isCurrentPressed,
7674
- isFocused: isFocused || isFocusedInternal,
7675
- opacityStyles: opacityStyles
7676
- }), /*#__PURE__*/jsx(View, {
7677
- alignItems: "center",
7678
- justifyContent: "center",
7679
- children: /*#__PURE__*/jsx(TypographyIcon, {
7680
- color: getIconButtonTextColorByColor(color, disabled),
7681
- icon: icon
7676
+ scaleStyles: scaleStyles,
7677
+ children: [/*#__PURE__*/jsx(AnimatedBackground, {
7678
+ color: color,
7679
+ isDisabled: disabled,
7680
+ isHovered: isCurrentHovered,
7681
+ isPressed: isCurrentPressed,
7682
+ isFocused: isFocused || isFocusedInternal,
7683
+ opacityStyles: opacityStyles
7684
+ }), /*#__PURE__*/jsx(View, {
7685
+ alignItems: "center",
7686
+ justifyContent: "center",
7687
+ children: /*#__PURE__*/jsx(TypographyIcon, {
7688
+ color: getIconButtonTextColorByColor(color, disabled),
7689
+ icon: icon
7690
+ })
7691
+ })]
7692
+ }), withBadge ? /*#__PURE__*/jsx(View, {
7693
+ height: "10px",
7694
+ width: "10px",
7695
+ backgroundColor: lateOceanColorPalette['coral.10'],
7696
+ borderRadius: "kitt.iconButton.borderRadius",
7697
+ position: "absolute",
7698
+ top: "1px",
7699
+ right: "1px"
7700
+ }) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
7701
+ height: "20px",
7702
+ width: "20px",
7703
+ backgroundColor: lateOceanColorPalette['coral.10'],
7704
+ borderRadius: "kitt.iconButton.borderRadius",
7705
+ position: "absolute",
7706
+ top: "-6px",
7707
+ right: "-6px",
7708
+ children: /*#__PURE__*/jsx(View, {
7709
+ alignItems: "center",
7710
+ justifyContent: "center",
7711
+ marginTop: "2px",
7712
+ children: /*#__PURE__*/jsx(Typography.Text, {
7713
+ base: "body-xs",
7714
+ variant: "bold",
7715
+ color: "white",
7716
+ children: bagdeCount > 5 ? '+5' : bagdeCount
7717
+ })
7682
7718
  })
7683
- })]
7719
+ }) : null]
7684
7720
  });
7685
7721
  }
7686
7722
  });
@@ -10767,13 +10803,17 @@ function NavigationModal({
10767
10803
  body,
10768
10804
  backgroundColor,
10769
10805
  footer,
10770
- header
10806
+ header,
10807
+ children
10771
10808
  }) {
10772
10809
  const Component = useBreakpointValue({
10773
10810
  base: FullscreenModal,
10774
10811
  small: CardModal
10775
10812
  });
10776
- return /*#__PURE__*/jsx(Component, {
10813
+ return children ? /*#__PURE__*/jsx(Component, {
10814
+ backgroundColor: backgroundColor,
10815
+ children: children
10816
+ }) : /*#__PURE__*/jsx(Component, {
10777
10817
  body: body,
10778
10818
  backgroundColor: backgroundColor,
10779
10819
  footer: footer,