@alfalab/core-components-typography 4.8.0 → 4.10.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 (125) hide show
  1. package/colors.css +23 -21
  2. package/colors.module-5866c16f.js +6 -0
  3. package/common.module-98ac839d.js +6 -0
  4. package/component.d.ts +2 -1
  5. package/cssm/colors.module.css +3 -1
  6. package/cssm/component.d.ts +2 -1
  7. package/cssm/hooks/use-skeleton.module.css +3 -1
  8. package/cssm/text/index.module.css +5 -2
  9. package/cssm/title/index.module.css +12 -6
  10. package/cssm/title-mobile/component.d.ts +1 -3
  11. package/cssm/title-mobile/index.d.ts +2 -1
  12. package/cssm/title-mobile/index.module.css +20 -2
  13. package/cssm/title-responsive/component.d.ts +15 -1
  14. package/cssm/title-responsive/component.js +8 -9
  15. package/esm/colors.css +23 -21
  16. package/esm/colors.module-5cfaa8f2.js +4 -0
  17. package/esm/common.module-f31888e6.js +4 -0
  18. package/esm/component.d.ts +2 -1
  19. package/esm/hooks/use-skeleton.css +8 -6
  20. package/esm/hooks/use-skeleton.js +1 -1
  21. package/esm/text/component.js +2 -2
  22. package/esm/text/index.css +26 -23
  23. package/esm/title/common.css +9 -9
  24. package/esm/title/component.js +1 -1
  25. package/esm/title/index.css +28 -22
  26. package/esm/title/index.js +2 -2
  27. package/esm/title-mobile/component.d.ts +1 -3
  28. package/esm/title-mobile/component.js +2 -2
  29. package/esm/title-mobile/index.css +31 -13
  30. package/esm/title-mobile/index.d.ts +2 -1
  31. package/esm/title-responsive/component.d.ts +15 -1
  32. package/esm/title-responsive/component.js +9 -10
  33. package/hooks/use-skeleton.css +8 -6
  34. package/hooks/use-skeleton.js +1 -1
  35. package/modern/colors.css +23 -21
  36. package/modern/colors.module-cfe2fa4f.js +4 -0
  37. package/modern/common.module-67cdcc8d.js +4 -0
  38. package/modern/component.d.ts +2 -1
  39. package/modern/hooks/use-skeleton.css +8 -6
  40. package/modern/hooks/use-skeleton.js +1 -1
  41. package/modern/text/component.js +2 -2
  42. package/modern/text/index.css +26 -23
  43. package/modern/title/common.css +9 -9
  44. package/modern/title/component.js +1 -1
  45. package/modern/title/index.css +28 -22
  46. package/modern/title/index.js +2 -2
  47. package/modern/title-mobile/component.d.ts +1 -3
  48. package/modern/title-mobile/component.js +2 -2
  49. package/modern/title-mobile/index.css +31 -13
  50. package/modern/title-mobile/index.d.ts +2 -1
  51. package/modern/title-responsive/component.d.ts +15 -1
  52. package/modern/title-responsive/component.js +7 -9
  53. package/moderncssm/colors.d.ts +3 -0
  54. package/moderncssm/colors.js +23 -0
  55. package/moderncssm/colors.module.css +79 -0
  56. package/moderncssm/component.d.ts +13 -0
  57. package/moderncssm/component.js +13 -0
  58. package/moderncssm/hooks/index.d.ts +1 -0
  59. package/moderncssm/hooks/index.js +1 -0
  60. package/moderncssm/hooks/use-skeleton.d.ts +12 -0
  61. package/moderncssm/hooks/use-skeleton.js +50 -0
  62. package/moderncssm/hooks/use-skeleton.module.css +17 -0
  63. package/moderncssm/index.d.ts +5 -0
  64. package/moderncssm/index.js +2 -0
  65. package/moderncssm/margins.module.css +1 -0
  66. package/moderncssm/presets.d.ts +18 -0
  67. package/moderncssm/presets.js +19 -0
  68. package/moderncssm/text/component.d.ts +63 -0
  69. package/moderncssm/text/component.js +43 -0
  70. package/moderncssm/text/index.d.ts +1 -0
  71. package/moderncssm/text/index.js +1 -0
  72. package/moderncssm/text/index.module.css +124 -0
  73. package/moderncssm/title/common.module.css +42 -0
  74. package/moderncssm/title/component.d.ts +122 -0
  75. package/moderncssm/title/component.js +20 -0
  76. package/moderncssm/title/index.d.ts +20 -0
  77. package/moderncssm/title/index.js +8 -0
  78. package/moderncssm/title/index.module.css +76 -0
  79. package/moderncssm/title/utils.d.ts +2 -0
  80. package/moderncssm/title/utils.js +11 -0
  81. package/moderncssm/title-mobile/component.d.ts +18 -0
  82. package/moderncssm/title-mobile/component.js +8 -0
  83. package/moderncssm/title-mobile/index.d.ts +2 -0
  84. package/moderncssm/title-mobile/index.js +1 -0
  85. package/moderncssm/title-mobile/index.module.css +76 -0
  86. package/moderncssm/title-responsive/component.d.ts +32 -0
  87. package/moderncssm/title-responsive/component.js +13 -0
  88. package/moderncssm/title-responsive/index.d.ts +1 -0
  89. package/moderncssm/title-responsive/index.js +1 -0
  90. package/moderncssm/types.d.ts +21 -0
  91. package/moderncssm/types.js +1 -0
  92. package/package.json +4 -4
  93. package/src/colors.module.css +1 -1
  94. package/src/component.tsx +2 -2
  95. package/src/hooks/use-skeleton.module.css +1 -1
  96. package/src/margins.module.css +3 -3
  97. package/src/text/index.module.css +2 -2
  98. package/src/title/index.module.css +1 -1
  99. package/src/title-mobile/component.tsx +0 -2
  100. package/src/title-mobile/index.module.css +21 -1
  101. package/src/title-mobile/index.tsx +2 -1
  102. package/src/title-responsive/component.tsx +20 -17
  103. package/text/component.js +2 -2
  104. package/text/index.css +26 -23
  105. package/title/common.css +9 -9
  106. package/title/component.js +1 -1
  107. package/title/index.css +28 -22
  108. package/title/index.js +2 -2
  109. package/title-mobile/component.d.ts +1 -3
  110. package/title-mobile/component.js +2 -2
  111. package/title-mobile/index.css +31 -13
  112. package/title-mobile/index.d.ts +2 -1
  113. package/title-responsive/component.d.ts +15 -1
  114. package/title-responsive/component.js +8 -9
  115. package/colors.module-ae9077a2.js +0 -6
  116. package/common.module-b1c6f346.js +0 -6
  117. package/cssm/title-responsive/index.module.css +0 -174
  118. package/esm/colors.module-150df74d.js +0 -4
  119. package/esm/common.module-6fb90ced.js +0 -4
  120. package/esm/title-responsive/index.css +0 -175
  121. package/modern/colors.module-024abe1e.js +0 -4
  122. package/modern/common.module-38c9e9b8.js +0 -4
  123. package/modern/title-responsive/index.css +0 -175
  124. package/src/title-responsive/index.module.css +0 -126
  125. package/title-responsive/index.css +0 -175
