@ornikar/kitt-universal 32.2.1-canary.b6a558c2a534e5d22cad1dfac7725ddeca489e44.0 → 32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.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 (47) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  3. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  4. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +2 -1
  5. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
  6. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +0 -14
  7. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  8. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  9. package/dist/index-metro.es.android.js +94 -76
  10. package/dist/index-metro.es.android.js.map +1 -1
  11. package/dist/index-metro.es.ios.js +94 -76
  12. package/dist/index-metro.es.ios.js.map +1 -1
  13. package/dist/index-node-22.17.cjs.js +94 -76
  14. package/dist/index-node-22.17.cjs.js.map +1 -1
  15. package/dist/index-node-22.17.cjs.web.css +38 -9
  16. package/dist/index-node-22.17.cjs.web.js +161 -135
  17. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  18. package/dist/index-node-22.17.es.mjs +94 -76
  19. package/dist/index-node-22.17.es.mjs.map +1 -1
  20. package/dist/index-node-22.17.es.web.css +38 -9
  21. package/dist/index-node-22.17.es.web.mjs +161 -135
  22. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  23. package/dist/index.es.js +97 -78
  24. package/dist/index.es.js.map +1 -1
  25. package/dist/index.es.web.js +162 -135
  26. package/dist/index.es.web.js.map +1 -1
  27. package/dist/linaria-themes-metro.es.android.js +34 -39
  28. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  29. package/dist/linaria-themes-metro.es.ios.js +34 -39
  30. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  31. package/dist/linaria-themes-node-22.17.cjs.js +34 -39
  32. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  33. package/dist/linaria-themes-node-22.17.cjs.web.js +34 -39
  34. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  35. package/dist/linaria-themes-node-22.17.es.mjs +34 -39
  36. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  37. package/dist/linaria-themes-node-22.17.es.web.mjs +34 -39
  38. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  39. package/dist/linaria-themes.es.js +34 -39
  40. package/dist/linaria-themes.es.js.map +1 -1
  41. package/dist/linaria-themes.es.web.js +34 -39
  42. package/dist/linaria-themes.es.web.js.map +1 -1
  43. package/dist/styles.css +38 -9
  44. package/dist/tsbuildinfo +1 -1
  45. package/package.json +1 -1
  46. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +0 -4
  47. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +0 -1
@@ -860,15 +860,15 @@ const card = {
860
860
  }
861
861
  };
862
862
 
