@alfalab/core-components-typography 6.0.2 → 6.0.3-alfasans

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 (107) hide show
  1. package/colors.css +20 -20
  2. package/colors.d.ts +1 -1
  3. package/colors.module.css.js +1 -1
  4. package/colors.module.css.js.map +1 -1
  5. package/cssm/colors.d.ts +1 -1
  6. package/cssm/text/component.d.ts +4 -4
  7. package/cssm/text/component.js.map +1 -1
  8. package/cssm/text/index.module.css +40 -13
  9. package/cssm/title/component.d.ts +18 -18
  10. package/cssm/title/component.js.map +1 -1
  11. package/cssm/title/index.d.ts +13 -13
  12. package/cssm/title/index.module.css +29 -40
  13. package/cssm/title/utils.js.map +1 -1
  14. package/cssm/title-mobile/component.d.ts +13 -13
  15. package/cssm/title-mobile/index.module.css +28 -45
  16. package/cssm/title-responsive/component.d.ts +16 -16
  17. package/cssm/types.d.ts +1 -1
  18. package/esm/colors.css +20 -20
  19. package/esm/colors.d.ts +1 -1
  20. package/esm/colors.module.css.js +1 -1
  21. package/esm/colors.module.css.js.map +1 -1
  22. package/esm/text/component.d.ts +4 -4
  23. package/esm/text/component.js.map +1 -1
  24. package/esm/text/index.css +80 -53
  25. package/esm/text/index.module.css.js +1 -1
  26. package/esm/text/index.module.css.js.map +1 -1
  27. package/esm/title/common.css +5 -5
  28. package/esm/title/common.module.css.js +1 -1
  29. package/esm/title/common.module.css.js.map +1 -1
  30. package/esm/title/component.d.ts +18 -18
  31. package/esm/title/component.js.map +1 -1
  32. package/esm/title/index.css +54 -65
  33. package/esm/title/index.d.ts +13 -13
  34. package/esm/title/index.module.css.js +1 -1
  35. package/esm/title/index.module.css.js.map +1 -1
  36. package/esm/title/utils.js.map +1 -1
  37. package/esm/title-mobile/component.d.ts +13 -13
  38. package/esm/title-mobile/index.css +53 -70
  39. package/esm/title-mobile/index.module.css.js +1 -1
  40. package/esm/title-mobile/index.module.css.js.map +1 -1
  41. package/esm/title-responsive/component.d.ts +16 -16
  42. package/esm/types.d.ts +1 -1
  43. package/modern/colors.css +20 -20
  44. package/modern/colors.d.ts +1 -1
  45. package/modern/colors.module.css.js +1 -1
  46. package/modern/colors.module.css.js.map +1 -1
  47. package/modern/text/component.d.ts +4 -4
  48. package/modern/text/component.js.map +1 -1
  49. package/modern/text/index.css +80 -53
  50. package/modern/text/index.module.css.js +1 -1
  51. package/modern/text/index.module.css.js.map +1 -1
  52. package/modern/title/common.css +5 -5
  53. package/modern/title/common.module.css.js +1 -1
  54. package/modern/title/common.module.css.js.map +1 -1
  55. package/modern/title/component.d.ts +18 -18
  56. package/modern/title/component.js.map +1 -1
  57. package/modern/title/index.css +54 -65
  58. package/modern/title/index.d.ts +13 -13
  59. package/modern/title/index.module.css.js +1 -1
  60. package/modern/title/index.module.css.js.map +1 -1
  61. package/modern/title/utils.js.map +1 -1
  62. package/modern/title-mobile/component.d.ts +13 -13
  63. package/modern/title-mobile/index.css +53 -70
  64. package/modern/title-mobile/index.module.css.js +1 -1
  65. package/modern/title-mobile/index.module.css.js.map +1 -1
  66. package/modern/title-responsive/component.d.ts +16 -16
  67. package/modern/types.d.ts +1 -1
  68. package/moderncssm/colors.d.ts +1 -1
  69. package/moderncssm/text/component.d.ts +4 -4
  70. package/moderncssm/text/component.js.map +1 -1
  71. package/moderncssm/text/index.module.css +37 -11
  72. package/moderncssm/title/component.d.ts +18 -18
  73. package/moderncssm/title/component.js.map +1 -1
  74. package/moderncssm/title/index.d.ts +13 -13
  75. package/moderncssm/title/index.module.css +29 -38
  76. package/moderncssm/title/utils.js.map +1 -1
  77. package/moderncssm/title-mobile/component.d.ts +13 -13
  78. package/moderncssm/title-mobile/index.module.css +28 -43
  79. package/moderncssm/title-responsive/component.d.ts +16 -16
  80. package/moderncssm/types.d.ts +1 -1
  81. package/package.json +6 -6
  82. package/src/colors.module.css +1 -1
  83. package/src/text/index.module.css +1 -1
  84. package/src/title/common.module.css +1 -1
  85. package/src/title/index.module.css +1 -1
  86. package/src/title-mobile/index.module.css +1 -1
  87. package/text/component.d.ts +4 -4
  88. package/text/component.js.map +1 -1
  89. package/text/index.css +80 -53
  90. package/text/index.module.css.js +1 -1
  91. package/text/index.module.css.js.map +1 -1
  92. package/title/common.css +5 -5
  93. package/title/common.module.css.js +1 -1
  94. package/title/common.module.css.js.map +1 -1
  95. package/title/component.d.ts +18 -18
  96. package/title/component.js.map +1 -1
  97. package/title/index.css +54 -65
  98. package/title/index.d.ts +13 -13
  99. package/title/index.module.css.js +1 -1
  100. package/title/index.module.css.js.map +1 -1
  101. package/title/utils.js.map +1 -1
  102. package/title-mobile/component.d.ts +13 -13
  103. package/title-mobile/index.css +53 -70
  104. package/title-mobile/index.module.css.js +1 -1
  105. package/title-mobile/index.module.css.js.map +1 -1
  106. package/title-responsive/component.d.ts +16 -16
  107. package/types.d.ts +1 -1
