@ornikar/kitt-universal 21.0.3 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/definitions/ActionCard/ActionCardContentWrapper.d.ts.map +1 -1
- package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
- package/dist/definitions/Button/FocusBorder.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +2 -2
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Arrow.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/DatePicker.d.ts +1 -1
- package/dist/definitions/forms/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts +1 -1
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/PressableDateInputs.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/RadioButtonGroup/HoverBorder.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +2 -2
- package/dist/definitions/themes/default.d.ts +0 -2
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +0 -2
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +376 -46
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +3 -3
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/definitions/utils/getEnterKeyHintForNumericInput/getEnterKeyHintForNumericInput.d.ts +3 -0
- package/dist/definitions/utils/getEnterKeyHintForNumericInput/getEnterKeyHintForNumericInput.d.ts.map +1 -0
- package/dist/{index.es.ios.js → index-metro.es.android.js} +3576 -4152
- package/dist/index-metro.es.android.js.map +1 -0
- package/dist/{index.es.android.js → index-metro.es.ios.js} +3576 -4152
- package/dist/index-metro.es.ios.js.map +1 -0
- package/dist/index-node-18.18.cjs.js +217 -602
- package/dist/index-node-18.18.cjs.js.map +1 -1
- package/dist/index-node-18.18.cjs.web.js +45 -66
- package/dist/index-node-18.18.cjs.web.js.map +1 -1
- package/dist/index-node-18.18.es.mjs +217 -602
- package/dist/index-node-18.18.es.mjs.map +1 -1
- package/dist/index-node-18.18.es.web.mjs +45 -66
- package/dist/index-node-18.18.es.web.mjs.map +1 -1
- package/dist/index.es.js +227 -612
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +49 -70
- package/dist/index.es.web.js.map +1 -1
- package/dist/{linaria-themes.es.ios.js → linaria-themes-metro.es.android.js} +172 -187
- package/dist/linaria-themes-metro.es.android.js.map +1 -0
- package/dist/{linaria-themes.es.android.js → linaria-themes-metro.es.ios.js} +172 -187
- package/dist/linaria-themes-metro.es.ios.js.map +1 -0
- package/dist/linaria-themes-node-18.18.cjs.js +0 -6
- package/dist/linaria-themes-node-18.18.cjs.js.map +1 -1
- package/dist/linaria-themes-node-18.18.cjs.web.js +0 -6
- package/dist/linaria-themes-node-18.18.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-18.18.es.mjs +0 -6
- package/dist/linaria-themes-node-18.18.es.mjs.map +1 -1
- package/dist/linaria-themes-node-18.18.es.web.mjs +0 -6
- package/dist/linaria-themes-node-18.18.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +0 -6
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +0 -6
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +16 -15
- package/typings/react-native-web.d.ts +48 -5
- package/dist/definitions/utils/getReturnKeyTypeForNumericInput/getReturnKeyTypeForNumericInput.d.ts +0 -3
- package/dist/definitions/utils/getReturnKeyTypeForNumericInput/getReturnKeyTypeForNumericInput.d.ts.map +0 -1
- package/dist/index.es.android.js.map +0 -1
- package/dist/index.es.ios.js.map +0 -1
- package/dist/linaria-themes.es.android.js.map +0 -1
- package/dist/linaria-themes.es.ios.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -874,9 +874,6 @@ var typography = {
|
|
|
874
874
|
warning: colors.warning
|
|
875
875
|
},
|
|
876
876
|
types: {
|
|
877
|
-
get header() {
|
|
878
|
-
throw new Error('typography.types.header is deprecated, use typography.type.headings instead');
|
|
879
|
-
},
|
|
880
877
|
headings: {
|
|
881
878
|
fontFamily: {
|
|
882
879
|
"native": {
|
|
@@ -910,9 +907,6 @@ var typography = {
|
|
|
910
907
|
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
911
908
|
}
|
|
912
909
|
},
|
|
913
|
-
get 'headers-impact'() {
|
|
914
|
-
throw new Error('typography.types.headers-impact is deprecated, use typography.type.headings-impact instead');
|
|
915
|
-
},
|
|
916
910
|
'headings-impact': {
|
|
917
911
|
fontFamily: {
|
|
918
912
|
"native": {
|
|
@@ -1700,7 +1694,9 @@ function ActionCardContentWrapper(_ref) {
|
|
|
1700
1694
|
style: sharedTransform
|
|
1701
1695
|
},
|
|
1702
1696
|
_web: {
|
|
1703
|
-
style:
|
|
1697
|
+
style: {
|
|
1698
|
+
transform: "translateY(".concat(translateY, "px)")
|
|
1699
|
+
}
|
|
1704
1700
|
},
|
|
1705
1701
|
width: "100%",
|
|
1706
1702
|
backgroundColor: "kitt.actionCard.".concat(themeName, ".").concat(state, ".backgroundColor"),
|
|
@@ -2082,7 +2078,7 @@ var createHeading = function (level, defaultBase) {
|
|
|
2082
2078
|
accessibilityRole: "header",
|
|
2083
2079
|
base: defaultBase
|
|
2084
2080
|
}, props), {}, {
|
|
2085
|
-
|
|
2081
|
+
"aria-level": level
|
|
2086
2082
|
}));
|
|
2087
2083
|
}
|
|
2088
2084
|
TypographyHeading.displayName = "TypographyHeading".concat(level);
|
|
@@ -2385,34 +2381,13 @@ var useNativeAnimation$3 = function (_ref) {
|
|
|
2385
2381
|
pressedBackgroundColor = _getVariantValuesIfEx.pressedBackgroundColor;
|
|
2386
2382
|
var scale = theme.kitt.button.scale;
|
|
2387
2383
|
var animatedStyles = useAnimatedStyle(function () {
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
}]
|
|
2394
|
-
};
|
|
2395
|
-
};
|
|
2396
|
-
_f._closure = {
|
|
2397
|
-
interpolateColor: interpolateColor,
|
|
2398
|
-
color: color,
|
|
2399
|
-
backgroundColor: backgroundColor,
|
|
2400
|
-
pressedBackgroundColor: pressedBackgroundColor,
|
|
2401
|
-
withSpring: withSpring,
|
|
2402
|
-
pressed: pressed,
|
|
2403
|
-
scale: {
|
|
2404
|
-
base: {
|
|
2405
|
-
active: scale.base.active,
|
|
2406
|
-
"default": scale.base["default"]
|
|
2407
|
-
}
|
|
2408
|
-
}
|
|
2384
|
+
return {
|
|
2385
|
+
backgroundColor: interpolateColor(color.value, [0, 1], [backgroundColor, pressedBackgroundColor]),
|
|
2386
|
+
transform: [{
|
|
2387
|
+
scale: withSpring(pressed.value ? scale.base.active : scale.base["default"])
|
|
2388
|
+
}]
|
|
2409
2389
|
};
|
|
2410
|
-
|
|
2411
|
-
_f.__workletHash = 5368461229978;
|
|
2412
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Button/hooks/useNativeAnimation.ts (31:42)";
|
|
2413
|
-
_f.__optimalization = 2;
|
|
2414
|
-
return _f;
|
|
2415
|
-
}());
|
|
2390
|
+
});
|
|
2416
2391
|
return {
|
|
2417
2392
|
onPressIn: function handlePressIn() {
|
|
2418
2393
|
color.value = withSpring(1);
|
|
@@ -2765,7 +2740,7 @@ function AvatarContent(_ref) {
|
|
|
2765
2740
|
width: size,
|
|
2766
2741
|
height: size,
|
|
2767
2742
|
alt: alt,
|
|
2768
|
-
|
|
2743
|
+
"aria-label": alt
|
|
2769
2744
|
});
|
|
2770
2745
|
}
|
|
2771
2746
|
if (firstname && lastname) {
|
|
@@ -2993,58 +2968,24 @@ function NativeOpacityAnimation$2(_ref) {
|
|
|
2993
2968
|
}
|
|
2994
2969
|
}
|
|
2995
2970
|
var opacityStyle = useAnimatedStyle(function () {
|
|
2996
|
-
var
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
runOnJS(handleAnimationFinished)();
|
|
3013
|
-
};
|
|
3014
|
-
_f._closure = {
|
|
3015
|
-
runOnJS: runOnJS,
|
|
3016
|
-
handleAnimationFinished: handleAnimationFinished
|
|
3017
|
-
};
|
|
3018
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
3019
|
-
_f.__workletHash = 14707844242190;
|
|
3020
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeOpacityAnimation.tsx (32:96)";
|
|
3021
|
-
return _f;
|
|
3022
|
-
}())
|
|
3023
|
-
};
|
|
3024
|
-
};
|
|
3025
|
-
_f._closure = {
|
|
3026
|
-
theme: {
|
|
3027
|
-
kitt: {
|
|
3028
|
-
cardModal: {
|
|
3029
|
-
animation: {
|
|
3030
|
-
overlay: theme.kitt.cardModal.animation.overlay
|
|
3031
|
-
}
|
|
3032
|
-
}
|
|
3033
|
-
}
|
|
3034
|
-
},
|
|
3035
|
-
withTiming: withTiming,
|
|
3036
|
-
visible: visible,
|
|
3037
|
-
Easing: {
|
|
3038
|
-
bezier: Easing$1.bezier
|
|
3039
|
-
},
|
|
3040
|
-
runOnJS: runOnJS,
|
|
3041
|
-
handleAnimationFinished: handleAnimationFinished
|
|
2971
|
+
var _theme$kitt$cardModal = theme.kitt.cardModal.animation.overlay,
|
|
2972
|
+
duration = _theme$kitt$cardModal.duration,
|
|
2973
|
+
easing = _theme$kitt$cardModal.easing;
|
|
2974
|
+
var _easing = _slicedToArray(easing, 4),
|
|
2975
|
+
x1 = _easing[0],
|
|
2976
|
+
y1 = _easing[1],
|
|
2977
|
+
x2 = _easing[2],
|
|
2978
|
+
y2 = _easing[3];
|
|
2979
|
+
return {
|
|
2980
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
2981
|
+
duration: duration,
|
|
2982
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
2983
|
+
}, function (isFinished) {
|
|
2984
|
+
if (!isFinished) return;
|
|
2985
|
+
runOnJS(handleAnimationFinished)();
|
|
2986
|
+
})
|
|
3042
2987
|
};
|
|
3043
|
-
|
|
3044
|
-
_f.__workletHash = 14370179131905;
|
|
3045
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeOpacityAnimation.tsx (27:40)";
|
|
3046
|
-
return _f;
|
|
3047
|
-
}());
|
|
2988
|
+
});
|
|
3048
2989
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3049
2990
|
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
3050
2991
|
children: children
|
|
@@ -3067,71 +3008,36 @@ function NativeRotationAnimation$1(_ref) {
|
|
|
3067
3008
|
if (!visible && hasRunAnimationRef.current) onExited();
|
|
3068
3009
|
}
|
|
3069
3010
|
var animatedStyle = useAnimatedStyle(function () {
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3011
|
+
var _theme$kitt$cardModal = theme.kitt.cardModal.animation.content,
|
|
3012
|
+
duration = _theme$kitt$cardModal.duration,
|
|
3013
|
+
easing = _theme$kitt$cardModal.easing;
|
|
3014
|
+
var _easing = _slicedToArray(easing, 4),
|
|
3015
|
+
x1 = _easing[0],
|
|
3016
|
+
y1 = _easing[1],
|
|
3017
|
+
x2 = _easing[2],
|
|
3018
|
+
y2 = _easing[3];
|
|
3019
|
+
rotation.value = withTiming(visible ? 0 : 5, {
|
|
3020
|
+
duration: duration,
|
|
3021
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3022
|
+
}, function (isFinished) {
|
|
3023
|
+
if (!isFinished) return;
|
|
3024
|
+
runOnJS(handleAnimationFinished)();
|
|
3025
|
+
});
|
|
3026
|
+
return {
|
|
3027
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
3080
3028
|
duration: duration,
|
|
3081
3029
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3082
|
-
},
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
runOnJS(handleAnimationFinished)();
|
|
3086
|
-
};
|
|
3087
|
-
_f._closure = {
|
|
3088
|
-
runOnJS: runOnJS,
|
|
3089
|
-
handleAnimationFinished: handleAnimationFinished
|
|
3090
|
-
};
|
|
3091
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
3092
|
-
_f.__workletHash = 14707844242190;
|
|
3093
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeRotationAnimation.tsx (41:102)";
|
|
3094
|
-
return _f;
|
|
3095
|
-
}());
|
|
3096
|
-
return {
|
|
3097
|
-
opacity: withTiming(visible ? 1 : 0, {
|
|
3030
|
+
}),
|
|
3031
|
+
transform: [{
|
|
3032
|
+
scale: withTiming(visible ? 1 : 0.8, {
|
|
3098
3033
|
duration: duration,
|
|
3099
3034
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3100
|
-
})
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3105
|
-
})
|
|
3106
|
-
}, {
|
|
3107
|
-
rotateZ: "".concat(rotation.value, "deg")
|
|
3108
|
-
}]
|
|
3109
|
-
};
|
|
3110
|
-
};
|
|
3111
|
-
_f._closure = {
|
|
3112
|
-
theme: {
|
|
3113
|
-
kitt: {
|
|
3114
|
-
cardModal: {
|
|
3115
|
-
animation: {
|
|
3116
|
-
content: theme.kitt.cardModal.animation.content
|
|
3117
|
-
}
|
|
3118
|
-
}
|
|
3119
|
-
}
|
|
3120
|
-
},
|
|
3121
|
-
rotation: rotation,
|
|
3122
|
-
withTiming: withTiming,
|
|
3123
|
-
visible: visible,
|
|
3124
|
-
Easing: {
|
|
3125
|
-
bezier: Easing$1.bezier
|
|
3126
|
-
},
|
|
3127
|
-
runOnJS: runOnJS,
|
|
3128
|
-
handleAnimationFinished: handleAnimationFinished
|
|
3035
|
+
})
|
|
3036
|
+
}, {
|
|
3037
|
+
rotateZ: "".concat(rotation.value, "deg")
|
|
3038
|
+
}]
|
|
3129
3039
|
};
|
|
3130
|
-
|
|
3131
|
-
_f.__workletHash = 14560674497944;
|
|
3132
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeRotationAnimation.tsx (36:41)";
|
|
3133
|
-
return _f;
|
|
3134
|
-
}());
|
|
3040
|
+
});
|
|
3135
3041
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3136
3042
|
style: [animatedStyle],
|
|
3137
3043
|
children: children
|
|
@@ -3432,68 +3338,26 @@ var useNativeAnimation$2 = function (_ref) {
|
|
|
3432
3338
|
var theme = useTheme();
|
|
3433
3339
|
var pressed = useSharedValue(Boolean(isPressedInternal));
|
|
3434
3340
|
var progress = useDerivedValue(function () {
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
};
|
|
3440
|
-
_f._closure = {
|
|
3441
|
-
withTiming: withTiming,
|
|
3442
|
-
pressed: pressed,
|
|
3443
|
-
theme: {
|
|
3444
|
-
kitt: {
|
|
3445
|
-
choices: {
|
|
3446
|
-
item: {
|
|
3447
|
-
transition: {
|
|
3448
|
-
duration: theme.kitt.choices.item.transition.duration
|
|
3449
|
-
}
|
|
3450
|
-
}
|
|
3451
|
-
}
|
|
3452
|
-
}
|
|
3453
|
-
}
|
|
3454
|
-
};
|
|
3455
|
-
_f.asString = "function _f(){const{withTiming,pressed,theme}=jsThis._closure;{return withTiming(pressed.value?1:0,{duration:theme.kitt.choices.item.transition.duration});}}";
|
|
3456
|
-
_f.__workletHash = 1120030177160;
|
|
3457
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Choices/hooks/useNativeAnimation.tsx (31:35)";
|
|
3458
|
-
return _f;
|
|
3459
|
-
}());
|
|
3341
|
+
return withTiming(pressed.value ? 1 : 0, {
|
|
3342
|
+
duration: theme.kitt.choices.item.transition.duration
|
|
3343
|
+
});
|
|
3344
|
+
});
|
|
3460
3345
|
var backgroundStyles = useAnimatedStyle(function () {
|
|
3461
|
-
var
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
backgroundColor: disabledBg
|
|
3469
|
-
};
|
|
3470
|
-
if (selected) return {
|
|
3471
|
-
backgroundColor: selectedBg
|
|
3472
|
-
};
|
|
3473
|
-
return {
|
|
3474
|
-
backgroundColor: interpolateColor(progress.value, [0, 1], [defaultBg, pressedBg])
|
|
3475
|
-
};
|
|
3346
|
+
var _theme$kitt$choices$i = theme.kitt.choices.item.backgroundColor,
|
|
3347
|
+
defaultBg = _theme$kitt$choices$i["default"],
|
|
3348
|
+
pressedBg = _theme$kitt$choices$i.pressed,
|
|
3349
|
+
selectedBg = _theme$kitt$choices$i.selected,
|
|
3350
|
+
disabledBg = _theme$kitt$choices$i.disabled;
|
|
3351
|
+
if (disabled) return {
|
|
3352
|
+
backgroundColor: disabledBg
|
|
3476
3353
|
};
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
kitt: {
|
|
3480
|
-
choices: {
|
|
3481
|
-
item: {
|
|
3482
|
-
backgroundColor: theme.kitt.choices.item.backgroundColor
|
|
3483
|
-
}
|
|
3484
|
-
}
|
|
3485
|
-
}
|
|
3486
|
-
},
|
|
3487
|
-
disabled: disabled,
|
|
3488
|
-
selected: selected,
|
|
3489
|
-
interpolateColor: interpolateColor,
|
|
3490
|
-
progress: progress
|
|
3354
|
+
if (selected) return {
|
|
3355
|
+
backgroundColor: selectedBg
|
|
3491
3356
|
};
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
}());
|
|
3357
|
+
return {
|
|
3358
|
+
backgroundColor: interpolateColor(progress.value, [0, 1], [defaultBg, pressedBg])
|
|
3359
|
+
};
|
|
3360
|
+
});
|
|
3497
3361
|
return {
|
|
3498
3362
|
onPressIn: function onPressIn() {
|
|
3499
3363
|
pressed.value = true;
|
|
@@ -3662,7 +3526,7 @@ function Choices(_ref2) {
|
|
|
3662
3526
|
return /*#__PURE__*/jsx(ChoicesContainer, {
|
|
3663
3527
|
direction: direction,
|
|
3664
3528
|
testID: testID,
|
|
3665
|
-
|
|
3529
|
+
id: id,
|
|
3666
3530
|
children: childrenArray.map(function (child, index) {
|
|
3667
3531
|
var element = /*#__PURE__*/cloneElement(child, _objectSpread({
|
|
3668
3532
|
selected: isForm ? child.props.value === currentValue : undefined
|
|
@@ -3701,58 +3565,24 @@ function NativeOpacityAnimation$1(_ref) {
|
|
|
3701
3565
|
}
|
|
3702
3566
|
}
|
|
3703
3567
|
var opacityStyle = useAnimatedStyle(function () {
|
|
3704
|
-
var
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
runOnJS(handleAnimationFinished)();
|
|
3721
|
-
};
|
|
3722
|
-
_f._closure = {
|
|
3723
|
-
runOnJS: runOnJS,
|
|
3724
|
-
handleAnimationFinished: handleAnimationFinished
|
|
3725
|
-
};
|
|
3726
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
3727
|
-
_f.__workletHash = 14707844242190;
|
|
3728
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeOpacityAnimation.tsx (32:96)";
|
|
3729
|
-
return _f;
|
|
3730
|
-
}())
|
|
3731
|
-
};
|
|
3732
|
-
};
|
|
3733
|
-
_f._closure = {
|
|
3734
|
-
theme: {
|
|
3735
|
-
kitt: {
|
|
3736
|
-
dialogModal: {
|
|
3737
|
-
animation: {
|
|
3738
|
-
overlay: theme.kitt.dialogModal.animation.overlay
|
|
3739
|
-
}
|
|
3740
|
-
}
|
|
3741
|
-
}
|
|
3742
|
-
},
|
|
3743
|
-
withTiming: withTiming,
|
|
3744
|
-
visible: visible,
|
|
3745
|
-
Easing: {
|
|
3746
|
-
bezier: Easing$1.bezier
|
|
3747
|
-
},
|
|
3748
|
-
runOnJS: runOnJS,
|
|
3749
|
-
handleAnimationFinished: handleAnimationFinished
|
|
3568
|
+
var _theme$kitt$dialogMod = theme.kitt.dialogModal.animation.overlay,
|
|
3569
|
+
duration = _theme$kitt$dialogMod.duration,
|
|
3570
|
+
easing = _theme$kitt$dialogMod.easing;
|
|
3571
|
+
var _easing = _slicedToArray(easing, 4),
|
|
3572
|
+
x1 = _easing[0],
|
|
3573
|
+
y1 = _easing[1],
|
|
3574
|
+
x2 = _easing[2],
|
|
3575
|
+
y2 = _easing[3];
|
|
3576
|
+
return {
|
|
3577
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
3578
|
+
duration: duration,
|
|
3579
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3580
|
+
}, function (isFinished) {
|
|
3581
|
+
if (!isFinished) return;
|
|
3582
|
+
runOnJS(handleAnimationFinished)();
|
|
3583
|
+
})
|
|
3750
3584
|
};
|
|
3751
|
-
|
|
3752
|
-
_f.__workletHash = 3254948230845;
|
|
3753
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeOpacityAnimation.tsx (27:40)";
|
|
3754
|
-
return _f;
|
|
3755
|
-
}());
|
|
3585
|
+
});
|
|
3756
3586
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3757
3587
|
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
3758
3588
|
children: children
|
|
@@ -3775,71 +3605,36 @@ function NativeRotationAnimation(_ref) {
|
|
|
3775
3605
|
if (!visible && hasRunAnimationRef.current) onExited();
|
|
3776
3606
|
}
|
|
3777
3607
|
var animatedStyle = useAnimatedStyle(function () {
|
|
3778
|
-
var
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3608
|
+
var _theme$kitt$dialogMod = theme.kitt.dialogModal.animation.content,
|
|
3609
|
+
duration = _theme$kitt$dialogMod.duration,
|
|
3610
|
+
easing = _theme$kitt$dialogMod.easing;
|
|
3611
|
+
var _easing = _slicedToArray(easing, 4),
|
|
3612
|
+
x1 = _easing[0],
|
|
3613
|
+
y1 = _easing[1],
|
|
3614
|
+
x2 = _easing[2],
|
|
3615
|
+
y2 = _easing[3];
|
|
3616
|
+
rotation.value = withTiming(visible ? 0 : 5, {
|
|
3617
|
+
duration: duration,
|
|
3618
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3619
|
+
}, function (isFinished) {
|
|
3620
|
+
if (!isFinished) return;
|
|
3621
|
+
runOnJS(handleAnimationFinished)();
|
|
3622
|
+
});
|
|
3623
|
+
return {
|
|
3624
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
3788
3625
|
duration: duration,
|
|
3789
3626
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3790
|
-
},
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
runOnJS(handleAnimationFinished)();
|
|
3794
|
-
};
|
|
3795
|
-
_f._closure = {
|
|
3796
|
-
runOnJS: runOnJS,
|
|
3797
|
-
handleAnimationFinished: handleAnimationFinished
|
|
3798
|
-
};
|
|
3799
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
3800
|
-
_f.__workletHash = 14707844242190;
|
|
3801
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeRotationAnimation.tsx (41:102)";
|
|
3802
|
-
return _f;
|
|
3803
|
-
}());
|
|
3804
|
-
return {
|
|
3805
|
-
opacity: withTiming(visible ? 1 : 0, {
|
|
3627
|
+
}),
|
|
3628
|
+
transform: [{
|
|
3629
|
+
scale: withTiming(visible ? 1 : 0.8, {
|
|
3806
3630
|
duration: duration,
|
|
3807
3631
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3808
|
-
})
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3813
|
-
})
|
|
3814
|
-
}, {
|
|
3815
|
-
rotateZ: "".concat(rotation.value, "deg")
|
|
3816
|
-
}]
|
|
3817
|
-
};
|
|
3818
|
-
};
|
|
3819
|
-
_f._closure = {
|
|
3820
|
-
theme: {
|
|
3821
|
-
kitt: {
|
|
3822
|
-
dialogModal: {
|
|
3823
|
-
animation: {
|
|
3824
|
-
content: theme.kitt.dialogModal.animation.content
|
|
3825
|
-
}
|
|
3826
|
-
}
|
|
3827
|
-
}
|
|
3828
|
-
},
|
|
3829
|
-
rotation: rotation,
|
|
3830
|
-
withTiming: withTiming,
|
|
3831
|
-
visible: visible,
|
|
3832
|
-
Easing: {
|
|
3833
|
-
bezier: Easing$1.bezier
|
|
3834
|
-
},
|
|
3835
|
-
runOnJS: runOnJS,
|
|
3836
|
-
handleAnimationFinished: handleAnimationFinished
|
|
3632
|
+
})
|
|
3633
|
+
}, {
|
|
3634
|
+
rotateZ: "".concat(rotation.value, "deg")
|
|
3635
|
+
}]
|
|
3837
3636
|
};
|
|
3838
|
-
|
|
3839
|
-
_f.__workletHash = 14448961480868;
|
|
3840
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeRotationAnimation.tsx (36:41)";
|
|
3841
|
-
return _f;
|
|
3842
|
-
}());
|
|
3637
|
+
});
|
|
3843
3638
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3844
3639
|
style: [animatedStyle],
|
|
3845
3640
|
children: children
|
|
@@ -4012,7 +3807,7 @@ function Emoji(_ref) {
|
|
|
4012
3807
|
testID: testID,
|
|
4013
3808
|
size: size,
|
|
4014
3809
|
alt: emojiData.text,
|
|
4015
|
-
|
|
3810
|
+
"aria-label": emojiData.text,
|
|
4016
3811
|
source: {
|
|
4017
3812
|
uri: emojiData.url
|
|
4018
3813
|
},
|
|
@@ -4224,7 +4019,7 @@ function InputTextContainer(_ref) {
|
|
|
4224
4019
|
});
|
|
4225
4020
|
}
|
|
4226
4021
|
|
|
4227
|
-
var _excluded$v = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "
|
|
4022
|
+
var _excluded$v = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "onSubmitEditing"];
|
|
4228
4023
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
4229
4024
|
var id = _ref.id,
|
|
4230
4025
|
right = _ref.right;
|
|
@@ -4240,8 +4035,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4240
4035
|
textContentType = _ref$textContentType === void 0 ? 'none' : _ref$textContentType,
|
|
4241
4036
|
_ref$autoComplete = _ref.autoComplete,
|
|
4242
4037
|
autoComplete = _ref$autoComplete === void 0 ? 'off' : _ref$autoComplete,
|
|
4243
|
-
_ref$
|
|
4244
|
-
|
|
4038
|
+
_ref$inputMode = _ref.inputMode,
|
|
4039
|
+
inputMode = _ref$inputMode === void 0 ? 'none' : _ref$inputMode,
|
|
4245
4040
|
multiline = _ref.multiline,
|
|
4246
4041
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
4247
4042
|
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
@@ -4254,11 +4049,11 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4254
4049
|
children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
|
|
4255
4050
|
ref: ref,
|
|
4256
4051
|
multiline: multiline,
|
|
4257
|
-
|
|
4052
|
+
id: id,
|
|
4258
4053
|
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
4259
4054
|
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
4260
4055
|
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
4261
|
-
|
|
4056
|
+
inputMode: inputMode,
|
|
4262
4057
|
autoComplete: autoComplete,
|
|
4263
4058
|
autoCorrect: autoCorrect,
|
|
4264
4059
|
textContentType: textContentType,
|
|
@@ -4639,7 +4434,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4639
4434
|
var theme = useTheme();
|
|
4640
4435
|
return /*#__PURE__*/jsx(Pressable, {
|
|
4641
4436
|
ref: ref,
|
|
4642
|
-
|
|
4437
|
+
id: id,
|
|
4643
4438
|
testID: testID,
|
|
4644
4439
|
accessibilityRole: "checkbox",
|
|
4645
4440
|
accessibilityState: {
|
|
@@ -4715,10 +4510,10 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4715
4510
|
});
|
|
4716
4511
|
});
|
|
4717
4512
|
|
|
4718
|
-
function
|
|
4719
|
-
//
|
|
4513
|
+
function getEnterKeyHintForNumericInput(enterKeyHint) {
|
|
4514
|
+
// enterKeyHint is only displayed on number input on iOS if value is done
|
|
4720
4515
|
if (Platform.OS === 'ios') return 'done';
|
|
4721
|
-
return
|
|
4516
|
+
return enterKeyHint;
|
|
4722
4517
|
}
|
|
4723
4518
|
|
|
4724
4519
|
function prefixWithZero$1(value) {
|
|
@@ -4914,7 +4709,7 @@ var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
4914
4709
|
isFocusedInternal = _ref2.isFocusedInternal,
|
|
4915
4710
|
isHoveredInternal = _ref2.isHoveredInternal,
|
|
4916
4711
|
isPressedInternal = _ref2.isPressedInternal,
|
|
4917
|
-
|
|
4712
|
+
enterKeyHint = _ref2.enterKeyHint,
|
|
4918
4713
|
onChange = _ref2.onChange,
|
|
4919
4714
|
onBlur = _ref2.onBlur,
|
|
4920
4715
|
onSubmitEditing = _ref2.onSubmitEditing;
|
|
@@ -4930,8 +4725,8 @@ var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
4930
4725
|
value: value,
|
|
4931
4726
|
placeholder: placeholder,
|
|
4932
4727
|
disabled: disabled,
|
|
4933
|
-
|
|
4934
|
-
|
|
4728
|
+
inputMode: "numeric",
|
|
4729
|
+
enterKeyHint: enterKeyHint,
|
|
4935
4730
|
textAlign: "center",
|
|
4936
4731
|
onChange: onChange,
|
|
4937
4732
|
onBlur: onBlur,
|
|
@@ -4952,7 +4747,7 @@ function PartContainer(_ref) {
|
|
|
4952
4747
|
});
|
|
4953
4748
|
}
|
|
4954
4749
|
|
|
4955
|
-
var _excluded$s = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "
|
|
4750
|
+
var _excluded$s = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
4956
4751
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
4957
4752
|
var id = _ref.id,
|
|
4958
4753
|
value = _ref.value,
|
|
@@ -4965,7 +4760,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4965
4760
|
isFocusedInternal = _ref.isFocusedInternal,
|
|
4966
4761
|
isHoveredInternal = _ref.isHoveredInternal,
|
|
4967
4762
|
isPressedInternal = _ref.isPressedInternal,
|
|
4968
|
-
|
|
4763
|
+
enterKeyHint = _ref.enterKeyHint,
|
|
4969
4764
|
onChange = _ref.onChange,
|
|
4970
4765
|
onBlur = _ref.onBlur,
|
|
4971
4766
|
onFocus = _ref.onFocus,
|
|
@@ -5016,7 +4811,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5016
4811
|
};
|
|
5017
4812
|
return /*#__PURE__*/jsx(View, {
|
|
5018
4813
|
testID: testID,
|
|
5019
|
-
|
|
4814
|
+
id: id,
|
|
5020
4815
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
5021
4816
|
space: "kitt.2",
|
|
5022
4817
|
children: [/*#__PURE__*/jsx(PartContainer, {
|
|
@@ -5028,7 +4823,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5028
4823
|
}, sharedInputPartProps), {}, {
|
|
5029
4824
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.day,
|
|
5030
4825
|
value: state.displayedDay,
|
|
5031
|
-
|
|
4826
|
+
enterKeyHint: getEnterKeyHintForNumericInput('next'),
|
|
5032
4827
|
onChange: function (e) {
|
|
5033
4828
|
var nextDay = stringToNumber(e.nativeEvent.text);
|
|
5034
4829
|
dispatch({
|
|
@@ -5059,7 +4854,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5059
4854
|
}, sharedInputPartProps), {}, {
|
|
5060
4855
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.month,
|
|
5061
4856
|
value: state.displayedMonth,
|
|
5062
|
-
|
|
4857
|
+
enterKeyHint: getEnterKeyHintForNumericInput('next'),
|
|
5063
4858
|
onChange: function (e) {
|
|
5064
4859
|
var nextMonth = stringToNumber(e.nativeEvent.text);
|
|
5065
4860
|
dispatch({
|
|
@@ -5090,7 +4885,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5090
4885
|
}, sharedInputPartProps), {}, {
|
|
5091
4886
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year,
|
|
5092
4887
|
value: state.displayedYear,
|
|
5093
|
-
|
|
4888
|
+
enterKeyHint: enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined,
|
|
5094
4889
|
onChange: function (e) {
|
|
5095
4890
|
var nextYear = stringToNumber(e.nativeEvent.text);
|
|
5096
4891
|
dispatch({
|
|
@@ -5136,14 +4931,16 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5136
4931
|
flexDirection: "row",
|
|
5137
4932
|
position: "relative",
|
|
5138
4933
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'baseline'),
|
|
5139
|
-
|
|
4934
|
+
id: id,
|
|
5140
4935
|
disabled: disabled,
|
|
5141
4936
|
testID: testID,
|
|
5142
4937
|
onPress: onPress,
|
|
5143
4938
|
children: /*#__PURE__*/jsxs(View, {
|
|
5144
4939
|
position: "relative",
|
|
5145
4940
|
width: createResponsiveStyleFromProp(stretch, '100%'),
|
|
5146
|
-
|
|
4941
|
+
style: {
|
|
4942
|
+
pointerEvents: 'none'
|
|
4943
|
+
},
|
|
5147
4944
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
5148
4945
|
space: "kitt.2",
|
|
5149
4946
|
width: createResponsiveStyleFromProp(stretch, '100%'),
|
|
@@ -5420,11 +5217,11 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5420
5217
|
}, props));
|
|
5421
5218
|
});
|
|
5422
5219
|
|
|
5423
|
-
var _excluded$n = ["fillMode", "
|
|
5220
|
+
var _excluded$n = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
5424
5221
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5425
5222
|
var _ref$fillMode = _ref.fillMode,
|
|
5426
5223
|
fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
|
|
5427
|
-
|
|
5224
|
+
enterKeyHint = _ref.enterKeyHint,
|
|
5428
5225
|
value = _ref.value,
|
|
5429
5226
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5430
5227
|
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
@@ -5435,7 +5232,7 @@ var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5435
5232
|
ref: ref
|
|
5436
5233
|
}, props), {}, {
|
|
5437
5234
|
value: currentValue,
|
|
5438
|
-
|
|
5235
|
+
enterKeyHint: enterKeyHint,
|
|
5439
5236
|
onSubmitEditing: onSubmitEditing
|
|
5440
5237
|
}));
|
|
5441
5238
|
}
|
|
@@ -5852,9 +5649,7 @@ function InputAddressOption(_ref) {
|
|
|
5852
5649
|
var item = _ref.item;
|
|
5853
5650
|
var sharedTransform = {
|
|
5854
5651
|
style: {
|
|
5855
|
-
transform:
|
|
5856
|
-
translateY: 4
|
|
5857
|
-
}]
|
|
5652
|
+
transform: 'translateY(4)'
|
|
5858
5653
|
}
|
|
5859
5654
|
};
|
|
5860
5655
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
@@ -5955,7 +5750,7 @@ var InputEmail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5955
5750
|
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
5956
5751
|
ref: ref,
|
|
5957
5752
|
autoComplete: "email",
|
|
5958
|
-
|
|
5753
|
+
inputMode: "email",
|
|
5959
5754
|
textContentType: "emailAddress",
|
|
5960
5755
|
autoCapitalize: "none"
|
|
5961
5756
|
}, props));
|
|
@@ -6060,7 +5855,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6060
5855
|
}));
|
|
6061
5856
|
});
|
|
6062
5857
|
|
|
6063
|
-
var _excluded$j = ["
|
|
5858
|
+
var _excluded$j = ["enterKeyHint", "autoComplete", "phoneNumberLength", "value", "onChange"];
|
|
6064
5859
|
function isPhoneNumberValid(number) {
|
|
6065
5860
|
return isValidNumber(number);
|
|
6066
5861
|
}
|
|
@@ -6068,7 +5863,7 @@ function prefixWithZero(value, phoneNumberLength) {
|
|
|
6068
5863
|
return value.padStart(phoneNumberLength, '0');
|
|
6069
5864
|
}
|
|
6070
5865
|
var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6071
|
-
var
|
|
5866
|
+
var enterKeyHint = _ref.enterKeyHint,
|
|
6072
5867
|
_ref$autoComplete = _ref.autoComplete,
|
|
6073
5868
|
autoComplete = _ref$autoComplete === void 0 ? 'tel' : _ref$autoComplete,
|
|
6074
5869
|
_ref$phoneNumberLengt = _ref.phoneNumberLength,
|
|
@@ -6080,13 +5875,13 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6080
5875
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6081
5876
|
currentValue = _useState2[0],
|
|
6082
5877
|
setCurrentValue = _useState2[1];
|
|
6083
|
-
var
|
|
5878
|
+
var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
6084
5879
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
6085
5880
|
ref: ref
|
|
6086
5881
|
}, props), {}, {
|
|
6087
5882
|
value: currentValue,
|
|
6088
|
-
|
|
6089
|
-
|
|
5883
|
+
inputMode: "tel",
|
|
5884
|
+
enterKeyHint: currentEnterKeyHint,
|
|
6090
5885
|
autoComplete: autoComplete,
|
|
6091
5886
|
textContentType: "telephoneNumber",
|
|
6092
5887
|
onChange: function handleChange(event) {
|
|
@@ -6160,7 +5955,7 @@ function Label(_ref) {
|
|
|
6160
5955
|
var isWeb = Platform.OS === 'web';
|
|
6161
5956
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
6162
5957
|
base: "body",
|
|
6163
|
-
|
|
5958
|
+
id: isWeb ? undefined : id,
|
|
6164
5959
|
children: isWeb ? /*#__PURE__*/jsx("label", {
|
|
6165
5960
|
id: id,
|
|
6166
5961
|
htmlFor: htmlFor,
|
|
@@ -6182,7 +5977,7 @@ function InnerCircle(_ref) {
|
|
|
6182
5977
|
backgroundColor: "kitt.forms.radio.innerCircle.backgroundColor",
|
|
6183
5978
|
_web: {
|
|
6184
5979
|
style: {
|
|
6185
|
-
transform:
|
|
5980
|
+
transform: "scale(".concat(isChecked ? 1 : 0, "))"),
|
|
6186
5981
|
transitionProperty: 'all',
|
|
6187
5982
|
transitionDuration: theme.kitt.forms.radio.transition.duration,
|
|
6188
5983
|
transitionTimingFunction: theme.kitt.forms.radio.transition.timingFunction
|
|
@@ -6282,7 +6077,7 @@ var Radio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6282
6077
|
return /*#__PURE__*/jsx(Pressable, {
|
|
6283
6078
|
ref: ref,
|
|
6284
6079
|
testID: testID,
|
|
6285
|
-
|
|
6080
|
+
id: id,
|
|
6286
6081
|
disabled: disabled,
|
|
6287
6082
|
accessibilityRole: "radio",
|
|
6288
6083
|
"aria-checked": checked,
|
|
@@ -6391,55 +6186,23 @@ var useNativeAnimation$1 = function (_ref) {
|
|
|
6391
6186
|
borderColor = _theme$kitt$forms$rad2["default"],
|
|
6392
6187
|
pressedBorderColor = _theme$kitt$forms$rad2.pressed;
|
|
6393
6188
|
var animatedStyles = useAnimatedStyle(function () {
|
|
6394
|
-
|
|
6395
|
-
if (isDisabled) {
|
|
6396
|
-
return {
|
|
6397
|
-
backgroundColor: theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled,
|
|
6398
|
-
borderColor: theme.kitt.forms.radioButtonGroup.item.borderColor.disabled
|
|
6399
|
-
};
|
|
6400
|
-
}
|
|
6401
|
-
if (isSelected) {
|
|
6402
|
-
return {
|
|
6403
|
-
backgroundColor: pressedBackgroundColor,
|
|
6404
|
-
borderColor: pressedBorderColor
|
|
6405
|
-
};
|
|
6406
|
-
}
|
|
6189
|
+
if (isDisabled) {
|
|
6407
6190
|
return {
|
|
6408
|
-
backgroundColor:
|
|
6409
|
-
borderColor:
|
|
6191
|
+
backgroundColor: theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled,
|
|
6192
|
+
borderColor: theme.kitt.forms.radioButtonGroup.item.borderColor.disabled
|
|
6410
6193
|
};
|
|
6194
|
+
}
|
|
6195
|
+
if (isSelected) {
|
|
6196
|
+
return {
|
|
6197
|
+
backgroundColor: pressedBackgroundColor,
|
|
6198
|
+
borderColor: pressedBorderColor
|
|
6199
|
+
};
|
|
6200
|
+
}
|
|
6201
|
+
return {
|
|
6202
|
+
backgroundColor: interpolateColor(color.value, [0, 1], [backgroundColor, pressedBackgroundColor]),
|
|
6203
|
+
borderColor: interpolateColor(color.value, [0, 1], [borderColor, pressedBorderColor])
|
|
6411
6204
|
};
|
|
6412
|
-
|
|
6413
|
-
isDisabled: isDisabled,
|
|
6414
|
-
theme: {
|
|
6415
|
-
kitt: {
|
|
6416
|
-
forms: {
|
|
6417
|
-
radioButtonGroup: {
|
|
6418
|
-
item: {
|
|
6419
|
-
backgroundColor: {
|
|
6420
|
-
disabled: theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled
|
|
6421
|
-
},
|
|
6422
|
-
borderColor: {
|
|
6423
|
-
disabled: theme.kitt.forms.radioButtonGroup.item.borderColor.disabled
|
|
6424
|
-
}
|
|
6425
|
-
}
|
|
6426
|
-
}
|
|
6427
|
-
}
|
|
6428
|
-
}
|
|
6429
|
-
},
|
|
6430
|
-
isSelected: isSelected,
|
|
6431
|
-
pressedBackgroundColor: pressedBackgroundColor,
|
|
6432
|
-
pressedBorderColor: pressedBorderColor,
|
|
6433
|
-
interpolateColor: interpolateColor,
|
|
6434
|
-
color: color,
|
|
6435
|
-
backgroundColor: backgroundColor,
|
|
6436
|
-
borderColor: borderColor
|
|
6437
|
-
};
|
|
6438
|
-
_f.asString = "function _f(){const{isDisabled,theme,isSelected,pressedBackgroundColor,pressedBorderColor,interpolateColor,color,backgroundColor,borderColor}=jsThis._closure;{if(isDisabled){return{backgroundColor:theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled,borderColor:theme.kitt.forms.radioButtonGroup.item.borderColor.disabled};}if(isSelected){return{backgroundColor:pressedBackgroundColor,borderColor:pressedBorderColor};}return{backgroundColor:interpolateColor(color.value,[0,1],[backgroundColor,pressedBackgroundColor]),borderColor:interpolateColor(color.value,[0,1],[borderColor,pressedBorderColor])};}}";
|
|
6439
|
-
_f.__workletHash = 1728775972872;
|
|
6440
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/forms/RadioButtonGroup/hooks/useNativeAnimation.ts (31:42)";
|
|
6441
|
-
return _f;
|
|
6442
|
-
}());
|
|
6205
|
+
});
|
|
6443
6206
|
return {
|
|
6444
6207
|
onPressIn: function handlePressIn() {
|
|
6445
6208
|
color.value = withSpring(1);
|
|
@@ -6653,44 +6416,21 @@ function NativeOpacityAnimation(_ref) {
|
|
|
6653
6416
|
children = _ref.children;
|
|
6654
6417
|
var theme = useTheme();
|
|
6655
6418
|
var opacityStyle = useAnimatedStyle(function () {
|
|
6656
|
-
var
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
})
|
|
6670
|
-
};
|
|
6671
|
-
};
|
|
6672
|
-
_f._closure = {
|
|
6673
|
-
theme: {
|
|
6674
|
-
kitt: {
|
|
6675
|
-
fullscreenModal: {
|
|
6676
|
-
animation: {
|
|
6677
|
-
overlay: theme.kitt.fullscreenModal.animation.overlay
|
|
6678
|
-
}
|
|
6679
|
-
}
|
|
6680
|
-
}
|
|
6681
|
-
},
|
|
6682
|
-
withTiming: withTiming,
|
|
6683
|
-
visible: visible,
|
|
6684
|
-
Easing: {
|
|
6685
|
-
bezier: Easing$1.bezier
|
|
6686
|
-
}
|
|
6419
|
+
var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.overlay,
|
|
6420
|
+
duration = _theme$kitt$fullscree.duration,
|
|
6421
|
+
easing = _theme$kitt$fullscree.easing;
|
|
6422
|
+
var _easing = _slicedToArray(easing, 4),
|
|
6423
|
+
x1 = _easing[0],
|
|
6424
|
+
y1 = _easing[1],
|
|
6425
|
+
x2 = _easing[2],
|
|
6426
|
+
y2 = _easing[3];
|
|
6427
|
+
return {
|
|
6428
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
6429
|
+
duration: duration,
|
|
6430
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
6431
|
+
})
|
|
6687
6432
|
};
|
|
6688
|
-
|
|
6689
|
-
_f.__workletHash = 7884472191878;
|
|
6690
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/FullscreenModal/components/NativeOpacityAnimation.tsx (14:40)";
|
|
6691
|
-
_f.__optimalization = 2;
|
|
6692
|
-
return _f;
|
|
6693
|
-
}());
|
|
6433
|
+
});
|
|
6694
6434
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
6695
6435
|
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
6696
6436
|
children: children
|
|
@@ -6716,61 +6456,26 @@ function NativeSlideInAnimation(_ref) {
|
|
|
6716
6456
|
if (!visible && hasRunAnimationRef.current) onExited();
|
|
6717
6457
|
}
|
|
6718
6458
|
var translateStyle = useAnimatedStyle(function () {
|
|
6719
|
-
var
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
};
|
|
6738
|
-
_f._closure = {
|
|
6739
|
-
runOnJS: runOnJS,
|
|
6740
|
-
handleAnimationFinished: handleAnimationFinished
|
|
6741
|
-
};
|
|
6742
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
6743
|
-
_f.__workletHash = 14707844242190;
|
|
6744
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/FullscreenModal/components/NativeSlideInAnimation.tsx (45:12)";
|
|
6745
|
-
return _f;
|
|
6746
|
-
}())
|
|
6747
|
-
}]
|
|
6748
|
-
};
|
|
6749
|
-
};
|
|
6750
|
-
_f._closure = {
|
|
6751
|
-
theme: {
|
|
6752
|
-
kitt: {
|
|
6753
|
-
fullscreenModal: {
|
|
6754
|
-
animation: {
|
|
6755
|
-
content: theme.kitt.fullscreenModal.animation.content
|
|
6756
|
-
}
|
|
6757
|
-
}
|
|
6758
|
-
}
|
|
6759
|
-
},
|
|
6760
|
-
withTiming: withTiming,
|
|
6761
|
-
visible: visible,
|
|
6762
|
-
wHeight: wHeight,
|
|
6763
|
-
Easing: {
|
|
6764
|
-
bezier: Easing$1.bezier
|
|
6765
|
-
},
|
|
6766
|
-
runOnJS: runOnJS,
|
|
6767
|
-
handleAnimationFinished: handleAnimationFinished
|
|
6459
|
+
var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.content,
|
|
6460
|
+
duration = _theme$kitt$fullscree.duration,
|
|
6461
|
+
easing = _theme$kitt$fullscree.easing;
|
|
6462
|
+
var _easing = _slicedToArray(easing, 4),
|
|
6463
|
+
x1 = _easing[0],
|
|
6464
|
+
y1 = _easing[1],
|
|
6465
|
+
x2 = _easing[2],
|
|
6466
|
+
y2 = _easing[3];
|
|
6467
|
+
return {
|
|
6468
|
+
transform: [{
|
|
6469
|
+
translateY: withTiming(visible ? 0 : wHeight, {
|
|
6470
|
+
duration: duration,
|
|
6471
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
6472
|
+
}, function (isFinished) {
|
|
6473
|
+
if (!isFinished) return;
|
|
6474
|
+
runOnJS(handleAnimationFinished)();
|
|
6475
|
+
})
|
|
6476
|
+
}]
|
|
6768
6477
|
};
|
|
6769
|
-
|
|
6770
|
-
_f.__workletHash = 16793352522068;
|
|
6771
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/FullscreenModal/components/NativeSlideInAnimation.tsx (35:42)";
|
|
6772
|
-
return _f;
|
|
6773
|
-
}());
|
|
6478
|
+
});
|
|
6774
6479
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
6775
6480
|
style: [{
|
|
6776
6481
|
transform: [{
|
|
@@ -7083,51 +6788,17 @@ function useNativeAnimation(_ref) {
|
|
|
7083
6788
|
var theme = useTheme();
|
|
7084
6789
|
var pressed = useSharedValue(!!isPressed);
|
|
7085
6790
|
var opacityStyles = useAnimatedStyle(function () {
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
opacity: withSpring(pressed.value ? 1 : 0)
|
|
7089
|
-
};
|
|
7090
|
-
};
|
|
7091
|
-
_f._closure = {
|
|
7092
|
-
withSpring: withSpring,
|
|
7093
|
-
pressed: pressed
|
|
6791
|
+
return {
|
|
6792
|
+
opacity: withSpring(pressed.value ? 1 : 0)
|
|
7094
6793
|
};
|
|
7095
|
-
|
|
7096
|
-
_f.__workletHash = 10645190329247;
|
|
7097
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (24:41)";
|
|
7098
|
-
_f.__optimalization = 2;
|
|
7099
|
-
return _f;
|
|
7100
|
-
}());
|
|
6794
|
+
});
|
|
7101
6795
|
var scaleStyles = useAnimatedStyle(function () {
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
}]
|
|
7107
|
-
};
|
|
7108
|
-
};
|
|
7109
|
-
_f._closure = {
|
|
7110
|
-
withSpring: withSpring,
|
|
7111
|
-
pressed: pressed,
|
|
7112
|
-
theme: {
|
|
7113
|
-
kitt: {
|
|
7114
|
-
iconButton: {
|
|
7115
|
-
scale: {
|
|
7116
|
-
base: {
|
|
7117
|
-
active: theme.kitt.iconButton.scale.base.active,
|
|
7118
|
-
"default": theme.kitt.iconButton.scale.base["default"]
|
|
7119
|
-
}
|
|
7120
|
-
}
|
|
7121
|
-
}
|
|
7122
|
-
}
|
|
7123
|
-
}
|
|
6796
|
+
return {
|
|
6797
|
+
transform: [{
|
|
6798
|
+
scale: withSpring(pressed.value ? theme.kitt.iconButton.scale.base.active : theme.kitt.iconButton.scale.base["default"])
|
|
6799
|
+
}]
|
|
7124
6800
|
};
|
|
7125
|
-
|
|
7126
|
-
_f.__workletHash = 13861998831411;
|
|
7127
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (30:39)";
|
|
7128
|
-
_f.__optimalization = 2;
|
|
7129
|
-
return _f;
|
|
7130
|
-
}());
|
|
6801
|
+
});
|
|
7131
6802
|
return {
|
|
7132
6803
|
opacityStyles: opacityStyles,
|
|
7133
6804
|
scaleStyles: scaleStyles,
|
|
@@ -7158,7 +6829,7 @@ function IconButton(_ref) {
|
|
|
7158
6829
|
color = _ref$color === void 0 ? 'black' : _ref$color,
|
|
7159
6830
|
disabled = _ref.disabled,
|
|
7160
6831
|
testID = _ref.testID,
|
|
7161
|
-
|
|
6832
|
+
ariaLabel = _ref.ariaLabel,
|
|
7162
6833
|
_ref$accessibilityRol = _ref.accessibilityRole,
|
|
7163
6834
|
accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
|
|
7164
6835
|
isHoveredInternal = _ref.isHoveredInternal,
|
|
@@ -7178,14 +6849,12 @@ function IconButton(_ref) {
|
|
|
7178
6849
|
disabled: disabled,
|
|
7179
6850
|
width: "kitt.iconButton.width",
|
|
7180
6851
|
height: "kitt.iconButton.height",
|
|
7181
|
-
|
|
6852
|
+
"aria-label": ariaLabel,
|
|
7182
6853
|
accessibilityRole: accessibilityRole,
|
|
7183
6854
|
_web: {
|
|
7184
6855
|
style: {
|
|
7185
6856
|
backfaceVisibility: 'hidden',
|
|
7186
|
-
transform:
|
|
7187
|
-
translate3d: '0'
|
|
7188
|
-
}]
|
|
6857
|
+
transform: 'translate3d(0px)'
|
|
7189
6858
|
}
|
|
7190
6859
|
},
|
|
7191
6860
|
borderRadius: "kitt.iconButton.borderRadius",
|
|
@@ -9461,20 +9130,10 @@ function AnimatedLoaderCircle(_ref) {
|
|
|
9461
9130
|
var centerCoord = size * 0.5;
|
|
9462
9131
|
var circlePerimeter = 2 * Math.PI * (size * 0.5 - strokeWidth);
|
|
9463
9132
|
var strokeAnimation = useAnimatedProps(function () {
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
strokeDashoffset: circlePerimeter - circlePerimeter * progress.value
|
|
9467
|
-
};
|
|
9468
|
-
};
|
|
9469
|
-
_f._closure = {
|
|
9470
|
-
circlePerimeter: circlePerimeter,
|
|
9471
|
-
progress: progress
|
|
9133
|
+
return {
|
|
9134
|
+
strokeDashoffset: circlePerimeter - circlePerimeter * progress.value
|
|
9472
9135
|
};
|
|
9473
|
-
|
|
9474
|
-
_f.__workletHash = 1345639818356;
|
|
9475
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/PageLoader/AnimatedLoaderCircle.tsx (23:43)";
|
|
9476
|
-
return _f;
|
|
9477
|
-
}());
|
|
9136
|
+
});
|
|
9478
9137
|
return /*#__PURE__*/jsx(AnimatedCircle, {
|
|
9479
9138
|
"transform-origin": "center center",
|
|
9480
9139
|
strokeWidth: strokeWidth,
|
|
@@ -9536,22 +9195,12 @@ function AnimatedFillCircleContainer(_ref) {
|
|
|
9536
9195
|
}), isInfinitAnimation$1));
|
|
9537
9196
|
}, [progress, animation, duration]);
|
|
9538
9197
|
var rotationStyles = useAnimatedStyle(function () {
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
}]
|
|
9544
|
-
};
|
|
9545
|
-
};
|
|
9546
|
-
_f._closure = {
|
|
9547
|
-
progress: progress
|
|
9198
|
+
return {
|
|
9199
|
+
transform: [{
|
|
9200
|
+
rotate: "".concat(360 * progress.value, "deg")
|
|
9201
|
+
}]
|
|
9548
9202
|
};
|
|
9549
|
-
|
|
9550
|
-
_f.__workletHash = 16553090406738;
|
|
9551
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/PageLoader/AnimatedFillCircleContainer.tsx (36:42)";
|
|
9552
|
-
_f.__optimalization = 3;
|
|
9553
|
-
return _f;
|
|
9554
|
-
}());
|
|
9203
|
+
});
|
|
9555
9204
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
9556
9205
|
style: [StyleSheet.absoluteFill, rotationStyles],
|
|
9557
9206
|
children: children
|
|
@@ -9904,24 +9553,12 @@ function SkeletonContent(_ref) {
|
|
|
9904
9553
|
}
|
|
9905
9554
|
}, [sharedX, width, isLoading, theme]);
|
|
9906
9555
|
var linearGradientStyle = useAnimatedStyle(function () {
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
}]
|
|
9912
|
-
};
|
|
9913
|
-
};
|
|
9914
|
-
_f._closure = {
|
|
9915
|
-
interpolate: interpolate,
|
|
9916
|
-
sharedX: sharedX,
|
|
9917
|
-
width: width
|
|
9556
|
+
return {
|
|
9557
|
+
transform: [{
|
|
9558
|
+
translateX: interpolate(sharedX.value, [0, 1], [-width, width])
|
|
9559
|
+
}]
|
|
9918
9560
|
};
|
|
9919
|
-
|
|
9920
|
-
_f.__workletHash = 1670955855244;
|
|
9921
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Skeleton/SkeletonContent.tsx (36:47)";
|
|
9922
|
-
_f.__optimalization = 3;
|
|
9923
|
-
return _f;
|
|
9924
|
-
}());
|
|
9561
|
+
});
|
|
9925
9562
|
return /*#__PURE__*/jsx(View, {
|
|
9926
9563
|
height: "100%",
|
|
9927
9564
|
width: "100%",
|
|
@@ -10810,9 +10447,6 @@ var Arrow = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
10810
10447
|
left = _ref.left,
|
|
10811
10448
|
display = _ref.display;
|
|
10812
10449
|
var theme = useTheme();
|
|
10813
|
-
var transformStyle = [{
|
|
10814
|
-
rotate: position === 'bottom' ? '180deg' : '0deg'
|
|
10815
|
-
}];
|
|
10816
10450
|
return /*#__PURE__*/jsx(View, {
|
|
10817
10451
|
ref: ref,
|
|
10818
10452
|
display: display || {
|
|
@@ -10824,7 +10458,7 @@ var Arrow = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
10824
10458
|
left: left,
|
|
10825
10459
|
top: top,
|
|
10826
10460
|
style: {
|
|
10827
|
-
transform:
|
|
10461
|
+
transform: "rotate(".concat(position === 'bottom' ? '180deg' : '0deg', ")")
|
|
10828
10462
|
},
|
|
10829
10463
|
children: /*#__PURE__*/jsx(SvgArrowinline, {
|
|
10830
10464
|
color: theme.kitt.tooltip.backgroundColor,
|
|
@@ -10939,31 +10573,13 @@ function Tooltip(_ref) {
|
|
|
10939
10573
|
var pressableRectRef = useRef(undefined);
|
|
10940
10574
|
var pressed = useSharedValue(defaultVisible);
|
|
10941
10575
|
var animatedStyles = useAnimatedStyle(function () {
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
}]
|
|
10948
|
-
};
|
|
10949
|
-
};
|
|
10950
|
-
_f._closure = {
|
|
10951
|
-
withSpring: withSpring,
|
|
10952
|
-
pressed: pressed,
|
|
10953
|
-
theme: {
|
|
10954
|
-
kitt: {
|
|
10955
|
-
tooltip: {
|
|
10956
|
-
opacity: theme.kitt.tooltip.opacity
|
|
10957
|
-
}
|
|
10958
|
-
}
|
|
10959
|
-
}
|
|
10576
|
+
return {
|
|
10577
|
+
opacity: withSpring(pressed.value ? theme.kitt.tooltip.opacity : 0),
|
|
10578
|
+
transform: [{
|
|
10579
|
+
scale: withSpring(pressed.value ? 1 : 0.8)
|
|
10580
|
+
}]
|
|
10960
10581
|
};
|
|
10961
|
-
|
|
10962
|
-
_f.__workletHash = 1087298059737;
|
|
10963
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (112:42)";
|
|
10964
|
-
_f.__optimalization = 2;
|
|
10965
|
-
return _f;
|
|
10966
|
-
}());
|
|
10582
|
+
});
|
|
10967
10583
|
var _useFloating = useFloating({
|
|
10968
10584
|
placement: position,
|
|
10969
10585
|
middleware: [
|
|
@@ -11128,7 +10744,6 @@ function TypographyEmoji(_ref3) {
|
|
|
11128
10744
|
emoji: emoji,
|
|
11129
10745
|
alignSelf: "center",
|
|
11130
10746
|
_web: {
|
|
11131
|
-
// @ts-expect-error -- transform expects number, but string works on web
|
|
11132
10747
|
style: {
|
|
11133
10748
|
transform: 'translateY(20%)'
|
|
11134
10749
|
},
|