@@ -0,0 +1,76 @@
1
+ /* */
2
+ .styrene-xlarge {
3
+ font-size: 34px;
4
+ line-height: 40px;
5
+ font-weight: 500;
6
+ font-feature-settings: 'ss01';
7
+ font-family: var(--font-family-styrene);
8
+ }
9
+ .styrene-large {
10
+ font-size: 30px;
11
+ line-height: 36px;
12
+ font-weight: 500;
13
+ font-feature-settings: 'ss01';
14
+ font-family: var(--font-family-styrene);
15
+ }
16
+ .styrene-medium {
17
+ font-size: 26px;
18
+ line-height: 32px;
19
+ font-weight: 500;
20
+ font-feature-settings: 'ss01';
21
+ font-family: var(--font-family-styrene);
22
+ }
23
+ .styrene-small {
24
+ font-size: 20px;
25
+ line-height: 28px;
26
+ font-weight: 500;
27
+ font-feature-settings: 'ss01';
28
+ font-family: var(--font-family-styrene);
29
+ }
30
+ .styrene-xsmall {
31
+ font-size: 16px;
32
+ line-height: 20px;
33
+ font-weight: 500;
34
+ font-feature-settings: 'ss01';
35
+ font-family: var(--font-family-styrene);
36
+ }
37
+ .system-xlarge {
38
+ font-size: 34px;
39
+ line-height: 40px;
40
+ font-weight: 600;
41
+ }
42
+ .system-large {
43
+ font-size: 30px;
44
+ line-height: 36px;
45
+ font-weight: 600;
46
+ }
47
+ .system-medium {
48
+ font-size: 26px;
49
+ line-height: 32px;
50
+ font-weight: 600;
51
+ }
52
+ .system-small {
53
+ font-size: 20px;
54
+ line-height: 28px;
55
+ font-weight: 600;
56
+ }
57
+ .system-xsmall {
58
+ font-size: 16px;
59
+ line-height: 20px;
60
+ font-weight: 600;
61
+ }
62
+ .margins-xlarge {
63
+ margin: 0 0 var(--gap-24);
64
+ }
65
+ .margins-large {
66
+ margin: var(--gap-40) 0 var(--gap-16);
67
+ }
68
+ .margins-medium {
69
+ margin: var(--gap-40) 0 var(--gap-16);
70
+ }
71
+ .margins-small {
72
+ margin: var(--gap-40) 0 var(--gap-16);
73
+ }
74
+ .margins-xsmall {
75
+ margin: var(--gap-40) 0 var(--gap-16);
76
+ }
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TitleProps } from "../title/index";
4
+ type TitleResponsiveProps = TitleProps & {
5
+ /**
6
+ * Контрольная точка, с нее начинается desktop версия
7
+ * @default 1024
8
+ */
9
+ breakpoint?: number;
10
+ };
11
+ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
12
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
13
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
14
+ 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;
15
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
16
+ font?: "styrene" | "system" | undefined;
17
+ defaultMargins?: boolean | undefined;
18
+ className?: string | undefined;
19
+ dataTestId?: string | undefined;
20
+ children?: React.ReactNode;
21
+ rowLimit?: 1 | 2 | 3 | undefined;
22
+ showSkeleton?: boolean | undefined;
23
+ skeletonProps?: import("../types").TextSkeletonProps | undefined;
24
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
+ } & {
26
+ /**
27
+ * Контрольная точка, с нее начинается desktop версия
28
+ * @default 1024
29
+ */
30
+ breakpoint?: number | undefined;
31
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
32
+ export { TitleResponsiveProps, TitleResponsive };
@@ -0,0 +1,13 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { useMatchMedia } from '@alfalab/core-components-mq/moderncssm';
3
+ import { Title } from '../title/index.js';
4
+ import { TitleMobile } from '../title-mobile/component.js';
5
+
6
+ const TitleResponsive = forwardRef(({ defaultMatchMediaValue, breakpoint = 1024, ...restProps }, ref) => {
7
+ const query = `(min-width: ${breakpoint}px)`;
8
+ const [isDesktop] = useMatchMedia(query, defaultMatchMediaValue);
9
+ const Component = isDesktop ? Title : TitleMobile;
10
+ return React.createElement(Component, { ...restProps, ref: ref });
11
+ });
12
+
13
+ export { TitleResponsive };
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export { TitleResponsive } from './component.js';
@@ -0,0 +1,21 @@
1
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
+ type WidthUnit = number | string;
3
+ type TextSkeletonProps = {
4
+ /**
5
+ * Кол-во строк текста
6
+ */
7
+ rows?: number;
8
+ /**
9
+ * Ширина строки
10
+ */
11
+ width?: WidthUnit | WidthUnit[];
12
+ /**
13
+ * Выравнивание элементов по горизонтали
14
+ */
15
+ align?: 'left' | 'center' | 'right';
16
+ /**
17
+ * Класс для обертки скелетона
18
+ */
19
+ wrapperClassName?: string;
20
+ };
21
+ export { TextElementType, TextSkeletonProps };
@@ -0,0 +1 @@
1
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-typography",
3
- "version": "4.8.0",
3
+ "version": "4.10.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,13 +14,13 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-skeleton": "^5.0.0",
17
+ "@alfalab/core-components-skeleton": "^5.1.0",
18
18
  "@alfalab/core-components-mq": "^4.3.0",
19
19
  "@alfalab/hooks": "^1.13.0",
20
20
  "classnames": "^2.3.1",
21
21
  "react-merge-refs": "^1.1.0",
22
22
  "tslib": "^2.4.0"
23
23
  },
