@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,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.
|
|
8072
|
+
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
8070
8073
|
backgroundColor: backgroundColor,
|
|
8071
|
-
children:
|
|
8072
|
-
children: header
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
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(
|
|
8533
|
-
|
|
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
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
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,
|