@alfalab/core-components-typography 5.0.1 → 5.0.2

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 (150) hide show
  1. package/colors.css +20 -20
  2. package/colors.module.css.js +1 -1
  3. package/colors.module.css.js.map +1 -1
  4. package/component.d.ts +6 -6
  5. package/component.js.map +1 -1
  6. package/cssm/component.d.ts +6 -6
  7. package/cssm/component.js.map +1 -1
  8. package/cssm/text/alfasans-index.module.css +23 -22
  9. package/cssm/text/component.d.ts +3 -3
  10. package/cssm/text/component.js.map +1 -1
  11. package/cssm/title/alfasans-index.module.css +8 -7
  12. package/cssm/title/common.module.css +1 -1
  13. package/cssm/title/component.d.ts +2 -2
  14. package/cssm/title/component.js.map +1 -1
  15. package/cssm/title/index.d.ts +1 -1
  16. package/cssm/title/index.js.map +1 -1
  17. package/cssm/title/index.module.css +3 -2
  18. package/cssm/title-mobile/alfasans-index.module.css +8 -7
  19. package/cssm/title-mobile/component.js.map +1 -1
  20. package/cssm/title-mobile/index.module.css +3 -2
  21. package/cssm/title-responsive/component.d.ts +1 -1
  22. package/cssm/title-responsive/component.js.map +1 -1
  23. package/esm/colors.css +20 -20
  24. package/esm/colors.module.css.js +1 -1
  25. package/esm/colors.module.css.js.map +1 -1
  26. package/esm/component.d.ts +6 -6
  27. package/esm/component.js.map +1 -1
  28. package/esm/text/alfasans-index.css +40 -39
  29. package/esm/text/alfasans-index.module.css.js +1 -1
  30. package/esm/text/alfasans-index.module.css.js.map +1 -1
  31. package/esm/text/component.d.ts +3 -3
  32. package/esm/text/component.js.map +1 -1
  33. package/esm/text/index.css +21 -21
  34. package/esm/text/index.module.css.js +1 -1
  35. package/esm/text/index.module.css.js.map +1 -1
  36. package/esm/title/alfasans-index.css +18 -17
  37. package/esm/title/alfasans-index.module.css.js +1 -1
  38. package/esm/title/common.css +9 -9
  39. package/esm/title/common.module.css.js +1 -1
  40. package/esm/title/common.module.css.js.map +1 -1
  41. package/esm/title/component.d.ts +2 -2
  42. package/esm/title/component.js.map +1 -1
  43. package/esm/title/index.css +19 -18
  44. package/esm/title/index.d.ts +1 -1
  45. package/esm/title/index.js.map +1 -1
  46. package/esm/title/index.module.css.js +1 -1
  47. package/esm/title/index.module.css.js.map +1 -1
  48. package/esm/title-mobile/alfasans-index.css +18 -17
  49. package/esm/title-mobile/alfasans-index.module.css.js +1 -1
  50. package/esm/title-mobile/component.js.map +1 -1
  51. package/esm/title-mobile/index.css +18 -17
  52. package/esm/title-mobile/index.module.css.js +1 -1
  53. package/esm/title-mobile/index.module.css.js.map +1 -1
  54. package/esm/title-responsive/component.d.ts +1 -1
  55. package/esm/title-responsive/component.js.map +1 -1
  56. package/modern/colors.css +20 -20
  57. package/modern/colors.module.css.js +1 -1
  58. package/modern/colors.module.css.js.map +1 -1
  59. package/modern/component.d.ts +6 -6
  60. package/modern/component.js.map +1 -1
  61. package/modern/text/alfasans-index.css +40 -39
  62. package/modern/text/alfasans-index.module.css.js +1 -1
  63. package/modern/text/alfasans-index.module.css.js.map +1 -1
  64. package/modern/text/component.d.ts +3 -3
  65. package/modern/text/component.js.map +1 -1
  66. package/modern/text/index.css +21 -21
  67. package/modern/text/index.module.css.js +1 -1
  68. package/modern/text/index.module.css.js.map +1 -1
  69. package/modern/title/alfasans-index.css +18 -17
  70. package/modern/title/alfasans-index.module.css.js +1 -1
  71. package/modern/title/common.css +9 -9
  72. package/modern/title/common.module.css.js +1 -1
  73. package/modern/title/common.module.css.js.map +1 -1
  74. package/modern/title/component.d.ts +2 -2
  75. package/modern/title/component.js.map +1 -1
  76. package/modern/title/index.css +19 -18
  77. package/modern/title/index.d.ts +1 -1
  78. package/modern/title/index.js.map +1 -1
  79. package/modern/title/index.module.css.js +1 -1
  80. package/modern/title/index.module.css.js.map +1 -1
  81. package/modern/title-mobile/alfasans-index.css +18 -17
  82. package/modern/title-mobile/alfasans-index.module.css.js +1 -1
  83. package/modern/title-mobile/component.js.map +1 -1
  84. package/modern/title-mobile/index.css +18 -17
  85. package/modern/title-mobile/index.module.css.js +1 -1
  86. package/modern/title-mobile/index.module.css.js.map +1 -1
  87. package/modern/title-responsive/component.d.ts +1 -1
  88. package/modern/title-responsive/component.js.map +1 -1
  89. package/moderncssm/colors.module.css +2 -0
  90. package/moderncssm/component.d.ts +6 -6
  91. package/moderncssm/component.js.map +1 -1
  92. package/moderncssm/text/alfasans-index.module.css +66 -40
  93. package/moderncssm/text/component.d.ts +3 -3
  94. package/moderncssm/text/component.js.map +1 -1
  95. package/moderncssm/text/index.module.css +21 -0
  96. package/moderncssm/title/alfasans-index.module.css +25 -18
  97. package/moderncssm/title/common.module.css +3 -1
  98. package/moderncssm/title/component.d.ts +2 -2
  99. package/moderncssm/title/component.js.map +1 -1
  100. package/moderncssm/title/index.d.ts +1 -1
  101. package/moderncssm/title/index.js.map +1 -1
  102. package/moderncssm/title/index.module.css +15 -0
  103. package/moderncssm/title-mobile/alfasans-index.module.css +25 -18
  104. package/moderncssm/title-mobile/component.js.map +1 -1
  105. package/moderncssm/title-mobile/index.module.css +14 -0
  106. package/moderncssm/title-responsive/component.d.ts +1 -1
  107. package/moderncssm/title-responsive/component.js.map +1 -1
  108. package/package.json +3 -3
  109. package/src/colors.module.css +1 -1
  110. package/src/component.ts +21 -0
  111. package/src/text/component.tsx +3 -3
  112. package/src/text/index.module.css +1 -1
  113. package/src/title/common.module.css +1 -1
  114. package/src/title/component.tsx +2 -2
  115. package/src/title/index.module.css +1 -1
  116. package/src/title/index.tsx +1 -1
  117. package/src/title-mobile/component.tsx +1 -1
  118. package/src/title-mobile/index.module.css +1 -1
  119. package/src/title-responsive/component.tsx +1 -1
  120. package/text/alfasans-index.css +40 -39
  121. package/text/alfasans-index.module.css.js +1 -1
  122. package/text/alfasans-index.module.css.js.map +1 -1
  123. package/text/component.d.ts +3 -3
  124. package/text/component.js.map +1 -1
  125. package/text/index.css +21 -21
  126. package/text/index.module.css.js +1 -1
  127. package/text/index.module.css.js.map +1 -1
  128. package/title/alfasans-index.css +18 -17
  129. package/title/alfasans-index.module.css.js +1 -1
  130. package/title/common.css +9 -9
  131. package/title/common.module.css.js +1 -1
  132. package/title/common.module.css.js.map +1 -1
  133. package/title/component.d.ts +2 -2
  134. package/title/component.js.map +1 -1
  135. package/title/index.css +19 -18
  136. package/title/index.d.ts +1 -1
  137. package/title/index.js.map +1 -1
  138. package/title/index.module.css.js +1 -1
  139. package/title/index.module.css.js.map +1 -1
  140. package/title-mobile/alfasans-index.css +18 -17
  141. package/title-mobile/alfasans-index.module.css.js +1 -1
  142. package/title-mobile/component.js.map +1 -1
  143. package/title-mobile/index.css +18 -17
  144. package/title-mobile/index.module.css.js +1 -1
  145. package/title-mobile/index.module.css.js.map +1 -1
  146. package/title-responsive/component.d.ts +1 -1
  147. package/title-responsive/component.js.map +1 -1
  148. package/src/component.tsx +0 -21
  149. /package/src/title-mobile/{index.tsx → index.ts} +0 -0
  150. /package/src/title-responsive/{index.tsx → index.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../src/title-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n.styrene-xlarge {\n @mixin headline-mobile_xlarge;\n}\n\n.styrene-large {\n @mixin headline-mobile_large;\n}\n\n.styrene-medium {\n @mixin headline-mobile_medium;\n}\n\n.styrene-small {\n @mixin headline-mobile_small;\n}\n\n.styrene-xsmall {\n @mixin headline-mobile_xsmall;\n}\n\n.system-xlarge {\n @mixin headline-system-mobile_xlarge;\n}\n\n.system-large {\n @mixin headline-system-mobile_large;\n}\n\n.system-medium {\n @mixin headline-system-mobile_medium;\n}\n\n.system-small {\n @mixin headline-system-mobile_small;\n}\n\n.system-xsmall {\n @mixin headline-system-mobile_xsmall;\n}\n\n.margins-xlarge {\n @mixin margin-large;\n}\n\n.margins-large {\n @mixin margin-small;\n}\n\n.margins-medium {\n @mixin margin-small;\n}\n\n.margins-small {\n @mixin margin-small;\n}\n\n.margins-xsmall {\n @mixin margin-small;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,cAAc,CAAC,gCAAgC,CAAC,eAAe,CAAC,iCAAiC,CAAC,cAAc,CAAC,gCAAgC,CAAC,eAAe,CAAC,iCAAiC,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-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../margins.module.css';\n\n.styrene-xlarge {\n @mixin headline-mobile_xlarge;\n}\n\n.styrene-large {\n @mixin headline-mobile_large;\n}\n\n.styrene-medium {\n @mixin headline-mobile_medium;\n}\n\n.styrene-small {\n @mixin headline-mobile_small;\n}\n\n.styrene-xsmall {\n @mixin headline-mobile_xsmall;\n}\n\n.system-xlarge {\n @mixin headline-system-mobile_xlarge;\n}\n\n.system-large {\n @mixin headline-system-mobile_large;\n}\n\n.system-medium {\n @mixin headline-system-mobile_medium;\n}\n\n.system-small {\n @mixin headline-system-mobile_small;\n}\n\n.system-xsmall {\n @mixin headline-system-mobile_xsmall;\n}\n\n.margins-xlarge {\n @mixin margin-large;\n}\n\n.margins-large {\n @mixin margin-small;\n}\n\n.margins-medium {\n @mixin margin-small;\n}\n\n.margins-small {\n @mixin margin-small;\n}\n\n.margins-xsmall {\n @mixin margin-small;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,cAAc,CAAC,gCAAgC,CAAC,eAAe,CAAC,iCAAiC,CAAC,cAAc,CAAC,gCAAgC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TitleProps } from '../title';
2
+ import { type TitleProps } from '../title';
3
3
  export declare type TitleResponsiveProps = TitleProps & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../src/title-responsive/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { Title, TitleProps } from '../title';\nimport { TitleMobile } from '../title-mobile';\n\nexport type TitleResponsiveProps = TitleProps & {\n /**\n * Контрольная точка, с нее начинается desktop версия\n * @default 1024\n */\n breakpoint?: number;\n\n /**\n * Версия, которая будет использоваться при серверном рендеринге\n */\n client?: 'desktop' | 'mobile';\n};\n\nexport const TitleResponsive = forwardRef<\n HTMLHeadingElement | HTMLDivElement,\n TitleResponsiveProps\n>(({ breakpoint, client, ...restProps }, ref) => {\n const isDesktop = useIsDesktop(breakpoint, client === 'desktop');\n\n const Component = isDesktop ? Title : TitleMobile;\n\n return <Component {...restProps} ref={ref} />;\n});\n"],"names":["forwardRef","__rest","useIsDesktop","Title","TitleMobile","React","__assign"],"mappings":";;;;;;;;;;;;;;IAoBa,eAAe,GAAGA,gBAAU,CAGvC,UAAC,EAAoC,EAAE,GAAG,EAAA;IAAvC,IAAA,UAAU,gBAAA,EAAE,MAAM,YAAA,EAAK,SAAS,GAAlCC,YAAA,CAAA,EAAA,EAAA,CAAA,YAAA,EAAA,QAAA,CAAoC,CAAF;IACjC,IAAM,SAAS,GAAGC,6BAAY,CAAC,UAAU,EAAE,MAAM,KAAK,SAAS,CAAC;IAEhE,IAAM,SAAS,GAAG,SAAS,GAAGC,WAAK,GAAGC,qBAAW;IAEjD,OAAOC,sBAAA,CAAA,aAAA,CAAC,SAAS,EAAKC,cAAA,CAAA,EAAA,EAAA,SAAS,IAAE,GAAG,EAAE,GAAG,EAAA,CAAA,CAAI;AACjD,CAAC;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../src/title-responsive/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { Title, type TitleProps } from '../title';\nimport { TitleMobile } from '../title-mobile';\n\nexport type TitleResponsiveProps = TitleProps & {\n /**\n * Контрольная точка, с нее начинается desktop версия\n * @default 1024\n */\n breakpoint?: number;\n\n /**\n * Версия, которая будет использоваться при серверном рендеринге\n */\n client?: 'desktop' | 'mobile';\n};\n\nexport const TitleResponsive = forwardRef<\n HTMLHeadingElement | HTMLDivElement,\n TitleResponsiveProps\n>(({ breakpoint, client, ...restProps }, ref) => {\n const isDesktop = useIsDesktop(breakpoint, client === 'desktop');\n\n const Component = isDesktop ? Title : TitleMobile;\n\n return <Component {...restProps} ref={ref} />;\n});\n"],"names":["forwardRef","__rest","useIsDesktop","Title","TitleMobile","React","__assign"],"mappings":";;;;;;;;;;;;;;IAoBa,eAAe,GAAGA,gBAAU,CAGvC,UAAC,EAAoC,EAAE,GAAG,EAAA;IAAvC,IAAA,UAAU,gBAAA,EAAE,MAAM,YAAA,EAAK,SAAS,GAAlCC,YAAA,CAAA,EAAA,EAAA,CAAA,YAAA,EAAA,QAAA,CAAoC,CAAF;IACjC,IAAM,SAAS,GAAGC,6BAAY,CAAC,UAAU,EAAE,MAAM,KAAK,SAAS,CAAC;IAEhE,IAAM,SAAS,GAAG,SAAS,GAAGC,WAAK,GAAGC,qBAAW;IAEjD,OAAOC,sBAAA,CAAA,aAAA,CAAC,SAAS,EAAKC,cAAA,CAAA,EAAA,EAAA,SAAS,IAAE,GAAG,EAAE,GAAG,EAAA,CAAA,CAAI;AACjD,CAAC;;;;"}
package/src/component.tsx DELETED
@@ -1,21 +0,0 @@
1
- import { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
2
-
3
- import { Text, TextProps } from './text';
4
- import { Title, TitleProps } from './title';
5
- import { TitleMobile, TitleMobileProps } from './title-mobile';
6
- import { TitleResponsive, TitleResponsiveProps } from './title-responsive';
7
- import { TextElementType } from './types';
8
-
9
- export const Typography: {
10
- Title: FC<TitleProps>;
11
- Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
12
- TitleResponsive: FC<TitleResponsiveProps>;
13
- TitleMobile: FC<TitleMobileProps>;
14
- } = {
15
- Title,
16
- Text,
17
- TitleResponsive,
18
- TitleMobile,
19
- };
20
-
21
- export { Text, Title as TitleDesktop, TitleResponsive, TitleMobile };
File without changes
File without changes