@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
|
@@ -5137,10 +5137,11 @@ function AutocompleteItemsListContainer({
|
|
|
5137
5137
|
});
|
|
5138
5138
|
}
|
|
5139
5139
|
|
|
5140
|
-
const _excluded$A = ["children"];
|
|
5140
|
+
const _excluded$A = ["children", "testID"];
|
|
5141
5141
|
function AutocompleteOption(_ref) {
|
|
5142
5142
|
let {
|
|
5143
|
-
children
|
|
5143
|
+
children,
|
|
5144
|
+
testID = 'kitt.Autocomplete.option'
|
|
5144
5145
|
} = _ref,
|
|
5145
5146
|
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5146
5147
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
@@ -5148,7 +5149,8 @@ function AutocompleteOption(_ref) {
|
|
|
5148
5149
|
base: 'kitt.2',
|
|
5149
5150
|
small: 'kitt.4'
|
|
5150
5151
|
},
|
|
5151
|
-
paddingY: "kitt.forms.autocomplete.option.verticalPadding"
|
|
5152
|
+
paddingY: "kitt.forms.autocomplete.option.verticalPadding",
|
|
5153
|
+
testID: testID
|
|
5152
5154
|
}, props), {}, {
|
|
5153
5155
|
children: children
|
|
5154
5156
|
}));
|
|
@@ -6818,6 +6820,7 @@ function InputAddressOption({
|
|
|
6818
6820
|
};
|
|
6819
6821
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6820
6822
|
item: item,
|
|
6823
|
+
testID: "kitt.InputAddressOption.item",
|
|
6821
6824
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
6822
6825
|
space: "kitt.2",
|
|
6823
6826
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -7781,10 +7784,7 @@ function FullscreenModalBody(_ref) {
|
|
|
7781
7784
|
} = useTheme();
|
|
7782
7785
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7783
7786
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7784
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7785
|
-
flexGrow: 1,
|
|
7786
|
-
flexShrink: 1
|
|
7787
|
-
}, props), {}, {
|
|
7787
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
7788
7788
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7789
7789
|
paddingTop: paddingTop,
|
|
7790
7790
|
paddingBottom: paddingBottom,
|
|
@@ -8066,31 +8066,28 @@ function FullscreenModalHeader(_ref) {
|
|
|
8066
8066
|
}
|
|
8067
8067
|
|
|
8068
8068
|
function FullscreenModal({
|
|
8069
|
-
children,
|
|
8070
8069
|
body,
|
|
8071
8070
|
header,
|
|
8072
8071
|
footer,
|
|
8073
8072
|
backgroundColor
|
|
8074
8073
|
}) {
|
|
8075
|
-
return /*#__PURE__*/
|
|
8074
|
+
return /*#__PURE__*/jsxs(FullscreenModalContainer, {
|
|
8076
8075
|
backgroundColor: backgroundColor,
|
|
8077
|
-
children:
|
|
8078
|
-
children:
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
})]
|
|
8093
|
-
})
|
|
8076
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8077
|
+
children: header
|
|
8078
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8079
|
+
flexGrow: 1,
|
|
8080
|
+
flexShrink: 1,
|
|
8081
|
+
justifyContent: "space-between",
|
|
8082
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8083
|
+
bounces: false,
|
|
8084
|
+
contentContainerStyle: {
|
|
8085
|
+
flexGrow: 1,
|
|
8086
|
+
position: 'relative'
|
|
8087
|
+
},
|
|
8088
|
+
children: body
|
|
8089
|
+
}), footer || null]
|
|
8090
|
+
})]
|
|
8094
8091
|
});
|
|
8095
8092
|
}
|
|
8096
8093
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -8497,6 +8494,8 @@ function IconButton({
|
|
|
8497
8494
|
testID,
|
|
8498
8495
|
ariaLabel,
|
|
8499
8496
|
accessibilityRole = 'button',
|
|
8497
|
+
withBadge,
|
|
8498
|
+
bagdeCount,
|
|
8500
8499
|
isHoveredInternal,
|
|
8501
8500
|
isPressedInternal,
|
|
8502
8501
|
isFocusedInternal,
|
|
@@ -8538,26 +8537,55 @@ function IconButton({
|
|
|
8538
8537
|
}) => {
|
|
8539
8538
|
const isCurrentHovered = isHovered || isHoveredInternal;
|
|
8540
8539
|
const isCurrentPressed = isPressed || isPressedInternal;
|
|
8541
|
-
return /*#__PURE__*/jsxs(
|
|
8542
|
-
|
|
8543
|
-
isHovered: isCurrentHovered,
|
|
8544
|
-
isPressed: isCurrentPressed,
|
|
8545
|
-
scaleStyles: scaleStyles,
|
|
8546
|
-
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
8547
|
-
color: color,
|
|
8540
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
8541
|
+
children: [/*#__PURE__*/jsxs(AnimatedScale, {
|
|
8548
8542
|
isDisabled: disabled,
|
|
8549
8543
|
isHovered: isCurrentHovered,
|
|
8550
8544
|
isPressed: isCurrentPressed,
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8545
|
+
scaleStyles: scaleStyles,
|
|
8546
|
+
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
8547
|
+
color: color,
|
|
8548
|
+
isDisabled: disabled,
|
|
8549
|
+
isHovered: isCurrentHovered,
|
|
8550
|
+
isPressed: isCurrentPressed,
|
|
8551
|
+
isFocused: isFocused || isFocusedInternal,
|
|
8552
|
+
opacityStyles: opacityStyles
|
|
8553
|
+
}), /*#__PURE__*/jsx(View, {
|
|
8554
|
+
alignItems: "center",
|
|
8555
|
+
justifyContent: "center",
|
|
8556
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
8557
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
8558
|
+
icon: icon
|
|
8559
|
+
})
|
|
8560
|
+
})]
|
|
8561
|
+
}), withBadge ? /*#__PURE__*/jsx(View, {
|
|
8562
|
+
height: "10px",
|
|
8563
|
+
width: "10px",
|
|
8564
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8565
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8566
|
+
position: "absolute",
|
|
8567
|
+
top: "1px",
|
|
8568
|
+
right: "1px"
|
|
8569
|
+
}) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
|
|
8570
|
+
height: "20px",
|
|
8571
|
+
width: "20px",
|
|
8572
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8573
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8574
|
+
position: "absolute",
|
|
8575
|
+
top: "-6px",
|
|
8576
|
+
right: "-6px",
|
|
8577
|
+
children: /*#__PURE__*/jsx(View, {
|
|
8578
|
+
alignItems: "center",
|
|
8579
|
+
justifyContent: "center",
|
|
8580
|
+
marginTop: "2px",
|
|
8581
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8582
|
+
base: "body-xs",
|
|
8583
|
+
variant: "bold",
|
|
8584
|
+
color: "white",
|
|
8585
|
+
children: bagdeCount > 5 ? '+5' : bagdeCount
|
|
8586
|
+
})
|
|
8559
8587
|
})
|
|
8560
|
-
})]
|
|
8588
|
+
}) : null]
|
|
8561
8589
|
});
|
|
8562
8590
|
}
|
|
8563
8591
|
});
|
|
@@ -11511,17 +11539,13 @@ function NavigationModal({
|
|
|
11511
11539
|
body,
|
|
11512
11540
|
backgroundColor,
|
|
11513
11541
|
footer,
|
|
11514
|
-
header
|
|
11515
|
-
children
|
|
11542
|
+
header
|
|
11516
11543
|
}) {
|
|
11517
11544
|
const Component = useBreakpointValue({
|
|
11518
11545
|
base: FullscreenModal,
|
|
11519
11546
|
small: CardModal
|
|
11520
11547
|
});
|
|
11521
|
-
return
|
|
11522
|
-
backgroundColor: backgroundColor,
|
|
11523
|
-
children: children
|
|
11524
|
-
}) : /*#__PURE__*/jsx(Component, {
|
|
11548
|
+
return /*#__PURE__*/jsx(Component, {
|
|
11525
11549
|
body: body,
|
|
11526
11550
|
backgroundColor: backgroundColor,
|
|
11527
11551
|
footer: footer,
|