@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.
Files changed (69) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/definitions/ActionCard/ActionCardContentWrapper.d.ts.map +1 -1
  3. package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
  4. package/dist/definitions/Button/FocusBorder.d.ts.map +1 -1
  5. package/dist/definitions/IconButton/IconButton.d.ts +2 -2
  6. package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
  7. package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
  8. package/dist/definitions/Tooltip/Arrow.d.ts.map +1 -1
  9. package/dist/definitions/forms/DatePicker/DatePicker.d.ts +1 -1
  10. package/dist/definitions/forms/DatePicker/DatePicker.d.ts.map +1 -1
  11. package/dist/definitions/forms/DatePicker/components/InputPart.d.ts +1 -1
  12. package/dist/definitions/forms/DatePicker/components/InputPart.d.ts.map +1 -1
  13. package/dist/definitions/forms/DatePicker/components/PressableDateInputs.d.ts.map +1 -1
  14. package/dist/definitions/forms/InputText/InputText.d.ts +1 -1
  15. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  16. package/dist/definitions/forms/RadioButtonGroup/HoverBorder.d.ts.map +1 -1
  17. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +2 -2
  18. package/dist/definitions/themes/default.d.ts +0 -2
  19. package/dist/definitions/themes/default.d.ts.map +1 -1
  20. package/dist/definitions/themes/late-ocean/typography.d.ts +0 -2
  21. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  22. package/dist/definitions/typography/Typography.d.ts +376 -46
  23. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  24. package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
  25. package/dist/definitions/typography/TypographyLink.d.ts +3 -3
  26. package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
  27. package/dist/definitions/utils/getEnterKeyHintForNumericInput/getEnterKeyHintForNumericInput.d.ts +3 -0
  28. package/dist/definitions/utils/getEnterKeyHintForNumericInput/getEnterKeyHintForNumericInput.d.ts.map +1 -0
  29. package/dist/{index.es.ios.js → index-metro.es.android.js} +3576 -4152
  30. package/dist/index-metro.es.android.js.map +1 -0
  31. package/dist/{index.es.android.js → index-metro.es.ios.js} +3576 -4152
  32. package/dist/index-metro.es.ios.js.map +1 -0
  33. package/dist/index-node-18.18.cjs.js +217 -602
  34. package/dist/index-node-18.18.cjs.js.map +1 -1
  35. package/dist/index-node-18.18.cjs.web.js +45 -66
  36. package/dist/index-node-18.18.cjs.web.js.map +1 -1
  37. package/dist/index-node-18.18.es.mjs +217 -602
  38. package/dist/index-node-18.18.es.mjs.map +1 -1
  39. package/dist/index-node-18.18.es.web.mjs +45 -66
  40. package/dist/index-node-18.18.es.web.mjs.map +1 -1
  41. package/dist/index.es.js +227 -612
  42. package/dist/index.es.js.map +1 -1
  43. package/dist/index.es.web.js +49 -70
  44. package/dist/index.es.web.js.map +1 -1
  45. package/dist/{linaria-themes.es.ios.js → linaria-themes-metro.es.android.js} +172 -187
  46. package/dist/linaria-themes-metro.es.android.js.map +1 -0
  47. package/dist/{linaria-themes.es.android.js → linaria-themes-metro.es.ios.js} +172 -187
  48. package/dist/linaria-themes-metro.es.ios.js.map +1 -0
  49. package/dist/linaria-themes-node-18.18.cjs.js +0 -6
  50. package/dist/linaria-themes-node-18.18.cjs.js.map +1 -1
  51. package/dist/linaria-themes-node-18.18.cjs.web.js +0 -6
  52. package/dist/linaria-themes-node-18.18.cjs.web.js.map +1 -1
  53. package/dist/linaria-themes-node-18.18.es.mjs +0 -6
  54. package/dist/linaria-themes-node-18.18.es.mjs.map +1 -1
  55. package/dist/linaria-themes-node-18.18.es.web.mjs +0 -6
  56. package/dist/linaria-themes-node-18.18.es.web.mjs.map +1 -1
  57. package/dist/linaria-themes.es.js +0 -6
  58. package/dist/linaria-themes.es.js.map +1 -1
  59. package/dist/linaria-themes.es.web.js +0 -6
  60. package/dist/linaria-themes.es.web.js.map +1 -1
  61. package/dist/tsbuildinfo +1 -1
  62. package/package.json +17 -16
  63. package/typings/react-native-web.d.ts +48 -5
  64. package/dist/definitions/utils/getReturnKeyTypeForNumericInput/getReturnKeyTypeForNumericInput.d.ts +0 -3
  65. package/dist/definitions/utils/getReturnKeyTypeForNumericInput/getReturnKeyTypeForNumericInput.d.ts.map +0 -1
  66. package/dist/index.es.android.js.map +0 -1
  67. package/dist/index.es.ios.js.map +0 -1
  68. package/dist/linaria-themes.es.android.js.map +0 -1
  69. package/dist/linaria-themes.es.ios.js.map +0 -1
@@ -879,9 +879,6 @@ const typography = {
879
879
  warning: colors.warning
880
880
  },
