@alfalab/core-components-typography 6.0.9-alfasans → 6.0.10

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 (88) hide show
  1. package/colors.css +20 -20
  2. package/colors.module.css.js +1 -1
  3. package/cssm/text/index.module.css +14 -42
  4. package/cssm/title/component.d.ts +8 -2
  5. package/cssm/title/component.js +6 -3
  6. package/cssm/title/component.js.map +1 -1
  7. package/cssm/title/index.d.ts +4 -1
  8. package/cssm/title/index.module.css +78 -31
  9. package/cssm/title/utils.d.ts +1 -0
  10. package/cssm/title/utils.js +16 -0
  11. package/cssm/title/utils.js.map +1 -0
  12. package/cssm/title-mobile/component.d.ts +4 -1
  13. package/cssm/title-mobile/index.module.css +48 -34
  14. package/cssm/title-responsive/component.d.ts +4 -1
  15. package/esm/colors.css +20 -20
  16. package/esm/colors.module.css.js +1 -1
  17. package/esm/text/index.css +54 -82
  18. package/esm/text/index.module.css.js +1 -1
  19. package/esm/title/common.css +5 -5
  20. package/esm/title/common.module.css.js +1 -1
  21. package/esm/title/component.d.ts +8 -2
  22. package/esm/title/component.js +5 -2
  23. package/esm/title/component.js.map +1 -1
  24. package/esm/title/index.css +93 -46
  25. package/esm/title/index.d.ts +4 -1
  26. package/esm/title/index.module.css.js +1 -1
  27. package/esm/title/index.module.css.js.map +1 -1
  28. package/esm/title/utils.d.ts +1 -0
  29. package/esm/title/utils.js +12 -0
  30. package/esm/title/utils.js.map +1 -0
  31. package/esm/title-mobile/component.d.ts +4 -1
  32. package/esm/title-mobile/index.css +73 -59
  33. package/esm/title-mobile/index.module.css.js +1 -1
  34. package/esm/title-responsive/component.d.ts +4 -1
  35. package/modern/colors.css +20 -20
  36. package/modern/colors.module.css.js +1 -1
  37. package/modern/text/index.css +54 -82
  38. package/modern/text/index.module.css.js +1 -1
  39. package/modern/title/common.css +5 -5
  40. package/modern/title/common.module.css.js +1 -1
  41. package/modern/title/component.d.ts +8 -2
  42. package/modern/title/component.js +4 -1
  43. package/modern/title/component.js.map +1 -1
  44. package/modern/title/index.css +93 -46
  45. package/modern/title/index.d.ts +4 -1
  46. package/modern/title/index.module.css.js +1 -1
  47. package/modern/title/index.module.css.js.map +1 -1
  48. package/modern/title/utils.d.ts +1 -0
  49. package/modern/title/utils.js +12 -0
  50. package/modern/title/utils.js.map +1 -0
  51. package/modern/title-mobile/component.d.ts +4 -1
  52. package/modern/title-mobile/index.css +73 -59
  53. package/modern/title-mobile/index.module.css.js +1 -1
  54. package/modern/title-responsive/component.d.ts +4 -1
  55. package/moderncssm/text/index.module.css +11 -37
  56. package/moderncssm/title/component.d.ts +8 -2
  57. package/moderncssm/title/component.js +4 -1
  58. package/moderncssm/title/component.js.map +1 -1
  59. package/moderncssm/title/index.d.ts +4 -1
  60. package/moderncssm/title/index.module.css +79 -20
  61. package/moderncssm/title/utils.d.ts +1 -0
  62. package/moderncssm/title/utils.js +12 -0
  63. package/moderncssm/title/utils.js.map +1 -0
  64. package/moderncssm/title-mobile/component.d.ts +4 -1
  65. package/moderncssm/title-mobile/index.module.css +40 -25
  66. package/moderncssm/title-responsive/component.d.ts +4 -1
  67. package/package.json +6 -6
  68. package/src/title/component.tsx +8 -3
  69. package/src/title/index.module.css +8 -0
  70. package/src/title/utils.ts +14 -0
  71. package/text/index.css +54 -82
  72. package/text/index.module.css.js +1 -1
  73. package/title/common.css +5 -5
  74. package/title/common.module.css.js +1 -1
  75. package/title/component.d.ts +8 -2
  76. package/title/component.js +5 -2
  77. package/title/component.js.map +1 -1
  78. package/title/index.css +93 -46
  79. package/title/index.d.ts +4 -1
  80. package/title/index.module.css.js +1 -1
  81. package/title/index.module.css.js.map +1 -1
  82. package/title/utils.d.ts +1 -0
  83. package/title/utils.js +16 -0
  84. package/title/utils.js.map +1 -0
  85. package/title-mobile/component.d.ts +4 -1
  86. package/title-mobile/index.css +73 -59
  87. package/title-mobile/index.module.css.js +1 -1
  88. package/title-responsive/component.d.ts +4 -1
