@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.
- package/CHANGELOG.md +18 -0
- package/dist/definitions/CardModal/CardModal.d.ts +3 -0
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/Body.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +17 -3
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +3 -1
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts +2 -3
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +76 -35
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +76 -35
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +74 -34
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +74 -34
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +74 -34
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +74 -34
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +77 -36
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +77 -36
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -7761,6 +7761,8 @@ function FullscreenModalBody({
|
|
|
7761
7761
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7762
7762
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7763
7763
|
return /*#__PURE__*/jsx(View, {
|
|
7764
|
+
flexGrow: 1,
|
|
7765
|
+
flexShrink: 1,
|
|
7764
7766
|
...props,
|
|
7765
7767
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7766
7768
|
paddingTop: paddingTop,
|
|
@@ -8038,28 +8040,31 @@ function FullscreenModalHeader({
|
|
|
8038
8040
|
}
|
|
8039
8041
|
|
|
8040
8042
|
function FullscreenModal({
|
|
8043
|
+
children,
|
|
8041
8044
|
body,
|
|
8042
8045
|
header,
|
|
8043
8046
|
footer,
|
|
8044
8047
|
backgroundColor
|
|
8045
8048
|
}) {
|
|
8046
|
-
return /*#__PURE__*/
|
|
8049
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8047
8050
|
backgroundColor: backgroundColor,
|
|
8048
|
-
children:
|
|
8049
|
-
children: header
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8051
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
8052
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8053
|
+
children: header
|
|
8054
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8055
|
+
flexGrow: 1,
|
|
8056
|
+
flexShrink: 1,
|
|
8057
|
+
justifyContent: "space-between",
|
|
8058
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8059
|
+
bounces: false,
|
|
8060
|
+
contentContainerStyle: {
|
|
8061
|
+
flexGrow: 1,
|
|
8062
|
+
position: 'relative'
|
|
8063
|
+
},
|
|
8064
|
+
children: body
|
|
8065
|
+
}), footer || null]
|
|
8066
|
+
})]
|
|
8067
|
+
})
|
|
8063
8068
|
});
|
|
8064
8069
|
}
|
|
8065
8070
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -8465,6 +8470,8 @@ function IconButton({
|
|
|
8465
8470
|
testID,
|
|
8466
8471
|
ariaLabel,
|
|
8467
8472
|
accessibilityRole = 'button',
|
|
8473
|
+
withBadge,
|
|
8474
|
+
bagdeCount,
|
|
8468
8475
|
isHoveredInternal,
|
|
8469
8476
|
isPressedInternal,
|
|
8470
8477
|
isFocusedInternal,
|
|
@@ -8506,26 +8513,55 @@ function IconButton({
|
|
|
8506
8513
|
}) => {
|
|
8507
8514
|
const isCurrentHovered = isHovered || isHoveredInternal;
|
|
8508
8515
|
const isCurrentPressed = isPressed || isPressedInternal;
|
|
8509
|
-
return /*#__PURE__*/jsxs(
|
|
8510
|
-
|
|
8511
|
-
isHovered: isCurrentHovered,
|
|
8512
|
-
isPressed: isCurrentPressed,
|
|
8513
|
-
scaleStyles: scaleStyles,
|
|
8514
|
-
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
8515
|
-
color: color,
|
|
8516
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
8517
|
+
children: [/*#__PURE__*/jsxs(AnimatedScale, {
|
|
8516
8518
|
isDisabled: disabled,
|
|
8517
8519
|
isHovered: isCurrentHovered,
|
|
8518
8520
|
isPressed: isCurrentPressed,
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8521
|
+
scaleStyles: scaleStyles,
|
|
8522
|
+
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
8523
|
+
color: color,
|
|
8524
|
+
isDisabled: disabled,
|
|
8525
|
+
isHovered: isCurrentHovered,
|
|
8526
|
+
isPressed: isCurrentPressed,
|
|
8527
|
+
isFocused: isFocused || isFocusedInternal,
|
|
8528
|
+
opacityStyles: opacityStyles
|
|
8529
|
+
}), /*#__PURE__*/jsx(View, {
|
|
8530
|
+
alignItems: "center",
|
|
8531
|
+
justifyContent: "center",
|
|
8532
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
8533
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
8534
|
+
icon: icon
|
|
8535
|
+
})
|
|
8536
|
+
})]
|
|
8537
|
+
}), withBadge ? /*#__PURE__*/jsx(View, {
|
|
8538
|
+
height: "10px",
|
|
8539
|
+
width: "10px",
|
|
8540
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8541
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8542
|
+
position: "absolute",
|
|
8543
|
+
top: "1px",
|
|
8544
|
+
right: "1px"
|
|
8545
|
+
}) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
|
|
8546
|
+
height: "20px",
|
|
8547
|
+
width: "20px",
|
|
8548
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8549
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8550
|
+
position: "absolute",
|
|
8551
|
+
top: "-6px",
|
|
8552
|
+
right: "-6px",
|
|
8553
|
+
children: /*#__PURE__*/jsx(View, {
|
|
8554
|
+
alignItems: "center",
|
|
8555
|
+
justifyContent: "center",
|
|
8556
|
+
marginTop: "2px",
|
|
8557
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8558
|
+
base: "body-xs",
|
|
8559
|
+
variant: "bold",
|
|
8560
|
+
color: "white",
|
|
8561
|
+
children: bagdeCount > 5 ? '+5' : bagdeCount
|
|
8562
|
+
})
|
|
8527
8563
|
})
|
|
8528
|
-
})]
|
|
8564
|
+
}) : null]
|
|
8529
8565
|
});
|
|
8530
8566
|
}
|
|
8531
8567
|
});
|
|
@@ -11489,13 +11525,17 @@ function NavigationModal({
|
|
|
11489
11525
|
body,
|
|
11490
11526
|
backgroundColor,
|
|
11491
11527
|
footer,
|
|
11492
|
-
header
|
|
11528
|
+
header,
|
|
11529
|
+
children
|
|
11493
11530
|
}) {
|
|
11494
11531
|
const Component = useBreakpointValue({
|
|
11495
11532
|
base: FullscreenModal,
|
|
11496
11533
|
small: CardModal
|
|
11497
11534
|
});
|
|
11498
|
-
return /*#__PURE__*/jsx(Component, {
|
|
11535
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
11536
|
+
backgroundColor: backgroundColor,
|
|
11537
|
+
children: children
|
|
11538
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
11499
11539
|
body: body,
|
|
11500
11540
|
backgroundColor: backgroundColor,
|
|
11501
11541
|
footer: footer,
|