@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
package/dist/index.es.js
CHANGED
|
@@ -5254,16 +5254,19 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5254
5254
|
});
|
|
5255
5255
|
}
|
|
5256
5256
|
|
|
5257
|
-
var _excluded$A = ["children"];
|
|
5257
|
+
var _excluded$A = ["children", "testID"];
|
|
5258
5258
|
function AutocompleteOption(_ref) {
|
|
5259
5259
|
var children = _ref.children,
|
|
5260
|
+
_ref$testID = _ref.testID,
|
|
5261
|
+
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5260
5262
|
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5261
5263
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5262
5264
|
paddingX: {
|
|
5263
5265
|
base: 'kitt.2',
|
|
5264
5266
|
small: 'kitt.4'
|
|
5265
5267
|
},
|
|
5266
|
-
paddingY: "kitt.forms.autocomplete.option.verticalPadding"
|
|
5268
|
+
paddingY: "kitt.forms.autocomplete.option.verticalPadding",
|
|
5269
|
+
testID: testID
|
|
5267
5270
|
}, props), {}, {
|
|
5268
5271
|
children: children
|
|
5269
5272
|
}));
|
|
@@ -7075,6 +7078,7 @@ function InputAddressOption(_ref) {
|
|
|
7075
7078
|
};
|
|
7076
7079
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7077
7080
|
item: item,
|
|
7081
|
+
testID: "kitt.InputAddressOption.item",
|
|
7078
7082
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
7079
7083
|
space: "kitt.2",
|
|
7080
7084
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -8023,10 +8027,7 @@ function FullscreenModalBody(_ref) {
|
|
|
8023
8027
|
verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
|
|
8024
8028
|
var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
8025
8029
|
var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
8026
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
8027
|
-
flexGrow: 1,
|
|
8028
|
-
flexShrink: 1
|
|
8029
|
-
}, props), {}, {
|
|
8030
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
8030
8031
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
8031
8032
|
paddingTop: paddingTop,
|
|
8032
8033
|
paddingBottom: paddingBottom,
|
|
@@ -8314,30 +8315,27 @@ function FullscreenModalHeader(_ref) {
|
|
|
8314
8315
|
}
|
|
8315
8316
|
|
|
8316
8317
|
function FullscreenModal(_ref) {
|
|
8317
|
-
var
|
|
8318
|
-
body = _ref.body,
|
|
8318
|
+
var body = _ref.body,
|
|
8319
8319
|
header = _ref.header,
|
|
8320
8320
|
footer = _ref.footer,
|
|
8321
8321
|
backgroundColor = _ref.backgroundColor;
|
|
8322
|
-
return /*#__PURE__*/
|
|
8322
|
+
return /*#__PURE__*/jsxs(FullscreenModalContainer, {
|
|
8323
8323
|
backgroundColor: backgroundColor,
|
|
8324
|
-
children:
|
|
8325
|
-
children:
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
})]
|
|
8340
|
-
})
|
|
8324
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8325
|
+
children: header
|
|
8326
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8327
|
+
flexGrow: 1,
|
|
8328
|
+
flexShrink: 1,
|
|
8329
|
+
justifyContent: "space-between",
|
|
8330
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8331
|
+
bounces: false,
|
|
8332
|
+
contentContainerStyle: {
|
|
8333
|
+
flexGrow: 1,
|
|
8334
|
+
position: 'relative'
|
|
8335
|
+
},
|
|
8336
|
+
children: body
|
|
8337
|
+
}), footer || null]
|
|
8338
|
+
})]
|
|
8341
8339
|
});
|
|
8342
8340
|
}
|
|
8343
8341
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -8747,6 +8745,8 @@ function IconButton(_ref) {
|
|
|
8747
8745
|
ariaLabel = _ref.ariaLabel,
|
|
8748
8746
|
_ref$accessibilityRol = _ref.accessibilityRole,
|
|
8749
8747
|
accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
|
|
8748
|
+
withBadge = _ref.withBadge,
|
|
8749
|
+
bagdeCount = _ref.bagdeCount,
|
|
8750
8750
|
isHoveredInternal = _ref.isHoveredInternal,
|
|
8751
8751
|
isPressedInternal = _ref.isPressedInternal,
|
|
8752
8752
|
isFocusedInternal = _ref.isFocusedInternal,
|
|
@@ -8785,26 +8785,55 @@ function IconButton(_ref) {
|
|
|
8785
8785
|
isFocused = _ref2.isFocused;
|
|
8786
8786
|
var isCurrentHovered = isHovered || isHoveredInternal;
|
|
8787
8787
|
var isCurrentPressed = isPressed || isPressedInternal;
|
|
8788
|
-
return /*#__PURE__*/jsxs(
|
|
8789
|
-
|
|
8790
|
-
isHovered: isCurrentHovered,
|
|
8791
|
-
isPressed: isCurrentPressed,
|
|
8792
|
-
scaleStyles: scaleStyles,
|
|
8793
|
-
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
8794
|
-
color: color,
|
|
8788
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
8789
|
+
children: [/*#__PURE__*/jsxs(AnimatedScale, {
|
|
8795
8790
|
isDisabled: disabled,
|
|
8796
8791
|
isHovered: isCurrentHovered,
|
|
8797
8792
|
isPressed: isCurrentPressed,
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8793
|
+
scaleStyles: scaleStyles,
|
|
8794
|
+
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
8795
|
+
color: color,
|
|
8796
|
+
isDisabled: disabled,
|
|
8797
|
+
isHovered: isCurrentHovered,
|
|
8798
|
+
isPressed: isCurrentPressed,
|
|
8799
|
+
isFocused: isFocused || isFocusedInternal,
|
|
8800
|
+
opacityStyles: opacityStyles
|
|
8801
|
+
}), /*#__PURE__*/jsx(View, {
|
|
8802
|
+
alignItems: "center",
|
|
8803
|
+
justifyContent: "center",
|
|
8804
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
8805
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
8806
|
+
icon: icon
|
|
8807
|
+
})
|
|
8808
|
+
})]
|
|
8809
|
+
}), withBadge ? /*#__PURE__*/jsx(View, {
|
|
8810
|
+
height: "10px",
|
|
8811
|
+
width: "10px",
|
|
8812
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8813
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8814
|
+
position: "absolute",
|
|
8815
|
+
top: "1px",
|
|
8816
|
+
right: "1px"
|
|
8817
|
+
}) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
|
|
8818
|
+
height: "20px",
|
|
8819
|
+
width: "20px",
|
|
8820
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8821
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8822
|
+
position: "absolute",
|
|
8823
|
+
top: "-6px",
|
|
8824
|
+
right: "-6px",
|
|
8825
|
+
children: /*#__PURE__*/jsx(View, {
|
|
8826
|
+
alignItems: "center",
|
|
8827
|
+
justifyContent: "center",
|
|
8828
|
+
marginTop: "2px",
|
|
8829
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8830
|
+
base: "body-xs",
|
|
8831
|
+
variant: "bold",
|
|
8832
|
+
color: "white",
|
|
8833
|
+
children: bagdeCount > 5 ? '+5' : bagdeCount
|
|
8834
|
+
})
|
|
8806
8835
|
})
|
|
8807
|
-
})]
|
|
8836
|
+
}) : null]
|
|
8808
8837
|
});
|
|
8809
8838
|
}
|
|
8810
8839
|
});
|
|
@@ -11771,16 +11800,12 @@ function NavigationModal(_ref) {
|
|
|
11771
11800
|
var body = _ref.body,
|
|
11772
11801
|
backgroundColor = _ref.backgroundColor,
|
|
11773
11802
|
footer = _ref.footer,
|
|
11774
|
-
header = _ref.header
|
|
11775
|
-
children = _ref.children;
|
|
11803
|
+
header = _ref.header;
|
|
11776
11804
|
var Component = useBreakpointValue({
|
|
11777
11805
|
base: FullscreenModal,
|
|
11778
11806
|
small: CardModal
|
|
11779
11807
|
});
|
|
11780
|
-
return
|
|
11781
|
-
backgroundColor: backgroundColor,
|
|
11782
|
-
children: children
|
|
11783
|
-
}) : /*#__PURE__*/jsx(Component, {
|
|
11808
|
+
return /*#__PURE__*/jsx(Component, {
|
|
11784
11809
|
body: body,
|
|
11785
11810
|
backgroundColor: backgroundColor,
|
|
11786
11811
|
footer: footer,
|