@ornikar/kitt-universal 31.3.0 → 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 +18 -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/CardModal.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 +190 -107
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +190 -107
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +125 -42
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +125 -42
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +125 -43
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +125 -43
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +192 -106
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +178 -92
- 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,16 +4669,19 @@ 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,
|
|
4676
4676
|
shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
|
|
4677
4677
|
borderRadius: "kitt.cardModal.borderRadius",
|
|
4678
|
+
flexGrow: 1,
|
|
4678
4679
|
width: "100%",
|
|
4679
4680
|
maxHeight: "100%",
|
|
4680
|
-
maxWidth: maxWidth,
|
|
4681
4681
|
minHeight: "kitt.cardModal.minHeight",
|
|
4682
|
+
_web: {
|
|
4683
|
+
maxWidth: maxWidth
|
|
4684
|
+
},
|
|
4682
4685
|
children: children
|
|
4683
4686
|
}));
|
|
4684
4687
|
}
|
|
@@ -4882,11 +4885,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4882
4885
|
}));
|
|
4883
4886
|
}
|
|
4884
4887
|
|
|
4885
|
-
var _excluded$
|
|
4888
|
+
var _excluded$E = ["direction", "contentContainerStyle"];
|
|
4886
4889
|
function ChoicesContainer(_ref) {
|
|
4887
4890
|
var direction = _ref.direction,
|
|
4888
4891
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4889
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4892
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
4890
4893
|
if (direction === 'row') {
|
|
4891
4894
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4892
4895
|
horizontal: true,
|
|
@@ -4961,7 +4964,7 @@ var ChoicesElements = {
|
|
|
4961
4964
|
ButtonChoices: ButtonChoices
|
|
4962
4965
|
};
|
|
4963
4966
|
|
|
4964
|
-
var _excluded$
|
|
4967
|
+
var _excluded$D = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4965
4968
|
var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
|
|
4966
4969
|
var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
|
|
4967
4970
|
var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
|
|
@@ -5000,7 +5003,7 @@ function DialogModalAnimation(_ref) {
|
|
|
5000
5003
|
onExit = _ref.onExit,
|
|
5001
5004
|
onExited = _ref.onExited,
|
|
5002
5005
|
onClose = _ref.onClose,
|
|
5003
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5006
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
5004
5007
|
// React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
|
|
5005
5008
|
// See https://github.com/reactjs/react-transition-group/issues/918
|
|
5006
5009
|
var overlayRef = useRef(null);
|
|
@@ -5043,13 +5046,13 @@ function DialogModalAnimation(_ref) {
|
|
|
5043
5046
|
}));
|
|
5044
5047
|
}
|
|
5045
5048
|
|
|
5046
|
-
var _excluded$
|
|
5049
|
+
var _excluded$C = ["children", "visible", "onClose", "onExited"];
|
|
5047
5050
|
function DialogModalBehaviour(_ref) {
|
|
5048
5051
|
var children = _ref.children,
|
|
5049
5052
|
visible = _ref.visible,
|
|
5050
5053
|
onClose = _ref.onClose,
|
|
5051
5054
|
onExited = _ref.onExited,
|
|
5052
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5055
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
5053
5056
|
var _useState = useState(visible),
|
|
5054
5057
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5055
5058
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -5080,7 +5083,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5080
5083
|
});
|
|
5081
5084
|
}
|
|
5082
5085
|
|
|
5083
|
-
var _excluded$
|
|
5086
|
+
var _excluded$B = ["stretch"];
|
|
5084
5087
|
function DialogModal(_ref) {
|
|
5085
5088
|
var illustration = _ref.illustration,
|
|
5086
5089
|
title = _ref.title,
|
|
@@ -5120,7 +5123,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
5120
5123
|
function DialogModalButton(_ref2) {
|
|
5121
5124
|
var _ref2$stretch = _ref2.stretch,
|
|
5122
5125
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
5123
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
5126
|
+
props = _objectWithoutProperties(_ref2, _excluded$B);
|
|
5124
5127
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5125
5128
|
stretch: stretch
|
|
5126
5129
|
}, props));
|
|
@@ -5157,7 +5160,7 @@ function Emoji(_ref) {
|
|
|
5157
5160
|
});
|
|
5158
5161
|
}
|
|
5159
5162
|
|
|
5160
|
-
var _excluded$
|
|
5163
|
+
var _excluded$A = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5161
5164
|
_excluded2$5 = ["phoneNumber", "children"],
|
|
5162
5165
|
_excluded3$4 = ["phoneNumber", "children"],
|
|
5163
5166
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5167,7 +5170,7 @@ function ExternalAppLink(_ref) {
|
|
|
5167
5170
|
appValue = _ref.appValue,
|
|
5168
5171
|
onPress = _ref.onPress,
|
|
5169
5172
|
onOpenAppError = _ref.onOpenAppError,
|
|
5170
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5173
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
5171
5174
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
5172
5175
|
var handleOnPress = /*#__PURE__*/function () {
|
|
5173
5176
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -5262,14 +5265,14 @@ var defaultOpenLinkBehavior = {
|
|
|
5262
5265
|
web: 'targetBlank'
|
|
5263
5266
|
};
|
|
5264
5267
|
|
|
5265
|
-
var _excluded$
|
|
5268
|
+
var _excluded$z = ["as", "href", "openLinkBehavior", "onPress"];
|
|
5266
5269
|
function ExternalLink(_ref) {
|
|
5267
5270
|
var Component = _ref.as,
|
|
5268
5271
|
href = _ref.href,
|
|
5269
5272
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
5270
5273
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
5271
5274
|
onPress = _ref.onPress,
|
|
5272
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5275
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
5273
5276
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
5274
5277
|
accessibilityRole: "link",
|
|
5275
5278
|
href: href,
|
|
@@ -5345,7 +5348,7 @@ function InputTextContainer(props) {
|
|
|
5345
5348
|
}, props));
|
|
5346
5349
|
}
|
|
5347
5350
|
|
|
5348
|
-
var _excluded$
|
|
5351
|
+
var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5349
5352
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5350
5353
|
var id = _ref.id,
|
|
5351
5354
|
right = _ref.right;
|
|
@@ -5366,7 +5369,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5366
5369
|
multiline = _ref.multiline,
|
|
5367
5370
|
height = _ref.height,
|
|
5368
5371
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5369
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5372
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5370
5373
|
var theme = useTheme();
|
|
5371
5374
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5372
5375
|
base: 'body-m'
|
|
@@ -5490,12 +5493,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5490
5493
|
});
|
|
5491
5494
|
}
|
|
5492
5495
|
|
|
5493
|
-
var _excluded$
|
|
5496
|
+
var _excluded$x = ["children", "testID"];
|
|
5494
5497
|
function AutocompleteOption(_ref) {
|
|
5495
5498
|
var children = _ref.children,
|
|
5496
5499
|
_ref$testID = _ref.testID,
|
|
5497
5500
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5498
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5501
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5499
5502
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5500
5503
|
paddingX: {
|
|
5501
5504
|
base: 'kitt.2',
|
|
@@ -5508,7 +5511,7 @@ function AutocompleteOption(_ref) {
|
|
|
5508
5511
|
}));
|
|
5509
5512
|
}
|
|
5510
5513
|
|
|
5511
|
-
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"],
|
|
5512
5515
|
_excluded2$4 = ["onClick", "onPress"],
|
|
5513
5516
|
_excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5514
5517
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5542,7 +5545,7 @@ function Autocomplete(_ref) {
|
|
|
5542
5545
|
_ref$zIndex = _ref.zIndex,
|
|
5543
5546
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5544
5547
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5545
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5548
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
5546
5549
|
var childrenArray = Children.toArray(children);
|
|
5547
5550
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5548
5551
|
return {
|
|
@@ -5749,7 +5752,7 @@ function getBorderColor$1(_ref) {
|
|
|
5749
5752
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5750
5753
|
}
|
|
5751
5754
|
|
|
5752
|
-
var _excluded$
|
|
5755
|
+
var _excluded$v = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5753
5756
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5754
5757
|
var checked = _ref.checked,
|
|
5755
5758
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5759,7 +5762,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5759
5762
|
onChange = _ref.onChange,
|
|
5760
5763
|
onBlur = _ref.onBlur,
|
|
5761
5764
|
onFocus = _ref.onFocus,
|
|
5762
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5765
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
5763
5766
|
var theme = useTheme();
|
|
5764
5767
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5765
5768
|
hitSlop: hitSlop
|
|
@@ -6075,7 +6078,7 @@ function PartContainer(_ref) {
|
|
|
6075
6078
|
});
|
|
6076
6079
|
}
|
|
6077
6080
|
|
|
6078
|
-
var _excluded$
|
|
6081
|
+
var _excluded$u = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6079
6082
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6080
6083
|
var id = _ref.id,
|
|
6081
6084
|
value = _ref.value,
|
|
@@ -6093,7 +6096,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6093
6096
|
onBlur = _ref.onBlur,
|
|
6094
6097
|
onFocus = _ref.onFocus,
|
|
6095
6098
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
6096
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6099
|
+
_objectWithoutProperties(_ref, _excluded$u);
|
|
6097
6100
|
var monthRef = useRef(null);
|
|
6098
6101
|
var yearRef = useRef(null);
|
|
6099
6102
|
var defaultValue = value;
|
|
@@ -6233,10 +6236,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6233
6236
|
});
|
|
6234
6237
|
});
|
|
6235
6238
|
|
|
6236
|
-
var _excluded$
|
|
6239
|
+
var _excluded$t = ["value"];
|
|
6237
6240
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6238
6241
|
var value = _ref.value,
|
|
6239
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6242
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6240
6243
|
// in apps, final-form can give a string value that will break the component
|
|
6241
6244
|
var currentValue = value || undefined;
|
|
6242
6245
|
return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
|
|
@@ -6347,6 +6350,126 @@ function ImagePicker(_ref) {
|
|
|
6347
6350
|
});
|
|
6348
6351
|
}
|
|
6349
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
|
+
|
|
6350
6473
|
var GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
6351
6474
|
function GoogleMapsApiKeyProvider(_ref) {
|
|
6352
6475
|
var children = _ref.children,
|
|
@@ -6752,43 +6875,6 @@ function useGoogleMapsAutocomplete() {
|
|
|
6752
6875
|
return context;
|
|
6753
6876
|
}
|
|
6754
6877
|
|
|
6755
|
-
function InputAddressOption(_ref) {
|
|
6756
|
-
var item = _ref.item;
|
|
6757
|
-
var sharedTransform = {
|
|
6758
|
-
style: {
|
|
6759
|
-
transform: 'translateY(4px)'
|
|
6760
|
-
}
|
|
6761
|
-
};
|
|
6762
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6763
|
-
item: item,
|
|
6764
|
-
testID: "kitt.InputAddressOption.item",
|
|
6765
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
6766
|
-
space: "kitt.2",
|
|
6767
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
6768
|
-
_web: sharedTransform,
|
|
6769
|
-
_ios: sharedTransform,
|
|
6770
|
-
_android: sharedTransform,
|
|
6771
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6772
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6773
|
-
color: "black"
|
|
6774
|
-
})
|
|
6775
|
-
}), /*#__PURE__*/jsx(View, {
|
|
6776
|
-
flexShrink: 1,
|
|
6777
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6778
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6779
|
-
variant: "bold",
|
|
6780
|
-
children: item.structured_formatting.main_text
|
|
6781
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6782
|
-
color: "black-light",
|
|
6783
|
-
variant: "bold",
|
|
6784
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
6785
|
-
}) : null]
|
|
6786
|
-
})
|
|
6787
|
-
})]
|
|
6788
|
-
})
|
|
6789
|
-
});
|
|
6790
|
-
}
|
|
6791
|
-
|
|
6792
6878
|
function defaultItemToString(item) {
|
|
6793
6879
|
if (!item) return '';
|
|
6794
6880
|
return item.description;
|
|
@@ -6821,7 +6907,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
6821
6907
|
}
|
|
6822
6908
|
|
|
6823
6909
|
var _excluded$r = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
6824
|
-
function
|
|
6910
|
+
function InputAddressLegacy(_ref) {
|
|
6825
6911
|
var initialValue = _ref.initialValue,
|
|
6826
6912
|
_ref$itemToString = _ref.itemToString,
|
|
6827
6913
|
itemToString = _ref$itemToString === void 0 ? defaultItemToString : _ref$itemToString,
|
|
@@ -6855,13 +6941,13 @@ function InputAddress(_ref) {
|
|
|
6855
6941
|
onSelectItem(v, _onChange);
|
|
6856
6942
|
},
|
|
6857
6943
|
children: state.items.map(function (item) {
|
|
6858
|
-
return /*#__PURE__*/jsx(
|
|
6944
|
+
return /*#__PURE__*/jsx(InputAddressOptionLegacy, {
|
|
6859
6945
|
item: item
|
|
6860
6946
|
}, item.place_id);
|
|
6861
6947
|
})
|
|
6862
6948
|
}));
|
|
6863
6949
|
}
|
|
6864
|
-
|
|
6950
|
+
InputAddressLegacy.Option = InputAddressOptionLegacy;
|
|
6865
6951
|
|
|
6866
6952
|
var InputEmail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
6867
6953
|
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
@@ -13831,5 +13917,5 @@ function VerticalSteps(_ref) {
|
|
|
13831
13917
|
VerticalSteps.Step = Step;
|
|
13832
13918
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
13833
13919
|
|
|
13834
|
-
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 };
|
|
13835
13921
|
//# sourceMappingURL=index.es.web.js.map
|