@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
package/dist/index.es.js
CHANGED
|
@@ -858,15 +858,15 @@ var card = {
|
|
|
858
858
|
}
|
|
859
859
|
};
|
|
860
860
|
|
|
861
|
-
var webAnimationContentDuration$
|
|
862
|
-
var webAnimationContentEasing$
|
|
861
|
+
var webAnimationContentDuration$2 = 400;
|
|
862
|
+
var webAnimationContentEasing$2 = {
|
|
863
863
|
x1: 0.77,
|
|
864
864
|
y1: 0,
|
|
865
865
|
x2: 0.175,
|
|
866
866
|
y2: 1
|
|
867
867
|
};
|
|
868
|
-
var webAnimationOverlayDuration$
|
|
869
|
-
var webAnimationOverlayEasing$
|
|
868
|
+
var webAnimationOverlayDuration$2 = 250;
|
|
869
|
+
var webAnimationOverlayEasing$2 = {
|
|
870
870
|
x1: 0.42,
|
|
871
871
|
y1: 0,
|
|
872
872
|
x2: 1,
|
|
@@ -901,12 +901,12 @@ var cardModal = {
|
|
|
901
901
|
},
|
|
902
902
|
animation: {
|
|
903
903
|
overlay: {
|
|
904
|
-
duration: webAnimationOverlayDuration$
|
|
905
|
-
easing: webAnimationOverlayEasing$
|
|
904
|
+
duration: webAnimationOverlayDuration$2,
|
|
905
|
+
easing: webAnimationOverlayEasing$2
|
|
906
906
|
},
|
|
907
907
|
content: {
|
|
908
|
-
duration: webAnimationContentDuration$
|
|
909
|
-
easing: webAnimationContentEasing$
|
|
908
|
+
duration: webAnimationContentDuration$2,
|
|
909
|
+
easing: webAnimationContentEasing$2
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
};
|
|
@@ -962,15 +962,15 @@ var choices = {
|
|
|
962
962
|
}
|
|
963
963
|
};
|
|
964
964
|
|
|
965
|
-
var webAnimationContentDuration = 400;
|
|
966
|
-
var webAnimationContentEasing = {
|
|
965
|
+
var webAnimationContentDuration$1 = 400;
|
|
966
|
+
var webAnimationContentEasing$1 = {
|
|
967
967
|
x1: 0.77,
|
|
968
968
|
y1: 0,
|
|
969
969
|
x2: 0.175,
|
|
970
970
|
y2: 1
|
|
971
971
|
};
|
|
972
|
-
var webAnimationOverlayDuration = 250;
|
|
973
|
-
var webAnimationOverlayEasing = {
|
|
972
|
+
var webAnimationOverlayDuration$1 = 250;
|
|
973
|
+
var webAnimationOverlayEasing$1 = {
|
|
974
974
|
x1: 0.42,
|
|
975
975
|
y1: 0,
|
|
976
976
|
x2: 1,
|
|
@@ -992,12 +992,12 @@ var dialogModal = {
|
|
|
992
992
|
},
|
|
993
993
|
animation: {
|
|
994
994
|
overlay: {
|
|
995
|
-
duration: webAnimationOverlayDuration,
|
|
996
|
-
easing: webAnimationOverlayEasing
|
|
995
|
+
duration: webAnimationOverlayDuration$1,
|
|
996
|
+
easing: webAnimationOverlayEasing$1
|
|
997
997
|
},
|
|
998
998
|
content: {
|
|
999
|
-
duration: webAnimationContentDuration,
|
|
1000
|
-
easing: webAnimationContentEasing
|
|
999
|
+
duration: webAnimationContentDuration$1,
|
|
1000
|
+
easing: webAnimationContentEasing$1
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
};
|
|
@@ -1906,6 +1906,20 @@ var forms = {
|
|
|
1906
1906
|
timePicker: timePicker
|
|
1907
1907
|
};
|
|
1908
1908
|
|
|
1909
|
+
var webAnimationContentDuration = 600;
|
|
1910
|
+
var webAnimationContentEasing = {
|
|
1911
|
+
x1: 0.77,
|
|
1912
|
+
y1: 0,
|
|
1913
|
+
x2: 0.175,
|
|
1914
|
+
y2: 1
|
|
1915
|
+
};
|
|
1916
|
+
var webAnimationOverlayDuration = 250;
|
|
1917
|
+
var webAnimationOverlayEasing = {
|
|
1918
|
+
x1: 0.42,
|
|
1919
|
+
y1: 0,
|
|
1920
|
+
x2: 1,
|
|
1921
|
+
y2: 1
|
|
1922
|
+
};
|
|
1909
1923
|
var fullscreenModal = {
|
|
1910
1924
|
header: {
|
|
1911
1925
|
height: 56
|
|
@@ -1919,22 +1933,12 @@ var fullscreenModal = {
|
|
|
1919
1933
|
},
|
|
1920
1934
|
animation: {
|
|
1921
1935
|
overlay: {
|
|
1922
|
-
duration:
|
|
1923
|
-
easing:
|
|
1924
|
-
x1: 0.42,
|
|
1925
|
-
y1: 0,
|
|
1926
|
-
x2: 1,
|
|
1927
|
-
y2: 1
|
|
1928
|
-
}
|
|
1936
|
+
duration: webAnimationOverlayDuration,
|
|
1937
|
+
easing: webAnimationOverlayEasing
|
|
1929
1938
|
},
|
|
1930
1939
|
content: {
|
|
1931
|
-
duration:
|
|
1932
|
-
easing:
|
|
1933
|
-
x1: 0.77,
|
|
1934
|
-
y1: 0,
|
|
1935
|
-
x2: 0.175,
|
|
1936
|
-
y2: 1
|
|
1937
|
-
}
|
|
1940
|
+
duration: webAnimationContentDuration,
|
|
1941
|
+
easing: webAnimationContentEasing
|
|
1938
1942
|
}
|
|
1939
1943
|
}
|
|
1940
1944
|
};
|
|
@@ -2861,7 +2865,7 @@ function ActionCardDisabled(_ref) {
|
|
|
2861
2865
|
});
|
|
2862
2866
|
}
|
|
2863
2867
|
|
|
2864
|
-
var _excluded$
|
|
2868
|
+
var _excluded$T = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2865
2869
|
function ActionCard(_ref) {
|
|
2866
2870
|
var children = _ref.children,
|
|
2867
2871
|
_ref$variant = _ref.variant,
|
|
@@ -2874,7 +2878,7 @@ function ActionCard(_ref) {
|
|
|
2874
2878
|
isHovered = _ref.isHovered,
|
|
2875
2879
|
isPressed = _ref.isPressed,
|
|
2876
2880
|
isFocused = _ref.isFocused,
|
|
2877
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2881
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
2878
2882
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2879
2883
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2880
2884
|
borderRadius: borderRadius,
|
|
@@ -3198,7 +3202,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
|
|
|
3198
3202
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3199
3203
|
};
|
|
3200
3204
|
|
|
3201
|
-
var _excluded$
|
|
3205
|
+
var _excluded$S = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3202
3206
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3203
3207
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3204
3208
|
var TypographyVariantContext = /*#__PURE__*/createContext(undefined);
|
|
@@ -3323,7 +3327,7 @@ var TypographyBase = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
3323
3327
|
} : _ref2$type,
|
|
3324
3328
|
variant = _ref2.variant,
|
|
3325
3329
|
color = _ref2.color,
|
|
3326
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
3330
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$S);
|
|
3327
3331
|
var sx = useSx();
|
|
3328
3332
|
|
|
3329
3333
|
// ancestors
|
|
@@ -3485,12 +3489,12 @@ function Icon(_ref) {
|
|
|
3485
3489
|
});
|
|
3486
3490
|
}
|
|
3487
3491
|
|
|
3488
|
-
var _excluded$
|
|
3492
|
+
var _excluded$R = ["color", "size"],
|
|
3489
3493
|
_excluded2$5 = ["color"];
|
|
3490
3494
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3491
3495
|
var color = _ref.color,
|
|
3492
3496
|
size = _ref.size,
|
|
3493
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3497
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
3494
3498
|
var colorValue = getTypographyColorValue(color);
|
|
3495
3499
|
var sx = useSx();
|
|
3496
3500
|
var _sx = sx({
|
|
@@ -3530,7 +3534,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
|
|
|
3530
3534
|
return "".concat(baseKey, ".default");
|
|
3531
3535
|
};
|
|
3532
3536
|
|
|
3533
|
-
var _excluded$
|
|
3537
|
+
var _excluded$Q = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3534
3538
|
function ButtonContentChildren(_ref) {
|
|
3535
3539
|
var type = _ref.type,
|
|
3536
3540
|
icon = _ref.icon,
|
|
@@ -3630,7 +3634,7 @@ function ButtonContent(_ref2) {
|
|
|
3630
3634
|
_ref2.isFocused;
|
|
3631
3635
|
var innerSpacing = _ref2.innerSpacing,
|
|
3632
3636
|
size = _ref2.size,
|
|
3633
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3637
|
+
props = _objectWithoutProperties(_ref2, _excluded$Q);
|
|
3634
3638
|
var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3635
3639
|
return /*#__PURE__*/jsx(View, {
|
|
3636
3640
|
_web: {
|
|
@@ -3951,7 +3955,7 @@ function LoaderIcon(_ref) {
|
|
|
3951
3955
|
});
|
|
3952
3956
|
}
|
|
3953
3957
|
|
|
3954
|
-
var _excluded$
|
|
3958
|
+
var _excluded$P = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3955
3959
|
var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3956
3960
|
var as = _ref.as,
|
|
3957
3961
|
onPress = _ref.onPress,
|
|
@@ -3962,7 +3966,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3962
3966
|
base: true,
|
|
3963
3967
|
medium: false
|
|
3964
3968
|
} : _ref$stretch,
|
|
3965
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3969
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
3966
3970
|
var _useState = useState(false),
|
|
3967
3971
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3968
3972
|
isLoading = _useState2[0],
|
|
@@ -4040,7 +4044,7 @@ function ActionsButton(_ref) {
|
|
|
4040
4044
|
}, props));
|
|
4041
4045
|
}
|
|
4042
4046
|
|
|
4043
|
-
var _excluded$
|
|
4047
|
+
var _excluded$O = ["children", "layout", "reversed"];
|
|
4044
4048
|
function getCurrentLayout(layout) {
|
|
4045
4049
|
if (!layout) return {
|
|
4046
4050
|
base: 'stretch',
|
|
@@ -4072,7 +4076,7 @@ function Actions(_ref) {
|
|
|
4072
4076
|
reversed = _ref$reversed === void 0 ? {
|
|
4073
4077
|
base: false
|
|
4074
4078
|
} : _ref$reversed,
|
|
4075
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4079
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
4076
4080
|
var shouldReverse = typeof reversed === 'boolean' ? {
|
|
4077
4081
|
base: !!reversed
|
|
4078
4082
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -4125,7 +4129,7 @@ function getInitials(firstname, lastname) {
|
|
|
4125
4129
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
4126
4130
|
}
|
|
4127
4131
|
|
|
4128
|
-
var _excluded$
|
|
4132
|
+
var _excluded$N = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
4129
4133
|
function AvatarContent(_ref) {
|
|
4130
4134
|
var size = _ref.size,
|
|
4131
4135
|
src = _ref.src,
|
|
@@ -4188,7 +4192,7 @@ function Avatar(_ref2) {
|
|
|
4188
4192
|
height = _ref2.height,
|
|
4189
4193
|
dark = _ref2.dark,
|
|
4190
4194
|
disabled = _ref2.disabled,
|
|
4191
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
4195
|
+
props = _objectWithoutProperties(_ref2, _excluded$N);
|
|
4192
4196
|
var currentSize = getCurrentSize({
|
|
4193
4197
|
size: size,
|
|
4194
4198
|
sizeVariant: sizeVariant
|
|
@@ -4226,7 +4230,7 @@ function Avatar(_ref2) {
|
|
|
4226
4230
|
});
|
|
4227
4231
|
}
|
|
4228
4232
|
|
|
4229
|
-
var _excluded$
|
|
4233
|
+
var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
4230
4234
|
function BottomSheetComp(_ref, ref) {
|
|
4231
4235
|
var Content = _ref.children,
|
|
4232
4236
|
_ref$hasScrollView = _ref.hasScrollView,
|
|
@@ -4239,7 +4243,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
4239
4243
|
enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
|
|
4240
4244
|
_ref$snapPoints = _ref.snapPoints,
|
|
4241
4245
|
snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
|
|
4242
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4246
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
4243
4247
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
4244
4248
|
top = _useSafeAreaInsets.top;
|
|
4245
4249
|
var Wrapper = useMemo(function () {
|
|
@@ -4557,13 +4561,13 @@ function CardModalAnimation(_ref) {
|
|
|
4557
4561
|
});
|
|
4558
4562
|
}
|
|
4559
4563
|
|
|
4560
|
-
var _excluded$
|
|
4564
|
+
var _excluded$L = ["children", "visible", "onClose", "onExited"];
|
|
4561
4565
|
function CardModalBehaviour(_ref) {
|
|
4562
4566
|
var children = _ref.children,
|
|
4563
4567
|
visible = _ref.visible,
|
|
4564
4568
|
onClose = _ref.onClose,
|
|
4565
4569
|
onExited = _ref.onExited,
|
|
4566
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4570
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
4567
4571
|
var _useState = useState(visible),
|
|
4568
4572
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4569
4573
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4588,12 +4592,12 @@ function CardModalBehaviour(_ref) {
|
|
|
4588
4592
|
});
|
|
4589
4593
|
}
|
|
4590
4594
|
|
|
4591
|
-
var _excluded$
|
|
4595
|
+
var _excluded$K = ["children", "padding"];
|
|
4592
4596
|
function CardModalBody(_ref) {
|
|
4593
4597
|
var children = _ref.children,
|
|
4594
4598
|
_ref$padding = _ref.padding,
|
|
4595
4599
|
padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
|
|
4596
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4600
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4597
4601
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4598
4602
|
showsVerticalScrollIndicator: false,
|
|
4599
4603
|
_contentContainerStyle: {
|
|
@@ -4604,7 +4608,7 @@ function CardModalBody(_ref) {
|
|
|
4604
4608
|
}));
|
|
4605
4609
|
}
|
|
4606
4610
|
|
|
4607
|
-
var _excluded$
|
|
4611
|
+
var _excluded$J = ["children", "padding", "hasSeparator"];
|
|
4608
4612
|
function CardModalFooter(_ref) {
|
|
4609
4613
|
var children = _ref.children,
|
|
4610
4614
|
_ref$padding = _ref.padding,
|
|
@@ -4614,7 +4618,7 @@ function CardModalFooter(_ref) {
|
|
|
4614
4618
|
} : _ref$padding,
|
|
4615
4619
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4616
4620
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4617
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4621
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4618
4622
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4619
4623
|
marginTop: "kitt.2",
|
|
4620
4624
|
padding: padding,
|
|
@@ -4658,7 +4662,7 @@ var getButtonTypeAndVariant = function (iconColor) {
|
|
|
4658
4662
|
}
|
|
4659
4663
|
};
|
|
4660
4664
|
|
|
4661
|
-
var _excluded$
|
|
4665
|
+
var _excluded$I = ["color", "ariaLabel"];
|
|
4662
4666
|
/**
|
|
4663
4667
|
* @deprecated IconButton should only be used as a navigation button
|
|
4664
4668
|
* Other use cases should use a <Button> component with an icon
|
|
@@ -4667,7 +4671,7 @@ function IconButton(_ref) {
|
|
|
4667
4671
|
var _ref$color = _ref.color,
|
|
4668
4672
|
color = _ref$color === void 0 ? 'black' : _ref$color;
|
|
4669
4673
|
_ref.ariaLabel;
|
|
4670
|
-
var props = _objectWithoutProperties(_ref, _excluded$
|
|
4674
|
+
var props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4671
4675
|
var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
|
|
4672
4676
|
legacyColorToType = _getButtonTypeAndVari.type,
|
|
4673
4677
|
legacyColorToVariant = _getButtonTypeAndVari.variant;
|
|
@@ -4774,7 +4778,7 @@ function CardModalHeader(props) {
|
|
|
4774
4778
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4775
4779
|
}
|
|
4776
4780
|
|
|
4777
|
-
var _excluded$
|
|
4781
|
+
var _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
|
|
4778
4782
|
function CardModal(_ref) {
|
|
4779
4783
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4780
4784
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4782,7 +4786,7 @@ function CardModal(_ref) {
|
|
|
4782
4786
|
maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
|
|
4783
4787
|
withoutShadow = _ref.withoutShadow,
|
|
4784
4788
|
children = _ref.children,
|
|
4785
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4789
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4786
4790
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4787
4791
|
overflow: "hidden",
|
|
4788
4792
|
backgroundColor: backgroundColor,
|
|
@@ -5029,11 +5033,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
5029
5033
|
}));
|
|
5030
5034
|
}
|
|
5031
5035
|
|
|
5032
|
-
var _excluded$
|
|
5036
|
+
var _excluded$G = ["direction", "contentContainerStyle"];
|
|
5033
5037
|
function ChoicesContainer(_ref) {
|
|
5034
5038
|
var direction = _ref.direction,
|
|
5035
5039
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
5036
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5040
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
5037
5041
|
if (direction === 'row') {
|
|
5038
5042
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
5039
5043
|
horizontal: true,
|
|
@@ -5210,7 +5214,8 @@ function DialogModalAnimation(_ref) {
|
|
|
5210
5214
|
onEntered = _ref.onEntered,
|
|
5211
5215
|
onExit = _ref.onExit,
|
|
5212
5216
|
onExited = _ref.onExited,
|
|
5213
|
-
onClose = _ref.onClose
|
|
5217
|
+
onClose = _ref.onClose,
|
|
5218
|
+
testID = _ref.testID;
|
|
5214
5219
|
var _useState = useState(visible),
|
|
5215
5220
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5216
5221
|
isModalVisible = _useState2[0],
|
|
@@ -5250,6 +5255,7 @@ function DialogModalAnimation(_ref) {
|
|
|
5250
5255
|
flexGrow: 1,
|
|
5251
5256
|
justifyContent: "center",
|
|
5252
5257
|
alignItems: "center",
|
|
5258
|
+
testID: testID,
|
|
5253
5259
|
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
|
|
5254
5260
|
visible: isContentVisible,
|
|
5255
5261
|
onExited: handleAnimationExited,
|
|
@@ -5270,13 +5276,13 @@ function DialogModalAnimation(_ref) {
|
|
|
5270
5276
|
});
|
|
5271
5277
|
}
|
|
5272
5278
|
|
|
5273
|
-
var _excluded$
|
|
5279
|
+
var _excluded$F = ["children", "visible", "onClose", "onExited"];
|
|
5274
5280
|
function DialogModalBehaviour(_ref) {
|
|
5275
5281
|
var children = _ref.children,
|
|
5276
5282
|
visible = _ref.visible,
|
|
5277
5283
|
onClose = _ref.onClose,
|
|
5278
5284
|
onExited = _ref.onExited,
|
|
5279
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5285
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
5280
5286
|
var _useState = useState(visible),
|
|
5281
5287
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5282
5288
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -5307,7 +5313,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5307
5313
|
});
|
|
5308
5314
|
}
|
|
5309
5315
|
|
|
5310
|
-
var _excluded$
|
|
5316
|
+
var _excluded$E = ["stretch"];
|
|
5311
5317
|
function DialogModal(_ref) {
|
|
5312
5318
|
var illustration = _ref.illustration,
|
|
5313
5319
|
title = _ref.title,
|
|
@@ -5347,7 +5353,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
5347
5353
|
function DialogModalButton(_ref2) {
|
|
5348
5354
|
var _ref2$stretch = _ref2.stretch,
|
|
5349
5355
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
5350
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
5356
|
+
props = _objectWithoutProperties(_ref2, _excluded$E);
|
|
5351
5357
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5352
5358
|
stretch: stretch
|
|
5353
5359
|
}, props));
|
|
@@ -5384,7 +5390,7 @@ function Emoji(_ref) {
|
|
|
5384
5390
|
});
|
|
5385
5391
|
}
|
|
5386
5392
|
|
|
5387
|
-
var _excluded$
|
|
5393
|
+
var _excluded$D = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5388
5394
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
5389
5395
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
5390
5396
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5394,7 +5400,7 @@ function ExternalAppLink(_ref) {
|
|
|
5394
5400
|
appValue = _ref.appValue,
|
|
5395
5401
|
onPress = _ref.onPress,
|
|
5396
5402
|
onOpenAppError = _ref.onOpenAppError,
|
|
5397
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5403
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
5398
5404
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
5399
5405
|
var handleOnPress = /*#__PURE__*/function () {
|
|
5400
5406
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -5546,7 +5552,7 @@ function useOpenExternalLink(errorHandler) {
|
|
|
5546
5552
|
}();
|
|
5547
5553
|
}
|
|
5548
5554
|
|
|
5549
|
-
var _excluded$
|
|
5555
|
+
var _excluded$C = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
5550
5556
|
function ExternalLink(_ref) {
|
|
5551
5557
|
var Component = _ref.as,
|
|
5552
5558
|
href = _ref.href,
|
|
@@ -5555,7 +5561,7 @@ function ExternalLink(_ref) {
|
|
|
5555
5561
|
onPress = _ref.onPress,
|
|
5556
5562
|
_ref$onOpenLinkError = _ref.onOpenLinkError,
|
|
5557
5563
|
onOpenLinkError = _ref$onOpenLinkError === void 0 ? console.error : _ref$onOpenLinkError,
|
|
5558
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5564
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5559
5565
|
var openExternalLink = useOpenExternalLink();
|
|
5560
5566
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5561
5567
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -5612,7 +5618,7 @@ function InputTextContainer(_ref) {
|
|
|
5612
5618
|
});
|
|
5613
5619
|
}
|
|
5614
5620
|
|
|
5615
|
-
var _excluded$
|
|
5621
|
+
var _excluded$B = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5616
5622
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5617
5623
|
var id = _ref.id,
|
|
5618
5624
|
right = _ref.right;
|
|
@@ -5633,7 +5639,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5633
5639
|
multiline = _ref.multiline,
|
|
5634
5640
|
height = _ref.height,
|
|
5635
5641
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5636
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5642
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
5637
5643
|
var theme = useTheme();
|
|
5638
5644
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5639
5645
|
base: 'body-m'
|
|
@@ -5758,12 +5764,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5758
5764
|
});
|
|
5759
5765
|
}
|
|
5760
5766
|
|
|
5761
|
-
var _excluded$
|
|
5767
|
+
var _excluded$A = ["children", "testID"];
|
|
5762
5768
|
function AutocompleteOption(_ref) {
|
|
5763
5769
|
var children = _ref.children,
|
|
5764
5770
|
_ref$testID = _ref.testID,
|
|
5765
5771
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5766
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5772
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5767
5773
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5768
5774
|
paddingX: {
|
|
5769
5775
|
base: 'kitt.2',
|
|
@@ -5776,7 +5782,7 @@ function AutocompleteOption(_ref) {
|
|
|
5776
5782
|
}));
|
|
5777
5783
|
}
|
|
5778
5784
|
|
|
5779
|
-
var _excluded$
|
|
5785
|
+
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"],
|
|
5780
5786
|
_excluded2$3 = ["onClick", "onPress"],
|
|
5781
5787
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5782
5788
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5816,7 +5822,7 @@ function Autocomplete(_ref) {
|
|
|
5816
5822
|
_ref$zIndex = _ref.zIndex,
|
|
5817
5823
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5818
5824
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5819
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5825
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5820
5826
|
var childrenArray = Children.toArray(children);
|
|
5821
5827
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5822
5828
|
return {
|
|
@@ -6031,7 +6037,7 @@ function getBorderColor$1(_ref) {
|
|
|
6031
6037
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
6032
6038
|
}
|
|
6033
6039
|
|
|
6034
|
-
var _excluded$
|
|
6040
|
+
var _excluded$y = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
6035
6041
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6036
6042
|
var checked = _ref.checked,
|
|
6037
6043
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -6041,7 +6047,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6041
6047
|
onChange = _ref.onChange,
|
|
6042
6048
|
onBlur = _ref.onBlur,
|
|
6043
6049
|
onFocus = _ref.onFocus,
|
|
6044
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6050
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
6045
6051
|
var theme = useTheme();
|
|
6046
6052
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
6047
6053
|
hitSlop: hitSlop
|
|
@@ -6359,7 +6365,7 @@ function PartContainer(_ref) {
|
|
|
6359
6365
|
});
|
|
6360
6366
|
}
|
|
6361
6367
|
|
|
6362
|
-
var _excluded$
|
|
6368
|
+
var _excluded$x = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6363
6369
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6364
6370
|
var id = _ref.id,
|
|
6365
6371
|
value = _ref.value,
|
|
@@ -6377,7 +6383,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6377
6383
|
onBlur = _ref.onBlur,
|
|
6378
6384
|
onFocus = _ref.onFocus,
|
|
6379
6385
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
6380
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6386
|
+
_objectWithoutProperties(_ref, _excluded$x);
|
|
6381
6387
|
var monthRef = useRef(null);
|
|
6382
6388
|
var yearRef = useRef(null);
|
|
6383
6389
|
var defaultValue = value;
|
|
@@ -6586,7 +6592,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6586
6592
|
});
|
|
6587
6593
|
});
|
|
6588
6594
|
|
|
6589
|
-
var _excluded$
|
|
6595
|
+
var _excluded$w = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
6590
6596
|
var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6591
6597
|
var onBlur = _ref.onBlur,
|
|
6592
6598
|
onFocus = _ref.onFocus,
|
|
@@ -6595,7 +6601,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6595
6601
|
isDefaultVisible = _ref.isDefaultVisible,
|
|
6596
6602
|
value = _ref.value,
|
|
6597
6603
|
_onChange = _ref.onChange,
|
|
6598
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6604
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
6599
6605
|
var _useState = useState(false),
|
|
6600
6606
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6601
6607
|
isFocused = _useState2[0],
|
|
@@ -6667,7 +6673,7 @@ function PlatformDateTimePicker(_ref) {
|
|
|
6667
6673
|
});
|
|
6668
6674
|
}
|
|
6669
6675
|
|
|
6670
|
-
var _excluded$
|
|
6676
|
+
var _excluded$v = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
6671
6677
|
function ModalTitle(_ref) {
|
|
6672
6678
|
var children = _ref.children;
|
|
6673
6679
|
return /*#__PURE__*/jsx(CardModal.Header, {
|
|
@@ -6681,7 +6687,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6681
6687
|
validateButtonLabel = _ref2.validateButtonLabel,
|
|
6682
6688
|
onClose = _ref2.onClose,
|
|
6683
6689
|
onChange = _ref2.onChange,
|
|
6684
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6690
|
+
props = _objectWithoutProperties(_ref2, _excluded$v);
|
|
6685
6691
|
var _useState = useState(value),
|
|
6686
6692
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6687
6693
|
currentValue = _useState2[0],
|
|
@@ -6727,7 +6733,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6727
6733
|
});
|
|
6728
6734
|
}
|
|
6729
6735
|
|
|
6730
|
-
var _excluded$
|
|
6736
|
+
var _excluded$u = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
6731
6737
|
var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6732
6738
|
var value = _ref.value,
|
|
6733
6739
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6741,7 +6747,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6741
6747
|
onChange = _ref.onChange,
|
|
6742
6748
|
onFocus = _ref.onFocus,
|
|
6743
6749
|
onBlur = _ref.onBlur,
|
|
6744
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6750
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
6745
6751
|
var _useState = useState(isDefaultVisible),
|
|
6746
6752
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6747
6753
|
isPickerUIVisible = _useState2[0],
|
|
@@ -6788,7 +6794,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6788
6794
|
});
|
|
6789
6795
|
});
|
|
6790
6796
|
|
|
6791
|
-
var _excluded$
|
|
6797
|
+
var _excluded$t = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
6792
6798
|
var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6793
6799
|
var value = _ref.value,
|
|
6794
6800
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6796,7 +6802,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6796
6802
|
pickerDefaultDate = _ref.pickerDefaultDate,
|
|
6797
6803
|
onChange = _ref.onChange,
|
|
6798
6804
|
onBlur = _ref.onBlur,
|
|
6799
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6805
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6800
6806
|
if (Platform.OS === 'android') {
|
|
6801
6807
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
6802
6808
|
ref: ref,
|
|
@@ -6818,14 +6824,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6818
6824
|
}, props));
|
|
6819
6825
|
});
|
|
6820
6826
|
|
|
6821
|
-
var _excluded$
|
|
6827
|
+
var _excluded$s = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
6822
6828
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6823
6829
|
var _ref$fillMode = _ref.fillMode,
|
|
6824
6830
|
fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
|
|
6825
6831
|
enterKeyHint = _ref.enterKeyHint,
|
|
6826
6832
|
value = _ref.value,
|
|
6827
6833
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
6828
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6834
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6829
6835
|
// in apps, final-form can give a string value that will break the component
|
|
6830
6836
|
var currentValue = value || undefined;
|
|
6831
6837
|
if (fillMode === 'keyboard') {
|
|
@@ -6941,10 +6947,10 @@ function ImagePicker(_ref) {
|
|
|
6941
6947
|
});
|
|
6942
6948
|
}
|
|
6943
6949
|
|
|
6944
|
-
var _excluded$
|
|
6950
|
+
var _excluded$r = ["children"];
|
|
6945
6951
|
function ListItemContent(_ref) {
|
|
6946
6952
|
var children = _ref.children,
|
|
6947
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6953
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
6948
6954
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6949
6955
|
alignSelf: "center",
|
|
6950
6956
|
flexBasis: "0%",
|
|
@@ -6955,14 +6961,14 @@ function ListItemContent(_ref) {
|
|
|
6955
6961
|
}));
|
|
6956
6962
|
}
|
|
6957
6963
|
|
|
6958
|
-
var _excluded$
|
|
6964
|
+
var _excluded$q = ["children", "side"],
|
|
6959
6965
|
_excluded2$2 = ["children", "align"];
|
|
6960
6966
|
// Handles the vertical alignment of the side elements of the list item
|
|
6961
6967
|
function ListItemSideContainer(_ref) {
|
|
6962
6968
|
var children = _ref.children,
|
|
6963
6969
|
_ref$side = _ref.side,
|
|
6964
6970
|
side = _ref$side === void 0 ? 'left' : _ref$side,
|
|
6965
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6971
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
6966
6972
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6967
6973
|
flexDirection: "row",
|
|
6968
6974
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -6983,7 +6989,7 @@ function ListItemSideContent(_ref2) {
|
|
|
6983
6989
|
}));
|
|
6984
6990
|
}
|
|
6985
6991
|
|
|
6986
|
-
var _excluded$
|
|
6992
|
+
var _excluded$p = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
6987
6993
|
function ListItem(_ref) {
|
|
6988
6994
|
var children = _ref.children,
|
|
6989
6995
|
withPadding = _ref.withPadding,
|
|
@@ -6991,7 +6997,7 @@ function ListItem(_ref) {
|
|
|
6991
6997
|
left = _ref.left,
|
|
6992
6998
|
right = _ref.right,
|
|
6993
6999
|
onPress = _ref.onPress,
|
|
6994
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7000
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
6995
7001
|
var Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
6996
7002
|
var wrapperProps = onPress ? _objectSpread({
|
|
6997
7003
|
accessibilityRole: 'button',
|
|
@@ -7024,10 +7030,10 @@ ListItem.Content = ListItemContent;
|
|
|
7024
7030
|
ListItem.SideContent = ListItemSideContent;
|
|
7025
7031
|
ListItem.SideContainer = ListItemSideContainer;
|
|
7026
7032
|
|
|
7027
|
-
var _excluded$
|
|
7033
|
+
var _excluded$o = ["title"];
|
|
7028
7034
|
function BottomSheetActionsItem(_ref) {
|
|
7029
7035
|
var title = _ref.title,
|
|
7030
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7036
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
7031
7037
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
7032
7038
|
children: /*#__PURE__*/jsx(ListItem, {
|
|
7033
7039
|
withPadding: true,
|
|
@@ -7110,6 +7116,84 @@ function FilePicker(_ref) {
|
|
|
7110
7116
|
});
|
|
7111
7117
|
}
|
|
7112
7118
|
|
|
7119
|
+
function InputAddressOption(_ref) {
|
|
7120
|
+
var item = _ref.item,
|
|
7121
|
+
mainText = _ref.mainText,
|
|
7122
|
+
secondaryText = _ref.secondaryText;
|
|
7123
|
+
var sharedTransform = {
|
|
7124
|
+
style: {
|
|
7125
|
+
transform: 'translateY(4px)'
|
|
7126
|
+
}
|
|
7127
|
+
};
|
|
7128
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7129
|
+
item: item,
|
|
7130
|
+
testID: "kitt.InputAddressOption.item",
|
|
7131
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
7132
|
+
space: "kitt.2",
|
|
7133
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
7134
|
+
_web: sharedTransform,
|
|
7135
|
+
_ios: sharedTransform,
|
|
7136
|
+
_android: sharedTransform,
|
|
7137
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7138
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7139
|
+
color: "black"
|
|
7140
|
+
})
|
|
7141
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7142
|
+
flexShrink: 1,
|
|
7143
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7144
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7145
|
+
variant: "bold",
|
|
7146
|
+
children: mainText
|
|
7147
|
+
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7148
|
+
color: "black-light",
|
|
7149
|
+
variant: "bold",
|
|
7150
|
+
children: [' ', secondaryText]
|
|
7151
|
+
}) : null]
|
|
7152
|
+
})
|
|
7153
|
+
})]
|
|
7154
|
+
})
|
|
7155
|
+
});
|
|
7156
|
+
}
|
|
7157
|
+
|
|
7158
|
+
var _excluded$n = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "renderItem"];
|
|
7159
|
+
function InputAddress(_ref) {
|
|
7160
|
+
var errorElement = _ref.errorElement,
|
|
7161
|
+
initialValue = _ref.initialValue,
|
|
7162
|
+
emptyResultsElement = _ref.emptyResultsElement,
|
|
7163
|
+
_onChange = _ref.onChange,
|
|
7164
|
+
items = _ref.items,
|
|
7165
|
+
isLoading = _ref.isLoading,
|
|
7166
|
+
hasError = _ref.hasError,
|
|
7167
|
+
_onInputChange = _ref.onInputChange,
|
|
7168
|
+
onSelectItem = _ref.onSelectItem,
|
|
7169
|
+
convertInitialValue = _ref.convertInitialValue,
|
|
7170
|
+
renderItem = _ref.renderItem,
|
|
7171
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
7172
|
+
var formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
7173
|
+
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
7174
|
+
initialValue: formattedInitialValue,
|
|
7175
|
+
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
7176
|
+
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
7177
|
+
color: "kitt.black"
|
|
7178
|
+
}) : undefined,
|
|
7179
|
+
errorElement: hasError ? errorElement : null,
|
|
7180
|
+
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7181
|
+
onInputChange: function (value) {
|
|
7182
|
+
return _onInputChange(value);
|
|
7183
|
+
},
|
|
7184
|
+
onChange: function (item) {
|
|
7185
|
+
return onSelectItem(item, _onChange);
|
|
7186
|
+
},
|
|
7187
|
+
children: items.map(function (item) {
|
|
7188
|
+
var itemElement = renderItem(item);
|
|
7189
|
+
return /*#__PURE__*/cloneElement(itemElement, {
|
|
7190
|
+
item: item
|
|
7191
|
+
});
|
|
7192
|
+
})
|
|
7193
|
+
}));
|
|
7194
|
+
}
|
|
7195
|
+
InputAddress.Option = InputAddressOption;
|
|
7196
|
+
|
|
7113
7197
|
var GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
7114
7198
|
function GoogleMapsApiKeyProvider(_ref) {
|
|
7115
7199
|
var children = _ref.children,
|
|
@@ -7563,7 +7647,7 @@ function useGoogleMapsAutocomplete() {
|
|
|
7563
7647
|
return context;
|
|
7564
7648
|
}
|
|
7565
7649
|
|
|
7566
|
-
function
|
|
7650
|
+
function InputAddressOptionLegacy(_ref) {
|
|
7567
7651
|
var item = _ref.item;
|
|
7568
7652
|
var sharedTransform = {
|
|
7569
7653
|
style: {
|
|
@@ -7572,7 +7656,7 @@ function InputAddressOption(_ref) {
|
|
|
7572
7656
|
};
|
|
7573
7657
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7574
7658
|
item: item,
|
|
7575
|
-
testID: "kitt.
|
|
7659
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7576
7660
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
7577
7661
|
space: "kitt.2",
|
|
7578
7662
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -7632,7 +7716,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7632
7716
|
}
|
|
7633
7717
|
|
|
7634
7718
|
var _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
7635
|
-
function
|
|
7719
|
+
function InputAddressLegacy(_ref) {
|
|
7636
7720
|
var initialValue = _ref.initialValue,
|
|
7637
7721
|
_ref$itemToString = _ref.itemToString,
|
|
7638
7722
|
itemToString = _ref$itemToString === void 0 ? defaultItemToString : _ref$itemToString,
|
|
@@ -7666,13 +7750,13 @@ function InputAddress(_ref) {
|
|
|
7666
7750
|
onSelectItem(v, _onChange);
|
|
7667
7751
|
},
|
|
7668
7752
|
children: state.items.map(function (item) {
|
|
7669
|
-
return /*#__PURE__*/jsx(
|
|
7753
|
+
return /*#__PURE__*/jsx(InputAddressOptionLegacy, {
|
|
7670
7754
|
item: item
|
|
7671
7755
|
}, item.place_id);
|
|
7672
7756
|
})
|
|
7673
7757
|
}));
|
|
7674
7758
|
}
|
|
7675
|
-
|
|
7759
|
+
InputAddressLegacy.Option = InputAddressOptionLegacy;
|
|
7676
7760
|
|
|
7677
7761
|
var InputEmail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7678
7762
|
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
@@ -14669,5 +14753,5 @@ function VerticalSteps(_ref) {
|
|
|
14669
14753
|
VerticalSteps.Step = Step;
|
|
14670
14754
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14671
14755
|
|
|
14672
|
-
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 };
|
|
14756
|
+
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 };
|
|
14673
14757
|
//# sourceMappingURL=index.es.js.map
|