@ornikar/kitt-universal 25.51.1-canary.f795a58d6b1d7afa1371e143a23a37803d7590e5.0 → 25.53.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 +9 -5
- package/dist/definitions/CardModal/CardModal.d.ts +0 -3
- 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 +3 -18
- 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 +3 -2
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/definitions/forms/Autocomplete/AutocompleteOption.d.ts +1 -1
- package/dist/definitions/forms/Autocomplete/AutocompleteOption.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +72 -48
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +72 -48
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +68 -43
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +68 -43
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +68 -43
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +68 -43
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +73 -48
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +73 -48
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -4888,6 +4888,7 @@ function AutocompleteItemsListContainer({
|
|
|
4888
4888
|
|
|
4889
4889
|
function AutocompleteOption({
|
|
4890
4890
|
children,
|
|
4891
|
+
testID = 'kitt.Autocomplete.option',
|
|
4891
4892
|
...props
|
|
4892
4893
|
}) {
|
|
4893
4894
|
return /*#__PURE__*/jsx(View, {
|
|
@@ -4896,6 +4897,7 @@ function AutocompleteOption({
|
|
|
4896
4897
|
small: 'kitt.4'
|
|
4897
4898
|
},
|
|
4898
4899
|
paddingY: "kitt.forms.autocomplete.option.verticalPadding",
|
|
4900
|
+
testID: testID,
|
|
4899
4901
|
...props,
|
|
4900
4902
|
children: children
|
|
4901
4903
|
});
|
|
@@ -6044,6 +6046,7 @@ function InputAddressOption({
|
|
|
6044
6046
|
};
|
|
6045
6047
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6046
6048
|
item: item,
|
|
6049
|
+
testID: "kitt.InputAddressOption.item",
|
|
6047
6050
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
6048
6051
|
space: "kitt.2",
|
|
6049
6052
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -6997,8 +7000,6 @@ function FullscreenModalBody({
|
|
|
6997
7000
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
6998
7001
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
6999
7002
|
return /*#__PURE__*/jsx(View, {
|
|
7000
|
-
flexGrow: 1,
|
|
7001
|
-
flexShrink: 1,
|
|
7002
7003
|
...props,
|
|
7003
7004
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7004
7005
|
paddingTop: paddingTop,
|
|
@@ -7211,31 +7212,28 @@ function FullscreenModalHeader({
|
|
|
7211
7212
|
}
|
|
7212
7213
|
|
|
7213
7214
|
function FullscreenModal({
|
|
7214
|
-
children,
|
|
7215
7215
|
body,
|
|
7216
7216
|
header,
|
|
7217
7217
|
footer,
|
|
7218
7218
|
backgroundColor
|
|
7219
7219
|
}) {
|
|
7220
|
-
return /*#__PURE__*/
|
|
7220
|
+
return /*#__PURE__*/jsxs(FullscreenModalContainer, {
|
|
7221
7221
|
backgroundColor: backgroundColor,
|
|
7222
|
-
children:
|
|
7223
|
-
children:
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
})]
|
|
7238
|
-
})
|
|
7222
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7223
|
+
children: header
|
|
7224
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7225
|
+
flexGrow: 1,
|
|
7226
|
+
flexShrink: 1,
|
|
7227
|
+
justifyContent: "space-between",
|
|
7228
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7229
|
+
bounces: false,
|
|
7230
|
+
contentContainerStyle: {
|
|
7231
|
+
flexGrow: 1,
|
|
7232
|
+
position: 'relative'
|
|
7233
|
+
},
|
|
7234
|
+
children: body
|
|
7235
|
+
}), footer || null]
|
|
7236
|
+
})]
|
|
7239
7237
|
});
|
|
7240
7238
|
}
|
|
7241
7239
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -7625,6 +7623,8 @@ function IconButton({
|
|
|
7625
7623
|
testID,
|
|
7626
7624
|
ariaLabel,
|
|
7627
7625
|
accessibilityRole = 'button',
|
|
7626
|
+
withBadge,
|
|
7627
|
+
bagdeCount,
|
|
7628
7628
|
isHoveredInternal,
|
|
7629
7629
|
isPressedInternal,
|
|
7630
7630
|
isFocusedInternal,
|
|
@@ -7663,26 +7663,55 @@ function IconButton({
|
|
|
7663
7663
|
}) => {
|
|
7664
7664
|
const isCurrentHovered = isHovered || isHoveredInternal;
|
|
7665
7665
|
const isCurrentPressed = isPressed || isPressedInternal;
|
|
7666
|
-
return /*#__PURE__*/jsxs(
|
|
7667
|
-
|
|
7668
|
-
isHovered: isCurrentHovered,
|
|
7669
|
-
isPressed: isCurrentPressed,
|
|
7670
|
-
scaleStyles: scaleStyles,
|
|
7671
|
-
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
7672
|
-
color: color,
|
|
7666
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
7667
|
+
children: [/*#__PURE__*/jsxs(AnimatedScale, {
|
|
7673
7668
|
isDisabled: disabled,
|
|
7674
7669
|
isHovered: isCurrentHovered,
|
|
7675
7670
|
isPressed: isCurrentPressed,
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7671
|
+
scaleStyles: scaleStyles,
|
|
7672
|
+
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
7673
|
+
color: color,
|
|
7674
|
+
isDisabled: disabled,
|
|
7675
|
+
isHovered: isCurrentHovered,
|
|
7676
|
+
isPressed: isCurrentPressed,
|
|
7677
|
+
isFocused: isFocused || isFocusedInternal,
|
|
7678
|
+
opacityStyles: opacityStyles
|
|
7679
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7680
|
+
alignItems: "center",
|
|
7681
|
+
justifyContent: "center",
|
|
7682
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7683
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
7684
|
+
icon: icon
|
|
7685
|
+
})
|
|
7686
|
+
})]
|
|
7687
|
+
}), withBadge ? /*#__PURE__*/jsx(View, {
|
|
7688
|
+
height: "10px",
|
|
7689
|
+
width: "10px",
|
|
7690
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
7691
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
7692
|
+
position: "absolute",
|
|
7693
|
+
top: "1px",
|
|
7694
|
+
right: "1px"
|
|
7695
|
+
}) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
|
|
7696
|
+
height: "20px",
|
|
7697
|
+
width: "20px",
|
|
7698
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
7699
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
7700
|
+
position: "absolute",
|
|
7701
|
+
top: "-6px",
|
|
7702
|
+
right: "-6px",
|
|
7703
|
+
children: /*#__PURE__*/jsx(View, {
|
|
7704
|
+
alignItems: "center",
|
|
7705
|
+
justifyContent: "center",
|
|
7706
|
+
marginTop: "2px",
|
|
7707
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7708
|
+
base: "body-xs",
|
|
7709
|
+
variant: "bold",
|
|
7710
|
+
color: "white",
|
|
7711
|
+
children: bagdeCount > 5 ? '+5' : bagdeCount
|
|
7712
|
+
})
|
|
7684
7713
|
})
|
|
7685
|
-
})]
|
|
7714
|
+
}) : null]
|
|
7686
7715
|
});
|
|
7687
7716
|
}
|
|
7688
7717
|
});
|
|
@@ -10769,17 +10798,13 @@ function NavigationModal({
|
|
|
10769
10798
|
body,
|
|
10770
10799
|
backgroundColor,
|
|
10771
10800
|
footer,
|
|
10772
|
-
header
|
|
10773
|
-
children
|
|
10801
|
+
header
|
|
10774
10802
|
}) {
|
|
10775
10803
|
const Component = useBreakpointValue({
|
|
10776
10804
|
base: FullscreenModal,
|
|
10777
10805
|
small: CardModal
|
|
10778
10806
|
});
|
|
10779
|
-
return
|
|
10780
|
-
backgroundColor: backgroundColor,
|
|
10781
|
-
children: children
|
|
10782
|
-
}) : /*#__PURE__*/jsx(Component, {
|
|
10807
|
+
return /*#__PURE__*/jsx(Component, {
|
|
10783
10808
|
body: body,
|
|
10784
10809
|
backgroundColor: backgroundColor,
|
|
10785
10810
|
footer: footer,
|