@alfalab/core-components-typography 4.4.0 → 4.5.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 (112) hide show
  1. package/colors.css +20 -20
  2. package/colors.module-542eef2a.js +6 -0
  3. package/common.module-4306b4f6.js +6 -0
  4. package/component.js +0 -10
  5. package/cssm/component.js +0 -15
  6. package/cssm/hooks/index.js +0 -6
  7. package/cssm/index.js +0 -19
  8. package/cssm/text/component.js +0 -3
  9. package/cssm/text/index.js +0 -10
  10. package/cssm/title/common.module.css +3 -0
  11. package/cssm/title/component.d.ts +7 -6
  12. package/cssm/title/component.js +4 -6
  13. package/cssm/title/index.d.ts +1 -1
  14. package/cssm/title/index.js +1 -8
  15. package/cssm/title/utils.d.ts +2 -0
  16. package/cssm/title/utils.js +15 -0
  17. package/cssm/title-mobile/component.d.ts +1 -1
  18. package/cssm/title-mobile/component.js +1 -8
  19. package/cssm/title-mobile/index.js +0 -12
  20. package/cssm/title-responsive/component.d.ts +1 -1
  21. package/cssm/title-responsive/component.js +5 -8
  22. package/cssm/title-responsive/index.js +0 -12
  23. package/esm/colors.css +20 -20
  24. package/esm/colors.module-8bcdca4a.js +4 -0
  25. package/esm/common.module-76facc75.js +4 -0
  26. package/esm/component.js +0 -10
  27. package/esm/hooks/index.js +0 -5
  28. package/esm/hooks/use-skeleton.css +5 -5
  29. package/esm/hooks/use-skeleton.js +1 -1
  30. package/esm/index.js +0 -14
  31. package/esm/text/component.js +2 -4
  32. package/esm/text/index.css +20 -20
  33. package/esm/text/index.js +0 -8
  34. package/esm/title/common.css +8 -5
  35. package/esm/title/component.d.ts +7 -6
  36. package/esm/title/component.js +5 -6
  37. package/esm/title/index.css +19 -19
  38. package/esm/title/index.d.ts +1 -1
  39. package/esm/title/index.js +4 -10
  40. package/esm/title/utils.d.ts +2 -0
  41. package/esm/title/utils.js +11 -0
  42. package/esm/title-mobile/component.d.ts +1 -1
  43. package/esm/title-mobile/component.js +4 -10
  44. package/esm/title-mobile/index.css +11 -11
  45. package/esm/title-mobile/index.js +0 -10
  46. package/esm/title-responsive/component.d.ts +1 -1
  47. package/esm/title-responsive/component.js +8 -10
  48. package/esm/title-responsive/index.css +31 -31
  49. package/esm/title-responsive/index.js +0 -10
  50. package/hooks/index.js +0 -5
  51. package/hooks/use-skeleton.css +5 -5
  52. package/hooks/use-skeleton.js +1 -1
  53. package/index.js +0 -14
  54. package/modern/colors.css +20 -20
  55. package/modern/colors.module-ba6381f2.js +4 -0
  56. package/modern/common.module-e2076252.js +4 -0
  57. package/modern/component.js +0 -9
  58. package/modern/hooks/index.js +0 -4
  59. package/modern/hooks/use-skeleton.css +5 -5
  60. package/modern/hooks/use-skeleton.js +1 -1
  61. package/modern/index.js +0 -13
  62. package/modern/text/component.js +2 -4
  63. package/modern/text/index.css +20 -20
  64. package/modern/text/index.js +0 -7
  65. package/modern/title/common.css +8 -5
  66. package/modern/title/component.d.ts +7 -6
  67. package/modern/title/component.js +4 -5
  68. package/modern/title/index.css +19 -19
  69. package/modern/title/index.d.ts +1 -1
  70. package/modern/title/index.js +4 -10
  71. package/modern/title/utils.d.ts +2 -0
  72. package/modern/title/utils.js +11 -0
  73. package/modern/title-mobile/component.d.ts +1 -1
  74. package/modern/title-mobile/component.js +4 -10
  75. package/modern/title-mobile/index.css +11 -11
  76. package/modern/title-mobile/index.js +0 -9
  77. package/modern/title-responsive/component.d.ts +1 -1
  78. package/modern/title-responsive/component.js +8 -10
  79. package/modern/title-responsive/index.css +31 -31
  80. package/modern/title-responsive/index.js +0 -9
  81. package/package.json +2 -1
  82. package/src/title/common.module.css +4 -0
  83. package/src/title/component.tsx +8 -4
  84. package/src/title/index.tsx +7 -2
  85. package/src/title/utils.ts +11 -0
  86. package/src/title-mobile/component.tsx +9 -2
  87. package/src/title-responsive/component.tsx +15 -2
  88. package/text/component.js +2 -4
  89. package/text/index.css +20 -20
  90. package/text/index.js +0 -8
  91. package/title/common.css +8 -5
  92. package/title/component.d.ts +7 -6
  93. package/title/component.js +5 -6
  94. package/title/index.css +19 -19
  95. package/title/index.d.ts +1 -1
  96. package/title/index.js +3 -9
  97. package/title/utils.d.ts +2 -0
  98. package/title/utils.js +15 -0
  99. package/title-mobile/component.d.ts +1 -1
  100. package/title-mobile/component.js +3 -9
  101. package/title-mobile/index.css +11 -11
  102. package/title-mobile/index.js +0 -10
  103. package/title-responsive/component.d.ts +1 -1
  104. package/title-responsive/component.js +7 -9
  105. package/title-responsive/index.css +31 -31
  106. package/title-responsive/index.js +0 -10
  107. package/colors.module-120e4dd7.js +0 -6
  108. package/common.module-4389487a.js +0 -6
  109. package/esm/colors.module-3119b191.js +0 -4
  110. package/esm/common.module-ec992380.js +0 -4
  111. package/modern/colors.module-93e1488b.js +0 -4
  112. package/modern/common.module-0bb3a173.js +0 -4
