@ornikar/kitt-universal 31.3.1 → 31.3.2-canary.1a5b65d2fbfa0e00bf6c237b7d017b61dce7e75b.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 -0
- package/dist/definitions/ActionCard/utils/getStateKey.d.ts.map +1 -1
- package/dist/definitions/ActionCard/utils/getThemeName.d.ts.map +1 -1
- package/dist/definitions/Actions/Actions.d.ts +3 -9
- package/dist/definitions/Actions/Actions.d.ts.map +1 -1
- package/dist/definitions/Actions/ActionsItem.d.ts +2 -8
- package/dist/definitions/Actions/ActionsItem.d.ts.map +1 -1
- package/dist/definitions/BaseMessage/helper.d.ts +1 -1
- package/dist/definitions/BaseMessage/helper.d.ts.map +1 -1
- package/dist/definitions/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts +1 -1
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts.map +1 -1
- package/dist/definitions/Button/hooks/useNativeAnimation.d.ts.map +1 -1
- package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModalAnimation/CardModalRotationContainer.d.ts +0 -1
- package/dist/definitions/CardModal/CardModalAnimation/CardModalRotationContainer.d.ts.map +1 -1
- package/dist/definitions/Choices/hooks/useNativeAnimation.d.ts.map +1 -1
- package/dist/definitions/ExternalAppLink/ExternalAppLink.d.ts.map +1 -1
- package/dist/definitions/ExternalLink/hooks/useOpenExternalLink.d.ts.map +1 -1
- package/dist/definitions/ExternalLink/hooks/useOpenExternalLink.web.d.ts.map +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/hooks/useGoogleMapsApi.d.ts +0 -2
- package/dist/definitions/GoogleMapsAutocompleteProvider/hooks/useGoogleMapsApi.d.ts.map +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/reducer/googleMapsAutocompleteReducer.d.ts +0 -2
- package/dist/definitions/GoogleMapsAutocompleteProvider/reducer/googleMapsAutocompleteReducer.d.ts.map +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/types.d.ts +0 -2
- package/dist/definitions/GoogleMapsAutocompleteProvider/types.d.ts.map +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/utils/formatAddressFromGoogle.d.ts +0 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/utils/formatAddressFromGoogle.d.ts.map +1 -1
- package/dist/definitions/Highlight/hooks/useNativeAnimation.d.ts.map +1 -1
- package/dist/definitions/IconButton/utils/getButtonTypeAndVariant.d.ts.map +1 -1
- package/dist/definitions/KittThemeContext.d.ts +0 -1
- package/dist/definitions/KittThemeContext.d.ts.map +1 -1
- package/dist/definitions/MapMarker/hooks/useNativeAnimation.d.ts.map +1 -1
- package/dist/definitions/MapMarker/utils/getBackgroundColor.d.ts.map +1 -1
- package/dist/definitions/ModalBehaviour/ModalBehaviour.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/definitions/Notification/Notification.d.ts +0 -1
- package/dist/definitions/Notification/Notification.d.ts.map +1 -1
- package/dist/definitions/Overlay/Overlay.d.ts +0 -1
- package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
- package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/definitions/TabBar/TabBarItem.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.web.d.ts +0 -1
- package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePickerPressable.d.ts +0 -1
- package/dist/definitions/TimePicker/TimePickerPressable.d.ts.map +1 -1
- package/dist/definitions/Toast/Toast.utils.d.ts +1 -1
- package/dist/definitions/Toast/Toast.utils.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Arrow.d.ts +0 -1
- package/dist/definitions/Tooltip/Arrow.d.ts.map +1 -1
- package/dist/definitions/TopNavBar/TopNavBar.d.ts.map +1 -1
- package/dist/definitions/forms/Checkbox/Checkbox.d.ts +0 -1
- package/dist/definitions/forms/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/DatePicker.web.d.ts +0 -1
- package/dist/definitions/forms/DatePicker/DatePicker.web.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts +0 -1
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/KeyboardDatePicker.d.ts +0 -1
- package/dist/definitions/forms/DatePicker/components/KeyboardDatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DatePickerAndroid.d.ts +0 -1
- package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DatePickerAndroid.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DefaultNativeUIDatePicker.d.ts +0 -1
- package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DefaultNativeUIDatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/NativeUIDatePicker.d.ts +0 -1
- package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/NativeUIDatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/PressableDateInputs.d.ts +0 -1
- package/dist/definitions/forms/DatePicker/components/PressableDateInputs.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts +15 -9
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts +15 -0
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts.map +1 -0
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +5 -4
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts +7 -0
- package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts.map +1 -0
- package/dist/definitions/forms/InputAddress/utils/defaultItemToString.d.ts +0 -1
- package/dist/definitions/forms/InputAddress/utils/defaultItemToString.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/utils/formatInitialValueDescription.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/utils/formatInitialValueToAutocompletePrediction.d.ts +0 -1
- package/dist/definitions/forms/InputAddress/utils/formatInitialValueToAutocompletePrediction.d.ts.map +1 -1
- package/dist/definitions/forms/InputEmail/InputEmail.d.ts +0 -1
- package/dist/definitions/forms/InputEmail/InputEmail.d.ts.map +1 -1
- package/dist/definitions/forms/InputIban/InputIban.d.ts +0 -1
- package/dist/definitions/forms/InputIban/InputIban.d.ts.map +1 -1
- package/dist/definitions/forms/InputNumber/InputNumber.d.ts +0 -1
- package/dist/definitions/forms/InputNumber/InputNumber.d.ts.map +1 -1
- package/dist/definitions/forms/InputPassword/InputPassword.d.ts +0 -1
- package/dist/definitions/forms/InputPassword/InputPassword.d.ts.map +1 -1
- package/dist/definitions/forms/InputPhone/InputPhone.d.ts +0 -1
- package/dist/definitions/forms/InputPhone/InputPhone.d.ts.map +1 -1
- package/dist/definitions/forms/Radio/Radio.d.ts +1 -1
- package/dist/definitions/forms/Radio/Radio.d.ts.map +1 -1
- package/dist/definitions/forms/RadioButtonGroup/hooks/useNativeAnimation.d.ts.map +1 -1
- package/dist/definitions/forms/TextArea/TextArea.d.ts +0 -1
- package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/definitions/forms/Toggle/utils/getStateKey.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +4 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +26 -26
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/native-base/layout.d.ts.map +1 -1
- package/dist/definitions/native-base/primitives.d.ts +2 -2
- package/dist/definitions/native-base/primitives.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryDecorator.d.ts +1 -1
- package/dist/definitions/story-components/StoryDecorator.d.ts.map +1 -1
- package/dist/definitions/story-components/StorySection.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/typography/BasicNativeBaseText.d.ts +0 -1
- package/dist/definitions/typography/BasicNativeBaseText.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +227 -225
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/utils/getTypographyFamily.d.ts.map +1 -1
- package/dist/definitions/utils/hexToRgba.d.ts.map +1 -1
- package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts +1 -1
- package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts.map +1 -1
- package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts +1 -1
- package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +186 -106
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +186 -106
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +121 -41
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +121 -41
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +121 -42
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +121 -42
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +188 -105
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +174 -91
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.web.js
CHANGED
|
@@ -2863,7 +2863,7 @@ function ActionCardDisabled(_ref) {
|
|
|
2863
2863
|
});
|
|
2864
2864
|
}
|
|
2865
2865
|
|
|
2866
|
-
var _excluded$
|
|
2866
|
+
var _excluded$R = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2867
2867
|
function ActionCard(_ref) {
|
|
2868
2868
|
var children = _ref.children,
|
|
2869
2869
|
_ref$variant = _ref.variant,
|
|
@@ -2876,7 +2876,7 @@ function ActionCard(_ref) {
|
|
|
2876
2876
|
isHovered = _ref.isHovered,
|
|
2877
2877
|
isPressed = _ref.isPressed,
|
|
2878
2878
|
isFocused = _ref.isFocused,
|
|
2879
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2879
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
2880
2880
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2881
2881
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2882
2882
|
borderRadius: borderRadius,
|
|
@@ -3208,7 +3208,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
|
|
|
3208
3208
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3209
3209
|
};
|
|
3210
3210
|
|
|
3211
|
-
var _excluded$
|
|
3211
|
+
var _excluded$Q = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3212
3212
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3213
3213
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3214
3214
|
var TypographyVariantContext = /*#__PURE__*/createContext(undefined);
|
|
@@ -3333,7 +3333,7 @@ var TypographyBase = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
3333
3333
|
} : _ref2$type,
|
|
3334
3334
|
variant = _ref2.variant,
|
|
3335
3335
|
color = _ref2.color,
|
|
3336
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
3336
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$Q);
|
|
3337
3337
|
var sx = useSx();
|
|
3338
3338
|
|
|
3339
3339
|
// ancestors
|
|
@@ -3495,12 +3495,12 @@ function Icon(_ref) {
|
|
|
3495
3495
|
});
|
|
3496
3496
|
}
|
|
3497
3497
|
|
|
3498
|
-
var _excluded$
|
|
3498
|
+
var _excluded$P = ["color", "size"],
|
|
3499
3499
|
_excluded2$6 = ["color"];
|
|
3500
3500
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3501
3501
|
var color = _ref.color,
|
|
3502
3502
|
size = _ref.size,
|
|
3503
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3503
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
3504
3504
|
var colorValue = getTypographyColorValue(color);
|
|
3505
3505
|
var sx = useSx();
|
|
3506
3506
|
var _sx = sx({
|
|
@@ -3540,7 +3540,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
|
|
|
3540
3540
|
return "".concat(baseKey, ".default");
|
|
3541
3541
|
};
|
|
3542
3542
|
|
|
3543
|
-
var _excluded$
|
|
3543
|
+
var _excluded$O = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3544
3544
|
function ButtonContentChildren(_ref) {
|
|
3545
3545
|
var type = _ref.type,
|
|
3546
3546
|
icon = _ref.icon,
|
|
@@ -3640,7 +3640,7 @@ function ButtonContent(_ref2) {
|
|
|
3640
3640
|
_ref2.isFocused;
|
|
3641
3641
|
var innerSpacing = _ref2.innerSpacing,
|
|
3642
3642
|
size = _ref2.size,
|
|
3643
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3643
|
+
props = _objectWithoutProperties(_ref2, _excluded$O);
|
|
3644
3644
|
var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3645
3645
|
return /*#__PURE__*/jsx(View, {
|
|
3646
3646
|
_web: {
|
|
@@ -3941,7 +3941,7 @@ function LoaderIcon(_ref) {
|
|
|
3941
3941
|
});
|
|
3942
3942
|
}
|
|
3943
3943
|
|
|
3944
|
-
var _excluded$
|
|
3944
|
+
var _excluded$N = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3945
3945
|
var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3946
3946
|
var as = _ref.as,
|
|
3947
3947
|
onPress = _ref.onPress,
|
|
@@ -3952,7 +3952,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3952
3952
|
base: true,
|
|
3953
3953
|
medium: false
|
|
3954
3954
|
} : _ref$stretch,
|
|
3955
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3955
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
3956
3956
|
var _useState = useState(false),
|
|
3957
3957
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3958
3958
|
isLoading = _useState2[0],
|
|
@@ -4030,7 +4030,7 @@ function ActionsButton(_ref) {
|
|
|
4030
4030
|
}, props));
|
|
4031
4031
|
}
|
|
4032
4032
|
|
|
4033
|
-
var _excluded$
|
|
4033
|
+
var _excluded$M = ["children", "layout", "reversed"];
|
|
4034
4034
|
function getCurrentLayout(layout) {
|
|
4035
4035
|
if (!layout) return {
|
|
4036
4036
|
base: 'stretch',
|
|
@@ -4062,7 +4062,7 @@ function Actions(_ref) {
|
|
|
4062
4062
|
reversed = _ref$reversed === void 0 ? {
|
|
4063
4063
|
base: false
|
|
4064
4064
|
} : _ref$reversed,
|
|
4065
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4065
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
4066
4066
|
var shouldReverse = typeof reversed === 'boolean' ? {
|
|
4067
4067
|
base: !!reversed
|
|
4068
4068
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -4115,7 +4115,7 @@ function getInitials(firstname, lastname) {
|
|
|
4115
4115
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
4116
4116
|
}
|
|
4117
4117
|
|
|
4118
|
-
var _excluded$
|
|
4118
|
+
var _excluded$L = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
4119
4119
|
function AvatarContent(_ref) {
|
|
4120
4120
|
var size = _ref.size,
|
|
4121
4121
|
src = _ref.src,
|
|
@@ -4178,7 +4178,7 @@ function Avatar(_ref2) {
|
|
|
4178
4178
|
height = _ref2.height,
|
|
4179
4179
|
dark = _ref2.dark,
|
|
4180
4180
|
disabled = _ref2.disabled,
|
|
4181
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
4181
|
+
props = _objectWithoutProperties(_ref2, _excluded$L);
|
|
4182
4182
|
var currentSize = getCurrentSize({
|
|
4183
4183
|
size: size,
|
|
4184
4184
|
sizeVariant: sizeVariant
|
|
@@ -4364,7 +4364,7 @@ var CardModalRotationContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4364
4364
|
}));
|
|
4365
4365
|
});
|
|
4366
4366
|
|
|
4367
|
-
var _excluded$
|
|
4367
|
+
var _excluded$K = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4368
4368
|
var contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
|
|
4369
4369
|
var contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
|
|
4370
4370
|
var contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
|
|
@@ -4403,7 +4403,7 @@ function CardModalAnimation(_ref) {
|
|
|
4403
4403
|
onExit = _ref.onExit,
|
|
4404
4404
|
onExited = _ref.onExited,
|
|
4405
4405
|
onClose = _ref.onClose,
|
|
4406
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4406
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4407
4407
|
// React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
|
|
4408
4408
|
// See https://github.com/reactjs/react-transition-group/issues/918
|
|
4409
4409
|
var overlayRef = useRef(null);
|
|
@@ -4444,13 +4444,13 @@ function CardModalAnimation(_ref) {
|
|
|
4444
4444
|
}));
|
|
4445
4445
|
}
|
|
4446
4446
|
|
|
4447
|
-
var _excluded$
|
|
4447
|
+
var _excluded$J = ["children", "visible", "onClose", "onExited"];
|
|
4448
4448
|
function CardModalBehaviour(_ref) {
|
|
4449
4449
|
var children = _ref.children,
|
|
4450
4450
|
visible = _ref.visible,
|
|
4451
4451
|
onClose = _ref.onClose,
|
|
4452
4452
|
onExited = _ref.onExited,
|
|
4453
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4453
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4454
4454
|
var _useState = useState(visible),
|
|
4455
4455
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4456
4456
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4475,12 +4475,12 @@ function CardModalBehaviour(_ref) {
|
|
|
4475
4475
|
});
|
|
4476
4476
|
}
|
|
4477
4477
|
|
|
4478
|
-
var _excluded$
|
|
4478
|
+
var _excluded$I = ["children", "padding"];
|
|
4479
4479
|
function CardModalBody(_ref) {
|
|
4480
4480
|
var children = _ref.children,
|
|
4481
4481
|
_ref$padding = _ref.padding,
|
|
4482
4482
|
padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
|
|
4483
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4483
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4484
4484
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4485
4485
|
showsVerticalScrollIndicator: false,
|
|
4486
4486
|
_contentContainerStyle: {
|
|
@@ -4491,7 +4491,7 @@ function CardModalBody(_ref) {
|
|
|
4491
4491
|
}));
|
|
4492
4492
|
}
|
|
4493
4493
|
|
|
4494
|
-
var _excluded$
|
|
4494
|
+
var _excluded$H = ["children", "padding", "hasSeparator"];
|
|
4495
4495
|
function CardModalFooter(_ref) {
|
|
4496
4496
|
var children = _ref.children,
|
|
4497
4497
|
_ref$padding = _ref.padding,
|
|
@@ -4501,7 +4501,7 @@ function CardModalFooter(_ref) {
|
|
|
4501
4501
|
} : _ref$padding,
|
|
4502
4502
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4503
4503
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4504
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4504
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4505
4505
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4506
4506
|
marginTop: "kitt.2",
|
|
4507
4507
|
padding: padding,
|
|
@@ -4545,7 +4545,7 @@ var getButtonTypeAndVariant = function (iconColor) {
|
|
|
4545
4545
|
}
|
|
4546
4546
|
};
|
|
4547
4547
|
|
|
4548
|
-
var _excluded$
|
|
4548
|
+
var _excluded$G = ["color", "ariaLabel"];
|
|
4549
4549
|
/**
|
|
4550
4550
|
* @deprecated IconButton should only be used as a navigation button
|
|
4551
4551
|
* Other use cases should use a <Button> component with an icon
|
|
@@ -4554,7 +4554,7 @@ function IconButton(_ref) {
|
|
|
4554
4554
|
var _ref$color = _ref.color,
|
|
4555
4555
|
color = _ref$color === void 0 ? 'black' : _ref$color;
|
|
4556
4556
|
_ref.ariaLabel;
|
|
4557
|
-
var props = _objectWithoutProperties(_ref, _excluded$
|
|
4557
|
+
var props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4558
4558
|
var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
|
|
4559
4559
|
legacyColorToType = _getButtonTypeAndVari.type,
|
|
4560
4560
|
legacyColorToVariant = _getButtonTypeAndVari.variant;
|
|
@@ -4661,7 +4661,7 @@ function CardModalHeader(props) {
|
|
|
4661
4661
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4662
4662
|
}
|
|
4663
4663
|
|
|
4664
|
-
var _excluded$
|
|
4664
|
+
var _excluded$F = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
|
|
4665
4665
|
function CardModal(_ref) {
|
|
4666
4666
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4667
4667
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4669,7 +4669,7 @@ function CardModal(_ref) {
|
|
|
4669
4669
|
maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
|
|
4670
4670
|
withoutShadow = _ref.withoutShadow,
|
|
4671
4671
|
children = _ref.children,
|
|
4672
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4672
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
4673
4673
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4674
4674
|
overflow: "hidden",
|
|
4675
4675
|
backgroundColor: backgroundColor,
|
|
@@ -4885,11 +4885,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4885
4885
|
}));
|
|
4886
4886
|
}
|
|
4887
4887
|
|
|
4888
|
-
var _excluded$
|
|
4888
|
+
var _excluded$E = ["direction", "contentContainerStyle"];
|
|
4889
4889
|
function ChoicesContainer(_ref) {
|
|
4890
4890
|
var direction = _ref.direction,
|
|
4891
4891
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4892
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4892
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
4893
4893
|
if (direction === 'row') {
|
|
4894
4894
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4895
4895
|
horizontal: true,
|
|
@@ -4964,7 +4964,7 @@ var ChoicesElements = {
|
|
|
4964
4964
|
ButtonChoices: ButtonChoices
|
|
4965
4965
|
};
|
|
4966
4966
|
|
|
4967
|
-
var _excluded$
|
|
4967
|
+
var _excluded$D = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4968
4968
|
var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
|
|
4969
4969
|
var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
|
|
4970
4970
|
var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
|
|
@@ -5003,7 +5003,7 @@ function DialogModalAnimation(_ref) {
|
|
|
5003
5003
|
onExit = _ref.onExit,
|
|
5004
5004
|
onExited = _ref.onExited,
|
|
5005
5005
|
onClose = _ref.onClose,
|
|
5006
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5006
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
5007
5007
|
// React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
|
|
5008
5008
|
// See https://github.com/reactjs/react-transition-group/issues/918
|
|
5009
5009
|
var overlayRef = useRef(null);
|
|
@@ -5046,13 +5046,13 @@ function DialogModalAnimation(_ref) {
|
|
|
5046
5046
|
}));
|
|
5047
5047
|
}
|
|
5048
5048
|
|
|
5049
|
-
var _excluded$
|
|
5049
|
+
var _excluded$C = ["children", "visible", "onClose", "onExited"];
|
|
5050
5050
|
function DialogModalBehaviour(_ref) {
|
|
5051
5051
|
var children = _ref.children,
|
|
5052
5052
|
visible = _ref.visible,
|
|
5053
5053
|
onClose = _ref.onClose,
|
|
5054
5054
|
onExited = _ref.onExited,
|
|
5055
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5055
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
5056
5056
|
var _useState = useState(visible),
|
|
5057
5057
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5058
5058
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -5083,7 +5083,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5083
5083
|
});
|
|
5084
5084
|
}
|
|
5085
5085
|
|
|
5086
|
-
var _excluded$
|
|
5086
|
+
var _excluded$B = ["stretch"];
|
|
5087
5087
|
function DialogModal(_ref) {
|
|
5088
5088
|
var illustration = _ref.illustration,
|
|
5089
5089
|
title = _ref.title,
|
|
@@ -5123,7 +5123,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
5123
5123
|
function DialogModalButton(_ref2) {
|
|
5124
5124
|
var _ref2$stretch = _ref2.stretch,
|
|
5125
5125
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
5126
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
5126
|
+
props = _objectWithoutProperties(_ref2, _excluded$B);
|
|
5127
5127
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5128
5128
|
stretch: stretch
|
|
5129
5129
|
}, props));
|
|
@@ -5160,7 +5160,7 @@ function Emoji(_ref) {
|
|
|
5160
5160
|
});
|
|
5161
5161
|
}
|
|
5162
5162
|
|
|
5163
|
-
var _excluded$
|
|
5163
|
+
var _excluded$A = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5164
5164
|
_excluded2$5 = ["phoneNumber", "children"],
|
|
5165
5165
|
_excluded3$4 = ["phoneNumber", "children"],
|
|
5166
5166
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5170,7 +5170,7 @@ function ExternalAppLink(_ref) {
|
|
|
5170
5170
|
appValue = _ref.appValue,
|
|
5171
5171
|
onPress = _ref.onPress,
|
|
5172
5172
|
onOpenAppError = _ref.onOpenAppError,
|
|
5173
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5173
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
5174
5174
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
5175
5175
|
var handleOnPress = /*#__PURE__*/function () {
|
|
5176
5176
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -5265,14 +5265,14 @@ var defaultOpenLinkBehavior = {
|
|
|
5265
5265
|
web: 'targetBlank'
|
|
5266
5266
|
};
|
|
5267
5267
|
|
|
5268
|
-
var _excluded$
|
|
5268
|
+
var _excluded$z = ["as", "href", "openLinkBehavior", "onPress"];
|
|
5269
5269
|
function ExternalLink(_ref) {
|
|
5270
5270
|
var Component = _ref.as,
|
|
5271
5271
|
href = _ref.href,
|
|
5272
5272
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
5273
5273
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
5274
5274
|
onPress = _ref.onPress,
|
|
5275
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5275
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
5276
5276
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
5277
5277
|
accessibilityRole: "link",
|
|
5278
5278
|
href: href,
|
|
@@ -5348,7 +5348,7 @@ function InputTextContainer(props) {
|
|
|
5348
5348
|
}, props));
|
|
5349
5349
|
}
|
|
5350
5350
|
|
|
5351
|
-
var _excluded$
|
|
5351
|
+
var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5352
5352
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5353
5353
|
var id = _ref.id,
|
|
5354
5354
|
right = _ref.right;
|
|
@@ -5369,7 +5369,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5369
5369
|
multiline = _ref.multiline,
|
|
5370
5370
|
height = _ref.height,
|
|
5371
5371
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5372
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5372
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5373
5373
|
var theme = useTheme();
|
|
5374
5374
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5375
5375
|
base: 'body-m'
|
|
@@ -5493,12 +5493,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5493
5493
|
});
|
|
5494
5494
|
}
|
|
5495
5495
|
|
|
5496
|
-
var _excluded$
|
|
5496
|
+
var _excluded$x = ["children", "testID"];
|
|
5497
5497
|
function AutocompleteOption(_ref) {
|
|
5498
5498
|
var children = _ref.children,
|
|
5499
5499
|
_ref$testID = _ref.testID,
|
|
5500
5500
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5501
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5501
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5502
5502
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5503
5503
|
paddingX: {
|
|
5504
5504
|
base: 'kitt.2',
|
|
@@ -5511,7 +5511,7 @@ function AutocompleteOption(_ref) {
|
|
|
5511
5511
|
}));
|
|
5512
5512
|
}
|
|
5513
5513
|
|
|
5514
|
-
var _excluded$
|
|
5514
|
+
var _excluded$w = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
|
|
5515
5515
|
_excluded2$4 = ["onClick", "onPress"],
|
|
5516
5516
|
_excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5517
5517
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5545,7 +5545,7 @@ function Autocomplete(_ref) {
|
|
|
5545
5545
|
_ref$zIndex = _ref.zIndex,
|
|
5546
5546
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5547
5547
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5548
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5548
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
5549
5549
|
var childrenArray = Children.toArray(children);
|
|
5550
5550
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5551
5551
|
return {
|
|
@@ -5752,7 +5752,7 @@ function getBorderColor$1(_ref) {
|
|
|
5752
5752
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5753
5753
|
}
|
|
5754
5754
|
|
|
5755
|
-
var _excluded$
|
|
5755
|
+
var _excluded$v = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5756
5756
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5757
5757
|
var checked = _ref.checked,
|
|
5758
5758
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5762,7 +5762,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5762
5762
|
onChange = _ref.onChange,
|
|
5763
5763
|
onBlur = _ref.onBlur,
|
|
5764
5764
|
onFocus = _ref.onFocus,
|
|
5765
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5765
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
5766
5766
|
var theme = useTheme();
|
|
5767
5767
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5768
5768
|
hitSlop: hitSlop
|
|
@@ -6078,7 +6078,7 @@ function PartContainer(_ref) {
|
|
|
6078
6078
|
});
|
|
6079
6079
|
}
|
|
6080
6080
|
|
|
6081
|
-
var _excluded$
|
|
6081
|
+
var _excluded$u = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6082
6082
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6083
6083
|
var id = _ref.id,
|
|
6084
6084
|
value = _ref.value,
|
|
@@ -6096,7 +6096,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6096
6096
|
onBlur = _ref.onBlur,
|
|
6097
6097
|
onFocus = _ref.onFocus,
|
|
6098
6098
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
6099
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6099
|
+
_objectWithoutProperties(_ref, _excluded$u);
|
|
6100
6100
|
var monthRef = useRef(null);
|
|
6101
6101
|
var yearRef = useRef(null);
|
|
6102
6102
|
var defaultValue = value;
|
|
@@ -6236,10 +6236,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6236
6236
|
});
|
|
6237
6237
|
});
|
|
6238
6238
|
|
|
6239
|
-
var _excluded$
|
|
6239
|
+
var _excluded$t = ["value"];
|
|
6240
6240
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6241
6241
|
var value = _ref.value,
|
|
6242
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6242
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6243
6243
|
// in apps, final-form can give a string value that will break the component
|
|
6244
6244
|
var currentValue = value || undefined;
|
|
6245
6245
|
return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
|
|
@@ -6350,6 +6350,126 @@ function ImagePicker(_ref) {
|
|
|
6350
6350
|
});
|
|
6351
6351
|
}
|
|
6352
6352
|
|
|
6353
|
+
function InputAddressOption(_ref) {
|
|
6354
|
+
var item = _ref.item,
|
|
6355
|
+
itemToMainText = _ref.itemToMainText,
|
|
6356
|
+
itemToSecondaryText = _ref.itemToSecondaryText;
|
|
6357
|
+
var sharedTransform = {
|
|
6358
|
+
style: {
|
|
6359
|
+
transform: 'translateY(4px)'
|
|
6360
|
+
}
|
|
6361
|
+
};
|
|
6362
|
+
var mainText = itemToMainText(item);
|
|
6363
|
+
var secondaryText = itemToSecondaryText(item);
|
|
6364
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6365
|
+
item: item,
|
|
6366
|
+
testID: "kitt.InputAddressOption.item",
|
|
6367
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
6368
|
+
space: "kitt.2",
|
|
6369
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
6370
|
+
_web: sharedTransform,
|
|
6371
|
+
_ios: sharedTransform,
|
|
6372
|
+
_android: sharedTransform,
|
|
6373
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6374
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6375
|
+
color: "black"
|
|
6376
|
+
})
|
|
6377
|
+
}), /*#__PURE__*/jsx(View, {
|
|
6378
|
+
flexShrink: 1,
|
|
6379
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6380
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6381
|
+
variant: "bold",
|
|
6382
|
+
children: mainText
|
|
6383
|
+
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6384
|
+
color: "black-light",
|
|
6385
|
+
variant: "bold",
|
|
6386
|
+
children: [' ', secondaryText]
|
|
6387
|
+
}) : null]
|
|
6388
|
+
})
|
|
6389
|
+
})]
|
|
6390
|
+
})
|
|
6391
|
+
});
|
|
6392
|
+
}
|
|
6393
|
+
|
|
6394
|
+
function InputAddressOptionLegacy(_ref) {
|
|
6395
|
+
var item = _ref.item;
|
|
6396
|
+
var sharedTransform = {
|
|
6397
|
+
style: {
|
|
6398
|
+
transform: 'translateY(4px)'
|
|
6399
|
+
}
|
|
6400
|
+
};
|
|
6401
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6402
|
+
item: item,
|
|
6403
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
6404
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
6405
|
+
space: "kitt.2",
|
|
6406
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
6407
|
+
_web: sharedTransform,
|
|
6408
|
+
_ios: sharedTransform,
|
|
6409
|
+
_android: sharedTransform,
|
|
6410
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6411
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6412
|
+
color: "black"
|
|
6413
|
+
})
|
|
6414
|
+
}), /*#__PURE__*/jsx(View, {
|
|
6415
|
+
flexShrink: 1,
|
|
6416
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6417
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6418
|
+
variant: "bold",
|
|
6419
|
+
children: item.structured_formatting.main_text
|
|
6420
|
+
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6421
|
+
color: "black-light",
|
|
6422
|
+
variant: "bold",
|
|
6423
|
+
children: [' ', item.structured_formatting.secondary_text]
|
|
6424
|
+
}) : null]
|
|
6425
|
+
})
|
|
6426
|
+
})]
|
|
6427
|
+
})
|
|
6428
|
+
});
|
|
6429
|
+
}
|
|
6430
|
+
|
|
6431
|
+
var _excluded$s = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "itemToMainText", "itemToSecondaryText", "itemToKey"];
|
|
6432
|
+
function InputAddress(_ref) {
|
|
6433
|
+
var errorElement = _ref.errorElement,
|
|
6434
|
+
initialValue = _ref.initialValue,
|
|
6435
|
+
emptyResultsElement = _ref.emptyResultsElement,
|
|
6436
|
+
_onChange = _ref.onChange,
|
|
6437
|
+
items = _ref.items,
|
|
6438
|
+
isLoading = _ref.isLoading,
|
|
6439
|
+
hasError = _ref.hasError,
|
|
6440
|
+
_onInputChange = _ref.onInputChange,
|
|
6441
|
+
onSelectItem = _ref.onSelectItem,
|
|
6442
|
+
convertInitialValue = _ref.convertInitialValue,
|
|
6443
|
+
itemToMainText = _ref.itemToMainText,
|
|
6444
|
+
itemToSecondaryText = _ref.itemToSecondaryText,
|
|
6445
|
+
itemToKey = _ref.itemToKey,
|
|
6446
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6447
|
+
var formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
6448
|
+
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
6449
|
+
initialValue: formattedInitialValue,
|
|
6450
|
+
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
6451
|
+
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
6452
|
+
color: "kitt.black"
|
|
6453
|
+
}) : undefined,
|
|
6454
|
+
errorElement: hasError ? errorElement : null,
|
|
6455
|
+
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
6456
|
+
onInputChange: function (value) {
|
|
6457
|
+
return _onInputChange(value);
|
|
6458
|
+
},
|
|
6459
|
+
onChange: function (item) {
|
|
6460
|
+
return onSelectItem(item, _onChange);
|
|
6461
|
+
},
|
|
6462
|
+
children: items.map(function (item) {
|
|
6463
|
+
return /*#__PURE__*/jsx(InputAddressOption, {
|
|
6464
|
+
item: item,
|
|
6465
|
+
itemToMainText: itemToMainText,
|
|
6466
|
+
itemToSecondaryText: itemToSecondaryText
|
|
6467
|
+
}, itemToKey(item));
|
|
6468
|
+
})
|
|
6469
|
+
}));
|
|
6470
|
+
}
|
|
6471
|
+
InputAddress.Option = InputAddressOptionLegacy;
|
|
6472
|
+
|
|
6353
6473
|
var GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
6354
6474
|
function GoogleMapsApiKeyProvider(_ref) {
|
|
6355
6475
|
var children = _ref.children,
|
|
@@ -6755,43 +6875,6 @@ function useGoogleMapsAutocomplete() {
|
|
|
6755
6875
|
return context;
|
|
6756
6876
|
}
|
|
6757
6877
|
|
|
6758
|
-
function InputAddressOption(_ref) {
|
|
6759
|
-
var item = _ref.item;
|
|
6760
|
-
var sharedTransform = {
|
|
6761
|
-
style: {
|
|
6762
|
-
transform: 'translateY(4px)'
|
|
6763
|
-
}
|
|
6764
|
-
};
|
|
6765
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6766
|
-
item: item,
|
|
6767
|
-
testID: "kitt.InputAddressOption.item",
|
|
6768
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
6769
|
-
space: "kitt.2",
|
|
6770
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
6771
|
-
_web: sharedTransform,
|
|
6772
|
-
_ios: sharedTransform,
|
|
6773
|
-
_android: sharedTransform,
|
|
6774
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6775
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6776
|
-
color: "black"
|
|
6777
|
-
})
|
|
6778
|
-
}), /*#__PURE__*/jsx(View, {
|
|
6779
|
-
flexShrink: 1,
|
|
6780
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6781
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6782
|
-
variant: "bold",
|
|
6783
|
-
children: item.structured_formatting.main_text
|
|
6784
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6785
|
-
color: "black-light",
|
|
6786
|
-
variant: "bold",
|
|
6787
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
6788
|
-
}) : null]
|
|
6789
|
-
})
|
|
6790
|
-
})]
|
|
6791
|
-
})
|
|
6792
|
-
});
|
|
6793
|
-
}
|
|
6794
|
-
|
|
6795
6878
|
function defaultItemToString(item) {
|
|
6796
6879
|
if (!item) return '';
|
|
6797
6880
|
return item.description;
|
|
@@ -6824,7 +6907,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
6824
6907
|
}
|
|
6825
6908
|
|
|
6826
6909
|
var _excluded$r = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
6827
|
-
function
|
|
6910
|
+
function InputAddressLegacy(_ref) {
|
|
6828
6911
|
var initialValue = _ref.initialValue,
|
|
6829
6912
|
_ref$itemToString = _ref.itemToString,
|
|
6830
6913
|
itemToString = _ref$itemToString === void 0 ? defaultItemToString : _ref$itemToString,
|
|
@@ -6858,13 +6941,13 @@ function InputAddress(_ref) {
|
|
|
6858
6941
|
onSelectItem(v, _onChange);
|
|
6859
6942
|
},
|
|
6860
6943
|
children: state.items.map(function (item) {
|
|
6861
|
-
return /*#__PURE__*/jsx(
|
|
6944
|
+
return /*#__PURE__*/jsx(InputAddressOptionLegacy, {
|
|
6862
6945
|
item: item
|
|
6863
6946
|
}, item.place_id);
|
|
6864
6947
|
})
|
|
6865
6948
|
}));
|
|
6866
6949
|
}
|
|
6867
|
-
|
|
6950
|
+
InputAddressLegacy.Option = InputAddressOptionLegacy;
|
|
6868
6951
|
|
|
6869
6952
|
var InputEmail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
6870
6953
|
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
@@ -13834,5 +13917,5 @@ function VerticalSteps(_ref) {
|
|
|
13834
13917
|
VerticalSteps.Step = Step;
|
|
13835
13918
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
13836
13919
|
|
|
13837
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13920
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputAddressLegacy, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13838
13921
|
//# sourceMappingURL=index.es.web.js.map
|