24
- "themesVersion": "13.0.1",
25
- "varsVersion": "9.10.0"
24
+ "themesVersion": "13.1.0",
25
+ "varsVersion": "9.12.0"
26
26
  }
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  /* colors */
4
4
 
package/src/component.tsx CHANGED
@@ -3,13 +3,13 @@ import { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
3
3
  import { Text, TextProps } from './text';
4
4
  import { Title, TitleProps } from './title';
5
5
  import { TitleMobile, TitleMobileProps } from './title-mobile';
6
- import { TitleResponsive } from './title-responsive';
6
+ import { TitleResponsive, TitleResponsiveProps } from './title-responsive';
7
7
  import { TextElementType } from './types';
8
8
 
9
9
  export const Typography: {
10
10
  Title: FC<TitleProps>;
11
11
  Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
12
- TitleResponsive: FC<TitleProps>;
12
+ TitleResponsive: FC<TitleResponsiveProps>;
13
13
  TitleMobile: FC<TitleMobileProps>;
14
14
  } = {
15
15
  Title,
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .skeletonText.skeletonText {
4
4
  border-radius: var(--border-radius-pill);
@@ -1,11 +1,11 @@
1
1
  @define-mixin margin-large {
2
- margin: 0 0 var(--gap-xl);
2
+ margin: 0 0 var(--gap-24);
3
3
  }
4
4
 
5
5
  @define-mixin margin-medium {
6
- margin: var(--gap-4xl) 0 var(--gap-xl);
6
+ margin: var(--gap-48) 0 var(--gap-24);
7
7
  }
8
8
 
9
9
  @define-mixin margin-small {
10
- margin: var(--gap-3xl) 0 var(--gap-m);
10
+ margin: var(--gap-40) 0 var(--gap-16);
11
11
  }
@@ -1,7 +1,7 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  :root {
4
- --text-paragraph-margin-bottom: 0 0 var(--gap-s);
4
+ --text-paragraph-margin-bottom: 0 0 var(--gap-12);
5
5
  }
6
6
 
7
7
  .paragraph {
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
  @import '../margins.module.css';
3
3
 
4
4
  .styrene-xlarge {
@@ -5,8 +5,6 @@ import { TitleBase, TitleProps } from '../title/component';
5
5
  import commonStyles from '../title/common.module.css';
6
6
  import styles from './index.module.css';
7
7
 
8
- export type TitleMobileProps = Omit<TitleProps, 'defaultMargins'>;
9
-
10
8
  export const TitleMobile = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(
11
9
  (props, ref) => (
12
10
  <TitleBase
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
  @import '../margins.module.css';
3
3
 
4
4
  .styrene-xlarge {
@@ -40,3 +40,23 @@
40
40
  .system-xsmall {
41
41
  @mixin headline-system-mobile_xsmall;
42
42
  }
43
+
44
+ .margins-xlarge {
45
+ @mixin margin-large;
46
+ }
47
+
48
+ .margins-large {
49
+ @mixin margin-small;
50
+ }
51
+
52
+ .margins-medium {
53
+ @mixin margin-small;
54
+ }
55
+
56
+ .margins-small {
57
+ @mixin margin-small;
58
+ }
59
+
60
+ .margins-xsmall {
61
+ @mixin margin-small;
62
+ }
@@ -1 +1,2 @@
1
- export * from './component';
1
+ export { TitleMobile } from './component';
2
+ export type { TitleProps as TitleMobileProps } from '../title/component';
@@ -2,23 +2,26 @@ import React, { forwardRef } from 'react';
2
2
 
3
3
  import { useMatchMedia } from '@alfalab/core-components-mq';
4
4
 
5
- import { TitleBase, TitleProps } from '../title/component';
5
+ import { Title, TitleProps } from '../title';
6
+ import { TitleMobile } from '../title-mobile';
6
7
 
7
- import commonStyles from '../title/common.module.css';
8
- import styles from './index.module.css';
8
+ export type TitleResponsiveProps = TitleProps & {
9
+ /**
10
+ * Контрольная точка, с нее начинается desktop версия
11
+ * @default 1024
12
+ */
13
+ breakpoint?: number;
14
+ };
9
15
 
10
- export const TitleResponsive = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(
11
- (props, ref) => {
12
- const { defaultMatchMediaValue } = props;
13
- const [isDesktop] = useMatchMedia('(min-width: 1024px)', defaultMatchMediaValue);
16
+ export const TitleResponsive = forwardRef<
17
+ HTMLHeadingElement | HTMLDivElement,
18
+ TitleResponsiveProps
19
+ >(({ defaultMatchMediaValue, breakpoint = 1024, ...restProps }, ref) => {
20
+ const query = `(min-width: ${breakpoint}px)`;
14
21
 
15
- return (
16
- <TitleBase
17
- {...props}
18
- styles={Object.assign(commonStyles, styles)}
19
- ref={ref}
20
- platform={isDesktop ? 'desktop' : 'mobile'}
21
- />
22
- );
23
- },
24
- );
22
+ const [isDesktop] = useMatchMedia(query, defaultMatchMediaValue);
23
+
24
+ const Component = isDesktop ? Title : TitleMobile;
25
+
26
+ return <Component {...restProps} ref={ref} />;
27
+ });
package/text/component.js CHANGED
@@ -7,7 +7,7 @@ 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 colors_module = require('../colors.module-ae9077a2.js');
10
+ var colors_module = require('../colors.module-5866c16f.js');
11
11
 
12
12
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
13
13
 
@@ -15,7 +15,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
15
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
- var styles = {"paragraph":"typography__paragraph_hw1vb","paragraphWithMargins":"typography__paragraphWithMargins_hw1vb","primary-large":"typography__primary-large_hw1vb","primary-medium":"typography__primary-medium_hw1vb","primary-small":"typography__primary-small_hw1vb","secondary-large":"typography__secondary-large_hw1vb","secondary-medium":"typography__secondary-medium_hw1vb","secondary-small":"typography__secondary-small_hw1vb","component":"typography__component_hw1vb","component-primary":"typography__component-primary_hw1vb","component-secondary":"typography__component-secondary_hw1vb","caps":"typography__caps_hw1vb","tagline":"typography__tagline_hw1vb","bold":"typography__bold_hw1vb","medium":"typography__medium_hw1vb","regular":"typography__regular_hw1vb","monospace":"typography__monospace_hw1vb","rowLimit1":"typography__rowLimit1_hw1vb","rowLimit2":"typography__rowLimit2_hw1vb","rowLimit3":"typography__rowLimit3_hw1vb"};
18
+ var styles = {"paragraph":"typography__paragraph_6mjyh","paragraphWithMargins":"typography__paragraphWithMargins_6mjyh","primary-large":"typography__primary-large_6mjyh","primary-medium":"typography__primary-medium_6mjyh","primary-small":"typography__primary-small_6mjyh","secondary-large":"typography__secondary-large_6mjyh","secondary-medium":"typography__secondary-medium_6mjyh","secondary-small":"typography__secondary-small_6mjyh","component":"typography__component_6mjyh","component-primary":"typography__component-primary_6mjyh","component-secondary":"typography__component-secondary_6mjyh","caps":"typography__caps_6mjyh","tagline":"typography__tagline_6mjyh","bold":"typography__bold_6mjyh","medium":"typography__medium_6mjyh","regular":"typography__regular_6mjyh","monospace":"typography__monospace_6mjyh","rowLimit1":"typography__rowLimit1_6mjyh","rowLimit2":"typography__rowLimit2_6mjyh","rowLimit3":"typography__rowLimit3_6mjyh"};
19
19
  require('./index.css')
20
20
 
21
21
  var logWarning = function (view) {
package/text/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1gxdd */
1
+ /* hash: 9khtk */
2
2
  :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 */ /* 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 */
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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -10,89 +10,92 @@
10
10
  /* Up */
11
11
 
12
12
  /* Hard up */
13
- } :root {
13
+ } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
14
+
15
+ /* новые значения, используйте их */
14
16
  } :root { /* deprecated */ /* deprecated */ /* deprecated */
15
17
  --gap-s: 12px; /* 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 */
16
18
 
17
19
  /* новые значения, используйте их */
20
+ --gap-12: var(--gap-s);
18
21
  } :root {
19
22
  } :root {
20
23
  } :root {
21
- --text-paragraph-margin-bottom: 0 0 var(--gap-s);
22
- } .typography__paragraph_hw1vb {
24
+ --text-paragraph-margin-bottom: 0 0 var(--gap-12);
25
+ } .typography__paragraph_6mjyh {
23
26
  margin: 0;
24
27
  padding: 0;
25
- } .typography__paragraphWithMargins_hw1vb {
28
+ } .typography__paragraphWithMargins_6mjyh {
26
29
  padding: 0;
27
30
  margin: var(--text-paragraph-margin-bottom);
28
- } .typography__primary-large_hw1vb {
31
+ } .typography__primary-large_6mjyh {
29
32
  font-size: 18px;
30
33
  line-height: 24px;
31
34
  font-weight: 400;
32
- } .typography__primary-medium_hw1vb {
35
+ } .typography__primary-medium_6mjyh {
33
36
  font-size: 16px;
34
37
  line-height: 24px;
35
38
  font-weight: 400;
36
- } .typography__primary-small_hw1vb {
39
+ } .typography__primary-small_6mjyh {
37
40
  font-size: 14px;
38
41
  line-height: 20px;
39
42
  font-weight: 400;
40
- } .typography__secondary-large_hw1vb {
43
+ } .typography__secondary-large_6mjyh {
41
44
  font-size: 13px;
42
45
  line-height: 16px;
43
46
  font-weight: 400;
44
- } .typography__secondary-medium_hw1vb {
47
+ } .typography__secondary-medium_6mjyh {
45
48
  font-size: 12px;
46
49
  line-height: 16px;
47
50
  font-weight: 400;
48
- } .typography__secondary-small_hw1vb {
51
+ } .typography__secondary-small_6mjyh {
49
52
  font-size: 11px;
50
53
  line-height: 16px;
51
54
  font-weight: 400;
52
- } .typography__component_hw1vb {
55
+ } .typography__component_6mjyh {
53
56
  font-size: 16px;
54
57
  line-height: 20px;
55
58
  font-weight: 400;
56
- } .typography__component-primary_hw1vb {
59
+ } .typography__component-primary_6mjyh {
57
60
  font-size: 16px;
58
61
  line-height: 20px;
59
62
  font-weight: 400;
60
- } .typography__component-secondary_hw1vb {
63
+ } .typography__component-secondary_6mjyh {
61
64
  font-size: 14px;
62
65
  line-height: 18px;
63
66
  font-weight: 400;
64
- } .typography__caps_hw1vb {
67
+ } .typography__caps_6mjyh {
65
68
  font-size: 12px;
66
69
  line-height: 16px;
67
70
  font-weight: 500;
68
71
  letter-spacing: 1.25px;
69
72
  text-transform: uppercase;
70
- } .typography__tagline_hw1vb {
73
+ } .typography__tagline_6mjyh {
71
74
  font-size: 12px;
72
75
  line-height: 16px;
73
76
  font-weight: 500;
74
77
  letter-spacing: 1.25px;
75
78
  text-transform: uppercase;
76
- } .typography__bold_hw1vb {
79
+ } .typography__bold_6mjyh {
77
80
  font-weight: bold;
78
- } .typography__medium_hw1vb {
81
+ } .typography__medium_6mjyh {
79
82
  font-weight: 500;
80
- } .typography__regular_hw1vb {
83
+ } .typography__regular_6mjyh {
81
84
  font-weight: normal;
82
- } .typography__monospace_hw1vb {
85
+ } .typography__monospace_6mjyh {
83
86
  font-variant-numeric: tabular-nums;
84
- } .typography__rowLimit1_hw1vb {
87
+ } .typography__rowLimit1_6mjyh {
85
88
  -webkit-line-clamp: 1;
86
89
  display: -webkit-box;
87
90
  -webkit-box-orient: vertical;
88
91
  overflow: hidden;
89
92
  word-break: break-all;
90
- } .typography__rowLimit2_hw1vb {
93
+ } .typography__rowLimit2_6mjyh {
91
94
  -webkit-line-clamp: 2;
92
95
  display: -webkit-box;
93
96
  -webkit-box-orient: vertical;
94
97
  overflow: hidden;
95
- } .typography__rowLimit3_hw1vb {
98
+ } .typography__rowLimit3_6mjyh {
96
99
  -webkit-line-clamp: 3;
97
100
  display: -webkit-box;
98
101
  -webkit-box-orient: vertical;
package/title/common.css CHANGED
@@ -1,26 +1,26 @@
1
- /* hash: 14te1 */
2
- .typography__component_1e0qe {
1
+ /* hash: d55jd */
2
+ .typography__component_nn6vl {
3
3
  margin: 0;
4
4
  padding: 0
5
5
  }
6
6
 
7
- .typography__component_1e0qe.typography__bold_1e0qe {
7
+ .typography__component_nn6vl.typography__bold_nn6vl {
8
8
  font-weight: bold;
9
9
  }
10
10
 
11
- .typography__component_1e0qe.typography__semibold_1e0qe {
11
+ .typography__component_nn6vl.typography__semibold_nn6vl {
12
12
  font-weight: 600;
13
13
  }
14
14
 
15
- .typography__component_1e0qe.typography__medium_1e0qe {
15
+ .typography__component_nn6vl.typography__medium_nn6vl {
16
16
  font-weight: 500;
17
17
  }
18
18
 
19
- .typography__component_1e0qe.typography__regular_1e0qe {
19
+ .typography__component_nn6vl.typography__regular_nn6vl {
20
20
  font-weight: normal;
21
21
  }
22
22
 
23
- .typography__rowLimit1_1e0qe {
23
+ .typography__rowLimit1_nn6vl {
24
24
  -webkit-line-clamp: 1;
25
25
  display: -webkit-box;
26
26
  -webkit-box-orient: vertical;
@@ -28,14 +28,14 @@
28
28
  word-break: break-all;
29
29
  }
30
30
 
31
- .typography__rowLimit2_1e0qe {
31
+ .typography__rowLimit2_nn6vl {
32
32
  -webkit-line-clamp: 2;
33
33
  display: -webkit-box;
34
34
  -webkit-box-orient: vertical;
35
35
  overflow: hidden;
36
36
  }
37
37
 
38
- .typography__rowLimit3_1e0qe {
38
+ .typography__rowLimit3_nn6vl {
39
39
  -webkit-line-clamp: 3;
40
40
  display: -webkit-box;
41
41
  -webkit-box-orient: vertical;
@@ -8,7 +8,7 @@ var mergeRefs = require('react-merge-refs');
8
8
  var cn = require('classnames');
9
9
  var hooks_useSkeleton = require('../hooks/use-skeleton.js');
10
10
  var title_utils = require('./utils.js');
11
- var colors_module = require('../colors.module-ae9077a2.js');
11
+ var colors_module = require('../colors.module-5866c16f.js');
12
12
 
13
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
14
14