package/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1l8lq */
1
+ /* hash: y3h0h */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-accent: #ef3124;
@@ -33,42 +33,42 @@
33
33
  } :root {
34
34
  } :root {
35
35
  } :root {
36
- } /* colors */ .typography__tertiary_y12u3 {
36
+ } /* colors */ .typography__tertiary_e4qmo {
37
37
  color: var(--color-light-text-tertiary);
38
- } .typography__disabled_y12u3 {
38
+ } .typography__disabled_e4qmo {
39
39
  color: var(--color-light-text-disabled);
40
- } .typography__accent_y12u3 {
40
+ } .typography__accent_e4qmo {
41
41
  color: var(--color-light-text-accent);
42
- } .typography__primary_y12u3 {
42
+ } .typography__primary_e4qmo {
43
43
  color: var(--color-light-text-primary);
44
- } .typography__attention_y12u3 {
44
+ } .typography__attention_e4qmo {
45
45
  color: var(--color-light-text-attention);
46
- } .typography__positive_y12u3 {
46
+ } .typography__positive_e4qmo {
47
47
  color: var(--color-light-text-positive);
48
- } .typography__secondary_y12u3 {
48
+ } .typography__secondary_e4qmo {
49
49
  color: var(--color-light-text-secondary);
50
- } .typography__tertiary-inverted_y12u3 {
50
+ } .typography__tertiary-inverted_e4qmo {
51
51
  color: var(--color-light-text-tertiary-inverted);
52
- } .typography__primary-inverted_y12u3 {
52
+ } .typography__primary-inverted_e4qmo {
53
53
  color: var(--color-light-text-primary-inverted);
54
- } .typography__secondary-inverted_y12u3 {
54
+ } .typography__secondary-inverted_e4qmo {
55
55
  color: var(--color-light-text-secondary-inverted);
56
- } .typography__link_y12u3 {
56
+ } .typography__link_e4qmo {
57
57
  color: var(--color-light-text-link);
58
- } .typography__negative_y12u3 {
58
+ } .typography__negative_e4qmo {
59
59
  color: var(--color-light-text-negative);
60
- } .typography__static-primary-light_y12u3 {
60
+ } .typography__static-primary-light_e4qmo {
61
61
  color: var(--color-static-text-primary-light);
62
- } .typography__static-secondary-light_y12u3 {
62
+ } .typography__static-secondary-light_e4qmo {
63
63
  color: var(--color-static-text-secondary-light);
64
- } .typography__static-tertiary-light_y12u3 {
64
+ } .typography__static-tertiary-light_e4qmo {
65
65
  color: var(--color-static-text-tertiary-light);
66
- } .typography__static-primary-dark_y12u3 {
66
+ } .typography__static-primary-dark_e4qmo {
67
67
  color: var(--color-static-text-primary-dark);
68
- } .typography__static-secondary-dark_y12u3 {
68
+ } .typography__static-secondary-dark_e4qmo {
69
69
  color: var(--color-static-text-secondary-dark);
70
- } .typography__static-tertiary-dark_y12u3 {
70
+ } .typography__static-tertiary-dark_e4qmo {
71
71
  color: var(--color-static-text-tertiary-dark);
72
- } .typography__static-accent_y12u3 {
72
+ } .typography__static-accent_e4qmo {
73
73
  color: var(--color-static-text-accent);
74
74
  }
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var colors = {"tertiary":"typography__tertiary_e4qmo","disabled":"typography__disabled_e4qmo","accent":"typography__accent_e4qmo","primary":"typography__primary_e4qmo","attention":"typography__attention_e4qmo","positive":"typography__positive_e4qmo","secondary":"typography__secondary_e4qmo","tertiary-inverted":"typography__tertiary-inverted_e4qmo","primary-inverted":"typography__primary-inverted_e4qmo","secondary-inverted":"typography__secondary-inverted_e4qmo","link":"typography__link_e4qmo","negative":"typography__negative_e4qmo","static-primary-light":"typography__static-primary-light_e4qmo","static-secondary-light":"typography__static-secondary-light_e4qmo","static-tertiary-light":"typography__static-tertiary-light_e4qmo","static-primary-dark":"typography__static-primary-dark_e4qmo","static-secondary-dark":"typography__static-secondary-dark_e4qmo","static-tertiary-dark":"typography__static-tertiary-dark_e4qmo","static-accent":"typography__static-accent_e4qmo"};
4
+ require('./colors.css')
5
+
6
+ exports.colors = colors;
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var commonStyles = {"component":"typography__component_1j0sv","bold":"typography__bold_1j0sv","semibold":"typography__semibold_1j0sv","medium":"typography__medium_1j0sv","regular":"typography__regular_1j0sv"};
4
+ require('./title/common.css')
5
+
6
+ exports.commonStyles = commonStyles;
package/component.js CHANGED
@@ -6,16 +6,6 @@ var text_component = require('./text/component.js');
6
6
  var title_index = require('./title/index.js');
