@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.web.js
CHANGED
|
@@ -856,15 +856,15 @@ var card = {
|
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
858
|
|
|
859
|
-
var webAnimationContentDuration$
|
|
860
|
-
var webAnimationContentEasing$
|
|
859
|
+
var webAnimationContentDuration$2 = 400;
|
|
860
|
+
var webAnimationContentEasing$2 = {
|
|
861
861
|
x1: 0.77,
|
|
862
862
|
y1: 0,
|
|
863
863
|
x2: 0.175,
|
|
864
864
|
y2: 1
|
|
865
865
|
};
|
|
866
|
-
var webAnimationOverlayDuration$
|
|
867
|
-
var webAnimationOverlayEasing$
|
|
866
|
+
var webAnimationOverlayDuration$2 = 250;
|
|
867
|
+
var webAnimationOverlayEasing$2 = {
|
|
868
868
|
x1: 0.42,
|
|
869
869
|
y1: 0,
|
|
870
870
|
x2: 1,
|
|
@@ -899,12 +899,12 @@ var cardModal = {
|
|
|
899
899
|
},
|
|
900
900
|
animation: {
|
|
901
901
|
overlay: {
|
|
902
|
-
duration: webAnimationOverlayDuration$
|
|
903
|
-
easing: webAnimationOverlayEasing$
|
|
902
|
+
duration: webAnimationOverlayDuration$2,
|
|
903
|
+
easing: webAnimationOverlayEasing$2
|
|
904
904
|
},
|
|
905
905
|
content: {
|
|
906
|
-
duration: webAnimationContentDuration$
|
|
907
|
-
easing: webAnimationContentEasing$
|
|
906
|
+
duration: webAnimationContentDuration$2,
|
|
907
|
+
easing: webAnimationContentEasing$2
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
910
|
};
|
|
@@ -960,15 +960,15 @@ var choices = {
|
|
|
960
960
|
}
|
|
961
961
|
};
|
|
962
962
|
|
|
963
|
-
var webAnimationContentDuration = 400;
|
|
964
|
-
var webAnimationContentEasing = {
|
|
963
|
+
var webAnimationContentDuration$1 = 400;
|
|
964
|
+
var webAnimationContentEasing$1 = {
|
|
965
965
|
x1: 0.77,
|
|
966
966
|
y1: 0,
|
|
967
967
|
x2: 0.175,
|
|
968
968
|
y2: 1
|
|
969
969
|
};
|
|
970
|
-
var webAnimationOverlayDuration = 250;
|
|
971
|
-
var webAnimationOverlayEasing = {
|
|
970
|
+
var webAnimationOverlayDuration$1 = 250;
|
|
971
|
+
var webAnimationOverlayEasing$1 = {
|
|
972
972
|
x1: 0.42,
|
|
973
973
|
y1: 0,
|
|
974
974
|
x2: 1,
|
|
@@ -990,12 +990,12 @@ var dialogModal = {
|
|
|
990
990
|
},
|
|
991
991
|
animation: {
|
|
992
992
|
overlay: {
|
|
993
|
-
duration: webAnimationOverlayDuration,
|
|
994
|
-
easing: webAnimationOverlayEasing
|
|
993
|
+
duration: webAnimationOverlayDuration$1,
|
|
994
|
+
easing: webAnimationOverlayEasing$1
|
|
995
995
|
},
|
|
996
996
|
content: {
|
|
997
|
-
duration: webAnimationContentDuration,
|
|
998
|
-
easing: webAnimationContentEasing
|
|
997
|
+
duration: webAnimationContentDuration$1,
|
|
998
|
+
easing: webAnimationContentEasing$1
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
@@ -1904,6 +1904,20 @@ var forms = {
|
|
|
1904
1904
|
timePicker: timePicker
|
|
1905
1905
|
};
|
|
1906
1906
|
|
|
1907
|
+
var webAnimationContentDuration = 600;
|
|
1908
|
+
var webAnimationContentEasing = {
|
|
1909
|
+
x1: 0.77,
|
|
1910
|
+
y1: 0,
|
|
1911
|
+
x2: 0.175,
|
|
1912
|
+
y2: 1
|
|
1913
|
+
};
|
|
1914
|
+
var webAnimationOverlayDuration = 250;
|
|
1915
|
+
var webAnimationOverlayEasing = {
|
|
1916
|
+
x1: 0.42,
|
|
1917
|
+
y1: 0,
|
|
1918
|
+
x2: 1,
|
|
1919
|
+
y2: 1
|
|
1920
|
+
};
|
|
1907
1921
|
var fullscreenModal = {
|
|
1908
1922
|
header: {
|
|
1909
1923
|
height: 56
|
|
@@ -1917,22 +1931,12 @@ var fullscreenModal = {
|
|
|
1917
1931
|
},
|
|
1918
1932
|
animation: {
|
|
1919
1933
|
overlay: {
|
|
1920
|
-
duration:
|
|
1921
|
-
easing:
|
|
1922
|
-
x1: 0.42,
|
|
1923
|
-
y1: 0,
|
|
1924
|
-
x2: 1,
|
|
1925
|
-
y2: 1
|
|
1926
|
-
}
|
|
1934
|
+
duration: webAnimationOverlayDuration,
|
|
1935
|
+
easing: webAnimationOverlayEasing
|
|
1927
1936
|
},
|
|
1928
1937
|
content: {
|
|
1929
|
-
duration:
|
|
1930
|
-
easing:
|
|
1931
|
-
x1: 0.77,
|
|
1932
|
-
y1: 0,
|
|
1933
|
-
x2: 0.175,
|
|
1934
|
-
y2: 1
|
|
1935
|
-
}
|
|
1938
|
+
duration: webAnimationContentDuration,
|
|
1939
|
+
easing: webAnimationContentEasing
|
|
1936
1940
|
}
|
|
1937
1941
|
}
|
|
1938
1942
|
};
|
|
@@ -2859,7 +2863,7 @@ function ActionCardDisabled(_ref) {
|
|
|
2859
2863
|
});
|
|
2860
2864
|
}
|
|
2861
2865
|
|
|
2862
|
-
var _excluded$
|
|
2866
|
+
var _excluded$Q = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2863
2867
|
function ActionCard(_ref) {
|
|
2864
2868
|
var children = _ref.children,
|
|
2865
2869
|
_ref$variant = _ref.variant,
|
|
@@ -2872,7 +2876,7 @@ function ActionCard(_ref) {
|
|
|
2872
2876
|
isHovered = _ref.isHovered,
|
|
2873
2877
|
isPressed = _ref.isPressed,
|
|
2874
2878
|
isFocused = _ref.isFocused,
|
|
2875
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2879
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
2876
2880
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2877
2881
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2878
2882
|
borderRadius: borderRadius,
|
|
@@ -3204,7 +3208,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
|
|
|
3204
3208
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3205
3209
|
};
|
|
3206
3210
|
|
|
3207
|
-
var _excluded$
|
|
3211
|
+
var _excluded$P = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3208
3212
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3209
3213
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3210
3214
|
var TypographyVariantContext = /*#__PURE__*/createContext(undefined);
|
|
@@ -3329,7 +3333,7 @@ var TypographyBase = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
3329
3333
|
} : _ref2$type,
|
|
3330
3334
|
variant = _ref2.variant,
|
|
3331
3335
|
color = _ref2.color,
|
|
3332
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
3336
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$P);
|
|
3333
3337
|
var sx = useSx();
|
|
3334
3338
|
|
|
3335
3339
|
// ancestors
|
|
@@ -3491,12 +3495,12 @@ function Icon(_ref) {
|
|
|
3491
3495
|
});
|
|
3492
3496
|
}
|
|
3493
3497
|
|
|
3494
|
-
var _excluded$
|
|
3498
|
+
var _excluded$O = ["color", "size"],
|
|
3495
3499
|
_excluded2$6 = ["color"];
|
|
3496
3500
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3497
3501
|
var color = _ref.color,
|
|
3498
3502
|
size = _ref.size,
|
|
3499
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3503
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
3500
3504
|
var colorValue = getTypographyColorValue(color);
|
|
3501
3505
|
var sx = useSx();
|
|
3502
3506
|
var _sx = sx({
|
|
@@ -3536,7 +3540,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
|
|
|
3536
3540
|
return "".concat(baseKey, ".default");
|
|
3537
3541
|
};
|
|
3538
3542
|
|
|
3539
|
-
var _excluded$
|
|
3543
|
+
var _excluded$N = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3540
3544
|
function ButtonContentChildren(_ref) {
|
|
3541
3545
|
var type = _ref.type,
|
|
3542
3546
|
icon = _ref.icon,
|
|
@@ -3636,7 +3640,7 @@ function ButtonContent(_ref2) {
|
|
|
3636
3640
|
_ref2.isFocused;
|
|
3637
3641
|
var innerSpacing = _ref2.innerSpacing,
|
|
3638
3642
|
size = _ref2.size,
|
|
3639
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3643
|
+
props = _objectWithoutProperties(_ref2, _excluded$N);
|
|
3640
3644
|
var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3641
3645
|
return /*#__PURE__*/jsx(View, {
|
|
3642
3646
|
_web: {
|
|
@@ -3937,7 +3941,7 @@ function LoaderIcon(_ref) {
|
|
|
3937
3941
|
});
|
|
3938
3942
|
}
|
|
3939
3943
|
|
|
3940
|
-
var _excluded$
|
|
3944
|
+
var _excluded$M = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3941
3945
|
var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3942
3946
|
var as = _ref.as,
|
|
3943
3947
|
onPress = _ref.onPress,
|
|
@@ -3948,7 +3952,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3948
3952
|
base: true,
|
|
3949
3953
|
medium: false
|
|
3950
3954
|
} : _ref$stretch,
|
|
3951
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3955
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
3952
3956
|
var _useState = useState(false),
|
|
3953
3957
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3954
3958
|
isLoading = _useState2[0],
|
|
@@ -4026,7 +4030,7 @@ function ActionsButton(_ref) {
|
|
|
4026
4030
|
}, props));
|
|
4027
4031
|
}
|
|
4028
4032
|
|
|
4029
|
-
var _excluded$
|
|
4033
|
+
var _excluded$L = ["children", "layout", "reversed"];
|
|
4030
4034
|
function getCurrentLayout(layout) {
|
|
4031
4035
|
if (!layout) return {
|
|
4032
4036
|
base: 'stretch',
|
|
@@ -4058,7 +4062,7 @@ function Actions(_ref) {
|
|
|
4058
4062
|
reversed = _ref$reversed === void 0 ? {
|
|
4059
4063
|
base: false
|
|
4060
4064
|
} : _ref$reversed,
|
|
4061
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4065
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
4062
4066
|
var shouldReverse = typeof reversed === 'boolean' ? {
|
|
4063
4067
|
base: !!reversed
|
|
4064
4068
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -4111,7 +4115,7 @@ function getInitials(firstname, lastname) {
|
|
|
4111
4115
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
4112
4116
|
}
|
|
4113
4117
|
|
|
4114
|
-
var _excluded$
|
|
4118
|
+
var _excluded$K = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
4115
4119
|
function AvatarContent(_ref) {
|
|
4116
4120
|
var size = _ref.size,
|
|
4117
4121
|
src = _ref.src,
|
|
@@ -4174,7 +4178,7 @@ function Avatar(_ref2) {
|
|
|
4174
4178
|
height = _ref2.height,
|
|
4175
4179
|
dark = _ref2.dark,
|
|
4176
4180
|
disabled = _ref2.disabled,
|
|
4177
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
4181
|
+
props = _objectWithoutProperties(_ref2, _excluded$K);
|
|
4178
4182
|
var currentSize = getCurrentSize({
|
|
4179
4183
|
size: size,
|
|
4180
4184
|
sizeVariant: sizeVariant
|
|
@@ -4359,7 +4363,7 @@ var CardModalRotationContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4359
4363
|
}));
|
|
4360
4364
|
});
|
|
4361
4365
|
|
|
4362
|
-
var _excluded$
|
|
4366
|
+
var _excluded$J = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4363
4367
|
var contentAnimationEnter = "kitt-u_contentAnimationEnter_c11xxy4r";
|
|
4364
4368
|
var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_cl52117";
|
|
4365
4369
|
var contentAnimatioExit = "kitt-u_contentAnimatioExit_cyjczep";
|
|
@@ -4372,17 +4376,17 @@ var contentAnimationClassNames = {
|
|
|
4372
4376
|
exit: contentAnimatioExit,
|
|
4373
4377
|
exitActive: contentAnimatioExitActive
|
|
4374
4378
|
};
|
|
4375
|
-
var opacityEnter = "kitt-u_opacityEnter_o1ae40dx";
|
|
4376
|
-
var opacityEnterActive = "kitt-u_opacityEnterActive_o1t4vl7b";
|
|
4377
|
-
var opacityExit = "kitt-u_opacityExit_ogyytm1";
|
|
4378
|
-
var opacityExitActive = "kitt-u_opacityExitActive_o18xvk52";
|
|
4379
|
-
var opacityClassNames = {
|
|
4380
|
-
appear: opacityEnter,
|
|
4381
|
-
appearActive: opacityEnterActive,
|
|
4382
|
-
enter: opacityEnter,
|
|
4383
|
-
enterActive: opacityEnterActive,
|
|
4384
|
-
exit: opacityExit,
|
|
4385
|
-
exitActive: opacityExitActive
|
|
4379
|
+
var opacityEnter$1 = "kitt-u_opacityEnter_o1ae40dx";
|
|
4380
|
+
var opacityEnterActive$1 = "kitt-u_opacityEnterActive_o1t4vl7b";
|
|
4381
|
+
var opacityExit$1 = "kitt-u_opacityExit_ogyytm1";
|
|
4382
|
+
var opacityExitActive$1 = "kitt-u_opacityExitActive_o18xvk52";
|
|
4383
|
+
var opacityClassNames$1 = {
|
|
4384
|
+
appear: opacityEnter$1,
|
|
4385
|
+
appearActive: opacityEnterActive$1,
|
|
4386
|
+
enter: opacityEnter$1,
|
|
4387
|
+
enterActive: opacityEnterActive$1,
|
|
4388
|
+
exit: opacityExit$1,
|
|
4389
|
+
exitActive: opacityExitActive$1
|
|
4386
4390
|
};
|
|
4387
4391
|
function CardModalAnimation(_ref) {
|
|
4388
4392
|
var children = _ref.children,
|
|
@@ -4398,7 +4402,7 @@ function CardModalAnimation(_ref) {
|
|
|
4398
4402
|
onExit = _ref.onExit,
|
|
4399
4403
|
onExited = _ref.onExited,
|
|
4400
4404
|
onClose = _ref.onClose,
|
|
4401
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4405
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4402
4406
|
// React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
|
|
4403
4407
|
// See https://github.com/reactjs/react-transition-group/issues/918
|
|
4404
4408
|
var overlayRef = useRef(null);
|
|
@@ -4416,7 +4420,7 @@ function CardModalAnimation(_ref) {
|
|
|
4416
4420
|
children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
4417
4421
|
nodeRef: overlayRef,
|
|
4418
4422
|
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
4419
|
-
classNames: opacityClassNames,
|
|
4423
|
+
classNames: opacityClassNames$1,
|
|
4420
4424
|
children: /*#__PURE__*/jsx(Overlay, {
|
|
4421
4425
|
ref: overlayRef,
|
|
4422
4426
|
onPress: onClose
|
|
@@ -4439,13 +4443,13 @@ function CardModalAnimation(_ref) {
|
|
|
4439
4443
|
}));
|
|
4440
4444
|
}
|
|
4441
4445
|
|
|
4442
|
-
var _excluded$
|
|
4446
|
+
var _excluded$I = ["children", "visible", "onClose", "onExited"];
|
|
4443
4447
|
function CardModalBehaviour(_ref) {
|
|
4444
4448
|
var children = _ref.children,
|
|
4445
4449
|
visible = _ref.visible,
|
|
4446
4450
|
onClose = _ref.onClose,
|
|
4447
4451
|
onExited = _ref.onExited,
|
|
4448
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4452
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4449
4453
|
var _useState = useState(visible),
|
|
4450
4454
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4451
4455
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4470,12 +4474,12 @@ function CardModalBehaviour(_ref) {
|
|
|
4470
4474
|
});
|
|
4471
4475
|
}
|
|
4472
4476
|
|
|
4473
|
-
var _excluded$
|
|
4477
|
+
var _excluded$H = ["children", "padding"];
|
|
4474
4478
|
function CardModalBody(_ref) {
|
|
4475
4479
|
var children = _ref.children,
|
|
4476
4480
|
_ref$padding = _ref.padding,
|
|
4477
4481
|
padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
|
|
4478
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4482
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4479
4483
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4480
4484
|
showsVerticalScrollIndicator: false,
|
|
4481
4485
|
_contentContainerStyle: {
|
|
@@ -4486,7 +4490,7 @@ function CardModalBody(_ref) {
|
|
|
4486
4490
|
}));
|
|
4487
4491
|
}
|
|
4488
4492
|
|
|
4489
|
-
var _excluded$
|
|
4493
|
+
var _excluded$G = ["children", "padding", "hasSeparator"];
|
|
4490
4494
|
function CardModalFooter(_ref) {
|
|
4491
4495
|
var children = _ref.children,
|
|
4492
4496
|
_ref$padding = _ref.padding,
|
|
@@ -4496,7 +4500,7 @@ function CardModalFooter(_ref) {
|
|
|
4496
4500
|
} : _ref$padding,
|
|
4497
4501
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4498
4502
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4499
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4503
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4500
4504
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4501
4505
|
marginTop: "kitt.2",
|
|
4502
4506
|
padding: padding,
|
|
@@ -4540,7 +4544,7 @@ var getButtonTypeAndVariant = function (iconColor) {
|
|
|
4540
4544
|
}
|
|
4541
4545
|
};
|
|
4542
4546
|
|
|
4543
|
-
var _excluded$
|
|
4547
|
+
var _excluded$F = ["color", "ariaLabel"];
|
|
4544
4548
|
/**
|
|
4545
4549
|
* @deprecated IconButton should only be used as a navigation button
|
|
4546
4550
|
* Other use cases should use a <Button> component with an icon
|
|
@@ -4549,7 +4553,7 @@ function IconButton(_ref) {
|
|
|
4549
4553
|
var _ref$color = _ref.color,
|
|
4550
4554
|
color = _ref$color === void 0 ? 'black' : _ref$color;
|
|
4551
4555
|
_ref.ariaLabel;
|
|
4552
|
-
var props = _objectWithoutProperties(_ref, _excluded$
|
|
4556
|
+
var props = _objectWithoutProperties(_ref, _excluded$F);
|
|
4553
4557
|
var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
|
|
4554
4558
|
legacyColorToType = _getButtonTypeAndVari.type,
|
|
4555
4559
|
legacyColorToVariant = _getButtonTypeAndVari.variant;
|
|
@@ -4656,7 +4660,7 @@ function CardModalHeader(props) {
|
|
|
4656
4660
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4657
4661
|
}
|
|
4658
4662
|
|
|
4659
|
-
var _excluded$
|
|
4663
|
+
var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
|
|
4660
4664
|
function CardModal(_ref) {
|
|
4661
4665
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4662
4666
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4664,7 +4668,7 @@ function CardModal(_ref) {
|
|
|
4664
4668
|
maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
|
|
4665
4669
|
withoutShadow = _ref.withoutShadow,
|
|
4666
4670
|
children = _ref.children,
|
|
4667
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4671
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
4668
4672
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4669
4673
|
overflow: "hidden",
|
|
4670
4674
|
backgroundColor: backgroundColor,
|
|
@@ -4880,11 +4884,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4880
4884
|
}));
|
|
4881
4885
|
}
|
|
4882
4886
|
|
|
4883
|
-
var _excluded$
|
|
4887
|
+
var _excluded$D = ["direction", "contentContainerStyle"];
|
|
4884
4888
|
function ChoicesContainer(_ref) {
|
|
4885
4889
|
var direction = _ref.direction,
|
|
4886
4890
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4887
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4891
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
4888
4892
|
if (direction === 'row') {
|
|
4889
4893
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4890
4894
|
horizontal: true,
|
|
@@ -5061,7 +5065,8 @@ function DialogModalAnimation(_ref) {
|
|
|
5061
5065
|
onEntered = _ref.onEntered,
|
|
5062
5066
|
onExit = _ref.onExit,
|
|
5063
5067
|
onExited = _ref.onExited,
|
|
5064
|
-
onClose = _ref.onClose
|
|
5068
|
+
onClose = _ref.onClose,
|
|
5069
|
+
testID = _ref.testID;
|
|
5065
5070
|
var _useState = useState(visible),
|
|
5066
5071
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5067
5072
|
isModalVisible = _useState2[0],
|
|
@@ -5100,6 +5105,7 @@ function DialogModalAnimation(_ref) {
|
|
|
5100
5105
|
flexGrow: 1,
|
|
5101
5106
|
justifyContent: "center",
|
|
5102
5107
|
alignItems: "center",
|
|
5108
|
+
testID: testID,
|
|
5103
5109
|
children: [/*#__PURE__*/jsx(NativeOpacityAnimation, {
|
|
5104
5110
|
visible: isContentVisible,
|
|
5105
5111
|
onExited: handleAnimationExited,
|
|
@@ -5120,13 +5126,13 @@ function DialogModalAnimation(_ref) {
|
|
|
5120
5126
|
});
|
|
5121
5127
|
}
|
|
5122
5128
|
|
|
5123
|
-
var _excluded$
|
|
5129
|
+
var _excluded$C = ["children", "visible", "onClose", "onExited"];
|
|
5124
5130
|
function DialogModalBehaviour(_ref) {
|
|
5125
5131
|
var children = _ref.children,
|
|
5126
5132
|
visible = _ref.visible,
|
|
5127
5133
|
onClose = _ref.onClose,
|
|
5128
5134
|
onExited = _ref.onExited,
|
|
5129
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5135
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
5130
5136
|
var _useState = useState(visible),
|
|
5131
5137
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5132
5138
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -5157,7 +5163,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5157
5163
|
});
|
|
5158
5164
|
}
|
|
5159
5165
|
|
|
5160
|
-
var _excluded$
|
|
5166
|
+
var _excluded$B = ["stretch"];
|
|
5161
5167
|
function DialogModal(_ref) {
|
|
5162
5168
|
var illustration = _ref.illustration,
|
|
5163
5169
|
title = _ref.title,
|
|
@@ -5197,7 +5203,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
5197
5203
|
function DialogModalButton(_ref2) {
|
|
5198
5204
|
var _ref2$stretch = _ref2.stretch,
|
|
5199
5205
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
5200
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
5206
|
+
props = _objectWithoutProperties(_ref2, _excluded$B);
|
|
5201
5207
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5202
5208
|
stretch: stretch
|
|
5203
5209
|
}, props));
|
|
@@ -5234,7 +5240,7 @@ function Emoji(_ref) {
|
|
|
5234
5240
|
});
|
|
5235
5241
|
}
|
|
5236
5242
|
|
|
5237
|
-
var _excluded$
|
|
5243
|
+
var _excluded$A = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5238
5244
|
_excluded2$5 = ["phoneNumber", "children"],
|
|
5239
5245
|
_excluded3$4 = ["phoneNumber", "children"],
|
|
5240
5246
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5244,7 +5250,7 @@ function ExternalAppLink(_ref) {
|
|
|
5244
5250
|
appValue = _ref.appValue,
|
|
5245
5251
|
onPress = _ref.onPress,
|
|
5246
5252
|
onOpenAppError = _ref.onOpenAppError,
|
|
5247
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5253
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
5248
5254
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
5249
5255
|
var handleOnPress = /*#__PURE__*/function () {
|
|
5250
5256
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -5339,14 +5345,14 @@ var defaultOpenLinkBehavior = {
|
|
|
5339
5345
|
web: 'targetBlank'
|
|
5340
5346
|
};
|
|
5341
5347
|
|
|
5342
|
-
var _excluded$
|
|
5348
|
+
var _excluded$z = ["as", "href", "openLinkBehavior", "onPress"];
|
|
5343
5349
|
function ExternalLink(_ref) {
|
|
5344
5350
|
var Component = _ref.as,
|
|
5345
5351
|
href = _ref.href,
|
|
5346
5352
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
5347
5353
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
5348
5354
|
onPress = _ref.onPress,
|
|
5349
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5355
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
5350
5356
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
5351
5357
|
accessibilityRole: "link",
|
|
5352
5358
|
href: href,
|
|
@@ -5422,7 +5428,7 @@ function InputTextContainer(props) {
|
|
|
5422
5428
|
}, props));
|
|
5423
5429
|
}
|
|
5424
5430
|
|
|
5425
|
-
var _excluded$
|
|
5431
|
+
var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5426
5432
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5427
5433
|
var id = _ref.id,
|
|
5428
5434
|
right = _ref.right;
|
|
@@ -5443,7 +5449,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5443
5449
|
multiline = _ref.multiline,
|
|
5444
5450
|
height = _ref.height,
|
|
5445
5451
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5446
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5452
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5447
5453
|
var theme = useTheme();
|
|
5448
5454
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5449
5455
|
base: 'body-m'
|
|
@@ -5567,12 +5573,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5567
5573
|
});
|
|
5568
5574
|
}
|
|
5569
5575
|
|
|
5570
|
-
var _excluded$
|
|
5576
|
+
var _excluded$x = ["children", "testID"];
|
|
5571
5577
|
function AutocompleteOption(_ref) {
|
|
5572
5578
|
var children = _ref.children,
|
|
5573
5579
|
_ref$testID = _ref.testID,
|
|
5574
5580
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5575
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5581
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5576
5582
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5577
5583
|
paddingX: {
|
|
5578
5584
|
base: 'kitt.2',
|
|
@@ -5585,7 +5591,7 @@ function AutocompleteOption(_ref) {
|
|
|
5585
5591
|
}));
|
|
5586
5592
|
}
|
|
5587
5593
|
|
|
5588
|
-
var _excluded$
|
|
5594
|
+
var _excluded$w = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
|
|
5589
5595
|
_excluded2$4 = ["onClick", "onPress"],
|
|
5590
5596
|
_excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5591
5597
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5619,7 +5625,7 @@ function Autocomplete(_ref) {
|
|
|
5619
5625
|
_ref$zIndex = _ref.zIndex,
|
|
5620
5626
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5621
5627
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5622
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5628
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
5623
5629
|
var childrenArray = Children.toArray(children);
|
|
5624
5630
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5625
5631
|
return {
|
|
@@ -5826,7 +5832,7 @@ function getBorderColor$1(_ref) {
|
|
|
5826
5832
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5827
5833
|
}
|
|
5828
5834
|
|
|
5829
|
-
var _excluded$
|
|
5835
|
+
var _excluded$v = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5830
5836
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5831
5837
|
var checked = _ref.checked,
|
|
5832
5838
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5836,7 +5842,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5836
5842
|
onChange = _ref.onChange,
|
|
5837
5843
|
onBlur = _ref.onBlur,
|
|
5838
5844
|
onFocus = _ref.onFocus,
|
|
5839
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5845
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
5840
5846
|
var theme = useTheme();
|
|
5841
5847
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5842
5848
|
hitSlop: hitSlop
|
|
@@ -6152,7 +6158,7 @@ function PartContainer(_ref) {
|
|
|
6152
6158
|
});
|
|
6153
6159
|
}
|
|
6154
6160
|
|
|
6155
|
-
var _excluded$
|
|
6161
|
+
var _excluded$u = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6156
6162
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6157
6163
|
var id = _ref.id,
|
|
6158
6164
|
value = _ref.value,
|
|
@@ -6170,7 +6176,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6170
6176
|
onBlur = _ref.onBlur,
|
|
6171
6177
|
onFocus = _ref.onFocus,
|
|
6172
6178
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
6173
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6179
|
+
_objectWithoutProperties(_ref, _excluded$u);
|
|
6174
6180
|
var monthRef = useRef(null);
|
|
6175
6181
|
var yearRef = useRef(null);
|
|
6176
6182
|
var defaultValue = value;
|
|
@@ -6310,10 +6316,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6310
6316
|
});
|
|
6311
6317
|
});
|
|
6312
6318
|
|
|
6313
|
-
var _excluded$
|
|
6319
|
+
var _excluded$t = ["value"];
|
|
6314
6320
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6315
6321
|
var value = _ref.value,
|
|
6316
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6322
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6317
6323
|
// in apps, final-form can give a string value that will break the component
|
|
6318
6324
|
var currentValue = value || undefined;
|
|
6319
6325
|
return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
|
|
@@ -6424,6 +6430,84 @@ function ImagePicker(_ref) {
|
|
|
6424
6430
|
});
|
|
6425
6431
|
}
|
|
6426
6432
|
|
|
6433
|
+
function InputAddressOption(_ref) {
|
|
6434
|
+
var item = _ref.item,
|
|
6435
|
+
mainText = _ref.mainText,
|
|
6436
|
+
secondaryText = _ref.secondaryText;
|
|
6437
|
+
var sharedTransform = {
|
|
6438
|
+
style: {
|
|
6439
|
+
transform: 'translateY(4px)'
|
|
6440
|
+
}
|
|
6441
|
+
};
|
|
6442
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6443
|
+
item: item,
|
|
6444
|
+
testID: "kitt.InputAddressOption.item",
|
|
6445
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
6446
|
+
space: "kitt.2",
|
|
6447
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
6448
|
+
_web: sharedTransform,
|
|
6449
|
+
_ios: sharedTransform,
|
|
6450
|
+
_android: sharedTransform,
|
|
6451
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6452
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6453
|
+
color: "black"
|
|
6454
|
+
})
|
|
6455
|
+
}), /*#__PURE__*/jsx(View, {
|
|
6456
|
+
flexShrink: 1,
|
|
6457
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6458
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6459
|
+
variant: "bold",
|
|
6460
|
+
children: mainText
|
|
6461
|
+
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6462
|
+
color: "black-light",
|
|
6463
|
+
variant: "bold",
|
|
6464
|
+
children: [' ', secondaryText]
|
|
6465
|
+
}) : null]
|
|
6466
|
+
})
|
|
6467
|
+
})]
|
|
6468
|
+
})
|
|
6469
|
+
});
|
|
6470
|
+
}
|
|
6471
|
+
|
|
6472
|
+
var _excluded$s = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "renderItem"];
|
|
6473
|
+
function InputAddress(_ref) {
|
|
6474
|
+
var errorElement = _ref.errorElement,
|
|
6475
|
+
initialValue = _ref.initialValue,
|
|
6476
|
+
emptyResultsElement = _ref.emptyResultsElement,
|
|
6477
|
+
_onChange = _ref.onChange,
|
|
6478
|
+
items = _ref.items,
|
|
6479
|
+
isLoading = _ref.isLoading,
|
|
6480
|
+
hasError = _ref.hasError,
|
|
6481
|
+
_onInputChange = _ref.onInputChange,
|
|
6482
|
+
onSelectItem = _ref.onSelectItem,
|
|
6483
|
+
convertInitialValue = _ref.convertInitialValue,
|
|
6484
|
+
renderItem = _ref.renderItem,
|
|
6485
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6486
|
+
var formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
6487
|
+
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
6488
|
+
initialValue: formattedInitialValue,
|
|
6489
|
+
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
6490
|
+
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
6491
|
+
color: "kitt.black"
|
|
6492
|
+
}) : undefined,
|
|
6493
|
+
errorElement: hasError ? errorElement : null,
|
|
6494
|
+
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
6495
|
+
onInputChange: function (value) {
|
|
6496
|
+
return _onInputChange(value);
|
|
6497
|
+
},
|
|
6498
|
+
onChange: function (item) {
|
|
6499
|
+
return onSelectItem(item, _onChange);
|
|
6500
|
+
},
|
|
6501
|
+
children: items.map(function (item) {
|
|
6502
|
+
var itemElement = renderItem(item);
|
|
6503
|
+
return /*#__PURE__*/cloneElement(itemElement, {
|
|
6504
|
+
item: item
|
|
6505
|
+
});
|
|
6506
|
+
})
|
|
6507
|
+
}));
|
|
6508
|
+
}
|
|
6509
|
+
InputAddress.Option = InputAddressOption;
|
|
6510
|
+
|
|
6427
6511
|
var GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
6428
6512
|
function GoogleMapsApiKeyProvider(_ref) {
|
|
6429
6513
|
var children = _ref.children,
|
|
@@ -6829,7 +6913,7 @@ function useGoogleMapsAutocomplete() {
|
|
|
6829
6913
|
return context;
|
|
6830
6914
|
}
|
|
6831
6915
|
|
|
6832
|
-
function
|
|
6916
|
+
function InputAddressOptionLegacy(_ref) {
|
|
6833
6917
|
var item = _ref.item;
|
|
6834
6918
|
var sharedTransform = {
|
|
6835
6919
|
style: {
|
|
@@ -6838,7 +6922,7 @@ function InputAddressOption(_ref) {
|
|
|
6838
6922
|
};
|
|
6839
6923
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6840
6924
|
item: item,
|
|
6841
|
-
testID: "kitt.
|
|
6925
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
6842
6926
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
6843
6927
|
space: "kitt.2",
|
|
6844
6928
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -6898,7 +6982,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
6898
6982
|
}
|
|
6899
6983
|
|
|
6900
6984
|
var _excluded$r = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
6901
|
-
function
|
|
6985
|
+
function InputAddressLegacy(_ref) {
|
|
6902
6986
|
var initialValue = _ref.initialValue,
|
|
6903
6987
|
_ref$itemToString = _ref.itemToString,
|
|
6904
6988
|
itemToString = _ref$itemToString === void 0 ? defaultItemToString : _ref$itemToString,
|
|
@@ -6932,13 +7016,13 @@ function InputAddress(_ref) {
|
|
|
6932
7016
|
onSelectItem(v, _onChange);
|
|
6933
7017
|
},
|
|
6934
7018
|
children: state.items.map(function (item) {
|
|
6935
|
-
return /*#__PURE__*/jsx(
|
|
7019
|
+
return /*#__PURE__*/jsx(InputAddressOptionLegacy, {
|
|
6936
7020
|
item: item
|
|
6937
7021
|
}, item.place_id);
|
|
6938
7022
|
})
|
|
6939
7023
|
}));
|
|
6940
7024
|
}
|
|
6941
|
-
|
|
7025
|
+
InputAddressLegacy.Option = InputAddressOptionLegacy;
|
|
6942
7026
|
|
|
6943
7027
|
var InputEmail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
6944
7028
|
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
@@ -7824,24 +7908,30 @@ function FullscreenModalFooter(_ref) {
|
|
|
7824
7908
|
}));
|
|
7825
7909
|
}
|
|
7826
7910
|
|
|
7827
|
-
var styles$1 = {"overlay-enter":"FullscreenModalAnimation-module_overlay-enter__L1J1X","overlay-enter-active":"FullscreenModalAnimation-module_overlay-enter-active__gDEVb","overlay-exit":"FullscreenModalAnimation-module_overlay-exit__Qx1WE","overlay-exit-active":"FullscreenModalAnimation-module_overlay-exit-active__lFR3x","content-enter":"FullscreenModalAnimation-module_content-enter__JmCWa","content-enter-active":"FullscreenModalAnimation-module_content-enter-active__iaNRs","content-exit":"FullscreenModalAnimation-module_content-exit__hB0wY","content-exit-active":"FullscreenModalAnimation-module_content-exit-active__BPVPo"};
|
|
7828
|
-
|
|
7829
7911
|
var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
7830
|
-
var
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
enterActive: styles$1['overlay-enter-active'],
|
|
7835
|
-
exit: styles$1['overlay-exit'],
|
|
7836
|
-
exitActive: styles$1['overlay-exit-active']
|
|
7837
|
-
};
|
|
7912
|
+
var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
|
|
7913
|
+
var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
|
|
7914
|
+
var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
|
|
7915
|
+
var slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
|
|
7838
7916
|
var slideInClassNames = {
|
|
7839
|
-
appear:
|
|
7840
|
-
appearActive:
|
|
7841
|
-
enter:
|
|
7842
|
-
enterActive:
|
|
7843
|
-
exit:
|
|
7844
|
-
exitActive:
|
|
7917
|
+
appear: slideInFromBottomEnter,
|
|
7918
|
+
appearActive: slideInFromBottomEnterActive,
|
|
7919
|
+
enter: slideInFromBottomEnter,
|
|
7920
|
+
enterActive: slideInFromBottomEnterActive,
|
|
7921
|
+
exit: slideInFromBottomExit,
|
|
7922
|
+
exitActive: slideInFromBottomExitActive
|
|
7923
|
+
};
|
|
7924
|
+
var opacityEnter = "kitt-u_opacityEnter_okm44hr";
|
|
7925
|
+
var opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
|
|
7926
|
+
var opacityExit = "kitt-u_opacityExit_o14r8iix";
|
|
7927
|
+
var opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
|
|
7928
|
+
var opacityClassNames = {
|
|
7929
|
+
appear: opacityEnter,
|
|
7930
|
+
appearActive: opacityEnterActive,
|
|
7931
|
+
enter: opacityEnter,
|
|
7932
|
+
enterActive: opacityEnterActive,
|
|
7933
|
+
exit: opacityExit,
|
|
7934
|
+
exitActive: opacityExitActive
|
|
7845
7935
|
};
|
|
7846
7936
|
function FullscreenModalAnimation(_ref) {
|
|
7847
7937
|
var children = _ref.children,
|
|
@@ -7869,41 +7959,28 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7869
7959
|
appear: appear,
|
|
7870
7960
|
unmountOnExit: unmountOnExit
|
|
7871
7961
|
};
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
nodeRef: contentRef,
|
|
7895
|
-
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
7896
|
-
classNames: slideInClassNames,
|
|
7897
|
-
onEnter: onEnter,
|
|
7898
|
-
onEntered: onEntered,
|
|
7899
|
-
onExit: onExit,
|
|
7900
|
-
onExited: onExited,
|
|
7901
|
-
children: /*#__PURE__*/jsx(View, {
|
|
7902
|
-
ref: contentRef,
|
|
7903
|
-
children: children
|
|
7904
|
-
})
|
|
7905
|
-
}))]
|
|
7906
|
-
})
|
|
7962
|
+
return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
7963
|
+
children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
7964
|
+
nodeRef: overlayRef,
|
|
7965
|
+
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
7966
|
+
classNames: opacityClassNames,
|
|
7967
|
+
children: /*#__PURE__*/jsx(Overlay, {
|
|
7968
|
+
ref: overlayRef,
|
|
7969
|
+
onPress: onClose
|
|
7970
|
+
})
|
|
7971
|
+
})), /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
7972
|
+
nodeRef: contentRef,
|
|
7973
|
+
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
7974
|
+
classNames: slideInClassNames,
|
|
7975
|
+
onEnter: onEnter,
|
|
7976
|
+
onEntered: onEntered,
|
|
7977
|
+
onExit: onExit,
|
|
7978
|
+
onExited: onExited,
|
|
7979
|
+
children: /*#__PURE__*/jsx(View, {
|
|
7980
|
+
ref: contentRef,
|
|
7981
|
+
children: children
|
|
7982
|
+
})
|
|
7983
|
+
}))]
|
|
7907
7984
|
}));
|
|
7908
7985
|
}
|
|
7909
7986
|
|
|
@@ -13915,5 +13992,5 @@ function VerticalSteps(_ref) {
|
|
|
13915
13992
|
VerticalSteps.Step = Step;
|
|
13916
13993
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
13917
13994
|
|
|
13918
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13995
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputAddressLegacy, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13919
13996
|
//# sourceMappingURL=index.es.web.js.map
|