@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
|
@@ -5154,6 +5154,7 @@ function AutocompleteItemsListContainer({
|
|
|
5154
5154
|
|
|
5155
5155
|
function AutocompleteOption({
|
|
5156
5156
|
children,
|
|
5157
|
+
testID = 'kitt.Autocomplete.option',
|
|
5157
5158
|
...props
|
|
5158
5159
|
}) {
|
|
5159
5160
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -5162,6 +5163,7 @@ function AutocompleteOption({
|
|
|
5162
5163
|
small: 'kitt.4'
|
|
5163
5164
|
},
|
|
5164
5165
|
paddingY: "kitt.forms.autocomplete.option.verticalPadding",
|
|
5166
|
+
testID: testID,
|
|
5165
5167
|
...props,
|
|
5166
5168
|
children: children
|
|
5167
5169
|
});
|
|
@@ -6826,6 +6828,7 @@ function InputAddressOption({
|
|
|
6826
6828
|
};
|
|
6827
6829
|
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
6828
6830
|
item: item,
|
|
6831
|
+
testID: "kitt.InputAddressOption.item",
|
|
6829
6832
|
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
6830
6833
|
space: "kitt.2",
|
|
6831
6834
|
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -7781,8 +7784,6 @@ function FullscreenModalBody({
|
|
|
7781
7784
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7782
7785
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7783
7786
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7784
|
-
flexGrow: 1,
|
|
7785
|
-
flexShrink: 1,
|
|
7786
7787
|
...props,
|
|
7787
7788
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7788
7789
|
paddingTop: paddingTop,
|
|
@@ -8060,31 +8061,28 @@ function FullscreenModalHeader({
|
|
|
8060
8061
|
}
|
|
8061
8062
|
|
|
8062
8063
|
function FullscreenModal({
|
|
8063
|
-
children,
|
|
8064
8064
|
body,
|
|
8065
8065
|
header,
|
|
8066
8066
|
footer,
|
|
8067
8067
|
backgroundColor
|
|
8068
8068
|
}) {
|
|
8069
|
-
return /*#__PURE__*/jsxRuntime.
|
|
8069
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
|
|
8070
8070
|
backgroundColor: backgroundColor,
|
|
8071
|
-
children:
|
|
8072
|
-
children:
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
})]
|
|
8087
|
-
})
|
|
8071
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8072
|
+
children: header
|
|
8073
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8074
|
+
flexGrow: 1,
|
|
8075
|
+
flexShrink: 1,
|
|
8076
|
+
justifyContent: "space-between",
|
|
8077
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
8078
|
+
bounces: false,
|
|
8079
|
+
contentContainerStyle: {
|
|
8080
|
+
flexGrow: 1,
|
|
8081
|
+
position: 'relative'
|
|
8082
|
+
},
|
|
8083
|
+
children: body
|
|
8084
|
+
}), footer || null]
|
|
8085
|
+
})]
|
|
8088
8086
|
});
|
|
8089
8087
|
}
|
|
8090
8088
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -8490,6 +8488,8 @@ function IconButton({
|
|
|
8490
8488
|
testID,
|
|
8491
8489
|
ariaLabel,
|
|
8492
8490
|
accessibilityRole = 'button',
|
|
8491
|
+
withBadge,
|
|
8492
|
+
bagdeCount,
|
|
8493
8493
|
isHoveredInternal,
|
|
8494
8494
|
isPressedInternal,
|
|
8495
8495
|
isFocusedInternal,
|
|
@@ -8531,26 +8531,55 @@ function IconButton({
|
|
|
8531
8531
|
}) => {
|
|
8532
8532
|
const isCurrentHovered = isHovered || isHoveredInternal;
|
|
8533
8533
|
const isCurrentPressed = isPressed || isPressedInternal;
|
|
8534
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
8535
|
-
|
|
8536
|
-
isHovered: isCurrentHovered,
|
|
8537
|
-
isPressed: isCurrentPressed,
|
|
8538
|
-
scaleStyles: scaleStyles,
|
|
8539
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
|
|
8540
|
-
color: color,
|
|
8534
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
8535
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedScale, {
|
|
8541
8536
|
isDisabled: disabled,
|
|
8542
8537
|
isHovered: isCurrentHovered,
|
|
8543
8538
|
isPressed: isCurrentPressed,
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8539
|
+
scaleStyles: scaleStyles,
|
|
8540
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
|
|
8541
|
+
color: color,
|
|
8542
|
+
isDisabled: disabled,
|
|
8543
|
+
isHovered: isCurrentHovered,
|
|
8544
|
+
isPressed: isCurrentPressed,
|
|
8545
|
+
isFocused: isFocused || isFocusedInternal,
|
|
8546
|
+
opacityStyles: opacityStyles
|
|
8547
|
+
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8548
|
+
alignItems: "center",
|
|
8549
|
+
justifyContent: "center",
|
|
8550
|
+
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
8551
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
8552
|
+
icon: icon
|
|
8553
|
+
})
|
|
8554
|
+
})]
|
|
8555
|
+
}), withBadge ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8556
|
+
height: "10px",
|
|
8557
|
+
width: "10px",
|
|
8558
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8559
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8560
|
+
position: "absolute",
|
|
8561
|
+
top: "1px",
|
|
8562
|
+
right: "1px"
|
|
8563
|
+
}) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8564
|
+
height: "20px",
|
|
8565
|
+
width: "20px",
|
|
8566
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8567
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8568
|
+
position: "absolute",
|
|
8569
|
+
top: "-6px",
|
|
8570
|
+
right: "-6px",
|
|
8571
|
+
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8572
|
+
alignItems: "center",
|
|
8573
|
+
justifyContent: "center",
|
|
8574
|
+
marginTop: "2px",
|
|
8575
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8576
|
+
base: "body-xs",
|
|
8577
|
+
variant: "bold",
|
|
8578
|
+
color: "white",
|
|
8579
|
+
children: bagdeCount > 5 ? '+5' : bagdeCount
|
|
8580
|
+
})
|
|
8552
8581
|
})
|
|
8553
|
-
})]
|
|
8582
|
+
}) : null]
|
|
8554
8583
|
});
|
|
8555
8584
|
}
|
|
8556
8585
|
});
|
|
@@ -11514,17 +11543,13 @@ function NavigationModal({
|
|
|
11514
11543
|
body,
|
|
11515
11544
|
backgroundColor,
|
|
11516
11545
|
footer,
|
|
11517
|
-
header
|
|
11518
|
-
children
|
|
11546
|
+
header
|
|
11519
11547
|
}) {
|
|
11520
11548
|
const Component = useBreakpointValue({
|
|
11521
11549
|
base: FullscreenModal,
|
|
11522
11550
|
small: CardModal
|
|
11523
11551
|
});
|
|
11524
|
-
return
|
|
11525
|
-
backgroundColor: backgroundColor,
|
|
11526
|
-
children: children
|
|
11527
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
11552
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
11528
11553
|
body: body,
|
|
11529
11554
|
backgroundColor: backgroundColor,
|
|
11530
11555
|
footer: footer,
|