7
7
  var titleMobile_component = require('./title-mobile/component.js');
8
8
  var titleResponsive_component = require('./title-responsive/component.js');
9
- require('tslib');
10
- require('react');
11
- require('react-merge-refs');
12
- require('classnames');
13
- require('./hooks/use-skeleton.js');
14
- require('@alfalab/core-components-skeleton');
15
- require('@alfalab/hooks');
16
- require('./colors.module-120e4dd7.js');
17
- require('./title/component.js');
18
- require('./common.module-4389487a.js');
19
9
 
20
10
  var Typography = {
21
11
  Title: title_index.Title,
package/cssm/component.js CHANGED
@@ -6,21 +6,6 @@ var text_component = require('./text/component.js');
6
6
  var title_index = require('./title/index.js');
7
7
  var titleMobile_component = require('./title-mobile/component.js');
8
8
  var titleResponsive_component = require('./title-responsive/component.js');
9
- require('tslib');
10
- require('react');
11
- require('react-merge-refs');
12
- require('classnames');
13
- require('./hooks/use-skeleton.js');
14
- require('@alfalab/core-components-skeleton/cssm');
15
- require('@alfalab/hooks');
16
- require('./hooks/use-skeleton.module.css');
17
- require('./colors.module.css');
18
- require('./text/index.module.css');
19
- require('./title/component.js');
20
- require('./title/common.module.css');
21
- require('./title/index.module.css');
22
- require('./title-mobile/index.module.css');
23
- require('./title-responsive/index.module.css');
24
9
 
25
10
  var Typography = {
26
11
  Title: title_index.Title,
@@ -3,12 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var hooks_useSkeleton = require('./use-skeleton.js');
6
- require('tslib');
7
- require('react');
8
- require('classnames');
9
- require('@alfalab/core-components-skeleton/cssm');
10
- require('@alfalab/hooks');
11
- require('./use-skeleton.module.css');
12
6
 
13
7
 
14
8
 
package/cssm/index.js CHANGED
@@ -4,25 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var component = require('./component.js');
6
6
  var presets = require('./presets.js');
7
- require('./text/component.js');
8
- require('tslib');
9
- require('react');
10
- require('react-merge-refs');
11
- require('classnames');
12
- require('./hooks/use-skeleton.js');
13
- require('@alfalab/core-components-skeleton/cssm');
14
- require('@alfalab/hooks');
15
- require('./hooks/use-skeleton.module.css');
16
- require('./colors.module.css');
17
- require('./text/index.module.css');
18
- require('./title/index.js');
19
- require('./title/component.js');
20
- require('./title/common.module.css');
21
- require('./title/index.module.css');
22
- require('./title-mobile/component.js');
23
- require('./title-mobile/index.module.css');
24
- require('./title-responsive/component.js');
25
- require('./title-responsive/index.module.css');
26
7
 
27
8
 
28
9
 
@@ -9,9 +9,6 @@ var cn = require('classnames');
9
9
  var hooks_useSkeleton = require('../hooks/use-skeleton.js');
10
10
  var colors = require('../colors.module.css');
11
11
  var styles = require('./index.module.css');
12
- require('@alfalab/core-components-skeleton/cssm');
13
- require('@alfalab/hooks');
14
- require('../hooks/use-skeleton.module.css');
15
12
 
16
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
14
 
@@ -3,16 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var text_component = require('./component.js');
6
- require('tslib');
7
- require('react');
8
- require('react-merge-refs');
9
- require('classnames');
10
- require('../hooks/use-skeleton.js');
11
- require('@alfalab/core-components-skeleton/cssm');
12
- require('@alfalab/hooks');
13
- require('../hooks/use-skeleton.module.css');
14
- require('../colors.module.css');
15
- require('./index.module.css');
16
6
 
17
7
 
18
8
 
@@ -5,6 +5,9 @@
5
5
  .component.bold {
6
6
  font-weight: bold;
7
7
  }
8
+ .component.semibold {
9
+ font-weight: 600;
10
+ }
8
11
  .component.medium {
9
12
  font-weight: 500;
10
13
  }
@@ -20,7 +20,7 @@ type TitleProps = Omit<NativeProps, 'color'> & {
20
20
  /**
21
21
  * Толщина шрифта
22
22
  */
23
- weight?: 'regular' | 'medium' | 'bold';
23
+ weight?: 'regular' | 'medium' | 'bold' | 'semibold';
24
24
  /**
25
25
  * Шрифт текста
26
26
  */
@@ -54,13 +54,14 @@ type TitleProps = Omit<NativeProps, 'color'> & {
54
54
  */
55
55
  skeletonProps?: TextSkeletonProps;
56
56
  };
57
- type Styles = {
57
+ type PrivateProps = {
58
58
  styles: {
59
59
  [key: string]: string;
60
60
  };
61
+ platform: 'mobile' | 'desktop';
61
62
  };
62
63
  type TitleElementType = HTMLHeadingElement | HTMLDivElement;
63
- declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
64
+ declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
64
65
  /**
65
66
  * HTML тег
66
67
  */
@@ -76,7 +77,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
76
77
  /**
77
78
  * Толщина шрифта
78
79
  */
79
- weight?: "bold" | "regular" | "medium" | undefined;
80
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
80
81
  /**
81
82
  * Шрифт текста
82
83
  */
@@ -109,5 +110,5 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
109
110
  * Пропы для скелетона
110
111
  */
111
112
  skeletonProps?: TextSkeletonProps | undefined;
112
- } & Styles & React.RefAttributes<TitleElementType>>;
113
- export { TitleProps, Title };
113
+ } & PrivateProps & React.RefAttributes<TitleElementType>>;
114
+ export { TitleProps, TitleBase };
@@ -7,10 +7,8 @@ var React = require('react');
7
7
  var mergeRefs = require('react-merge-refs');
8
8
  var cn = require('classnames');
9
9
  var hooks_useSkeleton = require('../hooks/use-skeleton.js');
10
+ var title_utils = require('./utils.js');
10
11
  var colors = require('../colors.module.css');
11
- require('@alfalab/core-components-skeleton/cssm');
12
- require('@alfalab/hooks');
13
- require('../hooks/use-skeleton.module.css');
14
12
 
15
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
16
14
 
@@ -19,9 +17,9 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
19
17
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
20
18
  var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
21
19
 
22
- var Title = React.forwardRef(function (_a, ref) {
20
+ var TitleBase = React.forwardRef(function (_a, ref) {
23
21
  var _b;
24
- var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d, _e = _a.font, font = _e === void 0 ? 'styrene' : _e, _f = _a.weight, weight = _f === void 0 ? font === 'styrene' ? 'medium' : 'bold' : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? false : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = tslib.__rest(_a, ["tag", "view", "font", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
22
+ var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d, _e = _a.font, font = _e === void 0 ? 'styrene' : _e, platform = _a.platform, _f = _a.weight, weight = _f === void 0 ? title_utils.getDefaultWeight(font, platform) : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? false : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = tslib.__rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
25
23
  var _h = hooks_useSkeleton.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
26
24
  var skeleton = renderSkeleton({
27
25
  wrapperClassName: cn__default.default(defaultMargins && styles["margins-".concat(view)]),
@@ -33,4 +31,4 @@ var Title = React.forwardRef(function (_a, ref) {
33
31
  return (React__default.default.createElement(Component, tslib.__assign({ className: cn__default.default(styles.component, className, styles["".concat(font, "-").concat(view)], defaultMargins && styles["margins-".concat(view)], styles[weight], color && colors__default.default[color], (_b = {}, _b[styles["rowLimit".concat(rowLimit)]] = rowLimit, _b)), "data-test-id": dataTestId, ref: mergeRefs__default.default([ref, textRef]) }, restProps), children));
34
32
  });
35
33
 
36
- exports.Title = Title;
34
+ exports.TitleBase = TitleBase;
@@ -5,7 +5,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<H
5
5
  tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
6
6
  view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
7
7
  color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | "static-accent" | undefined;
8
- weight?: "bold" | "regular" | "medium" | undefined;
8
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
9
9
  font?: "styrene" | "system" | undefined;
10
10
  defaultMargins?: boolean | undefined;
11
11
  className?: string | undefined;
@@ -7,13 +7,6 @@ var React = require('react');
7
7
  var title_component = require('./component.js');
8
8
  var commonStyles = require('./common.module.css');
9
9
  var styles = require('./index.module.css');
10
- require('react-merge-refs');
11
- require('classnames');
12
- require('../hooks/use-skeleton.js');
13
- require('@alfalab/core-components-skeleton/cssm');
14
- require('@alfalab/hooks');
15
- require('../hooks/use-skeleton.module.css');
16
- require('../colors.module.css');
17
10
 
18
11
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
19
12
 
@@ -21,6 +14,6 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
21
14
  var commonStyles__default = /*#__PURE__*/_interopDefaultCompat(commonStyles);
22
15
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
23
16
 
24
- var Title = React.forwardRef(function (props, ref) { return (React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default), ref: ref }))); });
17
+ var Title = React.forwardRef(function (props, ref) { return (React__default.default.createElement(title_component.TitleBase, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default), ref: ref, platform: 'desktop' }))); });
25
18
 
26
19
  exports.Title = Title;
@@ -0,0 +1,2 @@
1
+ declare function getDefaultWeight(font: 'styrene' | 'system', platform: 'mobile' | 'desktop'): "medium" | "bold" | "semibold";
2
+ export { getDefaultWeight };
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function getDefaultWeight(font, platform) {
6
+ if (font === 'styrene') {
7
+ return 'medium';
8
+ }
9
+ if (platform === 'desktop') {
10
+ return 'bold';
11
+ }
12
+ return 'semibold';
13
+ }
14
+
15
+ exports.getDefaultWeight = getDefaultWeight;
@@ -6,7 +6,7 @@ declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTMLAttrib
6
6
  tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
7
7
  view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
8
8
  color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | "static-accent" | undefined;
9
- weight?: "bold" | "regular" | "medium" | undefined;
9
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
10
10
  font?: "styrene" | "system" | undefined;
11
11
  defaultMargins?: boolean | undefined;
12
12
  className?: string | undefined;
@@ -7,13 +7,6 @@ var React = require('react');
7
7
  var title_component = require('../title/component.js');
8
8
  var commonStyles = require('../title/common.module.css');
9
9
  var styles = require('./index.module.css');
10
- require('react-merge-refs');
11
- require('classnames');
12
- require('../hooks/use-skeleton.js');
13
- require('@alfalab/core-components-skeleton/cssm');
14
- require('@alfalab/hooks');
15
- require('../hooks/use-skeleton.module.css');
16
- require('../colors.module.css');
17
10
 
18
11
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
19
12
 
@@ -21,6 +14,6 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
21
14
  var commonStyles__default = /*#__PURE__*/_interopDefaultCompat(commonStyles);
22
15
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
23
16
 
24
- var TitleMobile = React.forwardRef(function (props, ref) { return React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default), ref: ref })); });
17
+ var TitleMobile = React.forwardRef(function (props, ref) { return (React__default.default.createElement(title_component.TitleBase, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default), ref: ref, platform: 'mobile' }))); });
25
18
 
