@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
|
@@ -7007,6 +7007,8 @@ function FullscreenModalBody({
|
|
|
7007
7007
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7008
7008
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7009
7009
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7010
|
+
flexGrow: 1,
|
|
7011
|
+
flexShrink: 1,
|
|
7010
7012
|
...props,
|
|
7011
7013
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7012
7014
|
paddingTop: paddingTop,
|
|
@@ -7219,28 +7221,31 @@ function FullscreenModalHeader({
|
|
|
7219
7221
|
}
|
|
7220
7222
|
|
|
7221
7223
|
function FullscreenModal({
|
|
7224
|
+
children,
|
|
7222
7225
|
body,
|
|
7223
7226
|
header,
|
|
7224
7227
|
footer,
|
|
7225
7228
|
backgroundColor
|
|
7226
7229
|
}) {
|
|
7227
|
-
return /*#__PURE__*/jsxRuntime.
|
|
7230
|
+
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
7228
7231
|
backgroundColor: backgroundColor,
|
|
7229
|
-
children:
|
|
7230
|
-
children: header
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7232
|
+
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7233
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7234
|
+
children: header
|
|
7235
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
7236
|
+
flexGrow: 1,
|
|
7237
|
+
flexShrink: 1,
|
|
7238
|
+
justifyContent: "space-between",
|
|
7239
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
7240
|
+
bounces: false,
|
|
7241
|
+
contentContainerStyle: {
|
|
7242
|
+
flexGrow: 1,
|
|
7243
|
+
position: 'relative'
|
|
7244
|
+
},
|
|
7245
|
+
children: body
|
|
7246
|
+
}), footer || null]
|
|
7247
|
+
})]
|
|
7248
|
+
})
|
|
7244
7249
|
});
|
|
7245
7250
|
}
|
|
7246
7251
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -7630,6 +7635,8 @@ function IconButton({
|
|
|
7630
7635
|
testID,
|
|
7631
7636
|
ariaLabel,
|
|
7632
7637
|
accessibilityRole = 'button',
|
|
7638
|
+
withBadge,
|
|
7639
|
+
bagdeCount,
|
|
7633
7640
|
isHoveredInternal,
|
|
7634
7641
|
isPressedInternal,
|
|
7635
7642
|
isFocusedInternal,
|
|
@@ -7668,26 +7675,55 @@ function IconButton({
|
|
|
7668
7675
|
}) => {
|
|
7669
7676
|
const isCurrentHovered = isHovered || isHoveredInternal;
|
|
7670
7677
|
const isCurrentPressed = isPressed || isPressedInternal;
|
|
7671
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
7672
|
-
|
|
7673
|
-
isHovered: isCurrentHovered,
|
|
7674
|
-
isPressed: isCurrentPressed,
|
|
7675
|
-
scaleStyles: scaleStyles,
|
|
7676
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
|
|
7677
|
-
color: color,
|
|
7678
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7679
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedScale, {
|
|
7678
7680
|
isDisabled: disabled,
|
|
7679
7681
|
isHovered: isCurrentHovered,
|
|
7680
7682
|
isPressed: isCurrentPressed,
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7683
|
+
scaleStyles: scaleStyles,
|
|
7684
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
|
|
7685
|
+
color: color,
|
|
7686
|
+
isDisabled: disabled,
|
|
7687
|
+
isHovered: isCurrentHovered,
|
|
7688
|
+
isPressed: isCurrentPressed,
|
|
7689
|
+
isFocused: isFocused || isFocusedInternal,
|
|
7690
|
+
opacityStyles: opacityStyles
|
|
7691
|
+
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7692
|
+
alignItems: "center",
|
|
7693
|
+
justifyContent: "center",
|
|
7694
|
+
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
7695
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
7696
|
+
icon: icon
|
|
7697
|
+
})
|
|
7698
|
+
})]
|
|
7699
|
+
}), withBadge ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7700
|
+
height: "10px",
|
|
7701
|
+
width: "10px",
|
|
7702
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
7703
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
7704
|
+
position: "absolute",
|
|
7705
|
+
top: "1px",
|
|
7706
|
+
right: "1px"
|
|
7707
|
+
}) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7708
|
+
height: "20px",
|
|
7709
|
+
width: "20px",
|
|
7710
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
7711
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
7712
|
+
position: "absolute",
|
|
7713
|
+
top: "-6px",
|
|
7714
|
+
right: "-6px",
|
|
7715
|
+
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7716
|
+
alignItems: "center",
|
|
7717
|
+
justifyContent: "center",
|
|
7718
|
+
marginTop: "2px",
|
|
7719
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7720
|
+
base: "body-xs",
|
|
7721
|
+
variant: "bold",
|
|
7722
|
+
color: "white",
|
|
7723
|
+
children: bagdeCount > 5 ? '+5' : bagdeCount
|
|
7724
|
+
})
|
|
7689
7725
|
})
|
|
7690
|
-
})]
|
|
7726
|
+
}) : null]
|
|
7691
7727
|
});
|
|
7692
7728
|
}
|
|
7693
7729
|
});
|
|
@@ -10774,13 +10810,17 @@ function NavigationModal({
|
|
|
10774
10810
|
body,
|
|
10775
10811
|
backgroundColor,
|
|
10776
10812
|
footer,
|
|
10777
|
-
header
|
|
10813
|
+
header,
|
|
10814
|
+
children
|
|
10778
10815
|
}) {
|
|
10779
10816
|
const Component = useBreakpointValue({
|
|
10780
10817
|
base: FullscreenModal,
|
|
10781
10818
|
small: CardModal
|
|
10782
10819
|
});
|
|
10783
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10820
|
+
return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10821
|
+
backgroundColor: backgroundColor,
|
|
10822
|
+
children: children
|
|
10823
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10784
10824
|
body: body,
|
|
10785
10825
|
backgroundColor: backgroundColor,
|
|
10786
10826
|
footer: footer,
|