@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
@@ -6,7 +6,6 @@
6
6
  .kitt-u_opacityEnterActive_o1t4vl7b{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
7
7
  .kitt-u_opacityExit_ogyytm1{opacity:1;}
8
8
  .kitt-u_opacityExitActive_o18xvk52{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
9
- .kitt-u_inputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_inputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_inputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_inputTextContainer_i1encr9g > *{-webkit-transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;}
10
9
  /* Overlay animation styles - uses CSS variables for theme values */
11
10
  .FullscreenModalAnimation-module_overlay-enter__L1J1X {
12
11
  opacity: 0;
@@ -1127,7 +1127,6 @@ const inputStatesStyle = {
1127
1127
  color: deepPurpleColorPalette.black
1128
1128
  },
1129
1129
  hover: {
1130
- backgroundColor: deepPurpleColorPalette['beige.1'],
1131
1130
  borderColor: deepPurpleColorPalette['beige.4'],
1132
1131
  color: deepPurpleColorPalette.black
1133
1132
  },
@@ -5369,11 +5368,30 @@ function InputPressable({
5369
5368
  });
5370
5369
  }
5371
5370
 
5372
- const inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5373
- function InputTextContainer(props) {
5374
- return /*#__PURE__*/jsxRuntime.jsx("div", {
5375
- className: inputTextContainer,
5376
- ...props
5371
+ function InputTextContainer({
5372
+ children,
5373
+ isHovered
5374
+ }) {
5375
+ const theme = useTheme();
5376
+ const sx = nativeBase.useSx();
5377
+ const styles = sx({
5378
+ borderRadius: input.borderRadius
5379
+ });
5380
+ const animatedBackground = Animated.useAnimatedStyle(() => {
5381
+ const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5382
+ const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5383
+ return {
5384
+ backgroundColor: Animated.withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5385
+ duration: 200
5386
+ })
5387
+ };
5388
+ }, [isHovered, theme]);
5389
+ return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
5390
+ style: [styles, animatedBackground],
5391
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
5392
+ position: "relative",
5393
+ children: children
5394
+ })
5377
5395
  });
5378
5396
  }
5379
5397
 
@@ -5397,39 +5415,44 @@ const InputText = /*#__PURE__*/react.forwardRef(({
5397
5415
  const fontSizeForNativeBase = createNativeBaseFontSize({
5398
5416
  base: 'body-m'
5399
5417
  });
5400
- return /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
5401
- children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
5402
- ref: ref,
5403
- multiline: multiline,
5404
- id: id,
5405
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5406
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5407
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5408
- inputMode: inputMode,
5409
- autoComplete: autoComplete,
5410
- autoCorrect: autoCorrect,
5411
- textContentType: textContentType,
5412
- fontSize: fontSizeForNativeBase,
5413
- lineHeight:
5414
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5415
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5416
- fontSizeForNativeBase,
5417
- fontWeight: "bodies.regular",
5418
- fontFamily: "bodies.regular",
5419
- py: !multiline && "web" !== 'web' ? 0 : undefined,
5420
- variant: variant,
5421
- ...props,
5422
- height: multiline ? height : 'kitt.forms.input.minHeight',
5423
- onSubmitEditing: multiline ? () => null : onSubmitEditing
5424
- }), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
5425
- position: "absolute",
5426
- right: 0,
5427
- top: 0,
5428
- bottom: 0,
5429
- justifyContent: "center",
5430
- padding: theme.kitt.forms.input.rightContainer.padding,
5431
- children: right
5432
- }) : null]
5418
+ return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
5419
+ children: ({
5420
+ isHovered
5421
+ }) => /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
5422
+ isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5423
+ children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
5424
+ ref: ref,
5425
+ multiline: multiline,
5426
+ id: id,
5427
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5428
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5429
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5430
+ inputMode: inputMode,
5431
+ autoComplete: autoComplete,
5432
+ autoCorrect: autoCorrect,
5433
+ textContentType: textContentType,
5434
+ fontSize: fontSizeForNativeBase,
5435
+ lineHeight:
5436
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5437
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5438
+ fontSizeForNativeBase,
5439
+ fontWeight: "bodies.regular",
5440
+ fontFamily: "bodies.regular",
5441
+ py: !multiline && "web" !== 'web' ? 0 : undefined,
5442
+ variant: variant,
5443
+ ...props,
5444
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5445
+ onSubmitEditing: multiline ? () => null : onSubmitEditing
5446
+ }), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
5447
+ position: "absolute",
5448
+ right: 0,
5449
+ top: 0,
5450
+ bottom: 0,
5451
+ justifyContent: "center",
5452
+ padding: theme.kitt.forms.input.rightContainer.padding,
5453
+ children: right
5454
+ }) : null]
5455
+ })
5433
5456
  });
5434
5457
  });
5435
5458