@alfalab/core-components-typography 3.0.2 → 3.0.3

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 (90) hide show
  1. package/colors.css +18 -18
  2. package/{colors.module-2cc8e807.d.ts → colors.module-2ba58573.d.ts} +8 -4
  3. package/{colors.module-2cc8e807.js → colors.module-2ba58573.js} +2 -2
  4. package/common.module-c7b5f1ff.js +6 -0
  5. package/component.d.ts +1 -1
  6. package/component.js +4 -4
  7. package/cssm/colors.module.css +5 -5
  8. package/cssm/component.d.ts +1 -1
  9. package/cssm/component.js +5 -5
  10. package/cssm/index.d.ts +3 -3
  11. package/cssm/index.js +5 -5
  12. package/cssm/text/component.d.ts +3 -3
  13. package/cssm/text/component.js +1 -1
  14. package/cssm/text/index.js +1 -1
  15. package/cssm/title/component.d.ts +4 -4
  16. package/cssm/title/component.js +1 -1
  17. package/cssm/title/index.js +7 -8
  18. package/cssm/title-mobile/component.js +1 -1
  19. package/cssm/title-mobile/index.js +1 -1
  20. package/cssm/title-responsive/component.js +1 -1
  21. package/cssm/title-responsive/index.js +1 -1
  22. package/{esm/colors.module-6065797e.d.ts → cssm/tslib.es6-9682e485.d.ts} +8 -4
  23. package/cssm/{tslib.es6-ce870b46.js → tslib.es6-9682e485.js} +1 -1
  24. package/esm/colors.css +18 -18
  25. package/{cssm/tslib.es6-ce870b46.d.ts → esm/colors.module-b694324b.d.ts} +8 -4
  26. package/esm/{colors.module-6065797e.js → colors.module-b694324b.js} +2 -2
  27. package/esm/common.module-6a9b5b80.js +4 -0
  28. package/esm/component.d.ts +1 -1
  29. package/esm/component.js +4 -4
  30. package/esm/index.d.ts +3 -3
  31. package/esm/index.js +4 -4
  32. package/esm/text/component.d.ts +3 -3
  33. package/esm/text/component.js +2 -2
  34. package/esm/text/index.css +14 -14
  35. package/esm/text/index.js +1 -1
  36. package/esm/title/common.css +5 -5
  37. package/esm/title/component.d.ts +4 -4
  38. package/esm/title/component.js +1 -1
  39. package/esm/title/index.css +19 -19
  40. package/esm/title/index.js +9 -10
  41. package/esm/title-mobile/component.js +3 -3
  42. package/esm/title-mobile/index.css +14 -14
  43. package/esm/title-mobile/index.js +2 -2
  44. package/esm/title-responsive/component.js +3 -3
  45. package/esm/title-responsive/index.css +41 -41
  46. package/esm/title-responsive/index.js +2 -2
  47. package/index.d.ts +3 -3
  48. package/index.js +4 -4
  49. package/modern/colors.css +18 -18
  50. package/modern/colors.module-3475616e.js +4 -0
  51. package/modern/common.module-6a9b5b80.js +4 -0
  52. package/modern/component.d.ts +1 -1
  53. package/modern/component.js +4 -4
  54. package/modern/index.d.ts +3 -3
  55. package/modern/index.js +4 -4
  56. package/modern/text/component.d.ts +3 -3
  57. package/modern/text/component.js +3 -3
  58. package/modern/text/index.css +14 -14
  59. package/modern/text/index.js +1 -1
  60. package/modern/title/common.css +5 -5
  61. package/modern/title/component.d.ts +4 -4
  62. package/modern/title/component.js +2 -2
  63. package/modern/title/index.css +19 -19
  64. package/modern/title/index.js +9 -10
  65. package/modern/title-mobile/component.js +9 -10
  66. package/modern/title-mobile/index.css +14 -14
  67. package/modern/title-mobile/index.js +2 -2
  68. package/modern/title-responsive/component.js +9 -10
  69. package/modern/title-responsive/index.css +41 -41
  70. package/modern/title-responsive/index.js +2 -2
  71. package/package.json +1 -1
  72. package/text/component.d.ts +3 -3
  73. package/text/component.js +2 -2
  74. package/text/index.css +14 -14
  75. package/text/index.js +1 -1
  76. package/title/common.css +5 -5
  77. package/title/component.d.ts +4 -4
  78. package/title/component.js +1 -1
  79. package/title/index.css +19 -19
  80. package/title/index.js +9 -10
  81. package/title-mobile/component.js +3 -3
  82. package/title-mobile/index.css +14 -14
  83. package/title-mobile/index.js +2 -2
  84. package/title-responsive/component.js +3 -3
  85. package/title-responsive/index.css +41 -41
  86. package/title-responsive/index.js +2 -2
  87. package/common.module-0606ddd8.js +0 -6
  88. package/esm/common.module-879f9853.js +0 -4
  89. package/modern/colors.module-4a1750d9.js +0 -4
  90. package/modern/common.module-879f9853.js +0 -4