881
881
  types: {
882
- get header() {
883
- throw new Error('typography.types.header is deprecated, use typography.type.headings instead');
884
- },
885
882
  headings: {
886
883
  fontFamily: {
887
884
  native: {
@@ -915,9 +912,6 @@ const typography = {
915
912
  'heading-xxs': createTypographyConfig(16, 1.3)
916
913
  }
917
914
  },
918
- get 'headers-impact'() {
919
- throw new Error('typography.types.headers-impact is deprecated, use typography.type.headings-impact instead');
920
- },
921
915
  'headings-impact': {
922
916
  fontFamily: {
923
917
  native: {
@@ -1703,7 +1697,9 @@ function ActionCardContentWrapper({
1703
1697
  style: sharedTransform
1704
1698
  },
1705
1699
  _web: {
1706
- style: sharedTransform
1700
+ style: {
1701
+ transform: `translateY(${translateY}px)`
1702
+ }
1707
1703
  },
1708
1704
  width: "100%",
1709
1705
  backgroundColor: `kitt.actionCard.${themeName}.${state}.backgroundColor`,
@@ -2076,7 +2072,7 @@ const createHeading = (level, defaultBase) => {
2076
2072
  accessibilityRole: "header",
2077
2073
  base: defaultBase,
2078
2074
  ...props,
2079
- accessibilityLevel: level
2075
+ "aria-level": level
2080
2076
  });
2081
2077
  }
2082
2078
  TypographyHeading.displayName = `TypographyHeading${level}`;
@@ -2398,35 +2394,14 @@ const useNativeAnimation$3 = ({
2398
2394
  const {
2399
2395
  scale
2400
2396
  } = theme.kitt.button;
2401
- const animatedStyles = Animated.useAnimatedStyle(function () {
2402
- const _f = function () {
2403
- return {
2404
- backgroundColor: Animated.interpolateColor(color.value, [0, 1], [backgroundColor, pressedBackgroundColor]),
2405
- transform: [{
2406
- scale: Animated.withSpring(pressed.value ? scale.base.active : scale.base.default)
2407
- }]
2408
- };
2409
- };
2410
- _f._closure = {
2411
- interpolateColor: Animated.interpolateColor,
2412
- color,
2413
- backgroundColor,
2414
- pressedBackgroundColor,
2415
- withSpring: Animated.withSpring,
2416
- pressed,
2417
- scale: {
2418
- base: {
2419
- active: scale.base.active,
2420
- default: scale.base.default
2421
- }
2422
- }
2397
+ const animatedStyles = Animated.useAnimatedStyle(() => {
2398
+ return {
2399
+ backgroundColor: Animated.interpolateColor(color.value, [0, 1], [backgroundColor, pressedBackgroundColor]),
2400
+ transform: [{
2401
+ scale: Animated.withSpring(pressed.value ? scale.base.active : scale.base.default)
2402
+ }]
2423
2403
  };
2424
- _f.asString = "function _f(){const{interpolateColor,color,backgroundColor,pressedBackgroundColor,withSpring,pressed,scale}=jsThis._closure;{return{backgroundColor:interpolateColor(color.value,[0,1],[backgroundColor,pressedBackgroundColor]),transform:[{scale:withSpring(pressed.value?scale.base.active:scale.base.default)}]};}}";
2425
- _f.__workletHash = 5368461229978;
2426
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Button/hooks/useNativeAnimation.ts (31:42)";
2427
- _f.__optimalization = 2;
2428
- return _f;
2429
- }());
2404
+ });
2430
2405
  return {
2431
2406
  onPressIn: () => {
2432
2407
  color.value = Animated.withSpring(1);
@@ -2755,7 +2730,7 @@ function AvatarContent({
2755
2730
  width: size,
2756
2731
  height: size,
2757
2732
  alt: alt,
2758
- accessibilityLabel: alt
2733
+ "aria-label": alt
2759
2734
  });
2760
2735
  }
2761
2736
  if (firstname && lastname) {
@@ -2986,56 +2961,22 @@ function NativeOpacityAnimation$2({
2986
2961
  onExited();
2987
2962
  }
2988
2963
  }
2989
- const opacityStyle = Animated.useAnimatedStyle(function () {
2990
- const _f = function () {
2991
- const {
2964
+ const opacityStyle = Animated.useAnimatedStyle(() => {
2965
+ const {
2966
+ duration,
2967
+ easing
2968
+ } = theme.kitt.cardModal.animation.overlay;
2969
+ const [x1, y1, x2, y2] = easing;
2970
+ return {
2971
+ opacity: Animated.withTiming(visible ? 1 : 0, {
2992
2972
  duration,
2993
- easing
2994
- } = theme.kitt.cardModal.animation.overlay;
2995
- const [x1, y1, x2, y2] = easing;
2996
- return {
2997
- opacity: Animated.withTiming(visible ? 1 : 0, {
2998
- duration,
2999
- easing: Animated.Easing.bezier(x1, y1, x2, y2)
3000
- }, function () {
3001
- const _f = function (isFinished) {
3002
- if (!isFinished) return;
3003
- Animated.runOnJS(handleAnimationFinished)();
3004
- };
3005
- _f._closure = {
3006
- runOnJS: Animated.runOnJS,
3007
- handleAnimationFinished
3008
- };
3009
- _f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
3010
- _f.__workletHash = 14707844242190;
3011
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeOpacityAnimation.tsx (32:96)";
3012
- return _f;
3013
- }())
3014
- };
3015
- };
3016
- _f._closure = {
3017
- theme: {
3018
- kitt: {
3019
- cardModal: {
3020
- animation: {
3021
- overlay: theme.kitt.cardModal.animation.overlay
3022
- }
3023
- }
3024
- }
3025
- },
3026
- withTiming: Animated.withTiming,
3027
- visible,
3028
- Easing: {
3029
- bezier: Animated.Easing.bezier
3030
- },
3031
- runOnJS: Animated.runOnJS,
3032
- handleAnimationFinished
2973
+ easing: Animated.Easing.bezier(x1, y1, x2, y2)
2974
+ }, isFinished => {
2975
+ if (!isFinished) return;
2976
+ Animated.runOnJS(handleAnimationFinished)();
2977
+ })
3033
2978
  };
3034
- _f.asString = "function _f(){const{theme,withTiming,visible,Easing,runOnJS,handleAnimationFinished}=jsThis._closure;{const{duration:duration,easing:easing}=theme.kitt.cardModal.animation.overlay;const[x1,y1,x2,y2]=easing;return{opacity:withTiming(visible?1:0,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)},function(isFinished){if(!isFinished)return;runOnJS(handleAnimationFinished)();})};}}";
3035
- _f.__workletHash = 14370179131905;
3036
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeOpacityAnimation.tsx (27:40)";
3037
- return _f;
3038
- }());
2979
+ });
3039
2980
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
3040
2981
  style: [reactNative.StyleSheet.absoluteFillObject, opacityStyle],
3041
2982
  children: children
@@ -3058,69 +2999,34 @@ function NativeRotationAnimation$1({
3058
2999
  }
3059
3000
  if (!visible && hasRunAnimationRef.current) onExited();
3060
3001
  }
3061
- const animatedStyle = Animated.useAnimatedStyle(function () {
3062
- const _f = function () {
3063
- const {
3064
- duration,
3065
- easing
3066
- } = theme.kitt.cardModal.animation.content;
3067
- const [x1, y1, x2, y2] = easing;
3068
- rotation.value = Animated.withTiming(visible ? 0 : 5, {
3002
+ const animatedStyle = Animated.useAnimatedStyle(() => {
3003
+ const {
3004
+ duration,
3005
+ easing
3006
+ } = theme.kitt.cardModal.animation.content;
3007
+ const [x1, y1, x2, y2] = easing;
3008
+ rotation.value = Animated.withTiming(visible ? 0 : 5, {
3009
+ duration,
3010
+ easing: Animated.Easing.bezier(x1, y1, x2, y2)
3011
+ }, isFinished => {
3012
+ if (!isFinished) return;
3013
+ Animated.runOnJS(handleAnimationFinished)();
3014
+ });
3015
+ return {
3016
+ opacity: Animated.withTiming(visible ? 1 : 0, {
3069
3017
  duration,
3070
3018
  easing: Animated.Easing.bezier(x1, y1, x2, y2)
3071
- }, function () {
3072
- const _f = function (isFinished) {
3073
- if (!isFinished) return;
3074
- Animated.runOnJS(handleAnimationFinished)();
3075
- };
3076
- _f._closure = {
3077
- runOnJS: Animated.runOnJS,
3078
- handleAnimationFinished
3079
- };
3080
- _f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
3081
- _f.__workletHash = 14707844242190;
3082
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeRotationAnimation.tsx (41:102)";
3083
- return _f;
3084
- }());
3085
- return {
3086
- opacity: Animated.withTiming(visible ? 1 : 0, {
3019
+ }),
3020
+ transform: [{
3021
+ scale: Animated.withTiming(visible ? 1 : 0.8, {
3087
3022
  duration,
3088
3023
  easing: Animated.Easing.bezier(x1, y1, x2, y2)
3089
- }),
3090
- transform: [{
3091
- scale: Animated.withTiming(visible ? 1 : 0.8, {
3092
- duration,
3093
- easing: Animated.Easing.bezier(x1, y1, x2, y2)
3094
- })
3095
- }, {
3096
- rotateZ: `${rotation.value}deg`
3097
- }]
3098
- };
3099
- };
3100
- _f._closure = {
3101
- theme: {
3102
- kitt: {
3103
- cardModal: {
3104
- animation: {
3105
- content: theme.kitt.cardModal.animation.content
3106
- }
3107
- }
3108
- }
3109
- },
3110
- rotation,
3111
- withTiming: Animated.withTiming,
3112
- visible,
3113
- Easing: {
3114
- bezier: Animated.Easing.bezier
3115
- },
3116
- runOnJS: Animated.runOnJS,
3117
- handleAnimationFinished
3024
+ })
3025
+ }, {
3026
+ rotateZ: `${rotation.value}deg`
3027
+ }]
3118
3028
  };
3119
- _f.asString = "function _f(){const{theme,rotation,withTiming,visible,Easing,runOnJS,handleAnimationFinished}=jsThis._closure;{const{duration:duration,easing:easing}=theme.kitt.cardModal.animation.content;const[x1,y1,x2,y2]=easing;rotation.value=withTiming(visible?0:5,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)},function(isFinished){if(!isFinished)return;runOnJS(handleAnimationFinished)();});return{opacity:withTiming(visible?1:0,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)}),transform:[{scale:withTiming(visible?1:0.8,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)})},{rotateZ:rotation.value+\"deg\"}]};}}";
3120
- _f.__workletHash = 14560674497944;
3121
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/CardModal/CardModalAnimation/NativeRotationAnimation.tsx (36:41)";
3122
- return _f;
3123
- }());
3029
+ });
3124
3030
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
3125
3031
  style: [animatedStyle],
3126
3032
  children: children
@@ -3412,70 +3318,28 @@ const useNativeAnimation$2 = ({
3412
3318
  }) => {
3413
3319
  const theme = useTheme();
3414
3320
  const pressed = Animated.useSharedValue(Boolean(isPressedInternal));
3415
- const progress = Animated.useDerivedValue(function () {
3416
- const _f = function () {
3417
- return Animated.withTiming(pressed.value ? 1 : 0, {
3418
- duration: theme.kitt.choices.item.transition.duration
3419
- });
3420
- };
3421
- _f._closure = {
3422
- withTiming: Animated.withTiming,
3423
- pressed,
3424
- theme: {
3425
- kitt: {
3426
- choices: {
3427
- item: {
3428
- transition: {
3429
- duration: theme.kitt.choices.item.transition.duration
3430
- }
3431
- }
3432
- }
3433
- }
3434
- }
3321
+ const progress = Animated.useDerivedValue(() => {
3322
+ return Animated.withTiming(pressed.value ? 1 : 0, {
3323
+ duration: theme.kitt.choices.item.transition.duration
3324
+ });
3325
+ });
3326
+ const backgroundStyles = Animated.useAnimatedStyle(() => {
3327
+ const {
3328
+ default: defaultBg,
3329
+ pressed: pressedBg,
3330
+ selected: selectedBg,
3331
+ disabled: disabledBg
3332
+ } = theme.kitt.choices.item.backgroundColor;
3333
+ if (disabled) return {
3334
+ backgroundColor: disabledBg
3435
3335
  };
3436
- _f.asString = "function _f(){const{withTiming,pressed,theme}=jsThis._closure;{return withTiming(pressed.value?1:0,{duration:theme.kitt.choices.item.transition.duration});}}";
3437
- _f.__workletHash = 1120030177160;
3438
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Choices/hooks/useNativeAnimation.tsx (31:35)";
3439
- return _f;
3440
- }());
3441
- const backgroundStyles = Animated.useAnimatedStyle(function () {
3442
- const _f = function () {
3443
- const {
3444
- default: defaultBg,
3445
- pressed: pressedBg,
3446
- selected: selectedBg,
3447
- disabled: disabledBg
3448
- } = theme.kitt.choices.item.backgroundColor;
3449
- if (disabled) return {
3450
- backgroundColor: disabledBg
3451
- };
3452
- if (selected) return {
3453
- backgroundColor: selectedBg
3454
- };
3455
- return {
3456
- backgroundColor: Animated.interpolateColor(progress.value, [0, 1], [defaultBg, pressedBg])
3457
- };
3336
+ if (selected) return {
3337
+ backgroundColor: selectedBg
3458
3338
  };
3459
- _f._closure = {
3460
- theme: {
3461
- kitt: {
3462
- choices: {
3463
- item: {
3464
- backgroundColor: theme.kitt.choices.item.backgroundColor
3465
- }
3466
- }
3467
- }
3468
- },
3469
- disabled,
3470
- selected,
3471
- interpolateColor: Animated.interpolateColor,
3472
- progress
3339
+ return {
3340
+ backgroundColor: Animated.interpolateColor(progress.value, [0, 1], [defaultBg, pressedBg])
3473
3341
  };
3474
- _f.asString = "function _f(){const{theme,disabled,selected,interpolateColor,progress}=jsThis._closure;{const{default:defaultBg,pressed:pressedBg,selected:selectedBg,disabled:disabledBg}=theme.kitt.choices.item.backgroundColor;if(disabled)return{backgroundColor:disabledBg};if(selected)return{backgroundColor:selectedBg};return{backgroundColor:interpolateColor(progress.value,[0,1],[defaultBg,pressedBg])};}}";
3475
- _f.__workletHash = 15506726129309;
3476
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Choices/hooks/useNativeAnimation.tsx (35:44)";
3477
- return _f;
3478
- }());
3342
+ });
3479
3343
  return {
3480
3344
  onPressIn: () => {
3481
3345
  pressed.value = true;
@@ -3646,7 +3510,7 @@ function Choices({
3646
3510
  return /*#__PURE__*/jsxRuntime.jsx(ChoicesContainer, {
3647
3511
  direction: direction,
3648
3512
  testID: testID,
3649
- nativeID: id,
3513
+ id: id,
3650
3514
  children: childrenArray.map((child, index) => {
3651
3515
  const element = /*#__PURE__*/React.cloneElement(child, {
3652
3516
  selected: isForm ? child.props.value === currentValue : undefined,
@@ -3686,56 +3550,22 @@ function NativeOpacityAnimation$1({
3686
3550
  onExited();
3687
3551
  }
3688
3552
  }
3689
- const opacityStyle = Animated.useAnimatedStyle(function () {
3690
- const _f = function () {
3691
- const {
3553
+ const opacityStyle = Animated.useAnimatedStyle(() => {
3554
+ const {
3555
+ duration,
3556
+ easing
3557
+ } = theme.kitt.dialogModal.animation.overlay;
3558
+ const [x1, y1, x2, y2] = easing;
3559
+ return {
3560
+ opacity: Animated.withTiming(visible ? 1 : 0, {
3692
3561
  duration,
3693
- easing
3694
- } = theme.kitt.dialogModal.animation.overlay;
3695
- const [x1, y1, x2, y2] = easing;
3696
- return {
3697
- opacity: Animated.withTiming(visible ? 1 : 0, {
3698
- duration,
3699
- easing: Animated.Easing.bezier(x1, y1, x2, y2)
3700
- }, function () {
3701
- const _f = function (isFinished) {
3702
- if (!isFinished) return;
3703
- Animated.runOnJS(handleAnimationFinished)();
3704
- };
3705
- _f._closure = {
3706
- runOnJS: Animated.runOnJS,
3707
- handleAnimationFinished
3708
- };
3709
- _f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
3710
- _f.__workletHash = 14707844242190;
3711
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeOpacityAnimation.tsx (32:96)";
3712
- return _f;
3713
- }())
3714
- };
3715
- };
3716
- _f._closure = {
3717
- theme: {
3718
- kitt: {
3719
- dialogModal: {
3720
- animation: {
3721
- overlay: theme.kitt.dialogModal.animation.overlay
3722
- }
3723
- }
3724
- }
3725
- },
3726
- withTiming: Animated.withTiming,
3727
- visible,
3728
- Easing: {
3729
- bezier: Animated.Easing.bezier
3730
- },
3731
- runOnJS: Animated.runOnJS,
3732
- handleAnimationFinished
3562
+ easing: Animated.Easing.bezier(x1, y1, x2, y2)
3563
+ }, isFinished => {
3564
+ if (!isFinished) return;
3565
+ Animated.runOnJS(handleAnimationFinished)();
3566
+ })
3733
3567
  };
3734
- _f.asString = "function _f(){const{theme,withTiming,visible,Easing,runOnJS,handleAnimationFinished}=jsThis._closure;{const{duration:duration,easing:easing}=theme.kitt.dialogModal.animation.overlay;const[x1,y1,x2,y2]=easing;return{opacity:withTiming(visible?1:0,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)},function(isFinished){if(!isFinished)return;runOnJS(handleAnimationFinished)();})};}}";
3735
- _f.__workletHash = 3254948230845;
3736
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeOpacityAnimation.tsx (27:40)";
3737
- return _f;
3738
- }());
3568
+ });
3739
3569
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
3740
3570
  style: [reactNative.StyleSheet.absoluteFillObject, opacityStyle],
3741
3571
  children: children
@@ -3758,69 +3588,34 @@ function NativeRotationAnimation({
3758
3588
  }
3759
3589
  if (!visible && hasRunAnimationRef.current) onExited();
3760
3590
  }
3761
- const animatedStyle = Animated.useAnimatedStyle(function () {
3762
- const _f = function () {
3763
- const {
3764
- duration,
3765
- easing
3766
- } = theme.kitt.dialogModal.animation.content;
3767
- const [x1, y1, x2, y2] = easing;
3768
- rotation.value = Animated.withTiming(visible ? 0 : 5, {
3591
+ const animatedStyle = Animated.useAnimatedStyle(() => {
3592
+ const {
3593
+ duration,
3594
+ easing
3595
+ } = theme.kitt.dialogModal.animation.content;
3596
+ const [x1, y1, x2, y2] = easing;
3597
+ rotation.value = Animated.withTiming(visible ? 0 : 5, {
3598
+ duration,
3599
+ easing: Animated.Easing.bezier(x1, y1, x2, y2)
3600
+ }, isFinished => {
3601
+ if (!isFinished) return;
3602
+ Animated.runOnJS(handleAnimationFinished)();
3603
+ });
3604
+ return {
3605
+ opacity: Animated.withTiming(visible ? 1 : 0, {
3769
3606
  duration,
3770
3607
  easing: Animated.Easing.bezier(x1, y1, x2, y2)
3771
- }, function () {
3772
- const _f = function (isFinished) {
3773
- if (!isFinished) return;
3774
- Animated.runOnJS(handleAnimationFinished)();
3775
- };
3776
- _f._closure = {
3777
- runOnJS: Animated.runOnJS,
3778
- handleAnimationFinished
3779
- };
3780
- _f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
3781
- _f.__workletHash = 14707844242190;
3782
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeRotationAnimation.tsx (41:102)";
3783
- return _f;
3784
- }());
3785
- return {
3786
- opacity: Animated.withTiming(visible ? 1 : 0, {
3608
+ }),
3609
+ transform: [{
3610
+ scale: Animated.withTiming(visible ? 1 : 0.8, {
3787
3611
  duration,
3788
3612
  easing: Animated.Easing.bezier(x1, y1, x2, y2)
3789
- }),
3790
- transform: [{
3791
- scale: Animated.withTiming(visible ? 1 : 0.8, {
3792
- duration,
3793
- easing: Animated.Easing.bezier(x1, y1, x2, y2)
3794
- })
3795
- }, {
3796
- rotateZ: `${rotation.value}deg`
3797
- }]
3798
- };
3799
- };
3800
- _f._closure = {
3801
- theme: {
3802
- kitt: {
3803
- dialogModal: {
3804
- animation: {
3805
- content: theme.kitt.dialogModal.animation.content
3806
- }
3807
- }
3808
- }
3809
- },
3810
- rotation,
3811
- withTiming: Animated.withTiming,
3812
- visible,
3813
- Easing: {
3814
- bezier: Animated.Easing.bezier
3815
- },
3816
- runOnJS: Animated.runOnJS,
3817
- handleAnimationFinished
3613
+ })
3614
+ }, {
3615
+ rotateZ: `${rotation.value}deg`
3616
+ }]
3818
3617
  };
3819
- _f.asString = "function _f(){const{theme,rotation,withTiming,visible,Easing,runOnJS,handleAnimationFinished}=jsThis._closure;{const{duration:duration,easing:easing}=theme.kitt.dialogModal.animation.content;const[x1,y1,x2,y2]=easing;rotation.value=withTiming(visible?0:5,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)},function(isFinished){if(!isFinished)return;runOnJS(handleAnimationFinished)();});return{opacity:withTiming(visible?1:0,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)}),transform:[{scale:withTiming(visible?1:0.8,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)})},{rotateZ:rotation.value+\"deg\"}]};}}";
3820
- _f.__workletHash = 14448961480868;
3821
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/DialogModal/DialogModalAnimation/NativeRotationAnimation.tsx (36:41)";
3822
- return _f;
3823
- }());
3618
+ });
3824
3619
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
3825
3620
  style: [animatedStyle],
3826
3621
  children: children
@@ -3984,7 +3779,7 @@ function Emoji({
3984
3779
  testID: testID,
3985
3780
  size: size,
3986
3781
  alt: emojiData.text,
3987
- accessibilityLabel: emojiData.text,
3782
+ "aria-label": emojiData.text,
3988
3783
  source: {
3989
3784
  uri: emojiData.url
3990
3785
  },
@@ -4163,7 +3958,7 @@ const InputText = /*#__PURE__*/React.forwardRef(({
4163
3958
  autoCorrect = true,
4164
3959
  textContentType = 'none',
4165
3960
  autoComplete = 'off',
4166
- keyboardType = 'default',
3961
+ inputMode = 'none',
4167
3962
  multiline,
4168
3963
  onSubmitEditing,
4169
3964
  ...props
@@ -4177,11 +3972,11 @@ const InputText = /*#__PURE__*/React.forwardRef(({
4177
3972
  children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
4178
3973
  ref: ref,
4179
3974
  multiline: multiline,
4180
- nativeID: id,
3975
+ id: id,
4181
3976
  isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
4182
3977
  isHovered: internalForceState ? internalForceState === 'hover' : undefined,
4183
3978
  isFocused: internalForceState ? internalForceState === 'focus' : undefined,
4184
- keyboardType: keyboardType,
3979
+ inputMode: inputMode,
4185
3980
  autoComplete: autoComplete,
4186
3981
  autoCorrect: autoCorrect,
4187
3982
  textContentType: textContentType,
@@ -4570,7 +4365,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(({
4570
4365
  const theme = useTheme();
4571
4366
  return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
4572
4367
  ref: ref,
4573
- nativeID: id,
4368
+ id: id,
4574
4369
  testID: testID,
4575
4370
  accessibilityRole: "checkbox",
4576
4371
  accessibilityState: {
@@ -4645,10 +4440,10 @@ const Checkbox = /*#__PURE__*/React.forwardRef(({
4645
4440
  });
4646
4441
  });
4647
4442
 
4648
- function getReturnKeyTypeForNumericInput(returnKeyType) {
4649
- // returnKey is only displayed on number input on iOS if value is done
4443
+ function getEnterKeyHintForNumericInput(enterKeyHint) {
4444
+ // enterKeyHint is only displayed on number input on iOS if value is done
4650
4445
  if (reactNative.Platform.OS === 'ios') return 'done';
4651
- return returnKeyType;
4446
+ return enterKeyHint;
4652
4447
  }
4653
4448
 
4654
4449
  function prefixWithZero$1(value, maxLength = 2) {
@@ -4858,7 +4653,7 @@ const InputPart = /*#__PURE__*/React.forwardRef(({
4858
4653
  isFocusedInternal,
4859
4654
  isHoveredInternal,
4860
4655
  isPressedInternal,
4861
- returnKeyType,
4656
+ enterKeyHint,
4862
4657
  onChange,
4863
4658
  onBlur,
4864
4659
  onSubmitEditing
@@ -4875,8 +4670,8 @@ const InputPart = /*#__PURE__*/React.forwardRef(({
4875
4670
  value: value,
4876
4671
  placeholder: placeholder,
4877
4672
  disabled: disabled,
4878
- keyboardType: "numeric",
4879
- returnKeyType: returnKeyType,
4673
+ inputMode: "numeric",
4674
+ enterKeyHint: enterKeyHint,
4880
4675
  textAlign: "center",
4881
4676
  onChange: onChange,
4882
4677
  onBlur: onBlur,
@@ -4910,7 +4705,7 @@ const KeyboardDatePicker = /*#__PURE__*/React.forwardRef(({
4910
4705
  isFocusedInternal,
4911
4706
  isHoveredInternal,
4912
4707
  isPressedInternal,
4913
- returnKeyType,
4708
+ enterKeyHint,
4914
4709
  onChange,
4915
4710
  onBlur,
4916
4711
  onFocus,
@@ -4959,7 +4754,7 @@ const KeyboardDatePicker = /*#__PURE__*/React.forwardRef(({
4959
4754
  };
4960
4755
  return /*#__PURE__*/jsxRuntime.jsx(View, {
4961
4756
  testID: testID,
4962
- nativeID: id,
4757
+ id: id,
4963
4758
  children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
4964
4759
  space: "kitt.2",
4965
4760
  children: [/*#__PURE__*/jsxRuntime.jsx(PartContainer, {
@@ -4971,7 +4766,7 @@ const KeyboardDatePicker = /*#__PURE__*/React.forwardRef(({
4971
4766
  ...sharedInputPartProps,
4972
4767
  placeholder: placeholder?.day,
4973
4768
  value: state.displayedDay,
4974
- returnKeyType: getReturnKeyTypeForNumericInput('next'),
4769
+ enterKeyHint: getEnterKeyHintForNumericInput('next'),
4975
4770
  onChange: e => {
4976
4771
  const nextDay = stringToNumber(e.nativeEvent.text);
4977
4772
  dispatch({
@@ -4999,7 +4794,7 @@ const KeyboardDatePicker = /*#__PURE__*/React.forwardRef(({
4999
4794
  ...sharedInputPartProps,
5000
4795
  placeholder: placeholder?.month,
5001
4796
  value: state.displayedMonth,
5002
- returnKeyType: getReturnKeyTypeForNumericInput('next'),
4797
+ enterKeyHint: getEnterKeyHintForNumericInput('next'),
5003
4798
  onChange: e => {
5004
4799
  const nextMonth = stringToNumber(e.nativeEvent.text);
5005
4800
  dispatch({
@@ -5027,7 +4822,7 @@ const KeyboardDatePicker = /*#__PURE__*/React.forwardRef(({
5027
4822
  ...sharedInputPartProps,
5028
4823
  placeholder: placeholder?.year,
5029
4824
  value: state.displayedYear,
5030
- returnKeyType: returnKeyType ? getReturnKeyTypeForNumericInput(returnKeyType) : undefined,
4825
+ enterKeyHint: enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined,
5031
4826
  onChange: e => {
5032
4827
  const nextYear = stringToNumber(e.nativeEvent.text);
5033
4828
  dispatch({
@@ -5072,14 +4867,16 @@ const PressableDateInputs = /*#__PURE__*/React.forwardRef(({
5072
4867
  flexDirection: "row",
5073
4868
  position: "relative",
5074
4869
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'baseline'),
5075
- nativeID: id,
4870
+ id: id,
5076
4871
  disabled: disabled,
5077
4872
  testID: testID,
5078
4873
  onPress: onPress,
5079
4874
  children: /*#__PURE__*/jsxRuntime.jsxs(View, {
5080
4875
  position: "relative",
5081
4876
  width: createResponsiveStyleFromProp(stretch, '100%'),
5082
- pointerEvents: "none",
4877
+ style: {
4878
+ pointerEvents: 'none'
4879
+ },
5083
4880
  children: [/*#__PURE__*/jsxRuntime.jsxs(HStack, {
5084
4881
  space: "kitt.2",
5085
4882
  width: createResponsiveStyleFromProp(stretch, '100%'),
@@ -5349,7 +5146,7 @@ const NativeUIDatePicker = /*#__PURE__*/React.forwardRef(({
5349
5146
 
5350
5147
  const DatePicker = /*#__PURE__*/React.forwardRef(({
5351
5148
  fillMode = 'native',
5352
- returnKeyType,
5149
+ enterKeyHint,
5353
5150
  value,
5354
5151
  onSubmitEditing,
5355
5152
  ...props
@@ -5361,7 +5158,7 @@ const DatePicker = /*#__PURE__*/React.forwardRef(({
5361
5158
  ref: ref,
5362
5159
  ...props,
5363
5160
  value: currentValue,
5364
- returnKeyType: returnKeyType,
5161
+ enterKeyHint: enterKeyHint,
5365
5162
  onSubmitEditing: onSubmitEditing
5366
5163
  });
5367
5164
  }
@@ -5670,9 +5467,7 @@ function InputAddressOption({
5670
5467
  }) {
5671
5468
  const sharedTransform = {
5672
5469
  style: {
5673
- transform: [{
5674
- translateY: 4
5675
- }]
5470
+ transform: 'translateY(4)'
5676
5471
  }
5677
5472
  };
5678
5473
  return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
@@ -5770,7 +5565,7 @@ const InputEmail = /*#__PURE__*/React.forwardRef((props, ref) => {
5770
5565
  return /*#__PURE__*/jsxRuntime.jsx(InputText, {
5771
5566
  ref: ref,
5772
5567
  autoComplete: "email",
5773
- keyboardType: "email-address",
5568
+ inputMode: "email",
5774
5569
  textContentType: "emailAddress",
5775
5570
  autoCapitalize: "none",
5776
5571
  ...props
@@ -5877,7 +5672,7 @@ function prefixWithZero(value, phoneNumberLength) {
5877
5672
  return value.padStart(phoneNumberLength, '0');
5878
5673
  }
5879
5674
  const InputPhone = /*#__PURE__*/React.forwardRef(({
5880
- returnKeyType,
5675
+ enterKeyHint,
5881
5676
  autoComplete = 'tel',
5882
5677
  phoneNumberLength = 10,
5883
5678
  value,
@@ -5885,13 +5680,13 @@ const InputPhone = /*#__PURE__*/React.forwardRef(({
5885
5680
  ...props
5886
5681
  }, ref) => {
5887
5682
  const [currentValue, setCurrentValue] = React.useState(value);
5888
- const currentReturnKeyType = returnKeyType ? getReturnKeyTypeForNumericInput(returnKeyType) : undefined;
5683
+ const currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
5889
5684
  return /*#__PURE__*/jsxRuntime.jsx(InputText, {
5890
5685
  ref: ref,
5891
5686
  ...props,
5892
5687
  value: currentValue,
5893
- keyboardType: "phone-pad",
5894
- returnKeyType: currentReturnKeyType,
5688
+ inputMode: "tel",
5689
+ enterKeyHint: currentEnterKeyHint,
5895
5690
  autoComplete: autoComplete,
5896
5691
  textContentType: "telephoneNumber",
5897
5692
  onChange: event => {
@@ -5970,7 +5765,7 @@ function Label({
5970
5765
  const isWeb = reactNative.Platform.OS === 'web';
5971
5766
  return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
5972
5767
  base: "body",
5973
- nativeID: isWeb ? undefined : id,
5768
+ id: isWeb ? undefined : id,
5974
5769
  children: isWeb ? /*#__PURE__*/jsxRuntime.jsx("label", {
5975
5770
  id: id,
5976
5771
  htmlFor: htmlFor,
@@ -5993,7 +5788,7 @@ function InnerCircle({
5993
5788
  backgroundColor: "kitt.forms.radio.innerCircle.backgroundColor",
5994
5789
  _web: {
5995
5790
  style: {
5996
- transform: sharedTransform,
5791
+ transform: `scale(${isChecked ? 1 : 0}))`,
5997
5792
  transitionProperty: 'all',
5998
5793
  transitionDuration: theme.kitt.forms.radio.transition.duration,
5999
5794
  transitionTimingFunction: theme.kitt.forms.radio.transition.timingFunction
@@ -6097,7 +5892,7 @@ const Radio = /*#__PURE__*/React.forwardRef(({
6097
5892
  return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
6098
5893
  ref: ref,
6099
5894
  testID: testID,
6100
- nativeID: id,
5895
+ id: id,
6101
5896
  disabled: disabled,
6102
5897
  accessibilityRole: "radio",
6103
5898
  "aria-checked": checked,
@@ -6209,56 +6004,24 @@ const useNativeAnimation$1 = ({
6209
6004
  default: borderColor,
6210
6005
  pressed: pressedBorderColor
6211
6006
  } = theme.kitt.forms.radioButtonGroup.item.borderColor;
6212
- const animatedStyles = Animated.useAnimatedStyle(function () {
6213
- const _f = function () {
6214
- if (isDisabled) {
6215
- return {
6216
- backgroundColor: theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled,
6217
- borderColor: theme.kitt.forms.radioButtonGroup.item.borderColor.disabled
6218
- };
6219
- }
6220
- if (isSelected) {
6221
- return {
6222
- backgroundColor: pressedBackgroundColor,
6223
- borderColor: pressedBorderColor
6224
- };
6225
- }
6007
+ const animatedStyles = Animated.useAnimatedStyle(() => {
6008
+ if (isDisabled) {
6226
6009
  return {
6227
- backgroundColor: Animated.interpolateColor(color.value, [0, 1], [backgroundColor, pressedBackgroundColor]),
6228
- borderColor: Animated.interpolateColor(color.value, [0, 1], [borderColor, pressedBorderColor])
6010
+ backgroundColor: theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled,
6011
+ borderColor: theme.kitt.forms.radioButtonGroup.item.borderColor.disabled
6229
6012
  };
6013
+ }
6014
+ if (isSelected) {
6015
+ return {
6016
+ backgroundColor: pressedBackgroundColor,
6017
+ borderColor: pressedBorderColor
6018
+ };
6019
+ }
6020
+ return {
6021
+ backgroundColor: Animated.interpolateColor(color.value, [0, 1], [backgroundColor, pressedBackgroundColor]),
6022
+ borderColor: Animated.interpolateColor(color.value, [0, 1], [borderColor, pressedBorderColor])
6230
6023
  };
6231
- _f._closure = {
6232
- isDisabled,
6233
- theme: {
6234
- kitt: {
6235
- forms: {
6236
- radioButtonGroup: {
6237
- item: {
6238
- backgroundColor: {
6239
- disabled: theme.kitt.forms.radioButtonGroup.item.backgroundColor.disabled
6240
- },
6241
- borderColor: {
6242
- disabled: theme.kitt.forms.radioButtonGroup.item.borderColor.disabled
6243
- }
6244
- }
6245
- }
6246
- }
6247
- }
6248
- },
6249
- isSelected,
6250
- pressedBackgroundColor,
6251
- pressedBorderColor,
6252
- interpolateColor: Animated.interpolateColor,
6253
- color,
6254
- backgroundColor,
6255
- borderColor
6256
- };
6257
- _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])};}}";
6258
- _f.__workletHash = 1728775972872;
6259
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/forms/RadioButtonGroup/hooks/useNativeAnimation.ts (31:42)";
6260
- return _f;
6261
- }());
6024
+ });
6262
6025
  return {
6263
6026
  onPressIn: () => {
6264
6027
  color.value = Animated.withSpring(1);
@@ -6484,42 +6247,19 @@ function NativeOpacityAnimation({
6484
6247
  children
6485
6248
  }) {
6486
6249
  const theme = useTheme();
6487
- const opacityStyle = Animated.useAnimatedStyle(function () {
6488
- const _f = function () {
6489
- const {
6250
+ const opacityStyle = Animated.useAnimatedStyle(() => {
6251
+ const {
6252
+ duration,
6253
+ easing
6254
+ } = theme.kitt.fullscreenModal.animation.overlay;
6255
+ const [x1, y1, x2, y2] = easing;
6256
+ return {
6257
+ opacity: Animated.withTiming(visible ? 1 : 0, {
6490
6258
  duration,
6491
- easing
6492
- } = theme.kitt.fullscreenModal.animation.overlay;
6493
- const [x1, y1, x2, y2] = easing;
6494
- return {
6495
- opacity: Animated.withTiming(visible ? 1 : 0, {
6496
- duration,
6497
- easing: Animated.Easing.bezier(x1, y1, x2, y2)
6498
- })
6499
- };
6500
- };
6501
- _f._closure = {
6502
- theme: {
6503
- kitt: {
6504
- fullscreenModal: {
6505
- animation: {
6506
- overlay: theme.kitt.fullscreenModal.animation.overlay
6507
- }
6508
- }
6509
- }
6510
- },
6511
- withTiming: Animated.withTiming,
6512
- visible,
6513
- Easing: {
6514
- bezier: Animated.Easing.bezier
6515
- }
6259
+ easing: Animated.Easing.bezier(x1, y1, x2, y2)
6260
+ })
6516
6261
  };
6517
- _f.asString = "function _f(){const{theme,withTiming,visible,Easing}=jsThis._closure;{const{duration:duration,easing:easing}=theme.kitt.fullscreenModal.animation.overlay;const[x1,y1,x2,y2]=easing;return{opacity:withTiming(visible?1:0,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)})};}}";
6518
- _f.__workletHash = 7884472191878;
6519
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/FullscreenModal/components/NativeOpacityAnimation.tsx (14:40)";
6520
- _f.__optimalization = 2;
6521
- return _f;
6522
- }());
6262
+ });
6523
6263
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
6524
6264
  style: [reactNative.StyleSheet.absoluteFillObject, opacityStyle],
6525
6265
  children: children
@@ -6546,59 +6286,24 @@ function NativeSlideInAnimation({
6546
6286
  // Since animation callback is called on component mount, we must make sure that the animation has been runed once to call it an exit
6547
6287
  if (!visible && hasRunAnimationRef.current) onExited();
6548
6288
  }
6549
- const translateStyle = Animated.useAnimatedStyle(function () {
6550
- const _f = function () {
6551
- const {
6552
- duration,
6553
- easing
6554
- } = theme.kitt.fullscreenModal.animation.content;
6555
- const [x1, y1, x2, y2] = easing;
6556
- return {
6557
- transform: [{
6558
- translateY: Animated.withTiming(visible ? 0 : wHeight, {
6559
- duration,
6560
- easing: Animated.Easing.bezier(x1, y1, x2, y2)
6561
- }, function () {
6562
- const _f = function (isFinished) {
6563
- if (!isFinished) return;
6564
- Animated.runOnJS(handleAnimationFinished)();
6565
- };
6566
- _f._closure = {
6567
- runOnJS: Animated.runOnJS,
6568
- handleAnimationFinished
6569
- };
6570
- _f.asString = "function _f(isFinished){const{runOnJS,handleAnimationFinished}=jsThis._closure;{if(!isFinished)return;runOnJS(handleAnimationFinished)();}}";
6571
- _f.__workletHash = 14707844242190;
6572
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/FullscreenModal/components/NativeSlideInAnimation.tsx (45:12)";
6573
- return _f;
6574
- }())
6575
- }]
6576
- };
6577
- };
6578
- _f._closure = {
6579
- theme: {
6580
- kitt: {
6581
- fullscreenModal: {
6582
- animation: {
6583
- content: theme.kitt.fullscreenModal.animation.content
6584
- }
6585
- }
6586
- }
6587
- },
6588
- withTiming: Animated.withTiming,
6589
- visible,
6590
- wHeight,
6591
- Easing: {
6592
- bezier: Animated.Easing.bezier
6593
- },
6594
- runOnJS: Animated.runOnJS,
6595
- handleAnimationFinished
6289
+ const translateStyle = Animated.useAnimatedStyle(() => {
6290
+ const {
6291
+ duration,
6292
+ easing
6293
+ } = theme.kitt.fullscreenModal.animation.content;
6294
+ const [x1, y1, x2, y2] = easing;
6295
+ return {
6296
+ transform: [{
6297
+ translateY: Animated.withTiming(visible ? 0 : wHeight, {
6298
+ duration,
6299
+ easing: Animated.Easing.bezier(x1, y1, x2, y2)
6300
+ }, isFinished => {
6301
+ if (!isFinished) return;
6302
+ Animated.runOnJS(handleAnimationFinished)();
6303
+ })
6304
+ }]
6596
6305
  };
6597
- _f.asString = "function _f(){const{theme,withTiming,visible,wHeight,Easing,runOnJS,handleAnimationFinished}=jsThis._closure;{const{duration:duration,easing:easing}=theme.kitt.fullscreenModal.animation.content;const[x1,y1,x2,y2]=easing;return{transform:[{translateY:withTiming(visible?0:wHeight,{duration:duration,easing:Easing.bezier(x1,y1,x2,y2)},function(isFinished){if(!isFinished)return;runOnJS(handleAnimationFinished)();})}]};}}";
6598
- _f.__workletHash = 16793352522068;
6599
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/FullscreenModal/components/NativeSlideInAnimation.tsx (35:42)";
6600
- return _f;
6601
- }());
6306
+ });
6602
6307
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
6603
6308
  style: [{
6604
6309
  transform: [{
@@ -6908,52 +6613,18 @@ function useNativeAnimation({
6908
6613
  }) {
6909
6614
  const theme = useTheme();
6910
6615
  const pressed = Animated.useSharedValue(!!isPressed);
6911
- const opacityStyles = Animated.useAnimatedStyle(function () {
6912
- const _f = function () {
6913
- return {
6914
- opacity: Animated.withSpring(pressed.value ? 1 : 0)
6915
- };
6916
- };
6917
- _f._closure = {
6918
- withSpring: Animated.withSpring,
6919
- pressed
6920
- };
6921
- _f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
6922
- _f.__workletHash = 10645190329247;
6923
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (24:41)";
6924
- _f.__optimalization = 2;
6925
- return _f;
6926
- }());
6927
- const scaleStyles = Animated.useAnimatedStyle(function () {
6928
- const _f = function () {
6929
- return {
6930
- transform: [{
6931
- scale: Animated.withSpring(pressed.value ? theme.kitt.iconButton.scale.base.active : theme.kitt.iconButton.scale.base.default)
6932
- }]
6933
- };
6616
+ const opacityStyles = Animated.useAnimatedStyle(() => {
6617
+ return {
6618
+ opacity: Animated.withSpring(pressed.value ? 1 : 0)
6934
6619
  };
6935
- _f._closure = {
6936
- withSpring: Animated.withSpring,
6937
- pressed,
6938
- theme: {
6939
- kitt: {
6940
- iconButton: {
6941
- scale: {
6942
- base: {
6943
- active: theme.kitt.iconButton.scale.base.active,
6944
- default: theme.kitt.iconButton.scale.base.default
6945
- }
6946
- }
6947
- }
6948
- }
6949
- }
6620
+ });
6621
+ const scaleStyles = Animated.useAnimatedStyle(() => {
6622
+ return {
6623
+ transform: [{
6624
+ scale: Animated.withSpring(pressed.value ? theme.kitt.iconButton.scale.base.active : theme.kitt.iconButton.scale.base.default)
6625
+ }]
6950
6626
  };
6951
- _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{transform:[{scale:withSpring(pressed.value?theme.kitt.iconButton.scale.base.active:theme.kitt.iconButton.scale.base.default)}]};}}";
6952
- _f.__workletHash = 13861998831411;
6953
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (30:39)";
6954
- _f.__optimalization = 2;
6955
- return _f;
6956
- }());
6627
+ });
6957
6628
  return {
6958
6629
  opacityStyles,
6959
6630
  scaleStyles,
@@ -6983,7 +6654,7 @@ function IconButton({
6983
6654
  color = 'black',
6984
6655
  disabled,
6985
6656
  testID,
6986
- accessibilityLabel,
6657
+ ariaLabel,
6987
6658
  accessibilityRole = 'button',
6988
6659
  isHoveredInternal,
6989
6660
  isPressedInternal,
@@ -7004,14 +6675,12 @@ function IconButton({
7004
6675
  disabled: disabled,
7005
6676
  width: "kitt.iconButton.width",
7006
6677
  height: "kitt.iconButton.height",
7007
- accessibilityLabel: accessibilityLabel,
6678
+ "aria-label": ariaLabel,
7008
6679
  accessibilityRole: accessibilityRole,
7009
6680
  _web: {
7010
6681
  style: {
7011
6682
  backfaceVisibility: 'hidden',
7012
- transform: [{
7013
- translate3d: '0'
7014
- }]
6683
+ transform: 'translate3d(0px)'
7015
6684
  }
7016
6685
  },
7017
6686
  borderRadius: "kitt.iconButton.borderRadius",
@@ -9288,21 +8957,11 @@ function AnimatedLoaderCircle({
9288
8957
  } = theme.kitt.pageLoader;
9289
8958
  const centerCoord = size * 0.5;
9290
8959
  const circlePerimeter = 2 * Math.PI * (size * 0.5 - strokeWidth);
9291
- const strokeAnimation = Animated.useAnimatedProps(function () {
9292
- const _f = function () {
9293
- return {
9294
- strokeDashoffset: circlePerimeter - circlePerimeter * progress.value
9295
- };
9296
- };
9297
- _f._closure = {
9298
- circlePerimeter,
9299
- progress
8960
+ const strokeAnimation = Animated.useAnimatedProps(() => {
8961
+ return {
8962
+ strokeDashoffset: circlePerimeter - circlePerimeter * progress.value
9300
8963
  };
9301
- _f.asString = "function _f(){const{circlePerimeter,progress}=jsThis._closure;{return{strokeDashoffset:circlePerimeter-circlePerimeter*progress.value};}}";
9302
- _f.__workletHash = 1345639818356;
9303
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/PageLoader/AnimatedLoaderCircle.tsx (23:43)";
9304
- return _f;
9305
- }());
8964
+ });
9306
8965
  return /*#__PURE__*/jsxRuntime.jsx(AnimatedCircle, {
9307
8966
  "transform-origin": "center center",
9308
8967
  strokeWidth: strokeWidth,
@@ -9367,23 +9026,13 @@ function AnimatedFillCircleContainer({
9367
9026
  easing: Animated.Easing.linear
9368
9027
  }), isInfinitAnimation$1));
9369
9028
  }, [progress, animation, duration]);
9370
- const rotationStyles = Animated.useAnimatedStyle(function () {
9371
- const _f = function () {
9372
- return {
9373
- transform: [{
9374
- rotate: `${360 * progress.value}deg`
9375
- }]
9376
- };
9377
- };
9378
- _f._closure = {
9379
- progress
9029
+ const rotationStyles = Animated.useAnimatedStyle(() => {
9030
+ return {
9031
+ transform: [{
9032
+ rotate: `${360 * progress.value}deg`
9033
+ }]
9380
9034
  };
9381
- _f.asString = "function _f(){const{progress}=jsThis._closure;{return{transform:[{rotate:360*progress.value+\"deg\"}]};}}";
9382
- _f.__workletHash = 16553090406738;
9383
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/PageLoader/AnimatedFillCircleContainer.tsx (36:42)";
9384
- _f.__optimalization = 3;
9385
- return _f;
9386
- }());
9035
+ });
9387
9036
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
9388
9037
  style: [reactNative.StyleSheet.absoluteFill, rotationStyles],
9389
9038
  children: children
@@ -9731,25 +9380,13 @@ function SkeletonContent({
9731
9380
  }), -1);
9732
9381
  }
9733
9382
  }, [sharedX, width, isLoading, theme]);
9734
- const linearGradientStyle = Animated.useAnimatedStyle(function () {
9735
- const _f = function () {
9736
- return {
9737
- transform: [{
9738
- translateX: Animated.interpolate(sharedX.value, [0, 1], [-width, width])
9739
- }]
9740
- };
9741
- };
9742
- _f._closure = {
9743
- interpolate: Animated.interpolate,
9744
- sharedX,
9745
- width
9383
+ const linearGradientStyle = Animated.useAnimatedStyle(() => {
9384
+ return {
9385
+ transform: [{
9386
+ translateX: Animated.interpolate(sharedX.value, [0, 1], [-width, width])
9387
+ }]
9746
9388
  };
9747
- _f.asString = "function _f(){const{interpolate,sharedX,width}=jsThis._closure;{return{transform:[{translateX:interpolate(sharedX.value,[0,1],[-width,width])}]};}}";
9748
- _f.__workletHash = 1670955855244;
9749
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Skeleton/SkeletonContent.tsx (36:47)";
9750
- _f.__optimalization = 3;
9751
- return _f;
9752
- }());
9389
+ });
9753
9390
  return /*#__PURE__*/jsxRuntime.jsx(View, {
9754
9391
  height: "100%",
9755
9392
  width: "100%",
@@ -10623,9 +10260,6 @@ const Arrow = /*#__PURE__*/React.forwardRef(({
10623
10260
  display
10624
10261
  }, ref) => {
10625
10262
  const theme = useTheme();
10626
- const transformStyle = [{
10627
- rotate: position === 'bottom' ? '180deg' : '0deg'
10628
- }];
10629
10263
  return /*#__PURE__*/jsxRuntime.jsx(View, {
10630
10264
  ref: ref,
10631
10265
  display: display || {
@@ -10637,7 +10271,7 @@ const Arrow = /*#__PURE__*/React.forwardRef(({
10637
10271
  left: left,
10638
10272
  top: top,
10639
10273
  style: {
10640
- transform: transformStyle
10274
+ transform: `rotate(${position === 'bottom' ? '180deg' : '0deg'})`
10641
10275
  },
10642
10276
  children: /*#__PURE__*/jsxRuntime.jsx(SvgArrowinline, {
10643
10277
  color: theme.kitt.tooltip.backgroundColor,
@@ -10745,32 +10379,14 @@ function Tooltip({
10745
10379
  const [floatingWidth, setFloatingWidth] = React.useState(undefined);
10746
10380
  const pressableRectRef = React.useRef(undefined);
10747
10381
  const pressed = Animated.useSharedValue(defaultVisible);
10748
- const animatedStyles = Animated.useAnimatedStyle(function () {
10749
- const _f = function () {
10750
- return {
10751
- opacity: Animated.withSpring(pressed.value ? theme.kitt.tooltip.opacity : 0),
10752
- transform: [{
10753
- scale: Animated.withSpring(pressed.value ? 1 : 0.8)
10754
- }]
10755
- };
10756
- };
10757
- _f._closure = {
10758
- withSpring: Animated.withSpring,
10759
- pressed,
10760
- theme: {
10761
- kitt: {
10762
- tooltip: {
10763
- opacity: theme.kitt.tooltip.opacity
10764
- }
10765
- }
10766
- }
10382
+ const animatedStyles = Animated.useAnimatedStyle(() => {
10383
+ return {
10384
+ opacity: Animated.withSpring(pressed.value ? theme.kitt.tooltip.opacity : 0),
10385
+ transform: [{
10386
+ scale: Animated.withSpring(pressed.value ? 1 : 0.8)
10387
+ }]
10767
10388
  };
10768
- _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{opacity:withSpring(pressed.value?theme.kitt.tooltip.opacity:0),transform:[{scale:withSpring(pressed.value?1:0.8)}]};}}";
10769
- _f.__workletHash = 1087298059737;
10770
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (112:42)";
10771
- _f.__optimalization = 2;
10772
- return _f;
10773
- }());
10389
+ });
10774
10390
  const {
10775
10391
  x,
10776
10392
  y,
@@ -10936,7 +10552,6 @@ function TypographyEmoji({
10936
10552
  emoji: emoji,
10937
10553
  alignSelf: "center",
10938
10554
  _web: {
10939
- // @ts-expect-error -- transform expects number, but string works on web
10940
10555
  style: {
10941
10556
  transform: 'translateY(20%)'
10942
10557
  },