@ornikar/kitt-universal 32.3.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 (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  3. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +2 -1
  4. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
  5. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  6. package/dist/index-metro.es.android.js +60 -38
  7. package/dist/index-metro.es.android.js.map +1 -1
  8. package/dist/index-metro.es.ios.js +60 -38
  9. package/dist/index-metro.es.ios.js.map +1 -1
  10. package/dist/index-node-22.17.cjs.js +60 -38
  11. package/dist/index-node-22.17.cjs.js.map +1 -1
  12. package/dist/index-node-22.17.cjs.web.css +0 -1
  13. package/dist/index-node-22.17.cjs.web.js +62 -39
  14. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  15. package/dist/index-node-22.17.es.mjs +60 -38
  16. package/dist/index-node-22.17.es.mjs.map +1 -1
  17. package/dist/index-node-22.17.es.web.css +0 -1
  18. package/dist/index-node-22.17.es.web.mjs +62 -39
  19. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  20. package/dist/index.es.js +63 -40
  21. package/dist/index.es.js.map +1 -1
  22. package/dist/index.es.web.js +65 -41
  23. package/dist/index.es.web.js.map +1 -1
  24. package/dist/linaria-themes-metro.es.android.js +0 -1
  25. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  26. package/dist/linaria-themes-metro.es.ios.js +0 -1
  27. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  28. package/dist/linaria-themes-node-22.17.cjs.js +0 -1
  29. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  30. package/dist/linaria-themes-node-22.17.cjs.web.js +0 -1
  31. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  32. package/dist/linaria-themes-node-22.17.es.mjs +0 -1
  33. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  34. package/dist/linaria-themes-node-22.17.es.web.mjs +0 -1
  35. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  36. package/dist/linaria-themes.es.js +0 -1
  37. package/dist/linaria-themes.es.js.map +1 -1
  38. package/dist/linaria-themes.es.web.js +0 -1
  39. package/dist/linaria-themes.es.web.js.map +1 -1
  40. package/dist/styles.css +0 -1
  41. package/dist/tsbuildinfo +1 -1
  42. package/package.json +1 -1
  43. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +0 -4
  44. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@32.3.0...@ornikar/kitt-universal@32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.0) (2025-12-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * deleted web only version ([1be7cd6](https://github.com/ornikar/kitt/commit/1be7cd6cfd53fd51f336e900488f437e52401b67))
12
+ * replaced with universal version ([8d4925f](https://github.com/ornikar/kitt/commit/8d4925ff832fc7b52dd19136aed67262a952f896))
13
+ * updated snapshots ([282229f](https://github.com/ornikar/kitt/commit/282229fbcb79b0e70662d8927eccac40f40e40d3))
14
+
15
+
16
+
6
17
  ## [32.3.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@32.2.0...@ornikar/kitt-universal@32.3.0) (2025-12-11)
7
18
 
8
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"InputText.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputText.tsx"],"names":[],"mappings":"AACA,OA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AU,CAAC;AAG7D,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,gBAAgB,EAAE,IAAI,CAAC;IACpE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,eAAe,CAAC,SAAS,GAAG,UAAU,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,YAAY,CAAC;CACnC;AAED,eAAO,MAAM,SAAS,wGAsErB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
2
  export interface InputTextContainerProps {
3
3
  children: NonNullable<ReactNode>;
4
+ isHovered?: boolean;
4
5
  }
5
- export declare function InputTextContainer({ children }: InputTextContainerProps): ReactNode;
6
+ export declare function InputTextContainer({ children, isHovered }: InputTextContainerProps): ReactNode;
6
7
  //# sourceMappingURL=InputTextContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputTextContainer.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputTextContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC;AAED,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE,uBAAuB,GAAG,SAAS,CAEnF"}
1
+ {"version":3,"file":"InputTextContainer.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputTextContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,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AAO,MAAM,sBAAsB,UAAuC,CAAC;AAE3E,eAAO,MAAM,KAAK,EAAE,UAwBnB,CAAC"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;AAqCpE,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,OAAO,EAAE;QACP,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,cAAc,EAAE;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAC5C,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AACxD,eAAO,MAAM,sBAAsB,UAAuC,CAAC;AAE3E,eAAO,MAAM,KAAK,EAAE,UAwBnB,CAAC"}
@@ -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
  },
@@ -5526,11 +5525,29 @@ function InputPressable(_ref) {
5526
5525
  }
5527
5526
 
5528
5527
  function InputTextContainer({
5529
- children
5528
+ children,
5529
+ isHovered
5530
5530
  }) {
5531
- return /*#__PURE__*/jsx(View, {
5532
- position: "relative",
5533
- 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
+ })
5534
5551
  });
5535
5552
  }
5536
5553
 
@@ -5557,39 +5574,44 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
5557
5574
  base: 'body-m'
5558
5575
  });
5559
5576
  const shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
5560
- return /*#__PURE__*/jsxs(InputTextContainer, {
5561
- children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5562
- ref: ref,
5563
- multiline: multiline,
5564
- id: id,
5565
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5566
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5567
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5568
- inputMode: inputMode,
5569
- autoComplete: autoComplete,
5570
- autoCorrect: autoCorrect,
5571
- textContentType: textContentType,
5572
- fontSize: fontSizeForNativeBase,
5573
- lineHeight:
5574
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5575
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5576
- shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5577
- fontWeight: "bodies.regular",
5578
- fontFamily: "bodies.regular",
5579
- py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5580
- variant: variant
5581
- }, props), {}, {
5582
- height: multiline ? height : 'kitt.forms.input.minHeight',
5583
- onSubmitEditing: multiline ? () => null : onSubmitEditing
5584
- })), right ? /*#__PURE__*/jsx(View, {
5585
- position: "absolute",
5586
- right: 0,
5587
- top: 0,
5588
- bottom: 0,
5589
- justifyContent: "center",
5590
- padding: theme.kitt.forms.input.rightContainer.padding,
5591
- children: right
5592
- }) : 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
+ })
5593
5615
  });
5594
5616
  });
5595
5617