@ornikar/kitt-universal 32.2.1-canary.b6a558c2a534e5d22cad1dfac7725ddeca489e44.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 (47) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  3. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  4. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +2 -1
  5. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
  6. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +0 -14
  7. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  8. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  9. package/dist/index-metro.es.android.js +94 -76
  10. package/dist/index-metro.es.android.js.map +1 -1
  11. package/dist/index-metro.es.ios.js +94 -76
  12. package/dist/index-metro.es.ios.js.map +1 -1
  13. package/dist/index-node-22.17.cjs.js +94 -76
  14. package/dist/index-node-22.17.cjs.js.map +1 -1
  15. package/dist/index-node-22.17.cjs.web.css +38 -9
  16. package/dist/index-node-22.17.cjs.web.js +161 -135
  17. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  18. package/dist/index-node-22.17.es.mjs +94 -76
  19. package/dist/index-node-22.17.es.mjs.map +1 -1
  20. package/dist/index-node-22.17.es.web.css +38 -9
  21. package/dist/index-node-22.17.es.web.mjs +161 -135
  22. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  23. package/dist/index.es.js +97 -78
  24. package/dist/index.es.js.map +1 -1
  25. package/dist/index.es.web.js +162 -135
  26. package/dist/index.es.web.js.map +1 -1
  27. package/dist/linaria-themes-metro.es.android.js +34 -39
  28. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  29. package/dist/linaria-themes-metro.es.ios.js +34 -39
  30. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  31. package/dist/linaria-themes-node-22.17.cjs.js +34 -39
  32. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  33. package/dist/linaria-themes-node-22.17.cjs.web.js +34 -39
  34. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  35. package/dist/linaria-themes-node-22.17.es.mjs +34 -39
  36. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  37. package/dist/linaria-themes-node-22.17.es.web.mjs +34 -39
  38. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  39. package/dist/linaria-themes.es.js +34 -39
  40. package/dist/linaria-themes.es.js.map +1 -1
  41. package/dist/linaria-themes.es.web.js +34 -39
  42. package/dist/linaria-themes.es.web.js.map +1 -1
  43. package/dist/styles.css +38 -9
  44. package/dist/tsbuildinfo +1 -1
  45. package/package.json +1 -1
  46. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +0 -4
  47. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +0 -1
@@ -873,15 +873,15 @@ var card = {
873
873
  }
874
874
  };
875
875
 
