@ornikar/kitt-universal 27.3.0 → 27.4.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/BaseMessage/helper.d.ts.map +1 -1
  3. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts +1 -1
  4. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts.map +1 -1
  5. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts.map +1 -1
  6. package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
  7. package/dist/definitions/themes/late-ocean/cardModal.d.ts.map +1 -1
  8. package/dist/definitions/themes/late-ocean/dialogModal.d.ts.map +1 -1
  9. package/dist/definitions/themes/late-ocean/highlight.d.ts +4 -0
  10. package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
  11. package/dist/index-metro.es.android.js +24 -11
  12. package/dist/index-metro.es.android.js.map +1 -1
  13. package/dist/index-metro.es.ios.js +24 -11
  14. package/dist/index-metro.es.ios.js.map +1 -1
  15. package/dist/index-node-22.17.cjs.js +24 -11
  16. package/dist/index-node-22.17.cjs.js.map +1 -1
  17. package/dist/index-node-22.17.cjs.web.js +21 -9
  18. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  19. package/dist/index-node-22.17.es.mjs +24 -11
  20. package/dist/index-node-22.17.es.mjs.map +1 -1
  21. package/dist/index-node-22.17.es.web.mjs +21 -9
  22. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  23. package/dist/index.es.js +24 -11
  24. package/dist/index.es.js.map +1 -1
  25. package/dist/index.es.web.js +21 -9
  26. package/dist/index.es.web.js.map +1 -1
  27. package/dist/linaria-themes-metro.es.android.js +10 -6
  28. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  29. package/dist/linaria-themes-metro.es.ios.js +10 -6
  30. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  31. package/dist/linaria-themes-node-22.17.cjs.js +10 -6
  32. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  33. package/dist/linaria-themes-node-22.17.cjs.web.js +10 -6
  34. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  35. package/dist/linaria-themes-node-22.17.es.mjs +10 -6
  36. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  37. package/dist/linaria-themes-node-22.17.es.web.mjs +10 -6
  38. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  39. package/dist/linaria-themes.es.js +10 -6
  40. package/dist/linaria-themes.es.js.map +1 -1
  41. package/dist/linaria-themes.es.web.js +10 -6
  42. package/dist/linaria-themes.es.web.js.map +1 -1
  43. package/dist/tsbuildinfo +1 -1
  44. package/package.json +2 -2
@@ -746,7 +746,7 @@ const webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
746
746
  const maxWidth = 540;
747
747
  const overlayHorizontalPadding = 24;
748
748
  const cardModal = {
749
- borderRadius: 20,
749
+ borderRadius: spacing * 2,
750
750
  maxWidth,
751
751
  maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
752
752
  minHeight: 280,
@@ -838,7 +838,7 @@ const webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
838
838
  const webAnimationOverlayDuration$1 = 250;
839
839
  const webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
840
840
  const dialogModal = {
841
- borderRadius: 20,
841
+ borderRadius: spacing * 2,
842
842
  maxWidth: 540,
843
843
  overlayPadding: {
844
844
  horizontal: 24,
@@ -1807,10 +1807,10 @@ const highlight = {
1807
1807
  },
1808
1808
  primary: {
1809
1809
  default: {
1810
- backgroundColor: deepPurpleColorPalette['beige.2']
1810
+ backgroundColor: deepPurpleColorPalette['blue.1']
1811
1811
  },
1812
1812
  hover: {
1813
- backgroundColor: deepPurpleColorPalette['beige.4']
1813
+ backgroundColor: deepPurpleColorPalette['blue.2']
1814
1814
  }
1815
1815
  },
1816
1816
  secondary: {
@@ -1831,10 +1831,14 @@ const highlight = {
1831
1831
  },
1832
1832
  dark: {
1833
1833
  default: {
1834
- backgroundColor: deepPurpleColorPalette['beige.2']
1834
+ backgroundColor: deepPurpleColorPalette['grey.0'],
1835
+ borderWidth: 1,
1836
+ borderColor: deepPurpleColorPalette['beige.3']
1835
1837
  },
1836
1838
  hover: {
1837
- backgroundColor: deepPurpleColorPalette['beige.1']
1839
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1840
+ borderWidth: 1,
1841
+ borderColor: deepPurpleColorPalette['beige.3']
1838
1842
  }
1839
1843
  },
1840
1844
  success: {
@@ -7342,6 +7346,8 @@ function AnimatedContainer({
7342
7346
  },
7343
7347
  borderRadius: "kitt.highlight.borderRadius",
7344
7348
  padding: theme.kitt.highlight.padding[size],
7349
+ borderWidth: theme.kitt.highlight[variant].default.borderWidth,
7350
+ borderColor: theme.kitt.highlight[variant].default.borderColor,
7345
7351
  backgroundColor: isHovered ? theme.kitt.highlight[variant].hover.backgroundColor : theme.kitt.highlight[variant].default.backgroundColor,
7346
7352
  children: children
7347
7353
  });
@@ -7421,6 +7427,8 @@ function Highlight({
7421
7427
  borderRadius: "kitt.highlight.borderRadius",
7422
7428
  padding: theme.kitt.highlight.padding[size],
7423
7429
  backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
7430
+ borderWidth: theme.kitt.highlight[variant].default.borderWidth,
7431
+ borderColor: theme.kitt.highlight[variant].default.borderColor,
7424
7432
  children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
7425
7433
  space: highlightStyle[size].spaceBetween,
7426
7434
  children: [icon && /*#__PURE__*/jsxRuntime.jsx(View, {
@@ -7958,6 +7966,8 @@ const getColorByType = type => {
7958
7966
  switch (type) {
7959
7967
  case 'success':
7960
7968
  case 'danger':
7969
+ case 'info':
7970
+ return 'white';
7961
7971
  case 'warning':
7962
7972
  default:
7963
7973
  return 'black';
@@ -7967,6 +7977,8 @@ const getIconButtonColor = messageType => {
7967
7977
  switch (messageType) {
7968
7978
  case 'success':
7969
7979
  case 'danger':
7980
+ case 'info':
7981
+ return 'ghost';
7970
7982
  case 'warning':
7971
7983
  default:
7972
7984
  return 'black';
@@ -7987,7 +7999,7 @@ function BaseMessage({
7987
7999
  justifyContent: "space-between",
7988
8000
  minHeight: "kitt.feedbackMessage.minHeight",
7989
8001
  paddingTop: insets?.top,
7990
- borderRadius: hasNoRadius ? undefined : 'kitt.5',
8002
+ borderRadius: hasNoRadius ? undefined : 'kitt.2',
7991
8003
  backgroundColor: `kitt.feedbackMessage.${type}.backgroundColor`,
7992
8004
  children: [/*#__PURE__*/jsxRuntime.jsxs(HStack, {
7993
8005
  flexGrow: 1,
@@ -7995,9 +8007,9 @@ function BaseMessage({
7995
8007
  alignSelf: "center",
7996
8008
  alignItems: "flex-start",
7997
8009
  paddingY: "kitt.4",
7998
- paddingX: "kitt.5",
8010
+ paddingX: "kitt.4",
7999
8011
  children: [centeredText ? null : /*#__PURE__*/jsxRuntime.jsx(View, {
8000
- marginRight: "kitt.5",
8012
+ marginRight: "kitt.2",
8001
8013
  children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
8002
8014
  color: color,
8003
8015
  icon: /*#__PURE__*/jsxRuntime.jsx(IconContent, {