@ornikar/kitt-universal 32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.0 → 32.3.1-canary.6b90c05af1040921f0d857fd4a69c684619f4975.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 (46) hide show
  1. package/CHANGELOG.md +3 -5
  2. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  3. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +1 -2
  4. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
  5. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +4 -0
  6. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -0
  7. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  8. package/dist/definitions/typography/Typography.d.ts +1 -1
  9. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  10. package/dist/index-metro.es.android.js +38 -60
  11. package/dist/index-metro.es.android.js.map +1 -1
  12. package/dist/index-metro.es.ios.js +38 -60
  13. package/dist/index-metro.es.ios.js.map +1 -1
  14. package/dist/index-node-22.17.cjs.js +38 -60
  15. package/dist/index-node-22.17.cjs.js.map +1 -1
  16. package/dist/index-node-22.17.cjs.web.css +1 -0
  17. package/dist/index-node-22.17.cjs.web.js +39 -62
  18. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  19. package/dist/index-node-22.17.es.mjs +38 -60
  20. package/dist/index-node-22.17.es.mjs.map +1 -1
  21. package/dist/index-node-22.17.es.web.css +1 -0
  22. package/dist/index-node-22.17.es.web.mjs +39 -62
  23. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  24. package/dist/index.es.js +40 -63
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.es.web.js +41 -65
  27. package/dist/index.es.web.js.map +1 -1
  28. package/dist/linaria-themes-metro.es.android.js +1 -0
  29. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  30. package/dist/linaria-themes-metro.es.ios.js +1 -0
  31. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  32. package/dist/linaria-themes-node-22.17.cjs.js +1 -0
  33. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  34. package/dist/linaria-themes-node-22.17.cjs.web.js +1 -0
  35. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  36. package/dist/linaria-themes-node-22.17.es.mjs +1 -0
  37. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  38. package/dist/linaria-themes-node-22.17.es.web.mjs +1 -0
  39. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  40. package/dist/linaria-themes.es.js +1 -0
  41. package/dist/linaria-themes.es.js.map +1 -1
  42. package/dist/linaria-themes.es.web.js +1 -0
  43. package/dist/linaria-themes.es.web.js.map +1 -1
  44. package/dist/styles.css +1 -0
  45. package/dist/tsbuildinfo +1 -1
  46. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1138,6 +1138,7 @@ var inputStatesStyle = {
1138
1138
  color: deepPurpleColorPalette.black
1139
1139
  },
1140
1140
  hover: {
1141
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1141
1142
  borderColor: deepPurpleColorPalette['beige.4'],
1142
1143
  color: deepPurpleColorPalette.black
1143
1144
  },
@@ -5623,28 +5624,10 @@ function InputPressable(_ref) {
5623
5624
  }
5624
5625
 
5625
5626
  function InputTextContainer(_ref) {
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
- })
5627
+ var children = _ref.children;
5628
+ return /*#__PURE__*/jsx(View, {
5629
+ position: "relative",
5630
+ children: children
5648
5631
  });
5649
5632
  }
5650
5633
 
@@ -5675,47 +5658,41 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5675
5658
  base: 'body-m'
5676
5659
  });
5677
5660
  var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
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
- }
5661
+ return /*#__PURE__*/jsxs(InputTextContainer, {
5662
+ children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5663
+ ref: ref,
5664
+ multiline: multiline,
5665
+ id: id,
5666
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5667
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5668
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5669
+ inputMode: inputMode,
5670
+ autoComplete: autoComplete,
5671
+ autoCorrect: autoCorrect,
5672
+ textContentType: textContentType,
5673
+ fontSize: fontSizeForNativeBase,
5674
+ lineHeight:
5675
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5676
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5677
+ shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5678
+ fontWeight: "bodies.regular",
5679
+ fontFamily: "bodies.regular",
5680
+ py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5681
+ variant: variant
5682
+ }, props), {}, {
5683
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5684
+ onSubmitEditing: multiline ? function () {
5685
+ return null;
5686
+ } : onSubmitEditing
5687
+ })), right ? /*#__PURE__*/jsx(View, {
5688
+ position: "absolute",
5689
+ right: 0,
5690
+ top: 0,
5691
+ bottom: 0,
5692
+ justifyContent: "center",
5693
+ padding: theme.kitt.forms.input.rightContainer.padding,
5694
+ children: right
5695
+ }) : null]
5719
5696
  });
5720
5697
  });
5721
5698