26
19
  exports.TitleMobile = TitleMobile;
@@ -3,18 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var titleMobile_component = require('./component.js');
6
- require('tslib');
7
- require('react');
8
- require('../title/component.js');
9
- require('react-merge-refs');
10
- require('classnames');
11
- require('../hooks/use-skeleton.js');
12
- require('@alfalab/core-components-skeleton/cssm');
13
- require('@alfalab/hooks');
14
- require('../hooks/use-skeleton.module.css');
15
- require('../colors.module.css');
16
- require('../title/common.module.css');
17
- require('./index.module.css');
18
6
 
19
7
 
20
8
 
@@ -4,7 +4,7 @@ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAt
4
4
  tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
5
5
  view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
6
6
  color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | "static-accent" | undefined;
7
- weight?: "bold" | "regular" | "medium" | undefined;
7
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
8
8
  font?: "styrene" | "system" | undefined;
9
9
  defaultMargins?: boolean | undefined;
10
10
  className?: string | undefined;
@@ -4,16 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib = require('tslib');
6
6
  var React = require('react');
7
+ var coreComponentsMq = require('@alfalab/core-components-mq/cssm');
7
8
  var title_component = require('../title/component.js');
8
9
  var commonStyles = require('../title/common.module.css');
9
10
  var styles = require('./index.module.css');
