@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
package/dist/index.es.js CHANGED
@@ -875,15 +875,15 @@ var card = {
875
875
  }
876
876
  };
877
877
 
878
- var webAnimationContentDuration$2 = 400;
879
- var webAnimationContentEasing$2 = {
878
+ var webAnimationContentDuration$1 = 400;
879
+ var webAnimationContentEasing$1 = {
880
880
  x1: 0.77,
881
881
  y1: 0,
882
882
  x2: 0.175,
883
883
  y2: 1
884
884
  };
885
- var webAnimationOverlayDuration$2 = 250;
886
- var webAnimationOverlayEasing$2 = {
885
+ var webAnimationOverlayDuration$1 = 250;
886
+ var webAnimationOverlayEasing$1 = {
887
887
  x1: 0.42,
888
888
  y1: 0,
889
889
  x2: 1,
@@ -918,12 +918,12 @@ var cardModal = {
918
918
  },
919
919
  animation: {
920
920
  overlay: {
921
- duration: webAnimationOverlayDuration$2,
922
- easing: webAnimationOverlayEasing$2
921
+ duration: webAnimationOverlayDuration$1,
922
+ easing: webAnimationOverlayEasing$1
923
923
  },
924
924
  content: {
925
- duration: webAnimationContentDuration$2,
926
- easing: webAnimationContentEasing$2
925
+ duration: webAnimationContentDuration$1,
926
+ easing: webAnimationContentEasing$1
927
927
  }
928
928
  }
929
929
  };
@@ -979,15 +979,15 @@ var choices = {
979
979
  }
980
980
  };
981
981
 
982
- var webAnimationContentDuration$1 = 400;
983
- var webAnimationContentEasing$1 = {
982
+ var webAnimationContentDuration = 400;
983
+ var webAnimationContentEasing = {
984
984
  x1: 0.77,
985
985
  y1: 0,
986
986
  x2: 0.175,
987
987
  y2: 1
988
988
  };
989
- var webAnimationOverlayDuration$1 = 250;
990
- var webAnimationOverlayEasing$1 = {
989
+ var webAnimationOverlayDuration = 250;
990
+ var webAnimationOverlayEasing = {
991
991
  x1: 0.42,
992
992
  y1: 0,
993
993
  x2: 1,
@@ -1009,12 +1009,12 @@ var dialogModal = {
1009
1009
  },
1010
1010
  animation: {
1011
1011
  overlay: {
1012
- duration: webAnimationOverlayDuration$1,
1013
- easing: webAnimationOverlayEasing$1
1012
+ duration: webAnimationOverlayDuration,
1013
+ easing: webAnimationOverlayEasing
1014
1014
  },
1015
1015
  content: {
1016
- duration: webAnimationContentDuration$1,
1017
- easing: webAnimationContentEasing$1
1016
+ duration: webAnimationContentDuration,
1017
+ easing: webAnimationContentEasing
1018
1018
  }
1019
1019
  }
1020
1020
  };
@@ -1072,10 +1072,10 @@ var autocomplete = {
1072
1072
  };
1073
1073
 
1074
1074
  var checkbox = {
1075
- borderWidth: 1,
1076
- borderRadius: 4,
1077
- height: 24,
1078
- width: 24,
1075
+ borderWidth: 2,
1076
+ borderRadius: 5,
1077
+ height: 20,
1078
+ width: 20,
1079
1079
  iconSize: 14,
1080
1080
  markColor: colors.uiBackgroundLight,
1081
1081
  textSpacing: 10,
@@ -1138,7 +1138,6 @@ var inputStatesStyle = {
1138
1138
  color: deepPurpleColorPalette.black
1139
1139
  },
1140
1140
  hover: {
1141
- backgroundColor: deepPurpleColorPalette['beige.1'],
1142
1141
  borderColor: deepPurpleColorPalette['beige.4'],
1143
1142
  color: deepPurpleColorPalette.black
1144
1143
  },
@@ -1923,20 +1922,6 @@ var forms = {
1923
1922
  timePicker: timePicker
1924
1923
  };
1925
1924
 
1926
- var webAnimationContentDuration = 600;
1927
- var webAnimationContentEasing = {
1928
- x1: 0.77,
1929
- y1: 0,
1930
- x2: 0.175,
1931
- y2: 1
1932
- };
1933
- var webAnimationOverlayDuration = 250;
1934
- var webAnimationOverlayEasing = {
1935
- x1: 0.42,
1936
- y1: 0,
1937
- x2: 1,
1938
- y2: 1
1939
- };
1940
1925
  var fullscreenModal = {
1941
1926
  header: {
1942
1927
  height: 56
@@ -1950,12 +1935,22 @@ var fullscreenModal = {
1950
1935
  },
1951
1936
  animation: {
1952
1937
  overlay: {
1953
- duration: webAnimationOverlayDuration,
1954
- easing: webAnimationOverlayEasing
1938
+ duration: 250,
1939
+ easing: {
1940
+ x1: 0.42,
1941
+ y1: 0,
1942
+ x2: 1,
1943
+ y2: 1
1944
+ }
1955
1945
  },
1956
1946
  content: {
1957
- duration: webAnimationContentDuration,
1958
- easing: webAnimationContentEasing
1947
+ duration: 600,
1948
+ easing: {
1949
+ x1: 0.77,
1950
+ y1: 0,
1951
+ x2: 0.175,
1952
+ y2: 1
1953
+ }
1959
1954
  }
1960
1955
  }
1961
1956
  };
@@ -5628,10 +5623,28 @@ function InputPressable(_ref) {
5628
5623
  }
5629
5624
 
5630
5625
  function InputTextContainer(_ref) {
5631
- var children = _ref.children;
5632
- return /*#__PURE__*/jsx(View, {
5633
- position: "relative",
5634
- children: children
5626
+ var children = _ref.children,
5627
+ isHovered = _ref.isHovered;
5628
+ var theme = useTheme();
5629
+ var sx = useSx();
5630
+ var styles = sx({
5631
+ borderRadius: input.borderRadius
5632
+ });
5633
+ var animatedBackground = useAnimatedStyle(function () {
5634
+ var baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5635
+ var hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5636
+ return {
5637
+ backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5638
+ duration: 200
5639
+ })
5640
+ };
5641
+ }, [isHovered, theme]);
5642
+ return /*#__PURE__*/jsx(Animated.View, {
5643
+ style: [styles, animatedBackground],
5644
+ children: /*#__PURE__*/jsx(View, {
5645
+ position: "relative",
5646
+ children: children
5647
+ })
5635
5648
  });
5636
5649
  }
5637
5650
 
@@ -5662,41 +5675,47 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5662
5675
  base: 'body-m'
5663
5676
  });
5664
5677
  var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
5665
- return /*#__PURE__*/jsxs(InputTextContainer, {
5666
- children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5667
- ref: ref,
5668
- multiline: multiline,
5669
- id: id,
5670
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5671
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5672
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5673
- inputMode: inputMode,
5674
- autoComplete: autoComplete,
5675
- autoCorrect: autoCorrect,
5676
- textContentType: textContentType,
5677
- fontSize: fontSizeForNativeBase,
5678
- lineHeight:
5679
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5680
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5681
- shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5682
- fontWeight: "bodies.regular",
5683
- fontFamily: "bodies.regular",
5684
- py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5685
- variant: variant
5686
- }, props), {}, {
5687
- height: multiline ? height : 'kitt.forms.input.minHeight',
5688
- onSubmitEditing: multiline ? function () {
5689
- return null;
5690
- } : onSubmitEditing
5691
- })), right ? /*#__PURE__*/jsx(View, {
5692
- position: "absolute",
5693
- right: 0,
5694
- top: 0,
5695
- bottom: 0,
5696
- justifyContent: "center",
5697
- padding: theme.kitt.forms.input.rightContainer.padding,
5698
- children: right
5699
- }) : null]
5678
+ return /*#__PURE__*/jsx(Pressable, {
5679
+ children: function (_ref2) {
5680
+ var isHovered = _ref2.isHovered;
5681
+ return /*#__PURE__*/jsxs(InputTextContainer, {
5682
+ isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5683
+ children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5684
+ ref: ref,
5685
+ multiline: multiline,
5686
+ id: id,
5687
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5688
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5689
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5690
+ inputMode: inputMode,
5691
+ autoComplete: autoComplete,
5692
+ autoCorrect: autoCorrect,
5693
+ textContentType: textContentType,
5694
+ fontSize: fontSizeForNativeBase,
5695
+ lineHeight:
5696
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5697
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5698
+ shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5699
+ fontWeight: "bodies.regular",
5700
+ fontFamily: "bodies.regular",
5701
+ py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5702
+ variant: variant
5703
+ }, props), {}, {
5704
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5705
+ onSubmitEditing: multiline ? function () {
5706
+ return null;
5707
+ } : onSubmitEditing
5708
+ })), right ? /*#__PURE__*/jsx(View, {
5709
+ position: "absolute",
5710
+ right: 0,
5711
+ top: 0,
5712
+ bottom: 0,
5713
+ justifyContent: "center",
5714
+ padding: theme.kitt.forms.input.rightContainer.padding,
5715
+ children: right
5716
+ }) : null]
5717
+ });
5718
+ }
5700
5719
  });
5701
5720
  });
5702
5721