@ornikar/kitt-universal 31.4.1-canary.2fdbcaad37b7e76ba2442f7c56a4939349d51eb1.0 → 32.0.1
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 -6
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.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/definitions/themes/late-ocean/fullscreenModal.d.ts +14 -0
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +184 -101
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +184 -101
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +119 -36
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +8 -38
- package/dist/index-node-22.17.cjs.web.js +177 -101
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +119 -37
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +8 -38
- package/dist/index-node-22.17.es.web.mjs +177 -102
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +185 -101
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +225 -148
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +34 -30
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +34 -30
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +34 -30
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +34 -30
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +34 -30
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +34 -30
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +34 -30
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +34 -30
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +8 -38
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -843,15 +843,15 @@ const card = {
|
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
845
|
|
|
846
|
-
const webAnimationContentDuration$
|
|
847
|
-
const webAnimationContentEasing$
|
|
846
|
+
const webAnimationContentDuration$2 = 400;
|
|
847
|
+
const webAnimationContentEasing$2 = {
|
|
848
848
|
x1: 0.77,
|
|
849
849
|
y1: 0,
|
|
850
850
|
x2: 0.175,
|
|
851
851
|
y2: 1
|
|
852
852
|
};
|
|
853
|
-
const webAnimationOverlayDuration$
|
|
854
|
-
const webAnimationOverlayEasing$
|
|
853
|
+
const webAnimationOverlayDuration$2 = 250;
|
|
854
|
+
const webAnimationOverlayEasing$2 = {
|
|
855
855
|
x1: 0.42,
|
|
856
856
|
y1: 0,
|
|
857
857
|
x2: 1,
|
|
@@ -886,12 +886,12 @@ const cardModal = {
|
|
|
886
886
|
},
|
|
887
887
|
animation: {
|
|
888
888
|
overlay: {
|
|
889
|
-
duration: webAnimationOverlayDuration$
|
|
890
|
-
easing: webAnimationOverlayEasing$
|
|
889
|
+
duration: webAnimationOverlayDuration$2,
|
|
890
|
+
easing: webAnimationOverlayEasing$2
|
|
891
891
|
},
|
|
892
892
|
content: {
|
|
893
|
-
duration: webAnimationContentDuration$
|
|
894
|
-
easing: webAnimationContentEasing$
|
|
893
|
+
duration: webAnimationContentDuration$2,
|
|
894
|
+
easing: webAnimationContentEasing$2
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
};
|
|
@@ -947,15 +947,15 @@ const choices = {
|
|
|
947
947
|
}
|
|
948
948
|
};
|
|
949
949
|
|
|
950
|
-
const webAnimationContentDuration = 400;
|
|
951
|
-
const webAnimationContentEasing = {
|
|
950
|
+
const webAnimationContentDuration$1 = 400;
|
|
951
|
+
const webAnimationContentEasing$1 = {
|
|
952
952
|
x1: 0.77,
|
|
953
953
|
y1: 0,
|
|
954
954
|
x2: 0.175,
|
|
955
955
|
y2: 1
|
|
956
956
|
};
|
|
957
|
-
const webAnimationOverlayDuration = 250;
|
|
958
|
-
const webAnimationOverlayEasing = {
|
|
957
|
+
const webAnimationOverlayDuration$1 = 250;
|
|
958
|
+
const webAnimationOverlayEasing$1 = {
|
|
959
959
|
x1: 0.42,
|
|
960
960
|
y1: 0,
|
|
961
961
|
x2: 1,
|
|
@@ -977,12 +977,12 @@ const dialogModal = {
|
|
|
977
977
|
},
|
|
978
978
|
animation: {
|
|
979
979
|
overlay: {
|
|
980
|
-
duration: webAnimationOverlayDuration,
|
|
981
|
-
easing: webAnimationOverlayEasing
|
|
980
|
+
duration: webAnimationOverlayDuration$1,
|
|
981
|
+
easing: webAnimationOverlayEasing$1
|
|
982
982
|
},
|
|
983
983
|
content: {
|
|
984
|
-
duration: webAnimationContentDuration,
|
|
985
|
-
easing: webAnimationContentEasing
|
|
984
|
+
duration: webAnimationContentDuration$1,
|
|
985
|
+
easing: webAnimationContentEasing$1
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
};
|
|
@@ -1891,6 +1891,20 @@ const forms = {
|
|
|
1891
1891
|
timePicker
|
|
1892
1892
|
};
|
|
1893
1893
|
|
|
1894
|
+
const webAnimationContentDuration = 600;
|
|
1895
|
+
const webAnimationContentEasing = {
|
|
1896
|
+
x1: 0.77,
|
|
1897
|
+
y1: 0,
|
|
1898
|
+
x2: 0.175,
|
|
1899
|
+
y2: 1
|
|
1900
|
+
};
|
|
1901
|
+
const webAnimationOverlayDuration = 250;
|
|
1902
|
+
const webAnimationOverlayEasing = {
|
|
1903
|
+
x1: 0.42,
|
|
1904
|
+
y1: 0,
|
|
1905
|
+
x2: 1,
|
|
1906
|
+
y2: 1
|
|
1907
|
+
};
|
|
1894
1908
|
const fullscreenModal = {
|
|
1895
1909
|
header: {
|
|
1896
1910
|
height: 56
|
|
@@ -1904,22 +1918,12 @@ const fullscreenModal = {
|
|
|
1904
1918
|
},
|
|
1905
1919
|
animation: {
|
|
1906
1920
|
overlay: {
|
|
1907
|
-
duration:
|
|
1908
|
-
easing:
|
|
1909
|
-
x1: 0.42,
|
|
1910
|
-
y1: 0,
|
|
1911
|
-
x2: 1,
|
|
1912
|
-
y2: 1
|
|
1913
|
-
}
|
|
1921
|
+
duration: webAnimationOverlayDuration,
|
|
1922
|
+
easing: webAnimationOverlayEasing
|
|
1914
1923
|
},
|
|
1915
1924
|
content: {
|
|
1916
|
-
duration:
|
|
1917
|
-
easing:
|
|
1918
|
-
x1: 0.77,
|
|
1919
|
-
y1: 0,
|
|
1920
|
-
x2: 0.175,
|
|
1921
|
-
y2: 1
|
|
1922
|
-
}
|
|
1925
|
+
duration: webAnimationContentDuration,
|
|
1926
|
+
easing: webAnimationContentEasing
|
|
1923
1927
|
}
|
|
1924
1928
|
}
|
|
1925
1929
|
};
|
|
@@ -2845,7 +2849,7 @@ function ActionCardDisabled({
|
|
|
2845
2849
|
});
|
|
2846
2850
|
}
|
|
2847
2851
|
|
|
2848
|
-
const _excluded$
|
|
2852
|
+
const _excluded$T = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2849
2853
|
function ActionCard(_ref) {
|
|
2850
2854
|
let {
|
|
2851
2855
|
children,
|
|
@@ -2857,7 +2861,7 @@ function ActionCard(_ref) {
|
|
|
2857
2861
|
isPressed,
|
|
2858
2862
|
isFocused
|
|
2859
2863
|
} = _ref,
|
|
2860
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2864
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
2861
2865
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2862
2866
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2863
2867
|
borderRadius: borderRadius,
|
|
@@ -3166,7 +3170,7 @@ const getTypographyTypeWithAncestorValue = (type, typographyTypeInContext) => {
|
|
|
3166
3170
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3167
3171
|
};
|
|
3168
3172
|
|
|
3169
|
-
const _excluded$
|
|
3173
|
+
const _excluded$S = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3170
3174
|
const TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3171
3175
|
const TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3172
3176
|
const TypographyVariantContext = /*#__PURE__*/createContext(undefined);
|
|
@@ -3294,7 +3298,7 @@ const TypographyBase = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3294
3298
|
variant,
|
|
3295
3299
|
color
|
|
3296
3300
|
} = _ref,
|
|
3297
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
3301
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$S);
|
|
3298
3302
|
const sx = useSx();
|
|
3299
3303
|
|
|
3300
3304
|
// ancestors
|
|
@@ -3455,14 +3459,14 @@ function Icon({
|
|
|
3455
3459
|
});
|
|
3456
3460
|
}
|
|
3457
3461
|
|
|
3458
|
-
const _excluded$
|
|
3462
|
+
const _excluded$R = ["color", "size"],
|
|
3459
3463
|
_excluded2$5 = ["color"];
|
|
3460
3464
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3461
3465
|
let {
|
|
3462
3466
|
color,
|
|
3463
3467
|
size
|
|
3464
3468
|
} = _ref,
|
|
3465
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3469
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
3466
3470
|
const colorValue = getTypographyColorValue(color);
|
|
3467
3471
|
const sx = useSx();
|
|
3468
3472
|
const {
|
|
@@ -3505,7 +3509,7 @@ const getButtonTextColorByType = (type, variant, isHovered, isPressed, isDisable
|
|
|
3505
3509
|
return `${baseKey}.default`;
|
|
3506
3510
|
};
|
|
3507
3511
|
|
|
3508
|
-
const _excluded$
|
|
3512
|
+
const _excluded$Q = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3509
3513
|
function ButtonContentChildren({
|
|
3510
3514
|
type,
|
|
3511
3515
|
icon,
|
|
@@ -3605,7 +3609,7 @@ function ButtonContent(_ref) {
|
|
|
3605
3609
|
innerSpacing,
|
|
3606
3610
|
size
|
|
3607
3611
|
} = _ref,
|
|
3608
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3612
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
3609
3613
|
const color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3610
3614
|
return /*#__PURE__*/jsx(View, {
|
|
3611
3615
|
_web: {
|
|
@@ -3927,7 +3931,7 @@ function LoaderIcon({
|
|
|
3927
3931
|
});
|
|
3928
3932
|
}
|
|
3929
3933
|
|
|
3930
|
-
const _excluded$
|
|
3934
|
+
const _excluded$P = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3931
3935
|
const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
3932
3936
|
let {
|
|
3933
3937
|
as,
|
|
@@ -3939,7 +3943,7 @@ const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3939
3943
|
medium: false
|
|
3940
3944
|
}
|
|
3941
3945
|
} = _ref,
|
|
3942
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3946
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
3943
3947
|
const [isLoading, setIsLoading] = useState(false);
|
|
3944
3948
|
const mountedRef = useRef(false);
|
|
3945
3949
|
// securing the loading state with a ref to avoid user action between rerenders
|
|
@@ -3990,7 +3994,7 @@ function ActionsButton(_ref) {
|
|
|
3990
3994
|
}, props));
|
|
3991
3995
|
}
|
|
3992
3996
|
|
|
3993
|
-
const _excluded$
|
|
3997
|
+
const _excluded$O = ["children", "layout", "reversed"];
|
|
3994
3998
|
function getCurrentLayout(layout) {
|
|
3995
3999
|
if (!layout) return {
|
|
3996
4000
|
base: 'stretch',
|
|
@@ -4023,7 +4027,7 @@ function Actions(_ref) {
|
|
|
4023
4027
|
base: false
|
|
4024
4028
|
}
|
|
4025
4029
|
} = _ref,
|
|
4026
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4030
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
4027
4031
|
const shouldReverse = typeof reversed === 'boolean' ? {
|
|
4028
4032
|
base: !!reversed
|
|
4029
4033
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -4078,7 +4082,7 @@ function getInitials(firstname, lastname) {
|
|
|
4078
4082
|
return `${firstname[0]}${lastname[0]}`.toUpperCase();
|
|
4079
4083
|
}
|
|
4080
4084
|
|
|
4081
|
-
const _excluded$
|
|
4085
|
+
const _excluded$N = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
4082
4086
|
function AvatarContent({
|
|
4083
4087
|
size,
|
|
4084
4088
|
src,
|
|
@@ -4144,7 +4148,7 @@ function Avatar(_ref) {
|
|
|
4144
4148
|
dark,
|
|
4145
4149
|
disabled
|
|
4146
4150
|
} = _ref,
|
|
4147
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4151
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
4148
4152
|
const currentSize = getCurrentSize({
|
|
4149
4153
|
size,
|
|
4150
4154
|
sizeVariant
|
|
@@ -4182,7 +4186,7 @@ function Avatar(_ref) {
|
|
|
4182
4186
|
});
|
|
4183
4187
|
}
|
|
4184
4188
|
|
|
4185
|
-
const _excluded$
|
|
4189
|
+
const _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
4186
4190
|
function BottomSheetComp(_ref, ref) {
|
|
4187
4191
|
let {
|
|
4188
4192
|
children: Content,
|
|
@@ -4192,7 +4196,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
4192
4196
|
enableDynamicSizing = true,
|
|
4193
4197
|
snapPoints = ['100%']
|
|
4194
4198
|
} = _ref,
|
|
4195
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4199
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
4196
4200
|
const {
|
|
4197
4201
|
top
|
|
4198
4202
|
} = useSafeAreaInsets();
|
|
@@ -4509,7 +4513,7 @@ function CardModalAnimation({
|
|
|
4509
4513
|
});
|
|
4510
4514
|
}
|
|
4511
4515
|
|
|
4512
|
-
const _excluded$
|
|
4516
|
+
const _excluded$L = ["children", "visible", "onClose", "onExited"];
|
|
4513
4517
|
function CardModalBehaviour(_ref) {
|
|
4514
4518
|
let {
|
|
4515
4519
|
children,
|
|
@@ -4517,7 +4521,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4517
4521
|
onClose,
|
|
4518
4522
|
onExited
|
|
4519
4523
|
} = _ref,
|
|
4520
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4524
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
4521
4525
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
4522
4526
|
useEffect(() => {
|
|
4523
4527
|
if (visible === true) {
|
|
@@ -4539,13 +4543,13 @@ function CardModalBehaviour(_ref) {
|
|
|
4539
4543
|
});
|
|
4540
4544
|
}
|
|
4541
4545
|
|
|
4542
|
-
const _excluded$
|
|
4546
|
+
const _excluded$K = ["children", "padding"];
|
|
4543
4547
|
function CardModalBody(_ref) {
|
|
4544
4548
|
let {
|
|
4545
4549
|
children,
|
|
4546
4550
|
padding = 'kitt.4'
|
|
4547
4551
|
} = _ref,
|
|
4548
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4552
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4549
4553
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4550
4554
|
showsVerticalScrollIndicator: false,
|
|
4551
4555
|
_contentContainerStyle: {
|
|
@@ -4556,7 +4560,7 @@ function CardModalBody(_ref) {
|
|
|
4556
4560
|
}));
|
|
4557
4561
|
}
|
|
4558
4562
|
|
|
4559
|
-
const _excluded$
|
|
4563
|
+
const _excluded$J = ["children", "padding", "hasSeparator"];
|
|
4560
4564
|
function CardModalFooter(_ref) {
|
|
4561
4565
|
let {
|
|
4562
4566
|
children,
|
|
@@ -4566,7 +4570,7 @@ function CardModalFooter(_ref) {
|
|
|
4566
4570
|
},
|
|
4567
4571
|
hasSeparator = true
|
|
4568
4572
|
} = _ref,
|
|
4569
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4573
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4570
4574
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4571
4575
|
marginTop: "kitt.2",
|
|
4572
4576
|
padding: padding,
|
|
@@ -4610,7 +4614,7 @@ const getButtonTypeAndVariant = iconColor => {
|
|
|
4610
4614
|
}
|
|
4611
4615
|
};
|
|
4612
4616
|
|
|
4613
|
-
const _excluded$
|
|
4617
|
+
const _excluded$I = ["color", "ariaLabel"];
|
|
4614
4618
|
/**
|
|
4615
4619
|
* @deprecated IconButton should only be used as a navigation button
|
|
4616
4620
|
* Other use cases should use a <Button> component with an icon
|
|
@@ -4620,7 +4624,7 @@ function IconButton(_ref) {
|
|
|
4620
4624
|
color = 'black',
|
|
4621
4625
|
ariaLabel
|
|
4622
4626
|
} = _ref,
|
|
4623
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4627
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4624
4628
|
const {
|
|
4625
4629
|
type: legacyColorToType,
|
|
4626
4630
|
variant: legacyColorToVariant
|
|
@@ -4722,7 +4726,7 @@ function CardModalHeader(props) {
|
|
|
4722
4726
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4723
4727
|
}
|
|
4724
4728
|
|
|
4725
|
-
const _excluded$
|
|
4729
|
+
const _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
|
|
4726
4730
|
function CardModal(_ref) {
|
|
4727
4731
|
let {
|
|
4728
4732
|
backgroundColor = 'kitt.uiBackgroundLight',
|
|
@@ -4730,7 +4734,7 @@ function CardModal(_ref) {
|
|
|
4730
4734
|
withoutShadow,
|
|
4731
4735
|
children
|
|
4732
4736
|
} = _ref,
|
|
4733
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4737
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4734
4738
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4735
4739
|
overflow: "hidden",
|
|
4736
4740
|
backgroundColor: backgroundColor,
|
|
@@ -4985,13 +4989,13 @@ function ChoiceItemContainer({
|
|
|
4985
4989
|
}));
|
|
4986
4990
|
}
|
|
4987
4991
|
|
|
4988
|
-
const _excluded$
|
|
4992
|
+
const _excluded$G = ["direction", "contentContainerStyle"];
|
|
4989
4993
|
function ChoicesContainer(_ref) {
|
|
4990
4994
|
let {
|
|
4991
4995
|
direction,
|
|
4992
4996
|
contentContainerStyle
|
|
4993
4997
|
} = _ref,
|
|
4994
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4998
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4995
4999
|
if (direction === 'row') {
|
|
4996
5000
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4997
5001
|
horizontal: true,
|
|
@@ -5173,7 +5177,8 @@ function DialogModalAnimation({
|
|
|
5173
5177
|
onEntered,
|
|
5174
5178
|
onExit,
|
|
5175
5179
|
onExited,
|
|
5176
|
-
onClose
|
|
5180
|
+
onClose,
|
|
5181
|
+
testID
|
|
5177
5182
|
}) {
|
|
5178
5183
|
const [isModalVisible, setIsModalVisible] = useState(visible);
|
|
5179
5184
|
const [isContentVisible, setIsContentVisible] = useState(false);
|
|
@@ -5208,6 +5213,7 @@ function DialogModalAnimation({
|
|
|
5208
5213
|
flexGrow: 1,
|
|
5209
5214
|
justifyContent: "center",
|
|
5210
5215
|
alignItems: "center",
|
|
5216
|
+
testID: testID,
|
|
5211
5217
|
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
|
|
5212
5218
|
visible: isContentVisible,
|
|
5213
5219
|
onExited: handleAnimationExited,
|
|
@@ -5228,7 +5234,7 @@ function DialogModalAnimation({
|
|
|
5228
5234
|
});
|
|
5229
5235
|
}
|
|
5230
5236
|
|
|
5231
|
-
const _excluded$
|
|
5237
|
+
const _excluded$F = ["children", "visible", "onClose", "onExited"];
|
|
5232
5238
|
function DialogModalBehaviour(_ref) {
|
|
5233
5239
|
let {
|
|
5234
5240
|
children,
|
|
@@ -5236,7 +5242,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5236
5242
|
onClose,
|
|
5237
5243
|
onExited
|
|
5238
5244
|
} = _ref,
|
|
5239
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5245
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
5240
5246
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
5241
5247
|
useEffect(() => {
|
|
5242
5248
|
if (visible === true) {
|
|
@@ -5264,7 +5270,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5264
5270
|
});
|
|
5265
5271
|
}
|
|
5266
5272
|
|
|
5267
|
-
const _excluded$
|
|
5273
|
+
const _excluded$E = ["stretch"];
|
|
5268
5274
|
function DialogModal({
|
|
5269
5275
|
illustration,
|
|
5270
5276
|
title,
|
|
@@ -5306,7 +5312,7 @@ function DialogModalButton(_ref) {
|
|
|
5306
5312
|
let {
|
|
5307
5313
|
stretch = true
|
|
5308
5314
|
} = _ref,
|
|
5309
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5315
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
5310
5316
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5311
5317
|
stretch: stretch
|
|
5312
5318
|
}, props));
|
|
@@ -5340,7 +5346,7 @@ function Emoji({
|
|
|
5340
5346
|
});
|
|
5341
5347
|
}
|
|
5342
5348
|
|
|
5343
|
-
const _excluded$
|
|
5349
|
+
const _excluded$D = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5344
5350
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
5345
5351
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
5346
5352
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5352,7 +5358,7 @@ function ExternalAppLink(_ref) {
|
|
|
5352
5358
|
onPress,
|
|
5353
5359
|
onOpenAppError
|
|
5354
5360
|
} = _ref,
|
|
5355
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5361
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
5356
5362
|
const href = `${appScheme}:${appValue}`;
|
|
5357
5363
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({
|
|
5358
5364
|
href: href
|
|
@@ -5446,7 +5452,7 @@ function useOpenExternalLink(errorHandler) {
|
|
|
5446
5452
|
};
|
|
5447
5453
|
}
|
|
5448
5454
|
|
|
5449
|
-
const _excluded$
|
|
5455
|
+
const _excluded$C = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
5450
5456
|
function ExternalLink(_ref) {
|
|
5451
5457
|
let {
|
|
5452
5458
|
as: Component,
|
|
@@ -5456,7 +5462,7 @@ function ExternalLink(_ref) {
|
|
|
5456
5462
|
// eslint-disable-next-line no-console
|
|
5457
5463
|
onOpenLinkError = console.error
|
|
5458
5464
|
} = _ref,
|
|
5459
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5465
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5460
5466
|
const openExternalLink = useOpenExternalLink();
|
|
5461
5467
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5462
5468
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -5515,7 +5521,7 @@ function InputTextContainer({
|
|
|
5515
5521
|
});
|
|
5516
5522
|
}
|
|
5517
5523
|
|
|
5518
|
-
const _excluded$
|
|
5524
|
+
const _excluded$B = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5519
5525
|
const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5520
5526
|
let {
|
|
5521
5527
|
id,
|
|
@@ -5532,7 +5538,7 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5532
5538
|
height,
|
|
5533
5539
|
onSubmitEditing
|
|
5534
5540
|
} = _ref,
|
|
5535
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5541
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
5536
5542
|
const theme = useTheme();
|
|
5537
5543
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5538
5544
|
base: 'body-m'
|
|
@@ -5657,13 +5663,13 @@ function AutocompleteItemsListContainer({
|
|
|
5657
5663
|
});
|
|
5658
5664
|
}
|
|
5659
5665
|
|
|
5660
|
-
const _excluded$
|
|
5666
|
+
const _excluded$A = ["children", "testID"];
|
|
5661
5667
|
function AutocompleteOption(_ref) {
|
|
5662
5668
|
let {
|
|
5663
5669
|
children,
|
|
5664
5670
|
testID = 'kitt.Autocomplete.option'
|
|
5665
5671
|
} = _ref,
|
|
5666
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5672
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5667
5673
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5668
5674
|
paddingX: {
|
|
5669
5675
|
base: 'kitt.2',
|
|
@@ -5676,7 +5682,7 @@ function AutocompleteOption(_ref) {
|
|
|
5676
5682
|
}));
|
|
5677
5683
|
}
|
|
5678
5684
|
|
|
5679
|
-
const _excluded$
|
|
5685
|
+
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"],
|
|
5680
5686
|
_excluded2$3 = ["onClick", "onPress"],
|
|
5681
5687
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5682
5688
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5718,7 +5724,7 @@ function Autocomplete(_ref) {
|
|
|
5718
5724
|
zIndex = 1000,
|
|
5719
5725
|
maxItemContainerHeight
|
|
5720
5726
|
} = _ref,
|
|
5721
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5727
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5722
5728
|
const childrenArray = Children.toArray(children);
|
|
5723
5729
|
const items = childrenArray.filter(isReactElement).map(child => ({
|
|
5724
5730
|
child,
|
|
@@ -5939,7 +5945,7 @@ function getBorderColor$1({
|
|
|
5939
5945
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5940
5946
|
}
|
|
5941
5947
|
|
|
5942
|
-
const _excluded$
|
|
5948
|
+
const _excluded$y = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5943
5949
|
const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5944
5950
|
let {
|
|
5945
5951
|
checked,
|
|
@@ -5950,7 +5956,7 @@ const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5950
5956
|
onBlur,
|
|
5951
5957
|
onFocus
|
|
5952
5958
|
} = _ref,
|
|
5953
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5959
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5954
5960
|
const theme = useTheme();
|
|
5955
5961
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5956
5962
|
hitSlop: hitSlop
|
|
@@ -6279,7 +6285,7 @@ function PartContainer({
|
|
|
6279
6285
|
});
|
|
6280
6286
|
}
|
|
6281
6287
|
|
|
6282
|
-
const _excluded$
|
|
6288
|
+
const _excluded$x = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6283
6289
|
const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6284
6290
|
let {
|
|
6285
6291
|
id,
|
|
@@ -6299,7 +6305,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6299
6305
|
onFocus,
|
|
6300
6306
|
onSubmitEditing
|
|
6301
6307
|
} = _ref;
|
|
6302
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6308
|
+
_objectWithoutProperties(_ref, _excluded$x);
|
|
6303
6309
|
const monthRef = useRef(null);
|
|
6304
6310
|
const yearRef = useRef(null);
|
|
6305
6311
|
const defaultValue = value;
|
|
@@ -6500,7 +6506,7 @@ const PressableDateInputs = /*#__PURE__*/forwardRef(({
|
|
|
6500
6506
|
});
|
|
6501
6507
|
});
|
|
6502
6508
|
|
|
6503
|
-
const _excluded$
|
|
6509
|
+
const _excluded$w = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
6504
6510
|
const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6505
6511
|
let {
|
|
6506
6512
|
onBlur,
|
|
@@ -6511,7 +6517,7 @@ const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6511
6517
|
value,
|
|
6512
6518
|
onChange
|
|
6513
6519
|
} = _ref,
|
|
6514
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6520
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
6515
6521
|
const [isFocused, setIsFocused] = useState(false);
|
|
6516
6522
|
const [currentValue, setCurrentValue] = useState(value);
|
|
6517
6523
|
const handleClose = () => {
|
|
@@ -6577,7 +6583,7 @@ function PlatformDateTimePicker({
|
|
|
6577
6583
|
});
|
|
6578
6584
|
}
|
|
6579
6585
|
|
|
6580
|
-
const _excluded$
|
|
6586
|
+
const _excluded$v = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
6581
6587
|
function ModalTitle({
|
|
6582
6588
|
children
|
|
6583
6589
|
}) {
|
|
@@ -6594,7 +6600,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
6594
6600
|
onClose,
|
|
6595
6601
|
onChange
|
|
6596
6602
|
} = _ref,
|
|
6597
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6603
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6598
6604
|
const [currentValue, setCurrentValue] = useState(value);
|
|
6599
6605
|
|
|
6600
6606
|
// Prevent unsynced value between the modal and its parent state
|
|
@@ -6637,7 +6643,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
6637
6643
|
});
|
|
6638
6644
|
}
|
|
6639
6645
|
|
|
6640
|
-
const _excluded$
|
|
6646
|
+
const _excluded$u = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
6641
6647
|
const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6642
6648
|
let {
|
|
6643
6649
|
value,
|
|
@@ -6653,7 +6659,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6653
6659
|
onFocus,
|
|
6654
6660
|
onBlur
|
|
6655
6661
|
} = _ref,
|
|
6656
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6662
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
6657
6663
|
const [isPickerUIVisible, setIsPickerUIVisible] = useState(isDefaultVisible);
|
|
6658
6664
|
const [isFocused, setIsFocused] = useState(false);
|
|
6659
6665
|
const [currentValue, setCurrentValue] = useState(value);
|
|
@@ -6691,7 +6697,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6691
6697
|
});
|
|
6692
6698
|
});
|
|
6693
6699
|
|
|
6694
|
-
const _excluded$
|
|
6700
|
+
const _excluded$t = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
6695
6701
|
const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6696
6702
|
let {
|
|
6697
6703
|
value,
|
|
@@ -6701,7 +6707,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6701
6707
|
onChange,
|
|
6702
6708
|
onBlur
|
|
6703
6709
|
} = _ref,
|
|
6704
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6710
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6705
6711
|
if (Platform.OS === 'android') {
|
|
6706
6712
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
6707
6713
|
ref: ref,
|
|
@@ -6723,7 +6729,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6723
6729
|
}, props));
|
|
6724
6730
|
});
|
|
6725
6731
|
|
|
6726
|
-
const _excluded$
|
|
6732
|
+
const _excluded$s = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
6727
6733
|
const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6728
6734
|
let {
|
|
6729
6735
|
fillMode = 'native',
|
|
@@ -6731,7 +6737,7 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6731
6737
|
value,
|
|
6732
6738
|
onSubmitEditing
|
|
6733
6739
|
} = _ref,
|
|
6734
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6740
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6735
6741
|
// in apps, final-form can give a string value that will break the component
|
|
6736
6742
|
const currentValue = value || undefined;
|
|
6737
6743
|
if (fillMode === 'keyboard') {
|
|
@@ -6803,12 +6809,12 @@ function ImagePicker({
|
|
|
6803
6809
|
});
|
|
6804
6810
|
}
|
|
6805
6811
|
|
|
6806
|
-
const _excluded$
|
|
6812
|
+
const _excluded$r = ["children"];
|
|
6807
6813
|
function ListItemContent(_ref) {
|
|
6808
6814
|
let {
|
|
6809
6815
|
children
|
|
6810
6816
|
} = _ref,
|
|
6811
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6817
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
6812
6818
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6813
6819
|
alignSelf: "center",
|
|
6814
6820
|
flexBasis: "0%",
|
|
@@ -6819,7 +6825,7 @@ function ListItemContent(_ref) {
|
|
|
6819
6825
|
}));
|
|
6820
6826
|
}
|
|
6821
6827
|
|
|
6822
|
-
const _excluded$
|
|
6828
|
+
const _excluded$q = ["children", "side"],
|
|
6823
6829
|
_excluded2$2 = ["children", "align"];
|
|
6824
6830
|
// Handles the vertical alignment of the side elements of the list item
|
|
6825
6831
|
function ListItemSideContainer(_ref) {
|
|
@@ -6827,7 +6833,7 @@ function ListItemSideContainer(_ref) {
|
|
|
6827
6833
|
children,
|
|
6828
6834
|
side = 'left'
|
|
6829
6835
|
} = _ref,
|
|
6830
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6836
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
6831
6837
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6832
6838
|
flexDirection: "row",
|
|
6833
6839
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -6849,7 +6855,7 @@ function ListItemSideContent(_ref2) {
|
|
|
6849
6855
|
}));
|
|
6850
6856
|
}
|
|
6851
6857
|
|
|
6852
|
-
const _excluded$
|
|
6858
|
+
const _excluded$p = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
6853
6859
|
function ListItem(_ref) {
|
|
6854
6860
|
let {
|
|
6855
6861
|
children,
|
|
@@ -6859,7 +6865,7 @@ function ListItem(_ref) {
|
|
|
6859
6865
|
right,
|
|
6860
6866
|
onPress
|
|
6861
6867
|
} = _ref,
|
|
6862
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6868
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
6863
6869
|
const Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
6864
6870
|
const wrapperProps = onPress ? _objectSpread({
|
|
6865
6871
|
accessibilityRole: 'button',
|
|
@@ -6892,12 +6898,12 @@ ListItem.Content = ListItemContent;
|
|
|
6892
6898
|
ListItem.SideContent = ListItemSideContent;
|
|
6893
6899
|
ListItem.SideContainer = ListItemSideContainer;
|
|
6894
6900
|
|
|
6895
|
-
const _excluded$
|
|
6901
|
+
const _excluded$o = ["title"];
|
|
6896
6902
|
function BottomSheetActionsItem(_ref) {
|
|
6897
6903
|
let {
|
|
6898
6904
|
title
|
|
6899
6905
|
} = _ref,
|
|
6900
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6906
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
6901
6907
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
6902
6908
|
children: /*#__PURE__*/jsx(ListItem, {
|
|
6903
6909
|
withPadding: true,
|
|
@@ -6984,6 +6990,83 @@ function FilePicker({
|
|
|
6984
6990
|
});
|
|
6985
6991
|
}
|
|
6986
6992
|
|
|
6993
|
+
function InputAddressOption({
|
|
6994
|
+
item,
|
|
6995
|
+
mainText,
|
|
6996
|
+
secondaryText
|
|
6997
|
+
}) {
|
|
6998
|
+
const sharedTransform = {
|
|
6999
|
+
style: {
|
|
7000
|
+
transform: 'translateY(4px)'
|
|
7001
|
+
}
|
|
7002
|
+
};
|
|
7003
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7004
|
+
item: item,
|
|
7005
|
+
testID: "kitt.InputAddressOption.item",
|
|
7006
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
7007
|
+
space: "kitt.2",
|
|
7008
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
7009
|
+
_web: sharedTransform,
|
|
7010
|
+
_ios: sharedTransform,
|
|
7011
|
+
_android: sharedTransform,
|
|
7012
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7013
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7014
|
+
color: "black"
|
|
7015
|
+
})
|
|
7016
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7017
|
+
flexShrink: 1,
|
|
7018
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7019
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7020
|
+
variant: "bold",
|
|
7021
|
+
children: mainText
|
|
7022
|
+
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7023
|
+
color: "black-light",
|
|
7024
|
+
variant: "bold",
|
|
7025
|
+
children: [' ', secondaryText]
|
|
7026
|
+
}) : null]
|
|
7027
|
+
})
|
|
7028
|
+
})]
|
|
7029
|
+
})
|
|
7030
|
+
});
|
|
7031
|
+
}
|
|
7032
|
+
|
|
7033
|
+
const _excluded$n = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "renderItem"];
|
|
7034
|
+
function InputAddress(_ref) {
|
|
7035
|
+
let {
|
|
7036
|
+
errorElement,
|
|
7037
|
+
initialValue,
|
|
7038
|
+
emptyResultsElement,
|
|
7039
|
+
onChange,
|
|
7040
|
+
items,
|
|
7041
|
+
isLoading,
|
|
7042
|
+
hasError,
|
|
7043
|
+
onInputChange,
|
|
7044
|
+
onSelectItem,
|
|
7045
|
+
convertInitialValue,
|
|
7046
|
+
renderItem
|
|
7047
|
+
} = _ref,
|
|
7048
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
7049
|
+
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
7050
|
+
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
7051
|
+
initialValue: formattedInitialValue,
|
|
7052
|
+
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
7053
|
+
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
7054
|
+
color: "kitt.black"
|
|
7055
|
+
}) : undefined,
|
|
7056
|
+
errorElement: hasError ? errorElement : null,
|
|
7057
|
+
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7058
|
+
onInputChange: value => onInputChange(value),
|
|
7059
|
+
onChange: item => onSelectItem(item, onChange),
|
|
7060
|
+
children: items.map(item => {
|
|
7061
|
+
const itemElement = renderItem(item);
|
|
7062
|
+
return /*#__PURE__*/cloneElement(itemElement, {
|
|
7063
|
+
item
|
|
7064
|
+
});
|
|
7065
|
+
})
|
|
7066
|
+
}));
|
|
7067
|
+
}
|
|
7068
|
+
InputAddress.Option = InputAddressOption;
|
|
7069
|
+
|
|
6987
7070
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
6988
7071
|
function GoogleMapsApiKeyProvider({
|
|
6989
7072
|
children,
|
|
@@ -7322,7 +7405,7 @@ function useGoogleMapsAutocomplete() {
|
|
|
7322
7405
|
return context;
|
|
7323
7406
|
}
|
|
7324
7407
|
|
|
7325
|
-
function
|
|
7408
|
+
function InputAddressOptionLegacy({
|
|
7326
7409
|
item
|
|
7327
7410
|
}) {
|
|
7328
7411
|
const sharedTransform = {
|
|
@@ -7332,7 +7415,7 @@ function InputAddressOption({
|
|
|
7332
7415
|
};
|
|
7333
7416
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7334
7417
|
item: item,
|
|
7335
|
-
testID: "kitt.
|
|
7418
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7336
7419
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
7337
7420
|
space: "kitt.2",
|
|
7338
7421
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -7394,7 +7477,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7394
7477
|
}
|
|
7395
7478
|
|
|
7396
7479
|
const _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
7397
|
-
function
|
|
7480
|
+
function InputAddressLegacy(_ref) {
|
|
7398
7481
|
let {
|
|
7399
7482
|
initialValue,
|
|
7400
7483
|
itemToString = defaultItemToString,
|
|
@@ -7427,12 +7510,12 @@ function InputAddress(_ref) {
|
|
|
7427
7510
|
onChange: v => {
|
|
7428
7511
|
onSelectItem(v, onChange);
|
|
7429
7512
|
},
|
|
7430
|
-
children: state.items.map(item => /*#__PURE__*/jsx(
|
|
7513
|
+
children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOptionLegacy, {
|
|
7431
7514
|
item: item
|
|
7432
7515
|
}, item.place_id))
|
|
7433
7516
|
}));
|
|
7434
7517
|
}
|
|
7435
|
-
|
|
7518
|
+
InputAddressLegacy.Option = InputAddressOptionLegacy;
|
|
7436
7519
|
|
|
7437
7520
|
const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7438
7521
|
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
@@ -14421,5 +14504,5 @@ function VerticalSteps(_ref) {
|
|
|
14421
14504
|
VerticalSteps.Step = Step;
|
|
14422
14505
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14423
14506
|
|
|
14424
|
-
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 };
|
|
14507
|
+
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 };
|
|
14425
14508
|
//# sourceMappingURL=index-metro.es.android.js.map
|