10
- require('react-merge-refs');
11
- require('classnames');
12
- require('../hooks/use-skeleton.js');
13
- require('@alfalab/core-components-skeleton/cssm');
14
- require('@alfalab/hooks');
15
- require('../hooks/use-skeleton.module.css');
16
- require('../colors.module.css');
17
11
 
18
12
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
19
13
 
@@ -21,6 +15,9 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
21
15
  var commonStyles__default = /*#__PURE__*/_interopDefaultCompat(commonStyles);
22
16
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
23
17
 
24
- var TitleResponsive = React.forwardRef(function (props, ref) { return React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default), ref: ref })); });
18
+ var TitleResponsive = React.forwardRef(function (props, ref) {
19
+ var isDesktop = coreComponentsMq.useMatchMedia('(min-width: 1024px)')[0];
20
+ return (React__default.default.createElement(title_component.TitleBase, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default), ref: ref, platform: isDesktop ? 'desktop' : 'mobile' })));
21
+ });
25
22
 
26
23
  exports.TitleResponsive = TitleResponsive;
@@ -3,18 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var titleResponsive_component = require('./component.js');
6
- require('tslib');
7
- require('react');
8
- require('../title/component.js');
9
- require('react-merge-refs');
10
- require('classnames');
11
- require('../hooks/use-skeleton.js');
12
- require('@alfalab/core-components-skeleton/cssm');
13
- require('@alfalab/hooks');
14
- require('../hooks/use-skeleton.module.css');
15
- require('../colors.module.css');
16
- require('../title/common.module.css');
17
- require('./index.module.css');
18
6
 
