@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.
- package/colors.css +20 -20
- package/colors.module.css.js +1 -1
- package/colors.module.css.js.map +1 -1
- package/component.d.ts +6 -6
- package/component.js.map +1 -1
- package/cssm/component.d.ts +6 -6
- package/cssm/component.js.map +1 -1
- package/cssm/text/alfasans-index.module.css +23 -22
- package/cssm/text/component.d.ts +3 -3
- package/cssm/text/component.js.map +1 -1
- package/cssm/title/alfasans-index.module.css +8 -7
- package/cssm/title/common.module.css +1 -1
- package/cssm/title/component.d.ts +2 -2
- package/cssm/title/component.js.map +1 -1
- package/cssm/title/index.d.ts +1 -1
- package/cssm/title/index.js.map +1 -1
- package/cssm/title/index.module.css +3 -2
- package/cssm/title-mobile/alfasans-index.module.css +8 -7
- package/cssm/title-mobile/component.js.map +1 -1
- package/cssm/title-mobile/index.module.css +3 -2
- package/cssm/title-responsive/component.d.ts +1 -1
- package/cssm/title-responsive/component.js.map +1 -1
- package/esm/colors.css +20 -20
- package/esm/colors.module.css.js +1 -1
- package/esm/colors.module.css.js.map +1 -1
- package/esm/component.d.ts +6 -6
- package/esm/component.js.map +1 -1
- package/esm/text/alfasans-index.css +40 -39
- package/esm/text/alfasans-index.module.css.js +1 -1
- package/esm/text/alfasans-index.module.css.js.map +1 -1
- package/esm/text/component.d.ts +3 -3
- package/esm/text/component.js.map +1 -1
- package/esm/text/index.css +21 -21
- package/esm/text/index.module.css.js +1 -1
- package/esm/text/index.module.css.js.map +1 -1
- package/esm/title/alfasans-index.css +18 -17
- package/esm/title/alfasans-index.module.css.js +1 -1
- package/esm/title/common.css +9 -9
- package/esm/title/common.module.css.js +1 -1
- package/esm/title/common.module.css.js.map +1 -1
- package/esm/title/component.d.ts +2 -2
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +19 -18
- package/esm/title/index.d.ts +1 -1
- package/esm/title/index.js.map +1 -1
- package/esm/title/index.module.css.js +1 -1
- package/esm/title/index.module.css.js.map +1 -1
- package/esm/title-mobile/alfasans-index.css +18 -17
- package/esm/title-mobile/alfasans-index.module.css.js +1 -1
- package/esm/title-mobile/component.js.map +1 -1
- package/esm/title-mobile/index.css +18 -17
- package/esm/title-mobile/index.module.css.js +1 -1
- package/esm/title-mobile/index.module.css.js.map +1 -1
- package/esm/title-responsive/component.d.ts +1 -1
- package/esm/title-responsive/component.js.map +1 -1
- package/modern/colors.css +20 -20
- package/modern/colors.module.css.js +1 -1
- package/modern/colors.module.css.js.map +1 -1
- package/modern/component.d.ts +6 -6
- package/modern/component.js.map +1 -1
- package/modern/text/alfasans-index.css +40 -39
- package/modern/text/alfasans-index.module.css.js +1 -1
- package/modern/text/alfasans-index.module.css.js.map +1 -1
- package/modern/text/component.d.ts +3 -3
- package/modern/text/component.js.map +1 -1
- package/modern/text/index.css +21 -21
- package/modern/text/index.module.css.js +1 -1
- package/modern/text/index.module.css.js.map +1 -1
- package/modern/title/alfasans-index.css +18 -17
- package/modern/title/alfasans-index.module.css.js +1 -1
- package/modern/title/common.css +9 -9
- package/modern/title/common.module.css.js +1 -1
- package/modern/title/common.module.css.js.map +1 -1
- package/modern/title/component.d.ts +2 -2
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +19 -18
- package/modern/title/index.d.ts +1 -1
- package/modern/title/index.js.map +1 -1
- package/modern/title/index.module.css.js +1 -1
- package/modern/title/index.module.css.js.map +1 -1
- package/modern/title-mobile/alfasans-index.css +18 -17
- package/modern/title-mobile/alfasans-index.module.css.js +1 -1
- package/modern/title-mobile/component.js.map +1 -1
- package/modern/title-mobile/index.css +18 -17
- package/modern/title-mobile/index.module.css.js +1 -1
- package/modern/title-mobile/index.module.css.js.map +1 -1
- package/modern/title-responsive/component.d.ts +1 -1
- package/modern/title-responsive/component.js.map +1 -1
- package/moderncssm/colors.module.css +2 -0
- package/moderncssm/component.d.ts +6 -6
- package/moderncssm/component.js.map +1 -1
- package/moderncssm/text/alfasans-index.module.css +66 -40
- package/moderncssm/text/component.d.ts +3 -3
- package/moderncssm/text/component.js.map +1 -1
- package/moderncssm/text/index.module.css +21 -0
- package/moderncssm/title/alfasans-index.module.css +25 -18
- package/moderncssm/title/common.module.css +3 -1
- package/moderncssm/title/component.d.ts +2 -2
- package/moderncssm/title/component.js.map +1 -1
- package/moderncssm/title/index.d.ts +1 -1
- package/moderncssm/title/index.js.map +1 -1
- package/moderncssm/title/index.module.css +15 -0
- package/moderncssm/title-mobile/alfasans-index.module.css +25 -18
- package/moderncssm/title-mobile/component.js.map +1 -1
- package/moderncssm/title-mobile/index.module.css +14 -0
- package/moderncssm/title-responsive/component.d.ts +1 -1
- package/moderncssm/title-responsive/component.js.map +1 -1
- package/package.json +3 -3
- package/src/colors.module.css +1 -1
- package/src/component.ts +21 -0
- package/src/text/component.tsx +3 -3
- package/src/text/index.module.css +1 -1
- package/src/title/common.module.css +1 -1
- package/src/title/component.tsx +2 -2
- package/src/title/index.module.css +1 -1
- package/src/title/index.tsx +1 -1
- package/src/title-mobile/component.tsx +1 -1
- package/src/title-mobile/index.module.css +1 -1
- package/src/title-responsive/component.tsx +1 -1
- package/text/alfasans-index.css +40 -39
- package/text/alfasans-index.module.css.js +1 -1
- package/text/alfasans-index.module.css.js.map +1 -1
- package/text/component.d.ts +3 -3
- package/text/component.js.map +1 -1
- package/text/index.css +21 -21
- package/text/index.module.css.js +1 -1
- package/text/index.module.css.js.map +1 -1
- package/title/alfasans-index.css +18 -17
- package/title/alfasans-index.module.css.js +1 -1
- package/title/common.css +9 -9
- package/title/common.module.css.js +1 -1
- package/title/common.module.css.js.map +1 -1
- package/title/component.d.ts +2 -2
- package/title/component.js.map +1 -1
- package/title/index.css +19 -18
- package/title/index.d.ts +1 -1
- package/title/index.js.map +1 -1
- package/title/index.module.css.js +1 -1
- package/title/index.module.css.js.map +1 -1
- package/title-mobile/alfasans-index.css +18 -17
- package/title-mobile/alfasans-index.module.css.js +1 -1
- package/title-mobile/component.js.map +1 -1
- package/title-mobile/index.css +18 -17
- package/title-mobile/index.module.css.js +1 -1
- package/title-mobile/index.module.css.js.map +1 -1
- package/title-responsive/component.d.ts +1 -1
- package/title-responsive/component.js.map +1 -1
- package/src/component.tsx +0 -21
- /package/src/title-mobile/{index.tsx → index.ts} +0 -0
- /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 +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
|