@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
|
@@ -4895,6 +4895,7 @@ function AutocompleteItemsListContainer({
|
|
|
4895
4895
|
|
|
4896
4896
|
function AutocompleteOption({
|
|
4897
4897
|
children,
|
|
4898
|
+
testID = 'kitt.Autocomplete.option',
|
|
4898
4899
|
...props
|
|
4899
4900
|
}) {
|
|
4900
4901
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -4903,6 +4904,7 @@ function AutocompleteOption({
|
|
|
4903
4904
|
small: 'kitt.4'
|
|
4904
4905
|
},
|
|
4905
4906
|
paddingY: "kitt.forms.autocomplete.option.verticalPadding",
|
|
4907
|
+
testID: testID,
|
|
4906
4908
|
...props,
|
|
4907
4909
|
children: children
|
|
4908
4910
|
});
|
|
@@ -6051,6 +6053,7 @@ function InputAddressOption({
|
|
|
6051
6053
|
};
|
|
6052
6054
|
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
6053
6055
|
item: item,
|
|
6056
|
+
testID: "kitt.InputAddressOption.item",
|
|
6054
6057
|
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
6055
6058
|
space: "kitt.2",
|
|
6056
6059
|
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -7004,8 +7007,6 @@ function FullscreenModalBody({
|
|
|
7004
7007
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7005
7008
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7006
7009
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7007
|
-
flexGrow: 1,
|
|
7008
|
-
flexShrink: 1,
|
|
7009
7010
|
...props,
|
|
7010
7011
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7011
7012
|
paddingTop: paddingTop,
|
|
@@ -7218,31 +7219,28 @@ function FullscreenModalHeader({
|
|
|
7218
7219
|
}
|
|
7219
7220
|
|
|
7220
7221
|
function FullscreenModal({
|
|
7221
|
-
children,
|
|
7222
7222
|
body,
|
|
7223
7223
|
header,
|
|
7224
7224
|
footer,
|
|
7225
7225
|
backgroundColor
|
|
7226
7226
|
}) {
|
|
7227
|
-
return /*#__PURE__*/jsxRuntime.
|
|
7227
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
|
|
7228
7228
|
backgroundColor: backgroundColor,
|
|
7229
|
-
children:
|
|
7230
|
-
children:
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
})]
|
|
7245
|
-
})
|
|
7229
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7230
|
+
children: header
|
|
7231
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
7232
|
+
flexGrow: 1,
|
|
7233
|
+
flexShrink: 1,
|
|
7234
|
+
justifyContent: "space-between",
|
|
7235
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
7236
|
+
bounces: false,
|
|
7237
|
+
contentContainerStyle: {
|
|
7238
|
+
flexGrow: 1,
|
|
7239
|
+
position: 'relative'
|
|
7240
|
+
},
|
|
7241
|
+
children: body
|
|
7242
|
+
}), footer || null]
|
|
7243
|
+
})]
|
|
7246
7244
|
});
|
|
7247
7245
|
}
|
|
7248
7246
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -7632,6 +7630,8 @@ function IconButton({
|
|
|
7632
7630
|
testID,
|
|
7633
7631
|
ariaLabel,
|
|
7634
7632
|
accessibilityRole = 'button',
|
|
7633
|
+
withBadge,
|
|
7634
|
+
bagdeCount,
|
|
7635
7635
|
isHoveredInternal,
|
|
7636
7636
|
isPressedInternal,
|
|
7637
7637
|
isFocusedInternal,
|
|
@@ -7670,26 +7670,55 @@ function IconButton({
|
|
|
7670
7670
|
}) => {
|
|
7671
7671
|
const isCurrentHovered = isHovered || isHoveredInternal;
|
|
7672
7672
|
const isCurrentPressed = isPressed || isPressedInternal;
|
|
7673
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
7674
|
-
|
|
7675
|
-
isHovered: isCurrentHovered,
|
|
7676
|
-
isPressed: isCurrentPressed,
|
|
7677
|
-
scaleStyles: scaleStyles,
|
|
7678
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
|
|
7679
|
-
color: color,
|
|
7673
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7674
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedScale, {
|
|
7680
7675
|
isDisabled: disabled,
|
|
7681
7676
|
isHovered: isCurrentHovered,
|
|
7682
7677
|
isPressed: isCurrentPressed,
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7678
|
+
scaleStyles: scaleStyles,
|
|
7679
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
|
|
7680
|
+
color: color,
|
|
7681
|
+
isDisabled: disabled,
|
|
7682
|
+
isHovered: isCurrentHovered,
|
|
7683
|
+
isPressed: isCurrentPressed,
|
|
7684
|
+
isFocused: isFocused || isFocusedInternal,
|
|
7685
|
+
opacityStyles: opacityStyles
|
|
7686
|
+
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7687
|
+
alignItems: "center",
|
|
7688
|
+
justifyContent: "center",
|
|
7689
|
+
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
7690
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
7691
|
+
icon: icon
|
|
7692
|
+
})
|
|
7693
|
+
})]
|
|
7694
|
+
}), withBadge ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7695
|
+
height: "10px",
|
|
7696
|
+
width: "10px",
|
|
7697
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
7698
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
7699
|
+
position: "absolute",
|
|
7700
|
+
top: "1px",
|
|
7701
|
+
right: "1px"
|
|
7702
|
+
}) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7703
|
+
height: "20px",
|
|
7704
|
+
width: "20px",
|
|
7705
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
7706
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
7707
|
+
position: "absolute",
|
|
7708
|
+
top: "-6px",
|
|
7709
|
+
right: "-6px",
|
|
7710
|
+
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7711
|
+
alignItems: "center",
|
|
7712
|
+
justifyContent: "center",
|
|
7713
|
+
marginTop: "2px",
|
|
7714
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7715
|
+
base: "body-xs",
|
|
7716
|
+
variant: "bold",
|
|
7717
|
+
color: "white",
|
|
7718
|
+
children: bagdeCount > 5 ? '+5' : bagdeCount
|
|
7719
|
+
})
|
|
7691
7720
|
})
|
|
7692
|
-
})]
|
|
7721
|
+
}) : null]
|
|
7693
7722
|
});
|
|
7694
7723
|
}
|
|
7695
7724
|
});
|
|
@@ -10776,17 +10805,13 @@ function NavigationModal({
|
|
|
10776
10805
|
body,
|
|
10777
10806
|
backgroundColor,
|
|
10778
10807
|
footer,
|
|
10779
|
-
header
|
|
10780
|
-
children
|
|
10808
|
+
header
|
|
10781
10809
|
}) {
|
|
10782
10810
|
const Component = useBreakpointValue({
|
|
10783
10811
|
base: FullscreenModal,
|
|
10784
10812
|
small: CardModal
|
|
10785
10813
|
});
|
|
10786
|
-
return
|
|
10787
|
-
backgroundColor: backgroundColor,
|
|
10788
|
-
children: children
|
|
10789
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10814
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10790
10815
|
body: body,
|
|
10791
10816
|
backgroundColor: backgroundColor,
|
|
10792
10817
|
footer: footer,
|