19
7
 
20
8
 
package/esm/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1l8lq */
1
+ /* hash: y3h0h */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-accent: #ef3124;
@@ -33,42 +33,42 @@
33
33
  } :root {
34
34
  } :root {
35
35
  } :root {
36
- } /* colors */ .typography__tertiary_y12u3 {
36
+ } /* colors */ .typography__tertiary_e4qmo {
37
37
  color: var(--color-light-text-tertiary);
38
- } .typography__disabled_y12u3 {
38
+ } .typography__disabled_e4qmo {
39
39
  color: var(--color-light-text-disabled);
40
- } .typography__accent_y12u3 {
40
+ } .typography__accent_e4qmo {
41
41
  color: var(--color-light-text-accent);
42
- } .typography__primary_y12u3 {
42
+ } .typography__primary_e4qmo {
43
43
  color: var(--color-light-text-primary);
44
- } .typography__attention_y12u3 {
44
+ } .typography__attention_e4qmo {
45
45
  color: var(--color-light-text-attention);
46
- } .typography__positive_y12u3 {
46
+ } .typography__positive_e4qmo {
47
47
  color: var(--color-light-text-positive);
48
- } .typography__secondary_y12u3 {
48
+ } .typography__secondary_e4qmo {
49
49
  color: var(--color-light-text-secondary);
50
- } .typography__tertiary-inverted_y12u3 {
50
+ } .typography__tertiary-inverted_e4qmo {
51
51
  color: var(--color-light-text-tertiary-inverted);
52
- } .typography__primary-inverted_y12u3 {
52
+ } .typography__primary-inverted_e4qmo {
53
53
  color: var(--color-light-text-primary-inverted);
54
- } .typography__secondary-inverted_y12u3 {
54
+ } .typography__secondary-inverted_e4qmo {
55
55
  color: var(--color-light-text-secondary-inverted);
56
- } .typography__link_y12u3 {
56
+ } .typography__link_e4qmo {
57
57
  color: var(--color-light-text-link);
58
- } .typography__negative_y12u3 {
58
+ } .typography__negative_e4qmo {
59
59
  color: var(--color-light-text-negative);
60
- } .typography__static-primary-light_y12u3 {
60
+ } .typography__static-primary-light_e4qmo {
61
61
  color: var(--color-static-text-primary-light);
62
- } .typography__static-secondary-light_y12u3 {
62
+ } .typography__static-secondary-light_e4qmo {
63
63
  color: var(--color-static-text-secondary-light);
64
- } .typography__static-tertiary-light_y12u3 {
64
+ } .typography__static-tertiary-light_e4qmo {
65
65
  color: var(--color-static-text-tertiary-light);
66
- } .typography__static-primary-dark_y12u3 {
66
+ } .typography__static-primary-dark_e4qmo {
67
67
  color: var(--color-static-text-primary-dark);
68
- } .typography__static-secondary-dark_y12u3 {
68
+ } .typography__static-secondary-dark_e4qmo {
69
69
  color: var(--color-static-text-secondary-dark);
70
- } .typography__static-tertiary-dark_y12u3 {
70
+ } .typography__static-tertiary-dark_e4qmo {
71
71
  color: var(--color-static-text-tertiary-dark);
72
- } .typography__static-accent_y12u3 {
72
+ } .typography__static-accent_e4qmo {
73
73
  color: var(--color-static-text-accent);
74
74
  }
