@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
@@ -6,6 +6,7 @@
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;}
9
10
  /* Overlay animation styles - uses CSS variables for theme values */
10
11
  .FullscreenModalAnimation-module_overlay-enter__L1J1X {
11
12
  opacity: 0;
@@ -1127,6 +1127,7 @@ const inputStatesStyle = {
1127
1127
  color: deepPurpleColorPalette.black
1128
1128
  },
1129
1129
  hover: {
1130
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1130
1131
  borderColor: deepPurpleColorPalette['beige.4'],
1131
1132
  color: deepPurpleColorPalette.black
1132
1133
  },
@@ -5368,30 +5369,11 @@ function InputPressable({
5368
5369
  });
5369
5370
  }
5370
5371
 
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
- })
5372
+ const inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5373
+ function InputTextContainer(props) {
5374
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
5375
+ className: inputTextContainer,
5376
+ ...props
5395
5377
  });
5396
5378
  }
5397
5379
 
@@ -5415,44 +5397,39 @@ const InputText = /*#__PURE__*/react.forwardRef(({
5415
5397
  const fontSizeForNativeBase = createNativeBaseFontSize({
5416
5398
  base: 'body-m'
5417
5399
  });
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
- })
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]
5456
5433
  });
5457
5434
  });
5458
5435