package/title/common.css CHANGED
@@ -1,27 +1,27 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .typography__transparent_8hyq2 {
4
+ .typography__transparent_1hjyn {
5
5
  opacity: 0;
6
6
  }
7
- .typography__component_8hyq2 {
7
+ .typography__component_1hjyn {
8
8
  margin: var(--gap-0);
9
9
  padding: var(--gap-0);
10
10
  }
11
- .typography__rowLimit1_8hyq2 {
11
+ .typography__rowLimit1_1hjyn {
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_8hyq2 {
18
+ .typography__rowLimit2_1hjyn {
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_8hyq2 {
24
+ .typography__rowLimit3_1hjyn {
25
25
  -webkit-line-clamp: 3;
26
26
  display: -webkit-box;
27
27
  -webkit-box-orient: vertical;
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./common.css');
4
4
 
5
- var commonStyles = {"transparent":"typography__transparent_8hyq2","component":"typography__component_8hyq2","rowLimit1":"typography__rowLimit1_8hyq2","rowLimit2":"typography__rowLimit2_8hyq2","rowLimit3":"typography__rowLimit3_8hyq2"};
5
+ var commonStyles = {"transparent":"typography__transparent_1hjyn","component":"typography__component_1hjyn","rowLimit1":"typography__rowLimit1_1hjyn","rowLimit2":"typography__rowLimit2_1hjyn","rowLimit3":"typography__rowLimit3_1hjyn"};
6
6
 
7
7
  module.exports = commonStyles;
8
8
  //# sourceMappingURL=common.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../common.module.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n"],"names":[],"mappings":";;;;AAEgB,mBAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
1
+ {"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n"],"names":[],"mappings":";;;;AAEgB,mBAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
@@ -1,8 +1,8 @@
1
1
  import React, { type HTMLAttributes } from 'react';
2
2
  import { type TextSkeletonProps } from '@alfalab/core-components-skeleton';
3
3
  import { type Color } from '../colors';
4
- declare type NativeProps = HTMLAttributes<HTMLHeadingElement>;
5
- export declare type TitleProps = Omit<NativeProps, 'color'> & {
4
+ type NativeProps = HTMLAttributes<HTMLHeadingElement>;
5
+ export type TitleProps = Omit<NativeProps, 'color'> & {
6
6
  /**
7
7
  * HTML тег
8
8
  */
@@ -61,51 +61,51 @@ export declare type TitleProps = Omit<NativeProps, 'color'> & {
61
61
  */
62
62
  defaultMatchMediaValue?: boolean | (() => boolean);
63
63
  };
64
- declare type PrivateProps = {
64
+ type PrivateProps = {
65
65
  styles: {
66
66
  [key: string]: string;
67
67
  };
68
68
  platform: 'mobile' | 'desktop';
69
69
  };
70
- declare type TitleElementType = HTMLHeadingElement | HTMLDivElement;
70
+ type TitleElementType = HTMLHeadingElement | HTMLDivElement;
71
71
  export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
72
72
  /**
73
73
  * HTML тег
74
74
  */
75
- tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
75
+ tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
76
76
  /**
77
77
  * [Вариант начертания](?path=/docs/guidelines-typography--page)
78
78
  */
79
- view?: "medium" | "small" | "xlarge" | "large" | "xsmall" | undefined;
79
+ view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
80
80
  /**
81
81
  * Цвет текста
82
82
  */
83
- 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" | "static-positive" | undefined;
83
+ color?: Color;
84
84
  /**
85
85
  * Толщина шрифта
86
86
  */
87
- weight?: "regular" | "medium" | "bold" | "semibold" | undefined;
87
+ weight?: "regular" | "medium" | "bold" | "semibold";
88
88
  /**
89
89
  * Шрифт текста
90
90
  *
91
91
  * @deprecated
92
92
  */
93
- font?: "alfasans" | "styrene" | "system" | {
94
- font: 'alfasans';
93
+ font?: "styrene" | "system" | "alfasans" | {
94
+ font: "alfasans";
95
95
  systemCompat: boolean;
96
- } | undefined;
96
+ };
97
97
  /**
98
98
  * Добавляет отступы
99
99
  */
100
- defaultMargins?: boolean | undefined;
100
+ defaultMargins?: boolean;
101
101
  /**
102
102
  * Css-класс для стилизации (native prop)
103
103
  */
104
- className?: string | undefined;
104
+ className?: string;
105
105
  /**
106
106
  * Id компонента для тестов
107
107
  */
108
- dataTestId?: string | undefined;
108
+ dataTestId?: string;
109
109
  /**
110
110
  * Контент (native prop)
111
111
  */
@@ -113,18 +113,18 @@ export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps
113
113
  /**
114
114
  * Количество строк
115
115
  */
116
- rowLimit?: 1 | 2 | 3 | undefined;
116
+ rowLimit?: 1 | 2 | 3;
117
117
  /**
118
118
  * Показать скелетон
119
119
  */
120
- showSkeleton?: boolean | undefined;
120
+ showSkeleton?: boolean;
121
121
  /**
122
122
  * Пропы для скелетона
123
123
  */
124
- skeletonProps?: TextSkeletonProps | undefined;
124
+ skeletonProps?: TextSkeletonProps;
125
125
  /**
126
126
  * Значение по-умолчанию для хука useMatchMedia
127
127
  */
128
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
128
+ defaultMatchMediaValue?: boolean | (() => boolean);
129
129
  } & PrivateProps & React.RefAttributes<TitleElementType>>;
130
130
  export {};
@@ -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":["forwardRef","getDefaultWeight","isObject","__rest","useSkeleton","cn","React","__assign","commonStyles","colors","mergeRefs"],"mappings":";;;;;;;;;;;;;;;;;;;;IA8Fa,SAAS,GAAGA,gBAAU,CAC/B,UACI,EAgBC,EACD,GAAG,EAAA;;AAhBC,IAAA,IAAA,WAAsB,EAAjB,SAAS,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,KAAA,EACtB,EAAA,GAAA,EAAA,CAAA,IAAe,EAAf,IAAI,mBAAG,QAAQ,GAAA,EAAA,EACf,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAG,EAAA,KAAA,MAAA,GAAA,SAAS,GAAA,EAAA,EAChB,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,cAAsE,EAAtE,MAAM,mBAAGC,sBAAgB,CAACC,6BAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,EAAE,QAAQ,CAAC,GAAA,EAAA,EACtE,sBAAsB,EAAtB,cAAc,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,KAAA,EACtB,KAAK,WAAA,EACL,SAAS,eAAA,EACT,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,aAAa,GAAA,EAAA,CAAA,aAAA,EACb,YAAY,GAAA,EAAA,CAAA,YAAA,EACT,SAAS,GAAAC,YAAA,CAAA,EAAA,EAfhB,sKAgBC,CADe;AAIV,IAAA,IAAA,EAA8B,GAAAC,kCAAW,CAAC,YAAY,EAAE,aAAa,CAAC,EAApE,cAAc,GAAA,EAAA,CAAA,cAAA,EAAE,OAAO,aAA6C;IAE5E,IAAM,QAAQ,GAAG,cAAc,CAAC;QAC5B,gBAAgB,EAAEC,mBAAE,CAAC,cAAc,IAAI,MAAM,CAAC,UAAW,CAAA,MAAA,CAAA,IAAI,CAAE,CAAC,CAAC;AACjE,QAAA,UAAU,EAAA,UAAA;AACb,KAAA,CAAC;AAEF,IAAA,IAAI,QAAQ,EAAE;AACV,QAAA,OAAO,QAAQ;AAClB;IAED,QACIC,qCAAC,SAAS,EAAAC,cAAA,CAAA,EACN,SAAS,EAAEF,mBAAE,CACTG,aAAY,CAAC,SAAS,EACtB,MAAM,CAAC,SAAS,EAChB,SAAS,EACT,MAAM,CAAC,EAAA,CAAA,MAAA,CAAG,MAAM,KAAK,SAAS,GAAG,UAAU,GAAG,EAAE,SAAG,IAAI,CAAE,CAAC,EAC1D,cAAc,IAAI,MAAM,CAAC,UAAA,CAAA,MAAA,CAAW,IAAI,CAAE,CAAC,EAC3C,KAAK,IAAIC,aAAM,CAAC,KAAK,CAAC,GAAA,EAAA,GAAA,EAAA;AAElB,YAAA,EAAA,CAACD,aAAY,CAAC,UAAA,CAAA,MAAA,CAAW,QAAQ,CAAE,CAAC,IAAG,QAAQ;AAC/C,YAAA,EAAA,CAACA,aAAY,CAAC,WAAW,CAAA,GAAG,YAAY;YACxC,EAAC,CAAA,MAAM,CAAC,IAAI,CAAA,GACR,CAACN,6BAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,EAAE,IAAI,KAAK,QAAQ,CAAC;AAEzE,YAAA,EAAA,EAAA,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAEQ,0BAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,EAAA,SAAS,GAEZ,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 * @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":["forwardRef","getDefaultWeight","isObject","__rest","useSkeleton","cn","React","__assign","commonStyles","colors","mergeRefs"],"mappings":";;;;;;;;;;;;;;;;;;;;IA8Fa,SAAS,GAAGA,gBAAU,CAC/B,UACI,EAgBC,EACD,GAAG,EAAA;;AAhBC,IAAA,IAAA,WAAsB,EAAjB,SAAS,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,KAAA,EACtB,EAAA,GAAA,EAAA,CAAA,IAAe,EAAf,IAAI,mBAAG,QAAQ,GAAA,EAAA,EACf,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAG,EAAA,KAAA,MAAA,GAAA,SAAS,GAAA,EAAA,EAChB,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,cAAsE,EAAtE,MAAM,mBAAGC,sBAAgB,CAACC,6BAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,EAAE,QAAQ,CAAC,GAAA,EAAA,EACtE,sBAAsB,EAAtB,cAAc,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,KAAA,EACtB,KAAK,WAAA,EACL,SAAS,eAAA,EACT,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,aAAa,GAAA,EAAA,CAAA,aAAA,EACb,YAAY,GAAA,EAAA,CAAA,YAAA,EACT,SAAS,GAAAC,YAAA,CAAA,EAAA,EAfhB,sKAgBC,CADe;AAIV,IAAA,IAAA,EAA8B,GAAAC,kCAAW,CAAC,YAAY,EAAE,aAAa,CAAC,EAApE,cAAc,GAAA,EAAA,CAAA,cAAA,EAAE,OAAO,aAA6C;IAE5E,IAAM,QAAQ,GAAG,cAAc,CAAC;QAC5B,gBAAgB,EAAEC,mBAAE,CAAC,cAAc,IAAI,MAAM,CAAC,UAAW,CAAA,MAAA,CAAA,IAAI,CAAE,CAAC,CAAC;AACjE,QAAA,UAAU,EAAA,UAAA;AACb,KAAA,CAAC;IAEF,IAAI,QAAQ,EAAE;AACV,QAAA,OAAO,QAAQ;;IAGnB,QACIC,qCAAC,SAAS,EAAAC,cAAA,CAAA,EACN,SAAS,EAAEF,mBAAE,CACTG,aAAY,CAAC,SAAS,EACtB,MAAM,CAAC,SAAS,EAChB,SAAS,EACT,MAAM,CAAC,EAAA,CAAA,MAAA,CAAG,MAAM,KAAK,SAAS,GAAG,UAAU,GAAG,EAAE,SAAG,IAAI,CAAE,CAAC,EAC1D,cAAc,IAAI,MAAM,CAAC,UAAA,CAAA,MAAA,CAAW,IAAI,CAAE,CAAC,EAC3C,KAAK,IAAIC,aAAM,CAAC,KAAK,CAAC,GAAA,EAAA,GAAA,EAAA;AAElB,YAAA,EAAA,CAACD,aAAY,CAAC,UAAA,CAAA,MAAA,CAAW,QAAQ,CAAE,CAAC,IAAG,QAAQ;AAC/C,YAAA,EAAA,CAACA,aAAY,CAAC,WAAW,CAAA,GAAG,YAAY;YACxC,EAAC,CAAA,MAAM,CAAC,IAAI,CAAA,GACR,CAACN,6BAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,EAAE,IAAI,KAAK,QAAQ,CAAC;AAEzE,YAAA,EAAA,EAAA,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAEQ,0BAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,EAAA,SAAS,GAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
package/title/index.css CHANGED
@@ -10,143 +10,132 @@
10
10
  --gap-48: var(--gap-4xl);
11
11
  }
12
12
  :root {
13
- --font-family-system:
14
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
15
- --font-family-styrene:
16
- 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
17
- sans-serif;
13
+ --font-family-alfasans:
14
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
15
+ Helvetica, sans-serif;
18
16
  }
19
- .typography__xlarge_1b3u8 {
17
+ .typography__xlarge_eq9mm {
20
18
  font-size: 48px;
21
19
  line-height: 52px;
22
20
  font-weight: 700;
23
- font-family: var(--font-family-system);
21
+ letter-spacing: 0.1px;
22
+ font-family: var(--font-family-alfasans);
24
23
  }
25
- .typography__xlarge_1b3u8.typography__font_1b3u8 {
24
+ .typography__xlarge_eq9mm.typography__font_eq9mm {
26
25
  line-height: 64px;
27
- font-weight: 500;
28
- font-feature-settings: 'ss01';
29
- font-family: var(--font-family-styrene);
30
26
  }
31
- .typography__regular-xlarge_1b3u8 {
27
+ .typography__regular-xlarge_eq9mm {
32
28
  font-size: 48px;
33
29
  line-height: 52px;
34
30
  font-weight: 400;
35
- font-family: var(--font-family-system);
31
+ letter-spacing: -2.1px;
32
+ font-family: var(--font-family-alfasans);
36
33
  }
37
- .typography__regular-xlarge_1b3u8.typography__font_1b3u8 {
34
+ .typography__regular-xlarge_eq9mm.typography__font_eq9mm {
38
35
  line-height: 64px;
39
- font-feature-settings: 'ss01';
40
- font-family: var(--font-family-styrene);
41
36
  }
42
- .typography__large_1b3u8 {
37
+ .typography__large_eq9mm {
43
38
  font-size: 40px;
44
39
  line-height: 48px;
45
40
  font-weight: 700;
46
- font-family: var(--font-family-system);
41
+ letter-spacing: 0.1px;
42
+ font-family: var(--font-family-alfasans);
47
43
  }
48
- .typography__large_1b3u8.typography__font_1b3u8 {
49
- font-weight: 500;
50
- font-feature-settings: 'ss01';
51
- font-family: var(--font-family-styrene);
44
+ .typography__large_eq9mm.typography__font_eq9mm {
52
45
  }
53
- .typography__regular-large_1b3u8 {
46
+ .typography__regular-large_eq9mm {
54
47
  font-size: 40px;
55
48
  line-height: 48px;
56
49
  font-weight: 400;
57
- font-family: var(--font-family-system);
50
+ letter-spacing: -1.7px;
51
+ font-family: var(--font-family-alfasans);
58
52
  }
59
- .typography__regular-large_1b3u8.typography__font_1b3u8 {
60
- font-feature-settings: 'ss01';
61
- font-family: var(--font-family-styrene);
53
+ .typography__regular-large_eq9mm.typography__font_eq9mm {
62
54
  }
63
- .typography__medium_1b3u8 {
55
+ .typography__medium_eq9mm {
64
56
  font-size: 30px;
65
57
  line-height: 36px;
66
58
  font-weight: 700;
67
- font-family: var(--font-family-system);
59
+ letter-spacing: 0.1px;
60
+ font-family: var(--font-family-alfasans);
68
61
  }
69
- .typography__medium_1b3u8.typography__font_1b3u8 {
62
+ .typography__medium_eq9mm.typography__font_eq9mm {
70
63
  font-size: 32px;
71
64
  line-height: 40px;
72
- font-weight: 500;
73
- font-feature-settings: 'ss01';
74
- font-family: var(--font-family-styrene);
65
+ letter-spacing: 0.3px;
75
66
  }
76
- .typography__regular-medium_1b3u8 {
67
+ .typography__regular-medium_eq9mm {
77
68
  font-size: 30px;
78
69
  line-height: 36px;
79
70
  font-weight: 400;
80
- font-family: var(--font-family-system);
71
+ letter-spacing: -1.25px;
72
+ font-family: var(--font-family-alfasans);
81
73
  }
82
- .typography__regular-medium_1b3u8.typography__font_1b3u8 {
74
+ .typography__regular-medium_eq9mm.typography__font_eq9mm {
83
75
  font-size: 32px;
84
76
  line-height: 40px;
85
- font-feature-settings: 'ss01';
86
- font-family: var(--font-family-styrene);
77
+ letter-spacing: -1.36px;
87
78
  }
88
- .typography__small_1b3u8 {
79
+ .typography__small_eq9mm {
89
80
  font-size: 22px;
90
81
  line-height: 26px;
91
82
  font-weight: 700;
92
- font-family: var(--font-family-system);
83
+ letter-spacing: 0.2px;
84
+ font-family: var(--font-family-alfasans);
93
85
  }
94
- .typography__small_1b3u8.typography__font_1b3u8 {
86
+ .typography__small_eq9mm.typography__font_eq9mm {
95
87
  font-size: 24px;
96
88
  line-height: 32px;
97
- font-weight: 500;
98
- font-feature-settings: 'ss01';
99
- font-family: var(--font-family-styrene);
89
+ letter-spacing: 0.39px;
100
90
  }
101
- .typography__regular-small_1b3u8 {
91
+ .typography__regular-small_eq9mm {
102
92
  font-size: 22px;
103
93
  line-height: 26px;
104
94
  font-weight: 400;
105
- font-family: var(--font-family-system);
95
+ letter-spacing: -0.8px;
96
+ font-family: var(--font-family-alfasans);
106
97
  }
107
- .typography__regular-small_1b3u8.typography__font_1b3u8 {
98
+ .typography__regular-small_eq9mm.typography__font_eq9mm {
108
99
  font-size: 24px;
109
100
  line-height: 32px;
110
- font-feature-settings: 'ss01';
111
- font-family: var(--font-family-styrene);
101
+ letter-spacing: -0.9px;
112
102
  }
113
- .typography__xsmall_1b3u8 {
103
+ .typography__xsmall_eq9mm {
114
104
  font-size: 18px;
115
105
  line-height: 22px;
116
106
  font-weight: 700;
117
- font-family: var(--font-family-system);
107
+ letter-spacing: 0.38px;
108
+ font-family: var(--font-family-alfasans);
118
109
  }
119
- .typography__xsmall_1b3u8.typography__font_1b3u8 {
110
+ .typography__xsmall_eq9mm.typography__font_eq9mm {
120
111
  font-size: 20px;
121
112
  line-height: 24px;
122
- font-weight: 500;
123
- font-feature-settings: 'ss01';
124
- font-family: var(--font-family-styrene);
113
+ letter-spacing: 0.33px;
125
114
  }
126
- .typography__regular-xsmall_1b3u8 {
115
+ .typography__regular-xsmall_eq9mm {
127
116
  font-size: 18px;
128
117
  line-height: 22px;
129
118
  font-weight: 400;
130
- font-family: var(--font-family-system);
119
+ letter-spacing: -0.36px;
120
+ font-family: var(--font-family-alfasans);
131
121
  }
132
- .typography__regular-xsmall_1b3u8.typography__font_1b3u8 {
122
+ .typography__regular-xsmall_eq9mm.typography__font_eq9mm {
133
123
  font-size: 20px;
134
124
  line-height: 24px;
135
- font-feature-settings: 'ss01';
136
- font-family: var(--font-family-styrene);
125
+ letter-spacing: -0.68px;
137
126
  }
138
- .typography__component_1b3u8.typography__margins-xlarge_1b3u8 {
127
+ .typography__component_eq9mm.typography__margins-xlarge_eq9mm {
139
128
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
140
129
  }
141
- .typography__component_1b3u8.typography__margins-large_1b3u8 {
130
+ .typography__component_eq9mm.typography__margins-large_eq9mm {
142
131
  margin: var(--gap-48) var(--gap-0) var(--gap-24);
143
132
  }
144
- .typography__component_1b3u8.typography__margins-medium_1b3u8 {
133
+ .typography__component_eq9mm.typography__margins-medium_eq9mm {
145
134
  margin: var(--gap-48) var(--gap-0) var(--gap-24);
146
135
  }
147
- .typography__component_1b3u8.typography__margins-small_1b3u8 {
136
+ .typography__component_eq9mm.typography__margins-small_eq9mm {
148
137
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
149
138
  }
150
- .typography__component_1b3u8.typography__margins-xsmall_1b3u8 {
139
+ .typography__component_eq9mm.typography__margins-xsmall_eq9mm {
151
140
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
152
141
  }
package/title/index.d.ts CHANGED
@@ -1,22 +1,22 @@
1
1
  import React from 'react';
2
2
  import { type TitleProps } from './component';
3
3
  declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
4
- tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
5
- view?: "medium" | "small" | "xlarge" | "large" | "xsmall" | undefined;
6
- color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | "static-accent" | "static-positive" | undefined;
7
- weight?: "regular" | "medium" | "bold" | "semibold" | undefined;
8
- font?: "alfasans" | "styrene" | "system" | {
4
+ tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
5
+ view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
6
+ color?: import("..").Color;
7
+ weight?: "regular" | "medium" | "bold" | "semibold";
8
+ font?: "styrene" | "system" | "alfasans" | {
9
9
  font: "alfasans";
10
10
  systemCompat: boolean;
11
- } | undefined;
12
- defaultMargins?: boolean | undefined;
13
- className?: string | undefined;
14
- dataTestId?: string | undefined;
11
+ };
12
+ defaultMargins?: boolean;
13
+ className?: string;
14
+ dataTestId?: string;
15
15
  children?: React.ReactNode;
16
- rowLimit?: 1 | 2 | 3 | undefined;
17
- showSkeleton?: boolean | undefined;
18
- skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps | undefined;
19
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
16
+ rowLimit?: 1 | 2 | 3;
17
+ showSkeleton?: boolean;
18
+ skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps;
19
+ defaultMatchMediaValue?: boolean | (() => boolean);
20
20
  } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
21
21
  export { Title };
22
22
  export type { TitleProps };
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"xlarge":"typography__xlarge_1b3u8","font":"typography__font_1b3u8","regular-xlarge":"typography__regular-xlarge_1b3u8","large":"typography__large_1b3u8","regular-large":"typography__regular-large_1b3u8","medium":"typography__medium_1b3u8","regular-medium":"typography__regular-medium_1b3u8","small":"typography__small_1b3u8","regular-small":"typography__regular-small_1b3u8","xsmall":"typography__xsmall_1b3u8","regular-xsmall":"typography__regular-xsmall_1b3u8","component":"typography__component_1b3u8","margins-xlarge":"typography__margins-xlarge_1b3u8","margins-large":"typography__margins-large_1b3u8","margins-medium":"typography__margins-medium_1b3u8","margins-small":"typography__margins-small_1b3u8","margins-xsmall":"typography__margins-xsmall_1b3u8"};
5
+ var styles = {"xlarge":"typography__xlarge_eq9mm","font":"typography__font_eq9mm","regular-xlarge":"typography__regular-xlarge_eq9mm","large":"typography__large_eq9mm","regular-large":"typography__regular-large_eq9mm","medium":"typography__medium_eq9mm","regular-medium":"typography__regular-medium_eq9mm","small":"typography__small_eq9mm","regular-small":"typography__regular-small_eq9mm","xsmall":"typography__xsmall_eq9mm","regular-xsmall":"typography__regular-xsmall_eq9mm","component":"typography__component_eq9mm","margins-xlarge":"typography__margins-xlarge_eq9mm","margins-large":"typography__margins-large_eq9mm","margins-medium":"typography__margins-medium_eq9mm","margins-small":"typography__margins-small_eq9mm","margins-xsmall":"typography__margins-xsmall_eq9mm"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../src/title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system_$(view);\n\n &.font {\n @subtract-mixin headline_$(view), headline-system_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system_$(view);\n\n &.font {\n @subtract-mixin promo_$(view), promo-system_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-medium;\n }\n\n &.margins-medium {\n @mixin margin-medium;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n &.margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system_$(view);\n\n &.font {\n @subtract-mixin headline_$(view), headline-system_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system_$(view);\n\n &.font {\n @subtract-mixin promo_$(view), promo-system_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-medium;\n }\n\n &.margins-medium {\n @mixin margin-medium;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n &.margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":";;;;AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;AAE9B,IAAA,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;AAClB;IAED,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;AAChB;AAED,IAAA,OAAO,UAAU;AACrB;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":";;;;AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;;AAGnB,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;;AAGjB,IAAA,OAAO,UAAU;AACrB;;;;"}
@@ -1,19 +1,19 @@
1
1
  import React from 'react';
2
2
  export declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
3
- tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
4
- view?: "medium" | "small" | "xlarge" | "large" | "xsmall" | undefined;
5
- 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" | "static-positive" | undefined;
6
- weight?: "regular" | "medium" | "bold" | "semibold" | undefined;
7
- font?: "alfasans" | "styrene" | "system" | {
3
+ tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
4
+ view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
5
+ color?: import("..").Color;
6
+ weight?: "regular" | "medium" | "bold" | "semibold";
7
+ font?: "styrene" | "system" | "alfasans" | {
8
8
  font: "alfasans";
9
9
  systemCompat: boolean;
10
- } | undefined;
11
- defaultMargins?: boolean | undefined;
12
- className?: string | undefined;
13
- dataTestId?: string | undefined;
10
+ };
11
+ defaultMargins?: boolean;
12
+ className?: string;
13
+ dataTestId?: string;
14
14
  children?: React.ReactNode;
15
- rowLimit?: 1 | 2 | 3 | undefined;
16
- showSkeleton?: boolean | undefined;
17
- skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps | undefined;
18
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
15
+ rowLimit?: 1 | 2 | 3;
16
+ showSkeleton?: boolean;
17
+ skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps;
18
+ defaultMatchMediaValue?: boolean | (() => boolean);
19
19
  } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;