@@ -0,0 +1,4 @@
1
+ var colors = {"tertiary":"typography__tertiary_e4qmo","disabled":"typography__disabled_e4qmo","accent":"typography__accent_e4qmo","primary":"typography__primary_e4qmo","attention":"typography__attention_e4qmo","positive":"typography__positive_e4qmo","secondary":"typography__secondary_e4qmo","tertiary-inverted":"typography__tertiary-inverted_e4qmo","primary-inverted":"typography__primary-inverted_e4qmo","secondary-inverted":"typography__secondary-inverted_e4qmo","link":"typography__link_e4qmo","negative":"typography__negative_e4qmo","static-primary-light":"typography__static-primary-light_e4qmo","static-secondary-light":"typography__static-secondary-light_e4qmo","static-tertiary-light":"typography__static-tertiary-light_e4qmo","static-primary-dark":"typography__static-primary-dark_e4qmo","static-secondary-dark":"typography__static-secondary-dark_e4qmo","static-tertiary-dark":"typography__static-tertiary-dark_e4qmo","static-accent":"typography__static-accent_e4qmo"};
2
+ require('./colors.css')
3
+
4
+ export { colors as c };
@@ -0,0 +1,4 @@
1
+ var commonStyles = {"component":"typography__component_1j0sv","bold":"typography__bold_1j0sv","semibold":"typography__semibold_1j0sv","medium":"typography__medium_1j0sv","regular":"typography__regular_1j0sv"};
2
+ require('./title/common.css')
3
+
4
+ export { commonStyles as c };
package/esm/component.js CHANGED
@@ -2,16 +2,6 @@ import { Text } from './text/component.js';
2
2
  import { Title } from './title/index.js';
3
3
  import { TitleMobile } from './title-mobile/component.js';
4
4
  import { TitleResponsive } from './title-responsive/component.js';
5
- import 'tslib';
6
- import 'react';
7
- import 'react-merge-refs';
8
- import 'classnames';
9
- import './hooks/use-skeleton.js';
10
- import '@alfalab/core-components-skeleton/esm';
11
- import '@alfalab/hooks';
12
- import './colors.module-3119b191.js';
13
- import './title/component.js';
14
- import './common.module-ec992380.js';
15
5
 