863
- const webAnimationContentDuration$2 = 400;
864
- const webAnimationContentEasing$2 = {
863
+ const webAnimationContentDuration$1 = 400;
864
+ const webAnimationContentEasing$1 = {
865
865
  x1: 0.77,
866
866
  y1: 0,
867
867
  x2: 0.175,
868
868
  y2: 1
869
869
  };
870
- const webAnimationOverlayDuration$2 = 250;
871
- const webAnimationOverlayEasing$2 = {
870
+ const webAnimationOverlayDuration$1 = 250;
871
+ const webAnimationOverlayEasing$1 = {
872
872
  x1: 0.42,
873
873
  y1: 0,
874
874
  x2: 1,
@@ -903,12 +903,12 @@ const cardModal = {
903
903
  },
904
904
  animation: {
905
905
  overlay: {
906
- duration: webAnimationOverlayDuration$2,
907
- easing: webAnimationOverlayEasing$2
906
+ duration: webAnimationOverlayDuration$1,
907
+ easing: webAnimationOverlayEasing$1
908
908
  },
909
909
  content: {
910
- duration: webAnimationContentDuration$2,
911
- easing: webAnimationContentEasing$2
910
+ duration: webAnimationContentDuration$1,
911
+ easing: webAnimationContentEasing$1
912
912
  }
913
913
  }
914
914
  };
@@ -964,15 +964,15 @@ const choices = {
964
964
  }
965
965
  };
966
966
 
967
- const webAnimationContentDuration$1 = 400;
968
- const webAnimationContentEasing$1 = {
967
+ const webAnimationContentDuration = 400;
968
+ const webAnimationContentEasing = {
969
969
  x1: 0.77,
970
970
  y1: 0,
971
971
  x2: 0.175,
972
972
  y2: 1
973
973
  };
974
- const webAnimationOverlayDuration$1 = 250;
975
- const webAnimationOverlayEasing$1 = {
974
+ const webAnimationOverlayDuration = 250;
975
+ const webAnimationOverlayEasing = {
976
976
  x1: 0.42,
977
977
  y1: 0,
978
978
  x2: 1,
@@ -994,12 +994,12 @@ const dialogModal = {
994
994
  },
995
995
  animation: {
996
996
  overlay: {
997
- duration: webAnimationOverlayDuration$1,
998
- easing: webAnimationOverlayEasing$1
997
+ duration: webAnimationOverlayDuration,
998
+ easing: webAnimationOverlayEasing
999
999
  },
1000
1000
  content: {
1001
- duration: webAnimationContentDuration$1,
1002
- easing: webAnimationContentEasing$1
1001
+ duration: webAnimationContentDuration,
1002
+ easing: webAnimationContentEasing
1003
1003
  }
1004
1004
  }
1005
1005
  };
@@ -1057,10 +1057,10 @@ const autocomplete = {
1057
1057
  };
1058
1058
 
1059
1059
  const checkbox = {
1060
- borderWidth: 1,
1061
- borderRadius: 4,
1062
- height: 24,
1063
- width: 24,
1060
+ borderWidth: 2,
1061
+ borderRadius: 5,
1062
+ height: 20,
1063
+ width: 20,
1064
1064
  iconSize: 14,
1065
1065
  markColor: colors.uiBackgroundLight,
1066
1066
  textSpacing: 10,
@@ -1123,7 +1123,6 @@ const inputStatesStyle = {
1123
1123
  color: deepPurpleColorPalette.black
1124
1124
  },
1125
1125
  hover: {
1126
- backgroundColor: deepPurpleColorPalette['beige.1'],
1127
1126
  borderColor: deepPurpleColorPalette['beige.4'],
1128
1127
  color: deepPurpleColorPalette.black
1129
1128
  },
@@ -1908,20 +1907,6 @@ const forms = {
1908
1907
  timePicker
1909
1908
  };
1910
1909
 
1911
- const webAnimationContentDuration = 600;
1912
- const webAnimationContentEasing = {
1913
- x1: 0.77,
1914
- y1: 0,
1915
- x2: 0.175,
1916
- y2: 1
1917
- };
1918
- const webAnimationOverlayDuration = 250;
1919
- const webAnimationOverlayEasing = {
1920
- x1: 0.42,
1921
- y1: 0,
1922
- x2: 1,
1923
- y2: 1
1924
- };
1925
1910
  const fullscreenModal = {
1926
1911
  header: {
1927
1912
  height: 56
@@ -1935,12 +1920,22 @@ const fullscreenModal = {
1935
1920
  },
1936
1921
  animation: {
1937
1922
  overlay: {
1938
- duration: webAnimationOverlayDuration,
1939
- easing: webAnimationOverlayEasing
1923
+ duration: 250,
1924
+ easing: {
1925
+ x1: 0.42,
1926
+ y1: 0,
1927
+ x2: 1,
1928
+ y2: 1
1929
+ }
1940
1930
  },
1941
1931
  content: {
1942
- duration: webAnimationContentDuration,
1943
- easing: webAnimationContentEasing
1932
+ duration: 600,
1933
+ easing: {
1934
+ x1: 0.77,
1935
+ y1: 0,
1936
+ x2: 0.175,
1937
+ y2: 1
1938
+ }
1944
1939
  }
1945
1940
  }
1946
1941
  };
@@ -5530,11 +5525,29 @@ function InputPressable(_ref) {
5530
5525
  }
5531
5526
 
5532
5527
  function InputTextContainer({
5533
- children
5528
+ children,
5529
+ isHovered
5534
5530
  }) {
5535
- return /*#__PURE__*/jsx(View, {
5536
- position: "relative",
5537
- children: children
5531
+ const theme = useTheme();
5532
+ const sx = useSx();
5533
+ const styles = sx({
5534
+ borderRadius: input.borderRadius
5535
+ });
5536
+ const animatedBackground = useAnimatedStyle(() => {
5537
+ const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5538
+ const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5539
+ return {
5540
+ backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5541
+ duration: 200
5542
+ })
5543
+ };
5544
+ }, [isHovered, theme]);
5545
+ return /*#__PURE__*/jsx(Animated.View, {
5546
+ style: [styles, animatedBackground],
5547
+ children: /*#__PURE__*/jsx(View, {
5548
+ position: "relative",
5549
+ children: children
5550
+ })
5538
5551
  });
5539
5552
  }
5540
5553
 
@@ -5561,39 +5574,44 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
5561
5574
  base: 'body-m'
5562
5575
  });
5563
5576
  const shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
5564
- return /*#__PURE__*/jsxs(InputTextContainer, {
5565
- children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5566
- ref: ref,
5567
- multiline: multiline,
5568
- id: id,
5569
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5570
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5571
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5572
- inputMode: inputMode,
5573
- autoComplete: autoComplete,
5574
- autoCorrect: autoCorrect,
5575
- textContentType: textContentType,
5576
- fontSize: fontSizeForNativeBase,
5577
- lineHeight:
5578
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5579
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5580
- shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5581
- fontWeight: "bodies.regular",
5582
- fontFamily: "bodies.regular",
5583
- py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5584
- variant: variant
5585
- }, props), {}, {
5586
- height: multiline ? height : 'kitt.forms.input.minHeight',
5587
- onSubmitEditing: multiline ? () => null : onSubmitEditing
5588
- })), right ? /*#__PURE__*/jsx(View, {
5589
- position: "absolute",
5590
- right: 0,
5591
- top: 0,
5592
- bottom: 0,
5593
- justifyContent: "center",
5594
- padding: theme.kitt.forms.input.rightContainer.padding,
5595
- children: right
5596
- }) : null]
5577
+ return /*#__PURE__*/jsx(Pressable, {
5578
+ children: ({
5579
+ isHovered
5580
+ }) => /*#__PURE__*/jsxs(InputTextContainer, {
5581
+ isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5582
+ children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5583
+ ref: ref,
5584
+ multiline: multiline,
5585
+ id: id,
5586
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5587
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5588
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5589
+ inputMode: inputMode,
5590
+ autoComplete: autoComplete,
5591
+ autoCorrect: autoCorrect,
5592
+ textContentType: textContentType,
5593
+ fontSize: fontSizeForNativeBase,
5594
+ lineHeight:
5595
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5596
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5597
+ shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5598
+ fontWeight: "bodies.regular",
5599
+ fontFamily: "bodies.regular",
5600
+ py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5601
+ variant: variant
5602
+ }, props), {}, {
5603
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5604
+ onSubmitEditing: multiline ? () => null : onSubmitEditing
5605
+ })), right ? /*#__PURE__*/jsx(View, {
5606
+ position: "absolute",
5607
+ right: 0,
5608
+ top: 0,
5609
+ bottom: 0,
5610
+ justifyContent: "center",
5611
+ padding: theme.kitt.forms.input.rightContainer.padding,
5612
+ children: right
5613
+ }) : null]
5614
+ })
5597
5615
  });
5598
5616
  });
5599
5617