@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.js
CHANGED
|
@@ -2865,7 +2865,7 @@ function ActionCardDisabled(_ref) {
|
|
|
2865
2865
|
});
|
|
2866
2866
|
}
|
|
2867
2867
|
|
|
2868
|
-
var _excluded$
|
|
2868
|
+
var _excluded$T = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2869
2869
|
function ActionCard(_ref) {
|
|
2870
2870
|
var children = _ref.children,
|
|
2871
2871
|
_ref$variant = _ref.variant,
|
|
@@ -2878,7 +2878,7 @@ function ActionCard(_ref) {
|
|
|
2878
2878
|
isHovered = _ref.isHovered,
|
|
2879
2879
|
isPressed = _ref.isPressed,
|
|
2880
2880
|
isFocused = _ref.isFocused,
|
|
2881
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2881
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
2882
2882
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2883
2883
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2884
2884
|
borderRadius: borderRadius,
|
|
@@ -3202,7 +3202,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
|
|
|
3202
3202
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3203
3203
|
};
|
|
3204
3204
|
|
|
3205
|
-
var _excluded$
|
|
3205
|
+
var _excluded$S = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3206
3206
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3207
3207
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3208
3208
|
var TypographyVariantContext = /*#__PURE__*/createContext(undefined);
|
|
@@ -3327,7 +3327,7 @@ var TypographyBase = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
3327
3327
|
} : _ref2$type,
|
|
3328
3328
|
variant = _ref2.variant,
|
|
3329
3329
|
color = _ref2.color,
|
|
3330
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
3330
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$S);
|
|
3331
3331
|
var sx = useSx();
|
|
3332
3332
|
|
|
3333
3333
|
// ancestors
|
|
@@ -3489,12 +3489,12 @@ function Icon(_ref) {
|
|
|
3489
3489
|
});
|
|
3490
3490
|
}
|
|
3491
3491
|
|
|
3492
|
-
var _excluded$
|
|
3492
|
+
var _excluded$R = ["color", "size"],
|
|
3493
3493
|
_excluded2$5 = ["color"];
|
|
3494
3494
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3495
3495
|
var color = _ref.color,
|
|
3496
3496
|
size = _ref.size,
|
|
3497
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3497
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
3498
3498
|
var colorValue = getTypographyColorValue(color);
|
|
3499
3499
|
var sx = useSx();
|
|
3500
3500
|
var _sx = sx({
|
|
@@ -3534,7 +3534,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
|
|
|
3534
3534
|
return "".concat(baseKey, ".default");
|
|
3535
3535
|
};
|
|
3536
3536
|
|
|
3537
|
-
var _excluded$
|
|
3537
|
+
var _excluded$Q = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3538
3538
|
function ButtonContentChildren(_ref) {
|
|
3539
3539
|
var type = _ref.type,
|
|
3540
3540
|
icon = _ref.icon,
|
|
@@ -3634,7 +3634,7 @@ function ButtonContent(_ref2) {
|
|
|
3634
3634
|
_ref2.isFocused;
|
|
3635
3635
|
var innerSpacing = _ref2.innerSpacing,
|
|
3636
3636
|
size = _ref2.size,
|
|
3637
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3637
|
+
props = _objectWithoutProperties(_ref2, _excluded$Q);
|
|
3638
3638
|
var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3639
3639
|
return /*#__PURE__*/jsx(View, {
|
|
3640
3640
|
_web: {
|
|
@@ -3955,7 +3955,7 @@ function LoaderIcon(_ref) {
|
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
3957
|
|
|
3958
|
-
var _excluded$
|
|
3958
|
+
var _excluded$P = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3959
3959
|
var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3960
3960
|
var as = _ref.as,
|
|
3961
3961
|
onPress = _ref.onPress,
|
|
@@ -3966,7 +3966,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3966
3966
|
base: true,
|
|
3967
3967
|
medium: false
|
|
3968
3968
|
} : _ref$stretch,
|
|
3969
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3969
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
3970
3970
|
var _useState = useState(false),
|
|
3971
3971
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3972
3972
|
isLoading = _useState2[0],
|
|
@@ -4044,7 +4044,7 @@ function ActionsButton(_ref) {
|
|
|
4044
4044
|
}, props));
|
|
4045
4045
|
}
|
|
4046
4046
|
|
|
4047
|
-
var _excluded$
|
|
4047
|
+
var _excluded$O = ["children", "layout", "reversed"];
|
|
4048
4048
|
function getCurrentLayout(layout) {
|
|
4049
4049
|
if (!layout) return {
|
|
4050
4050
|
base: 'stretch',
|
|
@@ -4076,7 +4076,7 @@ function Actions(_ref) {
|
|
|
4076
4076
|
reversed = _ref$reversed === void 0 ? {
|
|
4077
4077
|
base: false
|
|
4078
4078
|
} : _ref$reversed,
|
|
4079
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4079
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
4080
4080
|
var shouldReverse = typeof reversed === 'boolean' ? {
|
|
4081
4081
|
base: !!reversed
|
|
4082
4082
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -4129,7 +4129,7 @@ function getInitials(firstname, lastname) {
|
|
|
4129
4129
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
4130
4130
|
}
|
|
4131
4131
|
|
|
4132
|
-
var _excluded$
|
|
4132
|
+
var _excluded$N = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
4133
4133
|
function AvatarContent(_ref) {
|
|
4134
4134
|
var size = _ref.size,
|
|
4135
4135
|
src = _ref.src,
|
|
@@ -4192,7 +4192,7 @@ function Avatar(_ref2) {
|
|
|
4192
4192
|
height = _ref2.height,
|
|
4193
4193
|
dark = _ref2.dark,
|
|
4194
4194
|
disabled = _ref2.disabled,
|
|
4195
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
4195
|
+
props = _objectWithoutProperties(_ref2, _excluded$N);
|
|
4196
4196
|
var currentSize = getCurrentSize({
|
|
4197
4197
|
size: size,
|
|
4198
4198
|
sizeVariant: sizeVariant
|
|
@@ -4230,7 +4230,7 @@ function Avatar(_ref2) {
|
|
|
4230
4230
|
});
|
|
4231
4231
|
}
|
|
4232
4232
|
|
|
4233
|
-
var _excluded$
|
|
4233
|
+
var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
4234
4234
|
function BottomSheetComp(_ref, ref) {
|
|
4235
4235
|
var Content = _ref.children,
|
|
4236
4236
|
_ref$hasScrollView = _ref.hasScrollView,
|
|
@@ -4243,7 +4243,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
4243
4243
|
enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
|
|
4244
4244
|
_ref$snapPoints = _ref.snapPoints,
|
|
4245
4245
|
snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
|
|
4246
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4246
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
4247
4247
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
4248
4248
|
top = _useSafeAreaInsets.top;
|
|
4249
4249
|
var Wrapper = useMemo(function () {
|
|
@@ -4561,13 +4561,13 @@ function CardModalAnimation(_ref) {
|
|
|
4561
4561
|
});
|
|
4562
4562
|
}
|
|
4563
4563
|
|
|
4564
|
-
var _excluded$
|
|
4564
|
+
var _excluded$L = ["children", "visible", "onClose", "onExited"];
|
|
4565
4565
|
function CardModalBehaviour(_ref) {
|
|
4566
4566
|
var children = _ref.children,
|
|
4567
4567
|
visible = _ref.visible,
|
|
4568
4568
|
onClose = _ref.onClose,
|
|
4569
4569
|
onExited = _ref.onExited,
|
|
4570
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4570
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
4571
4571
|
var _useState = useState(visible),
|
|
4572
4572
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4573
4573
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4592,12 +4592,12 @@ function CardModalBehaviour(_ref) {
|
|
|
4592
4592
|
});
|
|
4593
4593
|
}
|
|
4594
4594
|
|
|
4595
|
-
var _excluded$
|
|
4595
|
+
var _excluded$K = ["children", "padding"];
|
|
4596
4596
|
function CardModalBody(_ref) {
|
|
4597
4597
|
var children = _ref.children,
|
|
4598
4598
|
_ref$padding = _ref.padding,
|
|
4599
4599
|
padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
|
|
4600
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4600
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4601
4601
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4602
4602
|
showsVerticalScrollIndicator: false,
|
|
4603
4603
|
_contentContainerStyle: {
|
|
@@ -4608,7 +4608,7 @@ function CardModalBody(_ref) {
|
|
|
4608
4608
|
}));
|
|
4609
4609
|
}
|
|
4610
4610
|
|
|
4611
|
-
var _excluded$
|
|
4611
|
+
var _excluded$J = ["children", "padding", "hasSeparator"];
|
|
4612
4612
|
function CardModalFooter(_ref) {
|
|
4613
4613
|
var children = _ref.children,
|
|
4614
4614
|
_ref$padding = _ref.padding,
|
|
@@ -4618,7 +4618,7 @@ function CardModalFooter(_ref) {
|
|
|
4618
4618
|
} : _ref$padding,
|
|
4619
4619
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4620
4620
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4621
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4621
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4622
4622
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4623
4623
|
marginTop: "kitt.2",
|
|
4624
4624
|
padding: padding,
|
|
@@ -4662,7 +4662,7 @@ var getButtonTypeAndVariant = function (iconColor) {
|
|
|
4662
4662
|
}
|
|
4663
4663
|
};
|
|
4664
4664
|
|
|
4665
|
-
var _excluded$
|
|
4665
|
+
var _excluded$I = ["color", "ariaLabel"];
|
|
4666
4666
|
/**
|
|
4667
4667
|
* @deprecated IconButton should only be used as a navigation button
|
|
4668
4668
|
* Other use cases should use a <Button> component with an icon
|
|
@@ -4671,7 +4671,7 @@ function IconButton(_ref) {
|
|
|
4671
4671
|
var _ref$color = _ref.color,
|
|
4672
4672
|
color = _ref$color === void 0 ? 'black' : _ref$color;
|
|
4673
4673
|
_ref.ariaLabel;
|
|
4674
|
-
var props = _objectWithoutProperties(_ref, _excluded$
|
|
4674
|
+
var props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4675
4675
|
var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
|
|
4676
4676
|
legacyColorToType = _getButtonTypeAndVari.type,
|
|
4677
4677
|
legacyColorToVariant = _getButtonTypeAndVari.variant;
|
|
@@ -4778,7 +4778,7 @@ function CardModalHeader(props) {
|
|
|
4778
4778
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4779
4779
|
}
|
|
4780
4780
|
|
|
4781
|
-
var _excluded$
|
|
4781
|
+
var _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
|
|
4782
4782
|
function CardModal(_ref) {
|
|
4783
4783
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4784
4784
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4786,7 +4786,7 @@ function CardModal(_ref) {
|
|
|
4786
4786
|
maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
|
|
4787
4787
|
withoutShadow = _ref.withoutShadow,
|
|
4788
4788
|
children = _ref.children,
|
|
4789
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4789
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4790
4790
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4791
4791
|
overflow: "hidden",
|
|
4792
4792
|
backgroundColor: backgroundColor,
|
|
@@ -5033,11 +5033,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
5033
5033
|
}));
|
|
5034
5034
|
}
|
|
5035
5035
|
|
|
5036
|
-
var _excluded$
|
|
5036
|
+
var _excluded$G = ["direction", "contentContainerStyle"];
|
|
5037
5037
|
function ChoicesContainer(_ref) {
|
|
5038
5038
|
var direction = _ref.direction,
|
|
5039
5039
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
5040
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5040
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
5041
5041
|
if (direction === 'row') {
|
|
5042
5042
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
5043
5043
|
horizontal: true,
|
|
@@ -5268,13 +5268,13 @@ function DialogModalAnimation(_ref) {
|
|
|
5268
5268
|
});
|
|
5269
5269
|
}
|
|
5270
5270
|
|
|
5271
|
-
var _excluded$
|
|
5271
|
+
var _excluded$F = ["children", "visible", "onClose", "onExited"];
|
|
5272
5272
|
function DialogModalBehaviour(_ref) {
|
|
5273
5273
|
var children = _ref.children,
|
|
5274
5274
|
visible = _ref.visible,
|
|
5275
5275
|
onClose = _ref.onClose,
|
|
5276
5276
|
onExited = _ref.onExited,
|
|
5277
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5277
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
5278
5278
|
var _useState = useState(visible),
|
|
5279
5279
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5280
5280
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -5305,7 +5305,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5305
5305
|
});
|
|
5306
5306
|
}
|
|
5307
5307
|
|
|
5308
|
-
var _excluded$
|
|
5308
|
+
var _excluded$E = ["stretch"];
|
|
5309
5309
|
function DialogModal(_ref) {
|
|
5310
5310
|
var illustration = _ref.illustration,
|
|
5311
5311
|
title = _ref.title,
|
|
@@ -5345,7 +5345,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
5345
5345
|
function DialogModalButton(_ref2) {
|
|
5346
5346
|
var _ref2$stretch = _ref2.stretch,
|
|
5347
5347
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
5348
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
5348
|
+
props = _objectWithoutProperties(_ref2, _excluded$E);
|
|
5349
5349
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5350
5350
|
stretch: stretch
|
|
5351
5351
|
}, props));
|
|
@@ -5382,7 +5382,7 @@ function Emoji(_ref) {
|
|
|
5382
5382
|
});
|
|
5383
5383
|
}
|
|
5384
5384
|
|
|
5385
|
-
var _excluded$
|
|
5385
|
+
var _excluded$D = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5386
5386
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
5387
5387
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
5388
5388
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5392,7 +5392,7 @@ function ExternalAppLink(_ref) {
|
|
|
5392
5392
|
appValue = _ref.appValue,
|
|
5393
5393
|
onPress = _ref.onPress,
|
|
5394
5394
|
onOpenAppError = _ref.onOpenAppError,
|
|
5395
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5395
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
5396
5396
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
5397
5397
|
var handleOnPress = /*#__PURE__*/function () {
|
|
5398
5398
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -5544,7 +5544,7 @@ function useOpenExternalLink(errorHandler) {
|
|
|
5544
5544
|
}();
|
|
5545
5545
|
}
|
|
5546
5546
|
|
|
5547
|
-
var _excluded$
|
|
5547
|
+
var _excluded$C = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
5548
5548
|
function ExternalLink(_ref) {
|
|
5549
5549
|
var Component = _ref.as,
|
|
5550
5550
|
href = _ref.href,
|
|
@@ -5553,7 +5553,7 @@ function ExternalLink(_ref) {
|
|
|
5553
5553
|
onPress = _ref.onPress,
|
|
5554
5554
|
_ref$onOpenLinkError = _ref.onOpenLinkError,
|
|
5555
5555
|
onOpenLinkError = _ref$onOpenLinkError === void 0 ? console.error : _ref$onOpenLinkError,
|
|
5556
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5556
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5557
5557
|
var openExternalLink = useOpenExternalLink();
|
|
5558
5558
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5559
5559
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -5610,7 +5610,7 @@ function InputTextContainer(_ref) {
|
|
|
5610
5610
|
});
|
|
5611
5611
|
}
|
|
5612
5612
|
|
|
5613
|
-
var _excluded$
|
|
5613
|
+
var _excluded$B = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5614
5614
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5615
5615
|
var id = _ref.id,
|
|
5616
5616
|
right = _ref.right;
|
|
@@ -5631,7 +5631,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5631
5631
|
multiline = _ref.multiline,
|
|
5632
5632
|
height = _ref.height,
|
|
5633
5633
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5634
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5634
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
5635
5635
|
var theme = useTheme();
|
|
5636
5636
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5637
5637
|
base: 'body-m'
|
|
@@ -5756,12 +5756,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5756
5756
|
});
|
|
5757
5757
|
}
|
|
5758
5758
|
|
|
5759
|
-
var _excluded$
|
|
5759
|
+
var _excluded$A = ["children", "testID"];
|
|
5760
5760
|
function AutocompleteOption(_ref) {
|
|
5761
5761
|
var children = _ref.children,
|
|
5762
5762
|
_ref$testID = _ref.testID,
|
|
5763
5763
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5764
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5764
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5765
5765
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5766
5766
|
paddingX: {
|
|
5767
5767
|
base: 'kitt.2',
|
|
@@ -5774,7 +5774,7 @@ function AutocompleteOption(_ref) {
|
|
|
5774
5774
|
}));
|
|
5775
5775
|
}
|
|
5776
5776
|
|
|
5777
|
-
var _excluded$
|
|
5777
|
+
var _excluded$z = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
|
|
5778
5778
|
_excluded2$3 = ["onClick", "onPress"],
|
|
5779
5779
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5780
5780
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5814,7 +5814,7 @@ function Autocomplete(_ref) {
|
|
|
5814
5814
|
_ref$zIndex = _ref.zIndex,
|
|
5815
5815
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5816
5816
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5817
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5817
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5818
5818
|
var childrenArray = Children.toArray(children);
|
|
5819
5819
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5820
5820
|
return {
|
|
@@ -6029,7 +6029,7 @@ function getBorderColor$1(_ref) {
|
|
|
6029
6029
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
6030
6030
|
}
|
|
6031
6031
|
|
|
6032
|
-
var _excluded$
|
|
6032
|
+
var _excluded$y = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
6033
6033
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6034
6034
|
var checked = _ref.checked,
|
|
6035
6035
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -6039,7 +6039,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6039
6039
|
onChange = _ref.onChange,
|
|
6040
6040
|
onBlur = _ref.onBlur,
|
|
6041
6041
|
onFocus = _ref.onFocus,
|
|
6042
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6042
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
6043
6043
|
var theme = useTheme();
|
|
6044
6044
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
6045
6045
|
hitSlop: hitSlop
|
|
@@ -6357,7 +6357,7 @@ function PartContainer(_ref) {
|
|
|
6357
6357
|
});
|
|
6358
6358
|
}
|
|
6359
6359
|
|
|
6360
|
-
var _excluded$
|
|
6360
|
+
var _excluded$x = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6361
6361
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6362
6362
|
var id = _ref.id,
|
|
6363
6363
|
value = _ref.value,
|
|
@@ -6375,7 +6375,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6375
6375
|
onBlur = _ref.onBlur,
|
|
6376
6376
|
onFocus = _ref.onFocus,
|
|
6377
6377
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
6378
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6378
|
+
_objectWithoutProperties(_ref, _excluded$x);
|
|
6379
6379
|
var monthRef = useRef(null);
|
|
6380
6380
|
var yearRef = useRef(null);
|
|
6381
6381
|
var defaultValue = value;
|
|
@@ -6584,7 +6584,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6584
6584
|
});
|
|
6585
6585
|
});
|
|
6586
6586
|
|
|
6587
|
-
var _excluded$
|
|
6587
|
+
var _excluded$w = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
6588
6588
|
var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6589
6589
|
var onBlur = _ref.onBlur,
|
|
6590
6590
|
onFocus = _ref.onFocus,
|
|
@@ -6593,7 +6593,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6593
6593
|
isDefaultVisible = _ref.isDefaultVisible,
|
|
6594
6594
|
value = _ref.value,
|
|
6595
6595
|
_onChange = _ref.onChange,
|
|
6596
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6596
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
6597
6597
|
var _useState = useState(false),
|
|
6598
6598
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6599
6599
|
isFocused = _useState2[0],
|
|
@@ -6665,7 +6665,7 @@ function PlatformDateTimePicker(_ref) {
|
|
|
6665
6665
|
});
|
|
6666
6666
|
}
|
|
6667
6667
|
|
|
6668
|
-
var _excluded$
|
|
6668
|
+
var _excluded$v = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
6669
6669
|
function ModalTitle(_ref) {
|
|
6670
6670
|
var children = _ref.children;
|
|
6671
6671
|
return /*#__PURE__*/jsx(CardModal.Header, {
|
|
@@ -6679,7 +6679,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6679
6679
|
validateButtonLabel = _ref2.validateButtonLabel,
|
|
6680
6680
|
onClose = _ref2.onClose,
|
|
6681
6681
|
onChange = _ref2.onChange,
|
|
6682
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6682
|
+
props = _objectWithoutProperties(_ref2, _excluded$v);
|
|
6683
6683
|
var _useState = useState(value),
|
|
6684
6684
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6685
6685
|
currentValue = _useState2[0],
|
|
@@ -6725,7 +6725,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6725
6725
|
});
|
|
6726
6726
|
}
|
|
6727
6727
|
|
|
6728
|
-
var _excluded$
|
|
6728
|
+
var _excluded$u = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
6729
6729
|
var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6730
6730
|
var value = _ref.value,
|
|
6731
6731
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6739,7 +6739,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6739
6739
|
onChange = _ref.onChange,
|
|
6740
6740
|
onFocus = _ref.onFocus,
|
|
6741
6741
|
onBlur = _ref.onBlur,
|
|
6742
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6742
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
6743
6743
|
var _useState = useState(isDefaultVisible),
|
|
6744
6744
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6745
6745
|
isPickerUIVisible = _useState2[0],
|
|
@@ -6786,7 +6786,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6786
6786
|
});
|
|
6787
6787
|
});
|
|
6788
6788
|
|
|
6789
|
-
var _excluded$
|
|
6789
|
+
var _excluded$t = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
6790
6790
|
var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6791
6791
|
var value = _ref.value,
|
|
6792
6792
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6794,7 +6794,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6794
6794
|
pickerDefaultDate = _ref.pickerDefaultDate,
|
|
6795
6795
|
onChange = _ref.onChange,
|
|
6796
6796
|
onBlur = _ref.onBlur,
|
|
6797
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6797
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6798
6798
|
if (Platform.OS === 'android') {
|
|
6799
6799
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
6800
6800
|
ref: ref,
|
|
@@ -6816,14 +6816,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6816
6816
|
}, props));
|
|
6817
6817
|
});
|
|
6818
6818
|
|
|
6819
|
-
var _excluded$
|
|
6819
|
+
var _excluded$s = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
6820
6820
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6821
6821
|
var _ref$fillMode = _ref.fillMode,
|
|
6822
6822
|
fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
|
|
6823
6823
|
enterKeyHint = _ref.enterKeyHint,
|
|
6824
6824
|
value = _ref.value,
|
|
6825
6825
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
6826
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6826
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6827
6827
|
// in apps, final-form can give a string value that will break the component
|
|
6828
6828
|
var currentValue = value || undefined;
|
|
6829
6829
|
if (fillMode === 'keyboard') {
|
|
@@ -6939,10 +6939,10 @@ function ImagePicker(_ref) {
|
|
|
6939
6939
|
});
|
|
6940
6940
|
}
|
|
6941
6941
|
|
|
6942
|
-
var _excluded$
|
|
6942
|
+
var _excluded$r = ["children"];
|
|
6943
6943
|
function ListItemContent(_ref) {
|
|
6944
6944
|
var children = _ref.children,
|
|
6945
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6945
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
6946
6946
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6947
6947
|
alignSelf: "center",
|
|
6948
6948
|
flexBasis: "0%",
|
|
@@ -6953,14 +6953,14 @@ function ListItemContent(_ref) {
|
|
|
6953
6953
|
}));
|
|
6954
6954
|
}
|
|
6955
6955
|
|
|
6956
|
-
var _excluded$
|
|
6956
|
+
var _excluded$q = ["children", "side"],
|
|
6957
6957
|
_excluded2$2 = ["children", "align"];
|
|
6958
6958
|
// Handles the vertical alignment of the side elements of the list item
|
|
6959
6959
|
function ListItemSideContainer(_ref) {
|
|
6960
6960
|
var children = _ref.children,
|
|
6961
6961
|
_ref$side = _ref.side,
|
|
6962
6962
|
side = _ref$side === void 0 ? 'left' : _ref$side,
|
|
6963
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6963
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
6964
6964
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6965
6965
|
flexDirection: "row",
|
|
6966
6966
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -6981,7 +6981,7 @@ function ListItemSideContent(_ref2) {
|
|
|
6981
6981
|
}));
|
|
6982
6982
|
}
|
|
6983
6983
|
|
|
6984
|
-
var _excluded$
|
|
6984
|
+
var _excluded$p = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
6985
6985
|
function ListItem(_ref) {
|
|
6986
6986
|
var children = _ref.children,
|
|
6987
6987
|
withPadding = _ref.withPadding,
|
|
@@ -6989,7 +6989,7 @@ function ListItem(_ref) {
|
|
|
6989
6989
|
left = _ref.left,
|
|
6990
6990
|
right = _ref.right,
|
|
6991
6991
|
onPress = _ref.onPress,
|
|
6992
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6992
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
6993
6993
|
var Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
6994
6994
|
var wrapperProps = onPress ? _objectSpread({
|
|
6995
6995
|
accessibilityRole: 'button',
|
|
@@ -7022,10 +7022,10 @@ ListItem.Content = ListItemContent;
|
|
|
7022
7022
|
ListItem.SideContent = ListItemSideContent;
|
|
7023
7023
|
ListItem.SideContainer = ListItemSideContainer;
|
|
7024
7024
|
|
|
7025
|
-
var _excluded$
|
|
7025
|
+
var _excluded$o = ["title"];
|
|
7026
7026
|
function BottomSheetActionsItem(_ref) {
|
|
7027
7027
|
var title = _ref.title,
|
|
7028
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7028
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
7029
7029
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
7030
7030
|
children: /*#__PURE__*/jsx(ListItem, {
|
|
7031
7031
|
withPadding: true,
|
|
@@ -7108,6 +7108,126 @@ function FilePicker(_ref) {
|
|
|
7108
7108
|
});
|
|
7109
7109
|
}
|
|
7110
7110
|
|
|
7111
|
+
function InputAddressOption(_ref) {
|
|
7112
|
+
var item = _ref.item,
|
|
7113
|
+
itemToMainText = _ref.itemToMainText,
|
|
7114
|
+
itemToSecondaryText = _ref.itemToSecondaryText;
|
|
7115
|
+
var sharedTransform = {
|
|
7116
|
+
style: {
|
|
7117
|
+
transform: 'translateY(4px)'
|
|
7118
|
+
}
|
|
7119
|
+
};
|
|
7120
|
+
var mainText = itemToMainText(item);
|
|
7121
|
+
var secondaryText = itemToSecondaryText(item);
|
|
7122
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7123
|
+
item: item,
|
|
7124
|
+
testID: "kitt.InputAddressOption.item",
|
|
7125
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
7126
|
+
space: "kitt.2",
|
|
7127
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
7128
|
+
_web: sharedTransform,
|
|
7129
|
+
_ios: sharedTransform,
|
|
7130
|
+
_android: sharedTransform,
|
|
7131
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7132
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7133
|
+
color: "black"
|
|
7134
|
+
})
|
|
7135
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7136
|
+
flexShrink: 1,
|
|
7137
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7138
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7139
|
+
variant: "bold",
|
|
7140
|
+
children: mainText
|
|
7141
|
+
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7142
|
+
color: "black-light",
|
|
7143
|
+
variant: "bold",
|
|
7144
|
+
children: [' ', secondaryText]
|
|
7145
|
+
}) : null]
|
|
7146
|
+
})
|
|
7147
|
+
})]
|
|
7148
|
+
})
|
|
7149
|
+
});
|
|
7150
|
+
}
|
|
7151
|
+
|
|
7152
|
+
function InputAddressOptionLegacy(_ref) {
|
|
7153
|
+
var item = _ref.item;
|
|
7154
|
+
var sharedTransform = {
|
|
7155
|
+
style: {
|
|
7156
|
+
transform: 'translateY(4px)'
|
|
7157
|
+
}
|
|
7158
|
+
};
|
|
7159
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7160
|
+
item: item,
|
|
7161
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7162
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
7163
|
+
space: "kitt.2",
|
|
7164
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
7165
|
+
_web: sharedTransform,
|
|
7166
|
+
_ios: sharedTransform,
|
|
7167
|
+
_android: sharedTransform,
|
|
7168
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7169
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7170
|
+
color: "black"
|
|
7171
|
+
})
|
|
7172
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7173
|
+
flexShrink: 1,
|
|
7174
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7175
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7176
|
+
variant: "bold",
|
|
7177
|
+
children: item.structured_formatting.main_text
|
|
7178
|
+
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7179
|
+
color: "black-light",
|
|
7180
|
+
variant: "bold",
|
|
7181
|
+
children: [' ', item.structured_formatting.secondary_text]
|
|
7182
|
+
}) : null]
|
|
7183
|
+
})
|
|
7184
|
+
})]
|
|
7185
|
+
})
|
|
7186
|
+
});
|
|
7187
|
+
}
|
|
7188
|
+
|
|
7189
|
+
var _excluded$n = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "itemToMainText", "itemToSecondaryText", "itemToKey"];
|
|
7190
|
+
function InputAddress(_ref) {
|
|
7191
|
+
var errorElement = _ref.errorElement,
|
|
7192
|
+
initialValue = _ref.initialValue,
|
|
7193
|
+
emptyResultsElement = _ref.emptyResultsElement,
|
|
7194
|
+
_onChange = _ref.onChange,
|
|
7195
|
+
items = _ref.items,
|
|
7196
|
+
isLoading = _ref.isLoading,
|
|
7197
|
+
hasError = _ref.hasError,
|
|
7198
|
+
_onInputChange = _ref.onInputChange,
|
|
7199
|
+
onSelectItem = _ref.onSelectItem,
|
|
7200
|
+
convertInitialValue = _ref.convertInitialValue,
|
|
7201
|
+
itemToMainText = _ref.itemToMainText,
|
|
7202
|
+
itemToSecondaryText = _ref.itemToSecondaryText,
|
|
7203
|
+
itemToKey = _ref.itemToKey,
|
|
7204
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
7205
|
+
var formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
7206
|
+
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
7207
|
+
initialValue: formattedInitialValue,
|
|
7208
|
+
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
7209
|
+
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
7210
|
+
color: "kitt.black"
|
|
7211
|
+
}) : undefined,
|
|
7212
|
+
errorElement: hasError ? errorElement : null,
|
|
7213
|
+
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7214
|
+
onInputChange: function (value) {
|
|
7215
|
+
return _onInputChange(value);
|
|
7216
|
+
},
|
|
7217
|
+
onChange: function (item) {
|
|
7218
|
+
return onSelectItem(item, _onChange);
|
|
7219
|
+
},
|
|
7220
|
+
children: items.map(function (item) {
|
|
7221
|
+
return /*#__PURE__*/jsx(InputAddressOption, {
|
|
7222
|
+
item: item,
|
|
7223
|
+
itemToMainText: itemToMainText,
|
|
7224
|
+
itemToSecondaryText: itemToSecondaryText
|
|
7225
|
+
}, itemToKey(item));
|
|
7226
|
+
})
|
|
7227
|
+
}));
|
|
7228
|
+
}
|
|
7229
|
+
InputAddress.Option = InputAddressOptionLegacy;
|
|
7230
|
+
|
|
7111
7231
|
var GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
7112
7232
|
function GoogleMapsApiKeyProvider(_ref) {
|
|
7113
7233
|
var children = _ref.children,
|
|
@@ -7561,43 +7681,6 @@ function useGoogleMapsAutocomplete() {
|
|
|
7561
7681
|
return context;
|
|
7562
7682
|
}
|
|
7563
7683
|
|
|
7564
|
-
function InputAddressOption(_ref) {
|
|
7565
|
-
var item = _ref.item;
|
|
7566
|
-
var sharedTransform = {
|
|
7567
|
-
style: {
|
|
7568
|
-
transform: 'translateY(4px)'
|
|
7569
|
-
}
|
|
7570
|
-
};
|
|
7571
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7572
|
-
item: item,
|
|
7573
|
-
testID: "kitt.InputAddressOption.item",
|
|
7574
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
7575
|
-
space: "kitt.2",
|
|
7576
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
7577
|
-
_web: sharedTransform,
|
|
7578
|
-
_ios: sharedTransform,
|
|
7579
|
-
_android: sharedTransform,
|
|
7580
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7581
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7582
|
-
color: "black"
|
|
7583
|
-
})
|
|
7584
|
-
}), /*#__PURE__*/jsx(View, {
|
|
7585
|
-
flexShrink: 1,
|
|
7586
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7587
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7588
|
-
variant: "bold",
|
|
7589
|
-
children: item.structured_formatting.main_text
|
|
7590
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7591
|
-
color: "black-light",
|
|
7592
|
-
variant: "bold",
|
|
7593
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
7594
|
-
}) : null]
|
|
7595
|
-
})
|
|
7596
|
-
})]
|
|
7597
|
-
})
|
|
7598
|
-
});
|
|
7599
|
-
}
|
|
7600
|
-
|
|
7601
7684
|
function defaultItemToString(item) {
|
|
7602
7685
|
if (!item) return '';
|
|
7603
7686
|
return item.description;
|
|
@@ -7630,7 +7713,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7630
7713
|
}
|
|
7631
7714
|
|
|
7632
7715
|
var _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
7633
|
-
function
|
|
7716
|
+
function InputAddressLegacy(_ref) {
|
|
7634
7717
|
var initialValue = _ref.initialValue,
|
|
7635
7718
|
_ref$itemToString = _ref.itemToString,
|
|
7636
7719
|
itemToString = _ref$itemToString === void 0 ? defaultItemToString : _ref$itemToString,
|
|
@@ -7664,13 +7747,13 @@ function InputAddress(_ref) {
|
|
|
7664
7747
|
onSelectItem(v, _onChange);
|
|
7665
7748
|
},
|
|
7666
7749
|
children: state.items.map(function (item) {
|
|
7667
|
-
return /*#__PURE__*/jsx(
|
|
7750
|
+
return /*#__PURE__*/jsx(InputAddressOptionLegacy, {
|
|
7668
7751
|
item: item
|
|
7669
7752
|
}, item.place_id);
|
|
7670
7753
|
})
|
|
7671
7754
|
}));
|
|
7672
7755
|
}
|
|
7673
|
-
|
|
7756
|
+
InputAddressLegacy.Option = InputAddressOptionLegacy;
|
|
7674
7757
|
|
|
7675
7758
|
var InputEmail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7676
7759
|
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
@@ -14667,5 +14750,5 @@ function VerticalSteps(_ref) {
|
|
|
14667
14750
|
VerticalSteps.Step = Step;
|
|
14668
14751
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14669
14752
|
|
|
14670
|
-
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, FlatList as 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 };
|
|
14753
|
+
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, FlatList as 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 };
|
|
14671
14754
|
//# sourceMappingURL=index.es.js.map
|