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