@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
|
@@ -7000,6 +7000,8 @@ function FullscreenModalBody({
|
|
|
7000
7000
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7001
7001
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7002
7002
|
return /*#__PURE__*/jsx(View, {
|
|
7003
|
+
flexGrow: 1,
|
|
7004
|
+
flexShrink: 1,
|
|
7003
7005
|
...props,
|
|
7004
7006
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7005
7007
|
paddingTop: paddingTop,
|
|
@@ -7212,28 +7214,31 @@ function FullscreenModalHeader({
|
|
|
7212
7214
|
}
|
|
7213
7215
|
|
|
7214
7216
|
function FullscreenModal({
|
|
7217
|
+
children,
|
|
7215
7218
|
body,
|
|
7216
7219
|
header,
|
|
7217
7220
|
footer,
|
|
7218
7221
|
backgroundColor
|
|
7219
7222
|
}) {
|
|
7220
|
-
return /*#__PURE__*/
|
|
7223
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7221
7224
|
backgroundColor: backgroundColor,
|
|
7222
|
-
children:
|
|
7223
|
-
children: header
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7225
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
7226
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7227
|
+
children: header
|
|
7228
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7229
|
+
flexGrow: 1,
|
|
7230
|
+
flexShrink: 1,
|
|
7231
|
+
justifyContent: "space-between",
|
|
7232
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7233
|
+
bounces: false,
|
|
7234
|
+
contentContainerStyle: {
|
|
7235
|
+
flexGrow: 1,
|
|
7236
|
+
position: 'relative'
|
|
7237
|
+
},
|
|
7238
|
+
children: body
|
|
7239
|
+
}), footer || null]
|
|
7240
|
+
})]
|
|
7241
|
+
})
|
|
7237
7242
|
});
|
|
7238
7243
|
}
|
|
7239
7244
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -7623,6 +7628,8 @@ function IconButton({
|
|
|
7623
7628
|
testID,
|
|
7624
7629
|
ariaLabel,
|
|
7625
7630
|
accessibilityRole = 'button',
|
|
7631
|
+
withBadge,
|
|
7632
|
+
bagdeCount,
|
|
7626
7633
|
isHoveredInternal,
|
|
7627
7634
|
isPressedInternal,
|
|
7628
7635
|
isFocusedInternal,
|
|
@@ -7661,26 +7668,55 @@ function IconButton({
|
|
|
7661
7668
|
}) => {
|
|
7662
7669
|
const isCurrentHovered = isHovered || isHoveredInternal;
|
|
7663
7670
|
const isCurrentPressed = isPressed || isPressedInternal;
|
|
7664
|
-
return /*#__PURE__*/jsxs(
|
|
7665
|
-
|
|
7666
|
-
isHovered: isCurrentHovered,
|
|
7667
|
-
isPressed: isCurrentPressed,
|
|
7668
|
-
scaleStyles: scaleStyles,
|
|
7669
|
-
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
7670
|
-
color: color,
|
|
7671
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
7672
|
+
children: [/*#__PURE__*/jsxs(AnimatedScale, {
|
|
7671
7673
|
isDisabled: disabled,
|
|
7672
7674
|
isHovered: isCurrentHovered,
|
|
7673
7675
|
isPressed: isCurrentPressed,
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7676
|
+
scaleStyles: scaleStyles,
|
|
7677
|
+
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
7678
|
+
color: color,
|
|
7679
|
+
isDisabled: disabled,
|
|
7680
|
+
isHovered: isCurrentHovered,
|
|
7681
|
+
isPressed: isCurrentPressed,
|
|
7682
|
+
isFocused: isFocused || isFocusedInternal,
|
|
7683
|
+
opacityStyles: opacityStyles
|
|
7684
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7685
|
+
alignItems: "center",
|
|
7686
|
+
justifyContent: "center",
|
|
7687
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7688
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
7689
|
+
icon: icon
|
|
7690
|
+
})
|
|
7691
|
+
})]
|
|
7692
|
+
}), withBadge ? /*#__PURE__*/jsx(View, {
|
|
7693
|
+
height: "10px",
|
|
7694
|
+
width: "10px",
|
|
7695
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
7696
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
7697
|
+
position: "absolute",
|
|
7698
|
+
top: "1px",
|
|
7699
|
+
right: "1px"
|
|
7700
|
+
}) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
|
|
7701
|
+
height: "20px",
|
|
7702
|
+
width: "20px",
|
|
7703
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
7704
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
7705
|
+
position: "absolute",
|
|
7706
|
+
top: "-6px",
|
|
7707
|
+
right: "-6px",
|
|
7708
|
+
children: /*#__PURE__*/jsx(View, {
|
|
7709
|
+
alignItems: "center",
|
|
7710
|
+
justifyContent: "center",
|
|
7711
|
+
marginTop: "2px",
|
|
7712
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7713
|
+
base: "body-xs",
|
|
7714
|
+
variant: "bold",
|
|
7715
|
+
color: "white",
|
|
7716
|
+
children: bagdeCount > 5 ? '+5' : bagdeCount
|
|
7717
|
+
})
|
|
7682
7718
|
})
|
|
7683
|
-
})]
|
|
7719
|
+
}) : null]
|
|
7684
7720
|
});
|
|
7685
7721
|
}
|
|
7686
7722
|
});
|
|
@@ -10767,13 +10803,17 @@ function NavigationModal({
|
|
|
10767
10803
|
body,
|
|
10768
10804
|
backgroundColor,
|
|
10769
10805
|
footer,
|
|
10770
|
-
header
|
|
10806
|
+
header,
|
|
10807
|
+
children
|
|
10771
10808
|
}) {
|
|
10772
10809
|
const Component = useBreakpointValue({
|
|
10773
10810
|
base: FullscreenModal,
|
|
10774
10811
|
small: CardModal
|
|
10775
10812
|
});
|
|
10776
|
-
return /*#__PURE__*/jsx(Component, {
|
|
10813
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
10814
|
+
backgroundColor: backgroundColor,
|
|
10815
|
+
children: children
|
|
10816
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
10777
10817
|
body: body,
|
|
10778
10818
|
backgroundColor: backgroundColor,
|
|
10779
10819
|
footer: footer,
|