@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
@@ -766,7 +766,7 @@ const webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
766
766
  const maxWidth = 540;
767
767
  const overlayHorizontalPadding = 24;
768
768
  const cardModal = {
769
- borderRadius: 20,
769
+ borderRadius: spacing * 2,
770
770
  maxWidth,
771
771
  maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
772
772
  minHeight: 280,
@@ -858,7 +858,7 @@ const webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
858
858
  const webAnimationOverlayDuration$1 = 250;
859
859
  const webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
860
860
  const dialogModal = {
861
- borderRadius: 20,
861
+ borderRadius: spacing * 2,
862
862
  maxWidth: 540,
863
863
  overlayPadding: {
864
864
  horizontal: 24,
@@ -1827,10 +1827,10 @@ const highlight = {
1827
1827
  },
1828
1828
  primary: {
1829
1829
  default: {
1830
- backgroundColor: deepPurpleColorPalette['beige.2']
1830
+ backgroundColor: deepPurpleColorPalette['blue.1']
1831
1831
  },
1832
1832
  hover: {
1833
- backgroundColor: deepPurpleColorPalette['beige.4']
1833
+ backgroundColor: deepPurpleColorPalette['blue.2']
1834
1834
  }
1835
1835
  },
1836
1836
  secondary: {
@@ -1851,10 +1851,14 @@ const highlight = {
1851
1851
  },
1852
1852
  dark: {
1853
1853
  default: {
1854
- backgroundColor: deepPurpleColorPalette['beige.2']
1854
+ backgroundColor: deepPurpleColorPalette['grey.0'],
1855
+ borderWidth: 1,
1856
+ borderColor: deepPurpleColorPalette['beige.3']
1855
1857
  },
1856
1858
  hover: {
1857
- backgroundColor: deepPurpleColorPalette['beige.1']
1859
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1860
+ borderWidth: 1,
1861
+ borderColor: deepPurpleColorPalette['beige.3']
1858
1862
  }
1859
1863
  },
1860
1864
  success: {
@@ -8174,13 +8178,16 @@ function AnimatedCaret({
8174
8178
  function AnimatedContainer({
8175
8179
  children,
8176
8180
  size,
8177
- animatedStyles
8181
+ animatedStyles,
8182
+ variant
8178
8183
  }) {
8179
8184
  const sx = nativeBase.useSx();
8180
8185
  const theme = useTheme();
8181
8186
  const styles = sx({
8182
8187
  borderRadius: theme.kitt.highlight.borderRadius,
8183
- padding: theme.kitt.highlight.padding[size]
8188
+ padding: theme.kitt.highlight.padding[size],
8189
+ borderWidth: theme.kitt.highlight[variant].default.borderWidth,
8190
+ borderColor: theme.kitt.highlight[variant].default.borderColor
8184
8191
  });
8185
8192
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
8186
8193
  style: [styles, animatedStyles],
@@ -8304,6 +8311,8 @@ function Highlight({
8304
8311
  borderRadius: "kitt.highlight.borderRadius",
8305
8312
  padding: theme.kitt.highlight.padding[size],
8306
8313
  backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
8314
+ borderWidth: theme.kitt.highlight[variant].default.borderWidth,
8315
+ borderColor: theme.kitt.highlight[variant].default.borderColor,
8307
8316
  children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
8308
8317
  space: highlightStyle[size].spaceBetween,
8309
8318
  children: [icon && /*#__PURE__*/jsxRuntime.jsx(View, {
@@ -8758,6 +8767,8 @@ const getColorByType = type => {
8758
8767
  switch (type) {
8759
8768
  case 'success':
8760
8769
  case 'danger':
8770
+ case 'info':
8771
+ return 'white';
8761
8772
  case 'warning':
8762
8773
  default:
8763
8774
  return 'black';
@@ -8767,6 +8778,8 @@ const getIconButtonColor = messageType => {
8767
8778
  switch (messageType) {
8768
8779
  case 'success':
8769
8780
  case 'danger':
8781
+ case 'info':
8782
+ return 'ghost';
8770
8783
  case 'warning':
8771
8784
  default:
8772
8785
  return 'black';
@@ -8787,7 +8800,7 @@ function BaseMessage({
8787
8800
  justifyContent: "space-between",
8788
8801
  minHeight: "kitt.feedbackMessage.minHeight",
8789
8802
  paddingTop: insets?.top,
8790
- borderRadius: hasNoRadius ? undefined : 'kitt.5',
8803
+ borderRadius: hasNoRadius ? undefined : 'kitt.2',
8791
8804
  backgroundColor: `kitt.feedbackMessage.${type}.backgroundColor`,
8792
8805
  children: [/*#__PURE__*/jsxRuntime.jsxs(HStack, {
8793
8806
  flexGrow: 1,
@@ -8795,9 +8808,9 @@ function BaseMessage({
8795
8808
  alignSelf: "center",
8796
8809
  alignItems: "flex-start",
8797
8810
  paddingY: "kitt.4",
8798
- paddingX: "kitt.5",
8811
+ paddingX: "kitt.4",
8799
8812
  children: [centeredText ? null : /*#__PURE__*/jsxRuntime.jsx(View, {
8800
- marginRight: "kitt.5",
8813
+ marginRight: "kitt.2",
8801
8814
  children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
8802
8815
  color: color,
8803
8816
  icon: /*#__PURE__*/jsxRuntime.jsx(IconContent, {