@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.
@@ -7187,7 +7187,10 @@ function FullscreenModalBody(_ref) {
7187
7187
  verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
7188
7188
  var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7189
7189
  var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7190
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
7190
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
7191
+ flexGrow: 1,
7192
+ flexShrink: 1
7193
+ }, props), {}, {
7191
7194
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7192
7195
  paddingTop: paddingTop,
7193
7196
  paddingBottom: paddingBottom,
@@ -7400,27 +7403,30 @@ function FullscreenModalHeader(_ref) {
7400
7403
  }
7401
7404
 
7402
7405
  function FullscreenModal(_ref) {
7403
- var body = _ref.body,
7406
+ var children = _ref.children,
7407
+ body = _ref.body,
7404
7408
  header = _ref.header,
7405
7409
  footer = _ref.footer,
7406
7410
  backgroundColor = _ref.backgroundColor;
7407
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
7411
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
7408
7412
  backgroundColor: backgroundColor,
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
- })]
7413
+ children: children || /*#__PURE__*/jsxs(Fragment, {
7414
+ children: [header ? /*#__PURE__*/jsx(View, {
7415
+ children: header
7416
+ }) : null, /*#__PURE__*/jsxs(View, {
7417
+ flexGrow: 1,
7418
+ flexShrink: 1,
7419
+ justifyContent: "space-between",
7420
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7421
+ bounces: false,
7422
+ contentContainerStyle: {
7423
+ flexGrow: 1,
7424
+ position: 'relative'
7425
+ },
7426
+ children: body
7427
+ }), footer || null]
7428
+ })]
7429
+ })
7424
7430
  });
7425
7431
  }
7426
7432
  FullscreenModal.Header = FullscreenModalHeader;
@@ -7812,6 +7818,8 @@ function IconButton(_ref) {
7812
7818
  ariaLabel = _ref.ariaLabel,
7813
7819
  _ref$accessibilityRol = _ref.accessibilityRole,
7814
7820
  accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
7821
+ withBadge = _ref.withBadge,
7822
+ bagdeCount = _ref.bagdeCount,
7815
7823
  isHoveredInternal = _ref.isHoveredInternal,
7816
7824
  isPressedInternal = _ref.isPressedInternal,
7817
7825
  isFocusedInternal = _ref.isFocusedInternal,
@@ -7847,26 +7855,55 @@ function IconButton(_ref) {
7847
7855
  isFocused = _ref2.isFocused;
7848
7856
  var isCurrentHovered = isHovered || isHoveredInternal;
7849
7857
  var isCurrentPressed = isPressed || isPressedInternal;
7850
- return /*#__PURE__*/jsxs(AnimatedScale, {
7851
- isDisabled: disabled,
7852
- isHovered: isCurrentHovered,
7853
- isPressed: isCurrentPressed,
7854
- scaleStyles: scaleStyles,
7855
- children: [/*#__PURE__*/jsx(AnimatedBackground, {
7856
- color: color,
7858
+ return /*#__PURE__*/jsxs(Fragment, {
7859
+ children: [/*#__PURE__*/jsxs(AnimatedScale, {
7857
7860
  isDisabled: disabled,
7858
7861
  isHovered: isCurrentHovered,
7859
7862
  isPressed: isCurrentPressed,
7860
- isFocused: isFocused || isFocusedInternal,
7861
- opacityStyles: opacityStyles
7862
- }), /*#__PURE__*/jsx(View, {
7863
- alignItems: "center",
7864
- justifyContent: "center",
7865
- children: /*#__PURE__*/jsx(TypographyIcon, {
7866
- color: getIconButtonTextColorByColor(color, disabled),
7867
- icon: icon
7863
+ scaleStyles: scaleStyles,
7864
+ children: [/*#__PURE__*/jsx(AnimatedBackground, {
7865
+ color: color,
7866
+ isDisabled: disabled,
7867
+ isHovered: isCurrentHovered,
7868
+ isPressed: isCurrentPressed,
7869
+ isFocused: isFocused || isFocusedInternal,
7870
+ opacityStyles: opacityStyles
7871
+ }), /*#__PURE__*/jsx(View, {
7872
+ alignItems: "center",
7873
+ justifyContent: "center",
7874
+ children: /*#__PURE__*/jsx(TypographyIcon, {
7875
+ color: getIconButtonTextColorByColor(color, disabled),
7876
+ icon: icon
7877
+ })
7878
+ })]
7879
+ }), withBadge ? /*#__PURE__*/jsx(View, {
7880
+ height: "10px",
7881
+ width: "10px",
7882
+ backgroundColor: lateOceanColorPalette['coral.10'],
7883
+ borderRadius: "kitt.iconButton.borderRadius",
7884
+ position: "absolute",
7885
+ top: "1px",
7886
+ right: "1px"
7887
+ }) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
7888
+ height: "20px",
7889
+ width: "20px",
7890
+ backgroundColor: lateOceanColorPalette['coral.10'],
7891
+ borderRadius: "kitt.iconButton.borderRadius",
7892
+ position: "absolute",
7893
+ top: "-6px",
7894
+ right: "-6px",
7895
+ children: /*#__PURE__*/jsx(View, {
7896
+ alignItems: "center",
7897
+ justifyContent: "center",
7898
+ marginTop: "2px",
7899
+ children: /*#__PURE__*/jsx(Typography.Text, {
7900
+ base: "body-xs",
7901
+ variant: "bold",
7902
+ color: "white",
7903
+ children: bagdeCount > 5 ? '+5' : bagdeCount
7904
+ })
7868
7905
  })
7869
- })]
7906
+ }) : null]
7870
7907
  });
7871
7908
  }
7872
7909
  });
@@ -10961,12 +10998,16 @@ function NavigationModal(_ref) {
10961
10998
  var body = _ref.body,
10962
10999
  backgroundColor = _ref.backgroundColor,
10963
11000
  footer = _ref.footer,
10964
- header = _ref.header;
11001
+ header = _ref.header,
11002
+ children = _ref.children;
10965
11003
  var Component = useBreakpointValue({
10966
11004
  base: FullscreenModal,
10967
11005
  small: CardModal
10968
11006
  });
10969
- return /*#__PURE__*/jsx(Component, {
11007
+ return children ? /*#__PURE__*/jsx(Component, {
11008
+ backgroundColor: backgroundColor,
11009
+ children: children
11010
+ }) : /*#__PURE__*/jsx(Component, {
10970
11011
  body: body,
10971
11012
  backgroundColor: backgroundColor,
10972
11013
  footer: footer,