@alfalab/core-components-typography 6.0.7 → 6.0.8

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 (42) hide show
  1. package/colors.css +20 -20
  2. package/colors.module.css.js +1 -1
  3. package/cssm/title/component.d.ts +0 -4
  4. package/cssm/title/component.js.map +1 -1
  5. package/esm/colors.css +20 -20
  6. package/esm/colors.module.css.js +1 -1
  7. package/esm/text/index.css +40 -40
  8. package/esm/text/index.module.css.js +1 -1
  9. package/esm/title/common.css +5 -5
  10. package/esm/title/common.module.css.js +1 -1
  11. package/esm/title/component.d.ts +0 -4
  12. package/esm/title/component.js.map +1 -1
  13. package/esm/title/index.css +25 -25
  14. package/esm/title/index.module.css.js +1 -1
  15. package/esm/title-mobile/index.css +25 -25
  16. package/esm/title-mobile/index.module.css.js +1 -1
  17. package/modern/colors.css +20 -20
  18. package/modern/colors.module.css.js +1 -1
  19. package/modern/text/index.css +40 -40
  20. package/modern/text/index.module.css.js +1 -1
  21. package/modern/title/common.css +5 -5
  22. package/modern/title/common.module.css.js +1 -1
  23. package/modern/title/component.d.ts +0 -4
  24. package/modern/title/component.js.map +1 -1
  25. package/modern/title/index.css +25 -25
  26. package/modern/title/index.module.css.js +1 -1
  27. package/modern/title-mobile/index.css +25 -25
  28. package/modern/title-mobile/index.module.css.js +1 -1
  29. package/moderncssm/title/component.d.ts +0 -4
  30. package/moderncssm/title/component.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/title/component.tsx +0 -2
  33. package/text/index.css +40 -40
  34. package/text/index.module.css.js +1 -1
  35. package/title/common.css +5 -5
  36. package/title/common.module.css.js +1 -1
  37. package/title/component.d.ts +0 -4
  38. package/title/component.js.map +1 -1
  39. package/title/index.css +25 -25
  40. package/title/index.module.css.js +1 -1
  41. package/title-mobile/index.css +25 -25
  42. package/title-mobile/index.module.css.js +1 -1
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"transparent":"typography__transparent_knen6","paragraph":"typography__paragraph_knen6","paragraphWithMargins":"typography__paragraphWithMargins_knen6","component":"typography__component_knen6","bold":"typography__bold_knen6","medium":"typography__medium_knen6","caps":"typography__caps_knen6","tagline":"typography__tagline_knen6","primary-large":"typography__primary-large_knen6","primary-medium":"typography__primary-medium_knen6","primary-small":"typography__primary-small_knen6","component-primary":"typography__component-primary_knen6","secondary-large":"typography__secondary-large_knen6","secondary-medium":"typography__secondary-medium_knen6","secondary-small":"typography__secondary-small_knen6","component-secondary":"typography__component-secondary_knen6","rowLimit1":"typography__rowLimit1_knen6","rowLimit2":"typography__rowLimit2_knen6","rowLimit3":"typography__rowLimit3_knen6","monospace":"typography__monospace_knen6"};
3
+ const styles = {"transparent":"typography__transparent_16x2a","paragraph":"typography__paragraph_16x2a","paragraphWithMargins":"typography__paragraphWithMargins_16x2a","component":"typography__component_16x2a","bold":"typography__bold_16x2a","medium":"typography__medium_16x2a","caps":"typography__caps_16x2a","tagline":"typography__tagline_16x2a","primary-large":"typography__primary-large_16x2a","primary-medium":"typography__primary-medium_16x2a","primary-small":"typography__primary-small_16x2a","component-primary":"typography__component-primary_16x2a","secondary-large":"typography__secondary-large_16x2a","secondary-medium":"typography__secondary-medium_16x2a","secondary-small":"typography__secondary-small_16x2a","component-secondary":"typography__component-secondary_16x2a","rowLimit1":"typography__rowLimit1_16x2a","rowLimit2":"typography__rowLimit2_16x2a","rowLimit3":"typography__rowLimit3_16x2a","monospace":"typography__monospace_16x2a"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,27 +1,27 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .typography__transparent_1cokz {
4
+ .typography__transparent_1adal {
5
5
  opacity: 0;
6
6
  }
7
- .typography__component_1cokz {
7
+ .typography__component_1adal {
8
8
  margin: var(--gap-0);
9
9
  padding: var(--gap-0);
10
10
  }
11
- .typography__rowLimit1_1cokz {
11
+ .typography__rowLimit1_1adal {
12
12
  -webkit-line-clamp: 1;
13
13
  display: -webkit-box;
14
14
  -webkit-box-orient: vertical;
15
15
  overflow: hidden;
16
16
  word-break: break-all;
17
17
  }
18
- .typography__rowLimit2_1cokz {
18
+ .typography__rowLimit2_1adal {
19
19
  -webkit-line-clamp: 2;
20
20
  display: -webkit-box;
21
21
  -webkit-box-orient: vertical;
22
22
  overflow: hidden;
23
23
  }
24
- .typography__rowLimit3_1cokz {
24
+ .typography__rowLimit3_1adal {
25
25
  -webkit-line-clamp: 3;
26
26
  display: -webkit-box;
27
27
  -webkit-box-orient: vertical;
@@ -1,6 +1,6 @@
1
1
  import './common.css';
2
2
 
3
- const commonStyles = {"transparent":"typography__transparent_1cokz","component":"typography__component_1cokz","rowLimit1":"typography__rowLimit1_1cokz","rowLimit2":"typography__rowLimit2_1cokz","rowLimit3":"typography__rowLimit3_1cokz"};
3
+ const commonStyles = {"transparent":"typography__transparent_1adal","component":"typography__component_1adal","rowLimit1":"typography__rowLimit1_1adal","rowLimit2":"typography__rowLimit2_1adal","rowLimit3":"typography__rowLimit3_1adal"};
4
4
 
5
5
  export { commonStyles as default };
6
6
  //# sourceMappingURL=common.module.css.js.map
@@ -21,8 +21,6 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
21
21
  weight?: 'regular' | 'medium' | 'bold' | 'semibold';
22
22
  /**
23
23
  * Шрифт текста
24
- *
25
- * @deprecated
26
24
  */
27
25
  font?: 'styrene' | 'system' | 'alfasans' | {
28
26
  font: 'alfasans';
@@ -87,8 +85,6 @@ export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps
87
85
  weight?: "regular" | "medium" | "bold" | "semibold";
88
86
  /**
89
87
  * Шрифт текста
90
- *
91
- * @deprecated
92
88
  */
93
89
  font?: "styrene" | "system" | "alfasans" | {
94
90
  font: "alfasans";
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { forwardRef, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\nimport commonStyles from './common.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(font) ? font.font : font, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n return (\n <Component\n className={cn(\n commonStyles.component,\n styles.component,\n className,\n styles[`${weight === 'regular' ? 'regular-' : ''}${view}`],\n defaultMargins && styles[`margins-${view}`],\n color && colors[color],\n {\n [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,\n [commonStyles.transparent]: showSkeleton,\n [styles.font]:\n (isObject(font) && !font.systemCompat) || !(font === 'system'),\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;AA8FO,MAAM,SAAS,GAAG,UAAU,CAC/B,CACI,EACI,GAAG,EAAE,SAAS,GAAG,KAAK,EACtB,IAAI,GAAG,QAAQ,EACf,IAAI,GAAG,SAAS,EAChB,QAAQ,EACR,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,EAAE,QAAQ,CAAC,EACtE,cAAc,GAAG,KAAK,EACtB,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,aAAa,EACb,YAAY,EACZ,GAAG,SAAS,EACf,EACD,GAAG,KACH;AACA,IAAA,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,aAAa,CAAC;IAE5E,MAAM,QAAQ,GAAG,cAAc,CAAC;QAC5B,gBAAgB,EAAE,EAAE,CAAC,cAAc,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,IAAI,CAAE,CAAA,CAAC,CAAC;QACjE,UAAU;AACb,KAAA,CAAC;IAEF,IAAI,QAAQ,EAAE;AACV,QAAA,OAAO,QAAQ;;IAGnB,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,EACN,EAAA,SAAS,EAAE,EAAE,CACT,YAAY,CAAC,SAAS,EACtB,MAAM,CAAC,SAAS,EAChB,SAAS,EACT,MAAM,CAAC,CAAG,EAAA,MAAM,KAAK,SAAS,GAAG,UAAU,GAAG,EAAE,CAAA,EAAG,IAAI,CAAE,CAAA,CAAC,EAC1D,cAAc,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,IAAI,CAAE,CAAA,CAAC,EAC3C,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,EACtB;YACI,CAAC,YAAY,CAAC,CAAW,QAAA,EAAA,QAAQ,EAAE,CAAC,GAAG,QAAQ;AAC/C,YAAA,CAAC,YAAY,CAAC,WAAW,GAAG,YAAY;YACxC,CAAC,MAAM,CAAC,IAAI,GACR,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,EAAE,IAAI,KAAK,QAAQ,CAAC;AACrE,SAAA,CACJ,kBACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,GAAA,SAAS,IAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { forwardRef, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\nimport commonStyles from './common.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(font) ? font.font : font, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n return (\n <Component\n className={cn(\n commonStyles.component,\n styles.component,\n className,\n styles[`${weight === 'regular' ? 'regular-' : ''}${view}`],\n defaultMargins && styles[`margins-${view}`],\n color && colors[color],\n {\n [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,\n [commonStyles.transparent]: showSkeleton,\n [styles.font]:\n (isObject(font) && !font.systemCompat) || !(font === 'system'),\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;AA4FO,MAAM,SAAS,GAAG,UAAU,CAC/B,CACI,EACI,GAAG,EAAE,SAAS,GAAG,KAAK,EACtB,IAAI,GAAG,QAAQ,EACf,IAAI,GAAG,SAAS,EAChB,QAAQ,EACR,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,EAAE,QAAQ,CAAC,EACtE,cAAc,GAAG,KAAK,EACtB,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,aAAa,EACb,YAAY,EACZ,GAAG,SAAS,EACf,EACD,GAAG,KACH;AACA,IAAA,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,aAAa,CAAC;IAE5E,MAAM,QAAQ,GAAG,cAAc,CAAC;QAC5B,gBAAgB,EAAE,EAAE,CAAC,cAAc,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,IAAI,CAAE,CAAA,CAAC,CAAC;QACjE,UAAU;AACb,KAAA,CAAC;IAEF,IAAI,QAAQ,EAAE;AACV,QAAA,OAAO,QAAQ;;IAGnB,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,EACN,EAAA,SAAS,EAAE,EAAE,CACT,YAAY,CAAC,SAAS,EACtB,MAAM,CAAC,SAAS,EAChB,SAAS,EACT,MAAM,CAAC,CAAG,EAAA,MAAM,KAAK,SAAS,GAAG,UAAU,GAAG,EAAE,CAAA,EAAG,IAAI,CAAE,CAAA,CAAC,EAC1D,cAAc,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,IAAI,CAAE,CAAA,CAAC,EAC3C,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,EACtB;YACI,CAAC,YAAY,CAAC,CAAW,QAAA,EAAA,QAAQ,EAAE,CAAC,GAAG,QAAQ;AAC/C,YAAA,CAAC,YAAY,CAAC,WAAW,GAAG,YAAY;YACxC,CAAC,MAAM,CAAC,IAAI,GACR,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,EAAE,IAAI,KAAK,QAAQ,CAAC;AACrE,SAAA,CACJ,kBACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,GAAA,SAAS,IAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
@@ -16,137 +16,137 @@
16
16
  'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
17
17
  sans-serif;
18
18
  }
19
- .typography__xlarge_9p1fl {
19
+ .typography__xlarge_mzviu {
20
20
  font-size: 48px;
21
21
  line-height: 52px;
22
22
  font-weight: 700;
23
23
  font-family: var(--font-family-system);
24
24
  }
25
- .typography__xlarge_9p1fl.typography__font_9p1fl {
25
+ .typography__xlarge_mzviu.typography__font_mzviu {
26
26
  line-height: 64px;
27
27
  font-weight: 500;
28
28
  font-feature-settings: 'ss01';
29
29
  font-family: var(--font-family-styrene);
30
30
  }
31
- .typography__regular-xlarge_9p1fl {
31
+ .typography__regular-xlarge_mzviu {
32
32
  font-size: 48px;
33
33
  line-height: 52px;
34
34
  font-weight: 400;
35
35
  font-family: var(--font-family-system);
36
36
  }
37
- .typography__regular-xlarge_9p1fl.typography__font_9p1fl {
37
+ .typography__regular-xlarge_mzviu.typography__font_mzviu {
38
38
  line-height: 64px;
39
39
  font-feature-settings: 'ss01';
40
40
  font-family: var(--font-family-styrene);
41
41
  }
42
- .typography__large_9p1fl {
42
+ .typography__large_mzviu {
43
43
  font-size: 40px;
44
44
  line-height: 48px;
45
45
  font-weight: 700;
46
46
  font-family: var(--font-family-system);
47
47
  }
48
- .typography__large_9p1fl.typography__font_9p1fl {
48
+ .typography__large_mzviu.typography__font_mzviu {
49
49
  font-weight: 500;
50
50
  font-feature-settings: 'ss01';
51
51
  font-family: var(--font-family-styrene);
52
52
  }
53
- .typography__regular-large_9p1fl {
53
+ .typography__regular-large_mzviu {
54
54
  font-size: 40px;
55
55
  line-height: 48px;
56
56
  font-weight: 400;
57
57
  font-family: var(--font-family-system);
58
58
  }
59
- .typography__regular-large_9p1fl.typography__font_9p1fl {
59
+ .typography__regular-large_mzviu.typography__font_mzviu {
60
60
  font-feature-settings: 'ss01';
61
61
  font-family: var(--font-family-styrene);
62
62
  }
63
- .typography__medium_9p1fl {
63
+ .typography__medium_mzviu {
64
64
  font-size: 30px;
65
65
  line-height: 36px;
66
66
  font-weight: 700;
67
67
  font-family: var(--font-family-system);
68
68
  }
69
- .typography__medium_9p1fl.typography__font_9p1fl {
69
+ .typography__medium_mzviu.typography__font_mzviu {
70
70
  font-size: 32px;
71
71
  line-height: 40px;
72
72
  font-weight: 500;
73
73
  font-feature-settings: 'ss01';
74
74
  font-family: var(--font-family-styrene);
75
75
  }
76
- .typography__regular-medium_9p1fl {
76
+ .typography__regular-medium_mzviu {
77
77
  font-size: 30px;
78
78
  line-height: 36px;
79
79
  font-weight: 400;
80
80
  font-family: var(--font-family-system);
81
81
  }
82
- .typography__regular-medium_9p1fl.typography__font_9p1fl {
82
+ .typography__regular-medium_mzviu.typography__font_mzviu {
83
83
  font-size: 32px;
84
84
  line-height: 40px;
85
85
  font-feature-settings: 'ss01';
86
86
  font-family: var(--font-family-styrene);
87
87
  }
88
- .typography__small_9p1fl {
88
+ .typography__small_mzviu {
89
89
  font-size: 22px;
90
90
  line-height: 26px;
91
91
  font-weight: 700;
92
92
  font-family: var(--font-family-system);
93
93
  }
94
- .typography__small_9p1fl.typography__font_9p1fl {
94
+ .typography__small_mzviu.typography__font_mzviu {
95
95
  font-size: 24px;
96
96
  line-height: 32px;
97
97
  font-weight: 500;
98
98
  font-feature-settings: 'ss01';
99
99
  font-family: var(--font-family-styrene);
100
100
  }
101
- .typography__regular-small_9p1fl {
101
+ .typography__regular-small_mzviu {
102
102
  font-size: 22px;
103
103
  line-height: 26px;
104
104
  font-weight: 400;
105
105
  font-family: var(--font-family-system);
106
106
  }
107
- .typography__regular-small_9p1fl.typography__font_9p1fl {
107
+ .typography__regular-small_mzviu.typography__font_mzviu {
108
108
  font-size: 24px;
109
109
  line-height: 32px;
110
110
  font-feature-settings: 'ss01';
111
111
  font-family: var(--font-family-styrene);
112
112
  }
113
- .typography__xsmall_9p1fl {
113
+ .typography__xsmall_mzviu {
114
114
  font-size: 18px;
115
115
  line-height: 22px;
116
116
  font-weight: 700;
117
117
  font-family: var(--font-family-system);
118
118
  }
119
- .typography__xsmall_9p1fl.typography__font_9p1fl {
119
+ .typography__xsmall_mzviu.typography__font_mzviu {
120
120
  font-size: 20px;
121
121
  line-height: 24px;
122
122
  font-weight: 500;
123
123
  font-feature-settings: 'ss01';
124
124
  font-family: var(--font-family-styrene);
125
125
  }
126
- .typography__regular-xsmall_9p1fl {
126
+ .typography__regular-xsmall_mzviu {
127
127
  font-size: 18px;
128
128
  line-height: 22px;
129
129
  font-weight: 400;
130
130
  font-family: var(--font-family-system);
131
131
  }
132
- .typography__regular-xsmall_9p1fl.typography__font_9p1fl {
132
+ .typography__regular-xsmall_mzviu.typography__font_mzviu {
133
133
  font-size: 20px;
134
134
  line-height: 24px;
135
135
  font-feature-settings: 'ss01';
136
136
  font-family: var(--font-family-styrene);
137
137
  }
138
- .typography__component_9p1fl.typography__margins-xlarge_9p1fl {
138
+ .typography__component_mzviu.typography__margins-xlarge_mzviu {
139
139
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
140
140
  }
141
- .typography__component_9p1fl.typography__margins-large_9p1fl {
141
+ .typography__component_mzviu.typography__margins-large_mzviu {
142
142
  margin: var(--gap-48) var(--gap-0) var(--gap-24);
143
143
  }
144
- .typography__component_9p1fl.typography__margins-medium_9p1fl {
144
+ .typography__component_mzviu.typography__margins-medium_mzviu {
145
145
  margin: var(--gap-48) var(--gap-0) var(--gap-24);
146
146
  }
147
- .typography__component_9p1fl.typography__margins-small_9p1fl {
147
+ .typography__component_mzviu.typography__margins-small_mzviu {
148
148
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
149
149
  }
150
- .typography__component_9p1fl.typography__margins-xsmall_9p1fl {
150
+ .typography__component_mzviu.typography__margins-xsmall_mzviu {
151
151
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
152
152
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"xlarge":"typography__xlarge_9p1fl","font":"typography__font_9p1fl","regular-xlarge":"typography__regular-xlarge_9p1fl","large":"typography__large_9p1fl","regular-large":"typography__regular-large_9p1fl","medium":"typography__medium_9p1fl","regular-medium":"typography__regular-medium_9p1fl","small":"typography__small_9p1fl","regular-small":"typography__regular-small_9p1fl","xsmall":"typography__xsmall_9p1fl","regular-xsmall":"typography__regular-xsmall_9p1fl","component":"typography__component_9p1fl","margins-xlarge":"typography__margins-xlarge_9p1fl","margins-large":"typography__margins-large_9p1fl","margins-medium":"typography__margins-medium_9p1fl","margins-small":"typography__margins-small_9p1fl","margins-xsmall":"typography__margins-xsmall_9p1fl"};
3
+ const styles = {"xlarge":"typography__xlarge_mzviu","font":"typography__font_mzviu","regular-xlarge":"typography__regular-xlarge_mzviu","large":"typography__large_mzviu","regular-large":"typography__regular-large_mzviu","medium":"typography__medium_mzviu","regular-medium":"typography__regular-medium_mzviu","small":"typography__small_mzviu","regular-small":"typography__regular-small_mzviu","xsmall":"typography__xsmall_mzviu","regular-xsmall":"typography__regular-xsmall_mzviu","component":"typography__component_mzviu","margins-xlarge":"typography__margins-xlarge_mzviu","margins-large":"typography__margins-large_mzviu","margins-medium":"typography__margins-medium_mzviu","margins-small":"typography__margins-small_mzviu","margins-xsmall":"typography__margins-xsmall_mzviu"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -14,123 +14,123 @@
14
14
  'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
15
15
  sans-serif;
16
16
  }
17
- .typography__xlarge_13n6g {
17
+ .typography__xlarge_1v3ec {
18
18
  font-size: 34px;
19
19
  line-height: 40px;
20
20
  font-weight: 600;
21
21
  font-family: var(--font-family-system);
22
22
  }
23
- .typography__xlarge_13n6g.typography__font_13n6g {
23
+ .typography__xlarge_1v3ec.typography__font_1v3ec {
24
24
  font-weight: 500;
25
25
  font-feature-settings: 'ss01';
26
26
  font-family: var(--font-family-styrene);
27
27
  }
28
- .typography__regular-xlarge_13n6g {
28
+ .typography__regular-xlarge_1v3ec {
29
29
  font-size: 34px;
30
30
  line-height: 40px;
31
31
  font-weight: 400;
32
32
  font-family: var(--font-family-system);
33
33
  }
34
- .typography__regular-xlarge_13n6g.typography__system_13n6g {
34
+ .typography__regular-xlarge_1v3ec.typography__system_1v3ec {
35
35
  font-feature-settings: 'ss01';
36
36
  font-family: var(--font-family-styrene);
37
37
  }
38
- .typography__large_13n6g {
38
+ .typography__large_1v3ec {
39
39
  font-size: 30px;
40
40
  line-height: 36px;
41
41
  font-weight: 600;
42
42
  font-family: var(--font-family-system);
43
43
  }
44
- .typography__large_13n6g.typography__font_13n6g {
44
+ .typography__large_1v3ec.typography__font_1v3ec {
45
45
  font-weight: 500;
46
46
  font-feature-settings: 'ss01';
47
47
  font-family: var(--font-family-styrene);
48
48
  }
49
- .typography__regular-large_13n6g {
49
+ .typography__regular-large_1v3ec {
50
50
  font-size: 30px;
51
51
  line-height: 36px;
52
52
  font-weight: 400;
53
53
  font-family: var(--font-family-system);
54
54
  }
55
- .typography__regular-large_13n6g.typography__system_13n6g {
55
+ .typography__regular-large_1v3ec.typography__system_1v3ec {
56
56
  font-feature-settings: 'ss01';
57
57
  font-family: var(--font-family-styrene);
58
58
  }
59
- .typography__medium_13n6g {
59
+ .typography__medium_1v3ec {
60
60
  font-size: 26px;
61
61
  line-height: 32px;
62
62
  font-weight: 600;
63
63
  font-family: var(--font-family-system);
64
64
  }
65
- .typography__medium_13n6g.typography__font_13n6g {
65
+ .typography__medium_1v3ec.typography__font_1v3ec {
66
66
  font-weight: 500;
67
67
  font-feature-settings: 'ss01';
68
68
  font-family: var(--font-family-styrene);
69
69
  }
70
- .typography__regular-medium_13n6g {
70
+ .typography__regular-medium_1v3ec {
71
71
  font-size: 26px;
72
72
  line-height: 32px;
73
73
  font-weight: 400;
74
74
  font-family: var(--font-family-system);
75
75
  }
76
- .typography__regular-medium_13n6g.typography__system_13n6g {
76
+ .typography__regular-medium_1v3ec.typography__system_1v3ec {
77
77
  font-feature-settings: 'ss01';
78
78
  font-family: var(--font-family-styrene);
79
79
  }
80
- .typography__small_13n6g {
80
+ .typography__small_1v3ec {
81
81
  font-size: 20px;
82
82
  line-height: 28px;
83
83
  font-weight: 600;
84
84
  font-family: var(--font-family-system);
85
85
  }
86
- .typography__small_13n6g.typography__font_13n6g {
86
+ .typography__small_1v3ec.typography__font_1v3ec {
87
87
  font-weight: 500;
88
88
  font-feature-settings: 'ss01';
89
89
  font-family: var(--font-family-styrene);
90
90
  }
91
- .typography__regular-small_13n6g {
91
+ .typography__regular-small_1v3ec {
92
92
  font-size: 20px;
93
93
  line-height: 28px;
94
94
  font-weight: 400;
95
95
  font-family: var(--font-family-system);
96
96
  }
97
- .typography__regular-small_13n6g.typography__system_13n6g {
97
+ .typography__regular-small_1v3ec.typography__system_1v3ec {
98
98
  font-feature-settings: 'ss01';
99
99
  font-family: var(--font-family-styrene);
100
100
  }
101
- .typography__xsmall_13n6g {
101
+ .typography__xsmall_1v3ec {
102
102
  font-size: 16px;
103
103
  line-height: 20px;
104
104
  font-weight: 600;
105
105
  font-family: var(--font-family-system);
106
106
  }
107
- .typography__xsmall_13n6g.typography__font_13n6g {
107
+ .typography__xsmall_1v3ec.typography__font_1v3ec {
108
108
  font-weight: 500;
109
109
  font-feature-settings: 'ss01';
110
110
  font-family: var(--font-family-styrene);
111
111
  }
112
- .typography__regular-xsmall_13n6g {
112
+ .typography__regular-xsmall_1v3ec {
113
113
  font-size: 16px;
114
114
  line-height: 20px;
115
115
  font-weight: 400;
116
116
  font-family: var(--font-family-system);
117
117
  }
118
- .typography__regular-xsmall_13n6g.typography__system_13n6g {
118
+ .typography__regular-xsmall_1v3ec.typography__system_1v3ec {
119
119
  font-feature-settings: 'ss01';
120
120
  font-family: var(--font-family-styrene);
121
121
  }
122
- .typography__component_13n6g.typography__margins-xlarge_13n6g {
122
+ .typography__component_1v3ec.typography__margins-xlarge_1v3ec {
123
123
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
124
124
  }
125
- .typography__component_13n6g.typography__margins-large_13n6g {
125
+ .typography__component_1v3ec.typography__margins-large_1v3ec {
126
126
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
127
127
  }
128
- .typography__component_13n6g.typography__margins-medium_13n6g {
128
+ .typography__component_1v3ec.typography__margins-medium_1v3ec {
129
129
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
130
130
  }
131
- .typography__component_13n6g.typography__margins-small_13n6g {
131
+ .typography__component_1v3ec.typography__margins-small_1v3ec {
132
132
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
133
133
  }
134
- .typography__component_13n6g .typography__margins-xsmall_13n6g {
134
+ .typography__component_1v3ec .typography__margins-xsmall_1v3ec {
135
135
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
136
136
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"xlarge":"typography__xlarge_13n6g","font":"typography__font_13n6g","regular-xlarge":"typography__regular-xlarge_13n6g","system":"typography__system_13n6g","large":"typography__large_13n6g","regular-large":"typography__regular-large_13n6g","medium":"typography__medium_13n6g","regular-medium":"typography__regular-medium_13n6g","small":"typography__small_13n6g","regular-small":"typography__regular-small_13n6g","xsmall":"typography__xsmall_13n6g","regular-xsmall":"typography__regular-xsmall_13n6g","component":"typography__component_13n6g","margins-xlarge":"typography__margins-xlarge_13n6g","margins-large":"typography__margins-large_13n6g","margins-medium":"typography__margins-medium_13n6g","margins-small":"typography__margins-small_13n6g","margins-xsmall":"typography__margins-xsmall_13n6g"};
3
+ const styles = {"xlarge":"typography__xlarge_1v3ec","font":"typography__font_1v3ec","regular-xlarge":"typography__regular-xlarge_1v3ec","system":"typography__system_1v3ec","large":"typography__large_1v3ec","regular-large":"typography__regular-large_1v3ec","medium":"typography__medium_1v3ec","regular-medium":"typography__regular-medium_1v3ec","small":"typography__small_1v3ec","regular-small":"typography__regular-small_1v3ec","xsmall":"typography__xsmall_1v3ec","regular-xsmall":"typography__regular-xsmall_1v3ec","component":"typography__component_1v3ec","margins-xlarge":"typography__margins-xlarge_1v3ec","margins-large":"typography__margins-large_1v3ec","margins-medium":"typography__margins-medium_1v3ec","margins-small":"typography__margins-small_1v3ec","margins-xsmall":"typography__margins-xsmall_1v3ec"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -21,8 +21,6 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
21
21
  weight?: 'regular' | 'medium' | 'bold' | 'semibold';
22
22
  /**
23
23
  * Шрифт текста
24
- *
25
- * @deprecated
26
24
  */
27
25
  font?: 'styrene' | 'system' | 'alfasans' | {
28
26
  font: 'alfasans';
@@ -87,8 +85,6 @@ export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps
87
85
  weight?: "regular" | "medium" | "bold" | "semibold";
88
86
  /**
89
87
  * Шрифт текста
90
- *
91
- * @deprecated
92
88
  */
93
89
  font?: "styrene" | "system" | "alfasans" | {
94
90
  font: "alfasans";
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { forwardRef, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\nimport commonStyles from './common.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(font) ? font.font : font, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n return (\n <Component\n className={cn(\n commonStyles.component,\n styles.component,\n className,\n styles[`${weight === 'regular' ? 'regular-' : ''}${view}`],\n defaultMargins && styles[`margins-${view}`],\n color && colors[color],\n {\n [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,\n [commonStyles.transparent]: showSkeleton,\n [styles.font]:\n (isObject(font) && !font.systemCompat) || !(font === 'system'),\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;AA8FO,MAAM,SAAS,GAAG,UAAU,CAC/B,CACI,EACI,GAAG,EAAE,SAAS,GAAG,KAAK,EACtB,IAAI,GAAG,QAAQ,EACf,IAAI,GAAG,SAAS,EAChB,QAAQ,EACR,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,EAAE,QAAQ,CAAC,EACtE,cAAc,GAAG,KAAK,EACtB,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,aAAa,EACb,YAAY,EACZ,GAAG,SAAS,EACf,EACD,GAAG,KACH;AACA,IAAA,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,aAAa,CAAC;IAE5E,MAAM,QAAQ,GAAG,cAAc,CAAC;QAC5B,gBAAgB,EAAE,EAAE,CAAC,cAAc,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,IAAI,CAAE,CAAA,CAAC,CAAC;QACjE,UAAU;AACb,KAAA,CAAC;IAEF,IAAI,QAAQ,EAAE;AACV,QAAA,OAAO,QAAQ;;IAGnB,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,EACN,EAAA,SAAS,EAAE,EAAE,CACT,YAAY,CAAC,SAAS,EACtB,MAAM,CAAC,SAAS,EAChB,SAAS,EACT,MAAM,CAAC,CAAG,EAAA,MAAM,KAAK,SAAS,GAAG,UAAU,GAAG,EAAE,CAAA,EAAG,IAAI,CAAE,CAAA,CAAC,EAC1D,cAAc,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,IAAI,CAAE,CAAA,CAAC,EAC3C,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,EACtB;YACI,CAAC,YAAY,CAAC,CAAW,QAAA,EAAA,QAAQ,EAAE,CAAC,GAAG,QAAQ;AAC/C,YAAA,CAAC,YAAY,CAAC,WAAW,GAAG,YAAY;YACxC,CAAC,MAAM,CAAC,IAAI,GACR,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,EAAE,IAAI,KAAK,QAAQ,CAAC;AACrE,SAAA,CACJ,kBACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,GAAA,SAAS,IAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { forwardRef, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\nimport commonStyles from './common.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(font) ? font.font : font, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n return (\n <Component\n className={cn(\n commonStyles.component,\n styles.component,\n className,\n styles[`${weight === 'regular' ? 'regular-' : ''}${view}`],\n defaultMargins && styles[`margins-${view}`],\n color && colors[color],\n {\n [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,\n [commonStyles.transparent]: showSkeleton,\n [styles.font]:\n (isObject(font) && !font.systemCompat) || !(font === 'system'),\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;AA4FO,MAAM,SAAS,GAAG,UAAU,CAC/B,CACI,EACI,GAAG,EAAE,SAAS,GAAG,KAAK,EACtB,IAAI,GAAG,QAAQ,EACf,IAAI,GAAG,SAAS,EAChB,QAAQ,EACR,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,EAAE,QAAQ,CAAC,EACtE,cAAc,GAAG,KAAK,EACtB,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,aAAa,EACb,YAAY,EACZ,GAAG,SAAS,EACf,EACD,GAAG,KACH;AACA,IAAA,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,aAAa,CAAC;IAE5E,MAAM,QAAQ,GAAG,cAAc,CAAC;QAC5B,gBAAgB,EAAE,EAAE,CAAC,cAAc,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,IAAI,CAAE,CAAA,CAAC,CAAC;QACjE,UAAU;AACb,KAAA,CAAC;IAEF,IAAI,QAAQ,EAAE;AACV,QAAA,OAAO,QAAQ;;IAGnB,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,EACN,EAAA,SAAS,EAAE,EAAE,CACT,YAAY,CAAC,SAAS,EACtB,MAAM,CAAC,SAAS,EAChB,SAAS,EACT,MAAM,CAAC,CAAG,EAAA,MAAM,KAAK,SAAS,GAAG,UAAU,GAAG,EAAE,CAAA,EAAG,IAAI,CAAE,CAAA,CAAC,EAC1D,cAAc,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,IAAI,CAAE,CAAA,CAAC,EAC3C,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,EACtB;YACI,CAAC,YAAY,CAAC,CAAW,QAAA,EAAA,QAAQ,EAAE,CAAC,GAAG,QAAQ;AAC/C,YAAA,CAAC,YAAY,CAAC,WAAW,GAAG,YAAY;YACxC,CAAC,MAAM,CAAC,IAAI,GACR,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,EAAE,IAAI,KAAK,QAAQ,CAAC;AACrE,SAAA,CACJ,kBACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,GAAA,SAAS,IAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-typography",
3
- "version": "6.0.7",
3
+ "version": "6.0.8",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -37,8 +37,6 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
37
37
 
38
38
  /**
39
39
  * Шрифт текста
40
- *
41
- * @deprecated
42
40
  */
43
41
  font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };
44
42