@ornikar/kitt-universal 32.4.0 → 32.5.1-canary.5ba1adb7ef6f41e2165abd46b6c8df65c0325fc7.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 (45) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/definitions/Highlight/Highlight.d.ts +1 -1
  3. package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
  4. package/dist/definitions/story-components/StoryDecorator.d.ts +1 -1
  5. package/dist/definitions/story-components/StoryDecorator.d.ts.map +1 -1
  6. package/dist/definitions/themes/late-ocean/highlight.d.ts +1 -0
  7. package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
  8. package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts +1 -1
  9. package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts.map +1 -1
  10. package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts +1 -1
  11. package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts.map +1 -1
  12. package/dist/index-metro.es.android.js +18 -9
  13. package/dist/index-metro.es.android.js.map +1 -1
  14. package/dist/index-metro.es.ios.js +18 -9
  15. package/dist/index-metro.es.ios.js.map +1 -1
  16. package/dist/index-node-22.17.cjs.js +21 -12
  17. package/dist/index-node-22.17.cjs.js.map +1 -1
  18. package/dist/index-node-22.17.cjs.web.js +21 -12
  19. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  20. package/dist/index-node-22.17.es.mjs +18 -9
  21. package/dist/index-node-22.17.es.mjs.map +1 -1
  22. package/dist/index-node-22.17.es.web.mjs +18 -9
  23. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  24. package/dist/index.es.js +18 -9
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.es.web.js +18 -9
  27. package/dist/index.es.web.js.map +1 -1
  28. package/dist/linaria-themes-metro.es.android.js +5 -4
  29. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  30. package/dist/linaria-themes-metro.es.ios.js +5 -4
  31. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  32. package/dist/linaria-themes-node-22.17.cjs.js +5 -4
  33. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  34. package/dist/linaria-themes-node-22.17.cjs.web.js +5 -4
  35. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  36. package/dist/linaria-themes-node-22.17.es.mjs +5 -4
  37. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  38. package/dist/linaria-themes-node-22.17.es.web.mjs +5 -4
  39. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  40. package/dist/linaria-themes.es.js +5 -4
  41. package/dist/linaria-themes.es.js.map +1 -1
  42. package/dist/linaria-themes.es.web.js +5 -4
  43. package/dist/linaria-themes.es.web.js.map +1 -1
  44. package/dist/tsbuildinfo +1 -1
  45. package/package.json +4 -4
@@ -23,7 +23,7 @@ const Svg = require('react-native-svg');
23
23
  const picker$1 = require('@react-native-picker/picker');
24
24
  const expoLinearGradient = require('expo-linear-gradient');
25
25
  const reactNative$1 = require('@floating-ui/react-native');
26
- const addons = require('@storybook/addons');
26
+ const previewApi = require('@storybook/preview-api');
27
27
  const isChromatic = require('chromatic/isChromatic');
28
28
 
29
29
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
@@ -1078,10 +1078,10 @@ const autocomplete = {
1078
1078
  };
1079
1079
 
1080
1080
  const checkbox = {
1081
- borderWidth: 2,
1082
- borderRadius: 5,
1083
- height: 20,
1084
- width: 20,
1081
+ borderWidth: 1,
1082
+ borderRadius: 4,
1083
+ height: 24,
1084
+ width: 24,
1085
1085
  iconSize: 14,
1086
1086
  markColor: colors.uiBackgroundLight,
1087
1087
  textSpacing: 10,
@@ -2026,6 +2026,7 @@ const highlight = {
2026
2026
  }
2027
2027
  },
2028
2028
  padding: {
2029
+ small: spacing * 2,
2029
2030
  medium: spacing * 4,
2030
2031
  large: spacing * 6
2031
2032
  }
@@ -8816,6 +8817,9 @@ const useNativeAnimation$1 = ({
8816
8817
  };
8817
8818
  };
8818
8819
 
8820
+ const getTitleTypographyType = size => {
8821
+ return size === 'small' ? 'label-medium' : 'label-large';
8822
+ };
8819
8823
  function Highlight({
8820
8824
  variant = 'primary',
8821
8825
  canCollapse = false,
@@ -8830,6 +8834,11 @@ function Highlight({
8830
8834
  const [contentHeight, setContentHeight] = React.useState(0);
8831
8835
  const [isInitialRender, setIsInitialRender] = React.useState(true);
8832
8836
  const highlightStyle = {
8837
+ small: {
8838
+ marginBottom: 'kitt.1',
8839
+ spaceBetween: 'kitt.2',
8840
+ contentMarginY: 8
8841
+ },
8833
8842
  medium: {
8834
8843
  marginBottom: 'kitt.1',
8835
8844
  spaceBetween: 'kitt.2',
@@ -8877,8 +8886,8 @@ function Highlight({
8877
8886
  children: [title && /*#__PURE__*/jsxRuntime.jsx(View, {
8878
8887
  marginBottom: highlightStyle[size].marginBottom,
8879
8888
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
8880
- variant: "bold",
8881
- base: "body-m",
8889
+ variant: "semibold",
8890
+ base: getTitleTypographyType(size),
8882
8891
  ellipsizeMode: "clip",
8883
8892
  children: title
8884
8893
  })
@@ -8913,8 +8922,8 @@ function Highlight({
8913
8922
  flexShrink: 1,
8914
8923
  width: "100%",
8915
8924
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
8916
- variant: "bold",
8917
- base: "body-m",
8925
+ variant: "semibold",
8926
+ base: getTitleTypographyType(size),
8918
8927
  ellipsizeMode: "clip",
8919
8928
  children: title
8920
8929
  })
@@ -13171,7 +13180,7 @@ function StoryContainer({
13171
13180
  });
13172
13181
  }
13173
13182
 
13174
- const StoryDecorator = addons.makeDecorator({
13183
+ const StoryDecorator = previewApi.makeDecorator({
13175
13184
  name: 'StoryDecorator',
13176
13185
  parameterName: 'storyDecorator',
13177
13186
  wrapper: (storyFn, context) => {
@@ -14176,7 +14185,7 @@ const TypographyLink = /*#__PURE__*/React.forwardRef(({
14176
14185
  });
14177
14186
  });
14178
14187
 
14179
- const ChromaticReducedMotionDecorator = addons.makeDecorator({
14188
+ const ChromaticReducedMotionDecorator = previewApi.makeDecorator({
14180
14189
  name: 'ChromaticReducedMotionDecorator',
14181
14190
  parameterName: 'chromaticReducedMotion',
14182
14191
  wrapper: (storyFn, context) => /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
@@ -14199,7 +14208,7 @@ function KittThemeProvider({
14199
14208
  children: children
14200
14209
  });
14201
14210
  }
14202
- const KittThemeDecorator = addons.makeDecorator({
14211
+ const KittThemeDecorator = previewApi.makeDecorator({
14203
14212
  name: 'ThemeDecorator',
14204
14213
  parameterName: 'theme',
14205
14214
  wrapper: (storyFn, context, {