@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.
@@ -7784,6 +7784,8 @@ function FullscreenModalBody({
7784
7784
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7785
7785
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7786
7786
  return /*#__PURE__*/jsxRuntime.jsx(View, {
7787
+ flexGrow: 1,
7788
+ flexShrink: 1,
7787
7789
  ...props,
7788
7790
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7789
7791
  paddingTop: paddingTop,
@@ -8061,28 +8063,31 @@ function FullscreenModalHeader({
8061
8063
  }
8062
8064
 
8063
8065
  function FullscreenModal({
8066
+ children,
8064
8067
  body,
8065
8068
  header,
8066
8069
  footer,
8067
8070
  backgroundColor
8068
8071
  }) {
8069
- return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
8072
+ return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
8070
8073
  backgroundColor: backgroundColor,
8071
- children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
8072
- children: header
8073
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
8074
- flexGrow: 1,
8075
- flexShrink: 1,
8076
- justifyContent: "space-between",
8077
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
8078
- bounces: false,
8079
- contentContainerStyle: {
8080
- flexGrow: 1,
8081
- position: 'relative'
8082
- },
8083
- children: body
8084
- }), footer || null]
8085
- })]
8074
+ children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
8075
+ children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
8076
+ children: header
8077
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
8078
+ flexGrow: 1,
8079
+ flexShrink: 1,
8080
+ justifyContent: "space-between",
8081
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
8082
+ bounces: false,
8083
+ contentContainerStyle: {
8084
+ flexGrow: 1,
8085
+ position: 'relative'
8086
+ },
8087
+ children: body
8088
+ }), footer || null]
8089
+ })]
8090
+ })
8086
8091
  });
8087
8092
  }
8088
8093
  FullscreenModal.Header = FullscreenModalHeader;
@@ -8488,6 +8493,8 @@ function IconButton({
8488
8493
  testID,
8489
8494
  ariaLabel,
8490
8495
  accessibilityRole = 'button',
8496
+ withBadge,
8497
+ bagdeCount,
8491
8498
  isHoveredInternal,
8492
8499
  isPressedInternal,
8493
8500
  isFocusedInternal,
@@ -8529,26 +8536,55 @@ function IconButton({
8529
8536
  }) => {
8530
8537
  const isCurrentHovered = isHovered || isHoveredInternal;
8531
8538
  const isCurrentPressed = isPressed || isPressedInternal;
8532
- return /*#__PURE__*/jsxRuntime.jsxs(AnimatedScale, {
8533
- isDisabled: disabled,
8534
- isHovered: isCurrentHovered,
8535
- isPressed: isCurrentPressed,
8536
- scaleStyles: scaleStyles,
8537
- children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
8538
- color: color,
8539
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
8540
+ children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedScale, {
8539
8541
  isDisabled: disabled,
8540
8542
  isHovered: isCurrentHovered,
8541
8543
  isPressed: isCurrentPressed,
8542
- isFocused: isFocused || isFocusedInternal,
8543
- opacityStyles: opacityStyles
8544
- }), /*#__PURE__*/jsxRuntime.jsx(View, {
8545
- alignItems: "center",
8546
- justifyContent: "center",
8547
- children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
8548
- color: getIconButtonTextColorByColor(color, disabled),
8549
- icon: icon
8544
+ scaleStyles: scaleStyles,
8545
+ children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
8546
+ color: color,
8547
+ isDisabled: disabled,
8548
+ isHovered: isCurrentHovered,
8549
+ isPressed: isCurrentPressed,
8550
+ isFocused: isFocused || isFocusedInternal,
8551
+ opacityStyles: opacityStyles
8552
+ }), /*#__PURE__*/jsxRuntime.jsx(View, {
8553
+ alignItems: "center",
8554
+ justifyContent: "center",
8555
+ children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
8556
+ color: getIconButtonTextColorByColor(color, disabled),
8557
+ icon: icon
8558
+ })
8559
+ })]
8560
+ }), withBadge ? /*#__PURE__*/jsxRuntime.jsx(View, {
8561
+ height: "10px",
8562
+ width: "10px",
8563
+ backgroundColor: lateOceanColorPalette['coral.10'],
8564
+ borderRadius: "kitt.iconButton.borderRadius",
8565
+ position: "absolute",
8566
+ top: "1px",
8567
+ right: "1px"
8568
+ }) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsxRuntime.jsx(View, {
8569
+ height: "20px",
8570
+ width: "20px",
8571
+ backgroundColor: lateOceanColorPalette['coral.10'],
8572
+ borderRadius: "kitt.iconButton.borderRadius",
8573
+ position: "absolute",
8574
+ top: "-6px",
8575
+ right: "-6px",
8576
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
8577
+ alignItems: "center",
8578
+ justifyContent: "center",
8579
+ marginTop: "2px",
8580
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
8581
+ base: "body-xs",
8582
+ variant: "bold",
8583
+ color: "white",
8584
+ children: bagdeCount > 5 ? '+5' : bagdeCount
8585
+ })
8550
8586
  })
8551
- })]
8587
+ }) : null]
8552
8588
  });
8553
8589
  }
8554
8590
  });
@@ -11512,13 +11548,17 @@ function NavigationModal({
11512
11548
  body,
11513
11549
  backgroundColor,
11514
11550
  footer,
11515
- header
11551
+ header,
11552
+ children
11516
11553
  }) {
11517
11554
  const Component = useBreakpointValue({
11518
11555
  base: FullscreenModal,
11519
11556
  small: CardModal
11520
11557
  });
11521
- return /*#__PURE__*/jsxRuntime.jsx(Component, {
11558
+ return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
11559
+ backgroundColor: backgroundColor,
11560
+ children: children
11561
+ }) : /*#__PURE__*/jsxRuntime.jsx(Component, {
11522
11562
  body: body,
11523
11563
  backgroundColor: backgroundColor,
11524
11564
  footer: footer,