@ornikar/kitt-universal 31.4.0 → 32.0.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 +14 -0
- package/dist/definitions/CardModal/CardModalAnimation/OpacityAnimation.d.ts +8 -0
- package/dist/definitions/CardModal/CardModalAnimation/OpacityAnimation.d.ts.map +1 -0
- package/dist/definitions/CardModal/CardModalAnimation/{NativeRotationAnimation.d.ts → RotationAnimation.d.ts} +3 -3
- package/dist/definitions/CardModal/CardModalAnimation/RotationAnimation.d.ts.map +1 -0
- package/dist/definitions/DialogModal/DialogModalAnimation/NativeOpacityAnimation.d.ts.map +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/NativeRotationAnimation.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts +12 -8
- 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/index.d.ts +4 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +161 -78
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +161 -78
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +96 -13
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +0 -8
- package/dist/index-node-22.17.cjs.web.js +261 -104
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +96 -14
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +0 -8
- package/dist/index-node-22.17.es.web.mjs +261 -105
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +162 -78
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +283 -126
- package/dist/index.es.web.js.map +1 -1
- package/dist/styles.css +0 -8
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/CardModal/CardModalAnimation/NativeOpacityAnimation.d.ts +0 -8
- package/dist/definitions/CardModal/CardModalAnimation/NativeOpacityAnimation.d.ts.map +0 -1
- package/dist/definitions/CardModal/CardModalAnimation/NativeRotationAnimation.d.ts.map +0 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts +0 -4
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +0 -1
|
@@ -2849,7 +2849,7 @@ function ActionCardDisabled({
|
|
|
2849
2849
|
});
|
|
2850
2850
|
}
|
|
2851
2851
|
|
|
2852
|
-
const _excluded$
|
|
2852
|
+
const _excluded$T = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2853
2853
|
function ActionCard(_ref) {
|
|
2854
2854
|
let {
|
|
2855
2855
|
children,
|
|
@@ -2861,7 +2861,7 @@ function ActionCard(_ref) {
|
|
|
2861
2861
|
isPressed,
|
|
2862
2862
|
isFocused
|
|
2863
2863
|
} = _ref,
|
|
2864
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2864
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
2865
2865
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2866
2866
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2867
2867
|
borderRadius: borderRadius,
|
|
@@ -3170,7 +3170,7 @@ const getTypographyTypeWithAncestorValue = (type, typographyTypeInContext) => {
|
|
|
3170
3170
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3171
3171
|
};
|
|
3172
3172
|
|
|
3173
|
-
const _excluded$
|
|
3173
|
+
const _excluded$S = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3174
3174
|
const TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3175
3175
|
const TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3176
3176
|
const TypographyVariantContext = /*#__PURE__*/createContext(undefined);
|
|
@@ -3298,7 +3298,7 @@ const TypographyBase = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3298
3298
|
variant,
|
|
3299
3299
|
color
|
|
3300
3300
|
} = _ref,
|
|
3301
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
3301
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$S);
|
|
3302
3302
|
const sx = useSx();
|
|
3303
3303
|
|
|
3304
3304
|
// ancestors
|
|
@@ -3459,14 +3459,14 @@ function Icon({
|
|
|
3459
3459
|
});
|
|
3460
3460
|
}
|
|
3461
3461
|
|
|
3462
|
-
const _excluded$
|
|
3462
|
+
const _excluded$R = ["color", "size"],
|
|
3463
3463
|
_excluded2$5 = ["color"];
|
|
3464
3464
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3465
3465
|
let {
|
|
3466
3466
|
color,
|
|
3467
3467
|
size
|
|
3468
3468
|
} = _ref,
|
|
3469
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3469
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
3470
3470
|
const colorValue = getTypographyColorValue(color);
|
|
3471
3471
|
const sx = useSx();
|
|
3472
3472
|
const {
|
|
@@ -3509,7 +3509,7 @@ const getButtonTextColorByType = (type, variant, isHovered, isPressed, isDisable
|
|
|
3509
3509
|
return `${baseKey}.default`;
|
|
3510
3510
|
};
|
|
3511
3511
|
|
|
3512
|
-
const _excluded$
|
|
3512
|
+
const _excluded$Q = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3513
3513
|
function ButtonContentChildren({
|
|
3514
3514
|
type,
|
|
3515
3515
|
icon,
|
|
@@ -3609,7 +3609,7 @@ function ButtonContent(_ref) {
|
|
|
3609
3609
|
innerSpacing,
|
|
3610
3610
|
size
|
|
3611
3611
|
} = _ref,
|
|
3612
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3612
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
3613
3613
|
const color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3614
3614
|
return /*#__PURE__*/jsx(View, {
|
|
3615
3615
|
_web: {
|
|
@@ -3931,7 +3931,7 @@ function LoaderIcon({
|
|
|
3931
3931
|
});
|
|
3932
3932
|
}
|
|
3933
3933
|
|
|
3934
|
-
const _excluded$
|
|
3934
|
+
const _excluded$P = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3935
3935
|
const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
3936
3936
|
let {
|
|
3937
3937
|
as,
|
|
@@ -3943,7 +3943,7 @@ const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3943
3943
|
medium: false
|
|
3944
3944
|
}
|
|
3945
3945
|
} = _ref,
|
|
3946
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3946
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
3947
3947
|
const [isLoading, setIsLoading] = useState(false);
|
|
3948
3948
|
const mountedRef = useRef(false);
|
|
3949
3949
|
// securing the loading state with a ref to avoid user action between rerenders
|
|
@@ -3994,7 +3994,7 @@ function ActionsButton(_ref) {
|
|
|
3994
3994
|
}, props));
|
|
3995
3995
|
}
|
|
3996
3996
|
|
|
3997
|
-
const _excluded$
|
|
3997
|
+
const _excluded$O = ["children", "layout", "reversed"];
|
|
3998
3998
|
function getCurrentLayout(layout) {
|
|
3999
3999
|
if (!layout) return {
|
|
4000
4000
|
base: 'stretch',
|
|
@@ -4027,7 +4027,7 @@ function Actions(_ref) {
|
|
|
4027
4027
|
base: false
|
|
4028
4028
|
}
|
|
4029
4029
|
} = _ref,
|
|
4030
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4030
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
4031
4031
|
const shouldReverse = typeof reversed === 'boolean' ? {
|
|
4032
4032
|
base: !!reversed
|
|
4033
4033
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -4082,7 +4082,7 @@ function getInitials(firstname, lastname) {
|
|
|
4082
4082
|
return `${firstname[0]}${lastname[0]}`.toUpperCase();
|
|
4083
4083
|
}
|
|
4084
4084
|
|
|
4085
|
-
const _excluded$
|
|
4085
|
+
const _excluded$N = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
4086
4086
|
function AvatarContent({
|
|
4087
4087
|
size,
|
|
4088
4088
|
src,
|
|
@@ -4148,7 +4148,7 @@ function Avatar(_ref) {
|
|
|
4148
4148
|
dark,
|
|
4149
4149
|
disabled
|
|
4150
4150
|
} = _ref,
|
|
4151
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4151
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
4152
4152
|
const currentSize = getCurrentSize({
|
|
4153
4153
|
size,
|
|
4154
4154
|
sizeVariant
|
|
@@ -4186,7 +4186,7 @@ function Avatar(_ref) {
|
|
|
4186
4186
|
});
|
|
4187
4187
|
}
|
|
4188
4188
|
|
|
4189
|
-
const _excluded$
|
|
4189
|
+
const _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
4190
4190
|
function BottomSheetComp(_ref, ref) {
|
|
4191
4191
|
let {
|
|
4192
4192
|
children: Content,
|
|
@@ -4196,7 +4196,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
4196
4196
|
enableDynamicSizing = true,
|
|
4197
4197
|
snapPoints = ['100%']
|
|
4198
4198
|
} = _ref,
|
|
4199
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4199
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
4200
4200
|
const {
|
|
4201
4201
|
top
|
|
4202
4202
|
} = useSafeAreaInsets();
|
|
@@ -4356,7 +4356,7 @@ const CardModalRotationContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4356
4356
|
}));
|
|
4357
4357
|
});
|
|
4358
4358
|
|
|
4359
|
-
function
|
|
4359
|
+
function OpacityAnimation({
|
|
4360
4360
|
visible,
|
|
4361
4361
|
children,
|
|
4362
4362
|
onExited
|
|
@@ -4398,7 +4398,7 @@ function NativeOpacityAnimation$2({
|
|
|
4398
4398
|
});
|
|
4399
4399
|
}
|
|
4400
4400
|
|
|
4401
|
-
function
|
|
4401
|
+
function RotationAnimation({
|
|
4402
4402
|
visible,
|
|
4403
4403
|
children,
|
|
4404
4404
|
onEntered,
|
|
@@ -4495,14 +4495,14 @@ function CardModalAnimation({
|
|
|
4495
4495
|
flexGrow: 1,
|
|
4496
4496
|
justifyContent: "center",
|
|
4497
4497
|
alignItems: "center",
|
|
4498
|
-
children: [/*#__PURE__*/jsx(
|
|
4498
|
+
children: [/*#__PURE__*/jsx(OpacityAnimation, {
|
|
4499
4499
|
visible: isContentVisible,
|
|
4500
4500
|
onExited: handleAnimationExited,
|
|
4501
4501
|
children: /*#__PURE__*/jsx(Overlay, {
|
|
4502
4502
|
onPress: onClose
|
|
4503
4503
|
})
|
|
4504
4504
|
}), /*#__PURE__*/jsx(CardModalRotationContainer, {
|
|
4505
|
-
children: /*#__PURE__*/jsx(
|
|
4505
|
+
children: /*#__PURE__*/jsx(RotationAnimation, {
|
|
4506
4506
|
visible: isContentVisible,
|
|
4507
4507
|
onExited: handleAnimationExited,
|
|
4508
4508
|
onEntered: onEntered,
|
|
@@ -4513,7 +4513,7 @@ function CardModalAnimation({
|
|
|
4513
4513
|
});
|
|
4514
4514
|
}
|
|
4515
4515
|
|
|
4516
|
-
const _excluded$
|
|
4516
|
+
const _excluded$L = ["children", "visible", "onClose", "onExited"];
|
|
4517
4517
|
function CardModalBehaviour(_ref) {
|
|
4518
4518
|
let {
|
|
4519
4519
|
children,
|
|
@@ -4521,7 +4521,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4521
4521
|
onClose,
|
|
4522
4522
|
onExited
|
|
4523
4523
|
} = _ref,
|
|
4524
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4524
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
4525
4525
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
4526
4526
|
useEffect(() => {
|
|
4527
4527
|
if (visible === true) {
|
|
@@ -4543,13 +4543,13 @@ function CardModalBehaviour(_ref) {
|
|
|
4543
4543
|
});
|
|
4544
4544
|
}
|
|
4545
4545
|
|
|
4546
|
-
const _excluded$
|
|
4546
|
+
const _excluded$K = ["children", "padding"];
|
|
4547
4547
|
function CardModalBody(_ref) {
|
|
4548
4548
|
let {
|
|
4549
4549
|
children,
|
|
4550
4550
|
padding = 'kitt.4'
|
|
4551
4551
|
} = _ref,
|
|
4552
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4552
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4553
4553
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4554
4554
|
showsVerticalScrollIndicator: false,
|
|
4555
4555
|
_contentContainerStyle: {
|
|
@@ -4560,7 +4560,7 @@ function CardModalBody(_ref) {
|
|
|
4560
4560
|
}));
|
|
4561
4561
|
}
|
|
4562
4562
|
|
|
4563
|
-
const _excluded$
|
|
4563
|
+
const _excluded$J = ["children", "padding", "hasSeparator"];
|
|
4564
4564
|
function CardModalFooter(_ref) {
|
|
4565
4565
|
let {
|
|
4566
4566
|
children,
|
|
@@ -4570,7 +4570,7 @@ function CardModalFooter(_ref) {
|
|
|
4570
4570
|
},
|
|
4571
4571
|
hasSeparator = true
|
|
4572
4572
|
} = _ref,
|
|
4573
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4573
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4574
4574
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4575
4575
|
marginTop: "kitt.2",
|
|
4576
4576
|
padding: padding,
|
|
@@ -4614,7 +4614,7 @@ const getButtonTypeAndVariant = iconColor => {
|
|
|
4614
4614
|
}
|
|
4615
4615
|
};
|
|
4616
4616
|
|
|
4617
|
-
const _excluded$
|
|
4617
|
+
const _excluded$I = ["color", "ariaLabel"];
|
|
4618
4618
|
/**
|
|
4619
4619
|
* @deprecated IconButton should only be used as a navigation button
|
|
4620
4620
|
* Other use cases should use a <Button> component with an icon
|
|
@@ -4624,7 +4624,7 @@ function IconButton(_ref) {
|
|
|
4624
4624
|
color = 'black',
|
|
4625
4625
|
ariaLabel
|
|
4626
4626
|
} = _ref,
|
|
4627
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4627
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4628
4628
|
const {
|
|
4629
4629
|
type: legacyColorToType,
|
|
4630
4630
|
variant: legacyColorToVariant
|
|
@@ -4726,7 +4726,7 @@ function CardModalHeader(props) {
|
|
|
4726
4726
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4727
4727
|
}
|
|
4728
4728
|
|
|
4729
|
-
const _excluded$
|
|
4729
|
+
const _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
|
|
4730
4730
|
function CardModal(_ref) {
|
|
4731
4731
|
let {
|
|
4732
4732
|
backgroundColor = 'kitt.uiBackgroundLight',
|
|
@@ -4734,7 +4734,7 @@ function CardModal(_ref) {
|
|
|
4734
4734
|
withoutShadow,
|
|
4735
4735
|
children
|
|
4736
4736
|
} = _ref,
|
|
4737
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4737
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4738
4738
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4739
4739
|
overflow: "hidden",
|
|
4740
4740
|
backgroundColor: backgroundColor,
|
|
@@ -4989,13 +4989,13 @@ function ChoiceItemContainer({
|
|
|
4989
4989
|
}));
|
|
4990
4990
|
}
|
|
4991
4991
|
|
|
4992
|
-
const _excluded$
|
|
4992
|
+
const _excluded$G = ["direction", "contentContainerStyle"];
|
|
4993
4993
|
function ChoicesContainer(_ref) {
|
|
4994
4994
|
let {
|
|
4995
4995
|
direction,
|
|
4996
4996
|
contentContainerStyle
|
|
4997
4997
|
} = _ref,
|
|
4998
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4998
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4999
4999
|
if (direction === 'row') {
|
|
5000
5000
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
5001
5001
|
horizontal: true,
|
|
@@ -5074,10 +5074,12 @@ function NativeOpacityAnimation$1({
|
|
|
5074
5074
|
}) {
|
|
5075
5075
|
const theme = useTheme();
|
|
5076
5076
|
const hasRunAnimationRef = useRef(false);
|
|
5077
|
-
|
|
5077
|
+
useEffect(() => {
|
|
5078
5078
|
if (visible) {
|
|
5079
5079
|
hasRunAnimationRef.current = true;
|
|
5080
5080
|
}
|
|
5081
|
+
}, [visible]);
|
|
5082
|
+
function handleAnimationFinished() {
|
|
5081
5083
|
if (!visible && hasRunAnimationRef.current) {
|
|
5082
5084
|
onExited();
|
|
5083
5085
|
}
|
|
@@ -5102,7 +5104,7 @@ function NativeOpacityAnimation$1({
|
|
|
5102
5104
|
runOnJS(handleAnimationFinished)();
|
|
5103
5105
|
})
|
|
5104
5106
|
};
|
|
5105
|
-
});
|
|
5107
|
+
}, [theme, visible, handleAnimationFinished]);
|
|
5106
5108
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
5107
5109
|
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
5108
5110
|
children: children
|
|
@@ -5118,10 +5120,14 @@ function NativeRotationAnimation({
|
|
|
5118
5120
|
const theme = useTheme();
|
|
5119
5121
|
const hasRunAnimationRef = useRef(false);
|
|
5120
5122
|
const rotation = useSharedValue(0.8);
|
|
5123
|
+
useEffect(() => {
|
|
5124
|
+
if (visible) {
|
|
5125
|
+
hasRunAnimationRef.current = true;
|
|
5126
|
+
}
|
|
5127
|
+
}, [visible]);
|
|
5121
5128
|
function handleAnimationFinished() {
|
|
5122
5129
|
if (visible) {
|
|
5123
5130
|
if (onEntered) onEntered();
|
|
5124
|
-
hasRunAnimationRef.current = true;
|
|
5125
5131
|
}
|
|
5126
5132
|
if (!visible && hasRunAnimationRef.current) onExited();
|
|
5127
5133
|
}
|
|
@@ -5157,7 +5163,7 @@ function NativeRotationAnimation({
|
|
|
5157
5163
|
rotateZ: `${rotation.value}deg`
|
|
5158
5164
|
}]
|
|
5159
5165
|
};
|
|
5160
|
-
});
|
|
5166
|
+
}, [theme, visible, rotation, handleAnimationFinished]);
|
|
5161
5167
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
5162
5168
|
style: [animatedStyle],
|
|
5163
5169
|
children: children
|
|
@@ -5226,7 +5232,7 @@ function DialogModalAnimation({
|
|
|
5226
5232
|
});
|
|
5227
5233
|
}
|
|
5228
5234
|
|
|
5229
|
-
const _excluded$
|
|
5235
|
+
const _excluded$F = ["children", "visible", "onClose", "onExited"];
|
|
5230
5236
|
function DialogModalBehaviour(_ref) {
|
|
5231
5237
|
let {
|
|
5232
5238
|
children,
|
|
@@ -5234,7 +5240,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5234
5240
|
onClose,
|
|
5235
5241
|
onExited
|
|
5236
5242
|
} = _ref,
|
|
5237
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5243
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
5238
5244
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
5239
5245
|
useEffect(() => {
|
|
5240
5246
|
if (visible === true) {
|
|
@@ -5262,7 +5268,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5262
5268
|
});
|
|
5263
5269
|
}
|
|
5264
5270
|
|
|
5265
|
-
const _excluded$
|
|
5271
|
+
const _excluded$E = ["stretch"];
|
|
5266
5272
|
function DialogModal({
|
|
5267
5273
|
illustration,
|
|
5268
5274
|
title,
|
|
@@ -5304,7 +5310,7 @@ function DialogModalButton(_ref) {
|
|
|
5304
5310
|
let {
|
|
5305
5311
|
stretch = true
|
|
5306
5312
|
} = _ref,
|
|
5307
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5313
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
5308
5314
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5309
5315
|
stretch: stretch
|
|
5310
5316
|
}, props));
|
|
@@ -5338,7 +5344,7 @@ function Emoji({
|
|
|
5338
5344
|
});
|
|
5339
5345
|
}
|
|
5340
5346
|
|
|
5341
|
-
const _excluded$
|
|
5347
|
+
const _excluded$D = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5342
5348
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
5343
5349
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
5344
5350
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5350,7 +5356,7 @@ function ExternalAppLink(_ref) {
|
|
|
5350
5356
|
onPress,
|
|
5351
5357
|
onOpenAppError
|
|
5352
5358
|
} = _ref,
|
|
5353
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5359
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
5354
5360
|
const href = `${appScheme}:${appValue}`;
|
|
5355
5361
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({
|
|
5356
5362
|
href: href
|
|
@@ -5444,7 +5450,7 @@ function useOpenExternalLink(errorHandler) {
|
|
|
5444
5450
|
};
|
|
5445
5451
|
}
|
|
5446
5452
|
|
|
5447
|
-
const _excluded$
|
|
5453
|
+
const _excluded$C = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
5448
5454
|
function ExternalLink(_ref) {
|
|
5449
5455
|
let {
|
|
5450
5456
|
as: Component,
|
|
@@ -5454,7 +5460,7 @@ function ExternalLink(_ref) {
|
|
|
5454
5460
|
// eslint-disable-next-line no-console
|
|
5455
5461
|
onOpenLinkError = console.error
|
|
5456
5462
|
} = _ref,
|
|
5457
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5463
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5458
5464
|
const openExternalLink = useOpenExternalLink();
|
|
5459
5465
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5460
5466
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -5513,7 +5519,7 @@ function InputTextContainer({
|
|
|
5513
5519
|
});
|
|
5514
5520
|
}
|
|
5515
5521
|
|
|
5516
|
-
const _excluded$
|
|
5522
|
+
const _excluded$B = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5517
5523
|
const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5518
5524
|
let {
|
|
5519
5525
|
id,
|
|
@@ -5530,7 +5536,7 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5530
5536
|
height,
|
|
5531
5537
|
onSubmitEditing
|
|
5532
5538
|
} = _ref,
|
|
5533
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5539
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
5534
5540
|
const theme = useTheme();
|
|
5535
5541
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5536
5542
|
base: 'body-m'
|
|
@@ -5655,13 +5661,13 @@ function AutocompleteItemsListContainer({
|
|
|
5655
5661
|
});
|
|
5656
5662
|
}
|
|
5657
5663
|
|
|
5658
|
-
const _excluded$
|
|
5664
|
+
const _excluded$A = ["children", "testID"];
|
|
5659
5665
|
function AutocompleteOption(_ref) {
|
|
5660
5666
|
let {
|
|
5661
5667
|
children,
|
|
5662
5668
|
testID = 'kitt.Autocomplete.option'
|
|
5663
5669
|
} = _ref,
|
|
5664
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5670
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5665
5671
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5666
5672
|
paddingX: {
|
|
5667
5673
|
base: 'kitt.2',
|
|
@@ -5674,7 +5680,7 @@ function AutocompleteOption(_ref) {
|
|
|
5674
5680
|
}));
|
|
5675
5681
|
}
|
|
5676
5682
|
|
|
5677
|
-
const _excluded$
|
|
5683
|
+
const _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"],
|
|
5678
5684
|
_excluded2$3 = ["onClick", "onPress"],
|
|
5679
5685
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5680
5686
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5716,7 +5722,7 @@ function Autocomplete(_ref) {
|
|
|
5716
5722
|
zIndex = 1000,
|
|
5717
5723
|
maxItemContainerHeight
|
|
5718
5724
|
} = _ref,
|
|
5719
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5725
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5720
5726
|
const childrenArray = Children.toArray(children);
|
|
5721
5727
|
const items = childrenArray.filter(isReactElement).map(child => ({
|
|
5722
5728
|
child,
|
|
@@ -5937,7 +5943,7 @@ function getBorderColor$1({
|
|
|
5937
5943
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5938
5944
|
}
|
|
5939
5945
|
|
|
5940
|
-
const _excluded$
|
|
5946
|
+
const _excluded$y = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5941
5947
|
const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5942
5948
|
let {
|
|
5943
5949
|
checked,
|
|
@@ -5948,7 +5954,7 @@ const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5948
5954
|
onBlur,
|
|
5949
5955
|
onFocus
|
|
5950
5956
|
} = _ref,
|
|
5951
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5957
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5952
5958
|
const theme = useTheme();
|
|
5953
5959
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5954
5960
|
hitSlop: hitSlop
|
|
@@ -6277,7 +6283,7 @@ function PartContainer({
|
|
|
6277
6283
|
});
|
|
6278
6284
|
}
|
|
6279
6285
|
|
|
6280
|
-
const _excluded$
|
|
6286
|
+
const _excluded$x = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6281
6287
|
const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6282
6288
|
let {
|
|
6283
6289
|
id,
|
|
@@ -6297,7 +6303,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6297
6303
|
onFocus,
|
|
6298
6304
|
onSubmitEditing
|
|
6299
6305
|
} = _ref;
|
|
6300
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6306
|
+
_objectWithoutProperties(_ref, _excluded$x);
|
|
6301
6307
|
const monthRef = useRef(null);
|
|
6302
6308
|
const yearRef = useRef(null);
|
|
6303
6309
|
const defaultValue = value;
|
|
@@ -6498,7 +6504,7 @@ const PressableDateInputs = /*#__PURE__*/forwardRef(({
|
|
|
6498
6504
|
});
|
|
6499
6505
|
});
|
|
6500
6506
|
|
|
6501
|
-
const _excluded$
|
|
6507
|
+
const _excluded$w = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
6502
6508
|
const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6503
6509
|
let {
|
|
6504
6510
|
onBlur,
|
|
@@ -6509,7 +6515,7 @@ const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6509
6515
|
value,
|
|
6510
6516
|
onChange
|
|
6511
6517
|
} = _ref,
|
|
6512
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6518
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
6513
6519
|
const [isFocused, setIsFocused] = useState(false);
|
|
6514
6520
|
const [currentValue, setCurrentValue] = useState(value);
|
|
6515
6521
|
const handleClose = () => {
|
|
@@ -6575,7 +6581,7 @@ function PlatformDateTimePicker({
|
|
|
6575
6581
|
});
|
|
6576
6582
|
}
|
|
6577
6583
|
|
|
6578
|
-
const _excluded$
|
|
6584
|
+
const _excluded$v = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
6579
6585
|
function ModalTitle({
|
|
6580
6586
|
children
|
|
6581
6587
|
}) {
|
|
@@ -6592,7 +6598,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
6592
6598
|
onClose,
|
|
6593
6599
|
onChange
|
|
6594
6600
|
} = _ref,
|
|
6595
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6601
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6596
6602
|
const [currentValue, setCurrentValue] = useState(value);
|
|
6597
6603
|
|
|
6598
6604
|
// Prevent unsynced value between the modal and its parent state
|
|
@@ -6635,7 +6641,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
6635
6641
|
});
|
|
6636
6642
|
}
|
|
6637
6643
|
|
|
6638
|
-
const _excluded$
|
|
6644
|
+
const _excluded$u = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
6639
6645
|
const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6640
6646
|
let {
|
|
6641
6647
|
value,
|
|
@@ -6651,7 +6657,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6651
6657
|
onFocus,
|
|
6652
6658
|
onBlur
|
|
6653
6659
|
} = _ref,
|
|
6654
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6660
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
6655
6661
|
const [isPickerUIVisible, setIsPickerUIVisible] = useState(isDefaultVisible);
|
|
6656
6662
|
const [isFocused, setIsFocused] = useState(false);
|
|
6657
6663
|
const [currentValue, setCurrentValue] = useState(value);
|
|
@@ -6689,7 +6695,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6689
6695
|
});
|
|
6690
6696
|
});
|
|
6691
6697
|
|
|
6692
|
-
const _excluded$
|
|
6698
|
+
const _excluded$t = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
6693
6699
|
const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6694
6700
|
let {
|
|
6695
6701
|
value,
|
|
@@ -6699,7 +6705,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6699
6705
|
onChange,
|
|
6700
6706
|
onBlur
|
|
6701
6707
|
} = _ref,
|
|
6702
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6708
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6703
6709
|
if (Platform.OS === 'android') {
|
|
6704
6710
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
6705
6711
|
ref: ref,
|
|
@@ -6721,7 +6727,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6721
6727
|
}, props));
|
|
6722
6728
|
});
|
|
6723
6729
|
|
|
6724
|
-
const _excluded$
|
|
6730
|
+
const _excluded$s = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
6725
6731
|
const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6726
6732
|
let {
|
|
6727
6733
|
fillMode = 'native',
|
|
@@ -6729,7 +6735,7 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6729
6735
|
value,
|
|
6730
6736
|
onSubmitEditing
|
|
6731
6737
|
} = _ref,
|
|
6732
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6738
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6733
6739
|
// in apps, final-form can give a string value that will break the component
|
|
6734
6740
|
const currentValue = value || undefined;
|
|
6735
6741
|
if (fillMode === 'keyboard') {
|
|
@@ -6801,12 +6807,12 @@ function ImagePicker({
|
|
|
6801
6807
|
});
|
|
6802
6808
|
}
|
|
6803
6809
|
|
|
6804
|
-
const _excluded$
|
|
6810
|
+
const _excluded$r = ["children"];
|
|
6805
6811
|
function ListItemContent(_ref) {
|
|
6806
6812
|
let {
|
|
6807
6813
|
children
|
|
6808
6814
|
} = _ref,
|
|
6809
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6815
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
6810
6816
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6811
6817
|
alignSelf: "center",
|
|
6812
6818
|
flexBasis: "0%",
|
|
@@ -6817,7 +6823,7 @@ function ListItemContent(_ref) {
|
|
|
6817
6823
|
}));
|
|
6818
6824
|
}
|
|
6819
6825
|
|
|
6820
|
-
const _excluded$
|
|
6826
|
+
const _excluded$q = ["children", "side"],
|
|
6821
6827
|
_excluded2$2 = ["children", "align"];
|
|
6822
6828
|
// Handles the vertical alignment of the side elements of the list item
|
|
6823
6829
|
function ListItemSideContainer(_ref) {
|
|
@@ -6825,7 +6831,7 @@ function ListItemSideContainer(_ref) {
|
|
|
6825
6831
|
children,
|
|
6826
6832
|
side = 'left'
|
|
6827
6833
|
} = _ref,
|
|
6828
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6834
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
6829
6835
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6830
6836
|
flexDirection: "row",
|
|
6831
6837
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -6847,7 +6853,7 @@ function ListItemSideContent(_ref2) {
|
|
|
6847
6853
|
}));
|
|
6848
6854
|
}
|
|
6849
6855
|
|
|
6850
|
-
const _excluded$
|
|
6856
|
+
const _excluded$p = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
6851
6857
|
function ListItem(_ref) {
|
|
6852
6858
|
let {
|
|
6853
6859
|
children,
|
|
@@ -6857,7 +6863,7 @@ function ListItem(_ref) {
|
|
|
6857
6863
|
right,
|
|
6858
6864
|
onPress
|
|
6859
6865
|
} = _ref,
|
|
6860
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6866
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
6861
6867
|
const Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
6862
6868
|
const wrapperProps = onPress ? _objectSpread({
|
|
6863
6869
|
accessibilityRole: 'button',
|
|
@@ -6890,12 +6896,12 @@ ListItem.Content = ListItemContent;
|
|
|
6890
6896
|
ListItem.SideContent = ListItemSideContent;
|
|
6891
6897
|
ListItem.SideContainer = ListItemSideContainer;
|
|
6892
6898
|
|
|
6893
|
-
const _excluded$
|
|
6899
|
+
const _excluded$o = ["title"];
|
|
6894
6900
|
function BottomSheetActionsItem(_ref) {
|
|
6895
6901
|
let {
|
|
6896
6902
|
title
|
|
6897
6903
|
} = _ref,
|
|
6898
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6904
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
6899
6905
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
6900
6906
|
children: /*#__PURE__*/jsx(ListItem, {
|
|
6901
6907
|
withPadding: true,
|
|
@@ -6982,6 +6988,83 @@ function FilePicker({
|
|
|
6982
6988
|
});
|
|
6983
6989
|
}
|
|
6984
6990
|
|
|
6991
|
+
function InputAddressOption({
|
|
6992
|
+
item,
|
|
6993
|
+
mainText,
|
|
6994
|
+
secondaryText
|
|
6995
|
+
}) {
|
|
6996
|
+
const sharedTransform = {
|
|
6997
|
+
style: {
|
|
6998
|
+
transform: 'translateY(4px)'
|
|
6999
|
+
}
|
|
7000
|
+
};
|
|
7001
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7002
|
+
item: item,
|
|
7003
|
+
testID: "kitt.InputAddressOption.item",
|
|
7004
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
7005
|
+
space: "kitt.2",
|
|
7006
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
7007
|
+
_web: sharedTransform,
|
|
7008
|
+
_ios: sharedTransform,
|
|
7009
|
+
_android: sharedTransform,
|
|
7010
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7011
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7012
|
+
color: "black"
|
|
7013
|
+
})
|
|
7014
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7015
|
+
flexShrink: 1,
|
|
7016
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7017
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7018
|
+
variant: "bold",
|
|
7019
|
+
children: mainText
|
|
7020
|
+
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7021
|
+
color: "black-light",
|
|
7022
|
+
variant: "bold",
|
|
7023
|
+
children: [' ', secondaryText]
|
|
7024
|
+
}) : null]
|
|
7025
|
+
})
|
|
7026
|
+
})]
|
|
7027
|
+
})
|
|
7028
|
+
});
|
|
7029
|
+
}
|
|
7030
|
+
|
|
7031
|
+
const _excluded$n = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "renderItem"];
|
|
7032
|
+
function InputAddress(_ref) {
|
|
7033
|
+
let {
|
|
7034
|
+
errorElement,
|
|
7035
|
+
initialValue,
|
|
7036
|
+
emptyResultsElement,
|
|
7037
|
+
onChange,
|
|
7038
|
+
items,
|
|
7039
|
+
isLoading,
|
|
7040
|
+
hasError,
|
|
7041
|
+
onInputChange,
|
|
7042
|
+
onSelectItem,
|
|
7043
|
+
convertInitialValue,
|
|
7044
|
+
renderItem
|
|
7045
|
+
} = _ref,
|
|
7046
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
7047
|
+
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
7048
|
+
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
7049
|
+
initialValue: formattedInitialValue,
|
|
7050
|
+
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
7051
|
+
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
7052
|
+
color: "kitt.black"
|
|
7053
|
+
}) : undefined,
|
|
7054
|
+
errorElement: hasError ? errorElement : null,
|
|
7055
|
+
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7056
|
+
onInputChange: value => onInputChange(value),
|
|
7057
|
+
onChange: item => onSelectItem(item, onChange),
|
|
7058
|
+
children: items.map(item => {
|
|
7059
|
+
const itemElement = renderItem(item);
|
|
7060
|
+
return /*#__PURE__*/cloneElement(itemElement, {
|
|
7061
|
+
item
|
|
7062
|
+
});
|
|
7063
|
+
})
|
|
7064
|
+
}));
|
|
7065
|
+
}
|
|
7066
|
+
InputAddress.Option = InputAddressOption;
|
|
7067
|
+
|
|
6985
7068
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
6986
7069
|
function GoogleMapsApiKeyProvider({
|
|
6987
7070
|
children,
|
|
@@ -7320,7 +7403,7 @@ function useGoogleMapsAutocomplete() {
|
|
|
7320
7403
|
return context;
|
|
7321
7404
|
}
|
|
7322
7405
|
|
|
7323
|
-
function
|
|
7406
|
+
function InputAddressOptionLegacy({
|
|
7324
7407
|
item
|
|
7325
7408
|
}) {
|
|
7326
7409
|
const sharedTransform = {
|
|
@@ -7330,7 +7413,7 @@ function InputAddressOption({
|
|
|
7330
7413
|
};
|
|
7331
7414
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7332
7415
|
item: item,
|
|
7333
|
-
testID: "kitt.
|
|
7416
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7334
7417
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
7335
7418
|
space: "kitt.2",
|
|
7336
7419
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -7392,7 +7475,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7392
7475
|
}
|
|
7393
7476
|
|
|
7394
7477
|
const _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
7395
|
-
function
|
|
7478
|
+
function InputAddressLegacy(_ref) {
|
|
7396
7479
|
let {
|
|
7397
7480
|
initialValue,
|
|
7398
7481
|
itemToString = defaultItemToString,
|
|
@@ -7425,12 +7508,12 @@ function InputAddress(_ref) {
|
|
|
7425
7508
|
onChange: v => {
|
|
7426
7509
|
onSelectItem(v, onChange);
|
|
7427
7510
|
},
|
|
7428
|
-
children: state.items.map(item => /*#__PURE__*/jsx(
|
|
7511
|
+
children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOptionLegacy, {
|
|
7429
7512
|
item: item
|
|
7430
7513
|
}, item.place_id))
|
|
7431
7514
|
}));
|
|
7432
7515
|
}
|
|
7433
|
-
|
|
7516
|
+
InputAddressLegacy.Option = InputAddressOptionLegacy;
|
|
7434
7517
|
|
|
7435
7518
|
const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7436
7519
|
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
@@ -14419,5 +14502,5 @@ function VerticalSteps(_ref) {
|
|
|
14419
14502
|
VerticalSteps.Step = Step;
|
|
14420
14503
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14421
14504
|
|
|
14422
|
-
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 };
|
|
14505
|
+
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 };
|
|
14423
14506
|
//# sourceMappingURL=index-metro.es.android.js.map
|