@@ -47,15 +47,15 @@ type Styles = {
47
47
  };
48
48
  };
49
49
  type TitleElementType = HTMLHeadingElement | HTMLDivElement;
50
- declare const Title: React.ForwardRefExoticComponent<Pick<NativeProps, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
50
+ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
51
51
  /**
52
52
  * HTML тег
53
53
  */
54
- tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
54
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
55
55
  /**
56
56
  * [Вариант начертания](https://alfa-laboratory.github.io/core-components/master/?path=/docs/гайдлайны-типографика--page)
57
57
  */
58
- view?: "xlarge" | "large" | "medium" | "small" | "xsmall" | undefined;
58
+ view?: "medium" | "small" | "xlarge" | "large" | "xsmall" | undefined;
59
59
  /**
60
60
  * Цвет текста
61
61
  */
@@ -63,7 +63,7 @@ declare const Title: React.ForwardRefExoticComponent<Pick<NativeProps, "defaultC
63
63
  /**
64
64
  * Толщина шрифта
65
65
  */
66
- weight?: "medium" | "regular" | "bold" | undefined;
66
+ weight?: "regular" | "medium" | "bold" | undefined;
67
67
  /**
68
68
  * Шрифт текста
69
69
  */
@@ -1,7 +1,7 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import cn from 'classnames';
3
- import { c as colors } from '../colors.module-4a1750d9.js';
3
+ import { c as colors } from '../colors.module-3475616e.js';
4
4
 
5
- const Title = forwardRef(({ tag: Component = 'div', view = 'medium', font = 'styrene', weight = font === 'styrene' ? 'medium' : 'bold', defaultMargins = false, color, className, dataTestId, children, styles, ...restProps }, ref) => (React.createElement(Component, Object.assign({ className: cn(styles.component, className, styles[`${font}-${view}`], defaultMargins && styles[`margins-${view}`], styles[weight], color && colors[color]), "data-test-id": dataTestId, ref: ref }, restProps), children)));
5
+ const Title = forwardRef(({ tag: Component = 'div', view = 'medium', font = 'styrene', weight = font === 'styrene' ? 'medium' : 'bold', defaultMargins = false, color, className, dataTestId, children, styles, ...restProps }, ref) => (React.createElement(Component, { className: cn(styles.component, className, styles[`${font}-${view}`], defaultMargins && styles[`margins-${view}`], styles[weight], color && colors[color]), "data-test-id": dataTestId, ref: ref, ...restProps }, children)));
6
6
 
7
7
  export { Title };
@@ -1,4 +1,4 @@
1
- /* hash: 52in9 */
1
+ /* hash: 153of */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -17,87 +17,87 @@
17
17
  --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
18
18
  'Helvetica Neue', Helvetica, sans-serif;
19
19
  }