16
6
  var Typography = {
17
7
  Title: Title,
@@ -1,6 +1 @@
1
1
  export { useSkeleton } from './use-skeleton.js';
2
- import 'tslib';
3
- import 'react';
4
- import 'classnames';
5
- import '@alfalab/core-components-skeleton/esm';
6
- import '@alfalab/hooks';
@@ -1,4 +1,4 @@
1
- /* hash: xr1vg */
1
+ /* hash: lbgzz */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,12 +15,12 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .typography__skeletonText_1d750.typography__skeletonText_1d750 {
18
+ } .typography__skeletonText_1kymn.typography__skeletonText_1kymn {
19
19
  border-radius: var(--border-radius-pill);
20
- } .typography__left_1d750 > div {
20
+ } .typography__left_1kymn > div {
21
21
  margin-right: auto;
22
- } .typography__center_1d750 > div {
22
+ } .typography__center_1kymn > div {
23
23
  margin: 0 auto;
24
- } .typography__right_1d750 > div {
24
+ } .typography__right_1kymn > div {
25
25
  margin-left: auto;
26
26
  }
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { Skeleton } from '@alfalab/core-components-skeleton/esm';
5
5
  import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
6
6
 
7
- var styles = {"skeletonText":"typography__skeletonText_1d750","left":"typography__left_1d750","center":"typography__center_1d750","right":"typography__right_1d750"};
7
+ var styles = {"skeletonText":"typography__skeletonText_1kymn","left":"typography__left_1kymn","center":"typography__center_1kymn","right":"typography__right_1kymn"};
8
8
  require('./use-skeleton.css')
9
9
 
10
10
  function useSkeleton(showSkeleton, skeletonProps) {
package/esm/index.js CHANGED
@@ -1,16 +1,2 @@
1
1
  export { Typography } from './component.js';
2
2
  export { typographyPresets } from './presets.js';
3
- import './text/component.js';
4
- import 'tslib';
5
- import 'react';
6
- import 'react-merge-refs';
7
- import 'classnames';
8
- import './hooks/use-skeleton.js';
9
- import '@alfalab/core-components-skeleton/esm';
10
- import '@alfalab/hooks';
11
- import './colors.module-3119b191.js';
12
- import './title/index.js';
13
- import './title/component.js';
14
- import './common.module-ec992380.js';
15
- import './title-mobile/component.js';
16
- import './title-responsive/component.js';
@@ -3,11 +3,9 @@ import React, { forwardRef } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
5
  import { useSkeleton } from '../hooks/use-skeleton.js';
6
- import { c as colors } from '../colors.module-3119b191.js';
7
- import '@alfalab/core-components-skeleton/esm';
8
- import '@alfalab/hooks';
6
+ import { c as colors } from '../colors.module-8bcdca4a.js';
9
7
 
10
- var styles = {"paragraph":"typography__paragraph_10zie","paragraphWithMargins":"typography__paragraphWithMargins_10zie","primary-large":"typography__primary-large_10zie","primary-medium":"typography__primary-medium_10zie","primary-small":"typography__primary-small_10zie","secondary-large":"typography__secondary-large_10zie","secondary-medium":"typography__secondary-medium_10zie","secondary-small":"typography__secondary-small_10zie","component":"typography__component_10zie","component-primary":"typography__component-primary_10zie","component-secondary":"typography__component-secondary_10zie","caps":"typography__caps_10zie","bold":"typography__bold_10zie","medium":"typography__medium_10zie","regular":"typography__regular_10zie","monospace":"typography__monospace_10zie","rowLimit1":"typography__rowLimit1_10zie","rowLimit2":"typography__rowLimit2_10zie","rowLimit3":"typography__rowLimit3_10zie"};
8
+ var styles = {"paragraph":"typography__paragraph_1oeg2","paragraphWithMargins":"typography__paragraphWithMargins_1oeg2","primary-large":"typography__primary-large_1oeg2","primary-medium":"typography__primary-medium_1oeg2","primary-small":"typography__primary-small_1oeg2","secondary-large":"typography__secondary-large_1oeg2","secondary-medium":"typography__secondary-medium_1oeg2","secondary-small":"typography__secondary-small_1oeg2","component":"typography__component_1oeg2","component-primary":"typography__component-primary_1oeg2","component-secondary":"typography__component-secondary_1oeg2","caps":"typography__caps_1oeg2","bold":"typography__bold_1oeg2","medium":"typography__medium_1oeg2","regular":"typography__regular_1oeg2","monospace":"typography__monospace_1oeg2","rowLimit1":"typography__rowLimit1_1oeg2","rowLimit2":"typography__rowLimit2_1oeg2","rowLimit3":"typography__rowLimit3_1oeg2"};
11
9
  require('./index.css')
12
10
 
13
11
  var logWarning = function (view) {