@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
@@ -21,7 +21,7 @@ const reactNativeSafeAreaContext = require('react-native-safe-area-context');
21
21
  const Svg = require('react-native-svg');
22
22
  const reactDom$1 = require('@floating-ui/react-dom');
23
23
  const expoLinearGradient = require('expo-linear-gradient');
24
- const addons = require('@storybook/addons');
24
+ const previewApi = require('@storybook/preview-api');
25
25
  const isChromatic = require('chromatic/isChromatic');
26
26
 
27
27
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
@@ -1061,10 +1061,10 @@ const autocomplete = {
1061
1061
  };
1062
1062
 
1063
1063
  const checkbox = {
1064
- borderWidth: 2,
1065
- borderRadius: 5,
1066
- height: 20,
1067
- width: 20,
1064
+ borderWidth: 1,
1065
+ borderRadius: 4,
1066
+ height: 24,
1067
+ width: 24,
1068
1068
  iconSize: 14,
1069
1069
  markColor: colors.uiBackgroundLight,
1070
1070
  textSpacing: 10,
@@ -2009,6 +2009,7 @@ const highlight = {
2009
2009
  }
2010
2010
  },
2011
2011
  padding: {
2012
+ small: spacing * 2,
2012
2013
  medium: spacing * 4,
2013
2014
  large: spacing * 6
2014
2015
  }
@@ -8036,6 +8037,9 @@ function useNativeAnimation$1() {
8036
8037
  };
8037
8038
  }
8038
8039
 
8040
+ const getTitleTypographyType = size => {
8041
+ return size === 'small' ? 'label-medium' : 'label-large';
8042
+ };
8039
8043
  function Highlight({
8040
8044
  variant = 'primary',
8041
8045
  canCollapse = false,
@@ -8050,6 +8054,11 @@ function Highlight({
8050
8054
  const [contentHeight, setContentHeight] = react.useState(0);
8051
8055
  const [isInitialRender, setIsInitialRender] = react.useState(true);
8052
8056
  const highlightStyle = {
8057
+ small: {
8058
+ marginBottom: 'kitt.1',
8059
+ spaceBetween: 'kitt.2',
8060
+ contentMarginY: 8
8061
+ },
8053
8062
  medium: {
8054
8063
  marginBottom: 'kitt.1',
8055
8064
  spaceBetween: 'kitt.2',
@@ -8092,8 +8101,8 @@ function Highlight({
8092
8101
  children: [title && /*#__PURE__*/jsxRuntime.jsx(View, {
8093
8102
  marginBottom: highlightStyle[size].marginBottom,
8094
8103
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
8095
- variant: "bold",
8096
- base: "body-m",
8104
+ variant: "semibold",
8105
+ base: getTitleTypographyType(size),
8097
8106
  ellipsizeMode: "clip",
8098
8107
  children: title
8099
8108
  })
@@ -8128,8 +8137,8 @@ function Highlight({
8128
8137
  flexShrink: 1,
8129
8138
  width: "100%",
8130
8139
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
8131
- variant: "bold",
8132
- base: "body-m",
8140
+ variant: "semibold",
8141
+ base: getTitleTypographyType(size),
8133
8142
  ellipsizeMode: "clip",
8134
8143
  children: title
8135
8144
  })
@@ -12528,7 +12537,7 @@ function StoryContainer({
12528
12537
  });
12529
12538
  }
12530
12539
 
12531
- const StoryDecorator = addons.makeDecorator({
12540
+ const StoryDecorator = previewApi.makeDecorator({
12532
12541
  name: 'StoryDecorator',
12533
12542
  parameterName: 'storyDecorator',
12534
12543
  wrapper: (storyFn, context) => {
@@ -13484,7 +13493,7 @@ const TypographyLink = /*#__PURE__*/react.forwardRef(({
13484
13493
  });
13485
13494
  });
13486
13495
 
13487
- const ChromaticReducedMotionDecorator = addons.makeDecorator({
13496
+ const ChromaticReducedMotionDecorator = previewApi.makeDecorator({
13488
13497
  name: 'ChromaticReducedMotionDecorator',
13489
13498
  parameterName: 'chromaticReducedMotion',
13490
13499
  wrapper: (storyFn, context) => /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
@@ -13507,7 +13516,7 @@ function KittThemeProvider({
13507
13516
  children: children
13508
13517
  });
13509
13518
  }
13510
- const KittThemeDecorator = addons.makeDecorator({
13519
+ const KittThemeDecorator = previewApi.makeDecorator({
13511
13520
  name: 'ThemeDecorator',
13512
13521
  parameterName: 'theme',
13513
13522
  wrapper: (storyFn, context, {