20
- .typography__styrene-xlarge_7y5pk {
20
+ .typography__styrene-xlarge_1j68b {
21
21
  font-size: 48px;
22
22
  line-height: 64px;
23
23
  font-weight: 500;
24
24
  font-feature-settings: 'ss01';
25
25
  font-family: var(--font-family-styrene);
26
26
  }
27
- .typography__styrene-large_7y5pk {
27
+ .typography__styrene-large_1j68b {
28
28
  font-size: 40px;
29
29
  line-height: 48px;
30
30
  font-weight: 500;
31
31
  font-feature-settings: 'ss01';
32
32
  font-family: var(--font-family-styrene);
33
33
  }
34
- .typography__styrene-medium_7y5pk {
34
+ .typography__styrene-medium_1j68b {
35
35
  font-size: 32px;
36
36
  line-height: 40px;
37
37
  font-weight: 500;
38
38
  font-feature-settings: 'ss01';
39
39
  font-family: var(--font-family-styrene);
40
40
  }
41
- .typography__styrene-small_7y5pk {
41
+ .typography__styrene-small_1j68b {
42
42
  font-size: 24px;
43
43
  line-height: 32px;
44
44
  font-weight: 500;
45
45
  font-feature-settings: 'ss01';
46
46
  font-family: var(--font-family-styrene);
47
47
  }
48
- .typography__styrene-xsmall_7y5pk {
48
+ .typography__styrene-xsmall_1j68b {
49
49
  font-size: 20px;
50
50
  line-height: 24px;
51
51
  font-weight: 500;
52
52
  font-feature-settings: 'ss01';
53
53
  font-family: var(--font-family-styrene);
54
54
  }
55
- .typography__system-xlarge_7y5pk {
55
+ .typography__system-xlarge_1j68b {
56
56
  font-size: 48px;
57
57
  line-height: 52px;
58
58
  font-weight: 700;
59
59
  }
60
- .typography__system-large_7y5pk {
60
+ .typography__system-large_1j68b {
61
61
  font-size: 40px;
62
62
  line-height: 48px;
63
63
  font-weight: 700;
64
64
  }
65
- .typography__system-medium_7y5pk {
65
+ .typography__system-medium_1j68b {
66
66
  font-size: 30px;
67
67
  line-height: 36px;
68
68
  font-weight: 700;
69
69
  }
70
- .typography__system-small_7y5pk {
70
+ .typography__system-small_1j68b {
71
71
  font-size: 22px;
72
72
  line-height: 26px;
73
73
  font-weight: 700;
74
74
  }
75
- .typography__system-xsmall_7y5pk {
75
+ .typography__system-xsmall_1j68b {
76
76
  font-size: 18px;
77
77
  line-height: 22px;
78
78
  font-weight: 700;
79
79
  }
80
- .typography__margins-xlarge_7y5pk {
80
+ .typography__margins-xlarge_1j68b {
81
81
  margin: 0 0 var(--gap-xl);
82
82
  }
83
- .typography__margins-large_7y5pk {
83
+ .typography__margins-large_1j68b {
84
84
  margin: var(--gap-4xl) 0 var(--gap-xl);
85
85
  }
86
- .typography__margins-medium_7y5pk {
86
+ .typography__margins-medium_1j68b {
87
87
  margin: var(--gap-4xl) 0 var(--gap-xl);
88
88
  }
89
- .typography__margins-small_7y5pk {
89
+ .typography__margins-small_1j68b {
90
90
  margin: var(--gap-3xl) 0 var(--gap-m);
91
91
  }
92
- .typography__margins-xsmall_7y5pk {
92
+ .typography__margins-xsmall_1j68b {
93
93
  margin: var(--gap-3xl) 0 var(--gap-m);
94
94
  }
95
- .typography__bold_7y5pk {
95
+ .typography__bold_1j68b {
96
96
  font-weight: bold;
97
97
  }
98
- .typography__medium_7y5pk {
98
+ .typography__medium_1j68b {
99
99
  font-weight: 500;
100
100
  }
101
- .typography__regular_7y5pk {
101
+ .typography__regular_1j68b {
102
102
  font-weight: normal;
103
103
  }
@@ -1,18 +1,17 @@
1
1
  import React from 'react';
2
2
  import 'classnames';
3
- import '../colors.module-4a1750d9.js';
3
+ import '../colors.module-3475616e.js';
4
4
  import { Title as Title$1 } from './component.js';
5
- import { c as commonStyles } from '../common.module-879f9853.js';
5
+ import { c as commonStyles } from '../common.module-6a9b5b80.js';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_7y5pk","styrene-large":"typography__styrene-large_7y5pk","styrene-medium":"typography__styrene-medium_7y5pk","styrene-small":"typography__styrene-small_7y5pk","styrene-xsmall":"typography__styrene-xsmall_7y5pk","system-xlarge":"typography__system-xlarge_7y5pk","system-large":"typography__system-large_7y5pk","system-medium":"typography__system-medium_7y5pk","system-small":"typography__system-small_7y5pk","system-xsmall":"typography__system-xsmall_7y5pk","margins-xlarge":"typography__margins-xlarge_7y5pk","margins-large":"typography__margins-large_7y5pk","margins-medium":"typography__margins-medium_7y5pk","margins-small":"typography__margins-small_7y5pk","margins-xsmall":"typography__margins-xsmall_7y5pk","bold":"typography__bold_7y5pk","medium":"typography__medium_7y5pk","regular":"typography__regular_7y5pk"};
7
+ var styles = {"styrene-xlarge":"typography__styrene-xlarge_1j68b","styrene-large":"typography__styrene-large_1j68b","styrene-medium":"typography__styrene-medium_1j68b","styrene-small":"typography__styrene-small_1j68b","styrene-xsmall":"typography__styrene-xsmall_1j68b","system-xlarge":"typography__system-xlarge_1j68b","system-large":"typography__system-large_1j68b","system-medium":"typography__system-medium_1j68b","system-small":"typography__system-small_1j68b","system-xsmall":"typography__system-xsmall_1j68b","margins-xlarge":"typography__margins-xlarge_1j68b","margins-large":"typography__margins-large_1j68b","margins-medium":"typography__margins-medium_1j68b","margins-small":"typography__margins-small_1j68b","margins-xsmall":"typography__margins-xsmall_1j68b","bold":"typography__bold_1j68b","medium":"typography__medium_1j68b","regular":"typography__regular_1j68b"};
8
8
  require('./index.css')
9
9
 
10
- const Title = props => {
11
- /**
12
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
13
- * Видимо, это особенность работы jest и css-modules.
14
- */
15
- return React.createElement(Title$1, Object.assign({}, props, { styles: Object.assign(commonStyles, styles) }));
16
- };
10
+ const Title = (props) => (
11
+ /**
12
+ * Если поменять Object.assign на деструктуризацию, то упадут тесты.
13
+ * Видимо, это особенность работы jest и css-modules.
14
+ */
15
+ React.createElement(Title$1, { ...props, styles: Object.assign(commonStyles, styles) }));
17
16
 
18
17
  export { Title };
@@ -1,18 +1,17 @@
1
1
  import React from 'react';
2
2
  import 'classnames';
3
- import '../colors.module-4a1750d9.js';
3
+ import '../colors.module-3475616e.js';
4
4
  import { Title } from '../title/component.js';
5
- import { c as commonStyles } from '../common.module-879f9853.js';
5
+ import { c as commonStyles } from '../common.module-6a9b5b80.js';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_1mr5n","styrene-large":"typography__styrene-large_1mr5n","styrene-medium":"typography__styrene-medium_1mr5n","styrene-small":"typography__styrene-small_1mr5n","styrene-xsmall":"typography__styrene-xsmall_1mr5n","system-xlarge":"typography__system-xlarge_1mr5n","system-large":"typography__system-large_1mr5n","system-medium":"typography__system-medium_1mr5n","system-small":"typography__system-small_1mr5n","system-xsmall":"typography__system-xsmall_1mr5n","bold":"typography__bold_1mr5n","medium":"typography__medium_1mr5n","regular":"typography__regular_1mr5n"};
7
+ var styles = {"styrene-xlarge":"typography__styrene-xlarge_1t654","styrene-large":"typography__styrene-large_1t654","styrene-medium":"typography__styrene-medium_1t654","styrene-small":"typography__styrene-small_1t654","styrene-xsmall":"typography__styrene-xsmall_1t654","system-xlarge":"typography__system-xlarge_1t654","system-large":"typography__system-large_1t654","system-medium":"typography__system-medium_1t654","system-small":"typography__system-small_1t654","system-xsmall":"typography__system-xsmall_1t654","bold":"typography__bold_1t654","medium":"typography__medium_1t654","regular":"typography__regular_1t654"};
8
8
  require('./index.css')
9
9
 
10
- const TitleMobile = props => {
11
- /**
12
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
13
- * Видимо, это особенность работы jest и css-modules.
14
- */
15
- return React.createElement(Title, Object.assign({}, props, { styles: Object.assign(commonStyles, styles) }));
16
- };
10
+ const TitleMobile = props =>
11
+ /**
12
+ * Если поменять Object.assign на деструктуризацию, то упадут тесты.
13
+ * Видимо, это особенность работы jest и css-modules.
14
+ */
15
+ React.createElement(Title, { ...props, styles: Object.assign(commonStyles, styles) });
17
16
 
18
17
  export { TitleMobile };
@@ -1,4 +1,4 @@
1
- /* hash: dzn67 */
1
+ /* hash: 88jh9 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -11,72 +11,72 @@
11
11
  --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
12
12
  'Helvetica Neue', Helvetica, sans-serif;
13
13
  }
14
- .typography__styrene-xlarge_1mr5n {
14
+ .typography__styrene-xlarge_1t654 {
15
15
  font-size: 34px;
16
16
  line-height: 40px;
17
17
  font-weight: 500;
18
18
  font-feature-settings: 'ss01';
19
19
  font-family: var(--font-family-styrene);
20
20
  }
21
- .typography__styrene-large_1mr5n {
21
+ .typography__styrene-large_1t654 {
22
22
  font-size: 30px;
23
23
  line-height: 36px;
24
24
  font-weight: 500;
25
25
  font-feature-settings: 'ss01';
26
26
  font-family: var(--font-family-styrene);
27
27
  }
28
- .typography__styrene-medium_1mr5n {
28
+ .typography__styrene-medium_1t654 {
29
29
  font-size: 26px;
30
30
  line-height: 32px;
31
31
  font-weight: 500;
32
32
  font-feature-settings: 'ss01';
33
33
  font-family: var(--font-family-styrene);
34
34
  }
35
- .typography__styrene-small_1mr5n {
35
+ .typography__styrene-small_1t654 {
36
36
  font-size: 20px;
37
37
  line-height: 28px;
38
38
  font-weight: 500;
39
39
  font-feature-settings: 'ss01';
40
40
  font-family: var(--font-family-styrene);
41
41
  }
42
- .typography__styrene-xsmall_1mr5n {
42
+ .typography__styrene-xsmall_1t654 {
43
43
  font-size: 16px;
44
44
  line-height: 24px;
45
45
  font-weight: 500;
46
46
  font-feature-settings: 'ss01';
47
47
  font-family: var(--font-family-styrene);
48
48
  }
49
- .typography__system-xlarge_1mr5n {
49
+ .typography__system-xlarge_1t654 {
50
50
  font-size: 34px;
51
51
  line-height: 40px;
52
52
  font-weight: 600;
53
53
  }
54
- .typography__system-large_1mr5n {
54
+ .typography__system-large_1t654 {
55
55
  font-size: 30px;
56
56
  line-height: 36px;
57
57
  font-weight: 600;
58
58
  }
59
- .typography__system-medium_1mr5n {
59
+ .typography__system-medium_1t654 {
60
60
  font-size: 26px;
61
61
  line-height: 32px;
62
62
  font-weight: 600;
63
63
  }
64
- .typography__system-small_1mr5n {
64
+ .typography__system-small_1t654 {
65
65
  font-size: 20px;
66
66
  line-height: 28px;
67
67
  font-weight: 600;
68
68
  }
69
- .typography__system-xsmall_1mr5n {
69
+ .typography__system-xsmall_1t654 {
70
70
  font-size: 16px;
71
71
  line-height: 24px;
72
72
  font-weight: 600;
73
73
  }
74
- .typography__bold_1mr5n {
74
+ .typography__bold_1t654 {
75
75
  font-weight: bold;
76
76
  }
77
- .typography__medium_1mr5n {
77
+ .typography__medium_1t654 {
78
78
  font-weight: 500;
79
79
  }
80
- .typography__regular_1mr5n {
80
+ .typography__regular_1t654 {
81
81
  font-weight: normal;
82
82
  }
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import '../colors.module-4a1750d9.js';
3
+ import '../colors.module-3475616e.js';
4
4
  import '../title/component.js';
5
- import '../common.module-879f9853.js';
5
+ import '../common.module-6a9b5b80.js';
6
6
  export { TitleMobile } from './component.js';
@@ -1,18 +1,17 @@
1
1
  import React from 'react';
2
2
  import 'classnames';
3
- import '../colors.module-4a1750d9.js';
3
+ import '../colors.module-3475616e.js';
4
4
  import { Title } from '../title/component.js';
5
- import { c as commonStyles } from '../common.module-879f9853.js';
5
+ import { c as commonStyles } from '../common.module-6a9b5b80.js';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_jfz86","styrene-large":"typography__styrene-large_jfz86","styrene-medium":"typography__styrene-medium_jfz86","styrene-small":"typography__styrene-small_jfz86","styrene-xsmall":"typography__styrene-xsmall_jfz86","system-xlarge":"typography__system-xlarge_jfz86","system-large":"typography__system-large_jfz86","system-medium":"typography__system-medium_jfz86","system-small":"typography__system-small_jfz86","system-xsmall":"typography__system-xsmall_jfz86","margins-xlarge":"typography__margins-xlarge_jfz86","margins-large":"typography__margins-large_jfz86","margins-medium":"typography__margins-medium_jfz86","margins-small":"typography__margins-small_jfz86","margins-xsmall":"typography__margins-xsmall_jfz86"};
7
+ var styles = {"styrene-xlarge":"typography__styrene-xlarge_kqyhi","styrene-large":"typography__styrene-large_kqyhi","styrene-medium":"typography__styrene-medium_kqyhi","styrene-small":"typography__styrene-small_kqyhi","styrene-xsmall":"typography__styrene-xsmall_kqyhi","system-xlarge":"typography__system-xlarge_kqyhi","system-large":"typography__system-large_kqyhi","system-medium":"typography__system-medium_kqyhi","system-small":"typography__system-small_kqyhi","system-xsmall":"typography__system-xsmall_kqyhi","margins-xlarge":"typography__margins-xlarge_kqyhi","margins-large":"typography__margins-large_kqyhi","margins-medium":"typography__margins-medium_kqyhi","margins-small":"typography__margins-small_kqyhi","margins-xsmall":"typography__margins-xsmall_kqyhi"};
8
8
  require('./index.css')
9
9
 
10
- const TitleResponsive = props => {
11
- /**
12
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
13
- * Видимо, это особенность работы jest и css-modules.
14
- */
15
- return React.createElement(Title, Object.assign({}, props, { styles: Object.assign(commonStyles, styles) }));
16
- };
10
+ const TitleResponsive = props =>
11
+ /**
12
+ * Если поменять Object.assign на деструктуризацию, то упадут тесты.
13
+ * Видимо, это особенность работы jest и css-modules.
14
+ */
15
+ React.createElement(Title, { ...props, styles: Object.assign(commonStyles, styles) });
17
16
 
18
17
  export { TitleResponsive };
@@ -1,4 +1,4 @@
1
- /* hash: 1bnj8 */
1
+ /* hash: 1b2zs */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -18,134 +18,134 @@
18
18
  'Helvetica Neue', Helvetica, sans-serif;
19
19
  }
20
20
  /* TODO: поменять медиа-запросы на миксины */
21
- .typography__styrene-xlarge_jfz86 {
21
+ .typography__styrene-xlarge_kqyhi {
22
22
  font-size: 34px;
23
23
  line-height: 40px;
24
24
  font-weight: 500;
25
25
  font-feature-settings: 'ss01';
26
26
  font-family: var(--font-family-styrene);
27
27
  }
28
- .typography__styrene-large_jfz86 {
28
+ .typography__styrene-large_kqyhi {
29
29
  font-size: 30px;
30
30
  line-height: 36px;
31
31
  font-weight: 500;
32
32
  font-feature-settings: 'ss01';
33
33
  font-family: var(--font-family-styrene);
34
34
  }
35
- .typography__styrene-medium_jfz86 {
35
+ .typography__styrene-medium_kqyhi {
36
36
  font-size: 26px;
37
37
  line-height: 32px;
38
38
  font-weight: 500;
39
39
  font-feature-settings: 'ss01';
40
40
  font-family: var(--font-family-styrene);
41
41
  }
42
- .typography__styrene-small_jfz86 {
42
+ .typography__styrene-small_kqyhi {
43
43
  font-size: 20px;
44
44
  line-height: 28px;
45
45
  font-weight: 500;
46
46
  font-feature-settings: 'ss01';
47
47
  font-family: var(--font-family-styrene);
48
48
  }
49
- .typography__styrene-xsmall_jfz86 {
49
+ .typography__styrene-xsmall_kqyhi {
50
50
  font-size: 16px;
51
51
  line-height: 24px;
52
52
  font-weight: 500;
53
53
  font-feature-settings: 'ss01';
54
54
  font-family: var(--font-family-styrene);
55
55
  }
56
- .typography__system-xlarge_jfz86 {
56
+ .typography__system-xlarge_kqyhi {
57
57
  font-size: 30px;
58
58
  line-height: 36px;
59
59
  font-weight: 700;
60
60
  }
61
- .typography__system-large_jfz86 {
61
+ .typography__system-large_kqyhi {
62
62
  font-size: 22px;
63
63
  line-height: 26px;
64
64
  font-weight: 700;
65
65
  }
66
- .typography__system-medium_jfz86 {
66
+ .typography__system-medium_kqyhi {
67
67
  font-size: 18px;
68
68
  line-height: 22px;
69
69
  font-weight: 700;
70
70
  }
71
- .typography__system-small_jfz86 {
71
+ .typography__system-small_kqyhi {
72
72
  font-size: 18px;
73
73
  line-height: 22px;
74
74
  font-weight: 700;
75
75
  }
76
- .typography__system-xsmall_jfz86 {
76
+ .typography__system-xsmall_kqyhi {
77
77
  font-size: 18px;
78
78
  line-height: 22px;
79
79
  font-weight: 700;
80
80
  }
81
- .typography__margins-xlarge_jfz86 {
81
+ .typography__margins-xlarge_kqyhi {
82
82
  margin: 0 0 var(--gap-xl);
83
83
  }
84
- .typography__margins-large_jfz86 {
84
+ .typography__margins-large_kqyhi {
85
85
  margin: var(--gap-3xl) 0 var(--gap-m);
86
86
  }
87
- .typography__margins-medium_jfz86 {
87
+ .typography__margins-medium_kqyhi {
88
88
  margin: var(--gap-3xl) 0 var(--gap-m);
89
89
  }
90
- .typography__margins-small_jfz86 {
90
+ .typography__margins-small_kqyhi {
91
91
  margin: var(--gap-3xl) 0 var(--gap-m);
92
92
  }
93
- .typography__margins-xsmall_jfz86 {
93
+ .typography__margins-xsmall_kqyhi {
94
94
  margin: var(--gap-3xl) 0 var(--gap-m);
95
95
  }
96
96
  @media screen and (min-width: 600px) {
97
- .typography__system-xlarge_jfz86 {
97
+ .typography__system-xlarge_kqyhi {
98
98
  font-size: 40px;
99
99
  line-height: 48px;
100
100
  font-weight: 700;
101
101
  }
102
102
 
103
- .typography__system-large_jfz86 {
103
+ .typography__system-large_kqyhi {
104
104
  font-size: 30px;
105
105
  line-height: 36px;
106
106
  font-weight: 700;
107
107
  }
108
108
 
109
- .typography__system-medium_jfz86 {
109
+ .typography__system-medium_kqyhi {
110
110
  font-size: 22px;
111
111
  line-height: 26px;
112
112
  font-weight: 700;
113
113
  }
114
114
 
115
- .typography__system-small_jfz86 {
115
+ .typography__system-small_kqyhi {
116
116
  font-size: 22px;
117
117
  line-height: 26px;
118
118
  font-weight: 700;
119
119
  }
120
120
 
121
- .typography__system-xsmall_jfz86 {
121
+ .typography__system-xsmall_kqyhi {
122
122
  font-size: 18px;
123
123
  line-height: 22px;
124
124
  font-weight: 700;
125
125
  }
126
126
 
127
- .typography__margins-xlarge_jfz86 {
127
+ .typography__margins-xlarge_kqyhi {
128
128
  margin: 0 0 var(--gap-xl);
129
129
  }
130
130
 
131
- .typography__margins-large_jfz86 {
131
+ .typography__margins-large_kqyhi {
132
132
  margin: var(--gap-4xl) 0 var(--gap-xl);
133
133
  }
134
134
 
135
- .typography__margins-medium_jfz86 {
135
+ .typography__margins-medium_kqyhi {
136
136
  margin: var(--gap-3xl) 0 var(--gap-m);
137
137
  }
138
138
 
139
- .typography__margins-small_jfz86 {
139
+ .typography__margins-small_kqyhi {
140
140
  margin: var(--gap-3xl) 0 var(--gap-m);
141
141
  }
142
142
 
143
- .typography__margins-xsmall_jfz86 {
143
+ .typography__margins-xsmall_kqyhi {
144
144
  margin: var(--gap-3xl) 0 var(--gap-m);
145
145
  }
146
146
  }
147
147
  @media screen and (min-width: 1024px) {
148
- .typography__styrene-xlarge_jfz86 {
148
+ .typography__styrene-xlarge_kqyhi {
149
149
  font-size: 48px;
150
150
  line-height: 64px;
151
151
  font-weight: 500;
@@ -153,7 +153,7 @@
153
153
  font-family: var(--font-family-styrene);
154
154
  }
155
155
 
156
- .typography__styrene-large_jfz86 {
156
+ .typography__styrene-large_kqyhi {
157
157
  font-size: 40px;
158
158
  line-height: 48px;
159
159
  font-weight: 500;
@@ -161,7 +161,7 @@
161
161
  font-family: var(--font-family-styrene);
162
162
  }
163
163
 
164
- .typography__styrene-medium_jfz86 {
164
+ .typography__styrene-medium_kqyhi {
165
165
  font-size: 32px;
166
166
  line-height: 40px;
167
167
  font-weight: 500;
@@ -169,7 +169,7 @@
169
169
  font-family: var(--font-family-styrene);
170
170
  }
171
171
 
172
- .typography__styrene-small_jfz86 {
172
+ .typography__styrene-small_kqyhi {
173
173
  font-size: 24px;
174
174
  line-height: 32px;
175
175
  font-weight: 500;
@@ -177,7 +177,7 @@
177
177
  font-family: var(--font-family-styrene);
178
178
  }
179
179
 
180
- .typography__styrene-xsmall_jfz86 {
180
+ .typography__styrene-xsmall_kqyhi {
181
181
  font-size: 20px;
182
182
  line-height: 24px;
183
183
  font-weight: 500;
@@ -185,53 +185,53 @@
185
185
  font-family: var(--font-family-styrene);
186
186
  }
187
187
 
188
- .typography__system-xlarge_jfz86 {
188
+ .typography__system-xlarge_kqyhi {
189
189
  font-size: 48px;
190
190
  line-height: 52px;
191
191
  font-weight: 700;
192
192
  }
193
193
 
194
- .typography__system-large_jfz86 {
194
+ .typography__system-large_kqyhi {
195
195
  font-size: 40px;
196
196
  line-height: 48px;
197
197
  font-weight: 700;
198
198
  }
199
199
 
200
- .typography__system-medium_jfz86 {
200
+ .typography__system-medium_kqyhi {
201
201
  font-size: 30px;
202
202
  line-height: 36px;
203
203
  font-weight: 700;
204
204
  }
205
205
 
206
- .typography__system-small_jfz86 {
206
+ .typography__system-small_kqyhi {
207
207
  font-size: 22px;
208
208
  line-height: 26px;
209
209
  font-weight: 700;
210
210
  }
211
211
 
212
- .typography__system-xsmall_jfz86 {
212
+ .typography__system-xsmall_kqyhi {
213
213
  font-size: 18px;
214
214
  line-height: 22px;
215
215
  font-weight: 700;
216
216
  }
217
217
 
218
- .typography__margins-xlarge_jfz86 {
218
+ .typography__margins-xlarge_kqyhi {
219
219
  margin: 0 0 var(--gap-xl);
220
220
  }
221
221
 
222
- .typography__margins-large_jfz86 {
222
+ .typography__margins-large_kqyhi {
223
223
  margin: var(--gap-4xl) 0 var(--gap-xl);
224
224
  }
225
225
 
226
- .typography__margins-medium_jfz86 {
226
+ .typography__margins-medium_kqyhi {
227
227
  margin: var(--gap-4xl) 0 var(--gap-xl);
228
228
  }
229
229
 
230
- .typography__margins-small_jfz86 {
230
+ .typography__margins-small_kqyhi {
231
231
  margin: var(--gap-3xl) 0 var(--gap-m);
232
232
  }
233
233
 
234
- .typography__margins-xsmall_jfz86 {
234
+ .typography__margins-xsmall_kqyhi {
235
235
  margin: var(--gap-3xl) 0 var(--gap-m);
236
236
  }
237
237
  }
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import '../colors.module-4a1750d9.js';
3
+ import '../colors.module-3475616e.js';
4
4
  import '../title/component.js';
5
- import '../common.module-879f9853.js';
5
+ import '../common.module-6a9b5b80.js';
6
6
  export { TitleResponsive } from './component.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-typography",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",