876
- var webAnimationContentDuration$2 = 400;
877
- var webAnimationContentEasing$2 = {
876
+ var webAnimationContentDuration$1 = 400;
877
+ var webAnimationContentEasing$1 = {
878
878
  x1: 0.77,
879
879
  y1: 0,
880
880
  x2: 0.175,
881
881
  y2: 1
882
882
  };
883
- var webAnimationOverlayDuration$2 = 250;
884
- var webAnimationOverlayEasing$2 = {
883
+ var webAnimationOverlayDuration$1 = 250;
884
+ var webAnimationOverlayEasing$1 = {
885
885
  x1: 0.42,
886
886
  y1: 0,
887
887
  x2: 1,
@@ -916,12 +916,12 @@ var cardModal = {
916
916
  },
917
917
  animation: {
918
918
  overlay: {
919
- duration: webAnimationOverlayDuration$2,
920
- easing: webAnimationOverlayEasing$2
919
+ duration: webAnimationOverlayDuration$1,
920
+ easing: webAnimationOverlayEasing$1
921
921
  },
922
922
  content: {
923
- duration: webAnimationContentDuration$2,
924
- easing: webAnimationContentEasing$2
923
+ duration: webAnimationContentDuration$1,
924
+ easing: webAnimationContentEasing$1
925
925
  }
926
926
  }
927
927
  };
@@ -977,15 +977,15 @@ var choices = {
977
977
  }
978
978
  };
979
979
 
980
- var webAnimationContentDuration$1 = 400;
981
- var webAnimationContentEasing$1 = {
980
+ var webAnimationContentDuration = 400;
981
+ var webAnimationContentEasing = {
982
982
  x1: 0.77,
983
983
  y1: 0,
984
984
  x2: 0.175,
985
985
  y2: 1
986
986
  };
987
- var webAnimationOverlayDuration$1 = 250;
988
- var webAnimationOverlayEasing$1 = {
987
+ var webAnimationOverlayDuration = 250;
988
+ var webAnimationOverlayEasing = {
989
989
  x1: 0.42,
990
990
  y1: 0,
991
991
  x2: 1,
@@ -1007,12 +1007,12 @@ var dialogModal = {
1007
1007
  },
1008
1008
  animation: {
1009
1009
  overlay: {
1010
- duration: webAnimationOverlayDuration$1,
1011
- easing: webAnimationOverlayEasing$1
1010
+ duration: webAnimationOverlayDuration,
1011
+ easing: webAnimationOverlayEasing
1012
1012
  },
1013
1013
  content: {
1014
- duration: webAnimationContentDuration$1,
1015
- easing: webAnimationContentEasing$1
1014
+ duration: webAnimationContentDuration,
1015
+ easing: webAnimationContentEasing
1016
1016
  }
1017
1017
  }
1018
1018
  };
@@ -1070,10 +1070,10 @@ var autocomplete = {
1070
1070
  };
1071
1071
 
1072
1072
  var checkbox = {
1073
- borderWidth: 1,
1074
- borderRadius: 4,
1075
- height: 24,
1076
- width: 24,
1073
+ borderWidth: 2,
1074
+ borderRadius: 5,
1075
+ height: 20,
1076
+ width: 20,
1077
1077
  iconSize: 14,
1078
1078
  markColor: colors.uiBackgroundLight,
1079
1079
  textSpacing: 10,
@@ -1136,7 +1136,6 @@ var inputStatesStyle = {
1136
1136
  color: deepPurpleColorPalette.black
1137
1137
  },
1138
1138
  hover: {
1139
- backgroundColor: deepPurpleColorPalette['beige.1'],
1140
1139
  borderColor: deepPurpleColorPalette['beige.4'],
1141
1140
  color: deepPurpleColorPalette.black
1142
1141
  },
@@ -1921,20 +1920,6 @@ var forms = {
1921
1920
  timePicker: timePicker
1922
1921
  };
1923
1922
 
1924
- var webAnimationContentDuration = 600;
1925
- var webAnimationContentEasing = {
1926
- x1: 0.77,
1927
- y1: 0,
1928
- x2: 0.175,
1929
- y2: 1
1930
- };
1931
- var webAnimationOverlayDuration = 250;
1932
- var webAnimationOverlayEasing = {
1933
- x1: 0.42,
1934
- y1: 0,
1935
- x2: 1,
1936
- y2: 1
1937
- };
1938
1923
  var fullscreenModal = {
1939
1924
  header: {
1940
1925
  height: 56
@@ -1948,12 +1933,22 @@ var fullscreenModal = {
1948
1933
  },
1949
1934
  animation: {
1950
1935
  overlay: {
1951
- duration: webAnimationOverlayDuration,
1952
- easing: webAnimationOverlayEasing
1936
+ duration: 250,
1937
+ easing: {
1938
+ x1: 0.42,
1939
+ y1: 0,
1940
+ x2: 1,
1941
+ y2: 1
1942
+ }
1953
1943
  },
1954
1944
  content: {
1955
- duration: webAnimationContentDuration,
1956
- easing: webAnimationContentEasing
1945
+ duration: 600,
1946
+ easing: {
1947
+ x1: 0.77,
1948
+ y1: 0,
1949
+ x2: 0.175,
1950
+ y2: 1
1951
+ }
1957
1952
  }
1958
1953
  }
1959
1954
  };
@@ -4393,17 +4388,17 @@ var contentAnimationClassNames = {
4393
4388
  exit: contentAnimatioExit,
4394
4389
  exitActive: contentAnimatioExitActive
4395
4390
  };
4396
- var opacityEnter$1 = "kitt-u_opacityEnter_o1ae40dx";
4397
- var opacityEnterActive$1 = "kitt-u_opacityEnterActive_o1t4vl7b";
4398
- var opacityExit$1 = "kitt-u_opacityExit_ogyytm1";
4399
- var opacityExitActive$1 = "kitt-u_opacityExitActive_o18xvk52";
4400
- var opacityClassNames$1 = {
4401
- appear: opacityEnter$1,
4402
- appearActive: opacityEnterActive$1,
4403
- enter: opacityEnter$1,
4404
- enterActive: opacityEnterActive$1,
4405
- exit: opacityExit$1,
4406
- exitActive: opacityExitActive$1
4391
+ var opacityEnter = "kitt-u_opacityEnter_o1ae40dx";
4392
+ var opacityEnterActive = "kitt-u_opacityEnterActive_o1t4vl7b";
4393
+ var opacityExit = "kitt-u_opacityExit_ogyytm1";
4394
+ var opacityExitActive = "kitt-u_opacityExitActive_o18xvk52";
4395
+ var opacityClassNames = {
4396
+ appear: opacityEnter,
4397
+ appearActive: opacityEnterActive,
4398
+ enter: opacityEnter,
4399
+ enterActive: opacityEnterActive,
4400
+ exit: opacityExit,
4401
+ exitActive: opacityExitActive
4407
4402
  };
4408
4403
  function CardModalAnimation(_ref) {
4409
4404
  var children = _ref.children,
@@ -4437,7 +4432,7 @@ function CardModalAnimation(_ref) {
4437
4432
  children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
4438
4433
  nodeRef: overlayRef,
4439
4434
  timeout: isAnimationEnabled ? animation.overlay.duration : 0,
4440
- classNames: opacityClassNames$1,
4435
+ classNames: opacityClassNames,
4441
4436
  children: /*#__PURE__*/jsx(Overlay, {
4442
4437
  ref: overlayRef,
4443
4438
  onPress: onClose
@@ -5438,11 +5433,30 @@ function InputPressable(_ref) {
5438
5433
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread({}, props));
5439
5434
  }
5440
5435
 
5441
- var inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5442
- function InputTextContainer(props) {
5443
- return /*#__PURE__*/jsx("div", _objectSpread({
5444
- className: inputTextContainer
5445
- }, props));
5436
+ function InputTextContainer(_ref) {
5437
+ var children = _ref.children,
5438
+ isHovered = _ref.isHovered;
5439
+ var theme = useTheme();
5440
+ var sx = useSx();
5441
+ var styles = sx({
5442
+ borderRadius: input.borderRadius
5443
+ });
5444
+ var animatedBackground = useAnimatedStyle(function () {
5445
+ var baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5446
+ var hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5447
+ return {
5448
+ backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5449
+ duration: 200
5450
+ })
5451
+ };
5452
+ }, [isHovered, theme]);
5453
+ return /*#__PURE__*/jsx(Animated$1.View, {
5454
+ style: [styles, animatedBackground],
5455
+ children: /*#__PURE__*/jsx(View, {
5456
+ position: "relative",
5457
+ children: children
5458
+ })
5459
+ });
5446
5460
  }
5447
5461
 
5448
5462
  var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
@@ -5471,41 +5485,47 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5471
5485
  var fontSizeForNativeBase = createNativeBaseFontSize({
5472
5486
  base: 'body-m'
5473
5487
  });
5474
- return /*#__PURE__*/jsxs(InputTextContainer, {
5475
- children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5476
- ref: ref,
5477
- multiline: multiline,
5478
- id: id,
5479
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5480
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5481
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5482
- inputMode: inputMode,
5483
- autoComplete: autoComplete,
5484
- autoCorrect: autoCorrect,
5485
- textContentType: textContentType,
5486
- fontSize: fontSizeForNativeBase,
5487
- lineHeight:
5488
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5489
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5490
- fontSizeForNativeBase,
5491
- fontWeight: "bodies.regular",
5492
- fontFamily: "bodies.regular",
5493
- py: !multiline && "web" !== 'web' ? 0 : undefined,
5494
- variant: variant
5495
- }, props), {}, {
5496
- height: multiline ? height : 'kitt.forms.input.minHeight',
5497
- onSubmitEditing: multiline ? function () {
5498
- return null;
5499
- } : onSubmitEditing
5500
- })), right ? /*#__PURE__*/jsx(View, {
5501
- position: "absolute",
5502
- right: 0,
5503
- top: 0,
5504
- bottom: 0,
5505
- justifyContent: "center",
5506
- padding: theme.kitt.forms.input.rightContainer.padding,
5507
- children: right
5508
- }) : null]
5488
+ return /*#__PURE__*/jsx(Pressable, {
5489
+ children: function (_ref2) {
5490
+ var isHovered = _ref2.isHovered;
5491
+ return /*#__PURE__*/jsxs(InputTextContainer, {
5492
+ isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5493
+ children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5494
+ ref: ref,
5495
+ multiline: multiline,
5496
+ id: id,
5497
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5498
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5499
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5500
+ inputMode: inputMode,
5501
+ autoComplete: autoComplete,
5502
+ autoCorrect: autoCorrect,
5503
+ textContentType: textContentType,
5504
+ fontSize: fontSizeForNativeBase,
5505
+ lineHeight:
5506
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5507
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5508
+ fontSizeForNativeBase,
5509
+ fontWeight: "bodies.regular",
5510
+ fontFamily: "bodies.regular",
5511
+ py: !multiline && "web" !== 'web' ? 0 : undefined,
5512
+ variant: variant
5513
+ }, props), {}, {
5514
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5515
+ onSubmitEditing: multiline ? function () {
5516
+ return null;
5517
+ } : onSubmitEditing
5518
+ })), right ? /*#__PURE__*/jsx(View, {
5519
+ position: "absolute",
5520
+ right: 0,
5521
+ top: 0,
5522
+ bottom: 0,
5523
+ justifyContent: "center",
5524
+ padding: theme.kitt.forms.input.rightContainer.padding,
5525
+ children: right
5526
+ }) : null]
5527
+ });
5528
+ }
5509
5529
  });
