@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
@@ -739,7 +739,7 @@ const webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
739
739
  const maxWidth = 540;
740
740
  const overlayHorizontalPadding = 24;
741
741
  const cardModal = {
742
- borderRadius: 20,
742
+ borderRadius: spacing * 2,
743
743
  maxWidth,
744
744
  maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
745
745
  minHeight: 280,
@@ -831,7 +831,7 @@ const webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
831
831
  const webAnimationOverlayDuration$1 = 250;
832
832
  const webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
833
833
  const dialogModal = {
834
- borderRadius: 20,
834
+ borderRadius: spacing * 2,
835
835
  maxWidth: 540,
836
836
  overlayPadding: {
837
837
  horizontal: 24,
@@ -1800,10 +1800,10 @@ const highlight = {
1800
1800
  },
1801
1801
  primary: {
1802
1802
  default: {
1803
- backgroundColor: deepPurpleColorPalette['beige.2']
1803
+ backgroundColor: deepPurpleColorPalette['blue.1']
1804
1804
  },
1805
1805
  hover: {
1806
- backgroundColor: deepPurpleColorPalette['beige.4']
1806
+ backgroundColor: deepPurpleColorPalette['blue.2']
1807
1807
  }
1808
1808
  },
1809
1809
  secondary: {
@@ -1824,10 +1824,14 @@ const highlight = {
1824
1824
  },
1825
1825
  dark: {
1826
1826
  default: {
1827
- backgroundColor: deepPurpleColorPalette['beige.2']
1827
+ backgroundColor: deepPurpleColorPalette['grey.0'],
1828
+ borderWidth: 1,
1829
+ borderColor: deepPurpleColorPalette['beige.3']
1828
1830
  },
1829
1831
  hover: {
1830
- backgroundColor: deepPurpleColorPalette['beige.1']
1832
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1833
+ borderWidth: 1,
1834
+ borderColor: deepPurpleColorPalette['beige.3']
1831
1835
  }
1832
1836
  },
1833
1837
  success: {
@@ -7335,6 +7339,8 @@ function AnimatedContainer({
7335
7339
  },
7336
7340
  borderRadius: "kitt.highlight.borderRadius",
7337
7341
  padding: theme.kitt.highlight.padding[size],
7342
+ borderWidth: theme.kitt.highlight[variant].default.borderWidth,
7343
+ borderColor: theme.kitt.highlight[variant].default.borderColor,
7338
7344
  backgroundColor: isHovered ? theme.kitt.highlight[variant].hover.backgroundColor : theme.kitt.highlight[variant].default.backgroundColor,
7339
7345
  children: children
7340
7346
  });
@@ -7414,6 +7420,8 @@ function Highlight({
7414
7420
  borderRadius: "kitt.highlight.borderRadius",
7415
7421
  padding: theme.kitt.highlight.padding[size],
7416
7422
  backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
7423
+ borderWidth: theme.kitt.highlight[variant].default.borderWidth,
7424
+ borderColor: theme.kitt.highlight[variant].default.borderColor,
7417
7425
  children: /*#__PURE__*/jsxs(HStack, {
7418
7426
  space: highlightStyle[size].spaceBetween,
7419
7427
  children: [icon && /*#__PURE__*/jsx(View, {
@@ -7951,6 +7959,8 @@ const getColorByType = type => {
7951
7959
  switch (type) {
7952
7960
  case 'success':
7953
7961
  case 'danger':
7962
+ case 'info':
7963
+ return 'white';
7954
7964
  case 'warning':
7955
7965
  default:
7956
7966
  return 'black';
@@ -7960,6 +7970,8 @@ const getIconButtonColor = messageType => {
7960
7970
  switch (messageType) {
7961
7971
  case 'success':
7962
7972
  case 'danger':
7973
+ case 'info':
7974
+ return 'ghost';
7963
7975
  case 'warning':
7964
7976
  default:
7965
7977
  return 'black';
@@ -7980,7 +7992,7 @@ function BaseMessage({
7980
7992
  justifyContent: "space-between",
7981
7993
  minHeight: "kitt.feedbackMessage.minHeight",
7982
7994
  paddingTop: insets?.top,
7983
- borderRadius: hasNoRadius ? undefined : 'kitt.5',
7995
+ borderRadius: hasNoRadius ? undefined : 'kitt.2',
7984
7996
  backgroundColor: `kitt.feedbackMessage.${type}.backgroundColor`,
7985
7997
  children: [/*#__PURE__*/jsxs(HStack, {
7986
7998
  flexGrow: 1,
@@ -7988,9 +8000,9 @@ function BaseMessage({
7988
8000
  alignSelf: "center",
7989
8001
  alignItems: "flex-start",
7990
8002
  paddingY: "kitt.4",
7991
- paddingX: "kitt.5",
8003
+ paddingX: "kitt.4",
7992
8004
  children: [centeredText ? null : /*#__PURE__*/jsx(View, {
7993
- marginRight: "kitt.5",
8005
+ marginRight: "kitt.2",
7994
8006
  children: /*#__PURE__*/jsx(Icon, {
7995
8007
  color: color,
7996
8008
  icon: /*#__PURE__*/jsx(IconContent, {