@@ -6,7 +6,9 @@ var tslib = require('tslib');
6
6
  var React = require('react');
7
7
  var mergeRefs = require('react-merge-refs');
8
8
  var cn = require('classnames');
9
+ var coreComponentsShared = require('@alfalab/core-components-shared');
9
10
  var coreComponentsSkeleton = require('@alfalab/core-components-skeleton');
11
+ var utils = require('./utils.js');
10
12
  var colors_module = require('../colors.module.css.js');
11
13
  var common_module = require('./common.module.css.js');
12
14
 
@@ -18,8 +20,8 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
18
20
 
19
21
  var TitleBase = React.forwardRef(function (_a, ref) {
20
22
  var _b;
21
- var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d; _a.font; _a.platform; var _e = _a.weight, weight = _e === void 0 ? 'bold' : _e, _f = _a.defaultMargins, defaultMargins = _f === void 0 ? false : _f, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = tslib.__rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
22
- var _g = coreComponentsSkeleton.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _g.renderSkeleton, textRef = _g.textRef;
23
+ var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d, _e = _a.font, font = _e === void 0 ? 'styrene' : _e, platform = _a.platform, _f = _a.weight, weight = _f === void 0 ? utils.getDefaultWeight(coreComponentsShared.isObject(font) ? font.font : font, platform) : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? false : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = tslib.__rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
24
+ var _h = coreComponentsSkeleton.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
23
25
  var skeleton = renderSkeleton({
24
26
  wrapperClassName: cn__default.default(defaultMargins && styles["margins-".concat(view)]),
25
27
  dataTestId: dataTestId,
@@ -30,6 +32,7 @@ var TitleBase = React.forwardRef(function (_a, ref) {
30
32
  return (React__default.default.createElement(Component, tslib.__assign({ className: cn__default.default(common_module.component, styles.component, className, styles["".concat(weight === 'regular' ? 'regular-' : '').concat(view)], defaultMargins && styles["margins-".concat(view)], color && colors_module[color], (_b = {},
31
33
  _b[common_module["rowLimit".concat(rowLimit)]] = rowLimit,
32
34
  _b[common_module.transparent] = showSkeleton,
35
+ _b[styles.font] = (coreComponentsShared.isObject(font) && !font.systemCompat) || !(font === 'system'),
33
36
  _b)), "data-test-id": dataTestId, ref: mergeRefs__default.default([ref, textRef]) }, restProps), children));
34
37
  });
35
38
 
@@ -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 { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\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';\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,\n platform,\n weight = 'bold',\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 },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":["forwardRef","__rest","useSkeleton","cn","React","__assign","commonStyles","colors","mergeRefs"],"mappings":";;;;;;;;;;;;;;;;;;IAyFa,SAAS,GAAGA,gBAAU,CAC/B,UACI,EAgBC,EACD,GAAG,EAAA;;AAhBC,IAAA,IAAA,EAAsB,GAAA,EAAA,CAAA,GAAA,CAAA,CAAjB,SAAS,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,CACtB,CAAA,EAAA,GAAA,EAAA,CAAA,IAAe,CAAf,CAAA,IAAI,GAAG,EAAA,KAAA,MAAA,GAAA,QAAQ,GAAA,EAAA,CAAA,CACX,EAAA,CAAA,IAAA,CACJ,CAAQ,EAAA,CAAA,QAAA,CAAA,KACR,EAAe,GAAA,EAAA,CAAA,MAAA,CAAA,CAAf,MAAM,GAAA,EAAA,KAAA,MAAA,GAAG,MAAM,GAAA,EAAA,CACf,CAAA,EAAA,GAAA,EAAA,CAAA,cAAsB,CAAtB,CAAA,cAAc,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,GAAA,EAAA,CAAA,CACtB,KAAK,GAAA,EAAA,CAAA,KAAA,CACL,CAAA,SAAS,GAAA,EAAA,CAAA,SAAA,CAAA,CACT,UAAU,GAAA,EAAA,CAAA,UAAA,CACV,CAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,CAAA,CACR,QAAQ,GAAA,EAAA,CAAA,QAAA,CACR,CAAA,MAAM,GAAA,EAAA,CAAA,MAAA,CAAA,CACN,aAAa,GAAA,EAAA,CAAA,aAAA,CACb,CAAA,YAAY,GAAA,EAAA,CAAA,YAAA,CAAA,CACT,SAAS,GAAAC,YAAA,CAAA,EAAA,EAfhB,sKAgBC;AAGK,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;AAE/C,YAAA,EAAA,EAAA,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAEE,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 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":";;;;;;;;;;;;;;;;;;;;IA4Fa,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
@@ -1,101 +1,148 @@
1
1
  :root {
2
- --gap-m: 16px;
3
- --gap-xl: 24px;
4
- --gap-3xl: 40px;
5
- --gap-4xl: 48px;
6
2
  --gap-0: 0px;
7
- --gap-16: var(--gap-m);
8
- --gap-24: var(--gap-xl);
9
- --gap-40: var(--gap-3xl);
10
- --gap-48: var(--gap-4xl);
3
+ --gap-16: 16px;
4
+ --gap-24: 24px;
5
+ --gap-40: 40px;
6
+ --gap-48: 48px;
11
7
  }
12
8
  :root {
13
- --font-family-alfasans:
14
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
15
- Helvetica, sans-serif;
9
+ --font-family-system:
10
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
11
+ --font-family-styrene:
12
+ 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
13
+ sans-serif;
16
14
  }
17
- .typography__xlarge_1tozw {
15
+ .typography__xlarge_1aft9 {
18
16
  font-size: 48px;
19
17
  line-height: 52px;
20
18
  font-weight: 700;
21
- letter-spacing: 0.1px;
22
- font-family: var(--font-family-alfasans);
19
+ font-family: var(--font-family-system);
23
20
  }
24
- .typography__regular-xlarge_1tozw {
21
+ .typography__xlarge_1aft9.typography__font_1aft9 {
22
+ line-height: 64px;
23
+ font-weight: 500;
24
+ font-feature-settings: 'ss01';
25
+ font-family: var(--font-family-styrene);
26
+ }
27
+ .typography__regular-xlarge_1aft9 {
25
28
  font-size: 48px;
26
29
  line-height: 52px;
27
30
  font-weight: 400;
28
- letter-spacing: -2.1px;
29
- font-family: var(--font-family-alfasans);
31
+ font-family: var(--font-family-system);
30
32
  }
31
- .typography__large_1tozw {
33
+ .typography__regular-xlarge_1aft9.typography__font_1aft9 {
34
+ line-height: 64px;
35
+ font-feature-settings: 'ss01';
36
+ font-family: var(--font-family-styrene);
37
+ }
38
+ .typography__large_1aft9 {
32
39
  font-size: 40px;
33
40
  line-height: 48px;
34
41
  font-weight: 700;
35
- letter-spacing: 0.1px;
36
- font-family: var(--font-family-alfasans);
42
+ font-family: var(--font-family-system);
37
43
  }
38
- .typography__regular-large_1tozw {
44
+ .typography__large_1aft9.typography__font_1aft9 {
45
+ font-weight: 500;
46
+ font-feature-settings: 'ss01';
47
+ font-family: var(--font-family-styrene);
48
+ }
49
+ .typography__regular-large_1aft9 {
39
50
  font-size: 40px;
40
51
  line-height: 48px;
41
52
  font-weight: 400;
42
- letter-spacing: -1.7px;
43
- font-family: var(--font-family-alfasans);
53
+ font-family: var(--font-family-system);
44
54
  }
45
- .typography__medium_1tozw {
55
+ .typography__regular-large_1aft9.typography__font_1aft9 {
56
+ font-feature-settings: 'ss01';
57
+ font-family: var(--font-family-styrene);
58
+ }
59
+ .typography__medium_1aft9 {
46
60
  font-size: 30px;
47
61
  line-height: 36px;
48
62
  font-weight: 700;
49
- letter-spacing: 0.1px;
50
- font-family: var(--font-family-alfasans);
63
+ font-family: var(--font-family-system);
51
64
  }
52
- .typography__regular-medium_1tozw {
65
+ .typography__medium_1aft9.typography__font_1aft9 {
66
+ font-size: 32px;
67
+ line-height: 40px;
68
+ font-weight: 500;
69
+ font-feature-settings: 'ss01';
70
+ font-family: var(--font-family-styrene);
71
+ }
72
+ .typography__regular-medium_1aft9 {
53
73
  font-size: 30px;
54
74
  line-height: 36px;
55
75
  font-weight: 400;
56
- letter-spacing: -1.25px;
57
- font-family: var(--font-family-alfasans);
76
+ font-family: var(--font-family-system);
58
77
  }
59
- .typography__small_1tozw {
78
+ .typography__regular-medium_1aft9.typography__font_1aft9 {
79
+ font-size: 32px;
80
+ line-height: 40px;
81
+ font-feature-settings: 'ss01';
82
+ font-family: var(--font-family-styrene);
83
+ }
84
+ .typography__small_1aft9 {
60
85
  font-size: 22px;
61
86
  line-height: 26px;
62
87
  font-weight: 700;
63
- letter-spacing: 0.2px;
64
- font-family: var(--font-family-alfasans);
88
+ font-family: var(--font-family-system);
65
89
  }
66
- .typography__regular-small_1tozw {
90
+ .typography__small_1aft9.typography__font_1aft9 {
91
+ font-size: 24px;
92
+ line-height: 32px;
93
+ font-weight: 500;
94
+ font-feature-settings: 'ss01';
95
+ font-family: var(--font-family-styrene);
96
+ }
97
+ .typography__regular-small_1aft9 {
67
98
  font-size: 22px;
68
99
  line-height: 26px;
69
100
  font-weight: 400;
70
- letter-spacing: -0.8px;
71
- font-family: var(--font-family-alfasans);
101
+ font-family: var(--font-family-system);
72
102
  }
73
- .typography__xsmall_1tozw {
103
+ .typography__regular-small_1aft9.typography__font_1aft9 {
104
+ font-size: 24px;
105
+ line-height: 32px;
106
+ font-feature-settings: 'ss01';
107
+ font-family: var(--font-family-styrene);
108
+ }
109
+ .typography__xsmall_1aft9 {
74
110
  font-size: 18px;
75
111
  line-height: 22px;
76
112
  font-weight: 700;
77
- letter-spacing: 0.38px;
78
- font-family: var(--font-family-alfasans);
113
+ font-family: var(--font-family-system);
79
114
  }
80
- .typography__regular-xsmall_1tozw {
115
+ .typography__xsmall_1aft9.typography__font_1aft9 {
116
+ font-size: 20px;
117
+ line-height: 24px;
118
+ font-weight: 500;
119
+ font-feature-settings: 'ss01';
120
+ font-family: var(--font-family-styrene);
121
+ }
122
+ .typography__regular-xsmall_1aft9 {
81
123
  font-size: 18px;
82
124
  line-height: 22px;
83
125
  font-weight: 400;
84
- letter-spacing: -0.36px;
85
- font-family: var(--font-family-alfasans);
126
+ font-family: var(--font-family-system);
86
127
  }
87
- .typography__component_1tozw.typography__margins-xlarge_1tozw {
128
+ .typography__regular-xsmall_1aft9.typography__font_1aft9 {
129
+ font-size: 20px;
130
+ line-height: 24px;
131
+ font-feature-settings: 'ss01';
132
+ font-family: var(--font-family-styrene);
133
+ }
134
+ .typography__component_1aft9.typography__margins-xlarge_1aft9 {
88
135
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
89
136
  }
90
- .typography__component_1tozw.typography__margins-large_1tozw {
137
+ .typography__component_1aft9.typography__margins-large_1aft9 {
91
138
  margin: var(--gap-48) var(--gap-0) var(--gap-24);
92
139
  }
93
- .typography__component_1tozw.typography__margins-medium_1tozw {
140
+ .typography__component_1aft9.typography__margins-medium_1aft9 {
94
141
  margin: var(--gap-48) var(--gap-0) var(--gap-24);
95
142
  }
96
- .typography__component_1tozw.typography__margins-small_1tozw {
143
+ .typography__component_1aft9.typography__margins-small_1aft9 {
97
144
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
98
145
  }
99
- .typography__component_1tozw.typography__margins-xsmall_1tozw {
146
+ .typography__component_1aft9.typography__margins-xsmall_1aft9 {
100
147
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
101
148
  }
package/title/index.d.ts CHANGED
@@ -5,7 +5,10 @@ declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<H
5
5
  view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
6
6
  color?: import("..").Color;
7
7
  weight?: "regular" | "medium" | "bold" | "semibold";
8
- font?: "styrene" | "system";
8
+ font?: "styrene" | "system" | "alfasans" | {
9
+ font: "alfasans";
10
+ systemCompat: boolean;
11
+ };
9
12
  defaultMargins?: boolean;
10
13
  className?: string;
11
14
  dataTestId?: string;
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"xlarge":"typography__xlarge_1tozw","regular-xlarge":"typography__regular-xlarge_1tozw","large":"typography__large_1tozw","regular-large":"typography__regular-large_1tozw","medium":"typography__medium_1tozw","regular-medium":"typography__regular-medium_1tozw","small":"typography__small_1tozw","regular-small":"typography__regular-small_1tozw","xsmall":"typography__xsmall_1tozw","regular-xsmall":"typography__regular-xsmall_1tozw","component":"typography__component_1tozw","margins-xlarge":"typography__margins-xlarge_1tozw","margins-large":"typography__margins-large_1tozw","margins-medium":"typography__margins-medium_1tozw","margins-small":"typography__margins-small_1tozw","margins-xsmall":"typography__margins-xsmall_1tozw"};
5
+ var styles = {"xlarge":"typography__xlarge_1aft9","font":"typography__font_1aft9","regular-xlarge":"typography__regular-xlarge_1aft9","large":"typography__large_1aft9","regular-large":"typography__regular-large_1aft9","medium":"typography__medium_1aft9","regular-medium":"typography__regular-medium_1aft9","small":"typography__small_1aft9","regular-small":"typography__regular-small_1aft9","xsmall":"typography__xsmall_1aft9","regular-xsmall":"typography__regular-xsmall_1aft9","component":"typography__component_1aft9","margins-xlarge":"typography__margins-xlarge_1aft9","margins-large":"typography__margins-large_1aft9","margins-medium":"typography__margins-medium_1aft9","margins-small":"typography__margins-small_1aft9","margins-xsmall":"typography__margins-xsmall_1aft9"};
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/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\n .regular-$(view) {\n @mixin promo-system_$(view);\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,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;;;;"}
@@ -0,0 +1 @@
1
+ export declare function getDefaultWeight(font: 'styrene' | 'system' | 'alfasans', platform: 'mobile' | 'desktop'): "medium" | "bold" | "semibold";
package/title/utils.js ADDED
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function getDefaultWeight(font, platform) {
6
+ if (font === 'styrene' || font === 'alfasans') {
7
+ return 'medium';
8
+ }
9
+ if (platform === 'desktop') {
10
+ return 'bold';
11
+ }
12
+ return 'semibold';
13
+ }
14
+
15
+ exports.getDefaultWeight = getDefaultWeight;
16
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +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;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;;;;"}
@@ -4,7 +4,10 @@ export declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTM
4
4
  view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
5
5
  color?: import("..").Color;
6
6
  weight?: "regular" | "medium" | "bold" | "semibold";
7
- font?: "styrene" | "system";
7
+ font?: "styrene" | "system" | "alfasans" | {
8
+ font: "alfasans";
9
+ systemCompat: boolean;
10
+ };
8
11
  defaultMargins?: boolean;
9
12
  className?: string;
10
13
  dataTestId?: string;
@@ -1,119 +1,133 @@
1
1
  :root {
2
- --gap-m: 16px;
3
- --gap-xl: 24px;
4
- --gap-3xl: 40px;
5
2
  --gap-0: 0px;
6
- --gap-16: var(--gap-m);
7
- --gap-24: var(--gap-xl);
8
- --gap-40: var(--gap-3xl);
3
+ --gap-16: 16px;
4
+ --gap-24: 24px;
5
+ --gap-40: 40px;
9
6
  }
10
7
  :root {
11
- --font-family-alfasans:
12
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
13
- Helvetica, sans-serif;
8
+ --font-family-system:
9
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
10
+ --font-family-styrene:
11
+ 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
12
+ sans-serif;
14
13
  }
15
- .typography__xlarge_1qkac {
14
+ .typography__xlarge_75d4t {
16
15
  font-size: 34px;
17
16
  line-height: 40px;
18
- font-weight: 500;
19
- letter-spacing: -0.32px;
20
- font-family: var(--font-family-alfasans);
17
+ font-weight: 600;
18
+ font-family: var(--font-family-system);
21
19
  }
22
- .typography__xlarge_1qkac.typography__font_1qkac {
20
+ .typography__xlarge_75d4t.typography__font_75d4t {
21
+ font-weight: 500;
22
+ font-feature-settings: 'ss01';
23
+ font-family: var(--font-family-styrene);
23
24
  }
24
- .typography__regular-xlarge_1qkac {
25
+ .typography__regular-xlarge_75d4t {
25
26
  font-size: 34px;
26
27
  line-height: 40px;
27
28
  font-weight: 400;
28
- letter-spacing: -1.36px;
29
- font-family: var(--font-family-alfasans);
29
+ font-family: var(--font-family-system);
30
30
  }
31
- .typography__regular-xlarge_1qkac.typography__system_1qkac {
31
+ .typography__regular-xlarge_75d4t.typography__system_75d4t {
32
+ font-feature-settings: 'ss01';
33
+ font-family: var(--font-family-styrene);
32
34
  }
33
- .typography__large_1qkac {
35
+ .typography__large_75d4t {
34
36
  font-size: 30px;
35
37
  line-height: 36px;
36
- font-weight: 500;
37
- letter-spacing: -0.25px;
38
- font-family: var(--font-family-alfasans);
38
+ font-weight: 600;
39
+ font-family: var(--font-family-system);
39
40
  }
40
- .typography__large_1qkac.typography__font_1qkac {
41
+ .typography__large_75d4t.typography__font_75d4t {
42
+ font-weight: 500;
43
+ font-feature-settings: 'ss01';
44
+ font-family: var(--font-family-styrene);
41
45
  }
42
- .typography__regular-large_1qkac {
46
+ .typography__regular-large_75d4t {
43
47
  font-size: 30px;
44
48
  line-height: 36px;
45
49
  font-weight: 400;
46
- letter-spacing: -1.25px;
47
- font-family: var(--font-family-alfasans);
50
+ font-family: var(--font-family-system);
48
51
  }
49
- .typography__regular-large_1qkac.typography__system_1qkac {
52
+ .typography__regular-large_75d4t.typography__system_75d4t {
53
+ font-feature-settings: 'ss01';
54
+ font-family: var(--font-family-styrene);
50
55
  }
51
- .typography__medium_1qkac {
56
+ .typography__medium_75d4t {
52
57
  font-size: 26px;
53
58
  line-height: 32px;
54
- font-weight: 500;
55
- letter-spacing: -0.25px;
56
- font-family: var(--font-family-alfasans);
59
+ font-weight: 600;
60
+ font-family: var(--font-family-system);
57
61
  }
58
- .typography__medium_1qkac.typography__font_1qkac {
62
+ .typography__medium_75d4t.typography__font_75d4t {
63
+ font-weight: 500;
64
+ font-feature-settings: 'ss01';
65
+ font-family: var(--font-family-styrene);
59
66
  }
60
- .typography__regular-medium_1qkac {
67
+ .typography__regular-medium_75d4t {
61
68
  font-size: 26px;
62
69
  line-height: 32px;
63
70
  font-weight: 400;
64
- letter-spacing: -1px;
65
- font-family: var(--font-family-alfasans);
71
+ font-family: var(--font-family-system);
66
72
  }
67
- .typography__regular-medium_1qkac.typography__system_1qkac {
73
+ .typography__regular-medium_75d4t.typography__system_75d4t {
74
+ font-feature-settings: 'ss01';
75
+ font-family: var(--font-family-styrene);
68
76
  }
69
- .typography__small_1qkac {
77
+ .typography__small_75d4t {
70
78
  font-size: 20px;
71
79
  line-height: 28px;
72
- font-weight: 500;
73
- letter-spacing: -0.15px;
74
- font-family: var(--font-family-alfasans);
80
+ font-weight: 600;
81
+ font-family: var(--font-family-system);
75
82
  }
76
- .typography__small_1qkac.typography__font_1qkac {
83
+ .typography__small_75d4t.typography__font_75d4t {
84
+ font-weight: 500;
85
+ font-feature-settings: 'ss01';
86
+ font-family: var(--font-family-styrene);
77
87
  }
78
- .typography__regular-small_1qkac {
88
+ .typography__regular-small_75d4t {
79
89
  font-size: 20px;
80
90
  line-height: 28px;
81
91
  font-weight: 400;
82
- letter-spacing: -0.68px;
83
- font-family: var(--font-family-alfasans);
92
+ font-family: var(--font-family-system);
84
93
  }
85
- .typography__regular-small_1qkac.typography__system_1qkac {
94
+ .typography__regular-small_75d4t.typography__system_75d4t {
95
+ font-feature-settings: 'ss01';
96
+ font-family: var(--font-family-styrene);
86
97
  }
87
- .typography__xsmall_1qkac {
98
+ .typography__xsmall_75d4t {
88
99
  font-size: 16px;
89
100
  line-height: 20px;
90
- font-weight: 500;
91
- letter-spacing: 0.17px;
92
- font-family: var(--font-family-alfasans);
101
+ font-weight: 600;
102
+ font-family: var(--font-family-system);
93
103
  }
94
- .typography__xsmall_1qkac.typography__font_1qkac {
104
+ .typography__xsmall_75d4t.typography__font_75d4t {
105
+ font-weight: 500;
106
+ font-feature-settings: 'ss01';
107
+ font-family: var(--font-family-styrene);
95
108
  }
96
- .typography__regular-xsmall_1qkac {
109
+ .typography__regular-xsmall_75d4t {
97
110
  font-size: 16px;
98
111
  line-height: 20px;
99
112
  font-weight: 400;
100
- letter-spacing: -0.24px;
101
- font-family: var(--font-family-alfasans);
113
+ font-family: var(--font-family-system);
102
114
  }
103
- .typography__regular-xsmall_1qkac.typography__system_1qkac {
115
+ .typography__regular-xsmall_75d4t.typography__system_75d4t {
116
+ font-feature-settings: 'ss01';
117
+ font-family: var(--font-family-styrene);
104
118
  }
105
- .typography__component_1qkac.typography__margins-xlarge_1qkac {
119
+ .typography__component_75d4t.typography__margins-xlarge_75d4t {
106
120
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
107
121
  }
108
- .typography__component_1qkac.typography__margins-large_1qkac {
122
+ .typography__component_75d4t.typography__margins-large_75d4t {
109
123
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
110
124
  }
111
- .typography__component_1qkac.typography__margins-medium_1qkac {
125
+ .typography__component_75d4t.typography__margins-medium_75d4t {
112
126
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
113
127
  }
114
- .typography__component_1qkac.typography__margins-small_1qkac {
128
+ .typography__component_75d4t.typography__margins-small_75d4t {
115
129
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
116
130
  }
117
- .typography__component_1qkac .typography__margins-xsmall_1qkac {
131
+ .typography__component_75d4t .typography__margins-xsmall_75d4t {
118
132
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
119
133
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"xlarge":"typography__xlarge_1qkac","font":"typography__font_1qkac","regular-xlarge":"typography__regular-xlarge_1qkac","system":"typography__system_1qkac","large":"typography__large_1qkac","regular-large":"typography__regular-large_1qkac","medium":"typography__medium_1qkac","regular-medium":"typography__regular-medium_1qkac","small":"typography__small_1qkac","regular-small":"typography__regular-small_1qkac","xsmall":"typography__xsmall_1qkac","regular-xsmall":"typography__regular-xsmall_1qkac","component":"typography__component_1qkac","margins-xlarge":"typography__margins-xlarge_1qkac","margins-large":"typography__margins-large_1qkac","margins-medium":"typography__margins-medium_1qkac","margins-small":"typography__margins-small_1qkac","margins-xsmall":"typography__margins-xsmall_1qkac"};
5
+ var styles = {"xlarge":"typography__xlarge_75d4t","font":"typography__font_75d4t","regular-xlarge":"typography__regular-xlarge_75d4t","system":"typography__system_75d4t","large":"typography__large_75d4t","regular-large":"typography__regular-large_75d4t","medium":"typography__medium_75d4t","regular-medium":"typography__regular-medium_75d4t","small":"typography__small_75d4t","regular-small":"typography__regular-small_75d4t","xsmall":"typography__xsmall_75d4t","regular-xsmall":"typography__regular-xsmall_75d4t","component":"typography__component_75d4t","margins-xlarge":"typography__margins-xlarge_75d4t","margins-large":"typography__margins-large_75d4t","margins-medium":"typography__margins-medium_75d4t","margins-small":"typography__margins-small_75d4t","margins-xsmall":"typography__margins-xsmall_75d4t"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -16,7 +16,10 @@ export declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React
16
16
  view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
17
17
  color?: import("..").Color;
18
18
  weight?: "regular" | "medium" | "bold" | "semibold";
19
- font?: "styrene" | "system";
19
+ font?: "styrene" | "system" | "alfasans" | {
20
+ font: "alfasans";
21
+ systemCompat: boolean;
22
+ };
20
23
  defaultMargins?: boolean;
21
24
  className?: string;
22
25
  dataTestId?: string;