@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;
@@ -1118,6 +1118,7 @@ const inputStatesStyle = {
1118
1118
  color: deepPurpleColorPalette.black
1119
1119
  },
1120
1120
  hover: {
1121
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1121
1122
  borderColor: deepPurpleColorPalette['beige.4'],
1122
1123
  color: deepPurpleColorPalette.black
1123
1124
  },
@@ -5359,30 +5360,11 @@ function InputPressable({
5359
5360
  });
5360
5361
  }
5361
5362
 
5362
- function InputTextContainer({
5363
- children,
5364
- isHovered
5365
- }) {
5366
- const theme = useTheme();
5367
- const sx = useSx();
5368
- const styles = sx({
5369
- borderRadius: input.borderRadius
5370
- });
5371
- const animatedBackground = useAnimatedStyle(() => {
5372
- const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5373
- const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5374
- return {
5375
- backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5376
- duration: 200
5377
- })
5378
- };
5379
- }, [isHovered, theme]);
5380
- return /*#__PURE__*/jsx(Animated$1.View, {
5381
- style: [styles, animatedBackground],
5382
- children: /*#__PURE__*/jsx(View, {
5383
- position: "relative",
5384
- children: children
5385
- })
5363
+ const inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5364
+ function InputTextContainer(props) {
5365
+ return /*#__PURE__*/jsx("div", {
5366
+ className: inputTextContainer,
5367
+ ...props
5386
5368
  });
5387
5369
  }
5388
5370
 
@@ -5406,44 +5388,39 @@ const InputText = /*#__PURE__*/forwardRef(({
5406
5388
  const fontSizeForNativeBase = createNativeBaseFontSize({
5407
5389
  base: 'body-m'
5408
5390
  });
5409
- return /*#__PURE__*/jsx(Pressable, {
5410
- children: ({
5411
- isHovered
5412
- }) => /*#__PURE__*/jsxs(InputTextContainer, {
5413
- isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5414
- children: [/*#__PURE__*/jsx(Input, {
5415
- ref: ref,
5416
- multiline: multiline,
5417
- id: id,
5418
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5419
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5420
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5421
- inputMode: inputMode,
5422
- autoComplete: autoComplete,
5423
- autoCorrect: autoCorrect,
5424
- textContentType: textContentType,
5425
- fontSize: fontSizeForNativeBase,
5426
- lineHeight:
5427
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5428
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5429
- fontSizeForNativeBase,
5430
- fontWeight: "bodies.regular",
5431
- fontFamily: "bodies.regular",
5432
- py: !multiline && "web" !== 'web' ? 0 : undefined,
5433
- variant: variant,
5434
- ...props,
5435
- height: multiline ? height : 'kitt.forms.input.minHeight',
5436
- onSubmitEditing: multiline ? () => null : onSubmitEditing
5437
- }), right ? /*#__PURE__*/jsx(View, {
5438
- position: "absolute",
5439
- right: 0,
5440
- top: 0,
5441
- bottom: 0,
5442
- justifyContent: "center",
5443
- padding: theme.kitt.forms.input.rightContainer.padding,
5444
- children: right
5445
- }) : null]
5446
- })
5391
+ return /*#__PURE__*/jsxs(InputTextContainer, {
5392
+ children: [/*#__PURE__*/jsx(Input, {
5393
+ ref: ref,
5394
+ multiline: multiline,
5395
+ id: id,
5396
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5397
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5398
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5399
+ inputMode: inputMode,
5400
+ autoComplete: autoComplete,
5401
+ autoCorrect: autoCorrect,
5402
+ textContentType: textContentType,
5403
+ fontSize: fontSizeForNativeBase,
5404
+ lineHeight:
5405
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5406
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5407
+ fontSizeForNativeBase,
5408
+ fontWeight: "bodies.regular",
5409
+ fontFamily: "bodies.regular",
5410
+ py: !multiline && "web" !== 'web' ? 0 : undefined,
5411
+ variant: variant,
5412
+ ...props,
5413
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5414
+ onSubmitEditing: multiline ? () => null : onSubmitEditing
5415
+ }), right ? /*#__PURE__*/jsx(View, {
5416
+ position: "absolute",
5417
+ right: 0,
5418
+ top: 0,
5419
+ bottom: 0,
5420
+ justifyContent: "center",
5421
+ padding: theme.kitt.forms.input.rightContainer.padding,
5422
+ children: right
5423
+ }) : null]
5447
5424
  });
5448
5425
  });
5449
5426