5510
5530
  });
5511
5531
 
@@ -7925,30 +7945,24 @@ function FullscreenModalFooter(_ref) {
7925
7945
  }));
7926
7946
  }
7927
7947
 
7948
+ var styles$1 = {"overlay-enter":"FullscreenModalAnimation-module_overlay-enter__L1J1X","overlay-enter-active":"FullscreenModalAnimation-module_overlay-enter-active__gDEVb","overlay-exit":"FullscreenModalAnimation-module_overlay-exit__Qx1WE","overlay-exit-active":"FullscreenModalAnimation-module_overlay-exit-active__lFR3x","content-enter":"FullscreenModalAnimation-module_content-enter__JmCWa","content-enter-active":"FullscreenModalAnimation-module_content-enter-active__iaNRs","content-exit":"FullscreenModalAnimation-module_content-exit__hB0wY","content-exit-active":"FullscreenModalAnimation-module_content-exit-active__BPVPo"};
7949
+
7928
7950
  var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
7929
- var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7930
- var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7931
- var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
7932
- var slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
7933
- var slideInClassNames = {
7934
- appear: slideInFromBottomEnter,
7935
- appearActive: slideInFromBottomEnterActive,
7936
- enter: slideInFromBottomEnter,
7937
- enterActive: slideInFromBottomEnterActive,
7938
- exit: slideInFromBottomExit,
7939
- exitActive: slideInFromBottomExitActive
7951
+ var overlayClassNames = {
7952
+ appear: styles$1['overlay-enter'],
7953
+ appearActive: styles$1['overlay-enter-active'],
7954
+ enter: styles$1['overlay-enter'],
7955
+ enterActive: styles$1['overlay-enter-active'],
7956
+ exit: styles$1['overlay-exit'],
7957
+ exitActive: styles$1['overlay-exit-active']
7940
7958
  };
7941
- var opacityEnter = "kitt-u_opacityEnter_okm44hr";
7942
- var opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
7943
- var opacityExit = "kitt-u_opacityExit_o14r8iix";
7944
- var opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
7945
- var opacityClassNames = {
7946
- appear: opacityEnter,
7947
- appearActive: opacityEnterActive,
7948
- enter: opacityEnter,
7949
- enterActive: opacityEnterActive,
7950
- exit: opacityExit,
7951
- exitActive: opacityExitActive
7959
+ var slideInClassNames = {
7960
+ appear: styles$1['content-enter'],
7961
+ appearActive: styles$1['content-enter-active'],
7962
+ enter: styles$1['content-enter'],
7963
+ enterActive: styles$1['content-enter-active'],
7964
+ exit: styles$1['content-exit'],
7965
+ exitActive: styles$1['content-exit-active']
7952
7966
  };
7953
7967
  function FullscreenModalAnimation(_ref) {
7954
7968
  var children = _ref.children,
@@ -7976,28 +7990,41 @@ function FullscreenModalAnimation(_ref) {
7976
7990
  appear: appear,
7977
7991
  unmountOnExit: unmountOnExit
7978
7992
  };
7979
- return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({}, props), {}, {
7980
- children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
7981
- nodeRef: overlayRef,
7982
- timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7983
- classNames: opacityClassNames,
7984
- children: /*#__PURE__*/jsx(Overlay, {
7985
- ref: overlayRef,
7986
- onPress: onClose
7987
- })
7988
- })), /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
7989
- nodeRef: contentRef,
7990
- timeout: isAnimationEnabled ? animation.content.duration : 0,
7991
- classNames: slideInClassNames,
7992
- onEnter: onEnter,
7993
- onEntered: onEntered,
7994
- onExit: onExit,
7995
- onExited: onExited,
7996
- children: /*#__PURE__*/jsx(View, {
7997
- ref: contentRef,
7998
- children: children
7999
- })
8000
- }))]
7993
+
7994
+ // CSS custom properties for theme-based animation values
7995
+ var overlayEasing = animation.overlay.easing;
7996
+ var contentEasing = animation.content.easing;
7997
+ var cssVariables = {
7998
+ '--overlay-duration': "".concat(animation.overlay.duration, "ms"),
7999
+ '--overlay-easing': "cubic-bezier(".concat(overlayEasing.x1, ", ").concat(overlayEasing.y1, ", ").concat(overlayEasing.x2, ", ").concat(overlayEasing.y2, ")"),
8000
+ '--content-duration': "".concat(animation.content.duration, "ms"),
8001
+ '--content-easing': "cubic-bezier(".concat(contentEasing.x1, ", ").concat(contentEasing.y1, ", ").concat(contentEasing.x2, ", ").concat(contentEasing.y2, ")")
8002
+ };
8003
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
8004
+ children: /*#__PURE__*/jsxs("div", {
8005
+ style: cssVariables,
8006
+ children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
8007
+ nodeRef: overlayRef,
8008
+ timeout: isAnimationEnabled ? animation.overlay.duration : 0,
8009
+ classNames: overlayClassNames,
8010
+ children: /*#__PURE__*/jsx(Overlay, {
8011
+ ref: overlayRef,
8012
+ onPress: onClose
8013
+ })
8014
+ })), /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
8015
+ nodeRef: contentRef,
8016
+ timeout: isAnimationEnabled ? animation.content.duration : 0,
8017
+ classNames: slideInClassNames,
8018
+ onEnter: onEnter,
8019
+ onEntered: onEntered,
8020
+ onExit: onExit,
8021
+ onExited: onExited,
8022
+ children: /*#__PURE__*/jsx(View, {
8023
+ ref: contentRef,
8024
+ children: children
8025
+ })
8026
+ }))]
8027
+ })
8001
8028
  }));
8002
8029
  }
8003
8030