@ornikar/kitt-universal 21.0.2 → 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 +21 -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 +17 -16
- 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
|
@@ -857,9 +857,6 @@ const typography = {
|
|
|
857
857
|
warning: colors.warning
|
|
858
858
|
},
|
|
859
859
|
types: {
|
|
860
|
-
get header() {
|
|
861
|
-
throw new Error('typography.types.header is deprecated, use typography.type.headings instead');
|
|
862
|
-
},
|
|
863
860
|
headings: {
|
|
864
861
|
fontFamily: {
|
|
865
862
|
native: {
|
|
@@ -893,9 +890,6 @@ const typography = {
|
|
|
893
890
|
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
894
891
|
}
|
|
895
892
|
},
|
|
896
|
-
get 'headers-impact'() {
|
|
897
|
-
throw new Error('typography.types.headers-impact is deprecated, use typography.type.headings-impact instead');
|
|
898
|
-
},
|
|
899
893
|
'headings-impact': {
|
|
900
894
|
fontFamily: {
|
|
901
895
|
native: {
|
|
@@ -1681,7 +1675,9 @@ function ActionCardContentWrapper({
|
|
|
1681
1675
|
style: sharedTransform
|
|
1682
1676
|
},
|
|
1683
1677
|
_web: {
|
|
1684
|
-
style:
|
|
1678
|
+
style: {
|
|
1679
|
+
transform: `translateY(${translateY}px)`
|
|
1680
|
+
}
|
|
1685
1681
|
},
|
|
1686
1682
|
width: "100%",
|
|
1687
1683
|
backgroundColor: `kitt.actionCard.${themeName}.${state}.backgroundColor`,
|
|
@@ -2054,7 +2050,7 @@ const createHeading = (level, defaultBase) => {
|
|
|
2054
2050
|
accessibilityRole: "header",
|
|
2055
2051
|
base: defaultBase,
|
|
2056
2052
|
...props,
|
|
2057
|
-
|
|
2053
|
+
"aria-level": level
|
|
2058
2054
|
});
|
|
2059
2055
|
}
|
|
2060
2056
|
TypographyHeading.displayName = `TypographyHeading${level}`;
|
|
@@ -2376,35 +2372,14 @@ const useNativeAnimation$3 = ({
|
|
|
2376
2372
|
const {
|
|
2377
2373
|
scale
|
|
2378
2374
|
} = theme.kitt.button;
|
|
2379
|
-
const animatedStyles = useAnimatedStyle(
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
}]
|
|
2386
|
-
};
|
|
2387
|
-
};
|
|
2388
|
-
_f._closure = {
|
|
2389
|
-
interpolateColor,
|
|
2390
|
-
color,
|
|
2391
|
-
backgroundColor,
|
|
2392
|
-
pressedBackgroundColor,
|
|
2393
|
-
withSpring,
|
|
2394
|
-
pressed,
|
|
2395
|
-
scale: {
|
|
2396
|
-
base: {
|
|
2397
|
-
active: scale.base.active,
|
|
2398
|
-
default: scale.base.default
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2375
|
+
const animatedStyles = useAnimatedStyle(() => {
|
|
2376
|
+
return {
|
|
2377
|
+
backgroundColor: interpolateColor(color.value, [0, 1], [backgroundColor, pressedBackgroundColor]),
|
|
2378
|
+
transform: [{
|
|
2379
|
+
scale: withSpring(pressed.value ? scale.base.active : scale.base.default)
|
|
2380
|
+
}]
|
|
2401
2381
|
};
|
|
2402
|
-
|
|
2403
|
-
_f.__workletHash = 5368461229978;
|
|
2404
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Button/hooks/useNativeAnimation.ts (31:42)";
|
|
2405
|
-
_f.__optimalization = 2;
|
|
2406
|
-
return _f;
|
|
2407
|
-
}());
|
|
2382
|
+
});
|
|
2408
2383
|
return {
|
|
2409
2384
|
onPressIn: () => {
|
|
2410
2385
|
color.value = withSpring(1);
|
|
@@ -2733,7 +2708,7 @@ function AvatarContent({
|
|
|
2733
2708
|
width: size,
|
|
2734
2709
|
height: size,
|
|
2735
2710
|
alt: alt,
|
|
2736
|
-
|
|
2711
|
+
"aria-label": alt
|
|
2737
2712
|
});
|
|
2738
2713
|
}
|
|
2739
2714
|
if (firstname && lastname) {
|
|
@@ -2964,56 +2939,22 @@ function NativeOpacityAnimation$2({
|
|
|
2964
2939
|
onExited();
|
|
2965
2940
|
}
|
|
2966
2941
|
}
|
|
2967
|
-
const opacityStyle = useAnimatedStyle(
|
|
2968
|
-
const
|
|
2969
|
-
|
|
2942
|
+
const opacityStyle = useAnimatedStyle(() => {
|
|
2943
|
+
const {
|
|
2944
|
+
duration,
|
|
2945
|
+
easing
|
|
2946
|
+
} = theme.kitt.cardModal.animation.overlay;
|
|
2947
|
+
const [x1, y1, x2, y2] = easing;
|
|
2948
|
+
return {
|
|
2949
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
2970
2950
|
duration,
|
|
2971
|
-
easing
|
|
2972
|
-
}
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
duration,
|
|
2977
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
2978
|
-
}, function () {
|
|
2979
|
-
const _f = function (isFinished) {
|
|
2980
|
-
if (!isFinished) return;
|
|
2981
|
-
runOnJS(handleAnimationFinished)();
|
|
2982
|
-
};
|
|
2983
|
-
_f._closure = {
|
|
2984
|
-
runOnJS,
|
|
2985
|
-
handleAnimationFinished
|
|
2986
|
-
};
|
|
2987
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
2988
|
-
_f.__workletHash = 14707844242190;
|
|
2989
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeOpacityAnimation.tsx (32:96)";
|
|
2990
|
-
return _f;
|
|
2991
|
-
}())
|
|
2992
|
-
};
|
|
2993
|
-
};
|
|
2994
|
-
_f._closure = {
|
|
2995
|
-
theme: {
|
|
2996
|
-
kitt: {
|
|
2997
|
-
cardModal: {
|
|
2998
|
-
animation: {
|
|
2999
|
-
overlay: theme.kitt.cardModal.animation.overlay
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
}
|
|
3003
|
-
},
|
|
3004
|
-
withTiming,
|
|
3005
|
-
visible,
|
|
3006
|
-
Easing: {
|
|
3007
|
-
bezier: Easing$1.bezier
|
|
3008
|
-
},
|
|
3009
|
-
runOnJS,
|
|
3010
|
-
handleAnimationFinished
|
|
2951
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
2952
|
+
}, isFinished => {
|
|
2953
|
+
if (!isFinished) return;
|
|
2954
|
+
runOnJS(handleAnimationFinished)();
|
|
2955
|
+
})
|
|
3011
2956
|
};
|
|
3012
|
-
|
|
3013
|
-
_f.__workletHash = 14370179131905;
|
|
3014
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeOpacityAnimation.tsx (27:40)";
|
|
3015
|
-
return _f;
|
|
3016
|
-
}());
|
|
2957
|
+
});
|
|
3017
2958
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3018
2959
|
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
3019
2960
|
children: children
|
|
@@ -3036,69 +2977,34 @@ function NativeRotationAnimation$1({
|
|
|
3036
2977
|
}
|
|
3037
2978
|
if (!visible && hasRunAnimationRef.current) onExited();
|
|
3038
2979
|
}
|
|
3039
|
-
const animatedStyle = useAnimatedStyle(
|
|
3040
|
-
const
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
2980
|
+
const animatedStyle = useAnimatedStyle(() => {
|
|
2981
|
+
const {
|
|
2982
|
+
duration,
|
|
2983
|
+
easing
|
|
2984
|
+
} = theme.kitt.cardModal.animation.content;
|
|
2985
|
+
const [x1, y1, x2, y2] = easing;
|
|
2986
|
+
rotation.value = withTiming(visible ? 0 : 5, {
|
|
2987
|
+
duration,
|
|
2988
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
2989
|
+
}, isFinished => {
|
|
2990
|
+
if (!isFinished) return;
|
|
2991
|
+
runOnJS(handleAnimationFinished)();
|
|
2992
|
+
});
|
|
2993
|
+
return {
|
|
2994
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
3047
2995
|
duration,
|
|
3048
2996
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3049
|
-
},
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
runOnJS(handleAnimationFinished)();
|
|
3053
|
-
};
|
|
3054
|
-
_f._closure = {
|
|
3055
|
-
runOnJS,
|
|
3056
|
-
handleAnimationFinished
|
|
3057
|
-
};
|
|
3058
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
3059
|
-
_f.__workletHash = 14707844242190;
|
|
3060
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeRotationAnimation.tsx (41:102)";
|
|
3061
|
-
return _f;
|
|
3062
|
-
}());
|
|
3063
|
-
return {
|
|
3064
|
-
opacity: withTiming(visible ? 1 : 0, {
|
|
2997
|
+
}),
|
|
2998
|
+
transform: [{
|
|
2999
|
+
scale: withTiming(visible ? 1 : 0.8, {
|
|
3065
3000
|
duration,
|
|
3066
3001
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3067
|
-
})
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3072
|
-
})
|
|
3073
|
-
}, {
|
|
3074
|
-
rotateZ: `${rotation.value}deg`
|
|
3075
|
-
}]
|
|
3076
|
-
};
|
|
3077
|
-
};
|
|
3078
|
-
_f._closure = {
|
|
3079
|
-
theme: {
|
|
3080
|
-
kitt: {
|
|
3081
|
-
cardModal: {
|
|
3082
|
-
animation: {
|
|
3083
|
-
content: theme.kitt.cardModal.animation.content
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
3086
|
-
}
|
|
3087
|
-
},
|
|
3088
|
-
rotation,
|
|
3089
|
-
withTiming,
|
|
3090
|
-
visible,
|
|
3091
|
-
Easing: {
|
|
3092
|
-
bezier: Easing$1.bezier
|
|
3093
|
-
},
|
|
3094
|
-
runOnJS,
|
|
3095
|
-
handleAnimationFinished
|
|
3002
|
+
})
|
|
3003
|
+
}, {
|
|
3004
|
+
rotateZ: `${rotation.value}deg`
|
|
3005
|
+
}]
|
|
3096
3006
|
};
|
|
3097
|
-
|
|
3098
|
-
_f.__workletHash = 14560674497944;
|
|
3099
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeRotationAnimation.tsx (36:41)";
|
|
3100
|
-
return _f;
|
|
3101
|
-
}());
|
|
3007
|
+
});
|
|
3102
3008
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3103
3009
|
style: [animatedStyle],
|
|
3104
3010
|
children: children
|
|
@@ -3390,70 +3296,28 @@ const useNativeAnimation$2 = ({
|
|
|
3390
3296
|
}) => {
|
|
3391
3297
|
const theme = useTheme();
|
|
3392
3298
|
const pressed = useSharedValue(Boolean(isPressedInternal));
|
|
3393
|
-
const progress = useDerivedValue(
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
pressed,
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
duration: theme.kitt.choices.item.transition.duration
|
|
3408
|
-
}
|
|
3409
|
-
}
|
|
3410
|
-
}
|
|
3411
|
-
}
|
|
3412
|
-
}
|
|
3299
|
+
const progress = useDerivedValue(() => {
|
|
3300
|
+
return withTiming(pressed.value ? 1 : 0, {
|
|
3301
|
+
duration: theme.kitt.choices.item.transition.duration
|
|
3302
|
+
});
|
|
3303
|
+
});
|
|
3304
|
+
const backgroundStyles = useAnimatedStyle(() => {
|
|
3305
|
+
const {
|
|
3306
|
+
default: defaultBg,
|
|
3307
|
+
pressed: pressedBg,
|
|
3308
|
+
selected: selectedBg,
|
|
3309
|
+
disabled: disabledBg
|
|
3310
|
+
} = theme.kitt.choices.item.backgroundColor;
|
|
3311
|
+
if (disabled) return {
|
|
3312
|
+
backgroundColor: disabledBg
|
|
3413
3313
|
};
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Choices/hooks/useNativeAnimation.tsx (31:35)";
|
|
3417
|
-
return _f;
|
|
3418
|
-
}());
|
|
3419
|
-
const backgroundStyles = useAnimatedStyle(function () {
|
|
3420
|
-
const _f = function () {
|
|
3421
|
-
const {
|
|
3422
|
-
default: defaultBg,
|
|
3423
|
-
pressed: pressedBg,
|
|
3424
|
-
selected: selectedBg,
|
|
3425
|
-
disabled: disabledBg
|
|
3426
|
-
} = theme.kitt.choices.item.backgroundColor;
|
|
3427
|
-
if (disabled) return {
|
|
3428
|
-
backgroundColor: disabledBg
|
|
3429
|
-
};
|
|
3430
|
-
if (selected) return {
|
|
3431
|
-
backgroundColor: selectedBg
|
|
3432
|
-
};
|
|
3433
|
-
return {
|
|
3434
|
-
backgroundColor: interpolateColor(progress.value, [0, 1], [defaultBg, pressedBg])
|
|
3435
|
-
};
|
|
3314
|
+
if (selected) return {
|
|
3315
|
+
backgroundColor: selectedBg
|
|
3436
3316
|
};
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
kitt: {
|
|
3440
|
-
choices: {
|
|
3441
|
-
item: {
|
|
3442
|
-
backgroundColor: theme.kitt.choices.item.backgroundColor
|
|
3443
|
-
}
|
|
3444
|
-
}
|
|
3445
|
-
}
|
|
3446
|
-
},
|
|
3447
|
-
disabled,
|
|
3448
|
-
selected,
|
|
3449
|
-
interpolateColor,
|
|
3450
|
-
progress
|
|
3317
|
+
return {
|
|
3318
|
+
backgroundColor: interpolateColor(progress.value, [0, 1], [defaultBg, pressedBg])
|
|
3451
3319
|
};
|
|
3452
|
-
|
|
3453
|
-
_f.__workletHash = 15506726129309;
|
|
3454
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Choices/hooks/useNativeAnimation.tsx (35:44)";
|
|
3455
|
-
return _f;
|
|
3456
|
-
}());
|
|
3320
|
+
});
|
|
3457
3321
|
return {
|
|
3458
3322
|
onPressIn: () => {
|
|
3459
3323
|
pressed.value = true;
|
|
@@ -3624,7 +3488,7 @@ function Choices({
|
|
|
3624
3488
|
return /*#__PURE__*/jsx(ChoicesContainer, {
|
|
3625
3489
|
direction: direction,
|
|
3626
3490
|
testID: testID,
|
|
3627
|
-
|
|
3491
|
+
id: id,
|
|
3628
3492
|
children: childrenArray.map((child, index) => {
|
|
3629
3493
|
const element = /*#__PURE__*/cloneElement(child, {
|
|
3630
3494
|
selected: isForm ? child.props.value === currentValue : undefined,
|
|
@@ -3664,56 +3528,22 @@ function NativeOpacityAnimation$1({
|
|
|
3664
3528
|
onExited();
|
|
3665
3529
|
}
|
|
3666
3530
|
}
|
|
3667
|
-
const opacityStyle = useAnimatedStyle(
|
|
3668
|
-
const
|
|
3669
|
-
|
|
3531
|
+
const opacityStyle = useAnimatedStyle(() => {
|
|
3532
|
+
const {
|
|
3533
|
+
duration,
|
|
3534
|
+
easing
|
|
3535
|
+
} = theme.kitt.dialogModal.animation.overlay;
|
|
3536
|
+
const [x1, y1, x2, y2] = easing;
|
|
3537
|
+
return {
|
|
3538
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
3670
3539
|
duration,
|
|
3671
|
-
easing
|
|
3672
|
-
}
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
duration,
|
|
3677
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3678
|
-
}, function () {
|
|
3679
|
-
const _f = function (isFinished) {
|
|
3680
|
-
if (!isFinished) return;
|
|
3681
|
-
runOnJS(handleAnimationFinished)();
|
|
3682
|
-
};
|
|
3683
|
-
_f._closure = {
|
|
3684
|
-
runOnJS,
|
|
3685
|
-
handleAnimationFinished
|
|
3686
|
-
};
|
|
3687
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
3688
|
-
_f.__workletHash = 14707844242190;
|
|
3689
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeOpacityAnimation.tsx (32:96)";
|
|
3690
|
-
return _f;
|
|
3691
|
-
}())
|
|
3692
|
-
};
|
|
3693
|
-
};
|
|
3694
|
-
_f._closure = {
|
|
3695
|
-
theme: {
|
|
3696
|
-
kitt: {
|
|
3697
|
-
dialogModal: {
|
|
3698
|
-
animation: {
|
|
3699
|
-
overlay: theme.kitt.dialogModal.animation.overlay
|
|
3700
|
-
}
|
|
3701
|
-
}
|
|
3702
|
-
}
|
|
3703
|
-
},
|
|
3704
|
-
withTiming,
|
|
3705
|
-
visible,
|
|
3706
|
-
Easing: {
|
|
3707
|
-
bezier: Easing$1.bezier
|
|
3708
|
-
},
|
|
3709
|
-
runOnJS,
|
|
3710
|
-
handleAnimationFinished
|
|
3540
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3541
|
+
}, isFinished => {
|
|
3542
|
+
if (!isFinished) return;
|
|
3543
|
+
runOnJS(handleAnimationFinished)();
|
|
3544
|
+
})
|
|
3711
3545
|
};
|
|
3712
|
-
|
|
3713
|
-
_f.__workletHash = 3254948230845;
|
|
3714
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeOpacityAnimation.tsx (27:40)";
|
|
3715
|
-
return _f;
|
|
3716
|
-
}());
|
|
3546
|
+
});
|
|
3717
3547
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3718
3548
|
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
3719
3549
|
children: children
|
|
@@ -3736,69 +3566,34 @@ function NativeRotationAnimation({
|
|
|
3736
3566
|
}
|
|
3737
3567
|
if (!visible && hasRunAnimationRef.current) onExited();
|
|
3738
3568
|
}
|
|
3739
|
-
const animatedStyle = useAnimatedStyle(
|
|
3740
|
-
const
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3569
|
+
const animatedStyle = useAnimatedStyle(() => {
|
|
3570
|
+
const {
|
|
3571
|
+
duration,
|
|
3572
|
+
easing
|
|
3573
|
+
} = theme.kitt.dialogModal.animation.content;
|
|
3574
|
+
const [x1, y1, x2, y2] = easing;
|
|
3575
|
+
rotation.value = withTiming(visible ? 0 : 5, {
|
|
3576
|
+
duration,
|
|
3577
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3578
|
+
}, isFinished => {
|
|
3579
|
+
if (!isFinished) return;
|
|
3580
|
+
runOnJS(handleAnimationFinished)();
|
|
3581
|
+
});
|
|
3582
|
+
return {
|
|
3583
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
3747
3584
|
duration,
|
|
3748
3585
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3749
|
-
},
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
runOnJS(handleAnimationFinished)();
|
|
3753
|
-
};
|
|
3754
|
-
_f._closure = {
|
|
3755
|
-
runOnJS,
|
|
3756
|
-
handleAnimationFinished
|
|
3757
|
-
};
|
|
3758
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
3759
|
-
_f.__workletHash = 14707844242190;
|
|
3760
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeRotationAnimation.tsx (41:102)";
|
|
3761
|
-
return _f;
|
|
3762
|
-
}());
|
|
3763
|
-
return {
|
|
3764
|
-
opacity: withTiming(visible ? 1 : 0, {
|
|
3586
|
+
}),
|
|
3587
|
+
transform: [{
|
|
3588
|
+
scale: withTiming(visible ? 1 : 0.8, {
|
|
3765
3589
|
duration,
|
|
3766
3590
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3767
|
-
})
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
3772
|
-
})
|
|
3773
|
-
}, {
|
|
3774
|
-
rotateZ: `${rotation.value}deg`
|
|
3775
|
-
}]
|
|
3776
|
-
};
|
|
3777
|
-
};
|
|
3778
|
-
_f._closure = {
|
|
3779
|
-
theme: {
|
|
3780
|
-
kitt: {
|
|
3781
|
-
dialogModal: {
|
|
3782
|
-
animation: {
|
|
3783
|
-
content: theme.kitt.dialogModal.animation.content
|
|
3784
|
-
}
|
|
3785
|
-
}
|
|
3786
|
-
}
|
|
3787
|
-
},
|
|
3788
|
-
rotation,
|
|
3789
|
-
withTiming,
|
|
3790
|
-
visible,
|
|
3791
|
-
Easing: {
|
|
3792
|
-
bezier: Easing$1.bezier
|
|
3793
|
-
},
|
|
3794
|
-
runOnJS,
|
|
3795
|
-
handleAnimationFinished
|
|
3591
|
+
})
|
|
3592
|
+
}, {
|
|
3593
|
+
rotateZ: `${rotation.value}deg`
|
|
3594
|
+
}]
|
|
3796
3595
|
};
|
|
3797
|
-
|
|
3798
|
-
_f.__workletHash = 14448961480868;
|
|
3799
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeRotationAnimation.tsx (36:41)";
|
|
3800
|
-
return _f;
|
|
3801
|
-
}());
|
|
3596
|
+
});
|
|
3802
3597
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3803
3598
|
style: [animatedStyle],
|
|
3804
3599
|
children: children
|
|
@@ -3962,7 +3757,7 @@ function Emoji({
|
|
|
3962
3757
|
testID: testID,
|
|
3963
3758
|
size: size,
|
|
3964
3759
|
alt: emojiData.text,
|
|
3965
|
-
|
|
3760
|
+
"aria-label": emojiData.text,
|
|
3966
3761
|
source: {
|
|
3967
3762
|
uri: emojiData.url
|
|
3968
3763
|
},
|
|
@@ -4141,7 +3936,7 @@ const InputText = /*#__PURE__*/forwardRef(({
|
|
|
4141
3936
|
autoCorrect = true,
|
|
4142
3937
|
textContentType = 'none',
|
|
4143
3938
|
autoComplete = 'off',
|
|
4144
|
-
|
|
3939
|
+
inputMode = 'none',
|
|
4145
3940
|
multiline,
|
|
4146
3941
|
onSubmitEditing,
|
|
4147
3942
|
...props
|
|
@@ -4155,11 +3950,11 @@ const InputText = /*#__PURE__*/forwardRef(({
|
|
|
4155
3950
|
children: [/*#__PURE__*/jsx(Input, {
|
|
4156
3951
|
ref: ref,
|
|
4157
3952
|
multiline: multiline,
|
|
4158
|
-
|
|
3953
|
+
id: id,
|
|
4159
3954
|
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
4160
3955
|
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
4161
3956
|
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
4162
|
-
|
|
3957
|
+
inputMode: inputMode,
|
|
4163
3958
|
autoComplete: autoComplete,
|
|
4164
3959
|
autoCorrect: autoCorrect,
|
|
4165
3960
|
textContentType: textContentType,
|
|
@@ -4548,7 +4343,7 @@ const Checkbox = /*#__PURE__*/forwardRef(({
|
|
|
4548
4343
|
const theme = useTheme();
|
|
4549
4344
|
return /*#__PURE__*/jsx(Pressable, {
|
|
4550
4345
|
ref: ref,
|
|
4551
|
-
|
|
4346
|
+
id: id,
|
|
4552
4347
|
testID: testID,
|
|
4553
4348
|
accessibilityRole: "checkbox",
|
|
4554
4349
|
accessibilityState: {
|
|
@@ -4623,10 +4418,10 @@ const Checkbox = /*#__PURE__*/forwardRef(({
|
|
|
4623
4418
|
});
|
|
4624
4419
|
});
|
|
4625
4420
|
|
|
4626
|
-
function
|
|
4627
|
-
//
|
|
4421
|
+
function getEnterKeyHintForNumericInput(enterKeyHint) {
|
|
4422
|
+
// enterKeyHint is only displayed on number input on iOS if value is done
|
|
4628
4423
|
if (Platform.OS === 'ios') return 'done';
|
|
4629
|
-
return
|
|
4424
|
+
return enterKeyHint;
|
|
4630
4425
|
}
|
|
4631
4426
|
|
|
4632
4427
|
function prefixWithZero$1(value, maxLength = 2) {
|
|
@@ -4836,7 +4631,7 @@ const InputPart = /*#__PURE__*/forwardRef(({
|
|
|
4836
4631
|
isFocusedInternal,
|
|
4837
4632
|
isHoveredInternal,
|
|
4838
4633
|
isPressedInternal,
|
|
4839
|
-
|
|
4634
|
+
enterKeyHint,
|
|
4840
4635
|
onChange,
|
|
4841
4636
|
onBlur,
|
|
4842
4637
|
onSubmitEditing
|
|
@@ -4853,8 +4648,8 @@ const InputPart = /*#__PURE__*/forwardRef(({
|
|
|
4853
4648
|
value: value,
|
|
4854
4649
|
placeholder: placeholder,
|
|
4855
4650
|
disabled: disabled,
|
|
4856
|
-
|
|
4857
|
-
|
|
4651
|
+
inputMode: "numeric",
|
|
4652
|
+
enterKeyHint: enterKeyHint,
|
|
4858
4653
|
textAlign: "center",
|
|
4859
4654
|
onChange: onChange,
|
|
4860
4655
|
onBlur: onBlur,
|
|
@@ -4888,7 +4683,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef(({
|
|
|
4888
4683
|
isFocusedInternal,
|
|
4889
4684
|
isHoveredInternal,
|
|
4890
4685
|
isPressedInternal,
|
|
4891
|
-
|
|
4686
|
+
enterKeyHint,
|
|
4892
4687
|
onChange,
|
|
4893
4688
|
onBlur,
|
|
4894
4689
|
onFocus,
|
|
@@ -4937,7 +4732,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef(({
|
|
|
4937
4732
|
};
|
|
4938
4733
|
return /*#__PURE__*/jsx(View, {
|
|
4939
4734
|
testID: testID,
|
|
4940
|
-
|
|
4735
|
+
id: id,
|
|
4941
4736
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
4942
4737
|
space: "kitt.2",
|
|
4943
4738
|
children: [/*#__PURE__*/jsx(PartContainer, {
|
|
@@ -4949,7 +4744,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef(({
|
|
|
4949
4744
|
...sharedInputPartProps,
|
|
4950
4745
|
placeholder: placeholder?.day,
|
|
4951
4746
|
value: state.displayedDay,
|
|
4952
|
-
|
|
4747
|
+
enterKeyHint: getEnterKeyHintForNumericInput('next'),
|
|
4953
4748
|
onChange: e => {
|
|
4954
4749
|
const nextDay = stringToNumber(e.nativeEvent.text);
|
|
4955
4750
|
dispatch({
|
|
@@ -4977,7 +4772,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef(({
|
|
|
4977
4772
|
...sharedInputPartProps,
|
|
4978
4773
|
placeholder: placeholder?.month,
|
|
4979
4774
|
value: state.displayedMonth,
|
|
4980
|
-
|
|
4775
|
+
enterKeyHint: getEnterKeyHintForNumericInput('next'),
|
|
4981
4776
|
onChange: e => {
|
|
4982
4777
|
const nextMonth = stringToNumber(e.nativeEvent.text);
|
|
4983
4778
|
dispatch({
|
|
@@ -5005,7 +4800,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef(({
|
|
|
5005
4800
|
...sharedInputPartProps,
|
|
5006
4801
|
placeholder: placeholder?.year,
|
|
5007
4802
|
value: state.displayedYear,
|
|
5008
|
-
|
|
4803
|
+
enterKeyHint: enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined,
|
|
5009
4804
|
onChange: e => {
|
|
5010
4805
|
const nextYear = stringToNumber(e.nativeEvent.text);
|
|
5011
4806
|
dispatch({
|
|
@@ -5050,14 +4845,16 @@ const PressableDateInputs = /*#__PURE__*/forwardRef(({
|
|
|
5050
4845
|
flexDirection: "row",
|
|
5051
4846
|
position: "relative",
|
|
5052
4847
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'baseline'),
|
|
5053
|
-
|
|
4848
|
+
id: id,
|
|
5054
4849
|
disabled: disabled,
|
|
5055
4850
|
testID: testID,
|
|
5056
4851
|
onPress: onPress,
|
|
5057
4852
|
children: /*#__PURE__*/jsxs(View, {
|
|
5058
4853
|
position: "relative",
|
|
5059
4854
|
width: createResponsiveStyleFromProp(stretch, '100%'),
|
|
5060
|
-
|
|
4855
|
+
style: {
|
|
4856
|
+
pointerEvents: 'none'
|
|
4857
|
+
},
|
|
5061
4858
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
5062
4859
|
space: "kitt.2",
|
|
5063
4860
|
width: createResponsiveStyleFromProp(stretch, '100%'),
|
|
@@ -5327,7 +5124,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef(({
|
|
|
5327
5124
|
|
|
5328
5125
|
const DatePicker = /*#__PURE__*/forwardRef(({
|
|
5329
5126
|
fillMode = 'native',
|
|
5330
|
-
|
|
5127
|
+
enterKeyHint,
|
|
5331
5128
|
value,
|
|
5332
5129
|
onSubmitEditing,
|
|
5333
5130
|
...props
|
|
@@ -5339,7 +5136,7 @@ const DatePicker = /*#__PURE__*/forwardRef(({
|
|
|
5339
5136
|
ref: ref,
|
|
5340
5137
|
...props,
|
|
5341
5138
|
value: currentValue,
|
|
5342
|
-
|
|
5139
|
+
enterKeyHint: enterKeyHint,
|
|
5343
5140
|
onSubmitEditing: onSubmitEditing
|
|
5344
5141
|
});
|
|
5345
5142
|
}
|
|
@@ -5648,9 +5445,7 @@ function InputAddressOption({
|
|
|
5648
5445
|
}) {
|
|
5649
5446
|
const sharedTransform = {
|
|
5650
5447
|
style: {
|
|
5651
|
-
transform:
|
|
5652
|
-
translateY: 4
|
|
5653
|
-
}]
|
|
5448
|
+
transform: 'translateY(4)'
|
|
5654
5449
|
}
|
|
5655
5450
|
};
|
|
5656
5451
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
@@ -5748,7 +5543,7 @@ const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5748
5543
|
return /*#__PURE__*/jsx(InputText, {
|
|
5749
5544
|
ref: ref,
|
|
5750
5545
|
autoComplete: "email",
|
|
5751
|
-
|
|
5546
|
+
inputMode: "email",
|
|
5752
5547
|
textContentType: "emailAddress",
|
|
5753
5548
|
autoCapitalize: "none",
|
|
5754
5549
|
...props
|
|
@@ -5855,7 +5650,7 @@ function prefixWithZero(value, phoneNumberLength) {
|
|
|
5855
5650
|
return value.padStart(phoneNumberLength, '0');
|
|
5856
5651
|
}
|
|
5857
5652
|
const InputPhone = /*#__PURE__*/forwardRef(({
|
|
5858
|
-
|
|
5653
|
+
enterKeyHint,
|
|
5859
5654
|
autoComplete = 'tel',
|
|
5860
5655
|
phoneNumberLength = 10,
|
|
5861
5656
|
value,
|
|
@@ -5863,13 +5658,13 @@ const InputPhone = /*#__PURE__*/forwardRef(({
|
|
|
5863
5658
|
...props
|
|
5864
5659
|
}, ref) => {
|
|
5865
5660
|
const [currentValue, setCurrentValue] = useState(value);
|
|
5866
|
-
const
|
|
5661
|
+
const currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
5867
5662
|
return /*#__PURE__*/jsx(InputText, {
|
|
5868
5663
|
ref: ref,
|
|
5869
5664
|
...props,
|
|
5870
5665
|
value: currentValue,
|
|
5871
|
-
|
|
5872
|
-
|
|
5666
|
+
inputMode: "tel",
|
|
5667
|
+
enterKeyHint: currentEnterKeyHint,
|
|
5873
5668
|
autoComplete: autoComplete,
|
|
5874
5669
|
textContentType: "telephoneNumber",
|
|
5875
5670
|
onChange: event => {
|
|
@@ -5948,7 +5743,7 @@ function Label({
|
|
|
5948
5743
|
const isWeb = Platform.OS === 'web';
|
|
5949
5744
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
5950
5745
|
base: "body",
|
|
5951
|
-
|
|
5746
|
+
id: isWeb ? undefined : id,
|
|
5952
5747
|
children: isWeb ? /*#__PURE__*/jsx("label", {
|
|
5953
5748
|
id: id,
|
|
5954
5749
|
htmlFor: htmlFor,
|
|
@@ -5971,7 +5766,7 @@ function InnerCircle({
|
|
|
5971
5766
|
backgroundColor: "kitt.forms.radio.innerCircle.backgroundColor",
|
|
5972
5767
|
_web: {
|
|
5973
5768
|
style: {
|
|
5974
|
-
transform:
|
|
5769
|
+
transform: `scale(${isChecked ? 1 : 0}))`,
|
|
5975
5770
|
transitionProperty: 'all',
|
|
5976
5771
|
transitionDuration: theme.kitt.forms.radio.transition.duration,
|
|
5977
5772
|
transitionTimingFunction: theme.kitt.forms.radio.transition.timingFunction
|
|
@@ -6075,7 +5870,7 @@ const Radio = /*#__PURE__*/forwardRef(({
|
|
|
6075
5870
|
return /*#__PURE__*/jsx(Pressable, {
|
|
6076
5871
|
ref: ref,
|
|
6077
5872
|
testID: testID,
|
|
6078
|
-
|
|
5873
|
+
id: id,
|
|
6079
5874
|
disabled: disabled,
|
|
6080
5875
|
accessibilityRole: "radio",
|
|
6081
5876
|
"aria-checked": checked,
|
|
@@ -6187,56 +5982,24 @@ const useNativeAnimation$1 = ({
|
|
|
6187
5982
|
default: borderColor,
|
|
6188
5983
|
pressed: pressedBorderColor
|
|
6189
5984
|
} = theme.kitt.forms.radioButtonGroup.item.borderColor;
|
|
6190
|
-
const animatedStyles = useAnimatedStyle(
|
|
6191
|
-
|
|
6192
|
-
if (isDisabled) {
|
|
6193
|
-
return {
|
|
6194
|
-
backgroundColor: theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled,
|
|
6195
|
-
borderColor: theme.kitt.forms.radioButtonGroup.item.borderColor.disabled
|
|
6196
|
-
};
|
|
6197
|
-
}
|
|
6198
|
-
if (isSelected) {
|
|
6199
|
-
return {
|
|
6200
|
-
backgroundColor: pressedBackgroundColor,
|
|
6201
|
-
borderColor: pressedBorderColor
|
|
6202
|
-
};
|
|
6203
|
-
}
|
|
5985
|
+
const animatedStyles = useAnimatedStyle(() => {
|
|
5986
|
+
if (isDisabled) {
|
|
6204
5987
|
return {
|
|
6205
|
-
backgroundColor:
|
|
6206
|
-
borderColor:
|
|
5988
|
+
backgroundColor: theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled,
|
|
5989
|
+
borderColor: theme.kitt.forms.radioButtonGroup.item.borderColor.disabled
|
|
6207
5990
|
};
|
|
5991
|
+
}
|
|
5992
|
+
if (isSelected) {
|
|
5993
|
+
return {
|
|
5994
|
+
backgroundColor: pressedBackgroundColor,
|
|
5995
|
+
borderColor: pressedBorderColor
|
|
5996
|
+
};
|
|
5997
|
+
}
|
|
5998
|
+
return {
|
|
5999
|
+
backgroundColor: interpolateColor(color.value, [0, 1], [backgroundColor, pressedBackgroundColor]),
|
|
6000
|
+
borderColor: interpolateColor(color.value, [0, 1], [borderColor, pressedBorderColor])
|
|
6208
6001
|
};
|
|
6209
|
-
|
|
6210
|
-
isDisabled,
|
|
6211
|
-
theme: {
|
|
6212
|
-
kitt: {
|
|
6213
|
-
forms: {
|
|
6214
|
-
radioButtonGroup: {
|
|
6215
|
-
item: {
|
|
6216
|
-
backgroundColor: {
|
|
6217
|
-
disabled: theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled
|
|
6218
|
-
},
|
|
6219
|
-
borderColor: {
|
|
6220
|
-
disabled: theme.kitt.forms.radioButtonGroup.item.borderColor.disabled
|
|
6221
|
-
}
|
|
6222
|
-
}
|
|
6223
|
-
}
|
|
6224
|
-
}
|
|
6225
|
-
}
|
|
6226
|
-
},
|
|
6227
|
-
isSelected,
|
|
6228
|
-
pressedBackgroundColor,
|
|
6229
|
-
pressedBorderColor,
|
|
6230
|
-
interpolateColor,
|
|
6231
|
-
color,
|
|
6232
|
-
backgroundColor,
|
|
6233
|
-
borderColor
|
|
6234
|
-
};
|
|
6235
|
-
_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])};}}";
|
|
6236
|
-
_f.__workletHash = 1728775972872;
|
|
6237
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/forms/RadioButtonGroup/hooks/useNativeAnimation.ts (31:42)";
|
|
6238
|
-
return _f;
|
|
6239
|
-
}());
|
|
6002
|
+
});
|
|
6240
6003
|
return {
|
|
6241
6004
|
onPressIn: () => {
|
|
6242
6005
|
color.value = withSpring(1);
|
|
@@ -6462,42 +6225,19 @@ function NativeOpacityAnimation({
|
|
|
6462
6225
|
children
|
|
6463
6226
|
}) {
|
|
6464
6227
|
const theme = useTheme();
|
|
6465
|
-
const opacityStyle = useAnimatedStyle(
|
|
6466
|
-
const
|
|
6467
|
-
|
|
6228
|
+
const opacityStyle = useAnimatedStyle(() => {
|
|
6229
|
+
const {
|
|
6230
|
+
duration,
|
|
6231
|
+
easing
|
|
6232
|
+
} = theme.kitt.fullscreenModal.animation.overlay;
|
|
6233
|
+
const [x1, y1, x2, y2] = easing;
|
|
6234
|
+
return {
|
|
6235
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
6468
6236
|
duration,
|
|
6469
|
-
easing
|
|
6470
|
-
}
|
|
6471
|
-
const [x1, y1, x2, y2] = easing;
|
|
6472
|
-
return {
|
|
6473
|
-
opacity: withTiming(visible ? 1 : 0, {
|
|
6474
|
-
duration,
|
|
6475
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
6476
|
-
})
|
|
6477
|
-
};
|
|
6478
|
-
};
|
|
6479
|
-
_f._closure = {
|
|
6480
|
-
theme: {
|
|
6481
|
-
kitt: {
|
|
6482
|
-
fullscreenModal: {
|
|
6483
|
-
animation: {
|
|
6484
|
-
overlay: theme.kitt.fullscreenModal.animation.overlay
|
|
6485
|
-
}
|
|
6486
|
-
}
|
|
6487
|
-
}
|
|
6488
|
-
},
|
|
6489
|
-
withTiming,
|
|
6490
|
-
visible,
|
|
6491
|
-
Easing: {
|
|
6492
|
-
bezier: Easing$1.bezier
|
|
6493
|
-
}
|
|
6237
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
6238
|
+
})
|
|
6494
6239
|
};
|
|
6495
|
-
|
|
6496
|
-
_f.__workletHash = 7884472191878;
|
|
6497
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/FullscreenModal/components/NativeOpacityAnimation.tsx (14:40)";
|
|
6498
|
-
_f.__optimalization = 2;
|
|
6499
|
-
return _f;
|
|
6500
|
-
}());
|
|
6240
|
+
});
|
|
6501
6241
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
6502
6242
|
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
6503
6243
|
children: children
|
|
@@ -6524,59 +6264,24 @@ function NativeSlideInAnimation({
|
|
|
6524
6264
|
// Since animation callback is called on component mount, we must make sure that the animation has been runed once to call it an exit
|
|
6525
6265
|
if (!visible && hasRunAnimationRef.current) onExited();
|
|
6526
6266
|
}
|
|
6527
|
-
const translateStyle = useAnimatedStyle(
|
|
6528
|
-
const
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
};
|
|
6544
|
-
_f._closure = {
|
|
6545
|
-
runOnJS,
|
|
6546
|
-
handleAnimationFinished
|
|
6547
|
-
};
|
|
6548
|
-
_f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
|
|
6549
|
-
_f.__workletHash = 14707844242190;
|
|
6550
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/FullscreenModal/components/NativeSlideInAnimation.tsx (45:12)";
|
|
6551
|
-
return _f;
|
|
6552
|
-
}())
|
|
6553
|
-
}]
|
|
6554
|
-
};
|
|
6555
|
-
};
|
|
6556
|
-
_f._closure = {
|
|
6557
|
-
theme: {
|
|
6558
|
-
kitt: {
|
|
6559
|
-
fullscreenModal: {
|
|
6560
|
-
animation: {
|
|
6561
|
-
content: theme.kitt.fullscreenModal.animation.content
|
|
6562
|
-
}
|
|
6563
|
-
}
|
|
6564
|
-
}
|
|
6565
|
-
},
|
|
6566
|
-
withTiming,
|
|
6567
|
-
visible,
|
|
6568
|
-
wHeight,
|
|
6569
|
-
Easing: {
|
|
6570
|
-
bezier: Easing$1.bezier
|
|
6571
|
-
},
|
|
6572
|
-
runOnJS,
|
|
6573
|
-
handleAnimationFinished
|
|
6267
|
+
const translateStyle = useAnimatedStyle(() => {
|
|
6268
|
+
const {
|
|
6269
|
+
duration,
|
|
6270
|
+
easing
|
|
6271
|
+
} = theme.kitt.fullscreenModal.animation.content;
|
|
6272
|
+
const [x1, y1, x2, y2] = easing;
|
|
6273
|
+
return {
|
|
6274
|
+
transform: [{
|
|
6275
|
+
translateY: withTiming(visible ? 0 : wHeight, {
|
|
6276
|
+
duration,
|
|
6277
|
+
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
6278
|
+
}, isFinished => {
|
|
6279
|
+
if (!isFinished) return;
|
|
6280
|
+
runOnJS(handleAnimationFinished)();
|
|
6281
|
+
})
|
|
6282
|
+
}]
|
|
6574
6283
|
};
|
|
6575
|
-
|
|
6576
|
-
_f.__workletHash = 16793352522068;
|
|
6577
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/FullscreenModal/components/NativeSlideInAnimation.tsx (35:42)";
|
|
6578
|
-
return _f;
|
|
6579
|
-
}());
|
|
6284
|
+
});
|
|
6580
6285
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
6581
6286
|
style: [{
|
|
6582
6287
|
transform: [{
|
|
@@ -6886,52 +6591,18 @@ function useNativeAnimation({
|
|
|
6886
6591
|
}) {
|
|
6887
6592
|
const theme = useTheme();
|
|
6888
6593
|
const pressed = useSharedValue(!!isPressed);
|
|
6889
|
-
const opacityStyles = useAnimatedStyle(
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
opacity: withSpring(pressed.value ? 1 : 0)
|
|
6893
|
-
};
|
|
6894
|
-
};
|
|
6895
|
-
_f._closure = {
|
|
6896
|
-
withSpring,
|
|
6897
|
-
pressed
|
|
6898
|
-
};
|
|
6899
|
-
_f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
|
|
6900
|
-
_f.__workletHash = 10645190329247;
|
|
6901
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (24:41)";
|
|
6902
|
-
_f.__optimalization = 2;
|
|
6903
|
-
return _f;
|
|
6904
|
-
}());
|
|
6905
|
-
const scaleStyles = useAnimatedStyle(function () {
|
|
6906
|
-
const _f = function () {
|
|
6907
|
-
return {
|
|
6908
|
-
transform: [{
|
|
6909
|
-
scale: withSpring(pressed.value ? theme.kitt.iconButton.scale.base.active : theme.kitt.iconButton.scale.base.default)
|
|
6910
|
-
}]
|
|
6911
|
-
};
|
|
6594
|
+
const opacityStyles = useAnimatedStyle(() => {
|
|
6595
|
+
return {
|
|
6596
|
+
opacity: withSpring(pressed.value ? 1 : 0)
|
|
6912
6597
|
};
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
kitt:
|
|
6918
|
-
|
|
6919
|
-
scale: {
|
|
6920
|
-
base: {
|
|
6921
|
-
active: theme.kitt.iconButton.scale.base.active,
|
|
6922
|
-
default: theme.kitt.iconButton.scale.base.default
|
|
6923
|
-
}
|
|
6924
|
-
}
|
|
6925
|
-
}
|
|
6926
|
-
}
|
|
6927
|
-
}
|
|
6598
|
+
});
|
|
6599
|
+
const scaleStyles = useAnimatedStyle(() => {
|
|
6600
|
+
return {
|
|
6601
|
+
transform: [{
|
|
6602
|
+
scale: withSpring(pressed.value ? theme.kitt.iconButton.scale.base.active : theme.kitt.iconButton.scale.base.default)
|
|
6603
|
+
}]
|
|
6928
6604
|
};
|
|
6929
|
-
|
|
6930
|
-
_f.__workletHash = 13861998831411;
|
|
6931
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (30:39)";
|
|
6932
|
-
_f.__optimalization = 2;
|
|
6933
|
-
return _f;
|
|
6934
|
-
}());
|
|
6605
|
+
});
|
|
6935
6606
|
return {
|
|
6936
6607
|
opacityStyles,
|
|
6937
6608
|
scaleStyles,
|
|
@@ -6961,7 +6632,7 @@ function IconButton({
|
|
|
6961
6632
|
color = 'black',
|
|
6962
6633
|
disabled,
|
|
6963
6634
|
testID,
|
|
6964
|
-
|
|
6635
|
+
ariaLabel,
|
|
6965
6636
|
accessibilityRole = 'button',
|
|
6966
6637
|
isHoveredInternal,
|
|
6967
6638
|
isPressedInternal,
|
|
@@ -6982,14 +6653,12 @@ function IconButton({
|
|
|
6982
6653
|
disabled: disabled,
|
|
6983
6654
|
width: "kitt.iconButton.width",
|
|
6984
6655
|
height: "kitt.iconButton.height",
|
|
6985
|
-
|
|
6656
|
+
"aria-label": ariaLabel,
|
|
6986
6657
|
accessibilityRole: accessibilityRole,
|
|
6987
6658
|
_web: {
|
|
6988
6659
|
style: {
|
|
6989
6660
|
backfaceVisibility: 'hidden',
|
|
6990
|
-
transform:
|
|
6991
|
-
translate3d: '0'
|
|
6992
|
-
}]
|
|
6661
|
+
transform: 'translate3d(0px)'
|
|
6993
6662
|
}
|
|
6994
6663
|
},
|
|
6995
6664
|
borderRadius: "kitt.iconButton.borderRadius",
|
|
@@ -9266,21 +8935,11 @@ function AnimatedLoaderCircle({
|
|
|
9266
8935
|
} = theme.kitt.pageLoader;
|
|
9267
8936
|
const centerCoord = size * 0.5;
|
|
9268
8937
|
const circlePerimeter = 2 * Math.PI * (size * 0.5 - strokeWidth);
|
|
9269
|
-
const strokeAnimation = useAnimatedProps(
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
strokeDashoffset: circlePerimeter - circlePerimeter * progress.value
|
|
9273
|
-
};
|
|
9274
|
-
};
|
|
9275
|
-
_f._closure = {
|
|
9276
|
-
circlePerimeter,
|
|
9277
|
-
progress
|
|
8938
|
+
const strokeAnimation = useAnimatedProps(() => {
|
|
8939
|
+
return {
|
|
8940
|
+
strokeDashoffset: circlePerimeter - circlePerimeter * progress.value
|
|
9278
8941
|
};
|
|
9279
|
-
|
|
9280
|
-
_f.__workletHash = 1345639818356;
|
|
9281
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/PageLoader/AnimatedLoaderCircle.tsx (23:43)";
|
|
9282
|
-
return _f;
|
|
9283
|
-
}());
|
|
8942
|
+
});
|
|
9284
8943
|
return /*#__PURE__*/jsx(AnimatedCircle, {
|
|
9285
8944
|
"transform-origin": "center center",
|
|
9286
8945
|
strokeWidth: strokeWidth,
|
|
@@ -9345,23 +9004,13 @@ function AnimatedFillCircleContainer({
|
|
|
9345
9004
|
easing: Easing$1.linear
|
|
9346
9005
|
}), isInfinitAnimation$1));
|
|
9347
9006
|
}, [progress, animation, duration]);
|
|
9348
|
-
const rotationStyles = useAnimatedStyle(
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
}]
|
|
9354
|
-
};
|
|
9355
|
-
};
|
|
9356
|
-
_f._closure = {
|
|
9357
|
-
progress
|
|
9007
|
+
const rotationStyles = useAnimatedStyle(() => {
|
|
9008
|
+
return {
|
|
9009
|
+
transform: [{
|
|
9010
|
+
rotate: `${360 * progress.value}deg`
|
|
9011
|
+
}]
|
|
9358
9012
|
};
|
|
9359
|
-
|
|
9360
|
-
_f.__workletHash = 16553090406738;
|
|
9361
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/PageLoader/AnimatedFillCircleContainer.tsx (36:42)";
|
|
9362
|
-
_f.__optimalization = 3;
|
|
9363
|
-
return _f;
|
|
9364
|
-
}());
|
|
9013
|
+
});
|
|
9365
9014
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
9366
9015
|
style: [StyleSheet.absoluteFill, rotationStyles],
|
|
9367
9016
|
children: children
|
|
@@ -9709,25 +9358,13 @@ function SkeletonContent({
|
|
|
9709
9358
|
}), -1);
|
|
9710
9359
|
}
|
|
9711
9360
|
}, [sharedX, width, isLoading, theme]);
|
|
9712
|
-
const linearGradientStyle = useAnimatedStyle(
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
}]
|
|
9718
|
-
};
|
|
9719
|
-
};
|
|
9720
|
-
_f._closure = {
|
|
9721
|
-
interpolate,
|
|
9722
|
-
sharedX,
|
|
9723
|
-
width
|
|
9361
|
+
const linearGradientStyle = useAnimatedStyle(() => {
|
|
9362
|
+
return {
|
|
9363
|
+
transform: [{
|
|
9364
|
+
translateX: interpolate(sharedX.value, [0, 1], [-width, width])
|
|
9365
|
+
}]
|
|
9724
9366
|
};
|
|
9725
|
-
|
|
9726
|
-
_f.__workletHash = 1670955855244;
|
|
9727
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Skeleton/SkeletonContent.tsx (36:47)";
|
|
9728
|
-
_f.__optimalization = 3;
|
|
9729
|
-
return _f;
|
|
9730
|
-
}());
|
|
9367
|
+
});
|
|
9731
9368
|
return /*#__PURE__*/jsx(View, {
|
|
9732
9369
|
height: "100%",
|
|
9733
9370
|
width: "100%",
|
|
@@ -10601,9 +10238,6 @@ const Arrow = /*#__PURE__*/forwardRef(({
|
|
|
10601
10238
|
display
|
|
10602
10239
|
}, ref) => {
|
|
10603
10240
|
const theme = useTheme();
|
|
10604
|
-
const transformStyle = [{
|
|
10605
|
-
rotate: position === 'bottom' ? '180deg' : '0deg'
|
|
10606
|
-
}];
|
|
10607
10241
|
return /*#__PURE__*/jsx(View, {
|
|
10608
10242
|
ref: ref,
|
|
10609
10243
|
display: display || {
|
|
@@ -10615,7 +10249,7 @@ const Arrow = /*#__PURE__*/forwardRef(({
|
|
|
10615
10249
|
left: left,
|
|
10616
10250
|
top: top,
|
|
10617
10251
|
style: {
|
|
10618
|
-
transform:
|
|
10252
|
+
transform: `rotate(${position === 'bottom' ? '180deg' : '0deg'})`
|
|
10619
10253
|
},
|
|
10620
10254
|
children: /*#__PURE__*/jsx(SvgArrowinline, {
|
|
10621
10255
|
color: theme.kitt.tooltip.backgroundColor,
|
|
@@ -10723,32 +10357,14 @@ function Tooltip({
|
|
|
10723
10357
|
const [floatingWidth, setFloatingWidth] = useState(undefined);
|
|
10724
10358
|
const pressableRectRef = useRef(undefined);
|
|
10725
10359
|
const pressed = useSharedValue(defaultVisible);
|
|
10726
|
-
const animatedStyles = useAnimatedStyle(
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
}]
|
|
10733
|
-
};
|
|
10734
|
-
};
|
|
10735
|
-
_f._closure = {
|
|
10736
|
-
withSpring,
|
|
10737
|
-
pressed,
|
|
10738
|
-
theme: {
|
|
10739
|
-
kitt: {
|
|
10740
|
-
tooltip: {
|
|
10741
|
-
opacity: theme.kitt.tooltip.opacity
|
|
10742
|
-
}
|
|
10743
|
-
}
|
|
10744
|
-
}
|
|
10360
|
+
const animatedStyles = useAnimatedStyle(() => {
|
|
10361
|
+
return {
|
|
10362
|
+
opacity: withSpring(pressed.value ? theme.kitt.tooltip.opacity : 0),
|
|
10363
|
+
transform: [{
|
|
10364
|
+
scale: withSpring(pressed.value ? 1 : 0.8)
|
|
10365
|
+
}]
|
|
10745
10366
|
};
|
|
10746
|
-
|
|
10747
|
-
_f.__workletHash = 1087298059737;
|
|
10748
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (112:42)";
|
|
10749
|
-
_f.__optimalization = 2;
|
|
10750
|
-
return _f;
|
|
10751
|
-
}());
|
|
10367
|
+
});
|
|
10752
10368
|
const {
|
|
10753
10369
|
x,
|
|
10754
10370
|
y,
|
|
@@ -10914,7 +10530,6 @@ function TypographyEmoji({
|
|
|
10914
10530
|
emoji: emoji,
|
|
10915
10531
|
alignSelf: "center",
|
|
10916
10532
|
_web: {
|
|
10917
|
-
// @ts-expect-error -- transform expects number, but string works on web
|
|
10918
10533
|
style: {
|
|
10919
10534
|
transform: 'translateY(20%)'
|
|
10920
10535
|
},
|